#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.7 # Copyright (C) 1992, 1993, 1994 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 --with-xview Use the XView toolkit" ac_help="$ac_help --with-xview-includes=path Specifies XView includes directory" ac_help="$ac_help --with-xview-libraries=path Specifies XView libraries directory" ac_help="$ac_help --with-xv-bindir=dir Specifies directory where to install XView version" ac_help="$ac_help --with-sco Use this to turn on SCO-specific code" ac_help="$ac_help --with-sunos-curses Used to force SunOS 4.x curses" ac_help="$ac_help --with-osf1-curses Used to force OSF/1 curses" ac_help="$ac_help --with-vcurses[=incdir] Used to force SysV curses" ac_help="$ac_help --with-gpm-mouse[=base-dir] Compile with gpm mouse support" ac_help="$ac_help --with-ncurses[=base-dir] Compile with ncurses/locate base dir" ac_help="$ac_help --with-hsc Compile with support for the HSC firewall" ac_help="$ac_help --with-tk Use the Tk toolkit" ac_help="$ac_help --with-tk-includes=dir Specifies the Tcl/Tk header directory" ac_help="$ac_help --with-tk-libraries=dir Specifies the Tcl/Tk library directory" ac_help="$ac_help --with-gnome Compile the GNOME edition" ac_help="$ac_help --with-dusum Support the du -s summaries" ac_help="$ac_help --with-termnet If you want a termified net support" ac_help="$ac_help --with-subshell If you want to use a concurrent shell" ac_help="$ac_help --with-debug For use by developers only: activates -Wall and MAD" ac_help="$ac_help --with-efence Developers only: activates -Wall and efence" ac_help="$ac_help --with-mmap To force using the mmap call (AIX)" ac_help="$ac_help --with-terminfo SLANG: Force usage of terminfo" ac_help="$ac_help --with-termcap SLANG: Force usage of termcap" ac_help="$ac_help --with-our-slang SLANG: Don't use system-installed SLang" ac_help="$ac_help --with-slang Compile with the slang screen manager" ac_help="$ac_help --with-vfs Compile with the VFS code" ac_help="$ac_help --with-edit Define INTERNAL_EDIT" ac_help="$ac_help --with-netrc Compile with ftp .netrc support" ac_help="$ac_help --with-ext2undel Compile with ext2 undelete code" # 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= 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.7" 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 LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LANG+set}" = set; then LANG=C; export LANG; 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=create_vcs # 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='echo $CPP $CPPFLAGS 1>&5; $CPP $CPPFLAGS' ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5; ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5; ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' 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 include_additional_path="/usr/local/include /opt/gnu/include" use_cc_g_flag=yes CCOPTS="$CFLAGS" unset CFLAGS if test "x$prefix" = xNONE; then echo $ac_n "checking for prefix by ""... $ac_c" 1>&6 # Extract the first word of "mc", so it can be a program name with args. set dummy mc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_path_MC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$MC" in /*) ac_cv_path_MC="$MC" # 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_MC="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi MC="$ac_cv_path_MC" if test -n "$MC"; then echo "$ac_t""$MC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -n "$ac_cv_path_MC"; then prefix=`echo $ac_cv_path_MC|sed 's%/[^/][^/]*//*[^/][^/]*$%%'` fi fi echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 set dummy ${MAKE-make}; ac_make=$2 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 # 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 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" test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" 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 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <&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 if test "${CFLAGS+set}" != set; then echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_prog_gcc_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_gcc_g=yes else ac_cv_prog_gcc_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 if test $ac_cv_prog_gcc_g = yes; then CFLAGS="-g -O" else CFLAGS="-O" fi fi else GCC= test "${CFLAGS+set}" = set || CFLAGS="-g" fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 # 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 < Syntax Error EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then : else echo "$ac_err" >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then : else echo "$ac_err" >&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 # 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 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 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 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 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 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 if test x"$AWK" = x; then AWK=":" AWK_VAR_OPTION="" dep=slowdep else dep=fastdep # test whether awk needs -v for variables (e.g. Solaris) or not (e.g. SunOs 4) if test x"`echo | $AWK 'BEGIN { print variable; exit }' variable=123`" = x123; then AWK_VAR_OPTION="" else AWK_VAR_OPTION="-v" fi fi echo $ac_n "checking whether we are using GNU make""... $ac_c" 1>&6 set dummy ${MAKE-make}; ac_make=$2 if eval "test \"`echo '$''{'ac_cv_prog_gnu_make'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftestmake <<\EOF all: @echo ' ' EOF if ${MAKE-make} --version -f conftestmake 2>/dev/null | grep GNU >/dev/null 2>&1; then ac_cv_prog_gnu_make=yes else ac_cv_prog_gnu_make=no fi rm -f conftestmake fi if test $ac_cv_prog_gnu_make = yes; then echo "$ac_t""yes" 1>&6 GNU_MAKE="GNU_MAKE=yes" else echo "$ac_t""no" 1>&6 GNU_MAKE= fi echo $ac_n "checking for AIX""... $ac_c" 1>&6 cat > conftest.$ac_ext <&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF #define _ALL_SOURCE 1 EOF else rm -rf conftest* echo "$ac_t""no" 1>&6 fi rm -f conftest* ac_safe=`echo "minix/config.h" | tr './\055' '___'` echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 MINIX=yes else echo "$ac_t""no" 1>&6 MINIX= fi if test "$MINIX" = yes; then cat >> confdefs.h <<\EOF #define _POSIX_SOURCE 1 EOF cat >> confdefs.h <<\EOF #define _POSIX_1_SOURCE 2 EOF cat >> confdefs.h <<\EOF #define _MINIX 1 EOF fi echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 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 for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_prog_cc_stdc=no ac_save_CFLAGS="$CFLAGS" for ac_arg in "" "-Aa -D_HPUX_SOURCE" do CFLAGS="$ac_save_CFLAGS $ac_arg" cat > conftest.$ac_ext < #if !defined(__STDC__) || __STDC__ != 1 choke me #endif int main() { return 0; } int t() { int test (int i, double x); struct sigaction sa; struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; ; return 0; } EOF if eval $ac_compile; then rm -rf conftest* ac_cv_prog_cc_stdc="$ac_arg"; break fi rm -f conftest* done CFLAGS="$ac_save_CFLAGS" fi echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 case "x$ac_cv_prog_cc_stdc" in x|xno) ;; *) CC="$CC $ac_cv_prog_cc_stdc" ;; esac echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return 0; } int t() { return makedev(0, 0); ; return 0; } EOF if eval $ac_link; then rm -rf conftest* ac_cv_header_sys_types_h_makedev=yes else rm -rf conftest* ac_cv_header_sys_types_h_makedev=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6 if test $ac_cv_header_sys_types_h_makedev = no; then ac_safe=`echo "sys/mkdev.h" | tr './\055' '___'` echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 cat >> confdefs.h <<\EOF #define MAJOR_IN_MKDEV 1 EOF else echo "$ac_t""no" 1>&6 fi if test $ac_cv_header_sys_mkdev_h = no; then ac_safe=`echo "sys/sysmacros.h" | tr './\055' '___'` echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 cat >> confdefs.h <<\EOF #define MAJOR_IN_SYSMACROS 1 EOF else echo "$ac_t""no" 1>&6 fi fi fi echo $ac_n "checking for working const""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; } ; return 0; } EOF if eval $ac_compile; then rm -rf conftest* ac_cv_c_const=yes else rm -rf conftest* ac_cv_c_const=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_c_const" 1>&6 if test $ac_cv_c_const = no; then cat >> confdefs.h <<\EOF #define const EOF fi # Extract the first word of "mv", so it can be a program name with args. set dummy mv; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$MV" in /*) ac_cv_path_MV="$MV" # 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_MV="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" ;; esac fi MV="$ac_cv_path_MV" if test -n "$MV"; then echo "$ac_t""$MV" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "cp", so it can be a program name with args. set dummy cp; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$CP" in /*) ac_cv_path_CP="$CP" # 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_CP="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" ;; esac fi CP="$ac_cv_path_CP" if test -n "$CP"; then echo "$ac_t""$CP" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "rm", so it can be a program name with args. set dummy rm; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$RM" in /*) ac_cv_path_RM="$RM" # 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_RM="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" ;; esac fi RM="$ac_cv_path_RM" if test -n "$RM"; then echo "$ac_t""$RM" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "chmod", so it can be a program name with args. set dummy chmod; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$CHMOD" in /*) ac_cv_path_CHMOD="$CHMOD" # 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_CHMOD="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" ;; esac fi CHMOD="$ac_cv_path_CHMOD" if test -n "$CHMOD"; then echo "$ac_t""$CHMOD" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$AR" in /*) ac_cv_path_AR="$AR" # 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_AR="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" ;; esac fi AR="$ac_cv_path_AR" if test -n "$AR"; then echo "$ac_t""$AR" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "uname", so it can be a program name with args. set dummy uname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_prog_system'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$system"; then ac_cv_prog_system="$system" # 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_system="`uname`" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_system" && ac_cv_prog_system="unknown" fi fi system="$ac_cv_prog_system" if test -n "$system"; then echo "$ac_t""$system" 1>&6 else echo "$ac_t""no" 1>&6 fi for ac_prog in netscape arena Mosaic chimera 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 if eval "test \"`echo '$''{'ac_cv_prog_X11_WWW'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$X11_WWW"; then ac_cv_prog_X11_WWW="$X11_WWW" # 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_X11_WWW="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi X11_WWW="$ac_cv_prog_X11_WWW" if test -n "$X11_WWW"; then echo "$ac_t""$X11_WWW" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$X11_WWW" && break done if test x"$X11_WWW" = x; then X11_WWW=lynx fi cc_uses_g=yes if test x$GCC = xyes; then if test x$ac_cv_prog_gcc_g = xyes; then : else cc_uses_g=no fi fi if test "x$CCOPTS" = x; then if test x$GCC = xyes; then if test x$system = xLinux; then CCOPTS='-O2 -fno-strength-reduce' if test x$use_cc_g_flag = xyes; then if test $cc_uses_g = yes; then CCOPTS='-g -O' fi fi else CCOPTS='-O' if test x$use_cc_g_flag = xyes; then if test $cc_uses_g = yes; then CCOPTS='-g -O' fi fi fi else if test x$use_cc_g_flag = xyes; then CCOPTS="$CFLAGS" else CCOPTS= fi fi fi CFLAGS="$CCOPTS" posix_libs="" if test $system = A/UX then posix_libs="-lposix" cat >> confdefs.h <<\EOF #define _POSIX_SOURCE 1 EOF 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 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' for ac_hdr in unistd.h string.h memory.h crypt.h grp.h limits.h malloc.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done for ac_hdr in stdlib.h termios.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done if test x$ac_cv_header_malloc_h = xno; then echo '/* NeXTStep malloc.h stub */' > $srcdir/malloc.h fi echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 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 < #include #ifndef WEXITSTATUS #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) #endif #ifndef WIFEXITED #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main() { return 0; } int t() { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } EOF if eval $ac_compile; then rm -rf conftest* ac_cv_header_sys_wait_h=yes else 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" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 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 < #include <$ac_hdr> int main() { return 0; } int t() { DIR *dirp = 0; ; return 0; } EOF if eval $ac_compile; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" else 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 | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&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 -ldir""... $ac_c" 1>&6 ac_lib_var=`echo dir | tr '.-/+' '___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 <&6 LIBS="$LIBS -ldir" else echo "$ac_t""no" 1>&6 fi else echo $ac_n "checking for -lx""... $ac_c" 1>&6 ac_lib_var=`echo x | tr '.-/+' '___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 <&6 LIBS="$LIBS -lx" else echo "$ac_t""no" 1>&6 fi fi # If we cannot run a trivial program, we must be cross compiling. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_c_cross=yes else cat > conftest.$ac_ext </dev/null; then ac_cv_c_cross=no else ac_cv_c_cross=yes fi fi rm -fr conftest* fi echo "$ac_t""$ac_cv_c_cross" 1>&6 cross_compiling=$ac_cv_c_cross echo $ac_n "checking filename fits on dirent.d_name""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_dnamesize'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else OCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -I$srcdir" if test "$cross_compiling" = yes; then # Cannot find out, so assume no ac_cv_dnamesize="no" else cat > conftest.$ac_ext < main () { struct dirent ddd; if (sizeof (ddd.d_name) < 12) exit (0); else exit (1); } EOF eval $ac_link if test -s conftest && (./conftest; exit) 2>/dev/null; then ac_cv_dnamesize="no" else ac_cv_dnamesize="yes" fi fi rm -fr conftest* CFLAGS="$OCFLAGS" fi if test x$ac_cv_dnamesize = xno; then cat >> confdefs.h <<\EOF #define NEED_EXTRA_DIRENT_BUFFER 1 EOF fi echo "$ac_t""$ac_cv_dnamesize" 1>&6 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include #include #include EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 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 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 < #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 eval $ac_link if test -s conftest && (./conftest; exit) 2>/dev/null; then : else ac_cv_header_stdc=no fi fi rm -fr conftest* 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 REGEX_O="regex.o" echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { return 0; } int t() { struct stat s; s.st_blksize; ; return 0; } EOF if eval $ac_compile; then rm -rf conftest* ac_cv_struct_st_blksize=yes else rm -rf conftest* ac_cv_struct_st_blksize=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 if test $ac_cv_struct_st_blksize = yes; then cat >> confdefs.h <<\EOF #define HAVE_ST_BLKSIZE 1 EOF fi echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { return 0; } int t() { struct stat s; s.st_blocks; ; return 0; } EOF if eval $ac_compile; then rm -rf conftest* ac_cv_struct_st_blocks=yes else rm -rf conftest* ac_cv_struct_st_blocks=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 if test $ac_cv_struct_st_blocks = yes; then cat >> confdefs.h <<\EOF #define HAVE_ST_BLOCKS 1 EOF else LIBOBJS="$LIBOBJS fileblocks.o" fi echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { return 0; } int t() { struct stat s; s.st_rdev; ; return 0; } EOF if eval $ac_compile; then rm -rf conftest* ac_cv_struct_st_rdev=yes else rm -rf conftest* ac_cv_struct_st_rdev=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 if test $ac_cv_struct_st_rdev = yes; then cat >> confdefs.h <<\EOF #define HAVE_ST_RDEV 1 EOF fi for ac_func in strerror statfs getwd strcasecmp strncasecmp do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done for ac_func in strdup memmove pwdauth truncate initgroups putenv do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done for ac_func in memset memcpy tcsetattr tcgetattr cfgetospeed do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done for ac_func in sigaction sigemptyset sigprocmask sigaddset do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done SHADOWLIB= if test x$system = xLinux; then echo $ac_n "checking for -lshadow""... $ac_c" 1>&6 ac_lib_var=`echo shadow | tr '.-/+' '___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="-lshadow $LIBS" cat > conftest.$ac_ext <&6 shadow_header=no for ac_hdr in shadow.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done if test x$ac_cv_header_shadow_h = xyes; then shadow_header=yes else for ac_hdr in shadow/shadow.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done if test x$ac_cv_shadow_shadow_h = xyes; then shadow_header=yes fi fi if test $shadow_header = yes; then cat >> confdefs.h <<\EOF #define LINUX_SHADOW 1 EOF SHADOWLIB=-lshadow fi else echo "$ac_t""no" 1>&6 fi fi NEED_CRYPT_PROTOTYPE=yes if test x$ac_cv_header_crypt_h = xyes; then cat > conftest.$ac_ext < int main() { return 0; } int t() { char *p = crypt("xxx", "yyy"); ; return 0; } EOF ac_compile_warn='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 2>&1' if { if eval $ac_compile_warn; then :; else echo arning; fi; } | grep arning 1>&5 2>&5; then : else rm -rf conftest* NEED_CRYPT_PROTOTYPE=no fi rm -f conftest* else if test x$ac_cv_header_unistd_h = xyes; then cat > conftest.$ac_ext < int main() { return 0; } int t() { char *p = crypt("xxx", "yyy"); ; return 0; } EOF ac_compile_warn='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 2>&1' if { if eval $ac_compile_warn; then :; else echo arning; fi; } | grep arning 1>&5 2>&5; then : else rm -rf conftest* NEED_CRYPT_PROTOTYPE=no fi rm -f conftest* fi fi if test x$NEED_CRYPT_PROTOTYPE=xyes; then cat >> confdefs.h <<\EOF #define NEED_CRYPT_PROTOTYPE 1 EOF fi for ac_hdr in sys/select.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done for ac_func in crypt do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 echo $ac_n "checking for -lcrypt""... $ac_c" 1>&6 ac_lib_var=`echo crypt | tr '.-/+' '___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="-lcrypt $LIBS" cat > conftest.$ac_ext <&6 LIBS="$LIBS -lcrypt" else echo "$ac_t""no" 1>&6 echo $ac_n "checking for -lcrypt_i""... $ac_c" 1>&6 ac_lib_var=`echo crypt_i | tr '.-/+' '___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="-lcrypt_i $LIBS" cat > conftest.$ac_ext <&6 LIBS="$LIBS -lcrypt_i" else echo "$ac_t""no" 1>&6 fi fi fi done for ac_func in grantpt do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done if test x$ac_cv_func_grantpt = xyes; then : else echo $ac_n "checking for -lpt""... $ac_c" 1>&6 ac_lib_var=`echo pt | tr '.-/+' '___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="-lpt $LIBS" cat > conftest.$ac_ext <&6 ac_tr_lib=HAVE_LIB`echo pt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi fi if test x$GCC = xyes; then echo $ac_n "checking for -lintl""... $ac_c" 1>&6 ac_lib_var=`echo intl | tr '.-/+' '___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="-lintl $LIBS" cat > conftest.$ac_ext <&6 ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi fi for ac_func in statlstat do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done echo $ac_n "checking for AIX defines""... $ac_c" 1>&6 cat > conftest.$ac_ext <&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* cat >> confdefs.h <<\EOF #define IS_AIX 1 EOF echo "$ac_t""yes" 1>&6 else rm -rf conftest* echo "$ac_t""no" 1>&6 fi rm -f conftest* echo $ac_n "checking for -lgen""... $ac_c" 1>&6 ac_lib_var=`echo gen | tr '.-/+' '___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 <&6 LIBS="-lgen $LIBS" else echo "$ac_t""no" 1>&6 fi for ac_hdr in fcntl.h sys/dustat.h sys/param.h sys/statfs.h sys/fstyp.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done for ac_hdr in mnttab.h mntent.h utime.h sys/statvfs.h sys/vfs.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done for ac_hdr in sys/mount.h sys/filsys.h sys/fs_types.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done for ac_func in getmntinfo do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done echo $ac_n "checking for d_ino member in directory struct""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_d_ino_in_dirent'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifdef HAVE_DIRENT_H # include #else /* not HAVE_DIRENT_H */ # define dirent direct # ifdef HAVE_SYS_NDIR_H # include # endif /* HAVE_SYS_NDIR_H */ # ifdef HAVE_SYS_DIR_H # include # endif /* HAVE_SYS_DIR_H */ # ifdef HAVE_NDIR_H # include # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ int main() { return 0; } int t() { struct dirent dp; dp.d_ino = 0; ; return 0; } EOF if eval $ac_link; then rm -rf conftest* fu_cv_sys_d_ino_in_dirent=yes else rm -rf conftest* fu_cv_sys_d_ino_in_dirent=no fi rm -f conftest* fi echo "$ac_t""$fu_cv_sys_d_ino_in_dirent" 1>&6 if test $fu_cv_sys_d_ino_in_dirent = yes; then cat >> confdefs.h <<\EOF #define D_INO_IN_DIRENT 1 EOF fi # Determine how to get the list of mounted filesystems. list_mounted_fs= # If the getmntent function is available but not in the standard library, # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX). # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. echo $ac_n "checking for -lsun""... $ac_c" 1>&6 ac_lib_var=`echo sun | tr '.-/+' '___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="-lsun $LIBS" cat > conftest.$ac_ext <&6 LIBS="-lsun $LIBS" else echo "$ac_t""no" 1>&6 echo $ac_n "checking for -lseq""... $ac_c" 1>&6 ac_lib_var=`echo seq | tr '.-/+' '___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="-lseq $LIBS" cat > conftest.$ac_ext <&6 LIBS="-lseq $LIBS" else echo "$ac_t""no" 1>&6 echo $ac_n "checking for -lgen""... $ac_c" 1>&6 ac_lib_var=`echo gen | tr '.-/+' '___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 <&6 LIBS="-lgen $LIBS" else echo "$ac_t""no" 1>&6 fi fi fi echo $ac_n "checking for getmntent""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ char getmntent(); int main() { return 0; } int t() { /* 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_getmntent) || defined (__stub___getmntent) choke me #else getmntent(); #endif ; return 0; } EOF if eval $ac_link; then rm -rf conftest* eval "ac_cv_func_getmntent=yes" else rm -rf conftest* eval "ac_cv_func_getmntent=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_GETMNTENT 1 EOF else echo "$ac_t""no" 1>&6 fi if test $ac_cv_func_getmntent = yes; then # This system has the getmntent function. # Determine whether it's the one-argument variant or the two-argument one. if test -z "$list_mounted_fs"; then # SVR4 echo $ac_n "checking for two-argument getmntent function""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent2'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "getmntent" >/dev/null 2>&1; then rm -rf conftest* fu_cv_sys_mounted_getmntent2=yes else rm -rf conftest* fu_cv_sys_mounted_getmntent2=no fi rm -f conftest* fi echo "$ac_t""$fu_cv_sys_mounted_getmntent2" 1>&6 if test $fu_cv_sys_mounted_getmntent2 = yes; then list_mounted_fs=found cat >> confdefs.h <<\EOF #define MOUNTED_GETMNTENT2 1 EOF fi fi if test -z "$list_mounted_fs"; then # 4.3BSD, SunOS, HP-UX, Dynix, Irix echo $ac_n "checking for one-argument getmntent function""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else test $ac_cv_header_mntent_h = yes \ && fu_cv_sys_mounted_getmntent1=yes \ || fu_cv_sys_mounted_getmntent1=no fi echo "$ac_t""$fu_cv_sys_mounted_getmntent1" 1>&6 if test $fu_cv_sys_mounted_getmntent1 = yes; then list_mounted_fs=found cat >> confdefs.h <<\EOF #define MOUNTED_GETMNTENT1 1 EOF fi fi if test -z "$list_mounted_fs"; then echo "configure: warning: could not determine how to read list of mounted fs" 1>&2 CPPFLAGS="$CPPFLAGS -DNO_INFOMOUNT" fi fi if test -z "$list_mounted_fs"; then # DEC Alpha running OSF/1. echo $ac_n "checking for getfsstat function""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_mounted_getsstat'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include #include int main() { return 0; } int t() { struct statfs *stats; numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); ; return 0; } EOF if eval $ac_link; then rm -rf conftest* fu_cv_sys_mounted_getsstat=yes else rm -rf conftest* fu_cv_sys_mounted_getsstat=no fi rm -f conftest* fi echo "$ac_t""$fu_cv_sys_mounted_getsstat" 1>&6 if test $fu_cv_sys_mounted_getsstat = yes; then list_mounted_fs=found cat >> confdefs.h <<\EOF #define MOUNTED_GETFSSTAT 1 EOF fi fi if test -z "$list_mounted_fs"; then # AIX. echo $ac_n "checking for mntctl function and struct vmount""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_mounted_vmount'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* fu_cv_sys_mounted_vmount=yes else echo "$ac_err" >&5 rm -rf conftest* fu_cv_sys_mounted_vmount=no fi rm -f conftest* fi echo "$ac_t""$fu_cv_sys_mounted_vmount" 1>&6 if test $fu_cv_sys_mounted_vmount = yes; then list_mounted_fs=found cat >> confdefs.h <<\EOF #define MOUNTED_VMOUNT 1 EOF fi fi if test -z "$list_mounted_fs"; then # SVR3 echo $ac_n "checking for existence of three headers""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread_fstyp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include #include EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* fu_cv_sys_mounted_fread_fstyp=yes else echo "$ac_err" >&5 rm -rf conftest* fu_cv_sys_mounted_fread_fstyp=no fi rm -f conftest* fi echo "$ac_t""$fu_cv_sys_mounted_fread_fstyp" 1>&6 if test $fu_cv_sys_mounted_fread_fstyp = yes; then list_mounted_fs=found cat >> confdefs.h <<\EOF #define MOUNTED_FREAD_FSTYP 1 EOF fi fi if test -z "$list_mounted_fs"; then # 4.4BSD and DEC OSF/1. echo $ac_n "checking for getmntinfo function""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntinfo'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ok= if test $ac_cv_func_getmntinfo = yes; then cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "f_type;" >/dev/null 2>&1; then rm -rf conftest* ok=yes fi rm -f conftest* fi test -n "$ok" \ && fu_cv_sys_mounted_getmntinfo=yes \ || fu_cv_sys_mounted_getmntinfo=no fi echo "$ac_t""$fu_cv_sys_mounted_getmntinfo" 1>&6 if test $fu_cv_sys_mounted_getmntinfo = yes; then list_mounted_fs=found cat >> confdefs.h <<\EOF #define MOUNTED_GETMNTINFO 1 EOF fi fi # FIXME: add a test for netbsd-1.1 here if test -z "$list_mounted_fs"; then # Ultrix echo $ac_n "checking for getmnt function""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmnt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* fu_cv_sys_mounted_getmnt=yes else echo "$ac_err" >&5 rm -rf conftest* fu_cv_sys_mounted_getmnt=no fi rm -f conftest* fi echo "$ac_t""$fu_cv_sys_mounted_getmnt" 1>&6 if test $fu_cv_sys_mounted_getmnt = yes; then list_mounted_fs=found cat >> confdefs.h <<\EOF #define MOUNTED_GETMNT 1 EOF fi fi if test -z "$list_mounted_fs"; then # SVR2 echo $ac_n "checking whether it is possible to resort to fread on /etc/mnttab""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* fu_cv_sys_mounted_fread=yes else echo "$ac_err" >&5 rm -rf conftest* fu_cv_sys_mounted_fread=no fi rm -f conftest* fi echo "$ac_t""$fu_cv_sys_mounted_fread" 1>&6 if test $fu_cv_sys_mounted_fread = yes; then list_mounted_fs=found cat >> confdefs.h <<\EOF #define MOUNTED_FREAD 1 EOF fi fi if test -z "$list_mounted_fs"; then echo "configure: warning: could not determine how to read list of mounted fs" 1>&2 CPPFLAGS="$CPPFLAGS -DNO_INFOMOUNT" # FIXME -- no need to abort building the whole package # Can't build mountlist.c or anything that needs its functions fi echo "checking how to get filesystem space usage" 1>&6 space=no # Here we'll compromise a little (and perform only the link test) # since it seems there are no variants of the statvfs function. if test $space = no; then # SVR4 for ac_func in statvfs do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done if test $ac_cv_func_statvfs = yes; then space=yes cat >> confdefs.h <<\EOF #define STAT_STATVFS 1 EOF fi fi if test $space = no; then # DEC Alpha running OSF/1 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then fu_cv_sys_stat_statfs3_osf1=no else cat > conftest.$ac_ext < #include #include main () { struct statfs fsd; fsd.f_fsize = 0; exit (statfs (".", &fsd, sizeof (struct statfs))); } EOF eval $ac_link if test -s conftest && (./conftest; exit) 2>/dev/null; then fu_cv_sys_stat_statfs3_osf1=yes else fu_cv_sys_stat_statfs3_osf1=no fi fi rm -fr conftest* fi echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then space=yes cat >> confdefs.h <<\EOF #define STAT_STATFS3_OSF1 1 EOF fi fi if test $space = no; then # AIX echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then fu_cv_sys_stat_statfs2_bsize=no else cat > conftest.$ac_ext < #endif #ifdef HAVE_SYS_MOUNT_H #include #endif #ifdef HAVE_SYS_VFS_H #include #endif main () { struct statfs fsd; fsd.f_bsize = 0; exit (statfs (".", &fsd)); } EOF eval $ac_link if test -s conftest && (./conftest; exit) 2>/dev/null; then fu_cv_sys_stat_statfs2_bsize=yes else fu_cv_sys_stat_statfs2_bsize=no fi fi rm -fr conftest* fi echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6 if test $fu_cv_sys_stat_statfs2_bsize = yes; then space=yes cat >> confdefs.h <<\EOF #define STAT_STATFS2_BSIZE 1 EOF fi fi if test $space = no; then # SVR3 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then fu_cv_sys_stat_statfs4=no else cat > conftest.$ac_ext < #include main () { struct statfs fsd; exit (statfs (".", &fsd, sizeof fsd, 0)); } EOF eval $ac_link if test -s conftest && (./conftest; exit) 2>/dev/null; then fu_cv_sys_stat_statfs4=yes else fu_cv_sys_stat_statfs4=no fi fi rm -fr conftest* fi echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6 if test $fu_cv_sys_stat_statfs4 = yes; then space=yes cat >> confdefs.h <<\EOF #define STAT_STATFS4 1 EOF fi fi if test $space = no; then # 4.4BSD and NetBSD echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then fu_cv_sys_stat_statfs2_fsize=no else cat > conftest.$ac_ext < #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_MOUNT_H #include #endif main () { struct statfs fsd; fsd.f_fsize = 0; exit (statfs (".", &fsd)); } EOF eval $ac_link if test -s conftest && (./conftest; exit) 2>/dev/null; then fu_cv_sys_stat_statfs2_fsize=yes else fu_cv_sys_stat_statfs2_fsize=no fi fi rm -fr conftest* fi echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6 if test $fu_cv_sys_stat_statfs2_fsize = yes; then space=yes cat >> confdefs.h <<\EOF #define STAT_STATFS2_FSIZE 1 EOF fi fi if test $space = no; then # Ultrix echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then fu_cv_sys_stat_fs_data=no else cat > conftest.$ac_ext < #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_MOUNT_H #include #endif #ifdef HAVE_SYS_FS_TYPES_H #include #endif main () { struct fs_data fsd; /* Ultrix's statfs returns 1 for success, 0 for not mounted, -1 for failure. */ exit (statfs (".", &fsd) != 1); } EOF eval $ac_link if test -s conftest && (./conftest; exit) 2>/dev/null; then fu_cv_sys_stat_fs_data=yes else fu_cv_sys_stat_fs_data=no fi fi rm -fr conftest* fi echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6 if test $fu_cv_sys_stat_fs_data = yes; then space=yes cat >> confdefs.h <<\EOF #define STAT_STATFS2_FS_DATA 1 EOF fi fi echo $ac_n "checking for mode_t""... $ac_c" 1>&6 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 < #if STDC_HEADERS #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "mode_t" >/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 umode_t""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_type_umode_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "umode_t" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_umode_t=yes else rm -rf conftest* ac_cv_type_umode_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_umode_t" 1>&6 if test $ac_cv_type_umode_t = no; then cat >> confdefs.h <<\EOF #define umode_t int EOF fi echo $ac_n "checking for off_t""... $ac_c" 1>&6 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 < #if STDC_HEADERS #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "off_t" >/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 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 < #if STDC_HEADERS #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "pid_t" >/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 uid_t in sys/types.h""... $ac_c" 1>&6 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 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 for ac_func in valloc getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done echo $ac_n "checking for working mmap""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_func_mmap=no else cat > conftest.$ac_ext < #include #include #ifndef HAVE_GETPAGESIZE # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif # else # ifdef NBPC # define getpagesize() NBPC # else # define getpagesize() PAGESIZE /* SVR4 */ # endif # endif # endif #endif #ifndef HAVE_VALLOC # define valloc malloc #endif #ifdef __cplusplus extern "C" { void *valloc(unsigned), *malloc(unsigned); } #else char *valloc(), *malloc(); #endif int main() { char *buf1, *buf2, *buf3; int i = getpagesize(), j; int i2 = i * 2; int fd; buf1 = (char *)valloc(i2); buf2 = (char *)valloc(i); buf3 = (char *)malloc(i2); for (j = 0; j < i2; ++j) *(buf1 + j) = rand(); fd = open("conftestmmap", O_CREAT | O_RDWR, 0666); write(fd, buf1, i2); mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0); for (j = 0; j < i; ++j) if (*(buf1 + j) != *(buf2 + j)) exit(1); lseek(fd, (long)i, 0); read(fd, buf2, i); /* read into mapped memory -- file should not change */ /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */ lseek(fd, (long)0, 0); read(fd, buf3, i2); for (j = 0; j < i2; ++j) if (*(buf1 + j) != *(buf3 + j)) exit(1); exit(0); } EOF eval $ac_link if test -s conftest && (./conftest; exit) 2>/dev/null; then ac_cv_func_mmap=yes else ac_cv_func_mmap=no fi fi rm -fr conftest* fi echo "$ac_t""$ac_cv_func_mmap" 1>&6 if test $ac_cv_func_mmap = yes; then cat >> confdefs.h <<\EOF #define HAVE_MMAP 1 EOF fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return 0; } int t() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF if eval $ac_link; then rm -rf conftest* ac_cv_header_alloca_h=yes else rm -rf conftest* ac_cv_header_alloca_h=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 if test $ac_cv_header_alloca_h = yes; then cat >> confdefs.h <<\EOF #define HAVE_ALLOCA_H 1 EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif #endif int main() { return 0; } int t() { char *p = (char *) alloca(1); ; return 0; } EOF if eval $ac_link; then rm -rf conftest* ac_cv_func_alloca=yes else rm -rf conftest* ac_cv_func_alloca=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_func_alloca" 1>&6 if test $ac_cv_func_alloca = yes; then cat >> confdefs.h <<\EOF #define HAVE_ALLOCA 1 EOF fi if test $ac_cv_func_alloca = no; then # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=alloca.o cat >> confdefs.h <<\EOF #define C_ALLOCA 1 EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5 | egrep "webecray" >/dev/null 2>&1; then rm -rf conftest* ac_cv_os_cray=yes else rm -rf conftest* ac_cv_os_cray=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_os_cray" 1>&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 cat >> confdefs.h <&6 fi done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext < addr) ? 1 : -1; } main () { exit (find_stack_direction() < 0); } EOF eval $ac_link if test -s conftest && (./conftest; exit) 2>/dev/null; then ac_cv_c_stack_direction=1 else ac_cv_c_stack_direction=-1 fi fi rm -fr conftest* fi echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 cat >> confdefs.h <&6 # Check whether --with-x or --without-x was given. if test "${with_x+set}" = set; then withval="$with_x" : fi if test "x$with_x" = xno; then no_x=yes else if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then no_x= else if eval "test \"`echo '$''{'ac_cv_path_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. no_x=yes 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 no_x= # 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. 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 "$no_x" = yes; then test -z "$x_direct_test_library" && x_direct_test_library=Xt test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h cat > conftest.$ac_ext < EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* no_x= ac_x_includes= else echo "$ac_err" >&5 rm -rf conftest* for ac_dir in \ /usr/X11R6/include \ /usr/X11R5/include \ /usr/X11R4/include \ \ /usr/include/X11R6 \ /usr/include/X11R5 \ /usr/include/X11R4 \ \ /usr/local/X11R6/include \ /usr/local/X11R5/include \ /usr/local/X11R4/include \ \ /usr/local/include/X11R6 \ /usr/local/include/X11R5 \ /usr/local/include/X11R4 \ \ /usr/X11/include \ /usr/include/X11 \ /usr/local/X11/include \ /usr/local/include/X11 \ \ /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 no_x= ac_x_includes=$ac_dir break fi done fi rm -f conftest* # Check for the libraries. # 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 <&6 else test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries ac_cv_path_x="no_x= 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. X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING" else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would be nice to have a more robust check for the -R ld option than # just checking for Solaris. # 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" if test "`(uname) 2>/dev/null`" = SunOS && uname -r | grep '^5' >/dev/null; then X_LIBS="$X_LIBS -R $x_libraries" fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS="$LDFLAGS" 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 -lICE""... $ac_c" 1>&6 ac_lib_var=`echo ICE | tr '.-/+' '___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 <&6 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" else echo "$ac_t""no" 1>&6 fi LDFLAGS="$ac_save_LDFLAGS" # Check for system-dependent libraries X programs must link with. 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 -ldnet""... $ac_c" 1>&6 ac_lib_var=`echo dnet | tr '.-/+' '___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 <&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" else echo "$ac_t""no" 1>&6 fi if test $ac_cv_lib_dnet = no; then echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6 ac_lib_var=`echo dnet_stub | tr '.-/+' '___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 <&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. # Not sure which flavor of 386 UNIX this is, but it seems harmless to # check for it. echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 ac_lib_var=`echo nsl | tr '.-/+' '___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 <&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" else echo "$ac_t""no" 1>&6 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, according to simon@lia.di.epfl.ch. if test "`(uname) 2>/dev/null`" != IRIX; then echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 ac_lib_var=`echo socket | tr '.-/+' '___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 <&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket" else echo "$ac_t""no" 1>&6 fi fi fi fi xvers="none" mxc="" no_xview=yes # Check whether --with-xview or --without-xview was given. if test "${with_xview+set}" = set; then withval="$with_xview" no_xview= fi # Check whether --with-xview-includes or --without-xview-includes was given. if test "${with_xview_includes+set}" = set; then withval="$with_xview_includes" if test x$withval = xyes; then echo "configure: warning: Usage is: --with-xview-includes=path" 1>&2 xview_includes=NONE no_xview= else xview_includes=$withval fi else xview_includes=NONE fi # Check whether --with-xview-libraries or --without-xview-libraries was given. if test "${with_xview_libraries+set}" = set; then withval="$with_xview_libraries" if test x$withval = xyes; then echo "configure: warning: Usage is: --with-xview-libraries=path" 1>&2 xview_libraries=NONE no_xview= else xview_libraries=$withval fi else xview_libraries=NONE fi if test "$no_xview" != yes; then if test "$no_x" = yes; then no_xview=yes fi fi if test "$no_xview" != yes; then echo $ac_n "checking for XView""... $ac_c" 1>&6 if test x$xview_libraries = xNONE; then if test x$xview_includes = xNONE; then if eval "test \"`echo '$''{'ac_cv_path_xview'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else no_xview=yes 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' #include acfindxv: @echo 'ac_im_library_dest="${LIBRARY_DEST}"; ac_im_header_dest="${HEADER_DEST}"' EOF if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then no_xview= # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `make acfindxv 2>/dev/null | grep -v make` # Screen out bogus values from the imake configuration. if test -f "$ac_im_header_dest/xview/xview.h"; then ac_xview_includes="$ac_im_header_dest" else no_xview=yes fi if test -d "$ac_im_library_dest"; then ac_xview_libraries="$ac_im_library_dest" else no_xview=yes fi fi if test "x$no_xview" != xyes; then if test -f "$ac_xview_includes/xview_private/draw_impl.h"; then ac_xview_no_private_headers= else ac_xview_no_private_headers=yes fi fi cd .. rm -fr conftestdir fi if test "x$no_xview" = xyes; then test -z "$xview_direct_test_library" && xview_direct_test_library=xview test -z "$xview_direct_test_function" && xview_direct_test_function=xv_unique_key test -z "$xview_direct_test_include" && xview_direct_test_include=xview/xview.h cat > conftest.$ac_ext < EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* no_xview= ac_xview_includes= else echo "$ac_err" >&5 rm -rf conftest* for ac_dir in \ $OPENWINHOME/include \ /usr/openwin/include \ /usr/openwin/share/include \ \ /usr/X11R6/include \ /usr/X11R5/include \ /usr/X11R4/include \ \ /usr/include/X11R6 \ /usr/include/X11R5 \ /usr/include/X11R4 \ \ /usr/local/X11R6/include \ /usr/local/X11R5/include \ /usr/local/X11R4/include \ \ /usr/local/include/X11R6 \ /usr/local/include/X11R5 \ /usr/local/include/X11R4 \ \ /usr/X11/include \ /usr/include/X11 \ /usr/local/X11/include \ /usr/local/include/X11 \ \ /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 \ ; \ do if test -r "$ac_dir/$xview_direct_test_include"; then no_xview= ac_xview_includes=$ac_dir break fi done fi rm -f conftest* if test "x$no_xview" != xyes; then if test "x$ac_xview_includes" != x; then if test -f "$ac_xview_includes/xview_private/draw_impl.h"; then ac_xview_no_private_headers= else ac_xview_no_private_headers=yes fi else cat > conftest.$ac_ext < EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* ac_xview_no_private_headers= else echo "$ac_err" >&5 rm -rf conftest* ac_xview_no_private_headers=yes fi rm -f conftest* fi fi # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS="$LIBS" ac_save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $X_LIBS" LIBS="-l$xview_direct_test_library -lolgx $X_EXTRA_LIBS -lX11 $X_PRE_LIBS $LIBS" cat > conftest.$ac_ext < int main() { return 0; } int t() { ${xview_direct_test_function}() ; return 0; } EOF if eval $ac_link; then rm -rf conftest* LIBS="$ac_save_LIBS" LDFLAGS="$ac_save_LDFLAGS" no_xview= ac_xview_libraries= else rm -rf conftest* LIBS="$ac_save_LIBS" LDFLAGS="$ac_save_LDFLAGS" # First see if replacing the include by lib works. for ac_dir in `echo "$ac_xview_includes" | sed s/include/lib/` \ $OPENWINHOME/lib \ $OPENWINHOME/share/lib \ /usr/openwin/lib \ /usr/openwin/share/lib \ \ /usr/X11R6/lib \ /usr/X11R5/lib \ /usr/X11R4/lib \ \ /usr/lib/X11R6 \ /usr/lib/X11R5 \ /usr/lib/X11R4 \ \ /usr/local/X11R6/lib \ /usr/local/X11R5/lib \ /usr/local/X11R4/lib \ \ /usr/local/lib/X11R6 \ /usr/local/lib/X11R5 \ /usr/local/lib/X11R4 \ \ /usr/X11/lib \ /usr/lib/X11 \ /usr/local/X11/lib \ /usr/local/lib/X11 \ \ /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 \ ; \ do for ac_extension in a so sl; do if test -r $ac_dir/lib${xview_direct_test_library}.$ac_extension; then no_xview= ac_xview_libraries=$ac_dir break 2 fi done done fi rm -f conftest* fi if test "x$no_xview" = xyes; then ac_cv_path_xview="no_xview=yes" else ac_cv_path_xview="no_xview= ac_xview_includes=$ac_xview_includes ac_xview_libraries=$ac_xview_libraries ac_xview_no_private_headers=$ac_xview_no_private_headers" fi fi eval "$ac_cv_path_xview" fi fi if test "x$no_xview" = xyes; then echo "$ac_t""no" 1>&6 else if test "x$xview_includes" = x || test "x$xview_includes" = xNONE; then xview_includes=$ac_xview_includes fi if test "x$xview_libraries" = x || test "x$xview_libraries" = xNONE; then xview_libraries=$ac_xview_libraries fi xview_no_private_headers=$ac_xview_no_private_headers ac_cv_path_xview="no_xview= ac_xview_includes=$xview_includes ac_xview_libraries=$xview_libraries ac_xview_no_private_headers=$ac_xview_no_private_headers" if test "x$xview_libraries" != x; then ac_msg_xview="libraries $xview_libraries" else ac_msg_xview="" fi if test "x$xview_includes" != x; then if test "x$ac_msg_xview" != x; then ac_msg_xview="$ac_msg_xview, " fi ac_msg_xview="${ac_msg_xview}headers $xview_includes" fi if test "x$xview_no_private_headers" = xyes; then if test "x$ac_msg_xview" != x; then ac_msg_xview="$ac_msg_xview, " fi ac_msg_xview="${ac_msg_xview}without xview_private headers" fi echo "$ac_t""$ac_msg_xview" 1>&6 fi fi if test "$no_xview" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. XVIEW_CFLAGS="$X_CFGLAGS $XVIEW_CFLAGS -DXVIEW_MISSING" else if test -n "$xview_includes"; then XVIEW_CFLAGS="$X_CFLAGS $XVIEW_CFGLAGS" if test "$xview_includes" != "$x_includes"; then XVIEW_CPPFLAGS="-I$xview_includes" fi fi # It would be nice to have a more robust check for the -R ld option than # just checking for Solaris. # It would also be nice to do this for all -L options, not just this one. if test -n "$xview_libraries"; then if test "$xview_libraries" = "$x_libraries"; then XVIEW_LIBS="$X_LIBS $XVIEW_LIBS" else XVIEW_LIBS="$X_LIBS $XVIEW_LIBS -L$xview_libraries" if test "`(uname) 2>/dev/null`" = SunOS && uname -r | grep '^5' >/dev/null; then XVIEW_LIBS="$XVIEW_LIBS -R$xview_libraries" fi fi fi fi if test "x$no_xview" = xyes; then HAVE_XVIEW=no else HAVE_XVIEW=yes fi if test "x$xview_no_private_headers" = xyes; then HAVE_XVIEW_PRIVATE_HEADERS=no else HAVE_XVIEW_PRIVATE_HEADERS=yes fi if test "x$no_xview" != "xyes"; then mxc="mxc" xvers="XView" xvdep="xvdep" else mxc="" xvdep="" fi xv_bindir= if test -n "$mxc"; then # Check whether --with-xv-bindir or --without-xv-bindir was given. if test "${with_xv_bindir+set}" = set; then withval="$with_xv_bindir" if test x$withval = xyes; then echo "configure: warning: Usage is: --with-xv-bindir=basedir" 1>&2 else if test x$withval = xno; then echo "configure: warning: Usage is: --with-xv-bindir=basedir" 1>&2 else xv_bindir=$withval fi fi fi if test x$xv_bindir = x; then xv_bindir=`echo $xv_includes | sed s/include/bin/` if test ! -x $xv_bindir/openwin; then if test ! -x $xv_bindir/olwm; then if test ! -x $xv_bindir/olvwm; then xv_bindir= fi fi fi fi if test x$xv_bindir = x; then if test "$OPENWINHOME"; then xv_bindir=$OPENWINHOME/bin else # Extract the first word of "openwin", so it can be a program name with args. set dummy openwin; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_path_ac_my_xp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$ac_my_xp" in /*) ac_cv_path_ac_my_xp="$ac_my_xp" # 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_ac_my_xp="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi ac_my_xp="$ac_cv_path_ac_my_xp" if test -n "$ac_my_xp"; then echo "$ac_t""$ac_my_xp" 1>&6 else echo "$ac_t""no" 1>&6 fi if test x$ac_my_xp = x; then # Extract the first word of "X", so it can be a program name with args. set dummy X; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_path_ac_my_xp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$ac_my_xp" in /*) ac_cv_path_ac_my_xp="$ac_my_xp" # 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_ac_my_xp="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi ac_my_xp="$ac_cv_path_ac_my_xp" if test -n "$ac_my_xp"; then echo "$ac_t""$ac_my_xp" 1>&6 else echo "$ac_t""no" 1>&6 fi if test x$ac_my_xp = x; then xv_bindir="" else xv_bindir=`basename $ac_my_xp` fi else xv_bindir=`basename $ac_my_xp` fi fi if test ! -x $xv_bindir/openwin; then if test ! -x $xv_bindir/olwm; then if test ! -x $xv_bindir/olvwm; then if test ! -x $xv_bindir/X; then xv_bindir= fi fi fi fi fi if test x$xv_bindir = x; then xv_bindir=$prefix/bin fi fi if test x$xv_bindir = xNONE/bin; then xv_bindir= fi echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 ac_lib_var=`echo nsl | tr '.-/+' '___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 <&6 ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 ac_lib_var=`echo socket | tr '.-/+' '___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 <&6 ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi have_socket=no for ac_func in socket do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done if test $have_socket = no; then # socket is not in the default libraries. See if it's in some other. for lib in bsd socket inet; do echo $ac_n "checking for -l$lib""... $ac_c" 1>&6 ac_lib_var=`echo $lib | tr '.-/+' '___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$lib $LIBS" cat > conftest.$ac_ext <&6 LIBS="$LIBS -l$lib" have_socket=yes cat >> confdefs.h <<\EOF #define HAVE_SOCKET 1 EOF break else echo "$ac_t""no" 1>&6 fi done fi have_gethostbyname=no echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ char gethostbyname(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_gethostbyname=yes" else 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 have_gethostbyname=yes else echo "$ac_t""no" 1>&6 fi if test $have_gethostbyname = no; then # gethostbyname is not in the default libraries. See if it's in some other. for lib in bsd socket inet; do echo $ac_n "checking for -l$lib""... $ac_c" 1>&6 ac_lib_var=`echo $lib | tr '.-/+' '___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$lib $LIBS" cat > conftest.$ac_ext <&6 LIBS="$LIBS -l$lib"; have_gethostbyname=yes; break else echo "$ac_t""no" 1>&6 fi done fi for ac_func in socketpair do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done echo $ac_n "checking for -lseq""... $ac_c" 1>&6 ac_lib_var=`echo seq | tr '.-/+' '___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="-lseq $LIBS" cat > conftest.$ac_ext <&6 LIBS="$LIBS -lseq" cat >> confdefs.h <<\EOF #define HAVE_GET_PROCESS_STATS 1 EOF else echo "$ac_t""no" 1>&6 fi NETFILES="" vfs_flags="tarfs" use_net_code=false if test $have_socket = yes; then av_struct_linger=no echo $ac_n "checking struct linger is available""... $ac_c" 1>&6 if test "$cross_compiling" = yes; then av_struct_linger=no else cat > conftest.$ac_ext < #include struct linger li; main () { li.l_onoff = 1; li.l_linger = 120; exit (0); } EOF eval $ac_link if test -s conftest && (./conftest; exit) 2>/dev/null; then cat >> confdefs.h <<\EOF #define HAVE_STRUCT_LINGER 1 EOF av_struct_linger=yes else av_struct_linger=no fi fi rm -fr conftest* echo "$ac_t""$av_struct_linger" 1>&6 for ac_func in pmap_set do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 echo $ac_n "checking for -lrpc""... $ac_c" 1>&6 ac_lib_var=`echo rpc | tr '.-/+' '___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="-lrpc $LIBS" cat > conftest.$ac_ext <&6 LIBS="-lrpc $LIBS" cat >> confdefs.h <<\EOF #define HAVE_PMAP_SET 1 EOF else echo "$ac_t""no" 1>&6 fi fi done for ac_func in pmap_getport pmap_getmaps rresvport do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done for ac_hdr in rpc/pmap_clnt.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done vfs_flags="$vfs_flags, mcfs, ftpfs" NETFILES="\$(NETFILES)" use_net_code=true fi screen_manager=unknown search_ncurses=false CFLAGS=${CFLAGS--O} LDFLAGS=${LDFLAGS--O} XCURSES="" # Check whether --with-sco or --without-sco was given. if test "${with_sco+set}" = set; then withval="$with_sco" if test x$withval = xyes; then cat >> confdefs.h <<\EOF #define SCO_FLAVOR 1 EOF CFLAGS="$CFLAGS -D_SVID3" fi fi # Check whether --with-sunos-curses or --without-sunos-curses was given. if test "${with_sunos_curses+set}" = set; then withval="$with_sunos_curses" if test x$withval = xyes; then search_ncurses=false screen_manager="SunOS 4.x /usr/5include curses" echo "$ac_t""Using SunOS 4.x /usr/5include curses" 1>&6 cat >> confdefs.h <<\EOF #define SUNOS_CURSES 1 EOF cat >> confdefs.h <<\EOF #define NO_COLOR_SUPPORT 1 EOF cat >> confdefs.h <<\EOF #define USE_SYSV_CURSES 1 EOF CPPFLAGS="$CPPFLAGS -I/usr/5include" XCURSES="xcurses.o /usr/5lib/libcurses.a /usr/5lib/libtermcap.a" echo "$ac_t""Please note that some screen refreshs may fail" 1>&6 echo "configure: warning: Reconsider using Slang" 1>&2 fi fi # Check whether --with-osf1-curses or --without-osf1-curses was given. if test "${with_osf1_curses+set}" = set; then withval="$with_osf1_curses" if test x$withval = xyes; then echo "$ac_t""Using OSF1 curses" 1>&6 search_ncurses=false screen_manager="OSF1 curses" cat >> confdefs.h <<\EOF #define NO_COLOR_SUPPORT 1 EOF cat >> confdefs.h <<\EOF #define USE_SYSV_CURSES 1 EOF XCURSES="xcurses.o" LIBS="$LIBS -lcurses" fi fi # Check whether --with-vcurses or --without-vcurses was given. if test "${with_vcurses+set}" = set; then withval="$with_vcurses" if test x$withval = xyes; then CPPFLAGS="$CPPFLAGS" else CPPFLAGS="$CPPFLAGS -I$withval" fi echo "$ac_t""Using SysV curses" 1>&6 cat >> confdefs.h <<\EOF #define USE_SYSV_CURSES 1 EOF XCURSES="" search_ncurses=false screen_manager="SysV/curses" LIBS="$LIBS -lcurses" fi mouse_lib="xterm only" # Check whether --with-gpm-mouse or --without-gpm-mouse was given. if test "${with_gpm_mouse+set}" = set; then withval="$with_gpm_mouse" if test x$withval != xno then if test x$withval != xyes then LIBS="$LIBS -L$withval/lib" CPPFLAGS="$CPPFLAGS -I$withval/include" fi cat >> confdefs.h <<\EOF #define HAVE_LIBGPM 1 EOF mouse_lib="GPM and xterm" LIBS="$LIBS -lgpm" fi else echo $ac_n "checking for -lgpm""... $ac_c" 1>&6 ac_lib_var=`echo gpm | tr '.-/+' '___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="-lgpm $LIBS $LIBS" cat > conftest.$ac_ext <&6 cat >> confdefs.h <<\EOF #define HAVE_LIBGPM 1 EOF mouse_lib="GPM and xterm" LIBS="$LIBS -lgpm" else echo "$ac_t""no" 1>&6 if test $system = Linux then echo "configure: warning: "libgpm.a is missing or older than 0.18"" 1>&2 fi fi fi # Check whether --with-ncurses or --without-ncurses was given. if test "${with_ncurses+set}" = set; then withval="$with_ncurses" if test x$withval = xyes then search_ncurses=true else LIBS="$LIBS -L$withval/lib -lncurses" CPPFLAGS="$CPPFLAGS -I$withval/include" search_ncurses=false screen_manager="ncurses" cat >> confdefs.h <<\EOF #define USE_NCURSES 1 EOF fi fi # Check whether --with-hsc or --without-hsc was given. if test "${with_hsc+set}" = set; then withval="$with_hsc" if test x$withval = xyes; then cat >> confdefs.h <<\EOF #define HSC_PROXY 1 EOF fi fi tkmc="" tk_includes="" tk_libs="" if test x$no_x != xyes; then # Check whether --with-tk or --without-tk was given. if test "${with_tk+set}" = set; then withval="$with_tk" if test x$withval = xyes; then tkmc="tkmc" fi fi # Check whether --with-tk-includes or --without-tk-includes was given. if test "${with_tk_includes+set}" = set; then withval="$with_tk_includes" if test x$withval = xyes; then echo "configure: warning: Usage is: --with-tk-includes=dir" 1>&2 else if test x$withval = xno; then echo "configure: warning: Usage is: --with-tk-includes=dir" 1>&2 else tk_includes="-I$withval" tkmc="tkmc" fi fi fi # Check whether --with-tk-libraries or --without-tk-libraries was given. if test "${with_tk_libraries+set}" = set; then withval="$with_tk_libraries" if test x$withval = xyes; then echo "configure: warning: Usage is: --with-tk-libraries=dir" 1>&2 else if test x$withval = xno; then echo "configure: warning: Usage is: --with-tk-libraries=dir" 1>&2 else tk_libs="-L$withval" tkmc="tkmc" fi fi fi if test -n "$tkmc"; then echo "checking for Tcl/Tk" 1>&6 echo $ac_n "checking for -ldl""... $ac_c" 1>&6 ac_lib_var=`echo dl | tr '.-/+' '___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="-ldl $LIBS" cat > conftest.$ac_ext <&6 LIBS="$LIBS -ldl" else echo "$ac_t""no" 1>&6 fi tk_headers_found=no if test ! -n "$tk_includes"; then ac_safe=`echo "tcl.h" | tr './\055' '___'` echo $ac_n "checking for tcl.h""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_header_in_path_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* ac_header_in_path=yes else echo "$ac_err" >&5 rm -rf conftest* ac_header_in_path_found=no for ac_header_in_path_value in $include_additional_path; do ac_in_path_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS -I$ac_header_in_path_value" cat > conftest.$ac_ext < EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* ac_header_in_path_found=yes ac_header_in_path=$ac_header_in_path_value else echo "$ac_err" >&5 fi rm -f conftest* CPPFLAGS=$ac_in_path_save_CPPFLAGS if test x$ac_header_in_path_found = xyes; then break fi done if test $ac_header_in_path_found = xno; then ac_header_in_path=no fi fi rm -f conftest* eval "ac_cv_header_in_path_$ac_safe=$ac_header_in_path" fi eval "ac_header_in_path=`echo '$ac_cv_header_in_path_'$ac_safe`" if test "$ac_header_in_path" = no; then echo "$ac_t""no" 1>&6 else if test -n "$ac_header_in_path"; then echo "$ac_t""$ac_header_in_path" 1>&6 else echo "$ac_t""yes" 1>&6 fi if test x$ac_header_in_path = xyes; then ac_header_in_path= eval "ac_cv_header_in_path_$ac_safe=" fi ac_safe=`echo "tk.h" | tr './\055' '___'` echo $ac_n "checking for tk.h""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_header_in_path_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* ac_header_in_path=yes else echo "$ac_err" >&5 rm -rf conftest* ac_header_in_path_found=no for ac_header_in_path_value in $include_additional_path; do ac_in_path_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS -I$ac_header_in_path_value" cat > conftest.$ac_ext < EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* ac_header_in_path_found=yes ac_header_in_path=$ac_header_in_path_value else echo "$ac_err" >&5 fi rm -f conftest* CPPFLAGS=$ac_in_path_save_CPPFLAGS if test x$ac_header_in_path_found = xyes; then break fi done if test $ac_header_in_path_found = xno; then ac_header_in_path=no fi fi rm -f conftest* eval "ac_cv_header_in_path_$ac_safe=$ac_header_in_path" fi eval "ac_header_in_path=`echo '$ac_cv_header_in_path_'$ac_safe`" if test "$ac_header_in_path" = no; then echo "$ac_t""no" 1>&6 else if test -n "$ac_header_in_path"; then echo "$ac_t""$ac_header_in_path" 1>&6 else echo "$ac_t""yes" 1>&6 fi if test x$ac_header_in_path = xyes; then ac_header_in_path= eval "ac_cv_header_in_path_$ac_safe=" fi tk_headers_found=yes if test -n "$ac_cv_header_in_path_tcl_h"; then tk_includes="-I$ac_cv_header_in_path_tcl_h"; fi if test -n "$ac_cv_header_in_path_tk_h"; then if test "$ac_cv_header_in_path_tk_h" != "$ac_cv_header_in_path_tcl_h"; then tk_includes="$tk_includes -I$ac_cv_header_in_path_tk_h" fi fi fi fi else tk_headers_found=yes fi if test $tk_headers_found = no; then tkmc="" else tk_libs_found=no ac_save_tk_LIBS="$LIBS" ac_save_tk_LDFLAGS="$LDFLAGS" LIBS="$X_EXTRA_LIBS -lX11 $X_PRE_LIBS $LIBS" LDFLAGS="$LDFLAGS $X_LIBS" if test ! -n "$tk_libs"; then echo $ac_n "checking for -ltcl""... $ac_c" 1>&6 ac_lib_var=`echo tcl | tr '.-/+' '___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="-ltcl -lm $LIBS" cat > conftest.$ac_ext <&6 echo $ac_n "checking for -ltk""... $ac_c" 1>&6 ac_lib_var=`echo tk | tr '.-/+' '___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="-ltk -ltcl -lm $LIBS" cat > conftest.$ac_ext <&6 tk_libs_found=yes else echo "$ac_t""no" 1>&6 fi else echo "$ac_t""no" 1>&6 fi else tk_libs_found=yes fi LDFLAGS="$ac_save_tk_LDFLAGS" LIBS="$ac_save_tk_LIBS" if test $tk_libs_found = no; then tkmc="" fi fi fi fi if test -n "$tkmc"; then if test x$xvers = xnone; then xvers="Tk" else xvers="XView+Tk" fi tkdep="tkdep" else tkdep="" fi gmc="" gmcdep="" if test x$no_x != xyes; then # Check whether --with-gnome or --without-gnome was given. if test "${with_gnome+set}" = set; then withval="$with_gnome" if test x$withval = xyes; then gmc=gmc gmcdep=gmcdep if test x"$xvers" = xnone; then xvers="Gnome" else xvers="Gnome+$xvers" fi fi fi fi # Extract the first word of "nroff", so it can be a program name with args. set dummy nroff; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_nroff'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$HAVE_nroff"; then ac_cv_prog_HAVE_nroff="$HAVE_nroff" # 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_HAVE_nroff="true" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_HAVE_nroff" && ac_cv_prog_HAVE_nroff="false" fi fi HAVE_nroff="$ac_cv_prog_HAVE_nroff" if test -n "$HAVE_nroff"; then echo "$ac_t""$HAVE_nroff" 1>&6 else echo "$ac_t""no" 1>&6 fi if $HAVE_nroff; then echo $ac_n "checking for manual formatting macros""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_mandoc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else nroff -mandoc < /dev/null > /dev/null 2>&1 /dev/null if test $? = 0 then ac_cv_mandoc=-mandoc else ac_cv_mandoc=-man fi fi MANDOC=$ac_cv_mandoc echo "$ac_t""$MANDOC" 1>&6 else MANDOC=-man fi if $HAVE_nroff; then echo $ac_n "checking If nroff accepts -Tascii""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_nroff_tascii'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else nroff -Tascii < /dev/null > /dev/null 2>&1 /dev/null if test $? = 0 then ac_cv_nroff_tascii=" -Tascii" echo "$ac_t""yes" 1>&6 else ac_cv_nroff_tascii="" echo "$ac_t""no" 1>&6 fi fi fi TROFFASCII="$ac_cv_nroff_tascii" # Extract the first word of "file", so it can be a program name with args. set dummy file; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_FILECMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$HAVE_FILECMD"; then ac_cv_prog_HAVE_FILECMD="$HAVE_FILECMD" # 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_HAVE_FILECMD="true" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_HAVE_FILECMD" && ac_cv_prog_HAVE_FILECMD="false" fi fi HAVE_FILECMD="$ac_cv_prog_HAVE_FILECMD" if test -n "$HAVE_FILECMD"; then echo "$ac_t""$HAVE_FILECMD" 1>&6 else echo "$ac_t""no" 1>&6 fi if $HAVE_FILECMD; then echo $ac_n "checking for - option to file command""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_filestdin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c < conftest.sed </dev/null | sed -f conftest.sed` filehyphen_2=`cat conftest.c | file - 2>/dev/null | sed -f conftest.sed` if test "$filehyphen_1" = "$filehyphen_2"; then ac_cv_filestdin=yes else ac_cv_filestdin=no fi rm conftest.c conftest.sed unset filehyphen_1 unset filehyphen_2 fi if test x$ac_cv_filestdin = xyes; then cat >> confdefs.h <<\EOF #define FILE_STDIN 1 EOF fi filestdin=$ac_cv_filestdin echo "$ac_t""$filestdin" 1>&6 echo $ac_n "checking for -L option to file command""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_filel'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else file -L . > /dev/null 2>&1 if test $? = 0 then ac_cv_filel=yes else ac_cv_filel=no fi fi if test x$ac_cv_filel = xyes; then cat >> confdefs.h <<\EOF #define FILE_L 1 EOF fi filel=$ac_cv_filel echo "$ac_t""$filel" 1>&6 fi echo $ac_n "checking for - option to grep command""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_grep_stdin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else grep ac_cv_grep_stdin - > /dev/null 2>&1 < ./configure if test $? = 0; then ac_cv_grep_stdin=yes else ac_cv_grep_stdin=no fi fi if test x$ac_cv_grep_stdin = xyes; then cat >> confdefs.h <<\EOF #define GREP_STDIN 1 EOF fi echo "$ac_t""$ac_cv_grep_stdin" 1>&6 have_dusum=yes echo $ac_n "checking for du arguments""... $ac_c" 1>&6 # Check whether --with-dusum or --without-dusum was given. if test "${with_dusum+set}" = set; then withval="$with_dusum" if test x$withval = xno; then have_dusum=no fi fi if test x$have_dusum = xyes; then cat >> confdefs.h <<\EOF #define HAVE_DUSUM 1 EOF if eval "test \"`echo '$''{'ac_cv_dusum'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else du -s -b $srcdir/configure >/dev/null 2>&1 if test $? = 0; then ac_cv_dusum='dusum_useb=yes; dusum_factor=1' else ac_cv_dusum='dusum_useb=; dusum_factor=512' fi fi eval "$ac_cv_dusum" if test x$dusum_useb = xyes; then cat >> confdefs.h <<\EOF #define DUSUM_USEB 1 EOF echo "$ac_t""-b" 1>&6 else echo "$ac_t""block size $dusum_factor" 1>&6 fi cat >> confdefs.h <> confdefs.h <<\EOF #define USE_TERMNET 1 EOF termnet=true fi fi echo $ac_n "checking for subshell support""... $ac_c" 1>&6 # Check whether --with-subshell or --without-subshell was given. if test "${with_subshell+set}" = set; then withval="$with_subshell" result=no if test x$withval = xoptional then cat >> confdefs.h <<\EOF #define SUBSHELL_OPTIONAL 1 EOF cat >> confdefs.h <<\EOF #define HAVE_SUBSHELL_SUPPORT 1 EOF result="optional" fi if test x$withval = xyes then cat >> confdefs.h <<\EOF #define HAVE_SUBSHELL_SUPPORT 1 EOF result="yes" fi else if test $system = ULTRIX then result=no else cat >> confdefs.h <<\EOF #define HAVE_SUBSHELL_SUPPORT 1 EOF result=yes fi fi echo "$ac_t""$result" 1>&6 subshell="$result" if test x$GCC = x then cat >> confdefs.h <<\EOF #define OLD_TOOLS 1 EOF CPPFLAGS="$CPPFLAGS -Dinline=" fi mem_debug="none" # Check whether --with-debug or --without-debug was given. if test "${with_debug+set}" = set; then withval="$with_debug" if test x$withval = xyes; then CFLAGS="$CFLAGS -Wall" mem_debug="Janne's MAD library" cat >> confdefs.h <<\EOF #define HAVE_MAD 1 EOF cat >> confdefs.h <<\EOF #define MCDEBUG 1 EOF if echo `uname -s -r` | grep -q 'SunOS 4.1' then CFLAGS="$CFLAGS -Wno-implicit" fi if echo "$CFLAGS" | grep -e -g >/dev/null 2>&1; then : else if test $cc_uses_g = yes; then CFLAGS="$CFLAGS -g" fi fi echo "$ac_t""compiling with -Wall and the memory leak detector" 1>&6 fi fi # Check whether --with-efence or --without-efence was given. if test "${with_efence+set}" = set; then withval="$with_efence" if test x$withval = xyes; then CFLAGS="$CFLAGS -Wall" cat >> confdefs.h <<\EOF #define MCDEBUG 1 EOF LIBS="$LIBS -lefence" if echo `uname -s -r` | grep -q 'SunOS 4.1' then CFLAGS="$CFLAGS -Wno-implicit" fi if echo "$CFLAGS" | grep -e -g >/dev/null 2>&1; then : else if test $cc_uses_g = yes; then CFLAGS="$CFLAGS -g" fi fi echo "$ac_t""compiling with -Wall and Electric fence" 1>&6 mem_debug="Electric Fence" fi fi # Check whether --with-mmap or --without-mmap was given. if test "${with_mmap+set}" = set; then withval="$with_mmap" if test x$withval = xyes; then cat >> confdefs.h <<\EOF #define HAVE_MMAP 1 EOF echo "$ac_t""forcing MMAP support" 1>&6 fi fi slang_check_lib=true slang_term="" slang_use_system_installed_lib=false echo $ac_n "checking for -lslang""... $ac_c" 1>&6 ac_lib_var=`echo slang | tr '.-/+' '___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="-lslang $LIBS" cat > conftest.$ac_ext <&6 for ac_hdr in slang.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done if test x$ac_cv_header_slang_h = xyes then slang_use_system_installed_lib=true slang_check_lib=false else for ac_hdr in slang/slang.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done if test x$ac_cv_header_slang_slang_h = xyes then slang_use_system_installed_lib=true slang_check_lib=false cat >> confdefs.h <<\EOF #define SLANG_H_INSIDE_SLANG_DIR 1 EOF fi fi else echo "$ac_t""no" 1>&6 fi # Check whether --with-terminfo or --without-terminfo was given. if test "${with_terminfo+set}" = set; then withval="$with_terminfo" cat >> confdefs.h <<\EOF #define SLANG_TERMINFO 1 EOF echo "$ac_t""Using SLang screen manager/terminfo" 1>&6 slang_term=" with terminfo" slang_check_lib=false slang_use_system_installed_lib=false fi # Check whether --with-termcap or --without-termcap was given. if test "${with_termcap+set}" = set; then withval="$with_termcap" echo "$ac_t""Using SLang screen manager/termcap" 1>&6 cat >> confdefs.h <<\EOF #define USE_TERMCAP 1 EOF echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6 ac_lib_var=`echo termcap | tr '.-/+' '___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="-ltermcap $LIBS $LIBS" cat > conftest.$ac_ext <&6 LIBS="$LIBS -ltermcap" else echo "$ac_t""no" 1>&6 fi slang_term=" with termcap" slang_check_lib=false slang_use_system_installed_lib=false fi # Check whether --with-our-slang or --without-our-slang was given. if test "${with_our_slang+set}" = set; then withval="$with_our_slang" slang_use_system_installed_lib=false slang_check_lib=true fi LIBSLANG="" LSLANG="" fastdepslang="" # Check whether --with-slang or --without-slang was given. if test "${with_slang+set}" = set; then withval="$with_slang" if test x$withval = xyes; then cat >> confdefs.h <<\EOF #define HAVE_SLANG 1 EOF search_ncurses=false if $slang_use_system_installed_lib then cat >> confdefs.h <<\EOF #define HAVE_SYSTEM_SLANG 1 EOF LIBS="$LIBS -lslang" screen_manager="SLang (using system-installed library)" echo "$ac_t""Using system installed SLang library" 1>&6 else CPPFLAGS="$CPPFLAGS -I\$(slangdir)" LIBSLANG="libmcslang.a" screen_manager="SLang" LSLANG="-lmcslang" fastdepslang=fastdepslang fi if $slang_check_lib then use_terminfo=false if test -d /usr/lib/terminfo; then use_terminfo=true; fi if test -d /usr/share/lib/terminfo; then use_terminfo=true; fi if test -d /usr/local/lib/terminfo; then use_terminfo=true; fi if test -d /lib/terminfo; then use_terminfo=true; fi if test -d /usr/local/share/terminfo; then use_terminfo=true; fi if test -d /usr/share/terminfo; then use_terminfo=true; fi if $use_terminfo; then cat >> confdefs.h <<\EOF #define SLANG_TERMINFO 1 EOF echo "$ac_t""Using SLang screen manager/terminfo" 1>&6 slang_term=" with terminfo" else echo "$ac_t""Using SLang screen manager/termcap" 1>&6 cat >> confdefs.h <<\EOF #define USE_TERMCAP 1 EOF echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6 ac_lib_var=`echo termcap | tr '.-/+' '___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="-ltermcap $LIBS $LIBS" cat > conftest.$ac_ext <&6 LIBS="$LIBS -ltermcap" else echo "$ac_t""no" 1>&6 fi slang_term=" with termcap" fi fi fi fi TERMNET="" LIBVFS="" LVFS="" fastdepvfs="" mcserv="" vfs_type="normal" # Check whether --with-vfs or --without-vfs was given. if test "${with_vfs+set}" = set; then withval="$with_vfs" if test x$withval = xyes then cat >> confdefs.h <<\EOF #define USE_VFS 1 EOF if $use_net_code; then cat >> confdefs.h <<\EOF #define USE_NETCODE 1 EOF fi LIBVFS="libvfs.a" LVFS="-lvfs" fastdepvfs=fastdepvfs if test $have_socket = yes; then mcserv="mcserv" if $termnet; then TERMNET="-ltermnet" fi fi CPPFLAGS="$CPPFLAGS -I\$(vfsdir)" echo "$ac_t""Using the VFS switch code" 1>&6 vfs_type="Midnight Commander Virtual File System" else vfs_flags="" fi else cat >> confdefs.h <<\EOF #define USE_VFS 1 EOF if $use_net_code; then cat >> confdefs.h <<\EOF #define USE_NETCODE 1 EOF fi LIBVFS="libvfs.a" LVFS="-lvfs" fastdepvfs=fastdepvfs if test $have_socket = yes; then mcserv="mcserv" if $termnet; then TERMNET="-ltermnet" fi fi CPPFLAGS="$CPPFLAGS -I\$(vfsdir)" echo "$ac_t""Using the VFS switch code" 1>&6 vfs_type="Midnight Commander Virtual File System" fi LIBEDIT_A="" MCEDIT="" LEDIT="" EDIT_msg="" # Check whether --with-edit or --without-edit was given. if test "${with_edit+set}" = set; then withval="$with_edit" if test x$withval = xyes then cat >> confdefs.h <<\EOF #define USE_INTERNAL_EDIT 1 EOF LIBEDIT_A="libedit.a" MCEDIT="mcedit" LEDIT="-ledit" CPPFLAGS="$CPPFLAGS -I\$(rootdir)" EDIT_msg="yes" echo "$ac_t""will call internal editor" 1>&6 else EDIT_msg="no" fi else cat >> confdefs.h <<\EOF #define USE_INTERNAL_EDIT 1 EOF LIBEDIT_A="libedit.a" MCEDIT="mcedit" LEDIT="-ledit" CPPFLAGS="$CPPFLAGS -I\$(rootdir)" EDIT_msg="yes" echo "$ac_t""will call internal editor" 1>&6 fi # Check whether --with-netrc or --without-netrc was given. if test "${with_netrc+set}" = set; then withval="$with_netrc" cat >> confdefs.h <<\EOF #define USE_NETRC 1 EOF echo "$ac_t""ftpfs will have .netrc parsing code" 1>&6 fi undelfs_o="" # Check whether --with-ext2undel or --without-ext2undel was given. if test "${with_ext2undel+set}" = set; then withval="$with_ext2undel" if test x$withval = xyes; then for ac_hdr in ext2fs/ext2fs.h linux/ext2_fs.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done if test x$ac_cv_header_ext2fs_ext2fs_h = xyes then if test x$ac_cv_header_linux_ext2_fs_h = xyes then cat >> confdefs.h <<\EOF #define USE_EXT2FSLIB 1 EOF echo "$ac_t""With ext2fs file recovery code" 1>&6 vfs_flags="${vfs_flags} undelfs" undelfs_o="undelfs.o" LIBS="$LIBS -lext2fs -lcom_err" else echo "configure: warning: No ext2fs file recovery code: linux/ext2_fs.h is missing" 1>&2 fi else echo "configure: warning: No ext2fs file recovery code: ext2fs/ext2fs.h is missing" 1>&2 fi fi else echo $ac_n "checking for -lext2fs""... $ac_c" 1>&6 ac_lib_var=`echo ext2fs | tr '.-/+' '___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="-lext2fs -lcom_err $LIBS" cat > conftest.$ac_ext <&6 for ac_hdr in ext2fs/ext2fs.h linux/ext2_fs.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 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 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 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 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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <&6 fi done if test x$ac_cv_header_ext2fs_ext2fs_h = xyes then if test x$ac_cv_header_linux_ext2_fs_h = xyes then cat >> confdefs.h <<\EOF #define USE_EXT2FSLIB 1 EOF echo "$ac_t""With ext2fs file recovery code" 1>&6 vfs_flags="${vfs_flags} undelfs" undelfs_o="undelfs.o" LIBS="$LIBS -lext2fs -lcom_err" else echo "configure: warning: No ext2fs file recovery code: linux/ext2_fs.h is missing" 1>&2 fi else echo "configure: warning: No ext2fs file recovery code: ext2fs/ext2fs.h is missing" 1>&2 fi else echo "$ac_t""no" 1>&6 fi fi if $search_ncurses then echo "checking "location of ncurses.h file"" 1>&6 if $search_ncurses then if test -f /usr/include/ncurses.h then echo "$ac_t""Found ncurses on /usr/include/ncurses.h" 1>&6 LIBS="$LIBS -lncurses" CPPFLAGS="$CPPFLAGS " search_ncurses=false screen_manager="ncurses on /usr/include" cat >> confdefs.h <<\EOF #define USE_NCURSES 1 EOF fi fi if $search_ncurses then if test -f /usr/include/ncurses/ncurses.h then echo "$ac_t""Found ncurses on /usr/include/ncurses/ncurses.h" 1>&6 LIBS="$LIBS -lncurses" CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses" search_ncurses=false screen_manager="ncurses on /usr/include/ncurses" cat >> confdefs.h <<\EOF #define USE_NCURSES 1 EOF fi fi if $search_ncurses then if test -f /usr/local/include/ncurses.h then echo "$ac_t""Found ncurses on /usr/local/include/ncurses.h" 1>&6 LIBS="$LIBS -lncurses -L/usr/local/lib" CPPFLAGS="$CPPFLAGS -I/usr/local/include" search_ncurses=false screen_manager="ncurses on /usr/local" cat >> confdefs.h <<\EOF #define USE_NCURSES 1 EOF fi fi if $search_ncurses then if test -f /usr/local/include/ncurses/ncurses.h then echo "$ac_t""Found ncurses on /usr/local/include/ncurses/ncurses.h" 1>&6 LIBS="$LIBS -lncurses -L/usr/local/lib -L/usr/local/lib/ncurses" CPPFLAGS="$CPPFLAGS -I/usr/local/include/ncurses" search_ncurses=false screen_manager="ncurses on /usr/local/include/ncurses" cat >> confdefs.h <<\EOF #define USE_NCURSES 1 EOF fi fi if $search_ncurses then if test -f /usr/local/include/ncurses/curses.h then echo "$ac_t""Found ncurses on /usr/local/include/ncurses/curses.h" 1>&6 LIBS="$LIBS -lncurses -L/usr/local/lib" CPPFLAGS="$CPPFLAGS -I/usr/local/include/ncurses -DRENAMED_NCURSES" search_ncurses=false screen_manager="renamed ncurses on /usr/local/.../ncurses" cat >> confdefs.h <<\EOF #define USE_NCURSES 1 EOF fi fi if $search_ncurses then if test -f /usr/include/ncurses/curses.h then echo "$ac_t""Found ncurses on /usr/include/ncurses/curses.h" 1>&6 LIBS="$LIBS -lncurses" CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses -DRENAMED_NCURSES" search_ncurses=false screen_manager="renamed ncurses on /usr/include/ncurses" cat >> confdefs.h <<\EOF #define USE_NCURSES 1 EOF fi fi if $search_ncurses then cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "init_color" >/dev/null 2>&1; then rm -rf conftest* echo "$ac_t""Using SysV curses" 1>&6 cat >> confdefs.h <<\EOF #define USE_SYSV_CURSES 1 EOF XCURSES="" search_ncurses=false screen_manager="SysV/curses" LIBS="$LIBS -lcurses" fi rm -f conftest* cat > conftest.$ac_ext < #ifdef __NCURSES_H #undef USE_NCURSES USE_NCURSES #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "USE_NCURSES" >/dev/null 2>&1; then rm -rf conftest* CPPFLAGS="$CPPFLAGS -DRENAMED_NCURSES" cat >> confdefs.h <<\EOF #define USE_NCURSES 1 EOF search_ncurses=false screen_manager="ncurses installed as curses" fi rm -f conftest* fi if $search_ncurses then if test -f /usr/5include/curses.h then search_ncurses=false screen_manager="SunOS 4.x /usr/5include curses" echo "$ac_t""Using SunOS 4.x /usr/5include curses" 1>&6 cat >> confdefs.h <<\EOF #define SUNOS_CURSES 1 EOF cat >> confdefs.h <<\EOF #define NO_COLOR_SUPPORT 1 EOF cat >> confdefs.h <<\EOF #define USE_SYSV_CURSES 1 EOF CPPFLAGS="$CPPFLAGS -I/usr/5include" XCURSES="xcurses.o /usr/5lib/libcurses.a /usr/5lib/libtermcap.a" echo "$ac_t""Please note that some screen refreshs may fail" 1>&6 echo "configure: warning: Reconsider using Slang" 1>&2 fi else # check for ncurses version, to properly ifdef mouse-fix echo $ac_n "checking for ncurses version""... $ac_c" 1>&6 ncurses_version=unknown cat > conftest.$ac_ext < #else #include #endif #undef VERSION VERSION:NCURSES_VERSION EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "VERSION:" >conftest.out 2>&1; then ncurses_version=`cat conftest.out|sed -e 's/^[^"]*"//' -e 's/".*//'` fi rm -rf conftext* echo "$ac_t""$ncurses_version" 1>&6 case "$ncurses_version" in 4.[01]) cat >> confdefs.h <<\EOF #define NCURSES_970530 2 EOF ;; 1.9.9g) cat >> confdefs.h <<\EOF #define NCURSES_970530 1 EOF ;; 1*) cat >> confdefs.h <<\EOF #define NCURSES_970530 0 EOF ;; esac fi fi for ac_func in resizeterm keyok do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 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 < /* Override any gcc2 internal prototype to avoid an error. */ char $ac_func(); int main() { return 0; } int t() { /* 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 $ac_link; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else 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 <&6 fi done if test "x$screen_manager" = "xunknown"; then cat >> confdefs.h <<\EOF #define HAVE_SLANG 1 EOF search_ncurses=false if $slang_use_system_installed_lib then cat >> confdefs.h <<\EOF #define HAVE_SYSTEM_SLANG 1 EOF LIBS="$LIBS -lslang" screen_manager="SLang (using system-installed library)" echo "$ac_t""Using system installed SLang library" 1>&6 else CPPFLAGS="$CPPFLAGS -I\$(slangdir)" LIBSLANG="libmcslang.a" screen_manager="SLang" LSLANG="-lmcslang" fastdepslang=fastdepslang fi if $slang_check_lib then use_terminfo=false if test -d /usr/lib/terminfo; then use_terminfo=true; fi if test -d /usr/share/lib/terminfo; then use_terminfo=true; fi if test -d /usr/local/lib/terminfo; then use_terminfo=true; fi if test -d /lib/terminfo; then use_terminfo=true; fi if test -d /usr/local/share/terminfo; then use_terminfo=true; fi if test -d /usr/share/terminfo; then use_terminfo=true; fi if $use_terminfo; then cat >> confdefs.h <<\EOF #define SLANG_TERMINFO 1 EOF echo "$ac_t""Using SLang screen manager/terminfo" 1>&6 slang_term=" with terminfo" else echo "$ac_t""Using SLang screen manager/termcap" 1>&6 cat >> confdefs.h <<\EOF #define USE_TERMCAP 1 EOF echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6 ac_lib_var=`echo termcap | tr '.-/+' '___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="-ltermcap $LIBS $LIBS" cat > conftest.$ac_ext <&6 LIBS="$LIBS -ltermcap" else echo "$ac_t""no" 1>&6 fi slang_term=" with termcap" fi fi fi saver="" saver_target="" vcs="" install_saver="no" PAMLIBS="" if test $system = Linux then saver="install.saver" saver_target="cons.saver" vcs="install.create_vcs" install_saver="yes" echo $ac_n "checking for -lpam""... $ac_c" 1>&6 ac_lib_var=`echo pam | tr '.-/+' '___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="-lpam -ldl $LIBS" cat > conftest.$ac_ext <&6 cat >> confdefs.h <<\EOF #define HAVE_PAM 1 EOF PAMLIBS="-lpam -ldl" else echo "$ac_t""no" 1>&6 fi fi SEDCMD="sed 's/-man/$MANDOC/'" SEDCMD2="sed 's%@prefix@%\$(prefix)%'" if test x$no_xview = xyes; then : else echo $ac_n "checking for -lXpm""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_has_xpm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_has_xpm=no if test x$no_x = xyes; then : else has_xpm_save_LIBS=$LIBS LIBS="-lXpm $X_EXTRA_LIBS -lX11 $X_PRE_LIBS $LIBS" has_xpm_save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $X_LIBS" has_xpm_save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $X_CFLAGS" cat > conftest.$ac_ext < #include int main() { return 0; } int t() { XpmLibraryVersion(); ; return 0; } EOF if eval $ac_link; then rm -rf conftest* ac_cv_has_xpm=yes fi rm -f conftest* CFLAGS="$has_xpm_save_CFLAGS" LDFLAGS="$has_xpm_save_LDFLAGS" LIBS="$has_xpm_save_LIBS" fi fi echo "$ac_t""$ac_cv_has_xpm" 1>&6 if test x$ac_cv_has_xpm = xyes; then XPM_LIB=-lXpm echo $ac_n "checking for X11 non-rectangular shape extension""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_has_shape'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_has_shape=no if test x$no_x = xyes; then : else has_shape_save_LIBS=$LIBS LIBS="-lXext $X_EXTRA_LIBS -lX11 $X_PRE_LIBS $LIBS" has_shape_save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $X_LIBS" has_shape_save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $X_CFLAGS" cat > conftest.$ac_ext < #include #include int main() { return 0; } int t() { Display *dpy = (Display *)NULL; int a, b; XShapeQueryVersion(dpy,&a,&b); ; return 0; } EOF if eval $ac_link; then rm -rf conftest* ac_cv_has_shape=yes fi rm -f conftest* CFLAGS="$has_shape_save_CFLAGS" LDFLAGS="$has_shape_save_LDFLAGS" LIBS="$has_shape_save_LIBS" fi fi echo "$ac_t""$ac_cv_has_shape" 1>&6 if test x$ac_cv_has_shape = xyes; then cat >> confdefs.h <<\EOF #define HAVE_XPM_SHAPE 1 EOF XEXT_LIB=-lXext fi fi fi case $screen_manager in [Ss][Ll][Aa][Nn][Gg]*) if test $system = Linux then echo else echo $ac_n "checking for -lcurses""... $ac_c" 1>&6 ac_lib_var=`echo curses | tr '.-/+' '___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="-lcurses $LIBS" cat > conftest.$ac_ext <&6 cat > conftest.$ac_ext < #include int main() { return 0; } int t() { if (key_end == parm_insert_line) return 1; return 0; ; return 0; } EOF if eval $ac_compile; then rm -rf conftest* LIBS="$LIBS -lcurses" cat >> confdefs.h <<\EOF #define USE_SETUPTERM 1 EOF fi rm -f conftest* else echo "$ac_t""no" 1>&6 fi fi ;; esac LIBS="$LIBS $posix_libs" insticons= if test "x$no_xview" != "xyes"; then insticons=install_icons fi CPPFLAGS="-I.. $CPPFLAGS" ac_cv_make_with_percent_rules=no if test x$ac_cv_prog_gnu_make = xyes; then MCFG='include ../Make.common' MCFGR='include ./Make.common' MCF=/dev/null PHONY='.PHONY:' DOTDEPEND='ifeq (.depend,$(wildcard .depend)) \ include .depend \ endif' WRITEDEP=":" ac_cv_make_with_percent_rules=yes else MCFG="" MCFGR="" MCF=./Make.common PHONY='#' DOTDEPEND="" WRITEDEP='sed "/^. \*\*\*Dependencies\*\*\*/,/^. \*\*\*End of dependencies\*\*\*/d" < Makefile > Makefile.conf; { cat Makefile.conf; echo "# ***Dependencies***Do not edit***"; cat .depend; echo "# ***End of dependencies***" } > Makefile; $(RMF) Makefile.conf .depend' fi if test x$ac_cv_make_with_percent_rules = xyes; then PCENTRULE="" else PCENTRULE="#" fi 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 # 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 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ >> 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 </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.7" 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 "Make.common Makefile doc/Makefile vfs/Makefile lib/Makefile \ lib/mc.ext tk/Makefile gnome/Makefile xv/Makefile src/Makefile \ slang/Makefile edit/Makefile icons/Makefile mcfn_install \ vfs/extfs/ftplist vfs/extfs/zip vfs/extfs/zoo vfs/extfs/lslR \ vfs/extfs/lha vfs/extfs/cpio vfs/extfs/deb vfs/extfs/rar \ doc/mc.1 doc/mcedit.1 doc/mcserv.8 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS < 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%@MC@%$MC%g s%@SET_MAKE@%$SET_MAKE%g s%@CC@%$CC%g s%@CPP@%$CPP%g s%@RANLIB@%$RANLIB%g s%@LN_S@%$LN_S%g s%@AWK@%$AWK%g s%@AWK_VAR_OPTION@%$AWK_VAR_OPTION%g s%@dep@%$dep%g s%@GNU_MAKE@%$GNU_MAKE%g s%@MV@%$MV%g s%@CP@%$CP%g s%@RM@%$RM%g s%@CHMOD@%$CHMOD%g s%@AR@%$AR%g s%@system@%$system%g s%@X11_WWW@%$X11_WWW%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_DATA@%$INSTALL_DATA%g s%@REGEX_O@%$REGEX_O%g s%@LIBOBJS@%$LIBOBJS%g s%@SHADOWLIB@%$SHADOWLIB%g s%@ALLOCA@%$ALLOCA%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%@XVIEW_CFLAGS@%$XVIEW_CFLAGS%g s%@XVIEW_CPPFLAGS@%$XVIEW_CPPFLAGS%g s%@XVIEW_LIBS@%$XVIEW_LIBS%g s%@HAVE_XVIEW@%$HAVE_XVIEW%g s%@HAVE_XVIEW_PRIVATE_HEADERS@%$HAVE_XVIEW_PRIVATE_HEADERS%g s%@mxc@%$mxc%g s%@xvdep@%$xvdep%g s%@ac_my_xp@%$ac_my_xp%g s%@xv_bindir@%$xv_bindir%g s%@NETFILES@%$NETFILES%g s%@XCURSES@%$XCURSES%g s%@tkmc@%$tkmc%g s%@tkdep@%$tkdep%g s%@tk_includes@%$tk_includes%g s%@tk_libs@%$tk_libs%g s%@gmc@%$gmc%g s%@gmcdep@%$gmcdep%g s%@HAVE_nroff@%$HAVE_nroff%g s%@MANDOC@%$MANDOC%g s%@TROFFASCII@%$TROFFASCII%g s%@HAVE_FILECMD@%$HAVE_FILECMD%g s%@LIBSLANG@%$LIBSLANG%g s%@LSLANG@%$LSLANG%g s%@fastdepslang@%$fastdepslang%g s%@TERMNET@%$TERMNET%g s%@LIBVFS@%$LIBVFS%g s%@LVFS@%$LVFS%g s%@fastdepvfs@%$fastdepvfs%g s%@mcserv@%$mcserv%g s%@LIBEDIT_A@%$LIBEDIT_A%g s%@MCEDIT@%$MCEDIT%g s%@LEDIT@%$LEDIT%g s%@undelfs_o@%$undelfs_o%g s%@saver_target@%$saver_target%g s%@saver@%$saver%g s%@vcs@%$vcs%g s%@PAMLIBS@%$PAMLIBS%g s%@SEDCMD@%$SEDCMD%g s%@SEDCMD2@%$SEDCMD2%g s%@XPM_LIB@%$XPM_LIB%g s%@XEXT_LIB@%$XEXT_LIB%g s%@insticons@%$insticons%g s%@PHONY@%$PHONY%g s%@WRITEDEP@%$WRITEDEP%g s%@MCFG@%$MCFG%g s%@MCFGR@%$MCFGR%g s%@DOTDEPEND@%$DOTDEPEND%g /@MCF@/r $MCF s%@MCF@%%g s%@PCENTRULE@%$PCENTRULE%g CEOF EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[: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 relative srcdir, etc. 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 sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g s%@INSTALL@%$INSTALL%g " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file fi; done rm -f conftest.subs # 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' CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"} for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then # Support "outfile[: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 cp $ac_given_srcdir/$ac_file_in 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. # Maximum number of lines to put in a single here document. ac_max_here_lines=12 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 <> $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 rm -f $ac_file mv conftest.h $ac_file fi fi; done 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 x$srcdir != x; then if test $srcdir != .; then cp $srcdir/VERSION VERSION mkdir nt mkdir os2 cp $srcdir/nt/Makefile nt/Makefile cp $srcdir/os2/Makefile os2/Makefile fi fi if test "x$screen_manager" = xSLang; then screen_manager="${screen_manager}${slang_term}" fi echo " Configuration: Source code location: ${srcdir} Compiler: ${CC} Compiler flags: ${CFLAGS} File system: ${vfs_type} ${vfs_flags} Text mode screen manager: ${screen_manager} Install console saver: ${install_saver} Text mode mouse library: ${mouse_lib} Debugger code: ${mem_debug} With subshell support: ${subshell} X11 versions: ${xvers} Internal editor: ${EDIT_msg} Install path: ${prefix}/bin, ${prefix}/lib/mc" if test -n "$xv_bindir"; then echo " XView version install path: ${xv_bindir}" fi echo ""