home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-12-06 | 470.2 KB | 17,567 lines |
- #! /bin/sh
-
- # From configure.in Revision: 1.175.4.2
-
-
-
-
- # Do all the work for Automake. This macro actually does too much --
- # some checks are only needed if your package does certain things.
- # But this isn't really a big deal.
-
- # serial 1
-
-
-
-
-
- # serial 1
-
-
-
- #
- # Check to make sure that the build environment is sane.
- #
-
-
-
-
-
-
-
-
- # Check to see if we're running under Win32, without using
- # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
- # Otherwise set it to "".
-
-
-
- # Check to see if we're running under Cygwin32, without using
- # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
- # Otherwise set it to "no".
-
-
-
- # Check to see if we're running under Mingw, without using
- # AC_CANONICAL_*. If so, set output variable MINGW32 to "yes".
- # Otherwise set it to "no".
-
-
-
- # Guess values for system-dependent variables and create Makefiles.
- # Generated automatically using autoconf version 2.12
- # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
- #
- # This configure script is free software; the Free Software Foundation
- # gives unlimited permission to copy, distribute and modify it.
-
- # Defaults:
- ac_help=
- ac_default_prefix=/usr/local
- # Any additions from configure.in:
- ac_help="$ac_help
- --with-x use the X Window System"
- ac_help="$ac_help
- --without-motif do not use Motif widgets"
- ac_help="$ac_help
- --with-motif-includes=DIR Motif include files are in DIR"
- ac_help="$ac_help
- --with-motif-libraries=DIR Motif libraries are in DIR"
- ac_help="$ac_help
- --without-athena do not use Athena widgets"
- ac_help="$ac_help
- --with-athena-includes=DIR Athena include files are in DIR"
- ac_help="$ac_help
- --with-athena-libraries=DIR Athena libraries are in DIR"
- ac_help="$ac_help
- --without-xpm do not use the Xpm library"
- ac_help="$ac_help
- --with-xpm-includes=DIR Xpm include files are in DIR"
- ac_help="$ac_help
- --with-xpm-libraries=DIR Xpm libraries are in DIR"
- ac_help="$ac_help
- --disable-builtin-manual do not compile manual into DDD"
- ac_help="$ac_help
- --disable-builtin-app-defaults do not compile app-defaults file into DDD"
-
- # Initialize some variables set by options.
- # The variables have the same names as the options, with
- # dashes changed to underlines.
- build=NONE
- cache_file=./config.cache
- exec_prefix=NONE
- host=NONE
- no_create=
- nonopt=NONE
- no_recursion=
- prefix=NONE
- program_prefix=NONE
- program_suffix=NONE
- program_transform_name=s,x,x,
- silent=
- site=
- srcdir=
- target=NONE
- verbose=
- x_includes=NONE
- x_libraries=NONE
- bindir='${exec_prefix}/bin'
- sbindir='${exec_prefix}/sbin'
- libexecdir='${exec_prefix}/libexec'
- datadir='${prefix}/share'
- sysconfdir='${prefix}/etc'
- sharedstatedir='${prefix}/com'
- localstatedir='${prefix}/var'
- libdir='${exec_prefix}/lib'
- includedir='${prefix}/include'
- oldincludedir='/usr/include'
- infodir='${prefix}/info'
- mandir='${prefix}/man'
-
- # Initialize some other variables.
- subdirs=
- MFLAGS= MAKEFLAGS=
- # Maximum number of lines to put in a shell here document.
- ac_max_here_lines=12
-
- ac_prev=
- for ac_option
- do
-
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval "$ac_prev=\$ac_option"
- ac_prev=
- continue
- fi
-
- case "$ac_option" in
- -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) ac_optarg= ;;
- esac
-
- # Accept the important Cygnus configure options, so we can diagnose typos.
-
- case "$ac_option" in
-
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir="$ac_optarg" ;;
-
- -build | --build | --buil | --bui | --bu)
- ac_prev=build ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build="$ac_optarg" ;;
-
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file="$ac_optarg" ;;
-
- -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
- | --da=*)
- datadir="$ac_optarg" ;;
-
- -disable-* | --disable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- eval "enable_${ac_feature}=no" ;;
-
- -enable-* | --enable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "enable_${ac_feature}='$ac_optarg'" ;;
-
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix="$ac_optarg" ;;
-
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
-
- -help | --help | --hel | --he)
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat << EOF
- Usage: configure [options] [host]
- Options: [defaults in brackets after descriptions]
- Configuration:
- --cache-file=FILE cache test results in FILE
- --help print this message
- --no-create do not create output files
- --quiet, --silent do not print \`checking...' messages
- --version print the version of autoconf that created configure
- Directory and file names:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [same as prefix]
- --bindir=DIR user executables in DIR [EPREFIX/bin]
- --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
- --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
- --datadir=DIR read-only architecture-independent data in DIR
- [PREFIX/share]
- --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data in DIR
- [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
- --libdir=DIR object code libraries in DIR [EPREFIX/lib]
- --includedir=DIR C header files in DIR [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
- --infodir=DIR info documentation in DIR [PREFIX/info]
- --mandir=DIR man documentation in DIR [PREFIX/man]
- --srcdir=DIR find the sources in DIR [configure dir or ..]
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM
- run sed PROGRAM on installed program names
- EOF
- cat << EOF
- Host type:
- --build=BUILD configure for building on BUILD [BUILD=HOST]
- --host=HOST configure for HOST [guessed]
- --target=TARGET configure for TARGET [TARGET=HOST]
- Features and packages:
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --x-includes=DIR X include files are in DIR
- --x-libraries=DIR X library files are in DIR
- EOF
- if test -n "$ac_help"; then
- echo "--enable and --with options recognized:$ac_help"
- fi
- exit 0 ;;
-
- -host | --host | --hos | --ho)
- ac_prev=host ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host="$ac_optarg" ;;
-
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir="$ac_optarg" ;;
-
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir="$ac_optarg" ;;
-
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir="$ac_optarg" ;;
-
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir="$ac_optarg" ;;
-
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst \
- | --locals | --local | --loca | --loc | --lo)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* \
- | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
- localstatedir="$ac_optarg" ;;
-
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir="$ac_optarg" ;;
-
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
-
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c)
- no_create=yes ;;
-
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
-
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir="$ac_optarg" ;;
-
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix="$ac_optarg" ;;
-
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix="$ac_optarg" ;;
-
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix="$ac_optarg" ;;
-
- -program-transform-name | --program-transform-name \
- | --program-transform-nam | --program-transform-na \
- | --program-transform-n | --program-transform- \
- | --program-transform | --program-transfor \
- | --program-transfo | --program-transf \
- | --program-trans | --program-tran \
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=* \
- | --program-transform-nam=* | --program-transform-na=* \
- | --program-transform-n=* | --program-transform-=* \
- | --program-transform=* | --program-transfor=* \
- | --program-transfo=* | --program-transf=* \
- | --program-trans=* | --program-tran=* \
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name="$ac_optarg" ;;
-
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
-
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
- | --sbi=* | --sb=*)
- sbindir="$ac_optarg" ;;
-
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
- | --sharedst | --shareds | --shared | --share | --shar \
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
- | --sha=* | --sh=*)
- sharedstatedir="$ac_optarg" ;;
-
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site="$ac_optarg" ;;
-
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir="$ac_optarg" ;;
-
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir="$ac_optarg" ;;
-
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target="$ac_optarg" ;;
-
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
-
- -version | --version | --versio | --versi | --vers)
- echo "configure generated by autoconf version 2.12"
- exit 0 ;;
-
- -with-* | --with-*)
- ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "with_${ac_package}='$ac_optarg'" ;;
-
- -without-* | --without-*)
- ac_package=`echo $ac_option|sed -e 's/-*without-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- eval "with_${ac_package}=no" ;;
-
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
-
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes="$ac_optarg" ;;
-
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries="$ac_optarg" ;;
-
- -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
- ;;
-
- *)
- if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
- echo "configure: warning: $ac_option: invalid host type" 1>&2
- fi
- if test "x$nonopt" != xNONE; then
- { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
- fi
- nonopt="$ac_option"
- ;;
-
- esac
- done
-
- if test -n "$ac_prev"; then
- { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
- fi
-
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
-
- # File descriptor usage:
- # 0 standard input
- # 1 file creation
- # 2 errors and warnings
- # 3 some systems may open it to /dev/tty
- # 4 used on the Kubota Titan
- # 6 checking for... messages and results
- # 5 compiler messages saved in config.log
- if test "$silent" = yes; then
- exec 6>/dev/null
- else
- exec 6>&1
- fi
- exec 5>./config.log
-
- echo "\
- This file contains any messages produced by compilers while
- running configure, to aid debugging if configure makes a mistake.
- " 1>&5
-
- # Strip out --no-create and --no-recursion so they do not pile up.
- # Also quote any args containing shell metacharacters.
- ac_configure_args=
- for ac_arg
- do
- case "$ac_arg" in
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c) ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
- ac_configure_args="$ac_configure_args '$ac_arg'" ;;
- *) ac_configure_args="$ac_configure_args $ac_arg" ;;
- esac
- done
-
- # NLS nuisances.
- # Only set these to C if already set. These must not be set unconditionally
- # because not all systems understand e.g. LANG=C (notably SCO).
- # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
- # Non-C LC_CTYPE values break the ctype check.
- if test "${LANG+set}" = set; then LANG=C; export LANG; fi
- if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
- if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
- if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
-
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
- rm -rf conftest* confdefs.h
- # AIX cpp loses on an empty file, so make sure it contains at least a newline.
- echo > confdefs.h
-
- # A filename unique to this package, relative to the directory that
- # configure is in, which we can look for to find out if srcdir is correct.
- ac_unique_file=DispBox.h
-
- # Find the source files, if location was not specified.
- if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then its parent.
- ac_prog=$0
- ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
- test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
- srcdir=$ac_confdir
- if test ! -r $srcdir/$ac_unique_file; then
- srcdir=..
- fi
- else
- ac_srcdir_defaulted=no
- fi
- if test ! -r $srcdir/$ac_unique_file; then
- if test "$ac_srcdir_defaulted" = yes; then
- { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
- else
- { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
- fi
- fi
- srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
-
- # Prefer explicitly selected file to automatically selected ones.
- if test -z "$CONFIG_SITE"; then
- if test "x$prefix" != xNONE; then
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- else
- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
- fi
- fi
- for ac_site_file in $CONFIG_SITE; do
- if test -r "$ac_site_file"; then
- echo "loading site script $ac_site_file"
- . "$ac_site_file"
- fi
- done
-
- if test -r "$cache_file"; then
- echo "loading cache $cache_file"
- . $cache_file
- else
- echo "creating cache $cache_file"
- > $cache_file
- fi
-
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
- if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
- # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
- if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
- ac_n= ac_c='
- ' ac_t=' '
- else
- ac_n=-n ac_c= ac_t=
- fi
- else
- ac_n= ac_c='\c' ac_t=
- fi
-
-
-
- if test "x$prefix" = xNONE; then
- echo $ac_n "checking for prefix by $ac_c" 1>&6
- # Extract the first word of "ddd", so it can be a program name with args.
- set dummy ddd; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:600: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_path_DDD'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$DDD" in
- /*)
- ac_cv_path_DDD="$DDD" # Let the user override the test with a path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_DDD="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- ;;
- esac
- fi
- DDD="$ac_cv_path_DDD"
- if test -n "$DDD"; then
- echo "$ac_t""$DDD" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test -n "$ac_cv_path_DDD"; then
- prefix=`echo $ac_cv_path_DDD|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
- fi
- fi
-
- if test "$program_transform_name" = s,x,x,; then
- program_transform_name=
- else
- # Double any \ or $. echo might interpret backslashes.
- cat <<\EOF_SED > conftestsed
- s,\\,\\\\,g; s,\$,$$,g
- EOF_SED
- program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
- rm -f conftestsed
- fi
- test "$program_prefix" != NONE &&
- program_transform_name="s,^,${program_prefix},; $program_transform_name"
- # Use a double $ so make ignores it.
- test "$program_suffix" != NONE &&
- program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
-
- # sed with no file args requires a program.
- test "$program_transform_name" = "" && program_transform_name="s,x,x,"
-
- ac_cv_lib_dnet=no
- unset CDPATH
- ac_cv_func_vfork_works=yes
- echo $ac_n "checking for product name""... $ac_c" 1>&6
- echo "configure:656: checking for product name" >&5
- ddd=ddd
- Ddd=Ddd
- DDD=DDD
- VERSION=3.1.1
- NICKNAME="Morning Sky"
- EXPIRES=
- echo "$ac_t""${DDD} ${VERSION} \"${NICKNAME}\"" 1>&6
- echo $ac_n "checking for expiration date""... $ac_c" 1>&6
- echo "configure:665: checking for expiration date" >&5
- if test "$EXPIRES" = ""; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""${EXPIRES}" 1>&6
- fi
- ac_aux_dir=
- for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- fi
- done
- if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
- fi
- ac_config_guess=$ac_aux_dir/config.guess
- ac_config_sub=$ac_aux_dir/config.sub
- ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
-
- # Find a good install program. We prefer a C program (faster),
- # so one script is as good as another. But avoid the broken or
- # incompatible versions:
- # SysV /etc/install, /usr/sbin/install
- # SunOS /usr/etc/install
- # IRIX /sbin/install
- # AIX /bin/install
- # AFS /usr/afsws/bin/install, which mishandles nonexistent args
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # ./install, which can be erroneously created by make from ./install.sh.
- echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
- echo "configure:701: checking for a BSD compatible install" >&5
- if test -z "$INSTALL"; then
- if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- # Account for people who put trailing slashes in PATH elements.
- case "$ac_dir/" in
- /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- for ac_prog in ginstall installbsd scoinst install; do
- if test -f $ac_dir/$ac_prog; then
- if test $ac_prog = install &&
- grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- # OSF/1 installbsd also uses dspmsg, but is usable.
- :
- else
- ac_cv_path_install="$ac_dir/$ac_prog -c"
- break 2
- fi
- fi
- done
- ;;
- esac
- done
- IFS="$ac_save_IFS"
-
- fi
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL="$ac_cv_path_install"
- else
- # As a last resort, use the slow shell script. We don't cache a
- # path for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the path is relative.
- INSTALL="$ac_install_sh"
- fi
- fi
- echo "$ac_t""$INSTALL" 1>&6
-
- # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- # It thinks the first close brace ends the variable substitution.
- test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
-
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
-
- test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
-
- echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
- echo "configure:754: checking whether build environment is sane" >&5
- # Just in case
- sleep 1
- echo timestamp > conftestfile
- # Do `set' in a subshell so we don't clobber the current shell's
- # arguments. Must try -L first in case configure is actually a
- # symlink; some systems play weird games with the mod time of symlinks
- # (eg FreeBSD returns the mod time of the symlink's containing
- # directory).
- if (
- set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
- if test "$*" = "X"; then
- # -L didn't work.
- set X `ls -t $srcdir/configure conftestfile`
- fi
- if test "$*" != "X $srcdir/configure conftestfile" \
- && test "$*" != "X conftestfile $srcdir/configure"; then
-
- # If neither matched, then we have a broken ls. This can happen
- # if, for instance, CONFIG_SHELL is bash and it inherits a
- # broken ls alias from the environment. This has actually
- # happened. Such a system could not be considered "sane".
- { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
- alias in your environment" 1>&2; exit 1; }
- fi
-
- test "$2" = conftestfile
- )
- then
- # Ok.
- :
- else
- { echo "configure: error: newly created file is older than distributed files!
- Check your system clock" 1>&2; exit 1; }
- fi
- rm -f conftest*
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
- echo "configure:792: checking whether ${MAKE-make} sets \${MAKE}" >&5
- set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftestmake <<\EOF
- all:
- @echo 'ac_maketemp="${MAKE}"'
- EOF
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
- eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
- if test -n "$ac_maketemp"; then
- eval ac_cv_prog_make_${ac_make}_set=yes
- else
- eval ac_cv_prog_make_${ac_make}_set=no
- fi
- rm -f conftestmake
- fi
- if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SET_MAKE=
- else
- echo "$ac_t""no" 1>&6
- SET_MAKE="MAKE=${MAKE-make}"
- fi
-
-
- PACKAGE=${ddd}
-
- VERSION=${VERSION}
-
- if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
- { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
- fi
- cat >> confdefs.h <<EOF
- #define PACKAGE "$PACKAGE"
- EOF
-
- cat >> confdefs.h <<EOF
- #define VERSION "$VERSION"
- EOF
-
-
-
- missing_dir=`cd $ac_aux_dir && pwd`
- echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
- echo "configure:838: checking for working aclocal" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- if (aclocal --version) < /dev/null > /dev/null 2>&1; then
- ACLOCAL=aclocal
- echo "$ac_t""found" 1>&6
- else
- ACLOCAL="$missing_dir/missing aclocal"
- echo "$ac_t""missing" 1>&6
- fi
-
- echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
- echo "configure:851: checking for working autoconf" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- if (autoconf --version) < /dev/null > /dev/null 2>&1; then
- AUTOCONF=autoconf
- echo "$ac_t""found" 1>&6
- else
- AUTOCONF="$missing_dir/missing autoconf"
- echo "$ac_t""missing" 1>&6
- fi
-
- echo $ac_n "checking for working automake""... $ac_c" 1>&6
- echo "configure:864: checking for working automake" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- if (automake --version) < /dev/null > /dev/null 2>&1; then
- AUTOMAKE=automake
- echo "$ac_t""found" 1>&6
- else
- AUTOMAKE="$missing_dir/missing automake"
- echo "$ac_t""missing" 1>&6
- fi
-
- echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
- echo "configure:877: checking for working autoheader" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- if (autoheader --version) < /dev/null > /dev/null 2>&1; then
- AUTOHEADER=autoheader
- echo "$ac_t""found" 1>&6
- else
- AUTOHEADER="$missing_dir/missing autoheader"
- echo "$ac_t""missing" 1>&6
- fi
-
- echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
- echo "configure:890: checking for working makeinfo" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
- MAKEINFO=makeinfo
- echo "$ac_t""found" 1>&6
- else
- MAKEINFO="$missing_dir/missing makeinfo"
- echo "$ac_t""missing" 1>&6
- fi
-
-
-
- # Make sure we can run config.sub.
- if $ac_config_sub sun4 >/dev/null 2>&1; then :
- else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
- fi
-
- echo $ac_n "checking host system type""... $ac_c" 1>&6
- echo "configure:910: checking host system type" >&5
-
- host_alias=$host
- case "$host_alias" in
- NONE)
- case $nonopt in
- NONE)
- if host_alias=`$ac_config_guess`; then :
- else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
- fi ;;
- *) host_alias=$nonopt ;;
- esac ;;
- esac
-
- host=`$ac_config_sub $host_alias`
- host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
- host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
- host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
- echo "$ac_t""$host" 1>&6
-
-
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:934: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="gcc"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
- set dummy cc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:963: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- ac_prog_rejected=no
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- break
- fi
- done
- IFS="$ac_save_ifs"
- if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# -gt 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- set dummy "$ac_dir/$ac_word" "$@"
- shift
- ac_cv_prog_CC="$@"
- fi
- fi
- fi
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
- fi
-
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
- echo "configure:1011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
-
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 1021 "configure"
- #include "confdefs.h"
- main(){return(0);}
- EOF
- if { (eval echo configure:1025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- ac_cv_prog_cc_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cc_cross=no
- else
- ac_cv_prog_cc_cross=yes
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cc_works=no
- fi
- rm -fr conftest*
-
- echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
- if test $ac_cv_prog_cc_works = no; then
- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- echo "configure:1045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
- cross_compiling=$ac_cv_prog_cc_cross
-
- echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
- echo "configure:1050: checking whether we are using GNU C" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.c <<EOF
- #ifdef __GNUC__
- yes;
- #endif
- EOF
- if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- ac_cv_prog_gcc=yes
- else
- ac_cv_prog_gcc=no
- fi
- fi
-
- echo "$ac_t""$ac_cv_prog_gcc" 1>&6
-
- if test $ac_cv_prog_gcc = yes; then
- GCC=yes
- ac_test_CFLAGS="${CFLAGS+set}"
- ac_save_CFLAGS="$CFLAGS"
- CFLAGS=
- echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
- echo "configure:1074: checking whether ${CC-cc} accepts -g" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- echo 'void f(){}' > conftest.c
- if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_g=yes
- else
- ac_cv_prog_cc_g=no
- fi
- rm -f conftest*
-
- fi
-
- echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
- elif test $ac_cv_prog_cc_g = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-O2"
- fi
- else
- GCC=
- test "${CFLAGS+set}" = set || CFLAGS="-g"
- fi
-
- echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
- echo "configure:1102: checking for POSIXized ISC" >&5
- if test -d /etc/conf/kconfig.d &&
- grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
- then
- echo "$ac_t""yes" 1>&6
- ISC=yes # If later tests want to check for ISC.
- cat >> confdefs.h <<\EOF
- #define _POSIX_SOURCE 1
- EOF
-
- if test "$GCC" = yes; then
- CC="$CC -posix"
- else
- CC="$CC -Xp"
- fi
- else
- echo "$ac_t""no" 1>&6
- ISC=
- fi
-
- echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
- echo "configure:1123: checking whether ln -s works" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- rm -f conftestdata
- if ln -s X conftestdata 2>/dev/null
- then
- rm -f conftestdata
- ac_cv_prog_LN_S="ln -s"
- else
- ac_cv_prog_LN_S=ln
- fi
- fi
- LN_S="$ac_cv_prog_LN_S"
- if test "$ac_cv_prog_LN_S" = "ln -s"; then
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- for ac_prog in sh
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1148: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_path_SH'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$SH" in
- /*)
- ac_cv_path_SH="$SH" # Let the user override the test with a path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_SH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- ;;
- esac
- fi
- SH="$ac_cv_path_SH"
- if test -n "$SH"; then
- echo "$ac_t""$SH" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$SH" && break
- done
-
- for ac_prog in gtar tar
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1184: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$TAR"; then
- ac_cv_prog_TAR="$TAR" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_TAR="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- TAR="$ac_cv_prog_TAR"
- if test -n "$TAR"; then
- echo "$ac_t""$TAR" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$TAR" && break
- done
-
- for ac_prog in gm4 m4
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1217: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$M4"; then
- ac_cv_prog_M4="$M4" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_M4="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- M4="$ac_cv_prog_M4"
- if test -n "$M4"; then
- echo "$ac_t""$M4" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$M4" && break
- done
-
- for ac_prog in gsed sed
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1250: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$SED"; then
- ac_cv_prog_SED="$SED" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_SED="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- SED="$ac_cv_prog_SED"
- if test -n "$SED"; then
- echo "$ac_t""$SED" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$SED" && break
- done
-
- for ac_prog in gdiff diff
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1283: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_DIFF'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$DIFF"; then
- ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_DIFF="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- DIFF="$ac_cv_prog_DIFF"
- if test -n "$DIFF"; then
- echo "$ac_t""$DIFF" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$DIFF" && break
- done
-
- for ac_prog in dvips dvi2ps
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1316: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_DVIPS'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$DVIPS"; then
- ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_DVIPS="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- DVIPS="$ac_cv_prog_DVIPS"
- if test -n "$DVIPS"; then
- echo "$ac_t""$DVIPS" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$DVIPS" && break
- done
-
- for ac_prog in gzip compress
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1349: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_COMPRESS'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$COMPRESS"; then
- ac_cv_prog_COMPRESS="$COMPRESS" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_COMPRESS="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- COMPRESS="$ac_cv_prog_COMPRESS"
- if test -n "$COMPRESS"; then
- echo "$ac_t""$COMPRESS" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$COMPRESS" && break
- done
-
- COMPRESS="$COMPRESS -c"
- case "$COMPRESS" in
- *gzip*) COMPRESS="$COMPRESS -9";;
- esac
- for ac_prog in gzip gunzip gzcat zcat uncompress
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1386: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_UNCOMPRESS'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$UNCOMPRESS"; then
- ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_UNCOMPRESS="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- UNCOMPRESS="$ac_cv_prog_UNCOMPRESS"
- if test -n "$UNCOMPRESS"; then
- echo "$ac_t""$UNCOMPRESS" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$UNCOMPRESS" && break
- done
-
- case "$UNCOMPRESS" in
- *gzip*) UNCOMPRESS="$UNCOMPRESS -d";;
- esac
- case "$UNCOMPRESS" in
- *zip*) UNCOMPRESS="$UNCOMPRESS -c";;
- *uncompress*) UNCOMPRESS="$UNCOMPRESS -c";;
- esac
- for ac_prog in remsh rsh on
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1426: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_path_RSH'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$RSH" in
- /*)
- ac_cv_path_RSH="$RSH" # Let the user override the test with a path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_RSH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- ;;
- esac
- fi
- RSH="$ac_cv_path_RSH"
- if test -n "$RSH"; then
- echo "$ac_t""$RSH" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$RSH" && break
- done
-
- for ac_prog in lp lpr
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1462: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$LPR"; then
- ac_cv_prog_LPR="$LPR" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_LPR="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- LPR="$ac_cv_prog_LPR"
- if test -n "$LPR"; then
- echo "$ac_t""$LPR" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$LPR" && break
- done
-
- if test "$LPR" = "lpr"; then
- PRINT_COMMAND="lpr"
- elif test "$LPR" = "lp"; then
- PRINT_COMMAND="lp -c"
- else
- PRINT_COMMAND="lp"
- fi
- for ac_prog in gcore
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1502: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_GCORE'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$GCORE"; then
- ac_cv_prog_GCORE="$GCORE" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_GCORE="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- GCORE="$ac_cv_prog_GCORE"
- if test -n "$GCORE"; then
- echo "$ac_t""$GCORE" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$GCORE" && break
- done
-
- if test "$GCORE" = "gcore"; then
- GCORE_COMMAND="gcore -o @FILE@ @PID@"
- else
- GCORE_COMMAND=
- fi
- for ac_prog in gdb dbx xdb jdb
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1540: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_DEBUGGER'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$DEBUGGER"; then
- ac_cv_prog_DEBUGGER="$DEBUGGER" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_DEBUGGER="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- DEBUGGER="$ac_cv_prog_DEBUGGER"
- if test -n "$DEBUGGER"; then
- echo "$ac_t""$DEBUGGER" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$DEBUGGER" && break
- done
- case "$DEBUGGER" in
- *gdb*) DEBUGGER_OPTION="";;
- *dbx*) DEBUGGER_OPTION="--dbx";;
- *xdb*) DEBUGGER_OPTION="--xdb";;
- *jdb*) DEBUGGER_OPTION="--jdb";;
- esac
- case "$DEBUGGER" in
- gdb) ;;
- dbx) ;;
- xdb) ;;
- jdb) ;;
- *) DEBUGGER_OPTION="$DEBUGGER_OPTION --debugger $DEBUGGER";
- esac
- for ac_prog in xterm kterm dtterm hpterm
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1585: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_XTERM'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$XTERM"; then
- ac_cv_prog_XTERM="$XTERM" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_XTERM="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- XTERM="$ac_cv_prog_XTERM"
- if test -n "$XTERM"; then
- echo "$ac_t""$XTERM" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$XTERM" && break
- done
- test -n "$XTERM" || XTERM="xterm"
- for ac_prog in xfontsel
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1618: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_XFONTSEL'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$XFONTSEL"; then
- ac_cv_prog_XFONTSEL="$XFONTSEL" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_XFONTSEL="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- XFONTSEL="$ac_cv_prog_XFONTSEL"
- if test -n "$XFONTSEL"; then
- echo "$ac_t""$XFONTSEL" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$XFONTSEL" && break
- done
- test -n "$XFONTSEL" || XFONTSEL="xfontsel"
- # Find a good install program. We prefer a C program (faster),
- # so one script is as good as another. But avoid the broken or
- # incompatible versions:
- # SysV /etc/install, /usr/sbin/install
- # SunOS /usr/etc/install
- # IRIX /sbin/install
- # AIX /bin/install
- # AFS /usr/afsws/bin/install, which mishandles nonexistent args
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # ./install, which can be erroneously created by make from ./install.sh.
- echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
- echo "configure:1657: checking for a BSD compatible install" >&5
- if test -z "$INSTALL"; then
- if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- # Account for people who put trailing slashes in PATH elements.
- case "$ac_dir/" in
- /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- for ac_prog in ginstall installbsd scoinst install; do
- if test -f $ac_dir/$ac_prog; then
- if test $ac_prog = install &&
- grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- # OSF/1 installbsd also uses dspmsg, but is usable.
- :
- else
- ac_cv_path_install="$ac_dir/$ac_prog -c"
- break 2
- fi
- fi
- done
- ;;
- esac
- done
- IFS="$ac_save_IFS"
-
- fi
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL="$ac_cv_path_install"
- else
- # As a last resort, use the slow shell script. We don't cache a
- # path for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the path is relative.
- INSTALL="$ac_install_sh"
- fi
- fi
- echo "$ac_t""$INSTALL" 1>&6
-
- # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- # It thinks the first close brace ends the variable substitution.
- test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
-
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
- # Extract the first word of "ranlib", so it can be a program name with args.
- set dummy ranlib; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1709: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_RANLIB="ranlib"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
- fi
- fi
- RANLIB="$ac_cv_prog_RANLIB"
- if test -n "$RANLIB"; then
- echo "$ac_t""$RANLIB" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- for ac_prog in 'bison -y' byacc
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1740: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$YACC"; then
- ac_cv_prog_YACC="$YACC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YACC="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- YACC="$ac_cv_prog_YACC"
- if test -n "$YACC"; then
- echo "$ac_t""$YACC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$YACC" && break
- done
- test -n "$YACC" || YACC="yacc"
-
- echo $ac_n "checking for ${YACC} flags""... $ac_c" 1>&6
- echo "configure:1770: checking for ${YACC} flags" >&5
- YFLAGS=""
- echo "$ac_t""${YFLAGS}" 1>&6
- echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
- echo "configure:1774: checking how to run the C preprocessor" >&5
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # This must be in double quotes, not single quotes, because CPP may get
- # substituted into the Makefile and "${CC-cc}" will confuse make.
- CPP="${CC-cc} -E"
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp.
- cat > conftest.$ac_ext <<EOF
- #line 1789 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:1795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -E -traditional-cpp"
- cat > conftest.$ac_ext <<EOF
- #line 1806 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:1812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP=/lib/cpp
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- ac_cv_prog_CPP="$CPP"
- fi
- CPP="$ac_cv_prog_CPP"
- else
- ac_cv_prog_CPP="$CPP"
- fi
- echo "$ac_t""$CPP" 1>&6
-
- missing_dir=`cd $ac_aux_dir && pwd`
- for ac_prog in flex lex
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1840: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$LEX"; then
- ac_cv_prog_LEX="$LEX" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_LEX="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- LEX="$ac_cv_prog_LEX"
- if test -n "$LEX"; then
- echo "$ac_t""$LEX" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$LEX" && break
- done
- test -n "$LEX" || LEX=""$missing_dir/missing flex""
-
- # Extract the first word of "flex", so it can be a program name with args.
- set dummy flex; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1872: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$LEX"; then
- ac_cv_prog_LEX="$LEX" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_LEX="flex"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
- fi
- fi
- LEX="$ac_cv_prog_LEX"
- if test -n "$LEX"; then
- echo "$ac_t""$LEX" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test -z "$LEXLIB"
- then
- case "$LEX" in
- flex*) ac_lib=fl ;;
- *) ac_lib=l ;;
- esac
- echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
- echo "configure:1905: checking for yywrap in -l$ac_lib" >&5
- ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-l$ac_lib $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 1913 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char yywrap();
-
- int main() {
- yywrap()
- ; return 0; }
- EOF
- if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LEXLIB="-l$ac_lib"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- fi
-
- echo $ac_n "checking lex output file root""... $ac_c" 1>&6
- echo "configure:1947: checking lex output file root" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # The minimal lex program is just a single line: %%. But some broken lexes
- # (Solaris, I think it was) want two %% lines, so accommodate them.
- echo '%%
- %%' | $LEX
- if test -f lex.yy.c; then
- ac_cv_prog_lex_root=lex.yy
- elif test -f lexyy.c; then
- ac_cv_prog_lex_root=lexyy
- else
- { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
- fi
- fi
-
- echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
- LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
-
- echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
- echo "configure:1968: checking whether yytext is a pointer" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # POSIX says lex can declare yytext either as a pointer or an array; the
- # default is implementation-dependent. Figure out which it is, since
- # not all implementations provide the %pointer and %array declarations.
- ac_cv_prog_lex_yytext_pointer=no
- echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
- ac_save_LIBS="$LIBS"
- LIBS="$LIBS $LEXLIB"
- cat > conftest.$ac_ext <<EOF
- #line 1980 "configure"
- #include "confdefs.h"
- `cat $LEX_OUTPUT_ROOT.c`
- int main() {
-
- ; return 0; }
- EOF
- if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- ac_cv_prog_lex_yytext_pointer=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- rm -f "${LEX_OUTPUT_ROOT}.c"
-
- fi
-
- echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
- if test $ac_cv_prog_lex_yytext_pointer = yes; then
- cat >> confdefs.h <<\EOF
- #define YYTEXT_POINTER 1
- EOF
-
- fi
-
- echo $ac_n "checking for ${LEX} flags""... $ac_c" 1>&6
- echo "configure:2009: checking for ${LEX} flags" >&5
- LFLAGS=""
- if test "$LEX" = "flex"; then
- LFLAGS="-8"
- fi
- echo "$ac_t""${LFLAGS}" 1>&6
- for ac_prog in mawk gawk nawk awk
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2020: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$AWK"; then
- ac_cv_prog_AWK="$AWK" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_AWK="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- AWK="$ac_cv_prog_AWK"
- if test -n "$AWK"; then
- echo "$ac_t""$AWK" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$AWK" && break
- done
-
-
-
-
- echo $ac_n "checking whether the C compiler (${CC}) compiles and links a simple C program""... $ac_c" 1>&6
- echo "configure:2052: checking whether the C compiler (${CC}) compiles and links a simple C program" >&5
- if eval "test \"`echo '$''{'ice_cv_prog_cc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 2066 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- int main() {
- printf("hello, world!");
- ; return 0; }
- EOF
- if { (eval echo configure:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- ice_cv_prog_cc=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_prog_cc=no
- fi
- rm -f conftest*
-
-
- fi
-
- echo "$ac_t""$ice_cv_prog_cc" 1>&6
- if test "$ice_cv_prog_cc" = no; then
- { echo "configure: error: You must set the environment variable CC to a working
- C compiler. Also check the CFLAGS settings.
- See the file 'config.log' for further diagnostics." 1>&2; exit 1; }
- fi
-
- for ac_prog in $CCC c++ g++ gcc CC cxx cc++
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2099: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$CXX"; then
- ac_cv_prog_CXX="$CXX" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CXX="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- fi
- CXX="$ac_cv_prog_CXX"
- if test -n "$CXX"; then
- echo "$ac_t""$CXX" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- test -n "$CXX" && break
- done
- test -n "$CXX" || CXX="gcc"
-
-
- echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
- echo "configure:2130: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 2140 "configure"
- #include "confdefs.h"
- main(){return(0);}
- EOF
- if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- ac_cv_prog_cxx_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cxx_cross=no
- else
- ac_cv_prog_cxx_cross=yes
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cxx_works=no
- fi
- rm -fr conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
- echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
- if test $ac_cv_prog_cxx_works = no; then
- { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- echo "configure:2170: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
- cross_compiling=$ac_cv_prog_cxx_cross
-
- echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
- echo "configure:2175: checking whether we are using GNU C++" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.C <<EOF
- #ifdef __GNUC__
- yes;
- #endif
- EOF
- if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- ac_cv_prog_gxx=yes
- else
- ac_cv_prog_gxx=no
- fi
- fi
-
- echo "$ac_t""$ac_cv_prog_gxx" 1>&6
-
- if test $ac_cv_prog_gxx = yes; then
- GXX=yes
- ac_test_CXXFLAGS="${CXXFLAGS+set}"
- ac_save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS=
- echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
- echo "configure:2199: checking whether ${CXX-g++} accepts -g" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- echo 'void f(){}' > conftest.cc
- if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
- ac_cv_prog_cxx_g=yes
- else
- ac_cv_prog_cxx_g=no
- fi
- rm -f conftest*
-
- fi
-
- echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
- if test "$ac_test_CXXFLAGS" = set; then
- CXXFLAGS="$ac_save_CXXFLAGS"
- elif test $ac_cv_prog_cxx_g = yes; then
- CXXFLAGS="-g -O2"
- else
- CXXFLAGS="-O2"
- fi
- else
- GXX=
- test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
- fi
-
-
-
- if test "$CXX" = gcc; then
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- ice_save_LIBS="$LIBS"
- echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
- echo "configure:2239: checking for sin in -lm" >&5
- ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lm $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 2247 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sin();
-
- int main() {
- sin()
- ; return 0; }
- EOF
- if { (eval echo configure:2261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="-lm $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- echo $ac_n "checking for cout in -lstdc++""... $ac_c" 1>&6
- echo "configure:2282: checking for cout in -lstdc++" >&5
- ac_lib_var=`echo stdc++'_'cout | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lstdc++ $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 2290 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cout();
-
- int main() {
- cout()
- ; return 0; }
- EOF
- if { (eval echo configure:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="-lstdc++ $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- case "$LIBS" in
- *-lstdc++*)
- ;;
- *)
- echo $ac_n "checking for cout in -lg++""... $ac_c" 1>&6
- echo "configure:2329: checking for cout in -lg++" >&5
- ac_lib_var=`echo g++'_'cout | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lg++ $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 2337 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cout();
-
- int main() {
- cout()
- ; return 0; }
- EOF
- if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="-lg++ $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- ;;
- esac
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
- fi
- echo $ac_n "checking whether the C++ compiler (${CXX}) compiles a simple program""... $ac_c" 1>&6
- echo "configure:2382: checking whether the C++ compiler (${CXX}) compiles a simple program" >&5
- if eval "test \"`echo '$''{'ice_cv_prog_cxx'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 2396 "configure"
- #include "confdefs.h"
- #include <iostream.h>
- int main() {
- cout << "hello, world!";
- ; return 0; }
- EOF
- if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- ice_cv_prog_cxx=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_prog_cxx=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_prog_cxx" 1>&6
- if test "$ice_cv_prog_cxx" = no; then
- { echo "configure: error: You must set the environment variable CXX to a working
- C++ compiler. Also check the CXXFLAGS settings.
- See the file 'config.log' for further diagnostics." 1>&2; exit 1; }
- fi
- ice_need_cxxlibs=no
- case "$LIBS" in
- *-lstdc++*)
- case "$CXXLIBS" in
- *-lstdc++*)
- ;;
- *)
- ice_need_cxxlibs=yes
- ;;
- esac
- ;;
- *-lg++*)
- case "$CXXLIBS" in
- *-lg++*)
- ;;
- *)
- ice_need_cxxlibs=yes
- ;;
- esac
- ;;
- esac
- if test "$ice_need_cxxlibs" = yes
- then
- CXXLIBS="$CXXLIBS $LIBS"
- fi
- LIBS="$ice_save_LIBS"
-
- echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
- echo "configure:2457: checking how to run the C preprocessor" >&5
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # This must be in double quotes, not single quotes, because CPP may get
- # substituted into the Makefile and "${CC-cc}" will confuse make.
- CPP="${CC-cc} -E"
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp.
- cat > conftest.$ac_ext <<EOF
- #line 2472 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -E -traditional-cpp"
- cat > conftest.$ac_ext <<EOF
- #line 2489 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP=/lib/cpp
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- ac_cv_prog_CPP="$CPP"
- fi
- CPP="$ac_cv_prog_CPP"
- else
- ac_cv_prog_CPP="$CPP"
- fi
- echo "$ac_t""$CPP" 1>&6
-
- echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
- echo "configure:2518: checking how to run the C++ preprocessor" >&5
- if test -z "$CXXCPP"; then
- if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
- CXXCPP="${CXX-g++} -E"
- cat > conftest.$ac_ext <<EOF
- #line 2531 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CXXCPP=/lib/cpp
- fi
- rm -f conftest*
- ac_cv_prog_CXXCPP="$CXXCPP"
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- fi
- fi
- CXXCPP="$ac_cv_prog_CXXCPP"
- echo "$ac_t""$CXXCPP" 1>&6
-
-
- if test "$GXX" = yes; then
- # Check warnings
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) accepts -Weffc++""... $ac_c" 1>&6
- echo "configure:2566: checking whether the C++ compiler (${CXX}) accepts -Weffc++" >&5
- if eval "test \"`echo '$''{'ice_cv_warn_effective_cxx'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- ice_save_cxxflags="$CXXFLAGS"
- CXXFLAGS=-Weffc++
- cat > conftest.$ac_ext <<EOF
- #line 2582 "configure"
- #include "confdefs.h"
-
- int main() {
- int a;
- ; return 0; }
- EOF
- if { (eval echo configure:2589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_warn_effective_cxx=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_warn_effective_cxx=no
- fi
- rm -f conftest*
- CXXFLAGS="$ice_save_cxxflags"
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_warn_effective_cxx" 1>&6
- if test "$ice_cv_warn_effective_cxx" = yes; then
- WARN_EFFECTIVE_CXX=-Weffc++
- WARN_NO_EFFECTIVE_CXX=-Wno-effc++
- fi
-
-
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) accepts -Wuninitialized""... $ac_c" 1>&6
- echo "configure:2621: checking whether the C++ compiler (${CXX}) accepts -Wuninitialized" >&5
- if eval "test \"`echo '$''{'ice_cv_warn_uninitialized'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- ice_save_cxxflags="$CXXFLAGS"
- CXXFLAGS=-Wuninitialized
- cat > conftest.$ac_ext <<EOF
- #line 2637 "configure"
- #include "confdefs.h"
-
- int main() {
- int a;
- ; return 0; }
- EOF
- if { (eval echo configure:2644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_warn_uninitialized=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_warn_uninitialized=no
- fi
- rm -f conftest*
- CXXFLAGS="$ice_save_cxxflags"
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_warn_uninitialized" 1>&6
- if test "$ice_cv_warn_uninitialized" = yes; then
- WARN_UNINITIALIZED=-Wuninitialized
- WARN_NO_UNINITIALIZED=-Wno-uninitialized
- fi
-
-
-
-
- # Check TOC options
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) accepts -mminimal-toc""... $ac_c" 1>&6
- echo "configure:2678: checking whether the C++ compiler (${CXX}) accepts -mminimal-toc" >&5
- if eval "test \"`echo '$''{'ice_cv_minimal_toc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- ice_save_cxxflags="$CXXFLAGS"
- CXXFLAGS="-mminimal-toc"
- cat > conftest.$ac_ext <<EOF
- #line 2694 "configure"
- #include "confdefs.h"
-
- int main() {
- int a;
- ; return 0; }
- EOF
- if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- ice_cv_minimal_toc=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_minimal_toc=no
- fi
- rm -f conftest*
- CXXFLAGS="$ice_save_cxxflags"
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_minimal_toc" 1>&6
- if test "$ice_cv_minimal_toc" = yes; then
- MINIMAL_TOC="-mminimal-toc"
- fi
-
-
- if test "$ice_cv_minimal_toc" = yes; then
- # Only check for `-Wl,-bbig-toc' if `-mminimal-toc' is supported.
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) accepts -Wl,-bbigtoc""... $ac_c" 1>&6
- echo "configure:2733: checking whether the C++ compiler (${CXX}) accepts -Wl,-bbigtoc" >&5
- if eval "test \"`echo '$''{'ice_cv_big_toc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- ice_save_ldflags="$LDFLAGS"
- LDFLAGS="-Wl,-bbigtoc"
- cat > conftest.$ac_ext <<EOF
- #line 2749 "configure"
- #include "confdefs.h"
-
- int main() {
- int a;
- ; return 0; }
- EOF
- if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- ice_cv_big_toc=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_big_toc=no
- fi
- rm -f conftest*
- LDFLAGS="$ice_save_ldflags"
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_big_toc" 1>&6
- if test "$ice_cv_big_toc" = yes; then
- BIG_TOC="-Wl,-bbigtoc"
- fi
-
-
- if test "$ice_cv_big_toc" = yes; then
- # Prefer `-Wl,-bbig-toc' on `-mminimal-toc'.
- MINIMAL_TOC=
- fi
- fi
-
- # Setup options
- # In GCC 2.8.0, `-Wuninitialized' generates lots of warnings about
- # variables possibly being clobbered by a longjmp()/vfork() call.
- # These warnings seldom make sense and hide more serious warnings.
- # Hence, we turn them off via `-Wno-uninitialized'.
- CXXOPT="-DNDEBUG"
- CXXDEBUG=
- CXXWARNINGS="-W -Wall ${WARN_NO_UNINITIALIZED}"
- CXXSTATIC_BINDING="-Bstatic"
- CXXDYNAMIC_BINDING="-Bdynamic"
- CXXSTUFF="${MINIMAL_TOC}"
-
- for flag in $CXXFLAGS; do
- case $flag in
- -O) CXXOPT="$CXXOPT -O2";;
- -O2) CXXOPT="$CXXOPT -O2";;
- -O*) CXXOPT="$CXXOPT $flag";;
- -g*) CXXDEBUG="$flag";;
- -W*) CXXWARNINGS="$CXXWARNINGS $flag";;
- *) CXXSTUFF="$CXXSTUFF $flag";;
- esac
- done
- else
- case "$CXX" in
- *CC)
- case "$host_os" in
- *solaris*)
- # We're using CC on Solaris. Debugging with GDB requires -xs.
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) accepts -xs""... $ac_c" 1>&6
- echo "configure:2820: checking whether the C++ compiler (${CXX}) accepts -xs" >&5
- if eval "test \"`echo '$''{'ice_cv_xs_debug_info'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- ice_save_cxxflags="$CXXFLAGS"
- CXXFLAGS=-xs
- cat > conftest.$ac_ext <<EOF
- #line 2836 "configure"
- #include "confdefs.h"
-
- int main() {
- int a;
- ; return 0; }
- EOF
- if { (eval echo configure:2843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_xs_debug_info=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_xs_debug_info=no
- fi
- rm -f conftest*
- CXXFLAGS="$ice_save_cxxflags"
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_xs_debug_info" 1>&6
- if test "$ice_cv_xs_debug_info" = yes; then
- XS_DEBUG_INFO=-xs
- fi
-
-
- ;;
- *)
- ;;
- esac
- ;;
- *)
- ;;
- esac
-
- CXXOPT="-DNDEBUG"
- CXXDEBUG="${XS_DEBUG_INFO}"
- CXXWARNINGS=
- CXXSTATIC_BINDING="-static"
- CXXDYNAMIC_BINDING=
- CXXSTUFF=
-
- for flag in $CXXFLAGS; do
- case $flag in
- -O*) CXXOPT="$CXXOPT $flag";;
- -g*) CXXDEBUG="$CXXDEBUG $flag";;
- -W*) CXXWARNINGS="$CXXWARNINGS $flag";;
- *) CXXSTUFF="$CXXSTUFF $flag";;
- esac
- done
- fi
- echo $ac_n "checking for C++ compiler (${CXX}) warning options""... $ac_c" 1>&6
- echo "configure:2896: checking for C++ compiler (${CXX}) warning options" >&5
- echo "$ac_t""${CXXWARNINGS}" 1>&6
- echo $ac_n "checking for C++ compiler (${CXX}) optimizing options""... $ac_c" 1>&6
- echo "configure:2899: checking for C++ compiler (${CXX}) optimizing options" >&5
- echo "$ac_t""${CXXOPT}" 1>&6
- echo $ac_n "checking for C++ compiler (${CXX}) debugging options""... $ac_c" 1>&6
- echo "configure:2902: checking for C++ compiler (${CXX}) debugging options" >&5
- echo "$ac_t""${CXXDEBUG}" 1>&6
- echo $ac_n "checking for C++ compiler (${CXX}) extra libraries""... $ac_c" 1>&6
- echo "configure:2905: checking for C++ compiler (${CXX}) extra libraries" >&5
- echo "$ac_t""${CXXLIBS}" 1>&6
- echo $ac_n "checking for C++ compiler (${CXX}) static binding options""... $ac_c" 1>&6
- echo "configure:2908: checking for C++ compiler (${CXX}) static binding options" >&5
- echo "$ac_t""${CXXSTATIC_BINDING}" 1>&6
- echo $ac_n "checking for C++ compiler (${CXX}) dynamic binding options""... $ac_c" 1>&6
- echo "configure:2911: checking for C++ compiler (${CXX}) dynamic binding options" >&5
- echo "$ac_t""${CXXDYNAMIC_BINDING}" 1>&6
- if test "$GXX" = yes; then
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) accepts -fexternal-templates""... $ac_c" 1>&6
- echo "configure:2917: checking whether the C++ compiler (${CXX}) accepts -fexternal-templates" >&5
- if eval "test \"`echo '$''{'ice_cv_external_templates'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- ice_save_cxxflags="$CXXFLAGS"
- CXXFLAGS=-fexternal-templates
- cat > conftest.$ac_ext <<EOF
- #line 2933 "configure"
- #include "confdefs.h"
-
- int main() {
- int a;
- ; return 0; }
- EOF
- if { (eval echo configure:2940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_external_templates=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_external_templates=no
- fi
- rm -f conftest*
- CXXFLAGS="$ice_save_cxxflags"
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_external_templates" 1>&6
- if test "$ice_cv_external_templates" = yes; then
- EXTERNAL_TEMPLATES=-fexternal-templates
- fi
-
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) accepts -felide-constructors""... $ac_c" 1>&6
- echo "configure:2970: checking whether the C++ compiler (${CXX}) accepts -felide-constructors" >&5
- if eval "test \"`echo '$''{'ice_cv_elide_constructors'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- ice_save_cxxflags="$CXXFLAGS"
- CXXFLAGS=-felide-constructors
- cat > conftest.$ac_ext <<EOF
- #line 2986 "configure"
- #include "confdefs.h"
-
- int main() {
- int a;
- ; return 0; }
- EOF
- if { (eval echo configure:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_elide_constructors=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_elide_constructors=no
- fi
- rm -f conftest*
- CXXFLAGS="$ice_save_cxxflags"
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_elide_constructors" 1>&6
- if test "$ice_cv_elide_constructors" = yes; then
- ELIDE_CONSTRUCTORS=-felide-constructors
- fi
-
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) accepts -fconserve-space""... $ac_c" 1>&6
- echo "configure:3023: checking whether the C++ compiler (${CXX}) accepts -fconserve-space" >&5
- if eval "test \"`echo '$''{'ice_cv_conserve_space'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- ice_save_cxxflags="$CXXFLAGS"
- CXXFLAGS=-fconserve-space
- cat > conftest.$ac_ext <<EOF
- #line 3039 "configure"
- #include "confdefs.h"
-
- int main() {
- int a;
- ; return 0; }
- EOF
- if { (eval echo configure:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_conserve_space=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_conserve_space=no
- fi
- rm -f conftest*
- CXXFLAGS="$ice_save_cxxflags"
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_conserve_space" 1>&6
- if test "$ice_cv_conserve_space" = yes; then
- CONSERVE_SPACE=-fconserve-space
- fi
-
-
- fi
- CXXSTUFF="$CXXSTUFF $EXTERNAL_TEMPLATES $ELIDE_CONSTRUCTORS $CONSERVE_SPACE"
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports bool types""... $ac_c" 1>&6
- echo "configure:3079: checking whether the C++ compiler (${CXX}) supports bool types" >&5
- if eval "test \"`echo '$''{'ice_cv_have_bool'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 3093 "configure"
- #include "confdefs.h"
-
- int main() {
- bool b = true;
- ; return 0; }
- EOF
- if { (eval echo configure:3100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_bool=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_bool=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_bool" 1>&6
- if test "$ice_cv_have_bool" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_BOOL 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports explicit constructors""... $ac_c" 1>&6
- echo "configure:3131: checking whether the C++ compiler (${CXX}) supports explicit constructors" >&5
- if eval "test \"`echo '$''{'ice_cv_have_explicit'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 3145 "configure"
- #include "confdefs.h"
-
- int main() {
- class A { public: explicit A(int) {} };
- ; return 0; }
- EOF
- if { (eval echo configure:3152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_explicit=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_explicit=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_explicit" 1>&6
- if test "$ice_cv_have_explicit" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_EXPLICIT 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports mutable members""... $ac_c" 1>&6
- echo "configure:3183: checking whether the C++ compiler (${CXX}) supports mutable members" >&5
- if eval "test \"`echo '$''{'ice_cv_have_mutable'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 3197 "configure"
- #include "confdefs.h"
-
- int main() {
- struct A { mutable int x; };
- ; return 0; }
- EOF
- if { (eval echo configure:3204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_mutable=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_mutable=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_mutable" 1>&6
- if test "$ice_cv_have_mutable" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_MUTABLE 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports exception handling""... $ac_c" 1>&6
- echo "configure:3235: checking whether the C++ compiler (${CXX}) supports exception handling" >&5
- if eval "test \"`echo '$''{'ice_cv_have_exceptions'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 3249 "configure"
- #include "confdefs.h"
-
- int main() {
- try { throw 1; } catch(...) { }
- ; return 0; }
- EOF
- if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_exceptions=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_exceptions=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_exceptions" 1>&6
- if test "$ice_cv_have_exceptions" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_EXCEPTIONS 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports standard exceptions""... $ac_c" 1>&6
- echo "configure:3287: checking whether the C++ compiler (${CXX}) supports standard exceptions" >&5
- if eval "test \"`echo '$''{'ice_cv_have_std_exceptions'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 3301 "configure"
- #include "confdefs.h"
-
- #include <stdexcept>
- #include <math.h>
-
- int main() {
- try { throw runtime_error("too many fingers on keyboard"); }
- catch(const exception& e) { const char *s = e.what(); }
- ; return 0; }
- EOF
- if { (eval echo configure:3312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_std_exceptions=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_std_exceptions=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_std_exceptions" 1>&6
- if test "$ice_cv_have_std_exceptions" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_STD_EXCEPTIONS 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports namespaces""... $ac_c" 1>&6
- echo "configure:3343: checking whether the C++ compiler (${CXX}) supports namespaces" >&5
- if eval "test \"`echo '$''{'ice_cv_have_namespace'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 3357 "configure"
- #include "confdefs.h"
-
- namespace one {
- extern int f();
- };
-
- int one::f() {};
-
- using namespace one;
-
- int main() {
- f()
- ; return 0; }
- EOF
- if { (eval echo configure:3372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_namespace=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_namespace=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_namespace" 1>&6
- if test "$ice_cv_have_namespace" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_NAMESPACE 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports run-time type info""... $ac_c" 1>&6
- echo "configure:3403: checking whether the C++ compiler (${CXX}) supports run-time type info" >&5
- if eval "test \"`echo '$''{'ice_cv_have_typeinfo'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 3417 "configure"
- #include "confdefs.h"
-
- #include <typeinfo>
- #include <math.h>
-
- int main() {
- int x; const char *s = typeid(x).name();
- ; return 0; }
- EOF
- if { (eval echo configure:3427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_typeinfo=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_typeinfo=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_typeinfo" 1>&6
- if test "$ice_cv_have_typeinfo" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_TYPEINFO 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports long long types""... $ac_c" 1>&6
- echo "configure:3458: checking whether the C++ compiler (${CXX}) supports long long types" >&5
- if eval "test \"`echo '$''{'ice_cv_have_long_long'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 3472 "configure"
- #include "confdefs.h"
-
- int main() {
- long long a;
- ; return 0; }
- EOF
- if { (eval echo configure:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_long_long=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_long_long=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_long_long" 1>&6
- if test "$ice_cv_have_long_long" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_LONG_LONG 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports named return values""... $ac_c" 1>&6
- echo "configure:3510: checking whether the C++ compiler (${CXX}) supports named return values" >&5
- if eval "test \"`echo '$''{'ice_cv_have_named_return_values'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 3524 "configure"
- #include "confdefs.h"
-
- struct X {
- int f();
- };
-
- int X::f() return i;
- {
- i = 42;
- }
-
- int main() {
- /* empty */
- ; return 0; }
- EOF
- if { (eval echo configure:3540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_named_return_values=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_named_return_values=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_named_return_values" 1>&6
- if test "$ice_cv_have_named_return_values" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_NAMED_RETURN_VALUES 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports __PRETTY_FUNCTION__""... $ac_c" 1>&6
- echo "configure:3571: checking whether the C++ compiler (${CXX}) supports __PRETTY_FUNCTION__" >&5
- if eval "test \"`echo '$''{'ice_cv_have_pretty_function'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- # Testing compilation alone does not suffice --
- # some GCC versions have trouble in linking.
- cat > conftest.$ac_ext <<EOF
- #line 3587 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- int main() {
- puts(__PRETTY_FUNCTION__);
- ; return 0; }
- EOF
- if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- ice_cv_have_pretty_function=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_pretty_function=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_pretty_function" 1>&6
- if test "$ice_cv_have_pretty_function" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_PRETTY_FUNCTION 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports overloaded new[]""... $ac_c" 1>&6
- echo "configure:3625: checking whether the C++ compiler (${CXX}) supports overloaded new[]" >&5
- if eval "test \"`echo '$''{'ice_cv_have_array_operator_new'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 3639 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- void *operator new[](size_t nbytes);
- int main() {
- /* empty */
- ; return 0; }
- EOF
- if { (eval echo configure:3647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_array_operator_new=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_array_operator_new=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_array_operator_new" 1>&6
- if test "$ice_cv_have_array_operator_new" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_ARRAY_OPERATOR_NEW 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports placement new""... $ac_c" 1>&6
- echo "configure:3678: checking whether the C++ compiler (${CXX}) supports placement new" >&5
- if eval "test \"`echo '$''{'ice_cv_have_placement_new'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 3692 "configure"
- #include "confdefs.h"
- #include <new.h>
- int main() {
- int *pi = new (operator new (sizeof(int))) int;
- ; return 0; }
- EOF
- if { (eval echo configure:3699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_placement_new=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_placement_new=no
- fi
- rm -f conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_placement_new" 1>&6
- if test "$ice_cv_have_placement_new" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_PLACEMENT_NEW 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether the C++ compiler (${CXX}) supports ANSI lifetime of temporaries""... $ac_c" 1>&6
- echo "configure:3730: checking whether the C++ compiler (${CXX}) supports ANSI lifetime of temporaries" >&5
- if eval "test \"`echo '$''{'ice_cv_have_ansi_lifetime_of_temporaries'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- if test "$cross_compiling" = yes; then
-
- if test "$GXX" = yes; then
- # Cross-compiling with GNU C++: Guess on the version number
- cat > conftest.$ac_ext <<EOF
- #line 3748 "configure"
- #include "confdefs.h"
-
- /* Check for GCC versions lower than 2.6 */
- #ifdef __GNUC__
- #if __GNUC__ < 2
- #error
- #endif
- #if !defined(__GNUC_MINOR__)
- #error
- #endif
- #if __GNUC_MINOR__ < 6
- #error
- #endif
- #endif
-
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- ice_cv_have_ansi_lifetime_of_temporaries=yes
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_ansi_lifetime_of_temporaries=no
- fi
- rm -f conftest*
- else
- # Cross-compiling and not GNU C++: Play it safe.
- ice_cv_have_ansi_lifetime_of_temporaries=no
- fi
-
- else
- cat > conftest.$ac_ext <<EOF
- #line 3786 "configure"
- #include "confdefs.h"
- #ifdef __cplusplus
- extern "C" void exit(int);
- #endif
-
- // This program returns 0 if compiled with ANSI C++ compliant
- // lifetime of temporaries; 1, otherwise.
- static int destructor_called = 0;
- struct X {
- int dummy;
- X(int) {}
- X(const X&) {}
- ~X() { destructor_called = 1; }
- };
- int f(const X&) { return destructor_called; }
- X g(const X& x) { return x; }
- X h() { return 1; }
- int main() { return f(g(h())); }
-
- EOF
- if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- ice_cv_have_ansi_lifetime_of_temporaries=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ice_cv_have_ansi_lifetime_of_temporaries=no
- fi
- rm -fr conftest*
- fi
-
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
- fi
-
- echo "$ac_t""$ice_cv_have_ansi_lifetime_of_temporaries" 1>&6
- if test "$ice_cv_have_ansi_lifetime_of_temporaries" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_ANSI_LIFETIME_OF_TEMPORARIES 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking for a traditional C preprocessor""... $ac_c" 1>&6
- echo "configure:3840: checking for a traditional C preprocessor" >&5
- if eval "test \"`echo '$''{'ice_cv_traditional_cpp'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- cat > conftest.c << EOF
- #if 1
- "this is an unterminated string
- #endif
- EOF
- ice_cv_traditional_cpp=
- ice_save_cpp="$CPP"
- ice_save_cppflags="$CPPFLAGS"
- for ice_cpp in "$CPP" "$CC -E" "/lib/cpp"; do
- for ice_cppflags in '' ' -traditional-cpp' ' -traditional'; do
- CPP="$ice_cpp"
- CPPFLAGS="$ice_cppflags"
- cat > conftest.$ac_ext <<EOF
- #line 3858 "configure"
- #include "confdefs.h"
-
- #if 1
- "this is an unterminated string
- #endif
-
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- ice_cv_traditional_cpp="${CPP}${CPPFLAGS}"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- if test "$ice_cv_traditional_cpp" != ""; then
- break 2
- fi
- done
- done
- CPP="$ice_save_cpp"
- CPPFLAGS="$ice_save_cppflags"
-
- fi
-
- echo "$ac_t""$ice_cv_traditional_cpp" 1>&6
- CPP_TRADITIONAL="$ice_cv_traditional_cpp"
-
-
- echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
- echo "configure:3893: checking for Cygwin32 environment" >&5
- if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3898 "configure"
- #include "confdefs.h"
-
- int main() {
- return __CYGWIN32__;
- ; return 0; }
- EOF
- if { (eval echo configure:3905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- am_cv_cygwin32=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- am_cv_cygwin32=no
- fi
- rm -f conftest*
- rm -f conftest*
- fi
-
- echo "$ac_t""$am_cv_cygwin32" 1>&6
- CYGWIN32=
- test "$am_cv_cygwin32" = yes && CYGWIN32=yes
- echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
- echo "configure:3922: checking for Mingw32 environment" >&5
- if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3927 "configure"
- #include "confdefs.h"
-
- int main() {
- return __MINGW32__;
- ; return 0; }
- EOF
- if { (eval echo configure:3934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- am_cv_mingw32=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- am_cv_mingw32=no
- fi
- rm -f conftest*
- rm -f conftest*
- fi
-
- echo "$ac_t""$am_cv_mingw32" 1>&6
- MINGW32=
- test "$am_cv_mingw32" = yes && MINGW32=yes
-
-
- echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
- echo "configure:3953: checking for executable suffix" >&5
- if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
- am_cv_exeext=.exe
- else
- cat > am_c_test.c << 'EOF'
- int main() {
- /* Nothing needed here */
- }
- EOF
- ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
- am_cv_exeext=
- for file in am_c_test.*; do
- case $file in
- *.c) ;;
- *.o) ;;
- *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
- esac
- done
- rm -f am_c_test*
- fi
-
- test x"${am_cv_exeext}" = x && am_cv_exeext=no
- fi
- EXEEXT=""
- test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
- echo "$ac_t""${am_cv_exeext}" 1>&6
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- ddd_have_connect_in_libc=no
- echo $ac_n "checking for connect""... $ac_c" 1>&6
- echo "configure:3992: checking for connect" >&5
- if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3997 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char connect(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_connect) || defined (__stub___connect)
- choke me
- #else
- connect();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_connect=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_connect=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ddd_have_connect_in_libc=yes
- else
- echo "$ac_t""no" 1>&6
- fi
-
- ddd_have_gethostbyname_in_libc=no
- echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
- echo "configure:4044: checking for gethostbyname" >&5
- if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4049 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
- choke me
- #else
- gethostbyname();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ddd_have_gethostbyname_in_libc=yes
- else
- echo "$ac_t""no" 1>&6
- fi
-
- ddd_have_regcmp_in_libc=no
- echo $ac_n "checking for regcmp""... $ac_c" 1>&6
- echo "configure:4096: checking for regcmp" >&5
- if eval "test \"`echo '$''{'ac_cv_func_regcmp'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4101 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char regcmp(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char regcmp();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_regcmp) || defined (__stub___regcmp)
- choke me
- #else
- regcmp();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_regcmp=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_regcmp=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'regcmp`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ddd_have_regcmp_in_libc=yes
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test "$ddd_have_connect_in_libc" != yes; then
- echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
- echo "configure:4148: checking for connect in -lsocket" >&5
- ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4156 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
-
- int main() {
- connect()
- ; return 0; }
- EOF
- if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBSOCKET="-lsocket"
- else
- echo "$ac_t""no" 1>&6
- fi
-
-
- fi
- if test "$ddd_have_gethostbyname_in_libc" != yes; then
- echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
- echo "configure:4194: checking for gethostbyname in -lnsl" >&5
- ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4202 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
-
- int main() {
- gethostbyname()
- ; return 0; }
- EOF
- if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBNSL="-lnsl"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- fi
-
- if test "$ddd_have_regcmp_in_libc" != yes; then
- echo $ac_n "checking for regcmp in -lgen""... $ac_c" 1>&6
- echo "configure:4240: checking for regcmp in -lgen" >&5
- ac_lib_var=`echo gen'_'regcmp | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lgen $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4248 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char regcmp();
-
- int main() {
- regcmp()
- ; return 0; }
- EOF
- if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBGEN="-lgen"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- fi
-
- echo $ac_n "checking for yyerror in -ly""... $ac_c" 1>&6
- echo "configure:4285: checking for yyerror in -ly" >&5
- ac_lib_var=`echo y'_'yyerror | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-ly $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4293 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char yyerror();
-
- int main() {
- yyerror()
- ; return 0; }
- EOF
- if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBY="-ly"
- else
- echo "$ac_t""no" 1>&6
- fi
-
-
- echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
- echo "configure:4329: checking for sin in -lm" >&5
- ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lm $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4337 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sin();
-
- int main() {
- sin()
- ; return 0; }
- EOF
- if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBM="-lm"
- else
- echo "$ac_t""no" 1>&6
- fi
-
-
- echo $ac_n "checking for open in -lc""... $ac_c" 1>&6
- echo "configure:4373: checking for open in -lc" >&5
- ac_lib_var=`echo c'_'open | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4381 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char open();
-
- int main() {
- open()
- ; return 0; }
- EOF
- if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBC="-lc"
- else
- echo "$ac_t""no" 1>&6
- fi
-
-
- if test "$GXX" != yes; then
- echo $ac_n "checking for main in -lcxxinst""... $ac_c" 1>&6
- echo "configure:4418: checking for main in -lcxxinst" >&5
- ac_lib_var=`echo cxxinst'_'main | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lcxxinst $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4426 "configure"
- #include "confdefs.h"
-
- int main() {
- main()
- ; return 0; }
- EOF
- if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- CXXLIBS="-lcxxinst $CXXLIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- fi
- LIBTERMCAP="../termcap/libtermcap.a"
- for termlib in mytinfo ncurses curses termcap terminfo termlib; do
- echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
- echo "configure:4457: checking for tgetent in -l${termlib}" >&5
- ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-l${termlib} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4465 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char tgetent();
-
- int main() {
- tgetent()
- ; return 0; }
- EOF
- if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBTERMCAP="-l${termlib}"; break
- else
- echo "$ac_t""no" 1>&6
- fi
-
- done
-
- LIBIBERTY="../libiberty/libiberty.a"
- echo $ac_n "checking for xstrerror in -liberty""... $ac_c" 1>&6
- echo "configure:4503: checking for xstrerror in -liberty" >&5
- ac_lib_var=`echo iberty'_'xstrerror | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-liberty $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4511 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char xstrerror();
-
- int main() {
- xstrerror()
- ; return 0; }
- EOF
- if { (eval echo configure:4525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBIBERTY="-liberty"
- else
- echo "$ac_t""no" 1>&6
- fi
-
-
- if test "$with_x" = no; then
- { echo "configure: error: $DDD requires the X window system to compile and run.
- Please do not use the configure option '--without-x'." 1>&2; exit 1; }
- fi
- if test "$with_motif" = no; then
- { echo "configure: error: $DDD requires Motif to compile and run.
- Please do not use the configure option '--without-motif'." 1>&2; exit 1; }
- fi
- if test "$with_x" != no; then
- ice_save_LIBS="$LIBS"
- ice_save_CFLAGS="$CFLAGS"
- ice_save_CPPFLAGS="$CPPFLAGS"
- ice_save_LDFLAGS="$LDFLAGS"
- # If we find X, set shell vars x_includes and x_libraries to the
- # paths, otherwise set no_x=yes.
- # Uses ac_ vars as temps to allow command line to override cache and checks.
- # --without-x overrides everything else, but does not touch the cache.
- echo $ac_n "checking for X""... $ac_c" 1>&6
- echo "configure:4564: checking for X" >&5
-
- # Check whether --with-x or --without-x was given.
- if test "${with_x+set}" = set; then
- withval="$with_x"
- :
- fi
-
- # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
- if test "x$with_x" = xno; then
- # The user explicitly disabled X.
- have_x=disabled
- else
- if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
- # Both variables are already set.
- have_x=yes
- else
- if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # One or both of the vars are not set, and there is no cached value.
- ac_x_includes=NO ac_x_libraries=NO
- rm -fr conftestdir
- if mkdir conftestdir; then
- cd conftestdir
- # Make sure to not put "make" in the Imakefile rules, since we grep it out.
- cat > Imakefile <<'EOF'
- acfindx:
- @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
- EOF
- if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
- eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
- # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
- for ac_extension in a so sl; do
- if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
- test -f $ac_im_libdir/libX11.$ac_extension; then
- ac_im_usrlibdir=$ac_im_libdir; break
- fi
- done
- # Screen out bogus values from the imake configuration. They are
- # bogus both because they are the default anyway, and because
- # using them would break gcc on systems where it needs fixed includes.
- case "$ac_im_incroot" in
- /usr/include) ;;
- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
- esac
- case "$ac_im_usrlibdir" in
- /usr/lib | /lib) ;;
- *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
- esac
- fi
- cd ..
- rm -fr conftestdir
- fi
-
- if test "$ac_x_includes" = NO; then
- # Guess where to find include files, by looking for this one X11 .h file.
- test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
-
- # First, try using that file with no special directory specified.
- cat > conftest.$ac_ext <<EOF
- #line 4626 "configure"
- #include "confdefs.h"
- #include <$x_direct_test_include>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- # We can compile using X headers with no special include directory.
- ac_x_includes=
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- # Look for the header file in a standard set of common directories.
- # Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in \
- /usr/X11/include \
- /usr/X11R6/include \
- /usr/X11R5/include \
- /usr/X11R4/include \
- \
- /usr/include/X11 \
- /usr/include/X11R6 \
- /usr/include/X11R5 \
- /usr/include/X11R4 \
- \
- /usr/local/X11/include \
- /usr/local/X11R6/include \
- /usr/local/X11R5/include \
- /usr/local/X11R4/include \
- \
- /usr/local/include/X11 \
- /usr/local/include/X11R6 \
- /usr/local/include/X11R5 \
- /usr/local/include/X11R4 \
- \
- /usr/X386/include \
- /usr/x386/include \
- /usr/XFree86/include/X11 \
- \
- /usr/include \
- /usr/local/include \
- /usr/unsupported/include \
- /usr/athena/include \
- /usr/local/x11r5/include \
- /usr/lpp/Xamples/include \
- \
- /usr/openwin/include \
- /usr/openwin/share/include \
- ; \
- do
- if test -r "$ac_dir/$x_direct_test_include"; then
- ac_x_includes=$ac_dir
- break
- fi
- done
- fi
- rm -f conftest*
- fi # $ac_x_includes = NO
-
- if test "$ac_x_libraries" = NO; then
- # Check for the libraries.
-
- test -z "$x_direct_test_library" && x_direct_test_library=Xt
- test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
-
- # See if we find them without any special options.
- # Don't add to $LIBS permanently.
- ac_save_LIBS="$LIBS"
- LIBS="-l$x_direct_test_library $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4700 "configure"
- #include "confdefs.h"
-
- int main() {
- ${x_direct_test_function}()
- ; return 0; }
- EOF
- if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
- # We can link X programs with no special library path.
- ac_x_libraries=
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
- # First see if replacing the include by lib works.
- # Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
- /usr/X11/lib \
- /usr/X11R6/lib \
- /usr/X11R5/lib \
- /usr/X11R4/lib \
- \
- /usr/lib/X11 \
- /usr/lib/X11R6 \
- /usr/lib/X11R5 \
- /usr/lib/X11R4 \
- \
- /usr/local/X11/lib \
- /usr/local/X11R6/lib \
- /usr/local/X11R5/lib \
- /usr/local/X11R4/lib \
- \
- /usr/local/lib/X11 \
- /usr/local/lib/X11R6 \
- /usr/local/lib/X11R5 \
- /usr/local/lib/X11R4 \
- \
- /usr/X386/lib \
- /usr/x386/lib \
- /usr/XFree86/lib/X11 \
- \
- /usr/lib \
- /usr/local/lib \
- /usr/unsupported/lib \
- /usr/athena/lib \
- /usr/local/x11r5/lib \
- /usr/lpp/Xamples/lib \
- /lib/usr/lib/X11 \
- \
- /usr/openwin/lib \
- /usr/openwin/share/lib \
- ; \
- do
- for ac_extension in a so sl; do
- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
- ac_x_libraries=$ac_dir
- break 2
- fi
- done
- done
- fi
- rm -f conftest*
- fi # $ac_x_libraries = NO
-
- if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
- # Didn't find X anywhere. Cache the known absence of X.
- ac_cv_have_x="have_x=no"
- else
- # Record where we found X for the cache.
- ac_cv_have_x="have_x=yes \
- ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
- fi
- fi
- fi
- eval "$ac_cv_have_x"
- fi # $with_x != no
-
- if test "$have_x" != yes; then
- echo "$ac_t""$have_x" 1>&6
- no_x=yes
- else
- # If each of the values was on the command line, it overrides each guess.
- test "x$x_includes" = xNONE && x_includes=$ac_x_includes
- test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
- # Update the cache value to reflect the command line values.
- ac_cv_have_x="have_x=yes \
- ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
- echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
- fi
-
- if test "$no_x" = yes; then
- # Not all programs may use this symbol, but it does not hurt to define it.
- cat >> confdefs.h <<\EOF
- #define X_DISPLAY_MISSING 1
- EOF
-
- X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
- else
- if test -n "$x_includes"; then
- X_CFLAGS="$X_CFLAGS -I$x_includes"
- fi
-
- # It would also be nice to do this for all -L options, not just this one.
- if test -n "$x_libraries"; then
- X_LIBS="$X_LIBS -L$x_libraries"
- # For Solaris; some versions of Sun CC require a space after -R and
- # others require no space. Words are not sufficient . . . .
- case "`(uname -sr) 2>/dev/null`" in
- "SunOS 5"*)
- echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
- echo "configure:4813: checking whether -R must be followed by a space" >&5
- ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
- cat > conftest.$ac_ext <<EOF
- #line 4816 "configure"
- #include "confdefs.h"
-
- int main() {
-
- ; return 0; }
- EOF
- if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- ac_R_nospace=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_nospace=no
- fi
- rm -f conftest*
- if test $ac_R_nospace = yes; then
- echo "$ac_t""no" 1>&6
- X_LIBS="$X_LIBS -R$x_libraries"
- else
- LIBS="$ac_xsave_LIBS -R $x_libraries"
- cat > conftest.$ac_ext <<EOF
- #line 4839 "configure"
- #include "confdefs.h"
-
- int main() {
-
- ; return 0; }
- EOF
- if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- ac_R_space=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_space=no
- fi
- rm -f conftest*
- if test $ac_R_space = yes; then
- echo "$ac_t""yes" 1>&6
- X_LIBS="$X_LIBS -R $x_libraries"
- else
- echo "$ac_t""neither works" 1>&6
- fi
- fi
- LIBS="$ac_xsave_LIBS"
- esac
- fi
-
- # Check for system-dependent libraries X programs must link with.
- # Do this before checking for the system-independent R6 libraries
- # (-lICE), since we may need -lsocket or whatever for X linking.
-
- if test "$ISC" = yes; then
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
- else
- # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
- # libraries were built with DECnet support. And karl@cs.umb.edu says
- # the Alpha needs dnet_stub (dnet does not exist).
- echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
- echo "configure:4878: checking for dnet_ntoa in -ldnet" >&5
- ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-ldnet $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4886 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnet_ntoa();
-
- int main() {
- dnet_ntoa()
- ; return 0; }
- EOF
- if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test $ac_cv_lib_dnet_dnet_ntoa = no; then
- echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
- echo "configure:4922: checking for dnet_ntoa in -ldnet_stub" >&5
- ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-ldnet_stub $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4930 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnet_ntoa();
-
- int main() {
- dnet_ntoa()
- ; return 0; }
- EOF
- if { (eval echo configure:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- fi
-
- # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
- # to get the SysV transport functions.
- # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
- # needs -lnsl.
- # The nsl library prevents programs from opening the X display
- # on Irix 5.2, according to dickey@clark.net.
- echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
- echo "configure:4973: checking for gethostbyname" >&5
- if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4978 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
- choke me
- #else
- gethostbyname();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test $ac_cv_func_gethostbyname = no; then
- echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
- echo "configure:5025: checking for gethostbyname in -lnsl" >&5
- ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5033 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
-
- int main() {
- gethostbyname()
- ; return 0; }
- EOF
- if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- fi
-
- # lieder@skyler.mavd.honeywell.com says without -lsocket,
- # socket/setsockopt and other routines are undefined under SCO ODT
- # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
- # on later versions), says simon@lia.di.epfl.ch: it contains
- # gethostby* variants that don't use the nameserver (or something).
- # -lsocket must be given before -lnsl if both are needed.
- # We assume that if connect needs -lnsl, so does gethostbyname.
- echo $ac_n "checking for connect""... $ac_c" 1>&6
- echo "configure:5077: checking for connect" >&5
- if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5082 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char connect(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_connect) || defined (__stub___connect)
- choke me
- #else
- connect();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:5108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_connect=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_connect=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test $ac_cv_func_connect = no; then
- echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
- echo "configure:5129: checking for connect in -lsocket" >&5
- ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5137 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
-
- int main() {
- connect()
- ; return 0; }
- EOF
- if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- fi
-
- # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
- echo $ac_n "checking for remove""... $ac_c" 1>&6
- echo "configure:5175: checking for remove" >&5
- if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5180 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char remove(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char remove();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_remove) || defined (__stub___remove)
- choke me
- #else
- remove();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_remove=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_remove=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test $ac_cv_func_remove = no; then
- echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
- echo "configure:5227: checking for remove in -lposix" >&5
- ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lposix $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5235 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char remove();
-
- int main() {
- remove()
- ; return 0; }
- EOF
- if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- fi
-
- # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
- echo $ac_n "checking for shmat""... $ac_c" 1>&6
- echo "configure:5273: checking for shmat" >&5
- if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5278 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shmat(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shmat();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_shmat) || defined (__stub___shmat)
- choke me
- #else
- shmat();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_shmat=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_shmat=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test $ac_cv_func_shmat = no; then
- echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
- echo "configure:5325: checking for shmat in -lipc" >&5
- ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lipc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5333 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shmat();
-
- int main() {
- shmat()
- ; return 0; }
- EOF
- if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- fi
- fi
-
- # Check for libraries that X11R6 Xt/Xaw programs need.
- ac_save_LDFLAGS="$LDFLAGS"
- test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
- # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
- # check for ICE first), but we must link in the order -lSM -lICE or
- # we get undefined symbols. So assume we have SM if we have ICE.
- # These have to be linked with before -lX11, unlike the other
- # libraries we check for below, so use a different variable.
- # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
- echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
- echo "configure:5380: checking for IceConnectionNumber in -lICE" >&5
- ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lICE $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5388 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char IceConnectionNumber();
-
- int main() {
- IceConnectionNumber()
- ; return 0; }
- EOF
- if { (eval echo configure:5402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- LDFLAGS="$ac_save_LDFLAGS"
-
- fi
-
-
-
- motif_includes=
- motif_libraries=
- # Check whether --with-motif or --without-motif was given.
- if test "${with_motif+set}" = set; then
- withval="$with_motif"
- :
- fi
-
- if test "$with_motif" = "no"
- then
- motif_includes=no
- motif_libraries=no
- fi
- # Check whether --with-motif-includes or --without-motif-includes was given.
- if test "${with_motif_includes+set}" = set; then
- withval="$with_motif_includes"
- motif_includes="$withval"
- fi
-
- # Check whether --with-motif-libraries or --without-motif-libraries was given.
- if test "${with_motif_libraries+set}" = set; then
- withval="$with_motif_libraries"
- motif_libraries="$withval"
- fi
-
- echo $ac_n "checking for Motif""... $ac_c" 1>&6
- echo "configure:5454: checking for Motif" >&5
- #
- #
- # Search the include files.
- #
- if test "$motif_includes" = ""; then
- if eval "test \"`echo '$''{'ice_cv_motif_includes'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_motif_save_LIBS="$LIBS"
- ice_motif_save_CFLAGS="$CFLAGS"
- ice_motif_save_CPPFLAGS="$CPPFLAGS"
- ice_motif_save_LDFLAGS="$LDFLAGS"
- #
- LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
- CFLAGS="$X_CFLAGS $CFLAGS"
- CPPFLAGS="$X_CFLAGS $CPPFLAGS"
- LDFLAGS="$X_LIBS $LDFLAGS"
- #
- cat > conftest.$ac_ext <<EOF
- #line 5475 "configure"
- #include "confdefs.h"
- #include <Xm/Xm.h>
- int main() {
- int a;
- ; return 0; }
- EOF
- if { (eval echo configure:5482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
-
- # Xm/Xm.h is in the standard search path.
- ice_cv_motif_includes=
-
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- # Xm/Xm.h is not in the standard search path.
- # Locate it and put its directory in `motif_includes'
- #
- # /usr/include/Motif* are used on HP-UX (Motif).
- # /usr/include/X11* are used on HP-UX (X and Athena).
- # /usr/dt is used on Solaris (Motif).
- # /usr/openwin is used on Solaris (X and Athena).
- # Other directories are just guesses.
- for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
- /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \
- /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \
- /usr/dt/include /usr/openwin/include \
- /usr/dt/*/include /opt/*/include /usr/include/Motif* \
- "${prefix}"/*/include /usr/*/include /usr/local/*/include \
- "${prefix}"/include/* /usr/include/* /usr/local/include/*; do
- if test -f "$dir/Xm/Xm.h"; then
- ice_cv_motif_includes="$dir"
- break
- fi
- done
- if test "$ice_cv_motif_includes" = ""; then
- ice_cv_motif_includes=no
- fi
-
- fi
- rm -f conftest*
- #
- LIBS="$ice_motif_save_LIBS"
- CFLAGS="$ice_motif_save_CFLAGS"
- CPPFLAGS="$ice_motif_save_CPPFLAGS"
- LDFLAGS="$ice_motif_save_LDFLAGS"
-
- fi
-
- motif_includes="$ice_cv_motif_includes"
- fi
- #
- #
- # Now for the libraries.
- #
- if test "$motif_libraries" = ""; then
- if eval "test \"`echo '$''{'ice_cv_motif_libraries'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_motif_save_LIBS="$LIBS"
- ice_motif_save_CFLAGS="$CFLAGS"
- ice_motif_save_CPPFLAGS="$CPPFLAGS"
- ice_motif_save_LDFLAGS="$LDFLAGS"
- #
- LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
- CFLAGS="$X_CFLAGS $CFLAGS"
- CPPFLAGS="$X_CFLAGS $CPPFLAGS"
- LDFLAGS="$X_LIBS $LDFLAGS"
- #
- # We use XtToolkitInitialize() here since it takes no arguments
- # and thus also works with a C++ compiler.
- cat > conftest.$ac_ext <<EOF
- #line 5551 "configure"
- #include "confdefs.h"
-
- #include <X11/Intrinsic.h>
- #include <Xm/Xm.h>
-
- int main() {
- XtToolkitInitialize();
- ; return 0; }
- EOF
- if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
-
- # libXm.a is in the standard search path.
- ice_cv_motif_libraries=
-
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- # libXm.a is not in the standard search path.
- # Locate it and put its directory in `motif_libraries'
- #
- # /usr/lib/Motif* are used on HP-UX (Motif).
- # /usr/lib/X11* are used on HP-UX (X and Athena).
- # /usr/dt is used on Solaris (Motif).
- # /usr/lesstif is used on Linux (Lesstif).
- # /usr/openwin is used on Solaris (X and Athena).
- # Other directories are just guesses.
- for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
- /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \
- /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \
- /usr/dt/lib /usr/openwin/lib \
- /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
- /usr/lesstif*/lib /usr/lib/Lesstif* \
- "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
- "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do
- if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then
- ice_cv_motif_libraries="$dir"
- break
- fi
- done
- if test "$ice_cv_motif_libraries" = ""; then
- ice_cv_motif_libraries=no
- fi
-
- fi
- rm -f conftest*
- #
- LIBS="$ice_motif_save_LIBS"
- CFLAGS="$ice_motif_save_CFLAGS"
- CPPFLAGS="$ice_motif_save_CPPFLAGS"
- LDFLAGS="$ice_motif_save_LDFLAGS"
-
- fi
-
- #
- motif_libraries="$ice_cv_motif_libraries"
- fi
- # Add Motif definitions to X flags
- #
- if test "$motif_includes" != "" && test "$motif_includes" != "$x_includes" && test "$motif_includes" != "no"
- then
- X_CFLAGS="-I$motif_includes $X_CFLAGS"
- fi
- if test "$motif_libraries" != "" && test "$motif_libraries" != "$x_libraries" && test "$motif_libraries" != "no"
- then
- case "$X_LIBS" in
- *-R\ *) X_LIBS="-L$motif_libraries -R $motif_libraries $X_LIBS";;
- *-R*) X_LIBS="-L$motif_libraries -R$motif_libraries $X_LIBS";;
- *) X_LIBS="-L$motif_libraries $X_LIBS";;
- esac
- fi
- #
- #
- motif_libraries_result="$motif_libraries"
- motif_includes_result="$motif_includes"
- test "$motif_libraries_result" = "" &&
- motif_libraries_result="in default path"
- test "$motif_includes_result" = "" &&
- motif_includes_result="in default path"
- test "$motif_libraries_result" = "no" &&
- motif_libraries_result="(none)"
- test "$motif_includes_result" = "no" &&
- motif_includes_result="(none)"
- echo "$ac_t""libraries $motif_libraries_result, headers $motif_includes_result" 1>&6
-
-
-
- athena_includes=
- athena_libraries=
- # Check whether --with-athena or --without-athena was given.
- if test "${with_athena+set}" = set; then
- withval="$with_athena"
- :
- fi
-
- if test "$with_athena" = "no"
- then
- athena_includes=no
- athena_libraries=no
- fi
- # Check whether --with-athena-includes or --without-athena-includes was given.
- if test "${with_athena_includes+set}" = set; then
- withval="$with_athena_includes"
- athena_includes="$withval"
- fi
-
- # Check whether --with-athena-libraries or --without-athena-libraries was given.
- if test "${with_athena_libraries+set}" = set; then
- withval="$with_athena_libraries"
- athena_libraries="$withval"
- fi
-
- echo $ac_n "checking for Athena""... $ac_c" 1>&6
- echo "configure:5667: checking for Athena" >&5
- #
- #
- # Search the include files.
- #
- if test "$athena_includes" = ""; then
- if eval "test \"`echo '$''{'ice_cv_athena_includes'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_athena_save_LIBS="$LIBS"
- ice_athena_save_CFLAGS="$CFLAGS"
- ice_athena_save_CPPFLAGS="$CPPFLAGS"
- ice_athena_save_LDFLAGS="$LDFLAGS"
- #
- LIBS="$X_PRE_LIBS -lXaw -lXmu -lXext -lXt -lX11 $X_EXTRA_LIBS $LIBS"
- CFLAGS="$X_CFLAGS $CFLAGS"
- CPPFLAGS="$X_CFLAGS $CPPFLAGS"
- LDFLAGS="$X_LIBS $LDFLAGS"
- #
- cat > conftest.$ac_ext <<EOF
- #line 5688 "configure"
- #include "confdefs.h"
-
- #include <X11/Intrinsic.h>
- #include <X11/Xaw/Text.h>
-
- int main() {
- int a;
- ; return 0; }
- EOF
- if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
-
- # X11/Xaw/Text.h is in the standard search path.
- ice_cv_athena_includes=
-
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- # X11/Xaw/Text.h is not in the standard search path.
- # Locate it and put its directory in `athena_includes'
- #
- # /usr/include/Motif* are used on HP-UX (Motif).
- # /usr/include/X11* are used on HP-UX (X and Athena).
- # /usr/dt is used on Solaris (Motif).
- # /usr/openwin is used on Solaris (X and Athena).
- # Other directories are just guesses.
- for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
- /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \
- /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \
- /usr/dt/include /usr/openwin/include \
- /usr/dt/*/include /opt/*/include /usr/include/Motif* \
- "${prefix}"/*/include /usr/*/include /usr/local/*/include \
- "${prefix}"/include/* /usr/include/* /usr/local/include/*; do
- if test -f "$dir/X11/Xaw/Text.h"; then
- ice_cv_athena_includes="$dir"
- break
- fi
- done
-
- fi
- rm -f conftest*
- #
- LIBS="$ice_athena_save_LIBS"
- CFLAGS="$ice_athena_save_CFLAGS"
- CPPFLAGS="$ice_athena_save_CPPFLAGS"
- LDFLAGS="$ice_athena_save_LDFLAGS"
-
- fi
-
- athena_includes="$ice_cv_athena_includes"
- fi
- #
- #
- # Now for the libraries.
- #
- if test "$athena_libraries" = ""; then
- if eval "test \"`echo '$''{'ice_cv_athena_libraries'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_athena_save_LIBS="$LIBS"
- ice_athena_save_CFLAGS="$CFLAGS"
- ice_athena_save_CPPFLAGS="$CPPFLAGS"
- ice_athena_save_LDFLAGS="$LDFLAGS"
- #
- LIBS="$X_PRE_LIBS -lXaw -lXmu -lXext -lXt -lX11 $X_EXTRA_LIBS $LIBS"
- CFLAGS="$X_CFLAGS $CFLAGS"
- CPPFLAGS="$X_CFLAGS $CPPFLAGS"
- LDFLAGS="$X_LIBS $LDFLAGS"
- #
- # We use XtToolkitInitialize() here since it takes no arguments
- # and thus also works with a C++ compiler.
- cat > conftest.$ac_ext <<EOF
- #line 5764 "configure"
- #include "confdefs.h"
-
- #include <X11/Intrinsic.h>
- #include <X11/Xaw/Text.h>
-
- int main() {
- XtToolkitInitialize();
- ; return 0; }
- EOF
- if { (eval echo configure:5774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
-
- # libXaw.a is in the standard search path.
- ice_cv_athena_libraries=
-
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- # libXaw.a is not in the standard search path.
- # Locate it and put its directory in `athena_libraries'
- #
- #
- # /usr/lib/Motif* are used on HP-UX (Motif).
- # /usr/lib/X11* are used on HP-UX (X and Athena).
- # /usr/dt is used on Solaris (Motif).
- # /usr/openwin is used on Solaris (X and Athena).
- # Other directories are just guesses.
- for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
- /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \
- /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \
- /usr/dt/lib /usr/openwin/lib \
- /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
- "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
- "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do
- if test -d "$dir" && test "`ls $dir/libXaw.* 2> /dev/null`" != ""; then
- ice_cv_athena_libraries="$dir"
- break
- fi
- done
-
- fi
- rm -f conftest*
- #
- LIBS="$ice_athena_save_LIBS"
- CFLAGS="$ice_athena_save_CFLAGS"
- CPPFLAGS="$ice_athena_save_CPPFLAGS"
- LDFLAGS="$ice_athena_save_LDFLAGS"
-
- fi
-
- #
- athena_libraries="$ice_cv_athena_libraries"
- fi
- # Add Athena definitions to X flags
- #
- if test "$athena_includes" != "" && test "$athena_includes" != "$x_includes" && test "$athena_includes" != "no"
- then
- X_CFLAGS="-I$athena_includes $X_CFLAGS"
- fi
- if test "$athena_libraries" != "" && test "$athena_libraries" != "$x_libraries" && test "$athena_libraries" != "no"
- then
- case "$X_LIBS" in
- *-R\ *) X_LIBS="-L$athena_libraries -R $athena_libraries $X_LIBS";;
- *-R*) X_LIBS="-L$athena_libraries -R$athena_libraries $X_LIBS";;
- *) X_LIBS="-L$athena_libraries $X_LIBS";;
- esac
- fi
- #
- #
- athena_libraries_result="$athena_libraries"
- athena_includes_result="$athena_includes"
- test "$athena_libraries_result" = "" &&
- athena_libraries_result="in default path"
- test "$athena_includes_result" = "" &&
- athena_includes_result="in default path"
- test "$athena_libraries_result" = "no" &&
- athena_libraries_result="(none)"
- test "$athena_includes_result" = "no" &&
- athena_includes_result="(none)"
- echo "$ac_t""libraries $athena_libraries_result, headers $athena_includes_result" 1>&6
-
-
-
- xpm_includes=
- xpm_libraries=
- # Check whether --with-xpm or --without-xpm was given.
- if test "${with_xpm+set}" = set; then
- withval="$with_xpm"
- :
- fi
-
- if test "$with_xpm" = "no"
- then
- xpm_includes=no
- xpm_libraries=no
- fi
- # Check whether --with-xpm-includes or --without-xpm-includes was given.
- if test "${with_xpm_includes+set}" = set; then
- withval="$with_xpm_includes"
- xpm_includes="$withval"
- fi
-
- # Check whether --with-xpm-libraries or --without-xpm-libraries was given.
- if test "${with_xpm_libraries+set}" = set; then
- withval="$with_xpm_libraries"
- xpm_libraries="$withval"
- fi
-
- echo $ac_n "checking for Xpm""... $ac_c" 1>&6
- echo "configure:5876: checking for Xpm" >&5
- #
- #
- # Search the include files. Note that XPM can come in <X11/xpm.h> (as
- # in X11R6) or in <xpm.h> if installed locally.
- #
- if test "$xpm_includes" = ""; then
- if eval "test \"`echo '$''{'ice_cv_xpm_includes'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_xpm_save_LIBS="$LIBS"
- ice_xpm_save_CFLAGS="$CFLAGS"
- ice_xpm_save_CPPFLAGS="$CPPFLAGS"
- ice_xpm_save_LDFLAGS="$LDFLAGS"
- #
- LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
- CFLAGS="$X_CFLAGS $CFLAGS"
- CPPFLAGS="$X_CFLAGS $CPPFLAGS"
- LDFLAGS="$X_LIBS $LDFLAGS"
- #
- cat > conftest.$ac_ext <<EOF
- #line 5898 "configure"
- #include "confdefs.h"
-
- #include <X11/xpm.h>
-
- int main() {
- int a;
- ; return 0; }
- EOF
- if { (eval echo configure:5907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
-
- # X11/xpm.h is in the standard search path.
- ice_cv_xpm_includes=
-
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- # X11/xpm.h is not in the standard search path.
- # Locate it and put its directory in `xpm_includes'
- #
- # /usr/include/Motif* are used on HP-UX (Motif).
- # /usr/include/X11* are used on HP-UX (X and Xaw).
- # /usr/dt is used on Solaris (Motif).
- # /usr/openwin is used on Solaris (X and Xaw).
- # Other directories are just guesses.
- for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
- /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \
- /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \
- /usr/dt/include /usr/openwin/include \
- /usr/dt/*/include /opt/*/include /usr/include/Motif* \
- "${prefix}"/*/include /usr/*/include /usr/local/*/include \
- "${prefix}"/include/* /usr/include/* /usr/local/include/*; do
- if test -f "$dir/X11/xpm.h" || test -f "$dir/xpm.h"; then
- ice_cv_xpm_includes="$dir"
- break
- fi
- done
-
- fi
- rm -f conftest*
- #
- LIBS="$ice_xpm_save_LIBS"
- CFLAGS="$ice_xpm_save_CFLAGS"
- CPPFLAGS="$ice_xpm_save_CPPFLAGS"
- LDFLAGS="$ice_xpm_save_LDFLAGS"
-
- fi
-
- xpm_includes="$ice_cv_xpm_includes"
- fi
- #
- #
- # Now for the libraries.
- #
- if test "$xpm_libraries" = ""; then
- if eval "test \"`echo '$''{'ice_cv_xpm_libraries'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_xpm_save_LIBS="$LIBS"
- ice_xpm_save_CFLAGS="$CFLAGS"
- ice_xpm_save_CPPFLAGS="$CPPFLAGS"
- ice_xpm_save_LDFLAGS="$LDFLAGS"
- #
- LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
- CFLAGS="$X_CFLAGS $CFLAGS"
- CPPFLAGS="$X_CFLAGS $CPPFLAGS"
- LDFLAGS="$X_LIBS $LDFLAGS"
- #
- #
- # We use XtToolkitInitialize() here since it takes no arguments
- # and thus also works with a C++ compiler.
- cat > conftest.$ac_ext <<EOF
- #line 5974 "configure"
- #include "confdefs.h"
-
- #include <X11/Intrinsic.h>
- #include <X11/xpm.h>
-
- int main() {
- XtToolkitInitialize();
- ; return 0; }
- EOF
- if { (eval echo configure:5984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
-
- # libxpm.a is in the standard search path.
- ice_cv_xpm_libraries=
-
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- # libXpm.a is not in the standard search path.
- # Locate it and put its directory in `xpm_libraries'
- #
- #
- # /usr/lib/Motif* are used on HP-UX (Motif).
- # /usr/lib/X11* are used on HP-UX (X and Xpm).
- # /usr/dt is used on Solaris (Motif).
- # /usr/openwin is used on Solaris (X and Xpm).
- # Other directories are just guesses.
- for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
- /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \
- /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \
- /usr/dt/lib /usr/openwin/lib \
- /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
- "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
- "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do
- if test -d "$dir" && test "`ls $dir/libXpm.* 2> /dev/null`" != ""; then
- ice_cv_xpm_libraries="$dir"
- break
- fi
- done
-
- fi
- rm -f conftest*
- #
- LIBS="$ice_xpm_save_LIBS"
- CFLAGS="$ice_xpm_save_CFLAGS"
- CPPFLAGS="$ice_xpm_save_CPPFLAGS"
- LDFLAGS="$ice_xpm_save_LDFLAGS"
-
- fi
-
- #
- xpm_libraries="$ice_cv_xpm_libraries"
- fi
- #
- # Add Xpm definitions to X flags
- #
- if test "$xpm_includes" != "" && test "$xpm_includes" != "$x_includes" && test "$xpm_includes" != "no"
- then
- X_CFLAGS="-I$xpm_includes $X_CFLAGS"
- fi
- if test "$xpm_libraries" != "" && test "$xpm_libraries" != "$x_libraries" && test "$xpm_libraries" != "no"
- then
- case "$X_LIBS" in
- *-R\ *) X_LIBS="-L$xpm_libraries -R $xpm_libraries $X_LIBS";;
- *-R*) X_LIBS="-L$xpm_libraries -R$xpm_libraries $X_LIBS";;
- *) X_LIBS="-L$xpm_libraries $X_LIBS";;
- esac
- fi
- #
- #
- xpm_libraries_result="$xpm_libraries"
- xpm_includes_result="$xpm_includes"
- test "$xpm_libraries_result" = "" &&
- xpm_libraries_result="in default path"
- test "$xpm_includes_result" = "" &&
- xpm_includes_result="in default path"
- test "$xpm_libraries_result" = "no" &&
- xpm_libraries_result="(none)"
- test "$xpm_includes_result" = "no" &&
- xpm_includes_result="(none)"
- echo "$ac_t""libraries $xpm_libraries_result, headers $xpm_includes_result" 1>&6
-
- case "$CXX" in
- *CC) X_LIBS="`echo $X_LIBS | $SED 's, -R\([^ ]\), -R \1,g'`"
- esac
- LIBS="$LIBS $X_EXTRA_LIBS"
- CFLAGS="$CFLAGS $X_CFLAGS"
- CPPFLAGS="$CPPFLAGS $X_CFLAGS"
- LDFLAGS="$LDFLAGS $X_LIBS"
- X11_LIBS=""
- echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
- echo "configure:6068: checking for XOpenDisplay in -lX11" >&5
- ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lX11 ${X_PRE_LIBS} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6076 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char XOpenDisplay();
-
- int main() {
- XOpenDisplay()
- ; return 0; }
- EOF
- if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X11_LIBS="-lX11"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test "$X11_LIBS" = ""; then
- { echo "configure: error: The X11 library '-lX11' could not be found.
- Please use the configure options '--x-includes=DIR'
- and '--x-libraries=DIR' to specify the X location.
- See the files 'config.log' and 'ddd/config.log'
- for further diagnostics." 1>&2; exit 1; }
- fi
-
-
-
- echo $ac_n "checking for _Xlcmbcurmax in -lXintl""... $ac_c" 1>&6
- echo "configure:6121: checking for _Xlcmbcurmax in -lXintl" >&5
- ac_lib_var=`echo Xintl'_'_Xlcmbcurmax | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lXintl ${X_PRE_LIBS} ${X11_LIBS} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6129 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char _Xlcmbcurmax();
-
- int main() {
- _Xlcmbcurmax()
- ; return 0; }
- EOF
- if { (eval echo configure:6143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X11_LIBS="${X11_LIBS} -lXintl"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- echo $ac_n "checking for shmap in -lipc""... $ac_c" 1>&6
- echo "configure:6164: checking for shmap in -lipc" >&5
- ac_lib_var=`echo ipc'_'shmap | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lipc ${X_PRE_LIBS} ${X11_LIBS} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6172 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shmap();
-
- int main() {
- shmap()
- ; return 0; }
- EOF
- if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X11_LIBS="${X11_LIBS} -lipc"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- XT_LIBS=""
- echo $ac_n "checking for XtToolkitInitialize in -lXt""... $ac_c" 1>&6
- echo "configure:6208: checking for XtToolkitInitialize in -lXt" >&5
- ac_lib_var=`echo Xt'_'XtToolkitInitialize | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lXt ${X_PRE_LIBS} ${X11_LIBS} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6216 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char XtToolkitInitialize();
-
- int main() {
- XtToolkitInitialize()
- ; return 0; }
- EOF
- if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XT_LIBS="-lXt"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test "$XT_LIBS" = ""; then
- { echo "configure: error: The X toolkit library '-lXt' could not be found.
- Please use the configure options '--x-includes=DIR'
- and '--x-libraries=DIR' to specify the X location.
- See the files 'config.log' and 'ddd/config.log'
- for further diagnostics." 1>&2; exit 1; }
- fi
-
- XEXT_LIBS=""
- echo $ac_n "checking for XShapeQueryVersion in -lXext""... $ac_c" 1>&6
- echo "configure:6260: checking for XShapeQueryVersion in -lXext" >&5
- ac_lib_var=`echo Xext'_'XShapeQueryVersion | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lXext ${X_PRE_LIBS} ${X11_LIBS} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6268 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char XShapeQueryVersion();
-
- int main() {
- XShapeQueryVersion()
- ; return 0; }
- EOF
- if { (eval echo configure:6282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XEXT_LIBS="-lXext"
- else
- echo "$ac_t""no" 1>&6
- fi
-
-
- XAW_LIBS=""
- if test "$athena_includes" != "no" && test "$athena_libraries" != "no"
- then
- echo $ac_n "checking for XmuCvtStringToOrientation in -lXmu""... $ac_c" 1>&6
- echo "configure:6307: checking for XmuCvtStringToOrientation in -lXmu" >&5
- ac_lib_var=`echo Xmu'_'XmuCvtStringToOrientation | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lXmu ${X_PRE_LIBS} ${XAW_LIBS} ${XT_LIBS} ${XEXT_LIBS} ${X11_LIBS} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6315 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char XmuCvtStringToOrientation();
-
- int main() {
- XmuCvtStringToOrientation()
- ; return 0; }
- EOF
- if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XAW_LIBS="-lXmu ${XAW_LIBS}"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- echo $ac_n "checking for XawTextSetInsertionPoint in -lXaw""... $ac_c" 1>&6
- echo "configure:6350: checking for XawTextSetInsertionPoint in -lXaw" >&5
- ac_lib_var=`echo Xaw'_'XawTextSetInsertionPoint | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lXaw ${X_PRE_LIBS} ${XAW_LIBS} ${XT_LIBS} ${XEXT_LIBS} ${X11_LIBS} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6358 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char XawTextSetInsertionPoint();
-
- int main() {
- XawTextSetInsertionPoint()
- ; return 0; }
- EOF
- if { (eval echo configure:6372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XAW_LIBS="-lXaw ${XAW_LIBS}"
- cat >> confdefs.h <<\EOF
- #define HAVE_ATHENA 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test "$XAW_LIBS" = ""; then
- echo "configure: warning: The Athena widgets library '-lXaw' could not be found.
- If you have the athena library, please use the
- configure options '--with-athena-includes=DIR' and
- '--with-athena-libraries=DIR' to specify the Xaw location.
- If you do not have the athena library, use the configure
- option '--without-athena' to suppress this message.
- See the files 'config.log' and 'ddd/config.log'
- for further diagnostics." 1>&2
- fi
- fi
- if test "$XAW_LIBS" != ""; then
- for ac_hdr in X11/Xaw/Form.h X11/Xaw/Panner.h X11/Xaw/Porthole.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6412: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6417 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- for ac_hdr in X11/Xmu/Editres.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6452: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6457 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- fi
-
- XPM_LIBS=""
- if test "$xpm_includes" != "no" && test "$xpm_libraries" != "no"
- then
- echo $ac_n "checking for XpmCreatePixmapFromXpmImage in -lXpm""... $ac_c" 1>&6
- echo "configure:6494: checking for XpmCreatePixmapFromXpmImage in -lXpm" >&5
- ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromXpmImage | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lXpm ${X_PRE_LIBS} ${X11_LIBS} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6502 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char XpmCreatePixmapFromXpmImage();
-
- int main() {
- XpmCreatePixmapFromXpmImage()
- ; return 0; }
- EOF
- if { (eval echo configure:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XPM_LIBS="-lXpm"
- cat >> confdefs.h <<\EOF
- #define HAVE_XPM 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
-
- if test "$XPM_LIBS" != ""; then
- for ac_hdr in X11/xpm.h xpm.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6545: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6550 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- fi
- fi
-
- XM_LIBS=""
- XP_LIBS=""
- if test "$motif_includes" != "no" && test "$motif_libraries" != "no"
- then
- echo $ac_n "checking for XpSelectInput in -lXp""... $ac_c" 1>&6
- echo "configure:6589: checking for XpSelectInput in -lXp" >&5
- ac_lib_var=`echo Xp'_'XpSelectInput | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lXp ${X_PRE_LIBS} ${XPM_LIBS} ${XEXT_LIBS} ${XT_LIBS} ${XEXT_LIBS} ${X11_LIBS} ${LIBGEN} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6597 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char XpSelectInput();
-
- int main() {
- XpSelectInput()
- ; return 0; }
- EOF
- if { (eval echo configure:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XP_LIBS="-lXp"
- cat >> confdefs.h <<\EOF
- #define HAVE_XP 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
-
- echo $ac_n "checking for XmCreateOptionMenu in -lXm""... $ac_c" 1>&6
- echo "configure:6636: checking for XmCreateOptionMenu in -lXm" >&5
- ac_lib_var=`echo Xm'_'XmCreateOptionMenu | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lXm ${X_PRE_LIBS} ${XP_LIBS} ${XPM_LIBS} ${XEXT_LIBS} ${XT_LIBS} ${XEXT_LIBS} ${X11_LIBS} ${LIBGEN} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6644 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char XmCreateOptionMenu();
-
- int main() {
- XmCreateOptionMenu()
- ; return 0; }
- EOF
- if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XM_LIBS="-lXm"
- cat >> confdefs.h <<\EOF
- #define HAVE_MOTIF 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
-
- echo $ac_n "checking for xmUseVersion in -lXm""... $ac_c" 1>&6
- echo "configure:6683: checking for xmUseVersion in -lXm" >&5
- ac_lib_var=`echo Xm'_'xmUseVersion | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lXm ${X_PRE_LIBS} ${XP_LIBS} ${XPM_LIBS} ${XEXT_LIBS} ${XT_LIBS} ${XEXT_LIBS} ${X11_LIBS} ${LIBGEN} $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6691 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char xmUseVersion();
-
- int main() {
- xmUseVersion()
- ; return 0; }
- EOF
- if { (eval echo configure:6705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
- #define HAVE_XMUSEVERSION 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
-
- fi
- if test "$XM_LIBS" = ""; then
- { echo "configure: error: The Motif library '-lXm' could not be found.
- Please use the configure options '--with-motif-includes=DIR'
- and '--with-motif-libraries=DIR' to specify the Xm location.
- See the files 'config.log' and 'ddd/config.log'
- for further diagnostics." 1>&2; exit 1; }
- fi
-
-
-
-
- echo $ac_n "checking for the name of the translation resource""... $ac_c" 1>&6
- echo "configure:6741: checking for the name of the translation resource" >&5
- if eval "test \"`echo '$''{'ice_cv_translations'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- cat > conftest.$ac_ext <<EOF
- #line 6747 "configure"
- #include "confdefs.h"
- #include <X11/Intrinsic.h>
- int main() {
-
- #if XtSpecificationRelease < 5
- #error baseTranslation resource only in X11R5 and later
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:6758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_translations=baseTranslations
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_translations=translations
- fi
- rm -f conftest*
-
- fi
-
- echo "$ac_t""$ice_cv_translations" 1>&6
- TRANSLATIONS=$ice_cv_translations
-
-
- LIBS="$ice_save_LIBS"
- CFLAGS="$ice_save_CFLAGS"
- CPPFLAGS="$ice_save_CPPFLAGS"
- LDFLAGS="$ice_save_LDFLAGS"
- fi
- echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
- echo "configure:6781: checking whether ${MAKE-make} sets \${MAKE}" >&5
- set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftestmake <<\EOF
- all:
- @echo 'ac_maketemp="${MAKE}"'
- EOF
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
- eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
- if test -n "$ac_maketemp"; then
- eval ac_cv_prog_make_${ac_make}_set=yes
- else
- eval ac_cv_prog_make_${ac_make}_set=no
- fi
- rm -f conftestmake
- fi
- if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SET_MAKE=
- else
- echo "$ac_t""no" 1>&6
- SET_MAKE="MAKE=${MAKE-make}"
- fi
-
-
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
- echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
- echo "configure:6816: checking for ANSI C header files" >&5
- if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6821 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- ac_cv_header_stdc=yes
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
-
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 6846 "configure"
- #include "confdefs.h"
- #include <string.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
-
- fi
-
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 6864 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
-
- fi
-
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then
- :
- else
- cat > conftest.$ac_ext <<EOF
- #line 6885 "configure"
- #include "confdefs.h"
- #include <ctype.h>
- #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int main () { int i; for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
- exit (0); }
-
- EOF
- if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
- fi
- rm -fr conftest*
- fi
-
- fi
- fi
-
- echo "$ac_t""$ac_cv_header_stdc" 1>&6
- if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<\EOF
- #define STDC_HEADERS 1
- EOF
-
- fi
-
- echo $ac_n "checking for mode_t""... $ac_c" 1>&6
- echo "configure:6920: checking for mode_t" >&5
- if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6925 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_mode_t=yes
- else
- rm -rf conftest*
- ac_cv_type_mode_t=no
- fi
- rm -f conftest*
-
- fi
- echo "$ac_t""$ac_cv_type_mode_t" 1>&6
- if test $ac_cv_type_mode_t = no; then
- cat >> confdefs.h <<\EOF
- #define mode_t int
- EOF
-
- fi
-
- echo $ac_n "checking for off_t""... $ac_c" 1>&6
- echo "configure:6953: checking for off_t" >&5
- if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6958 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_off_t=yes
- else
- rm -rf conftest*
- ac_cv_type_off_t=no
- fi
- rm -f conftest*
-
- fi
- echo "$ac_t""$ac_cv_type_off_t" 1>&6
- if test $ac_cv_type_off_t = no; then
- cat >> confdefs.h <<\EOF
- #define off_t long
- EOF
-
- fi
-
- echo $ac_n "checking for pid_t""... $ac_c" 1>&6
- echo "configure:6986: checking for pid_t" >&5
- if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6991 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_pid_t=yes
- else
- rm -rf conftest*
- ac_cv_type_pid_t=no
- fi
- rm -f conftest*
-
- fi
- echo "$ac_t""$ac_cv_type_pid_t" 1>&6
- if test $ac_cv_type_pid_t = no; then
- cat >> confdefs.h <<\EOF
- #define pid_t int
- EOF
-
- fi
-
- echo $ac_n "checking for size_t""... $ac_c" 1>&6
- echo "configure:7019: checking for size_t" >&5
- if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7024 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_size_t=yes
- else
- rm -rf conftest*
- ac_cv_type_size_t=no
- fi
- rm -f conftest*
-
- fi
- echo "$ac_t""$ac_cv_type_size_t" 1>&6
- if test $ac_cv_type_size_t = no; then
- cat >> confdefs.h <<\EOF
- #define size_t unsigned
- EOF
-
- fi
-
- echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
- echo "configure:7052: checking for uid_t in sys/types.h" >&5
- if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7057 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "uid_t" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_uid_t=yes
- else
- rm -rf conftest*
- ac_cv_type_uid_t=no
- fi
- rm -f conftest*
-
- fi
-
- echo "$ac_t""$ac_cv_type_uid_t" 1>&6
- if test $ac_cv_type_uid_t = no; then
- cat >> confdefs.h <<\EOF
- #define uid_t int
- EOF
-
- cat >> confdefs.h <<\EOF
- #define gid_t int
- EOF
-
- fi
-
- echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
- echo "configure:7086: checking type of array argument to getgroups" >&5
- if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_type_getgroups=cross
- else
- cat > conftest.$ac_ext <<EOF
- #line 7094 "configure"
- #include "confdefs.h"
-
- /* Thanks to Mike Rendell for this test. */
- #include <sys/types.h>
- #define NGID 256
- #undef MAX
- #define MAX(x, y) ((x) > (y) ? (x) : (y))
- main()
- {
- gid_t gidset[NGID];
- int i, n;
- union { gid_t gval; long lval; } val;
-
- val.lval = -1;
- for (i = 0; i < NGID; i++)
- gidset[i] = val.gval;
- n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
- gidset);
- /* Exit non-zero if getgroups seems to require an array of ints. This
- happens when gid_t is short but getgroups modifies an array of ints. */
- exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
- }
-
- EOF
- if { (eval echo configure:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- ac_cv_type_getgroups=gid_t
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_type_getgroups=int
- fi
- rm -fr conftest*
- fi
-
- if test $ac_cv_type_getgroups = cross; then
- cat > conftest.$ac_ext <<EOF
- #line 7133 "configure"
- #include "confdefs.h"
- #include <unistd.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_getgroups=gid_t
- else
- rm -rf conftest*
- ac_cv_type_getgroups=int
- fi
- rm -f conftest*
-
- fi
- fi
-
- echo "$ac_t""$ac_cv_type_getgroups" 1>&6
- cat >> confdefs.h <<EOF
- #define GETGROUPS_T $ac_cv_type_getgroups
- EOF
-
-
- echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
- echo "configure:7157: checking return type of signal handlers" >&5
- if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7162 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <signal.h>
- #ifdef signal
- #undef signal
- #endif
- #ifdef __cplusplus
- extern "C" void (*signal (int, void (*)(int)))(int);
- #else
- void (*signal ()) ();
- #endif
-
- int main() {
- int i;
- ; return 0; }
- EOF
- if { (eval echo configure:7179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_type_signal=void
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_type_signal=int
- fi
- rm -f conftest*
- fi
-
- echo "$ac_t""$ac_cv_type_signal" 1>&6
- cat >> confdefs.h <<EOF
- #define RETSIGTYPE $ac_cv_type_signal
- EOF
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
-
-
- echo $ac_n "checking parameter type of signal handlers""... $ac_c" 1>&6
- echo "configure:7207: checking parameter type of signal handlers" >&5
- if eval "test \"`echo '$''{'ice_cv_type_sig_handler_args'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- ice_cv_type_sig_handler_args=""
- # Try "..."
- if test "$ice_cv_type_sig_handler_args" = ""; then
- cat > conftest.$ac_ext <<EOF
- #line 7224 "configure"
- #include "confdefs.h"
-
- #include <sys/types.h>
- #include <signal.h>
- RETSIGTYPE handler(...);
- int main() {
- signal(1, handler);
- ; return 0; }
- EOF
- if { (eval echo configure:7234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_type_sig_handler_args="..."
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- # Try "int"
- if test "$ice_cv_type_sig_handler_args" = ""; then
- cat > conftest.$ac_ext <<EOF
- #line 7246 "configure"
- #include "confdefs.h"
-
- #include <sys/types.h>
- #include <signal.h>
- RETSIGTYPE handler(int);
- int main() {
- signal(1, handler);
- ; return 0; }
- EOF
- if { (eval echo configure:7256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_type_sig_handler_args="int"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- # Try "int, ..."
- if test "$ice_cv_type_sig_handler_args" = ""; then
- cat > conftest.$ac_ext <<EOF
- #line 7268 "configure"
- #include "confdefs.h"
-
- #include <sys/types.h>
- #include <signal.h>
- RETSIGTYPE handler(int ...);
- int main() {
- signal(1, handler);
- ; return 0; }
- EOF
- if { (eval echo configure:7278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_type_sig_handler_args="int ..."
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
-
-
-
- fi
- echo "$ac_t""$ice_cv_type_sig_handler_args" 1>&6
- if test "$ice_cv_type_sig_handler_args" = ""; then
- echo "configure: warning: Please #define SIGHANDLERARGS in config.h" 1>&2
- fi
- cat >> confdefs.h <<EOF
- #define SIGHANDLERARGS $ice_cv_type_sig_handler_args
- EOF
-
-
- echo $ac_n "checking for getpgrp""... $ac_c" 1>&6
- echo "configure:7301: checking for getpgrp" >&5
- if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7306 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char getpgrp(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char getpgrp();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_getpgrp) || defined (__stub___getpgrp)
- choke me
- #else
- getpgrp();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_getpgrp=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_getpgrp=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
-
- echo $ac_n "checking for setpgrp""... $ac_c" 1>&6
- echo "configure:7352: checking for setpgrp" >&5
- if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7357 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char setpgrp(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char setpgrp();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
- choke me
- #else
- setpgrp();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_setpgrp=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_setpgrp=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
-
-
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
- echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
- echo "configure:7411: checking whether getpgrp takes no argument" >&5
- if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 7419 "configure"
- #include "confdefs.h"
-
- /*
- * If this system has a BSD-style getpgrp(),
- * which takes a pid argument, exit unsuccessfully.
- *
- * Snarfed from Chet Ramey's bash pgrp.c test program
- */
- #include <stdio.h>
- #include <sys/types.h>
-
- int pid;
- int pg1, pg2, pg3, pg4;
- int ng, np, s, child;
-
- main()
- {
- pid = getpid();
- pg1 = getpgrp(0);
- pg2 = getpgrp();
- pg3 = getpgrp(pid);
- pg4 = getpgrp(1);
-
- /*
- * If all of these values are the same, it's pretty sure that
- * we're on a system that ignores getpgrp's first argument.
- */
- if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
- exit(0);
-
- child = fork();
- if (child < 0)
- exit(1);
- else if (child == 0) {
- np = getpid();
- /*
- * If this is Sys V, this will not work; pgrp will be
- * set to np because setpgrp just changes a pgrp to be
- * the same as the pid.
- */
- setpgrp(np, pg1);
- ng = getpgrp(0); /* Same result for Sys V and BSD */
- if (ng == pg1) {
- exit(1);
- } else {
- exit(0);
- }
- } else {
- wait(&s);
- exit(s>>8);
- }
- }
-
- EOF
- if { (eval echo configure:7474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- ac_cv_func_getpgrp_void=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_getpgrp_void=no
- fi
- rm -fr conftest*
- fi
-
-
- fi
-
- echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
- if test $ac_cv_func_getpgrp_void = yes; then
- cat >> confdefs.h <<\EOF
- #define GETPGRP_VOID 1
- EOF
-
- fi
-
- echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
- echo "configure:7498: checking whether setpgrp takes no argument" >&5
- if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 7506 "configure"
- #include "confdefs.h"
-
- /*
- * If this system has a BSD-style setpgrp, which takes arguments, exit
- * successfully.
- */
- main()
- {
- if (setpgrp(1,1) == -1)
- exit(0);
- else
- exit(1);
- }
-
- EOF
- if { (eval echo configure:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- ac_cv_func_setpgrp_void=no
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_setpgrp_void=yes
- fi
- rm -fr conftest*
- fi
-
-
- fi
-
- echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
- if test $ac_cv_func_setpgrp_void = yes; then
- cat >> confdefs.h <<\EOF
- #define SETPGRP_VOID 1
- EOF
-
- fi
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
- echo "configure:7553: checking for ANSI C header files" >&5
- if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7558 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- ac_cv_header_stdc=yes
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
-
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 7583 "configure"
- #include "confdefs.h"
- #include <string.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
-
- fi
-
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 7601 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
-
- fi
-
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then
- :
- else
- cat > conftest.$ac_ext <<EOF
- #line 7622 "configure"
- #include "confdefs.h"
- #ifdef __cplusplus
- extern "C" void exit(int);
- #endif
- #include <ctype.h>
- #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int main () { int i; for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
- exit (0); }
-
- EOF
- if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
- fi
- rm -fr conftest*
- fi
-
- fi
- fi
-
- echo "$ac_t""$ac_cv_header_stdc" 1>&6
- if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<\EOF
- #define STDC_HEADERS 1
- EOF
-
- fi
-
- for ac_hdr in alloca.h fcntl.h limits.h malloc.h netdb.h pwd.h regex.h rx.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7663: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7668 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- for ac_hdr in stdlib.h string.h strings.h termio.h termios.h unistd.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7703: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7708 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- for ac_hdr in sys/ioctl.h sys/int_types.h sys/param.h sys/resource.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7743: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7748 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- for ac_hdr in sys/stat.h sys/stropts.h sys/vty.h sys/sysmacros.h sys/core.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7783: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7788 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- for ac_hdr in sys/socket.h sys/termios.h sys/time.h sys/timeb.h sys/types.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7823: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7828 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- for ac_hdr in sys/utsname.h sys/user.h sys/ptrace.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7863: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7868 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- for ac_hdr in exception stdexcept
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7903: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7908 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
- echo "configure:7940: checking whether time.h and sys/time.h may both be included" >&5
- if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7945 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/time.h>
- #include <time.h>
- int main() {
- struct tm *tp;
- ; return 0; }
- EOF
- if { (eval echo configure:7954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_time=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_time=no
- fi
- rm -f conftest*
- fi
-
- echo "$ac_t""$ac_cv_header_time" 1>&6
- if test $ac_cv_header_time = yes; then
- cat >> confdefs.h <<\EOF
- #define TIME_WITH_SYS_TIME 1
- EOF
-
- fi
-
- echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
- echo "configure:7975: checking for sys/wait.h that is POSIX.1 compatible" >&5
- if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7980 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/wait.h>
- #ifndef WEXITSTATUS
- #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
- #endif
- #ifndef WIFEXITED
- #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
- #endif
- int main() {
- int s;
- wait (&s);
- s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
- ; return 0; }
- EOF
- if { (eval echo configure:7996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_sys_wait_h=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_sys_wait_h=no
- fi
- rm -f conftest*
- fi
-
- echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
- if test $ac_cv_header_sys_wait_h = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_SYS_WAIT_H 1
- EOF
-
- fi
-
- ac_header_dirent=no
- for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
- echo "configure:8021: checking for $ac_hdr that defines DIR" >&5
- if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 8026 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <$ac_hdr>
- int main() {
- DIR *dirp = 0;
- ; return 0; }
- EOF
- if { (eval echo configure:8034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- eval "ac_cv_header_dirent_$ac_safe=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_dirent_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
- ac_header_dirent=$ac_hdr; break
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
- if test $ac_header_dirent = dirent.h; then
- echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
- echo "configure:8059: checking for opendir in -ldir" >&5
- ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-ldir $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8067 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char opendir();
-
- int main() {
- opendir()
- ; return 0; }
- EOF
- if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -ldir"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- else
- echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
- echo "configure:8103: checking for opendir in -lx" >&5
- ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lx $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8111 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char opendir();
-
- int main() {
- opendir()
- ; return 0; }
- EOF
- if { (eval echo configure:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
-
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -lx"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- fi
-
- echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
- echo "configure:8148: checking whether stat file-mode macros are broken" >&5
- if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 8153 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/stat.h>
-
- #if defined(S_ISBLK) && defined(S_IFDIR)
- # if S_ISBLK (S_IFDIR)
- You lose.
- # endif
- #endif
-
- #if defined(S_ISBLK) && defined(S_IFCHR)
- # if S_ISBLK (S_IFCHR)
- You lose.
- # endif
- #endif
-
- #if defined(S_ISLNK) && defined(S_IFREG)
- # if S_ISLNK (S_IFREG)
- You lose.
- # endif
- #endif
-
- #if defined(S_ISSOCK) && defined(S_IFREG)
- # if S_ISSOCK (S_IFREG)
- You lose.
- # endif
- #endif
-
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "You lose" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_header_stat_broken=yes
- else
- rm -rf conftest*
- ac_cv_header_stat_broken=no
- fi
- rm -f conftest*
-
- fi
-
- echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
- if test $ac_cv_header_stat_broken = yes; then
- cat >> confdefs.h <<\EOF
- #define STAT_MACROS_BROKEN 1
- EOF
-
- fi
-
- ice_save_LIBS="$LIBS"
- LIBS="$CXXLIBS $LIBS"
-
- echo $ac_n "checking for CORE_MAGIC definition in <sys/core.h>""... $ac_c" 1>&6
- echo "configure:8207: checking for CORE_MAGIC definition in <sys/core.h>" >&5
- if eval "test \"`echo '$''{'ice_cv_have_core_magic'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 8212 "configure"
- #include "confdefs.h"
- #include <sys/core.h>
- #ifdef CORE_MAGIC
- yes
- #endif
-
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_core_magic=yes
- else
- rm -rf conftest*
- ice_cv_have_core_magic=no
- fi
- rm -f conftest*
-
- fi
-
- echo "$ac_t""$ice_cv_have_core_magic" 1>&6
- if test "$ice_cv_have_core_magic" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_CORE_MAGIC 1
- EOF
-
- fi
-
-
- echo $ac_n "checking for PTRACE_DUMPCORE definition in <sys/ptrace.h>""... $ac_c" 1>&6
- echo "configure:8242: checking for PTRACE_DUMPCORE definition in <sys/ptrace.h>" >&5
- if eval "test \"`echo '$''{'ice_cv_have_ptrace_dumpcore'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- cat > conftest.$ac_ext <<EOF
- #line 8248 "configure"
- #include "confdefs.h"
- #include <sys/ptrace.h>
- int main() {
- int request = PTRACE_DUMPCORE;
- ; return 0; }
- EOF
- if { (eval echo configure:8255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_ptrace_dumpcore=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_ptrace_dumpcore=no
- fi
- rm -f conftest*
-
- fi
-
- echo "$ac_t""$ice_cv_have_ptrace_dumpcore" 1>&6
- if test "$ice_cv_have_ptrace_dumpcore" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_PTRACE_DUMPCORE 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking for ostrstream::frozen()""... $ac_c" 1>&6
- echo "configure:8279: checking for ostrstream::frozen()" >&5
- if eval "test \"`echo '$''{'ice_cv_frozen_ostrstream'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
- #line 8293 "configure"
- #include "confdefs.h"
- #include <strstream.h>
- int main() {
- ostrstream os; int frozen = os.frozen();
- ; return 0; }
- EOF
- if { (eval echo configure:8300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_frozen_ostrstream=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_frozen_ostrstream=no
- fi
- rm -f conftest*
-
-
- fi
-
- echo "$ac_t""$ice_cv_frozen_ostrstream" 1>&6
- if test "$ice_cv_frozen_ostrstream" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_FROZEN_OSTRSTREAM 1
- EOF
-
- fi
-
-
-
- echo $ac_n "checking whether ostrstream::pcount() is broken""... $ac_c" 1>&6
- echo "configure:8325: checking whether ostrstream::pcount() is broken" >&5
- if eval "test \"`echo '$''{'ice_cv_ostrstream_pcount_broken'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- if test "$cross_compiling" = yes; then
- ice_cv_ostrstream_pcount_broken=no
-
- else
- cat > conftest.$ac_ext <<EOF
- #line 8343 "configure"
- #include "confdefs.h"
- #ifdef __cplusplus
- extern "C" void exit(int);
- #endif
-
- // Returns 0 if ostrstream::pcount() is broken; 1, otherwise.
- #include <iostream.h>
- #include <strstream.h>
-
- int main()
- {
- ostrstream os;
- os << 'a'; // os.pcount() == 1.
- char *s = os.str(); // In the SGI C++ I/O library, os.pcount() is now 2!
- return (os.pcount() == 2) ? 0 : 1;
- }
-
- EOF
- if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- ice_cv_ostrstream_pcount_broken=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ice_cv_ostrstream_pcount_broken=no
- fi
- rm -fr conftest*
- fi
-
-
-
- fi
-
- echo "$ac_t""$ice_cv_ostrstream_pcount_broken" 1>&6
- if test "$ice_cv_ostrstream_pcount_broken" = yes; then
- cat >> confdefs.h <<\EOF
- #define OSTRSTREAM_PCOUNT_BROKEN 1
- EOF
-
- fi
-
-
-
- for ac_hdr in regex.h rx.h rxposix.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:8392: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 8397 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:8402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
-
- ice_tr=`echo regcomp | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_regcomp=no
- for ac_func in regcomp
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:8436: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 8441 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_regcomp=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_regcomp}" = yes; then
- echo $ac_n "checking for regcomp declaration in regex.h rx.h rxposix.h""... $ac_c" 1>&6
- echo "configure:8493: checking for regcomp declaration in regex.h rx.h rxposix.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_regcomp_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_regcomp_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in regex.h rx.h rxposix.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 8504 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}regcomp *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_regcomp_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_regcomp_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 8520 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}regcomp *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_regcomp_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_regcomp_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_regcomp_decl" 1>&6
- if test "$ice_cv_have_regcomp_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo regexec | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_regexec=no
- for ac_func in regexec
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:8555: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 8560 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:8586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_regexec=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_regexec}" = yes; then
- echo $ac_n "checking for regexec declaration in regex.h rx.h rxposix.h""... $ac_c" 1>&6
- echo "configure:8612: checking for regexec declaration in regex.h rx.h rxposix.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_regexec_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_regexec_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in regex.h rx.h rxposix.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 8623 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}regexec *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_regexec_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_regexec_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 8639 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}regexec *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_regexec_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_regexec_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_regexec_decl" 1>&6
- if test "$ice_cv_have_regexec_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
- ice_save_cppflags="$CPPFLAGS"
- CPPFLAGS="-I$srcdir/.. $CPPFLAGS"
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- echo $ac_n "checking re_nsub member of POSIX.2 regex_t type""... $ac_c" 1>&6
- echo "configure:8677: checking re_nsub member of POSIX.2 regex_t type" >&5
- if eval "test \"`echo '$''{'ice_cv_have_regex_t_re_nsub'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- cat > conftest.$ac_ext <<EOF
- #line 8683 "configure"
- #include "confdefs.h"
-
- extern "C" {
- #include <sys/types.h>
-
- // Avoid conflicts with C regex() function
- #define regex c_regex
-
- // Don't include old libg++ <regex.h> contents
- #define __REGEXP_LIBRARY
-
- #ifndef __STDC__
- #define __STDC__ 1 // Reguired for KCC when using GNU includes
- #endif
-
- // Some old versions of libg++ contain a <regex.h> file. Avoid this.
- #if !defined(REG_EXTENDED) && HAVE_REGEX_H
- #include <regex.h> // POSIX.2 interface
- #endif
-
- // Try hard-wired path to get native <regex.h>.
- #if !defined(REG_EXTENDED) && HAVE_REGEX_H
- #include </usr/include/regex.h> // POSIX.2 interface
- #endif
-
- // Some more GNU headers.
- #if !defined(REG_EXTENDED) && HAVE_RX_H
- #include <rx.h> // Header from GNU rx 0.07
- #endif
-
- #if !defined(REG_EXTENDED) && HAVE_RXPOSIX_H
- #include <rxposix.h> // Header from GNU rx 1.0 and later
- #endif
- }
-
- int main() {
- regex_t rx; int a = rx.re_nsub;
- ; return 0; }
- EOF
- if { (eval echo configure:8723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_regex_t_re_nsub=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_regex_t_re_nsub=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ice_cv_have_regex_t_re_nsub" 1>&6
- if test "$ice_cv_have_regex_t_re_nsub" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_REGEX_T_RE_NSUB 1
- EOF
-
- fi
- echo $ac_n "checking n_subexps member of GNU RX 1.0 regex_t type""... $ac_c" 1>&6
- echo "configure:8742: checking n_subexps member of GNU RX 1.0 regex_t type" >&5
- if eval "test \"`echo '$''{'ice_cv_have_regex_t_n_subexps'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- cat > conftest.$ac_ext <<EOF
- #line 8748 "configure"
- #include "confdefs.h"
-
- extern "C" {
- #include <sys/types.h>
-
- // Avoid conflicts with C regex() function
- #define regex c_regex
-
- // Don't include old libg++ <regex.h> contents
- #define __REGEXP_LIBRARY
-
- #ifndef __STDC__
- #define __STDC__ 1 // Reguired for KCC when using GNU includes
- #endif
-
- // Some old versions of libg++ contain a <regex.h> file. Avoid this.
- #if !defined(REG_EXTENDED) && HAVE_REGEX_H
- #include <regex.h> // POSIX.2 interface
- #endif
-
- // Try hard-wired path to get native <regex.h>.
- #if !defined(REG_EXTENDED) && HAVE_REGEX_H
- #include </usr/include/regex.h> // POSIX.2 interface
- #endif
-
- // Some more GNU headers.
- #if !defined(REG_EXTENDED) && HAVE_RX_H
- #include <rx.h> // Header from GNU rx 0.07
- #endif
-
- #if !defined(REG_EXTENDED) && HAVE_RXPOSIX_H
- #include <rxposix.h> // Header from GNU rx 1.0 and later
- #endif
- }
-
- int main() {
- regex_t rx; int a = rx.n_subexps;
- ; return 0; }
- EOF
- if { (eval echo configure:8788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_regex_t_n_subexps=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_regex_t_n_subexps=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ice_cv_have_regex_t_n_subexps" 1>&6
- if test "$ice_cv_have_regex_t_n_subexps" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_REGEX_T_N_SUBEXPS 1
- EOF
-
- fi
-
- CPPFLAGS="$ice_save_cppflags"
-
-
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
-
-
- if test "$ice_have_regcomp" = yes && test "$ice_have_regexec" = yes; then
-
- echo $ac_n "checking whether regcomp() is broken""... $ac_c" 1>&6
- echo "configure:8822: checking whether regcomp() is broken" >&5
- ice_save_cppflags="$CPPFLAGS"
- CPPFLAGS="-I$srcdir/.. $CPPFLAGS"
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- if eval "test \"`echo '$''{'ice_cv_regcomp_broken'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- if test "$cross_compiling" = yes; then
- ice_cv_regcomp_broken=yes
- else
- cat > conftest.$ac_ext <<EOF
- #line 8841 "configure"
- #include "confdefs.h"
- #ifdef __cplusplus
- extern "C" void exit(int);
- #endif
-
- extern "C" {
- #include <sys/types.h>
-
- // Avoid conflicts with C regex() function
- #define regex c_regex
-
- // Don't include old libg++ <regex.h> contents
- #define __REGEXP_LIBRARY
-
- #ifndef __STDC__
- #define __STDC__ 1 // Reguired for KCC when using GNU includes
- #endif
-
- // Some old versions of libg++ contain a <regex.h> file. Avoid this.
- #if !defined(REG_EXTENDED) && HAVE_REGEX_H
- #include <regex.h> // POSIX.2 interface
- #endif
-
- // Try hard-wired path to get native <regex.h>.
- #if !defined(REG_EXTENDED) && HAVE_REGEX_H
- #include </usr/include/regex.h> // POSIX.2 interface
- #endif
-
- // Some more GNU headers.
- #if !defined(REG_EXTENDED) && HAVE_RX_H
- #include <rx.h> // Header from GNU rx 0.07
- #endif
-
- #if !defined(REG_EXTENDED) && HAVE_RXPOSIX_H
- #include <rxposix.h> // Header from GNU rx 1.0 and later
- #endif
- }
-
- int main()
- {
- char rxdouble[] =
- "-?(([0-9]+\\\\.[0-9]*)|([0-9]+)|(\\\\.[0-9]+))"
- "([eE][---+]?[0-9]+)?";
- regex_t compiled;
- int errcode = regcomp(&compiled, rxdouble, REG_EXTENDED);
- if (errcode)
- return 1;
-
- char somedouble[] = "3.141529e+0";
- return regexec(&compiled, somedouble, 0, 0, 0);
- }
-
- EOF
- if { (eval echo configure:8895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
- then
- ice_cv_regcomp_broken=no
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ice_cv_regcomp_broken=yes
- fi
- rm -fr conftest*
- fi
-
- fi
- echo "$ac_t""$ice_cv_regcomp_broken" 1>&6
- if test "$ice_cv_regcomp_broken" = yes; then
- cat >> confdefs.h <<\EOF
- #define REGCOMP_BROKEN 1
- EOF
-
- fi
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
-
- CPPFLAGS="$ice_save_cppflags"
-
- fi
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
-
- LIBS="$ice_save_LIBS"
-
- ice_tr=`echo _getpty | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have__getpty=no
- for ac_func in _getpty
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:8941: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 8946 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:8972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have__getpty=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have__getpty}" = yes; then
- echo $ac_n "checking for _getpty declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:8998: checking for _getpty declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have__getpty_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have__getpty_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 9009 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}_getpty *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have__getpty_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have__getpty_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 9025 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}_getpty *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have__getpty_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have__getpty_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have__getpty_decl" 1>&6
- if test "$ice_cv_have__getpty_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo alloca | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_alloca=no
- for ac_func in alloca
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:9060: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 9065 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_alloca=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_alloca}" = yes; then
- echo $ac_n "checking for alloca declaration in alloca.h stdlib.h""... $ac_c" 1>&6
- echo "configure:9117: checking for alloca declaration in alloca.h stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_alloca_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_alloca_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in alloca.h stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 9128 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}alloca *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_alloca_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_alloca_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 9144 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}alloca *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_alloca_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_alloca_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_alloca_decl" 1>&6
- if test "$ice_cv_have_alloca_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo asctime | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_asctime=no
- for ac_func in asctime
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:9179: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 9184 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:9210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_asctime=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_asctime}" = yes; then
- echo $ac_n "checking for asctime declaration in time.h""... $ac_c" 1>&6
- echo "configure:9236: checking for asctime declaration in time.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_asctime_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_asctime_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in time.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 9247 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}asctime *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_asctime_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_asctime_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 9263 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}asctime *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_asctime_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_asctime_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_asctime_decl" 1>&6
- if test "$ice_cv_have_asctime_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo clock | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_clock=no
- for ac_func in clock
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:9298: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 9303 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:9329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_clock=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_clock}" = yes; then
- echo $ac_n "checking for clock declaration in time.h""... $ac_c" 1>&6
- echo "configure:9355: checking for clock declaration in time.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_clock_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_clock_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in time.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 9366 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}clock *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_clock_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_clock_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 9382 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}clock *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_clock_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_clock_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_clock_decl" 1>&6
- if test "$ice_cv_have_clock_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo difftime | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_difftime=no
- for ac_func in difftime
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:9417: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 9422 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_difftime=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_difftime}" = yes; then
- echo $ac_n "checking for difftime declaration in time.h""... $ac_c" 1>&6
- echo "configure:9474: checking for difftime declaration in time.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_difftime_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_difftime_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in time.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 9485 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}difftime *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_difftime_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_difftime_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 9501 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}difftime *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_difftime_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_difftime_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_difftime_decl" 1>&6
- if test "$ice_cv_have_difftime_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo dup2 | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_dup2=no
- for ac_func in dup2
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:9536: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 9541 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_dup2=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_dup2}" = yes; then
- echo $ac_n "checking for dup2 declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:9593: checking for dup2 declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_dup2_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_dup2_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 9604 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}dup2 *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_dup2_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_dup2_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 9620 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}dup2 *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_dup2_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_dup2_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_dup2_decl" 1>&6
- if test "$ice_cv_have_dup2_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo endpwent | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_endpwent=no
- for ac_func in endpwent
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:9655: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 9660 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:9686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_endpwent=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_endpwent}" = yes; then
- echo $ac_n "checking for endpwent declaration in pwd.h""... $ac_c" 1>&6
- echo "configure:9712: checking for endpwent declaration in pwd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_endpwent_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_endpwent_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in pwd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 9723 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}endpwent *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_endpwent_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_endpwent_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 9739 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}endpwent *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_endpwent_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_endpwent_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_endpwent_decl" 1>&6
- if test "$ice_cv_have_endpwent_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo fcntl | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_fcntl=no
- for ac_func in fcntl
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:9774: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 9779 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:9805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_fcntl=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_fcntl}" = yes; then
- echo $ac_n "checking for fcntl declaration in fcntl.h""... $ac_c" 1>&6
- echo "configure:9831: checking for fcntl declaration in fcntl.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_fcntl_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_fcntl_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in fcntl.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 9842 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}fcntl *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_fcntl_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_fcntl_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 9858 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}fcntl *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_fcntl_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_fcntl_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_fcntl_decl" 1>&6
- if test "$ice_cv_have_fcntl_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo ftime | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_ftime=no
- for ac_func in ftime
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:9893: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 9898 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:9924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_ftime=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_ftime}" = yes; then
- echo $ac_n "checking for ftime declaration in sys/timeb.h""... $ac_c" 1>&6
- echo "configure:9950: checking for ftime declaration in sys/timeb.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_ftime_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_ftime_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in sys/timeb.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 9961 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}ftime *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_ftime_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_ftime_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 9977 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}ftime *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_ftime_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_ftime_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_ftime_decl" 1>&6
- if test "$ice_cv_have_ftime_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_gethostbyname=no
- for ac_func in gethostbyname
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:10012: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 10017 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:10043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_gethostbyname=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_gethostbyname}" = yes; then
- echo $ac_n "checking for gethostbyname declaration in netdb.h""... $ac_c" 1>&6
- echo "configure:10069: checking for gethostbyname declaration in netdb.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_gethostbyname_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_gethostbyname_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in netdb.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 10080 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}gethostbyname *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_gethostbyname_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_gethostbyname_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 10096 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}gethostbyname *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_gethostbyname_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_gethostbyname_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_gethostbyname_decl" 1>&6
- if test "$ice_cv_have_gethostbyname_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo gethostname | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_gethostname=no
- for ac_func in gethostname
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:10131: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 10136 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:10162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_gethostname=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_gethostname}" = yes; then
- echo $ac_n "checking for gethostname declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:10188: checking for gethostname declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_gethostname_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_gethostname_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 10199 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}gethostname *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_gethostname_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_gethostname_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 10215 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}gethostname *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_gethostname_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_gethostname_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_gethostname_decl" 1>&6
- if test "$ice_cv_have_gethostname_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo getpty | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_getpty=no
- for ac_func in getpty
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:10250: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 10255 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_getpty=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_getpty}" = yes; then
- echo $ac_n "checking for getpty declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:10307: checking for getpty declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_getpty_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_getpty_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 10318 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}getpty *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_getpty_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_getpty_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 10334 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}getpty *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_getpty_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_getpty_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_getpty_decl" 1>&6
- if test "$ice_cv_have_getpty_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo getrlimit | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_getrlimit=no
- for ac_func in getrlimit
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:10369: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 10374 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:10400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_getrlimit=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_getrlimit}" = yes; then
- echo $ac_n "checking for getrlimit declaration in sys/resource.h""... $ac_c" 1>&6
- echo "configure:10426: checking for getrlimit declaration in sys/resource.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_getrlimit_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_getrlimit_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in sys/resource.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 10437 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}getrlimit *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_getrlimit_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_getrlimit_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 10453 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}getrlimit *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_getrlimit_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_getrlimit_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_getrlimit_decl" 1>&6
- if test "$ice_cv_have_getrlimit_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo getrusage | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_getrusage=no
- for ac_func in getrusage
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:10488: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 10493 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_getrusage=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_getrusage}" = yes; then
- echo $ac_n "checking for getrusage declaration in sys/resource.h""... $ac_c" 1>&6
- echo "configure:10545: checking for getrusage declaration in sys/resource.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_getrusage_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_getrusage_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in sys/resource.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 10556 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}getrusage *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_getrusage_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_getrusage_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 10572 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}getrusage *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_getrusage_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_getrusage_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_getrusage_decl" 1>&6
- if test "$ice_cv_have_getrusage_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo getwd | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_getwd=no
- for ac_func in getwd
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:10607: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 10612 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:10638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_getwd=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_getwd}" = yes; then
- echo $ac_n "checking for getwd declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:10664: checking for getwd declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_getwd_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_getwd_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 10675 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}getwd *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_getwd_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_getwd_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 10691 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}getwd *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_getwd_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_getwd_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_getwd_decl" 1>&6
- if test "$ice_cv_have_getwd_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo grantpt | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_grantpt=no
- for ac_func in grantpt
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:10726: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 10731 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_grantpt=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_grantpt}" = yes; then
- echo $ac_n "checking for grantpt declaration in stdlib.h""... $ac_c" 1>&6
- echo "configure:10783: checking for grantpt declaration in stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_grantpt_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_grantpt_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 10794 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}grantpt *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_grantpt_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_grantpt_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 10810 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}grantpt *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_grantpt_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_grantpt_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_grantpt_decl" 1>&6
- if test "$ice_cv_have_grantpt_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo hypot | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_hypot=no
- for ac_func in hypot
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:10845: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 10850 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:10876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_hypot=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_hypot}" = yes; then
- echo $ac_n "checking for hypot declaration in math.h""... $ac_c" 1>&6
- echo "configure:10902: checking for hypot declaration in math.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_hypot_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_hypot_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in math.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 10913 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}hypot *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_hypot_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_hypot_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 10929 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}hypot *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_hypot_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_hypot_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_hypot_decl" 1>&6
- if test "$ice_cv_have_hypot_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo ioctl | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_ioctl=no
- for ac_func in ioctl
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:10964: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 10969 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:10995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_ioctl=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_ioctl}" = yes; then
- echo $ac_n "checking for ioctl declaration in unistd.h sys/ioctl.h""... $ac_c" 1>&6
- echo "configure:11021: checking for ioctl declaration in unistd.h sys/ioctl.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_ioctl_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_ioctl_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h sys/ioctl.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 11032 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}ioctl *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_ioctl_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_ioctl_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 11048 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}ioctl *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_ioctl_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_ioctl_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_ioctl_decl" 1>&6
- if test "$ice_cv_have_ioctl_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo link | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_link=no
- for ac_func in link
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:11083: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 11088 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:11114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_link=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_link}" = yes; then
- echo $ac_n "checking for link declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:11140: checking for link declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_link_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_link_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 11151 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}link *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_link_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_link_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 11167 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}link *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_link_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_link_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_link_decl" 1>&6
- if test "$ice_cv_have_link_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo lstat | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_lstat=no
- for ac_func in lstat
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:11202: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 11207 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_lstat=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_lstat}" = yes; then
- echo $ac_n "checking for lstat declaration in sys/stat.h""... $ac_c" 1>&6
- echo "configure:11259: checking for lstat declaration in sys/stat.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_lstat_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_lstat_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in sys/stat.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 11270 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}lstat *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_lstat_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_lstat_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 11286 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}lstat *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_lstat_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_lstat_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_lstat_decl" 1>&6
- if test "$ice_cv_have_lstat_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo malloc | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_malloc=no
- for ac_func in malloc
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:11321: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 11326 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:11352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_malloc=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_malloc}" = yes; then
- echo $ac_n "checking for malloc declaration in stdlib.h""... $ac_c" 1>&6
- echo "configure:11378: checking for malloc declaration in stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_malloc_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_malloc_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 11389 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}malloc *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_malloc_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_malloc_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 11405 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}malloc *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_malloc_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_malloc_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_malloc_decl" 1>&6
- if test "$ice_cv_have_malloc_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo memcpy | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_memcpy=no
- for ac_func in memcpy
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:11440: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 11445 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:11471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_memcpy=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_memcpy}" = yes; then
- echo $ac_n "checking for memcpy declaration in string.h""... $ac_c" 1>&6
- echo "configure:11497: checking for memcpy declaration in string.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_memcpy_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_memcpy_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in string.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 11508 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}memcpy *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_memcpy_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_memcpy_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 11524 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}memcpy *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_memcpy_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_memcpy_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_memcpy_decl" 1>&6
- if test "$ice_cv_have_memcpy_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo memset | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_memset=no
- for ac_func in memset
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:11559: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 11564 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:11590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_memset=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_memset}" = yes; then
- echo $ac_n "checking for memset declaration in string.h""... $ac_c" 1>&6
- echo "configure:11616: checking for memset declaration in string.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_memset_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_memset_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in string.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 11627 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}memset *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_memset_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_memset_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 11643 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}memset *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_memset_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_memset_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_memset_decl" 1>&6
- if test "$ice_cv_have_memset_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo pclose | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_pclose=no
- for ac_func in pclose
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:11678: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 11683 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:11709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_pclose=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_pclose}" = yes; then
- echo $ac_n "checking for pclose declaration in stdio.h""... $ac_c" 1>&6
- echo "configure:11735: checking for pclose declaration in stdio.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_pclose_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_pclose_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdio.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 11746 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}pclose *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_pclose_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_pclose_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 11762 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}pclose *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_pclose_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_pclose_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_pclose_decl" 1>&6
- if test "$ice_cv_have_pclose_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo popen | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_popen=no
- for ac_func in popen
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:11797: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 11802 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:11828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_popen=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_popen}" = yes; then
- echo $ac_n "checking for popen declaration in stdio.h""... $ac_c" 1>&6
- echo "configure:11854: checking for popen declaration in stdio.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_popen_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_popen_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdio.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 11865 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}popen *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_popen_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_popen_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 11881 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}popen *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_popen_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_popen_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_popen_decl" 1>&6
- if test "$ice_cv_have_popen_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo ptrace | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_ptrace=no
- for ac_func in ptrace
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:11916: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 11921 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:11947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_ptrace=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_ptrace}" = yes; then
- echo $ac_n "checking for ptrace declaration in unistd.h sys/ptrace.h""... $ac_c" 1>&6
- echo "configure:11973: checking for ptrace declaration in unistd.h sys/ptrace.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_ptrace_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_ptrace_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h sys/ptrace.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 11984 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}ptrace *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_ptrace_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_ptrace_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 12000 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}ptrace *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_ptrace_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_ptrace_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_ptrace_decl" 1>&6
- if test "$ice_cv_have_ptrace_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo ptsname | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_ptsname=no
- for ac_func in ptsname
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:12035: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 12040 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:12066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_ptsname=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_ptsname}" = yes; then
- echo $ac_n "checking for ptsname declaration in stdlib.h""... $ac_c" 1>&6
- echo "configure:12092: checking for ptsname declaration in stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_ptsname_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_ptsname_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 12103 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}ptsname *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_ptsname_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_ptsname_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 12119 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}ptsname *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_ptsname_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_ptsname_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_ptsname_decl" 1>&6
- if test "$ice_cv_have_ptsname_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo raise | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_raise=no
- for ac_func in raise
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:12154: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 12159 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:12185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_raise=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_raise}" = yes; then
- echo $ac_n "checking for raise declaration in signal.h""... $ac_c" 1>&6
- echo "configure:12211: checking for raise declaration in signal.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_raise_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_raise_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in signal.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 12222 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}raise *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_raise_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_raise_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 12238 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}raise *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_raise_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_raise_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_raise_decl" 1>&6
- if test "$ice_cv_have_raise_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo rand | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_rand=no
- for ac_func in rand
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:12273: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 12278 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:12304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_rand=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_rand}" = yes; then
- echo $ac_n "checking for rand declaration in stdlib.h""... $ac_c" 1>&6
- echo "configure:12330: checking for rand declaration in stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_rand_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_rand_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 12341 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}rand *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_rand_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_rand_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 12357 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}rand *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_rand_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_rand_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_rand_decl" 1>&6
- if test "$ice_cv_have_rand_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo random | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_random=no
- for ac_func in random
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:12392: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 12397 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:12423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_random=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_random}" = yes; then
- echo $ac_n "checking for random declaration in stdlib.h""... $ac_c" 1>&6
- echo "configure:12449: checking for random declaration in stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_random_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_random_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 12460 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}random *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_random_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_random_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 12476 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}random *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_random_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_random_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_random_decl" 1>&6
- if test "$ice_cv_have_random_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo readlink | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_readlink=no
- for ac_func in readlink
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:12511: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 12516 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:12542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_readlink=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_readlink}" = yes; then
- echo $ac_n "checking for readlink declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:12568: checking for readlink declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_readlink_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_readlink_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 12579 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}readlink *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_readlink_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_readlink_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 12595 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}readlink *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_readlink_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_readlink_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_readlink_decl" 1>&6
- if test "$ice_cv_have_readlink_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo setbuf | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_setbuf=no
- for ac_func in setbuf
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:12630: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 12635 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:12661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_setbuf=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_setbuf}" = yes; then
- echo $ac_n "checking for setbuf declaration in stdio.h""... $ac_c" 1>&6
- echo "configure:12687: checking for setbuf declaration in stdio.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_setbuf_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_setbuf_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdio.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 12698 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setbuf *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setbuf_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setbuf_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 12714 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setbuf *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setbuf_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setbuf_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_setbuf_decl" 1>&6
- if test "$ice_cv_have_setbuf_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo setpgid | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_setpgid=no
- for ac_func in setpgid
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:12749: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 12754 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:12780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_setpgid=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_setpgid}" = yes; then
- echo $ac_n "checking for setpgid declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:12806: checking for setpgid declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_setpgid_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_setpgid_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 12817 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setpgid *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setpgid_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setpgid_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 12833 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setpgid *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setpgid_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setpgid_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_setpgid_decl" 1>&6
- if test "$ice_cv_have_setpgid_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo setpgrp | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_setpgrp=no
- for ac_func in setpgrp
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:12868: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 12873 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:12899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_setpgrp=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_setpgrp}" = yes; then
- echo $ac_n "checking for setpgrp declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:12925: checking for setpgrp declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_setpgrp_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_setpgrp_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 12936 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setpgrp *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setpgrp_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setpgrp_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 12952 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setpgrp *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setpgrp_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setpgrp_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_setpgrp_decl" 1>&6
- if test "$ice_cv_have_setpgrp_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo setpgrp2 | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_setpgrp2=no
- for ac_func in setpgrp2
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:12987: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 12992 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:13018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_setpgrp2=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_setpgrp2}" = yes; then
- echo $ac_n "checking for setpgrp2 declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:13044: checking for setpgrp2 declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_setpgrp2_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_setpgrp2_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 13055 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setpgrp2 *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setpgrp2_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setpgrp2_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 13071 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setpgrp2 *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setpgrp2_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setpgrp2_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_setpgrp2_decl" 1>&6
- if test "$ice_cv_have_setpgrp2_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo setpwent | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_setpwent=no
- for ac_func in setpwent
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:13106: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 13111 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:13137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_setpwent=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_setpwent}" = yes; then
- echo $ac_n "checking for setpwent declaration in pwd.h""... $ac_c" 1>&6
- echo "configure:13163: checking for setpwent declaration in pwd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_setpwent_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_setpwent_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in pwd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 13174 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setpwent *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setpwent_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setpwent_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 13190 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setpwent *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setpwent_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setpwent_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_setpwent_decl" 1>&6
- if test "$ice_cv_have_setpwent_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo setrlimit | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_setrlimit=no
- for ac_func in setrlimit
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:13225: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 13230 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_setrlimit=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_setrlimit}" = yes; then
- echo $ac_n "checking for setrlimit declaration in sys/resource.h""... $ac_c" 1>&6
- echo "configure:13282: checking for setrlimit declaration in sys/resource.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_setrlimit_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_setrlimit_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in sys/resource.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 13293 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setrlimit *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setrlimit_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setrlimit_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 13309 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setrlimit *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setrlimit_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setrlimit_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_setrlimit_decl" 1>&6
- if test "$ice_cv_have_setrlimit_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo setsid | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_setsid=no
- for ac_func in setsid
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:13344: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 13349 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:13375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_setsid=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_setsid}" = yes; then
- echo $ac_n "checking for setsid declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:13401: checking for setsid declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_setsid_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_setsid_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 13412 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setsid *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setsid_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setsid_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 13428 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setsid *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setsid_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setsid_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_setsid_decl" 1>&6
- if test "$ice_cv_have_setsid_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo setvbuf | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_setvbuf=no
- for ac_func in setvbuf
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:13463: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 13468 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:13494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_setvbuf=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_setvbuf}" = yes; then
- echo $ac_n "checking for setvbuf declaration in stdio.h""... $ac_c" 1>&6
- echo "configure:13520: checking for setvbuf declaration in stdio.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_setvbuf_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_setvbuf_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdio.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 13531 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setvbuf *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setvbuf_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setvbuf_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 13547 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}setvbuf *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_setvbuf_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_setvbuf_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_setvbuf_decl" 1>&6
- if test "$ice_cv_have_setvbuf_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo sigblock | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_sigblock=no
- for ac_func in sigblock
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:13582: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 13587 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:13613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_sigblock=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_sigblock}" = yes; then
- echo $ac_n "checking for sigblock declaration in signal.h""... $ac_c" 1>&6
- echo "configure:13639: checking for sigblock declaration in signal.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_sigblock_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_sigblock_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in signal.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 13650 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}sigblock *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_sigblock_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_sigblock_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 13666 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}sigblock *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_sigblock_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_sigblock_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_sigblock_decl" 1>&6
- if test "$ice_cv_have_sigblock_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo sigprocmask | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_sigprocmask=no
- for ac_func in sigprocmask
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:13701: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 13706 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:13732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_sigprocmask=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_sigprocmask}" = yes; then
- echo $ac_n "checking for sigprocmask declaration in signal.h""... $ac_c" 1>&6
- echo "configure:13758: checking for sigprocmask declaration in signal.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_sigprocmask_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_sigprocmask_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in signal.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 13769 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}sigprocmask *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_sigprocmask_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_sigprocmask_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 13785 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}sigprocmask *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_sigprocmask_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_sigprocmask_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_sigprocmask_decl" 1>&6
- if test "$ice_cv_have_sigprocmask_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo sigsetmask | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_sigsetmask=no
- for ac_func in sigsetmask
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:13820: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 13825 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:13851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_sigsetmask=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_sigsetmask}" = yes; then
- echo $ac_n "checking for sigsetmask declaration in signal.h""... $ac_c" 1>&6
- echo "configure:13877: checking for sigsetmask declaration in signal.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_sigsetmask_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_sigsetmask_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in signal.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 13888 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}sigsetmask *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_sigsetmask_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_sigsetmask_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 13904 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}sigsetmask *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_sigsetmask_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_sigsetmask_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_sigsetmask_decl" 1>&6
- if test "$ice_cv_have_sigsetmask_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo sigsuspend | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_sigsuspend=no
- for ac_func in sigsuspend
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:13939: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 13944 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:13970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_sigsuspend=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_sigsuspend}" = yes; then
- echo $ac_n "checking for sigsuspend declaration in signal.h""... $ac_c" 1>&6
- echo "configure:13996: checking for sigsuspend declaration in signal.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_sigsuspend_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_sigsuspend_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in signal.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 14007 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}sigsuspend *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_sigsuspend_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_sigsuspend_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 14023 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}sigsuspend *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_sigsuspend_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_sigsuspend_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_sigsuspend_decl" 1>&6
- if test "$ice_cv_have_sigsuspend_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo srand | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_srand=no
- for ac_func in srand
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:14058: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 14063 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:14089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_srand=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_srand}" = yes; then
- echo $ac_n "checking for srand declaration in stdlib.h""... $ac_c" 1>&6
- echo "configure:14115: checking for srand declaration in stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_srand_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_srand_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 14126 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}srand *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_srand_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_srand_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 14142 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}srand *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_srand_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_srand_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_srand_decl" 1>&6
- if test "$ice_cv_have_srand_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo srandom | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_srandom=no
- for ac_func in srandom
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:14177: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 14182 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:14208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_srandom=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_srandom}" = yes; then
- echo $ac_n "checking for srandom declaration in stdlib.h""... $ac_c" 1>&6
- echo "configure:14234: checking for srandom declaration in stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_srandom_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_srandom_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 14245 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}srandom *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_srandom_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_srandom_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 14261 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}srandom *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_srandom_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_srandom_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_srandom_decl" 1>&6
- if test "$ice_cv_have_srandom_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo stat | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_stat=no
- for ac_func in stat
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:14296: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 14301 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:14327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_stat=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_stat}" = yes; then
- echo $ac_n "checking for stat declaration in sys/stat.h""... $ac_c" 1>&6
- echo "configure:14353: checking for stat declaration in sys/stat.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_stat_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_stat_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in sys/stat.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 14364 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}stat *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_stat_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_stat_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 14380 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}stat *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_stat_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_stat_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_stat_decl" 1>&6
- if test "$ice_cv_have_stat_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo strerror | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_strerror=no
- for ac_func in strerror
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:14415: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 14420 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:14446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_strerror=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_strerror}" = yes; then
- echo $ac_n "checking for strerror declaration in string.h""... $ac_c" 1>&6
- echo "configure:14472: checking for strerror declaration in string.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_strerror_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_strerror_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in string.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 14483 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strerror *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strerror_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strerror_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 14499 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strerror *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strerror_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strerror_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_strerror_decl" 1>&6
- if test "$ice_cv_have_strerror_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo strftime | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_strftime=no
- for ac_func in strftime
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:14534: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 14539 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:14565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_strftime=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_strftime}" = yes; then
- echo $ac_n "checking for strftime declaration in time.h""... $ac_c" 1>&6
- echo "configure:14591: checking for strftime declaration in time.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_strftime_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_strftime_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in time.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 14602 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strftime *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strftime_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strftime_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 14618 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strftime *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strftime_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strftime_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_strftime_decl" 1>&6
- if test "$ice_cv_have_strftime_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo strsignal | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_strsignal=no
- for ac_func in strsignal
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:14653: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 14658 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:14684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_strsignal=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_strsignal}" = yes; then
- echo $ac_n "checking for strsignal declaration in string.h""... $ac_c" 1>&6
- echo "configure:14710: checking for strsignal declaration in string.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_strsignal_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_strsignal_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in string.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 14721 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strsignal *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strsignal_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strsignal_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 14737 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strsignal *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strsignal_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strsignal_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_strsignal_decl" 1>&6
- if test "$ice_cv_have_strsignal_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo strtod | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_strtod=no
- for ac_func in strtod
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:14772: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 14777 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:14803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_strtod=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_strtod}" = yes; then
- echo $ac_n "checking for strtod declaration in stdlib.h""... $ac_c" 1>&6
- echo "configure:14829: checking for strtod declaration in stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_strtod_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_strtod_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 14840 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strtod *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strtod_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strtod_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 14856 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strtod *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strtod_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strtod_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_strtod_decl" 1>&6
- if test "$ice_cv_have_strtod_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo strtol | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_strtol=no
- for ac_func in strtol
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:14891: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 14896 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:14922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_strtol=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_strtol}" = yes; then
- echo $ac_n "checking for strtol declaration in stdlib.h""... $ac_c" 1>&6
- echo "configure:14948: checking for strtol declaration in stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_strtol_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_strtol_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 14959 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strtol *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strtol_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strtol_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 14975 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strtol *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strtol_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strtol_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_strtol_decl" 1>&6
- if test "$ice_cv_have_strtol_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo strtoul | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_strtoul=no
- for ac_func in strtoul
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:15010: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 15015 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:15041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_strtoul=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_strtoul}" = yes; then
- echo $ac_n "checking for strtoul declaration in stdlib.h""... $ac_c" 1>&6
- echo "configure:15067: checking for strtoul declaration in stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_strtoul_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_strtoul_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 15078 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strtoul *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strtoul_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strtoul_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 15094 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}strtoul *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_strtoul_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_strtoul_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_strtoul_decl" 1>&6
- if test "$ice_cv_have_strtoul_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo symlink | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_symlink=no
- for ac_func in symlink
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:15129: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 15134 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:15160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_symlink=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_symlink}" = yes; then
- echo $ac_n "checking for symlink declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:15186: checking for symlink declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_symlink_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_symlink_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 15197 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}symlink *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_symlink_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_symlink_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 15213 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}symlink *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_symlink_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_symlink_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_symlink_decl" 1>&6
- if test "$ice_cv_have_symlink_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo tcdrain | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_tcdrain=no
- for ac_func in tcdrain
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:15248: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 15253 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:15279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_tcdrain=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_tcdrain}" = yes; then
- echo $ac_n "checking for tcdrain declaration in termios.h""... $ac_c" 1>&6
- echo "configure:15305: checking for tcdrain declaration in termios.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_tcdrain_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_tcdrain_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in termios.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 15316 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcdrain *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcdrain_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcdrain_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 15332 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcdrain *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcdrain_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcdrain_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_tcdrain_decl" 1>&6
- if test "$ice_cv_have_tcdrain_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo tcflow | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_tcflow=no
- for ac_func in tcflow
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:15367: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 15372 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:15398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_tcflow=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_tcflow}" = yes; then
- echo $ac_n "checking for tcflow declaration in termios.h""... $ac_c" 1>&6
- echo "configure:15424: checking for tcflow declaration in termios.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_tcflow_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_tcflow_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in termios.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 15435 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcflow *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcflow_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcflow_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 15451 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcflow *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcflow_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcflow_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_tcflow_decl" 1>&6
- if test "$ice_cv_have_tcflow_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo tcflush | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_tcflush=no
- for ac_func in tcflush
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:15486: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 15491 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:15517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_tcflush=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_tcflush}" = yes; then
- echo $ac_n "checking for tcflush declaration in termios.h""... $ac_c" 1>&6
- echo "configure:15543: checking for tcflush declaration in termios.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_tcflush_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_tcflush_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in termios.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 15554 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcflush *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcflush_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcflush_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 15570 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcflush *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcflush_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcflush_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_tcflush_decl" 1>&6
- if test "$ice_cv_have_tcflush_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo tcgetattr | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_tcgetattr=no
- for ac_func in tcgetattr
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:15605: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 15610 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:15636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_tcgetattr=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_tcgetattr}" = yes; then
- echo $ac_n "checking for tcgetattr declaration in termios.h""... $ac_c" 1>&6
- echo "configure:15662: checking for tcgetattr declaration in termios.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_tcgetattr_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_tcgetattr_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in termios.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 15673 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcgetattr *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcgetattr_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcgetattr_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 15689 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcgetattr *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcgetattr_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcgetattr_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_tcgetattr_decl" 1>&6
- if test "$ice_cv_have_tcgetattr_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo tcgetpgrp | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_tcgetpgrp=no
- for ac_func in tcgetpgrp
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:15724: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 15729 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:15755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_tcgetpgrp=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_tcgetpgrp}" = yes; then
- echo $ac_n "checking for tcgetpgrp declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:15781: checking for tcgetpgrp declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_tcgetpgrp_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_tcgetpgrp_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 15792 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcgetpgrp *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcgetpgrp_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcgetpgrp_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 15808 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcgetpgrp *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcgetpgrp_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcgetpgrp_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_tcgetpgrp_decl" 1>&6
- if test "$ice_cv_have_tcgetpgrp_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo tcgetsid | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_tcgetsid=no
- for ac_func in tcgetsid
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:15843: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 15848 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:15874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_tcgetsid=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_tcgetsid}" = yes; then
- echo $ac_n "checking for tcgetsid declaration in sys/termios.h""... $ac_c" 1>&6
- echo "configure:15900: checking for tcgetsid declaration in sys/termios.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_tcgetsid_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_tcgetsid_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in sys/termios.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 15911 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcgetsid *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcgetsid_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcgetsid_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 15927 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcgetsid *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcgetsid_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcgetsid_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_tcgetsid_decl" 1>&6
- if test "$ice_cv_have_tcgetsid_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo tcsendbreak | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_tcsendbreak=no
- for ac_func in tcsendbreak
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:15962: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 15967 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:15993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_tcsendbreak=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_tcsendbreak}" = yes; then
- echo $ac_n "checking for tcsendbreak declaration in termios.h""... $ac_c" 1>&6
- echo "configure:16019: checking for tcsendbreak declaration in termios.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_tcsendbreak_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_tcsendbreak_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in termios.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 16030 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcsendbreak *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcsendbreak_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcsendbreak_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 16046 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcsendbreak *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcsendbreak_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcsendbreak_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_tcsendbreak_decl" 1>&6
- if test "$ice_cv_have_tcsendbreak_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo tcsetattr | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_tcsetattr=no
- for ac_func in tcsetattr
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:16081: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 16086 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:16112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_tcsetattr=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_tcsetattr}" = yes; then
- echo $ac_n "checking for tcsetattr declaration in termios.h""... $ac_c" 1>&6
- echo "configure:16138: checking for tcsetattr declaration in termios.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_tcsetattr_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_tcsetattr_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in termios.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 16149 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcsetattr *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcsetattr_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcsetattr_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 16165 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcsetattr *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcsetattr_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcsetattr_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_tcsetattr_decl" 1>&6
- if test "$ice_cv_have_tcsetattr_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo tcsetpgrp | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_tcsetpgrp=no
- for ac_func in tcsetpgrp
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:16200: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 16205 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:16231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_tcsetpgrp=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_tcsetpgrp}" = yes; then
- echo $ac_n "checking for tcsetpgrp declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:16257: checking for tcsetpgrp declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_tcsetpgrp_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_tcsetpgrp_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 16268 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcsetpgrp *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcsetpgrp_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcsetpgrp_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 16284 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}tcsetpgrp *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_tcsetpgrp_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_tcsetpgrp_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_tcsetpgrp_decl" 1>&6
- if test "$ice_cv_have_tcsetpgrp_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo times | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_times=no
- for ac_func in times
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:16319: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 16324 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:16350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_times=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_times}" = yes; then
- echo $ac_n "checking for times declaration in sys/times.h""... $ac_c" 1>&6
- echo "configure:16376: checking for times declaration in sys/times.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_times_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_times_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in sys/times.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 16387 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}times *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_times_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_times_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 16403 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}times *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_times_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_times_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_times_decl" 1>&6
- if test "$ice_cv_have_times_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo uname | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_uname=no
- for ac_func in uname
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:16438: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 16443 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:16469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_uname=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_uname}" = yes; then
- echo $ac_n "checking for uname declaration in sys/utsname.h""... $ac_c" 1>&6
- echo "configure:16495: checking for uname declaration in sys/utsname.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_uname_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_uname_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in sys/utsname.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 16506 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}uname *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_uname_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_uname_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 16522 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}uname *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_uname_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_uname_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_uname_decl" 1>&6
- if test "$ice_cv_have_uname_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo unlink | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_unlink=no
- for ac_func in unlink
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:16557: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 16562 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:16588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_unlink=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_unlink}" = yes; then
- echo $ac_n "checking for unlink declaration in unistd.h""... $ac_c" 1>&6
- echo "configure:16614: checking for unlink declaration in unistd.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_unlink_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_unlink_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in unistd.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 16625 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}unlink *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_unlink_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_unlink_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 16641 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}unlink *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_unlink_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_unlink_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_unlink_decl" 1>&6
- if test "$ice_cv_have_unlink_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo unlockpt | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_unlockpt=no
- for ac_func in unlockpt
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:16676: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 16681 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:16707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_unlockpt=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_unlockpt}" = yes; then
- echo $ac_n "checking for unlockpt declaration in stdlib.h""... $ac_c" 1>&6
- echo "configure:16733: checking for unlockpt declaration in stdlib.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_unlockpt_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_unlockpt_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in stdlib.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 16744 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}unlockpt *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_unlockpt_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_unlockpt_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 16760 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}unlockpt *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_unlockpt_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_unlockpt_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_unlockpt_decl" 1>&6
- if test "$ice_cv_have_unlockpt_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
-
- ice_tr=`echo waitpid | tr '[a-z]' '[A-Z]'`
- ice_have_tr=HAVE_$ice_tr
- ice_have_decl_tr=${ice_have_tr}_DECL
- ice_have_waitpid=no
- for ac_func in waitpid
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:16795: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 16800 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
-
- int main() {
-
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
-
- ; return 0; }
- EOF
- if { (eval echo configure:16826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
-
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- ice_have_waitpid=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "${ice_have_waitpid}" = yes; then
- echo $ac_n "checking for waitpid declaration in sys/wait.h""... $ac_c" 1>&6
- echo "configure:16852: checking for waitpid declaration in sys/wait.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_waitpid_decl'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ice_cv_have_waitpid_decl=no
- ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
- ice_re_word='(^|[^a-zA-Z_0-9_])'
- for header in sys/wait.h; do
- # Check for ordinary declaration
- cat > conftest.$ac_ext <<EOF
- #line 16863 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}waitpid *\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_waitpid_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_waitpid_decl" = yes; then
- break
- fi
- # Check for "fixed" declaration like "getpid _PARAMS((int))"
- cat > conftest.$ac_ext <<EOF
- #line 16879 "configure"
- #include "confdefs.h"
- #include <$header>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "${ice_re_word}waitpid *$ice_re_params\(\(" >/dev/null 2>&1; then
- rm -rf conftest*
- ice_cv_have_waitpid_decl=yes
- fi
- rm -f conftest*
-
- if test "$ice_cv_have_waitpid_decl" = yes; then
- break
- fi
- done
-
- fi
-
- echo "$ac_t""$ice_cv_have_waitpid_decl" 1>&6
- if test "$ice_cv_have_waitpid_decl" = yes; then
- cat >> confdefs.h <<EOF
- #define ${ice_have_decl_tr} 1
- EOF
-
- fi
- fi
-
- ice_save_LIBS="$LIBS"
- LIBS="$CXXLIBS $LIBS"
-
- echo $ac_n "checking for PATH_MAX definition in limits.h""... $ac_c" 1>&6
- echo "configure:16910: checking for PATH_MAX definition in limits.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_path_max'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- cat > conftest.$ac_ext <<EOF
- #line 16916 "configure"
- #include "confdefs.h"
- #include <limits.h>
- int main() {
- int n = PATH_MAX;
- ; return 0; }
- EOF
- if { (eval echo configure:16923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_path_max=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_path_max=no
- fi
- rm -f conftest*
-
- fi
-
- echo "$ac_t""$ice_cv_have_path_max" 1>&6
- if test "$ice_cv_have_path_max" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_PATH_MAX 1
- EOF
-
- fi
-
-
- echo $ac_n "checking for _POSIX_PATH_MAX definition in limits.h""... $ac_c" 1>&6
- echo "configure:16946: checking for _POSIX_PATH_MAX definition in limits.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_posix_path_max'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- cat > conftest.$ac_ext <<EOF
- #line 16952 "configure"
- #include "confdefs.h"
- #include <limits.h>
- int main() {
- int n = _POSIX_PATH_MAX
- ; return 0; }
- EOF
- if { (eval echo configure:16959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_posix_path_max=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_posix_path_max=no
- fi
- rm -f conftest*
-
- fi
-
- echo "$ac_t""$ice_cv_have_posix_path_max" 1>&6
- if test "$ice_cv_have_posix_path_max" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_POSIX_PATH_MAX 1
- EOF
-
- fi
-
-
- echo $ac_n "checking for MAXPATHLEN definition in sys/param.h""... $ac_c" 1>&6
- echo "configure:16982: checking for MAXPATHLEN definition in sys/param.h" >&5
- if eval "test \"`echo '$''{'ice_cv_have_maxpathlen'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- cat > conftest.$ac_ext <<EOF
- #line 16988 "configure"
- #include "confdefs.h"
- #include <sys/param.h>
- int main() {
- int n = MAXPATHLEN;
- ; return 0; }
- EOF
- if { (eval echo configure:16995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ice_cv_have_maxpathlen=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ice_cv_have_maxpathlen=no
- fi
- rm -f conftest*
-
- fi
-
- echo "$ac_t""$ice_cv_have_maxpathlen" 1>&6
- if test "$ice_cv_have_maxpathlen" = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_MAXPATHLEN 1
- EOF
-
- fi
-
- LIBS="$ice_save_LIBS"
- LIBRX="../librx/librx.a"
- if test "$ice_have_regcomp" = yes && test "$ice_have_regexec" = yes && test "$ice_cv_regcomp_broken" = no; then
- LIBRX=""
- fi
-
- cat >> confdefs.h <<\EOF
- #define WITH_RUNTIME_REGEX 0
- EOF
-
- cat >> confdefs.h <<\EOF
- #define RUNTIME_REGEX 0
- EOF
-
- # Check whether --enable-builtin-manual or --disable-builtin-manual was given.
- if test "${enable_builtin_manual+set}" = set; then
- enableval="$enable_builtin_manual"
- builtin_manual="$enableval"
- else
- builtin_manual=yes
- fi
-
- # Check whether --enable-builtin-app-defaults or --disable-builtin-app-defaults was given.
- if test "${enable_builtin_app_defaults+set}" = set; then
- enableval="$enable_builtin_app_defaults"
- builtin_app_defaults="$enableval"
- else
- builtin_app_defaults=yes
- fi
-
- if test "$builtin_manual" != no; then
- cat >> confdefs.h <<\EOF
- #define WITH_BUILTIN_MANUAL 1
- EOF
-
- fi
- if test "$builtin_app_defaults" != no; then
- cat >> confdefs.h <<\EOF
- #define WITH_BUILTIN_APP_DEFAULTS 1
- EOF
-
- fi
- risky_lesstif=false
- ice_save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS $X_CFLAGS"
- cat > conftest.$ac_ext <<EOF
- #line 17062 "configure"
- #include "confdefs.h"
- #include <Xm/Xm.h>
- #ifdef LESSTIF_VERSION
- #if LESSTIF_VERSION == 0 && LESSTIF_REVISION <= 86
- #error LessTif 0.86 or earlier
- #endif
- #endif
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:17072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out`
- if test -z "$ac_err"; then
- rm -rf conftest*
- risky_lesstif=false
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- risky_lesstif=true
- fi
- rm -f conftest*
- CPPFLAGS="$ice_save_CPPFLAGS"
- risky_cc=false
- # Warn about old SGI CC versions.
- case "$CXX" in
- *CC)
- if test "$host_vendor" = "sgi" && test "$ice_cv_have_bool" != yes; then
- risky_cc=true
- fi
- ;;
- *)
- ;;
- esac
- # Warn about old xlC versions.
- case "$CXX" in
- *xlC)
- if test "$ice_cv_have_bool" != yes; then
- risky_cc=true
- fi
- ;;
- *)
- ;;
- esac
- trap '' 1 2 15
- cat > confcache <<\EOF
- # This file is a shell script that caches the results of configure
- # tests run on this system so they can be shared between configure
- # scripts and configure runs. It is not useful on other systems.
- # If it contains results you don't want to keep, you may remove or edit it.
- #
- # By default, configure uses ./config.cache as the cache file,
- # creating it if it does not exist already. You can give configure
- # the --cache-file=FILE option to use a different cache file; that is
- # what configure does when it calls configure scripts in
- # subdirectories, so they share the cache.
- # Giving --cache-file=/dev/null disables caching, for debugging configure.
- # config.status only pays attention to the cache file if you give it the
- # --recheck option to rerun configure.
- #
- EOF
- # The following way of writing the cache mishandles newlines in values,
- # but we know of no workaround that is simple, portable, and efficient.
- # So, don't put newlines in cache variables' values.
- # Ultrix sh set writes to stderr and can't be redirected directly,
- # and sets the high bit in the cache file unless we assign to the vars.
- (set) 2>&1 |
- case `(ac_space=' '; set) 2>&1` in
- *ac_space=\ *)
- # `set' does not quote correctly, so add quotes (double-quote substitution
- # turns \\\\ into \\, and sed turns \\ into \).
- sed -n \
- -e "s/'/'\\\\''/g" \
- -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
- ;;
- esac >> confcache
- if cmp -s $cache_file confcache; then
- :
- else
- if test -w $cache_file; then
- echo "updating cache $cache_file"
- cat confcache > $cache_file
- else
- echo "not updating unwritable cache $cache_file"
- fi
- fi
- rm -f confcache
-
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
-
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
-
- # Any assignment to VPATH causes Sun make to only execute
- # the first set of double-colon rules, so remove it if not needed.
- # If there is a colon in the path, we need to keep it.
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
- fi
-
- trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
-
- DEFS=-DHAVE_CONFIG_H
-
- # Without the "./", some shells look in PATH for config.status.
- : ${CONFIG_STATUS=./config.status}
-
- echo creating $CONFIG_STATUS
- rm -f $CONFIG_STATUS
- cat > $CONFIG_STATUS <<EOF
- #! /bin/sh
- # Generated automatically by configure.
- # Run this file to recreate the current configuration.
- # This directory was configured as follows,
- # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- #
- # $0 $ac_configure_args
- #
- # Compiler output produced by configure, useful for debugging
- # configure, is in ./config.log if it exists.
-
- ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- for ac_option
- do
- case "\$ac_option" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.12"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "\$ac_cs_usage"; exit 0 ;;
- *) echo "\$ac_cs_usage"; exit 1 ;;
- esac
- done
-
- ac_given_srcdir=$srcdir
- ac_given_INSTALL="$INSTALL"
-
- trap 'rm -fr `echo "Makefile vr.h Ddd ddd.man .gdbinit config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
- EOF
- cat >> $CONFIG_STATUS <<EOF
-
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
- $ac_vpsub
- $extrasub
- s%@CFLAGS@%$CFLAGS%g
- s%@CPPFLAGS@%$CPPFLAGS%g
- s%@CXXFLAGS@%$CXXFLAGS%g
- s%@DEFS@%$DEFS%g
- s%@LDFLAGS@%$LDFLAGS%g
- s%@LIBS@%$LIBS%g
- s%@exec_prefix@%$exec_prefix%g
- s%@prefix@%$prefix%g
- s%@program_transform_name@%$program_transform_name%g
- s%@bindir@%$bindir%g
- s%@sbindir@%$sbindir%g
- s%@libexecdir@%$libexecdir%g
- s%@datadir@%$datadir%g
- s%@sysconfdir@%$sysconfdir%g
- s%@sharedstatedir@%$sharedstatedir%g
- s%@localstatedir@%$localstatedir%g
- s%@libdir@%$libdir%g
- s%@includedir@%$includedir%g
- s%@oldincludedir@%$oldincludedir%g
- s%@infodir@%$infodir%g
- s%@mandir@%$mandir%g
- s%@DDD@%$DDD%g
- s%@ddd@%$ddd%g
- s%@Ddd@%$Ddd%g
- s%@VERSION@%$VERSION%g
- s%@NICKNAME@%$NICKNAME%g
- s%@EXPIRES@%$EXPIRES%g
- s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
- s%@INSTALL_DATA@%$INSTALL_DATA%g
- s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
- s%@PACKAGE@%$PACKAGE%g
- s%@ACLOCAL@%$ACLOCAL%g
- s%@AUTOCONF@%$AUTOCONF%g
- s%@AUTOMAKE@%$AUTOMAKE%g
- s%@AUTOHEADER@%$AUTOHEADER%g
- s%@MAKEINFO@%$MAKEINFO%g
- s%@SET_MAKE@%$SET_MAKE%g
- s%@host@%$host%g
- s%@host_alias@%$host_alias%g
- s%@host_cpu@%$host_cpu%g
- s%@host_vendor@%$host_vendor%g
- s%@host_os@%$host_os%g
- s%@CC@%$CC%g
- s%@LN_S@%$LN_S%g
- s%@SH@%$SH%g
- s%@TAR@%$TAR%g
- s%@M4@%$M4%g
- s%@SED@%$SED%g
- s%@DIFF@%$DIFF%g
- s%@DVIPS@%$DVIPS%g
- s%@COMPRESS@%$COMPRESS%g
- s%@UNCOMPRESS@%$UNCOMPRESS%g
- s%@RSH@%$RSH%g
- s%@LPR@%$LPR%g
- s%@PRINT_COMMAND@%$PRINT_COMMAND%g
- s%@GCORE@%$GCORE%g
- s%@GCORE_COMMAND@%$GCORE_COMMAND%g
- s%@DEBUGGER@%$DEBUGGER%g
- s%@DEBUGGER_OPTION@%$DEBUGGER_OPTION%g
- s%@XTERM@%$XTERM%g
- s%@XFONTSEL@%$XFONTSEL%g
- s%@RANLIB@%$RANLIB%g
- s%@YACC@%$YACC%g
- s%@YFLAGS@%$YFLAGS%g
- s%@LEX@%$LEX%g
- s%@LEXLIB@%$LEXLIB%g
- s%@CPP@%$CPP%g
- s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
- s%@LFLAGS@%$LFLAGS%g
- s%@AWK@%$AWK%g
- s%@CXX@%$CXX%g
- s%@CXXLIBS@%$CXXLIBS%g
- s%@CXXCPP@%$CXXCPP%g
- s%@WARN_EFFECTIVE_CXX@%$WARN_EFFECTIVE_CXX%g
- s%@WARN_NO_EFFECTIVE_CXX@%$WARN_NO_EFFECTIVE_CXX%g
- s%@WARN_UNINITIALIZED@%$WARN_UNINITIALIZED%g
- s%@WARN_NO_UNINITIALIZED@%$WARN_NO_UNINITIALIZED%g
- s%@MINIMAL_TOC@%$MINIMAL_TOC%g
- s%@BIG_TOC@%$BIG_TOC%g
- s%@XS_DEBUG_INFO@%$XS_DEBUG_INFO%g
- s%@CXXWARNINGS@%$CXXWARNINGS%g
- s%@CXXDEBUG@%$CXXDEBUG%g
- s%@CXXOPT@%$CXXOPT%g
- s%@CXXSTATIC_BINDING@%$CXXSTATIC_BINDING%g
- s%@CXXDYNAMIC_BINDING@%$CXXDYNAMIC_BINDING%g
- s%@EXTERNAL_TEMPLATES@%$EXTERNAL_TEMPLATES%g
- s%@ELIDE_CONSTRUCTORS@%$ELIDE_CONSTRUCTORS%g
- s%@CONSERVE_SPACE@%$CONSERVE_SPACE%g
- s%@CXXSTUFF@%$CXXSTUFF%g
- s%@CPP_TRADITIONAL@%$CPP_TRADITIONAL%g
- s%@EXEEXT@%$EXEEXT%g
- s%@LIBSOCKET@%$LIBSOCKET%g
- s%@LIBNSL@%$LIBNSL%g
- s%@LIBGEN@%$LIBGEN%g
- s%@LIBY@%$LIBY%g
- s%@LIBM@%$LIBM%g
- s%@LIBC@%$LIBC%g
- s%@LIBTERMCAP@%$LIBTERMCAP%g
- s%@LIBIBERTY@%$LIBIBERTY%g
- s%@X_CFLAGS@%$X_CFLAGS%g
- s%@X_PRE_LIBS@%$X_PRE_LIBS%g
- s%@X_LIBS@%$X_LIBS%g
- s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
- s%@X11_LIBS@%$X11_LIBS%g
- s%@XT_LIBS@%$XT_LIBS%g
- s%@XEXT_LIBS@%$XEXT_LIBS%g
- s%@XAW_LIBS@%$XAW_LIBS%g
- s%@XPM_LIBS@%$XPM_LIBS%g
- s%@XP_LIBS@%$XP_LIBS%g
- s%@XM_LIBS@%$XM_LIBS%g
- s%@TRANSLATIONS@%$TRANSLATIONS%g
- s%@LIBRX@%$LIBRX%g
-
- CEOF
- EOF
-
- cat >> $CONFIG_STATUS <<\EOF
-
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
- ac_file=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_cmds # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=""
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
- else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
- fi
- if test ! -s conftest.s$ac_file; then
- ac_more_lines=false
- rm -f conftest.s$ac_file
- else
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
- fi
- ac_file=`expr $ac_file + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
- EOF
-
- cat >> $CONFIG_STATUS <<EOF
-
- CONFIG_FILES=\${CONFIG_FILES-"Makefile vr.h Ddd ddd.man .gdbinit"}
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
-
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
-
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
- # A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
-
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
-
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
-
- echo creating "$ac_file"
- rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\\
- # $configure_input" ;;
- *) ac_comsub= ;;
- esac
-
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
- s%@configure_input@%$configure_input%g
- s%@srcdir@%$srcdir%g
- s%@top_srcdir@%$top_srcdir%g
- s%@INSTALL@%$INSTALL%g
- " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
- fi; done
- rm -f conftest.s*
-
- # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
- # NAME is the cpp macro being defined and VALUE is the value it is being given.
- #
- # ac_d sets the value in "#define NAME VALUE" lines.
- ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
- ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
- ac_dC='\3'
- ac_dD='%g'
- # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
- ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
- ac_uB='\([ ]\)%\1#\2define\3'
- ac_uC=' '
- ac_uD='\4%g'
- # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
- ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
- ac_eB='$%\1#\2define\3'
- ac_eC=' '
- ac_eD='%g'
-
- if test "${CONFIG_HEADERS+set}" != set; then
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="config.h"
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- fi
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
-
- echo creating $ac_file
-
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
-
- EOF
-
- # Transform confdefs.h into a sed script conftest.vals that substitutes
- # the proper values into config.h.in to produce config.h. And first:
- # Protect against being on the right side of a sed subst in config.status.
- # Protect against being in an unquoted here document in config.status.
- rm -f conftest.vals
- cat > conftest.hdr <<\EOF
- s/[\\&%]/\\&/g
- s%[\\$`]%\\&%g
- s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
- s%ac_d%ac_u%gp
- s%ac_u%ac_e%gp
- EOF
- sed -n -f conftest.hdr confdefs.h > conftest.vals
- rm -f conftest.hdr
-
- # This sed command replaces #undef with comments. This is necessary, for
- # example, in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- cat >> conftest.vals <<\EOF
- s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
- EOF
-
- # Break up conftest.vals because some shells have a limit on
- # the size of here documents, and old seds have small limits too.
-
- rm -f conftest.tail
- while :
- do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
- echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
- ' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
- done
- rm -f conftest.vals
-
- cat >> $CONFIG_STATUS <<\EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- fi
- rm -f $ac_file
- mv conftest.h $ac_file
- fi
- fi; done
-
- EOF
- cat >> $CONFIG_STATUS <<EOF
-
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- date > stamp-h
- exit 0
- EOF
- chmod +x $CONFIG_STATUS
- rm -fr confdefs* $ac_clean_files
- test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
-
- if test "$silent" != yes; then
- if $risky_cc; then
- echo
- echo "configure: This $CXX version may not generate safe $DDD code."
- echo "Use GCC instead or continue at own risk."
- fi
- if $risky_lesstif; then
- echo
- echo "configure: This $DDD release requires LessTif 0.87 or later."
- echo "Upgrade to a recent LessTif version or continue at own risk."
- fi
- fi
- if test "$silent" != yes; then
- echo
- echo "configure: configuration is done. Type \`make' to make $DDD."
- echo "In case of trouble, please check the settings in the files generated"
- echo "by \`configure' - that is, \`ddd/config.h' and \`ddd/Makefile'."
- echo
- fi
- exit 0
-