home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / managers / git-4.3 / git-4 / git-4.3.7 / configure < prev    next >
Encoding:
Text File  |  1995-07-10  |  84.8 KB  |  3,599 lines

  1. #! /bin/sh
  2.  
  3. # From configure.in Revision: 4.3.7 
  4. # Guess values for system-dependent variables and create Makefiles.
  5. # Generated automatically using autoconf version 2.4 
  6. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  7. #
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10.  
  11. # Defaults:
  12. ac_help=
  13. ac_default_prefix=/usr/local
  14. # Any additions from configure.in:
  15. ac_help="$ac_help
  16. --enable-terminfo     use terminfo insted of termcap"
  17.  
  18. # Initialize some variables set by options.
  19. # The variables have the same names as the options, with
  20. # dashes changed to underlines.
  21. build=NONE
  22. cache_file=./config.cache
  23. exec_prefix=NONE
  24. host=NONE
  25. no_create=
  26. nonopt=NONE
  27. no_recursion=
  28. prefix=NONE
  29. program_prefix=NONE
  30. program_suffix=NONE
  31. program_transform_name=s,x,x,
  32. silent=
  33. site=
  34. srcdir=
  35. target=NONE
  36. verbose=
  37. x_includes=NONE
  38. x_libraries=NONE
  39.  
  40. # Initialize some other variables.
  41. subdirs=
  42.  
  43. ac_prev=
  44. for ac_option
  45. do
  46.  
  47.   # If the previous option needs an argument, assign it.
  48.   if test -n "$ac_prev"; then
  49.     eval "$ac_prev=\$ac_option"
  50.     ac_prev=
  51.     continue
  52.   fi
  53.  
  54.   case "$ac_option" in
  55.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  56.   *) ac_optarg= ;;
  57.   esac
  58.  
  59.   # Accept the important Cygnus configure options, so we can diagnose typos.
  60.  
  61.   case "$ac_option" in
  62.  
  63.   -build | --build | --buil | --bui | --bu | --b)
  64.     ac_prev=build ;;
  65.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  66.     build="$ac_optarg" ;;
  67.  
  68.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  69.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  70.     ac_prev=cache_file ;;
  71.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  72.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  73.     cache_file="$ac_optarg" ;;
  74.  
  75.   -disable-* | --disable-*)
  76.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  77.     # Reject names that are not valid shell variable names.
  78.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  79.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  80.     fi
  81.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  82.     eval "enable_${ac_feature}=no" ;;
  83.  
  84.   -enable-* | --enable-*)
  85.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  86.     # Reject names that are not valid shell variable names.
  87.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  88.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  89.     fi
  90.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  91.     case "$ac_option" in
  92.       *=*) ;;
  93.       *) ac_optarg=yes ;;
  94.     esac
  95.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  96.  
  97.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  98.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  99.   | --exec | --exe | --ex)
  100.     ac_prev=exec_prefix ;;
  101.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  102.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  103.   | --exec=* | --exe=* | --ex=*)
  104.     exec_prefix="$ac_optarg" ;;
  105.  
  106.   -gas | --gas | --ga | --g)
  107.     # Obsolete; use --with-gas.
  108.     with_gas=yes ;;
  109.  
  110.   -help | --help | --hel | --he)
  111.     # Omit some internal or obsolete options to make the list less imposing.
  112.     # This message is too long to be a string in the A/UX 3.1 sh.
  113.     cat << EOF
  114. Usage: configure [options] [host]
  115. Options: [defaults in brackets after descriptions]
  116. Configuration:
  117.   --cache-file=FILE       cache test results in FILE
  118.   --help                  print this message
  119.   --no-create             do not create output files
  120.   --quiet, --silent       do not print \`checking...' messages
  121.   --version               print the version of autoconf that created configure
  122. Directory and file names:
  123.   --prefix=PREFIX         install architecture-independent files in PREFIX
  124.                           [$ac_default_prefix]
  125.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  126.                           [same as prefix]
  127.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  128.   --program-prefix=PREFIX prepend PREFIX to installed program names
  129.   --program-suffix=SUFFIX append SUFFIX to installed program names
  130.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  131. Host type:
  132.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  133.   --host=HOST             configure for HOST [guessed]
  134.   --target=TARGET         configure for TARGET [TARGET=HOST]
  135. Features and packages:
  136.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  137.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  138.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  139.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  140.   --x-includes=DIR        X include files are in DIR
  141.   --x-libraries=DIR       X library files are in DIR
  142. --enable and --with options recognized:$ac_help
  143. EOF
  144.     exit 0 ;;
  145.  
  146.   -host | --host | --hos | --ho)
  147.     ac_prev=host ;;
  148.   -host=* | --host=* | --hos=* | --ho=*)
  149.     host="$ac_optarg" ;;
  150.  
  151.   -nfp | --nfp | --nf)
  152.     # Obsolete; use --without-fp.
  153.     with_fp=no ;;
  154.  
  155.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  156.   | --no-cr | --no-c)
  157.     no_create=yes ;;
  158.  
  159.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  160.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  161.     no_recursion=yes ;;
  162.  
  163.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  164.     ac_prev=prefix ;;
  165.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  166.     prefix="$ac_optarg" ;;
  167.  
  168.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  169.   | --program-pre | --program-pr | --program-p)
  170.     ac_prev=program_prefix ;;
  171.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  172.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  173.     program_prefix="$ac_optarg" ;;
  174.  
  175.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  176.   | --program-suf | --program-su | --program-s)
  177.     ac_prev=program_suffix ;;
  178.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  179.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  180.     program_suffix="$ac_optarg" ;;
  181.  
  182.   -program-transform-name | --program-transform-name \
  183.   | --program-transform-nam | --program-transform-na \
  184.   | --program-transform-n | --program-transform- \
  185.   | --program-transform | --program-transfor \
  186.   | --program-transfo | --program-transf \
  187.   | --program-trans | --program-tran \
  188.   | --progr-tra | --program-tr | --program-t)
  189.     ac_prev=program_transform_name ;;
  190.   -program-transform-name=* | --program-transform-name=* \
  191.   | --program-transform-nam=* | --program-transform-na=* \
  192.   | --program-transform-n=* | --program-transform-=* \
  193.   | --program-transform=* | --program-transfor=* \
  194.   | --program-transfo=* | --program-transf=* \
  195.   | --program-trans=* | --program-tran=* \
  196.   | --progr-tra=* | --program-tr=* | --program-t=*)
  197.     program_transform_name="$ac_optarg" ;;
  198.  
  199.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  200.   | -silent | --silent | --silen | --sile | --sil)
  201.     silent=yes ;;
  202.  
  203.   -site | --site | --sit)
  204.     ac_prev=site ;;
  205.   -site=* | --site=* | --sit=*)
  206.     site="$ac_optarg" ;;
  207.  
  208.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  209.     ac_prev=srcdir ;;
  210.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  211.     srcdir="$ac_optarg" ;;
  212.  
  213.   -target | --target | --targe | --targ | --tar | --ta | --t)
  214.     ac_prev=target ;;
  215.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  216.     target="$ac_optarg" ;;
  217.  
  218.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  219.     verbose=yes ;;
  220.  
  221.   -version | --version | --versio | --versi | --vers)
  222.     echo "configure generated by autoconf version 2.4"
  223.     exit 0 ;;
  224.  
  225.   -with-* | --with-*)
  226.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  227.     # Reject names that are not valid shell variable names.
  228.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  229.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  230.     fi
  231.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  232.     case "$ac_option" in
  233.       *=*) ;;
  234.       *) ac_optarg=yes ;;
  235.     esac
  236.     eval "with_${ac_package}='$ac_optarg'" ;;
  237.  
  238.   -without-* | --without-*)
  239.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  240.     # Reject names that are not valid shell variable names.
  241.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  242.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  243.     fi
  244.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  245.     eval "with_${ac_package}=no" ;;
  246.  
  247.   --x)
  248.     # Obsolete; use --with-x.
  249.     with_x=yes ;;
  250.  
  251.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  252.   | --x-incl | --x-inc | --x-in | --x-i)
  253.     ac_prev=x_includes ;;
  254.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  255.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  256.     x_includes="$ac_optarg" ;;
  257.  
  258.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  259.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  260.     ac_prev=x_libraries ;;
  261.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  262.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  263.     x_libraries="$ac_optarg" ;;
  264.  
  265.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  266.     ;;
  267.  
  268.   *) 
  269.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  270.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  271.     fi
  272.     if test "x$nonopt" != xNONE; then
  273.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  274.     fi
  275.     nonopt="$ac_option"
  276.     ;;
  277.  
  278.   esac
  279. done
  280.  
  281. if test -n "$ac_prev"; then
  282.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  283. fi
  284.  
  285. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  286.  
  287. # File descriptor usage:
  288. # 0 standard input
  289. # 1 file creation
  290. # 2 errors and warnings
  291. # 3 some systems may open it to /dev/tty
  292. # 4 used on the Kubota Titan
  293. # 6 checking for... messages and results
  294. # 5 compiler messages saved in config.log
  295. if test "$silent" = yes; then
  296.   exec 6>/dev/null
  297. else
  298.   exec 6>&1
  299. fi
  300. exec 5>./config.log
  301.  
  302. echo "\
  303. This file contains any messages produced by compilers while
  304. running configure, to aid debugging if configure makes a mistake.
  305. " 1>&5
  306.  
  307. # Strip out --no-create and --no-recursion so they do not pile up.
  308. # Also quote any args containing shell metacharacters.
  309. ac_configure_args=
  310. for ac_arg
  311. do
  312.   case "$ac_arg" in
  313.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  314.   | --no-cr | --no-c) ;;
  315.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  316.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  317.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  318.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  319.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  320.   esac
  321. done
  322.  
  323. # NLS nuisances.
  324. # Only set LANG and LC_ALL to C if already set.
  325. # These must not be set unconditionally because not all systems understand
  326. # e.g. LANG=C (notably SCO).
  327. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  328. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  329.  
  330. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  331. rm -rf conftest* confdefs.h
  332. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  333. echo > confdefs.h
  334.  
  335. # A filename unique to this package, relative to the directory that
  336. # configure is in, which we can look for to find out if srcdir is correct.
  337. ac_unique_file=src/git.c
  338.  
  339. # Find the source files, if location was not specified.
  340. if test -z "$srcdir"; then
  341.   ac_srcdir_defaulted=yes
  342.   # Try the directory containing this script, then its parent.
  343.   ac_prog=$0
  344.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  345.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  346.   srcdir=$ac_confdir
  347.   if test ! -r $srcdir/$ac_unique_file; then
  348.     srcdir=..
  349.   fi
  350. else
  351.   ac_srcdir_defaulted=no
  352. fi
  353. if test ! -r $srcdir/$ac_unique_file; then
  354.   if test "$ac_srcdir_defaulted" = yes; then
  355.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  356.   else
  357.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  358.   fi
  359. fi
  360. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  361.  
  362. # Prefer explicitly selected file to automatically selected ones.
  363. if test -z "$CONFIG_SITE"; then
  364.   if test "x$prefix" != xNONE; then
  365.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  366.   else
  367.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  368.   fi
  369. fi
  370. for ac_site_file in $CONFIG_SITE; do
  371.   if test -r "$ac_site_file"; then
  372.     echo "loading site script $ac_site_file"
  373.     . "$ac_site_file"
  374.   fi
  375. done
  376.  
  377. if test -r "$cache_file"; then
  378.   echo "loading cache $cache_file"
  379.   . $cache_file
  380. else
  381.   echo "creating cache $cache_file"
  382.   > $cache_file
  383. fi
  384.  
  385. ac_ext=c
  386. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  387. ac_cpp='$CPP $CPPFLAGS'
  388. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  389. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  390.  
  391. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  392.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  393.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  394.     ac_n= ac_c='
  395. ' ac_t='    '
  396.   else
  397.     ac_n=-n ac_c= ac_t=
  398.   fi
  399. else
  400.   ac_n= ac_c='\c' ac_t=
  401. fi
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409. echo
  410. echo
  411. echo "                 ###########################################"
  412. echo "                 # Configuring GNU Interactive Tools 4.3.7 #"
  413. echo "                 ###########################################"
  414. echo
  415. echo
  416. echo "     ******************************************************************"
  417. echo "     *     WARNING: some old losing shells fail to run './configure', *"
  418. echo "     * trying to execute configure itself.  You can prevent  this  by *"
  419. echo "     * running 'sh configure'.  The configure script will be executed *"
  420. echo "     * by /bin/sh.                                                    *"
  421. echo "     ******************************************************************"
  422. echo
  423. echo
  424. echo "     ******************************************************************"
  425. echo "     *     If you find bugs in this software or in  the  installation *"
  426. echo "     * procedure please send a description to tudor@chang.pub.ro.     *"
  427. echo "     ******************************************************************"
  428. echo
  429. echo
  430.  
  431. echo "5 seconds delay..."
  432. sleep 5
  433. echo
  434.  
  435.  
  436.  
  437. PRODUCT="GNU Interactive Tools"
  438. VERSION="4.3.7"
  439.  
  440.  
  441.  
  442. ac_aux_dir=
  443. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  444.   if test -f $ac_dir/install-sh; then
  445.     ac_aux_dir=$ac_dir
  446.     ac_install_sh="$ac_aux_dir/install-sh -c"
  447.     break
  448.   elif test -f $ac_dir/install.sh; then
  449.     ac_aux_dir=$ac_dir
  450.     ac_install_sh="$ac_aux_dir/install.sh -c"
  451.     break
  452.   fi
  453. done
  454. if test -z "$ac_aux_dir"; then
  455.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  456. fi
  457. ac_config_guess=$ac_aux_dir/config.guess
  458. ac_config_sub=$ac_aux_dir/config.sub
  459. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  460.  
  461. # Find a good install program.  We prefer a C program (faster),
  462. # so one script is as good as another.  But avoid the broken or
  463. # incompatible versions:
  464. # SysV /etc/install, /usr/sbin/install
  465. # SunOS /usr/etc/install
  466. # IRIX /sbin/install
  467. # AIX /bin/install
  468. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  469. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  470. # ./install, which can be erroneously created by make from ./install.sh.
  471. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  472. if test -z "$INSTALL"; then
  473. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  474.   echo $ac_n "(cached) $ac_c" 1>&6
  475. else
  476.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  477.   for ac_dir in $PATH; do
  478.     # Account for people who put trailing slashes in PATH elements.
  479.     case "$ac_dir/" in
  480.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  481.     *)
  482.       # OSF1 and SCO ODT 3.0 have their own names for install.
  483.       for ac_prog in ginstall installbsd scoinst install; do
  484.         if test -f $ac_dir/$ac_prog; then
  485.       if test $ac_prog = install &&
  486.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  487.         # AIX install.  It has an incompatible calling convention.
  488.         # OSF/1 installbsd also uses dspmsg, but is usable.
  489.         :
  490.       else
  491.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  492.         break 2
  493.       fi
  494.     fi
  495.       done
  496.       ;;
  497.     esac
  498.   done
  499.   IFS="$ac_save_ifs"
  500.   # As a last resort, use the slow shell script.
  501.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  502. fi
  503.   INSTALL="$ac_cv_path_install"
  504. fi
  505. echo "$ac_t""$INSTALL" 1>&6
  506.  
  507. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  508. # It thinks the first close brace ends the variable substitution.
  509. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  510.  
  511. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  512.  
  513.  
  514.  
  515.  
  516. # Make sure we can run config.sub.
  517. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  518. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  519. fi
  520.  
  521. echo $ac_n "checking host system type""... $ac_c" 1>&6
  522.  
  523. host_alias=$host
  524. case "$host_alias" in
  525. NONE)
  526.   case $nonopt in
  527.   NONE)
  528.     if host_alias=`$ac_config_guess`; then :
  529.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  530.     fi ;;
  531.   *) host_alias=$nonopt ;;
  532.   esac ;;
  533. esac
  534.  
  535. host=`$ac_config_sub $host_alias`
  536. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  537. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  538. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  539. echo "$ac_t""$host" 1>&6
  540.  
  541.  
  542. HOST=$host
  543.  
  544.  
  545.  
  546. if test "$host_os" = "linux"; then
  547.     cat >> confdefs.h <<\EOF
  548. #define HAVE_LINUX 1
  549. EOF
  550.  
  551. else
  552.     if test `echo "$host_os" | cut -c1-4` = "hpux"; then
  553.     cat >> confdefs.h <<\EOF
  554. #define HAVE_HPUX 1
  555. EOF
  556.  
  557.     fi
  558. fi
  559.  
  560.  
  561.  
  562. # Extract the first word of "gcc", so it can be a program name with args.
  563. set dummy gcc; ac_word=$2
  564. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  565. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  566.   echo $ac_n "(cached) $ac_c" 1>&6
  567. else
  568.   if test -n "$CC"; then
  569.   ac_cv_prog_CC="$CC" # Let the user override the test.
  570. else
  571.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  572.   for ac_dir in $PATH; do
  573.     test -z "$ac_dir" && ac_dir=.
  574.     if test -f $ac_dir/$ac_word; then
  575.       ac_cv_prog_CC="gcc"
  576.       break
  577.     fi
  578.   done
  579.   IFS="$ac_save_ifs"
  580.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  581. fi
  582. fi
  583. CC="$ac_cv_prog_CC"
  584. if test -n "$CC"; then
  585.   echo "$ac_t""$CC" 1>&6
  586. else
  587.   echo "$ac_t""no" 1>&6
  588. fi
  589.  
  590.  
  591. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  592. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  593.   echo $ac_n "(cached) $ac_c" 1>&6
  594. else
  595.   cat > conftest.c <<EOF
  596. #ifdef __GNUC__
  597.   yes;
  598. #endif
  599. EOF
  600. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  601.   ac_cv_prog_gcc=yes
  602. else
  603.   ac_cv_prog_gcc=no
  604. fi
  605. fi
  606. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  607. if test $ac_cv_prog_gcc = yes; then
  608.   GCC=yes
  609.   if test "${CFLAGS+set}" != set; then
  610.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  611. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  612.   echo $ac_n "(cached) $ac_c" 1>&6
  613. else
  614.   echo 'void f(){}' > conftest.c
  615. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  616.   ac_cv_prog_gcc_g=yes
  617. else
  618.   ac_cv_prog_gcc_g=no
  619. fi
  620. rm -f conftest*
  621.  
  622. fi
  623.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  624.     if test $ac_cv_prog_gcc_g = yes; then
  625.       CFLAGS="-g -O"
  626.     else
  627.       CFLAGS="-O"
  628.     fi
  629.   fi
  630. else
  631.   GCC=
  632.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  633. fi
  634.  
  635.  
  636.  
  637.  
  638. if test "$CC" = "gcc"; then
  639.     cat >> confdefs.h <<\EOF
  640. #define HAVE_GCC 1
  641. EOF
  642.  
  643.     CFLAGS="$CFLAGS -Wall";
  644. fi
  645.  
  646.  
  647.  
  648. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  649. # On Suns, sometimes $CPP names a directory.
  650. if test -n "$CPP" && test -d "$CPP"; then
  651.   CPP=
  652. fi
  653. if test -z "$CPP"; then
  654. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  655.   echo $ac_n "(cached) $ac_c" 1>&6
  656. else
  657.     # This must be in double quotes, not single quotes, because CPP may get
  658.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  659.   CPP="${CC-cc} -E"
  660.   # On the NeXT, cc -E runs the code through the compiler's parser,
  661.   # not just through cpp.
  662.   cat > conftest.$ac_ext <<EOF
  663. #line 664 "configure"
  664. #include "confdefs.h"
  665. #include <assert.h>
  666. Syntax Error
  667. EOF
  668. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  669. ac_err=`grep -v '^ *+' conftest.out`
  670. if test -z "$ac_err"; then
  671.   :
  672. else
  673.   echo "$ac_err" >&5
  674.   rm -rf conftest*
  675.   CPP="${CC-cc} -E -traditional-cpp"
  676.   cat > conftest.$ac_ext <<EOF
  677. #line 678 "configure"
  678. #include "confdefs.h"
  679. #include <assert.h>
  680. Syntax Error
  681. EOF
  682. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  683. ac_err=`grep -v '^ *+' conftest.out`
  684. if test -z "$ac_err"; then
  685.   :
  686. else
  687.   echo "$ac_err" >&5
  688.   rm -rf conftest*
  689.   CPP=/lib/cpp
  690. fi
  691. rm -f conftest*
  692. fi
  693. rm -f conftest*
  694.   ac_cv_prog_CPP="$CPP"
  695. fi
  696.   CPP="$ac_cv_prog_CPP"
  697. else
  698.   ac_cv_prog_CPP="$CPP"
  699. fi
  700. echo "$ac_t""$CPP" 1>&6
  701.  
  702. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  703. cat > conftest.$ac_ext <<EOF
  704. #line 705 "configure"
  705. #include "confdefs.h"
  706. #ifdef _AIX
  707.   yes
  708. #endif
  709.  
  710. EOF
  711. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  712.   egrep "yes" >/dev/null 2>&1; then
  713.   rm -rf conftest*
  714.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  715. #define _ALL_SOURCE 1
  716. EOF
  717.  
  718. else
  719.   rm -rf conftest*
  720.   echo "$ac_t""no" 1>&6
  721. fi
  722. rm -f conftest*
  723.  
  724.  
  725. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  726. if test -d /etc/conf/kconfig.d &&
  727.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  728. then
  729.   echo "$ac_t""yes" 1>&6
  730.   ISC=yes # If later tests want to check for ISC.
  731.   cat >> confdefs.h <<\EOF
  732. #define _POSIX_SOURCE 1
  733. EOF
  734.  
  735.   if test "$GCC" = yes; then
  736.     CC="$CC -posix"
  737.   else
  738.     CC="$CC -Xp"
  739.   fi
  740. else
  741.   echo "$ac_t""no" 1>&6
  742.   ISC=
  743. fi
  744.  
  745. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  746. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  747. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  748.   echo $ac_n "(cached) $ac_c" 1>&6
  749. else
  750.   cat > conftest.$ac_ext <<EOF
  751. #line 752 "configure"
  752. #include "confdefs.h"
  753. #include <minix/config.h>
  754. EOF
  755. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  756. ac_err=`grep -v '^ *+' conftest.out`
  757. if test -z "$ac_err"; then
  758.   rm -rf conftest*
  759.   eval "ac_cv_header_$ac_safe=yes"
  760. else
  761.   echo "$ac_err" >&5
  762.   rm -rf conftest*
  763.   eval "ac_cv_header_$ac_safe=no"
  764. fi
  765. rm -f conftest*
  766. fi
  767. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  768.   echo "$ac_t""yes" 1>&6
  769.   MINIX=yes
  770. else
  771.   echo "$ac_t""no" 1>&6
  772. MINIX=
  773. fi
  774.  
  775. if test "$MINIX" = yes; then
  776.   cat >> confdefs.h <<\EOF
  777. #define _POSIX_SOURCE 1
  778. EOF
  779.  
  780.   cat >> confdefs.h <<\EOF
  781. #define _POSIX_1_SOURCE 2
  782. EOF
  783.  
  784.   cat >> confdefs.h <<\EOF
  785. #define _MINIX 1
  786. EOF
  787.  
  788. fi
  789.  
  790. echo $ac_n "checking for -lsun""... $ac_c" 1>&6
  791. if eval "test \"`echo '$''{'ac_cv_lib_sun'+set}'`\" = set"; then
  792.   echo $ac_n "(cached) $ac_c" 1>&6
  793. else
  794.   ac_save_LIBS="$LIBS"
  795. LIBS="-lsun  $LIBS"
  796. cat > conftest.$ac_ext <<EOF
  797. #line 798 "configure"
  798. #include "confdefs.h"
  799.  
  800. int main() { return 0; }
  801. int t() {
  802. getpwnam()
  803. ; return 0; }
  804. EOF
  805. if eval $ac_link; then
  806.   rm -rf conftest*
  807.   eval "ac_cv_lib_sun=yes"
  808. else
  809.   rm -rf conftest*
  810.   eval "ac_cv_lib_sun=no"
  811. fi
  812. rm -f conftest*
  813. LIBS="$ac_save_LIBS"
  814.  
  815. fi
  816. if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
  817.   echo "$ac_t""yes" 1>&6
  818.     ac_tr_lib=HAVE_LIB`echo sun | tr '[a-z]' '[A-Z]'`
  819.   cat >> confdefs.h <<EOF
  820. #define $ac_tr_lib 1
  821. EOF
  822.  
  823.   LIBS="-lsun $LIBS"
  824.  
  825. else
  826.   echo "$ac_t""no" 1>&6
  827. fi
  828.  
  829.  
  830.  
  831.  
  832. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  833. # On Suns, sometimes $CPP names a directory.
  834. if test -n "$CPP" && test -d "$CPP"; then
  835.   CPP=
  836. fi
  837. if test -z "$CPP"; then
  838. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  839.   echo $ac_n "(cached) $ac_c" 1>&6
  840. else
  841.     # This must be in double quotes, not single quotes, because CPP may get
  842.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  843.   CPP="${CC-cc} -E"
  844.   # On the NeXT, cc -E runs the code through the compiler's parser,
  845.   # not just through cpp.
  846.   cat > conftest.$ac_ext <<EOF
  847. #line 848 "configure"
  848. #include "confdefs.h"
  849. #include <assert.h>
  850. Syntax Error
  851. EOF
  852. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  853. ac_err=`grep -v '^ *+' conftest.out`
  854. if test -z "$ac_err"; then
  855.   :
  856. else
  857.   echo "$ac_err" >&5
  858.   rm -rf conftest*
  859.   CPP="${CC-cc} -E -traditional-cpp"
  860.   cat > conftest.$ac_ext <<EOF
  861. #line 862 "configure"
  862. #include "confdefs.h"
  863. #include <assert.h>
  864. Syntax Error
  865. EOF
  866. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  867. ac_err=`grep -v '^ *+' conftest.out`
  868. if test -z "$ac_err"; then
  869.   :
  870. else
  871.   echo "$ac_err" >&5
  872.   rm -rf conftest*
  873.   CPP=/lib/cpp
  874. fi
  875. rm -f conftest*
  876. fi
  877. rm -f conftest*
  878.   ac_cv_prog_CPP="$CPP"
  879. fi
  880.   CPP="$ac_cv_prog_CPP"
  881. else
  882.   ac_cv_prog_CPP="$CPP"
  883. fi
  884. echo "$ac_t""$CPP" 1>&6
  885.  
  886.  
  887.  
  888.  
  889. # If we cannot run a trivial program, we must be cross compiling.
  890. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  891. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  892.   echo $ac_n "(cached) $ac_c" 1>&6
  893. else
  894.   if test "$cross_compiling" = yes; then
  895.   ac_cv_c_cross=yes
  896. else
  897. cat > conftest.$ac_ext <<EOF
  898. #line 899 "configure"
  899. #include "confdefs.h"
  900. main(){return(0);}
  901. EOF
  902. eval $ac_link
  903. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  904.   ac_cv_c_cross=no
  905. else
  906.   ac_cv_c_cross=yes
  907. fi
  908. fi
  909. rm -fr conftest*
  910. fi
  911. cross_compiling=$ac_cv_c_cross
  912. echo "$ac_t""$ac_cv_c_cross" 1>&6
  913.  
  914. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  915. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  916.   echo $ac_n "(cached) $ac_c" 1>&6
  917. else
  918.   cat > conftest.$ac_ext <<EOF
  919. #line 920 "configure"
  920. #include "confdefs.h"
  921. #include <stdlib.h>
  922. #include <stdarg.h>
  923. #include <string.h>
  924. #include <float.h>
  925. EOF
  926. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  927. ac_err=`grep -v '^ *+' conftest.out`
  928. if test -z "$ac_err"; then
  929.   rm -rf conftest*
  930.   ac_cv_header_stdc=yes
  931. else
  932.   echo "$ac_err" >&5
  933.   rm -rf conftest*
  934.   ac_cv_header_stdc=no
  935. fi
  936. rm -f conftest*
  937.  
  938. if test $ac_cv_header_stdc = yes; then
  939.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  940. cat > conftest.$ac_ext <<EOF
  941. #line 942 "configure"
  942. #include "confdefs.h"
  943. #include <string.h>
  944. EOF
  945. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  946.   egrep "memchr" >/dev/null 2>&1; then
  947.   :
  948. else
  949.   rm -rf conftest*
  950.   ac_cv_header_stdc=no
  951. fi
  952. rm -f conftest*
  953.  
  954. fi
  955.  
  956. if test $ac_cv_header_stdc = yes; then
  957.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  958. cat > conftest.$ac_ext <<EOF
  959. #line 960 "configure"
  960. #include "confdefs.h"
  961. #include <stdlib.h>
  962. EOF
  963. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  964.   egrep "free" >/dev/null 2>&1; then
  965.   :
  966. else
  967.   rm -rf conftest*
  968.   ac_cv_header_stdc=no
  969. fi
  970. rm -f conftest*
  971.  
  972. fi
  973.  
  974. if test $ac_cv_header_stdc = yes; then
  975.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  976. if test "$cross_compiling" = yes; then
  977.   ac_cv_header_stdc=no
  978. else
  979. cat > conftest.$ac_ext <<EOF
  980. #line 981 "configure"
  981. #include "confdefs.h"
  982. #include <ctype.h>
  983. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  984. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  985. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  986. int main () { int i; for (i = 0; i < 256; i++)
  987. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  988. exit (0); }
  989.  
  990. EOF
  991. eval $ac_link
  992. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  993.   :
  994. else
  995.   ac_cv_header_stdc=no
  996. fi
  997. fi
  998. rm -fr conftest*
  999. fi
  1000. fi
  1001. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1002. if test $ac_cv_header_stdc = yes; then
  1003.   cat >> confdefs.h <<\EOF
  1004. #define STDC_HEADERS 1
  1005. EOF
  1006.  
  1007. fi
  1008.  
  1009. for ac_hdr in unistd.h stdlib.h string.h memory.h values.h
  1010. do
  1011. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1012. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1013. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1014.   echo $ac_n "(cached) $ac_c" 1>&6
  1015. else
  1016.   cat > conftest.$ac_ext <<EOF
  1017. #line 1018 "configure"
  1018. #include "confdefs.h"
  1019. #include <$ac_hdr>
  1020. EOF
  1021. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1022. ac_err=`grep -v '^ *+' conftest.out`
  1023. if test -z "$ac_err"; then
  1024.   rm -rf conftest*
  1025.   eval "ac_cv_header_$ac_safe=yes"
  1026. else
  1027.   echo "$ac_err" >&5
  1028.   rm -rf conftest*
  1029.   eval "ac_cv_header_$ac_safe=no"
  1030. fi
  1031. rm -f conftest*
  1032. fi
  1033. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1034.   echo "$ac_t""yes" 1>&6
  1035.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1036.   cat >> confdefs.h <<EOF
  1037. #define $ac_tr_hdr 1
  1038. EOF
  1039.  
  1040. else
  1041.   echo "$ac_t""no" 1>&6
  1042. fi
  1043. done
  1044.  
  1045.  
  1046.  
  1047.  
  1048. for ac_hdr in sys/param.h sys/mount.h sys/vfs.h sys/filsys.h fcntl.h
  1049. do
  1050. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1051. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1052. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1053.   echo $ac_n "(cached) $ac_c" 1>&6
  1054. else
  1055.   cat > conftest.$ac_ext <<EOF
  1056. #line 1057 "configure"
  1057. #include "confdefs.h"
  1058. #include <$ac_hdr>
  1059. EOF
  1060. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1061. ac_err=`grep -v '^ *+' conftest.out`
  1062. if test -z "$ac_err"; then
  1063.   rm -rf conftest*
  1064.   eval "ac_cv_header_$ac_safe=yes"
  1065. else
  1066.   echo "$ac_err" >&5
  1067.   rm -rf conftest*
  1068.   eval "ac_cv_header_$ac_safe=no"
  1069. fi
  1070. rm -f conftest*
  1071. fi
  1072. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1073.   echo "$ac_t""yes" 1>&6
  1074.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1075.   cat >> confdefs.h <<EOF
  1076. #define $ac_tr_hdr 1
  1077. EOF
  1078.  
  1079. else
  1080.   echo "$ac_t""no" 1>&6
  1081. fi
  1082. done
  1083.  
  1084. for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h
  1085. do
  1086. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1087. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1088. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1089.   echo $ac_n "(cached) $ac_c" 1>&6
  1090. else
  1091.   cat > conftest.$ac_ext <<EOF
  1092. #line 1093 "configure"
  1093. #include "confdefs.h"
  1094. #include <$ac_hdr>
  1095. EOF
  1096. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1097. ac_err=`grep -v '^ *+' conftest.out`
  1098. if test -z "$ac_err"; then
  1099.   rm -rf conftest*
  1100.   eval "ac_cv_header_$ac_safe=yes"
  1101. else
  1102.   echo "$ac_err" >&5
  1103.   rm -rf conftest*
  1104.   eval "ac_cv_header_$ac_safe=no"
  1105. fi
  1106. rm -f conftest*
  1107. fi
  1108. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1109.   echo "$ac_t""yes" 1>&6
  1110.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1111.   cat >> confdefs.h <<EOF
  1112. #define $ac_tr_hdr 1
  1113. EOF
  1114.  
  1115. else
  1116.   echo "$ac_t""no" 1>&6
  1117. fi
  1118. done
  1119.  
  1120.  
  1121.  
  1122.  
  1123. ac_header_dirent=no
  1124. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1125. do
  1126. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1127. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1128. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1129.   echo $ac_n "(cached) $ac_c" 1>&6
  1130. else
  1131.   cat > conftest.$ac_ext <<EOF
  1132. #line 1133 "configure"
  1133. #include "confdefs.h"
  1134. #include <sys/types.h>
  1135. #include <$ac_hdr>
  1136. int main() { return 0; }
  1137. int t() {
  1138. DIR *dirp = 0;
  1139. ; return 0; }
  1140. EOF
  1141. if eval $ac_compile; then
  1142.   rm -rf conftest*
  1143.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1144. else
  1145.   rm -rf conftest*
  1146.   eval "ac_cv_header_dirent_$ac_safe=no"
  1147. fi
  1148. rm -f conftest*
  1149.  
  1150. fi
  1151. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1152.   echo "$ac_t""yes" 1>&6
  1153.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1154.   cat >> confdefs.h <<EOF
  1155. #define $ac_tr_hdr 1
  1156. EOF
  1157.  ac_header_dirent=$ac_hdr; break
  1158. else
  1159.   echo "$ac_t""no" 1>&6
  1160. fi
  1161. done
  1162. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1163. if test $ac_header_dirent = dirent.h; then
  1164. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1165. if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then
  1166.   echo $ac_n "(cached) $ac_c" 1>&6
  1167. else
  1168.   ac_save_LIBS="$LIBS"
  1169. LIBS="-ldir  $LIBS"
  1170. cat > conftest.$ac_ext <<EOF
  1171. #line 1172 "configure"
  1172. #include "confdefs.h"
  1173.  
  1174. int main() { return 0; }
  1175. int t() {
  1176. opendir()
  1177. ; return 0; }
  1178. EOF
  1179. if eval $ac_link; then
  1180.   rm -rf conftest*
  1181.   eval "ac_cv_lib_dir=yes"
  1182. else
  1183.   rm -rf conftest*
  1184.   eval "ac_cv_lib_dir=no"
  1185. fi
  1186. rm -f conftest*
  1187. LIBS="$ac_save_LIBS"
  1188.  
  1189. fi
  1190. if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
  1191.   echo "$ac_t""yes" 1>&6
  1192.   LIBS="$LIBS -ldir"
  1193. else
  1194.   echo "$ac_t""no" 1>&6
  1195. fi
  1196.  
  1197. else
  1198. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1199. if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then
  1200.   echo $ac_n "(cached) $ac_c" 1>&6
  1201. else
  1202.   ac_save_LIBS="$LIBS"
  1203. LIBS="-lx  $LIBS"
  1204. cat > conftest.$ac_ext <<EOF
  1205. #line 1206 "configure"
  1206. #include "confdefs.h"
  1207.  
  1208. int main() { return 0; }
  1209. int t() {
  1210. opendir()
  1211. ; return 0; }
  1212. EOF
  1213. if eval $ac_link; then
  1214.   rm -rf conftest*
  1215.   eval "ac_cv_lib_x=yes"
  1216. else
  1217.   rm -rf conftest*
  1218.   eval "ac_cv_lib_x=no"
  1219. fi
  1220. rm -f conftest*
  1221. LIBS="$ac_save_LIBS"
  1222.  
  1223. fi
  1224. if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
  1225.   echo "$ac_t""yes" 1>&6
  1226.   LIBS="$LIBS -lx"
  1227. else
  1228.   echo "$ac_t""no" 1>&6
  1229. fi
  1230.  
  1231. fi
  1232.  
  1233.  
  1234.  
  1235.  
  1236. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1237. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1238.   echo $ac_n "(cached) $ac_c" 1>&6
  1239. else
  1240.   cat > conftest.$ac_ext <<EOF
  1241. #line 1242 "configure"
  1242. #include "confdefs.h"
  1243.  
  1244. int main() { return 0; }
  1245. int t() {
  1246.  
  1247. /* Ultrix mips cc rejects this.  */
  1248. typedef int charset[2]; const charset x;
  1249. /* SunOS 4.1.1 cc rejects this.  */
  1250. char const *const *ccp;
  1251. char **p;
  1252. /* NEC SVR4.0.2 mips cc rejects this.  */
  1253. struct point {int x, y;};
  1254. static struct point const zero;
  1255. /* AIX XL C 1.02.0.0 rejects this.
  1256.    It does not let you subtract one const X* pointer from another in an arm
  1257.    of an if-expression whose if-part is not a constant expression */
  1258. const char *g = "string";
  1259. ccp = &g + (g ? g-g : 0);
  1260. /* HPUX 7.0 cc rejects these. */
  1261. ++ccp;
  1262. p = (char**) ccp;
  1263. ccp = (char const *const *) p;
  1264. { /* SCO 3.2v4 cc rejects this.  */
  1265.   char *t;
  1266.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1267.  
  1268.   *t++ = 0;
  1269. }
  1270. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1271.   int x[] = {25, 17};
  1272.   const int *foo = &x[0];
  1273.   ++foo;
  1274. }
  1275. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1276.   typedef const int *iptr;
  1277.   iptr p = 0;
  1278.   ++p;
  1279. }
  1280. { /* AIX XL C 1.02.0.0 rejects this saying
  1281.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1282.   struct s { int j; const int *ap[3]; };
  1283.   struct s *b; b->j = 5;
  1284. }
  1285. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1286.   const int foo = 10;
  1287. }
  1288.  
  1289. ; return 0; }
  1290. EOF
  1291. if eval $ac_compile; then
  1292.   rm -rf conftest*
  1293.   ac_cv_c_const=yes
  1294. else
  1295.   rm -rf conftest*
  1296.   ac_cv_c_const=no
  1297. fi
  1298. rm -f conftest*
  1299.  
  1300. fi
  1301. echo "$ac_t""$ac_cv_c_const" 1>&6
  1302. if test $ac_cv_c_const = no; then
  1303.   cat >> confdefs.h <<\EOF
  1304. #define const 
  1305. EOF
  1306.  
  1307. fi
  1308.  
  1309.  
  1310.  
  1311.  
  1312. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1313. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1314.   echo $ac_n "(cached) $ac_c" 1>&6
  1315. else
  1316.   cat > conftest.$ac_ext <<EOF
  1317. #line 1318 "configure"
  1318. #include "confdefs.h"
  1319. #include <sys/types.h>
  1320. #include <signal.h>
  1321. #ifdef signal
  1322. #undef signal
  1323. #endif
  1324. #ifdef __cplusplus
  1325. extern "C"
  1326. #endif
  1327. void (*signal ()) ();
  1328. int main() { return 0; }
  1329. int t() {
  1330. int i;
  1331. ; return 0; }
  1332. EOF
  1333. if eval $ac_compile; then
  1334.   rm -rf conftest*
  1335.   ac_cv_type_signal=void
  1336. else
  1337.   rm -rf conftest*
  1338.   ac_cv_type_signal=int
  1339. fi
  1340. rm -f conftest*
  1341.  
  1342. fi
  1343. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1344. cat >> confdefs.h <<EOF
  1345. #define RETSIGTYPE $ac_cv_type_signal
  1346. EOF
  1347.  
  1348.  
  1349. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1350. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1351.   echo $ac_n "(cached) $ac_c" 1>&6
  1352. else
  1353.   cat > conftest.$ac_ext <<EOF
  1354. #line 1355 "configure"
  1355. #include "confdefs.h"
  1356. #include <sys/types.h>
  1357. #if STDC_HEADERS
  1358. #include <stdlib.h>
  1359. #endif
  1360. EOF
  1361. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1362.   egrep "pid_t" >/dev/null 2>&1; then
  1363.   rm -rf conftest*
  1364.   ac_cv_type_pid_t=yes
  1365. else
  1366.   rm -rf conftest*
  1367.   ac_cv_type_pid_t=no
  1368. fi
  1369. rm -f conftest*
  1370.  
  1371. fi
  1372. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1373. if test $ac_cv_type_pid_t = no; then
  1374.   cat >> confdefs.h <<\EOF
  1375. #define pid_t int
  1376. EOF
  1377.  
  1378. fi
  1379.  
  1380. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1381. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1382.   echo $ac_n "(cached) $ac_c" 1>&6
  1383. else
  1384.   cat > conftest.$ac_ext <<EOF
  1385. #line 1386 "configure"
  1386. #include "confdefs.h"
  1387. #include <sys/types.h>
  1388. EOF
  1389. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1390.   egrep "uid_t" >/dev/null 2>&1; then
  1391.   rm -rf conftest*
  1392.   ac_cv_type_uid_t=yes
  1393. else
  1394.   rm -rf conftest*
  1395.   ac_cv_type_uid_t=no
  1396. fi
  1397. rm -f conftest*
  1398.  
  1399. fi
  1400. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1401. if test $ac_cv_type_uid_t = no; then
  1402.   cat >> confdefs.h <<\EOF
  1403. #define uid_t int
  1404. EOF
  1405.  
  1406.   cat >> confdefs.h <<\EOF
  1407. #define gid_t int
  1408. EOF
  1409.  
  1410. fi
  1411.  
  1412. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  1413. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  1414.   echo $ac_n "(cached) $ac_c" 1>&6
  1415. else
  1416.   cat > conftest.$ac_ext <<EOF
  1417. #line 1418 "configure"
  1418. #include "confdefs.h"
  1419. #include <sys/types.h>
  1420. #if STDC_HEADERS
  1421. #include <stdlib.h>
  1422. #endif
  1423. EOF
  1424. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1425.   egrep "mode_t" >/dev/null 2>&1; then
  1426.   rm -rf conftest*
  1427.   ac_cv_type_mode_t=yes
  1428. else
  1429.   rm -rf conftest*
  1430.   ac_cv_type_mode_t=no
  1431. fi
  1432. rm -f conftest*
  1433.  
  1434. fi
  1435. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  1436. if test $ac_cv_type_mode_t = no; then
  1437.   cat >> confdefs.h <<\EOF
  1438. #define mode_t int
  1439. EOF
  1440.  
  1441. fi
  1442.  
  1443. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1444. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1445.   echo $ac_n "(cached) $ac_c" 1>&6
  1446. else
  1447.   cat > conftest.$ac_ext <<EOF
  1448. #line 1449 "configure"
  1449. #include "confdefs.h"
  1450. #include <sys/types.h>
  1451. #if STDC_HEADERS
  1452. #include <stdlib.h>
  1453. #endif
  1454. EOF
  1455. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1456.   egrep "size_t" >/dev/null 2>&1; then
  1457.   rm -rf conftest*
  1458.   ac_cv_type_size_t=yes
  1459. else
  1460.   rm -rf conftest*
  1461.   ac_cv_type_size_t=no
  1462. fi
  1463. rm -f conftest*
  1464.  
  1465. fi
  1466. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1467. if test $ac_cv_type_size_t = no; then
  1468.   cat >> confdefs.h <<\EOF
  1469. #define size_t unsigned
  1470. EOF
  1471.  
  1472. fi
  1473.  
  1474.  
  1475.  
  1476.  
  1477. for ac_hdr in sys/time.h
  1478. do
  1479. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1480. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1481. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1482.   echo $ac_n "(cached) $ac_c" 1>&6
  1483. else
  1484.   cat > conftest.$ac_ext <<EOF
  1485. #line 1486 "configure"
  1486. #include "confdefs.h"
  1487. #include <$ac_hdr>
  1488. EOF
  1489. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1490. ac_err=`grep -v '^ *+' conftest.out`
  1491. if test -z "$ac_err"; then
  1492.   rm -rf conftest*
  1493.   eval "ac_cv_header_$ac_safe=yes"
  1494. else
  1495.   echo "$ac_err" >&5
  1496.   rm -rf conftest*
  1497.   eval "ac_cv_header_$ac_safe=no"
  1498. fi
  1499. rm -f conftest*
  1500. fi
  1501. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1502.   echo "$ac_t""yes" 1>&6
  1503.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1504.   cat >> confdefs.h <<EOF
  1505. #define $ac_tr_hdr 1
  1506. EOF
  1507.  
  1508. else
  1509.   echo "$ac_t""no" 1>&6
  1510. fi
  1511. done
  1512.  
  1513. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1514. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1515.   echo $ac_n "(cached) $ac_c" 1>&6
  1516. else
  1517.   cat > conftest.$ac_ext <<EOF
  1518. #line 1519 "configure"
  1519. #include "confdefs.h"
  1520. #include <sys/types.h>
  1521. #include <sys/time.h>
  1522. #include <time.h>
  1523. int main() { return 0; }
  1524. int t() {
  1525. struct tm *tp;
  1526. ; return 0; }
  1527. EOF
  1528. if eval $ac_compile; then
  1529.   rm -rf conftest*
  1530.   ac_cv_header_time=yes
  1531. else
  1532.   rm -rf conftest*
  1533.   ac_cv_header_time=no
  1534. fi
  1535. rm -f conftest*
  1536.  
  1537. fi
  1538. echo "$ac_t""$ac_cv_header_time" 1>&6
  1539. if test $ac_cv_header_time = yes; then
  1540.   cat >> confdefs.h <<\EOF
  1541. #define TIME_WITH_SYS_TIME 1
  1542. EOF
  1543.  
  1544. fi
  1545.  
  1546.  
  1547.  
  1548.  
  1549. echo $ac_n "checking for long file names""... $ac_c" 1>&6
  1550. if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
  1551.   echo $ac_n "(cached) $ac_c" 1>&6
  1552. else
  1553.   ac_cv_sys_long_file_names=yes
  1554. # Test for long file names in all the places we know might matter:
  1555. #      .        the current directory, where building will happen
  1556. #      /tmp        where it might want to write temporary files
  1557. #      /var/tmp        likewise
  1558. #      /usr/tmp        likewise
  1559. #      $prefix/lib    where we will be installing things
  1560. #      $exec_prefix/lib    likewise
  1561. # eval it to expand exec_prefix.
  1562. for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
  1563.   test -d $ac_dir || continue
  1564.   test -w $ac_dir || continue # It is less confusing to not echo anything here.
  1565.   (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  1566.   (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  1567.   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  1568.   if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
  1569.     ac_cv_sys_long_file_names=no
  1570.     rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  1571.     break
  1572.   fi
  1573.   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  1574. done
  1575. fi
  1576. echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
  1577. if test $ac_cv_sys_long_file_names = yes; then
  1578.   cat >> confdefs.h <<\EOF
  1579. #define HAVE_LONG_FILE_NAMES 1
  1580. EOF
  1581.  
  1582. fi
  1583.  
  1584.  
  1585.  
  1586.  
  1587. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1588. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1589.   echo $ac_n "(cached) $ac_c" 1>&6
  1590. else
  1591.   cat > conftest.$ac_ext <<EOF
  1592. #line 1593 "configure"
  1593. #include "confdefs.h"
  1594. #include <sys/types.h>
  1595. #include <sys/stat.h>
  1596.  
  1597. #if defined(S_ISBLK) && defined(S_IFDIR)
  1598. # if S_ISBLK (S_IFDIR)
  1599. You lose.
  1600. # endif
  1601. #endif
  1602.  
  1603. #if defined(S_ISBLK) && defined(S_IFCHR)
  1604. # if S_ISBLK (S_IFCHR)
  1605. You lose.
  1606. # endif
  1607. #endif
  1608.  
  1609. #if defined(S_ISLNK) && defined(S_IFREG)
  1610. # if S_ISLNK (S_IFREG)
  1611. You lose.
  1612. # endif
  1613. #endif
  1614.  
  1615. #if defined(S_ISSOCK) && defined(S_IFREG)
  1616. # if S_ISSOCK (S_IFREG)
  1617. You lose.
  1618. # endif
  1619. #endif
  1620.  
  1621. EOF
  1622. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1623.   egrep "You lose" >/dev/null 2>&1; then
  1624.   rm -rf conftest*
  1625.   ac_cv_header_stat_broken=yes
  1626. else
  1627.   rm -rf conftest*
  1628.   ac_cv_header_stat_broken=no
  1629. fi
  1630. rm -f conftest*
  1631.  
  1632. fi
  1633. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1634. if test $ac_cv_header_stat_broken = yes; then
  1635.   cat >> confdefs.h <<\EOF
  1636. #define STAT_MACROS_BROKEN 1
  1637. EOF
  1638.  
  1639. fi
  1640.  
  1641.  
  1642.  
  1643.  
  1644. for ac_func in lstat
  1645. do
  1646. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1647. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1648.   echo $ac_n "(cached) $ac_c" 1>&6
  1649. else
  1650.   cat > conftest.$ac_ext <<EOF
  1651. #line 1652 "configure"
  1652. #include "confdefs.h"
  1653. /* System header to define __stub macros and hopefully few prototypes,
  1654.     which can conflict with char $ac_func(); below.  */
  1655. #include <assert.h>
  1656. /* Override any gcc2 internal prototype to avoid an error.  */
  1657. char $ac_func(); 
  1658.  
  1659. int main() { return 0; }
  1660. int t() {
  1661.  
  1662. /* The GNU C library defines this for functions which it implements
  1663.     to always fail with ENOSYS.  Some functions are actually named
  1664.     something starting with __ and the normal name is an alias.  */
  1665. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1666. choke me
  1667. #else
  1668. $ac_func();
  1669. #endif
  1670.  
  1671. ; return 0; }
  1672. EOF
  1673. if eval $ac_link; then
  1674.   rm -rf conftest*
  1675.   eval "ac_cv_func_$ac_func=yes"
  1676. else
  1677.   rm -rf conftest*
  1678.   eval "ac_cv_func_$ac_func=no"
  1679. fi
  1680. rm -f conftest*
  1681.  
  1682. fi
  1683. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1684.   echo "$ac_t""yes" 1>&6
  1685.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1686.   cat >> confdefs.h <<EOF
  1687. #define $ac_tr_func 1
  1688. EOF
  1689.  
  1690. else
  1691.   echo "$ac_t""no" 1>&6
  1692. fi
  1693. done
  1694.  
  1695.  
  1696.  
  1697.  
  1698. for ac_func in strerror
  1699. do
  1700. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1701. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1702.   echo $ac_n "(cached) $ac_c" 1>&6
  1703. else
  1704.   cat > conftest.$ac_ext <<EOF
  1705. #line 1706 "configure"
  1706. #include "confdefs.h"
  1707. /* System header to define __stub macros and hopefully few prototypes,
  1708.     which can conflict with char $ac_func(); below.  */
  1709. #include <assert.h>
  1710. /* Override any gcc2 internal prototype to avoid an error.  */
  1711. char $ac_func(); 
  1712.  
  1713. int main() { return 0; }
  1714. int t() {
  1715.  
  1716. /* The GNU C library defines this for functions which it implements
  1717.     to always fail with ENOSYS.  Some functions are actually named
  1718.     something starting with __ and the normal name is an alias.  */
  1719. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1720. choke me
  1721. #else
  1722. $ac_func();
  1723. #endif
  1724.  
  1725. ; return 0; }
  1726. EOF
  1727. if eval $ac_link; then
  1728.   rm -rf conftest*
  1729.   eval "ac_cv_func_$ac_func=yes"
  1730. else
  1731.   rm -rf conftest*
  1732.   eval "ac_cv_func_$ac_func=no"
  1733. fi
  1734. rm -f conftest*
  1735.  
  1736. fi
  1737. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1738.   echo "$ac_t""yes" 1>&6
  1739.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1740.   cat >> confdefs.h <<EOF
  1741. #define $ac_tr_func 1
  1742. EOF
  1743.  
  1744. else
  1745.   echo "$ac_t""no" 1>&6
  1746. fi
  1747. done
  1748.  
  1749.  
  1750.  
  1751.  
  1752. for ac_func in strcasecmp
  1753. do
  1754. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1755. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1756.   echo $ac_n "(cached) $ac_c" 1>&6
  1757. else
  1758.   cat > conftest.$ac_ext <<EOF
  1759. #line 1760 "configure"
  1760. #include "confdefs.h"
  1761. /* System header to define __stub macros and hopefully few prototypes,
  1762.     which can conflict with char $ac_func(); below.  */
  1763. #include <assert.h>
  1764. /* Override any gcc2 internal prototype to avoid an error.  */
  1765. char $ac_func(); 
  1766.  
  1767. int main() { return 0; }
  1768. int t() {
  1769.  
  1770. /* The GNU C library defines this for functions which it implements
  1771.     to always fail with ENOSYS.  Some functions are actually named
  1772.     something starting with __ and the normal name is an alias.  */
  1773. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1774. choke me
  1775. #else
  1776. $ac_func();
  1777. #endif
  1778.  
  1779. ; return 0; }
  1780. EOF
  1781. if eval $ac_link; then
  1782.   rm -rf conftest*
  1783.   eval "ac_cv_func_$ac_func=yes"
  1784. else
  1785.   rm -rf conftest*
  1786.   eval "ac_cv_func_$ac_func=no"
  1787. fi
  1788. rm -f conftest*
  1789.  
  1790. fi
  1791. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1792.   echo "$ac_t""yes" 1>&6
  1793.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1794.   cat >> confdefs.h <<EOF
  1795. #define $ac_tr_func 1
  1796. EOF
  1797.  
  1798. else
  1799.   echo "$ac_t""no" 1>&6
  1800. fi
  1801. done
  1802.  
  1803.  
  1804.  
  1805.  
  1806. for ac_func in strncasecmp
  1807. do
  1808. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1809. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1810.   echo $ac_n "(cached) $ac_c" 1>&6
  1811. else
  1812.   cat > conftest.$ac_ext <<EOF
  1813. #line 1814 "configure"
  1814. #include "confdefs.h"
  1815. /* System header to define __stub macros and hopefully few prototypes,
  1816.     which can conflict with char $ac_func(); below.  */
  1817. #include <assert.h>
  1818. /* Override any gcc2 internal prototype to avoid an error.  */
  1819. char $ac_func(); 
  1820.  
  1821. int main() { return 0; }
  1822. int t() {
  1823.  
  1824. /* The GNU C library defines this for functions which it implements
  1825.     to always fail with ENOSYS.  Some functions are actually named
  1826.     something starting with __ and the normal name is an alias.  */
  1827. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1828. choke me
  1829. #else
  1830. $ac_func();
  1831. #endif
  1832.  
  1833. ; return 0; }
  1834. EOF
  1835. if eval $ac_link; then
  1836.   rm -rf conftest*
  1837.   eval "ac_cv_func_$ac_func=yes"
  1838. else
  1839.   rm -rf conftest*
  1840.   eval "ac_cv_func_$ac_func=no"
  1841. fi
  1842. rm -f conftest*
  1843.  
  1844. fi
  1845. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1846.   echo "$ac_t""yes" 1>&6
  1847.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1848.   cat >> confdefs.h <<EOF
  1849. #define $ac_tr_func 1
  1850. EOF
  1851.  
  1852. else
  1853.   echo "$ac_t""no" 1>&6
  1854. fi
  1855. done
  1856.  
  1857.  
  1858.  
  1859.  
  1860. for ac_func in strstr
  1861. do
  1862. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1863. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1864.   echo $ac_n "(cached) $ac_c" 1>&6
  1865. else
  1866.   cat > conftest.$ac_ext <<EOF
  1867. #line 1868 "configure"
  1868. #include "confdefs.h"
  1869. /* System header to define __stub macros and hopefully few prototypes,
  1870.     which can conflict with char $ac_func(); below.  */
  1871. #include <assert.h>
  1872. /* Override any gcc2 internal prototype to avoid an error.  */
  1873. char $ac_func(); 
  1874.  
  1875. int main() { return 0; }
  1876. int t() {
  1877.  
  1878. /* The GNU C library defines this for functions which it implements
  1879.     to always fail with ENOSYS.  Some functions are actually named
  1880.     something starting with __ and the normal name is an alias.  */
  1881. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1882. choke me
  1883. #else
  1884. $ac_func();
  1885. #endif
  1886.  
  1887. ; return 0; }
  1888. EOF
  1889. if eval $ac_link; then
  1890.   rm -rf conftest*
  1891.   eval "ac_cv_func_$ac_func=yes"
  1892. else
  1893.   rm -rf conftest*
  1894.   eval "ac_cv_func_$ac_func=no"
  1895. fi
  1896. rm -f conftest*
  1897.  
  1898. fi
  1899. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1900.   echo "$ac_t""yes" 1>&6
  1901.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1902.   cat >> confdefs.h <<EOF
  1903. #define $ac_tr_func 1
  1904. EOF
  1905.  
  1906. else
  1907.   echo "$ac_t""no" 1>&6
  1908. fi
  1909. done
  1910.  
  1911.  
  1912.  
  1913.  
  1914. for ac_func in memmove
  1915. do
  1916. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1917. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1918.   echo $ac_n "(cached) $ac_c" 1>&6
  1919. else
  1920.   cat > conftest.$ac_ext <<EOF
  1921. #line 1922 "configure"
  1922. #include "confdefs.h"
  1923. /* System header to define __stub macros and hopefully few prototypes,
  1924.     which can conflict with char $ac_func(); below.  */
  1925. #include <assert.h>
  1926. /* Override any gcc2 internal prototype to avoid an error.  */
  1927. char $ac_func(); 
  1928.  
  1929. int main() { return 0; }
  1930. int t() {
  1931.  
  1932. /* The GNU C library defines this for functions which it implements
  1933.     to always fail with ENOSYS.  Some functions are actually named
  1934.     something starting with __ and the normal name is an alias.  */
  1935. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1936. choke me
  1937. #else
  1938. $ac_func();
  1939. #endif
  1940.  
  1941. ; return 0; }
  1942. EOF
  1943. if eval $ac_link; then
  1944.   rm -rf conftest*
  1945.   eval "ac_cv_func_$ac_func=yes"
  1946. else
  1947.   rm -rf conftest*
  1948.   eval "ac_cv_func_$ac_func=no"
  1949. fi
  1950. rm -f conftest*
  1951.  
  1952. fi
  1953. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1954.   echo "$ac_t""yes" 1>&6
  1955.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1956.   cat >> confdefs.h <<EOF
  1957. #define $ac_tr_func 1
  1958. EOF
  1959.  
  1960. else
  1961.   echo "$ac_t""no" 1>&6
  1962. fi
  1963. done
  1964.  
  1965.  
  1966.  
  1967.  
  1968. for ac_func in putenv
  1969. do
  1970. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1971. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1972.   echo $ac_n "(cached) $ac_c" 1>&6
  1973. else
  1974.   cat > conftest.$ac_ext <<EOF
  1975. #line 1976 "configure"
  1976. #include "confdefs.h"
  1977. /* System header to define __stub macros and hopefully few prototypes,
  1978.     which can conflict with char $ac_func(); below.  */
  1979. #include <assert.h>
  1980. /* Override any gcc2 internal prototype to avoid an error.  */
  1981. char $ac_func(); 
  1982.  
  1983. int main() { return 0; }
  1984. int t() {
  1985.  
  1986. /* The GNU C library defines this for functions which it implements
  1987.     to always fail with ENOSYS.  Some functions are actually named
  1988.     something starting with __ and the normal name is an alias.  */
  1989. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1990. choke me
  1991. #else
  1992. $ac_func();
  1993. #endif
  1994.  
  1995. ; return 0; }
  1996. EOF
  1997. if eval $ac_link; then
  1998.   rm -rf conftest*
  1999.   eval "ac_cv_func_$ac_func=yes"
  2000. else
  2001.   rm -rf conftest*
  2002.   eval "ac_cv_func_$ac_func=no"
  2003. fi
  2004. rm -f conftest*
  2005.  
  2006. fi
  2007. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2008.   echo "$ac_t""yes" 1>&6
  2009.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  2010.   cat >> confdefs.h <<EOF
  2011. #define $ac_tr_func 1
  2012. EOF
  2013.  
  2014. else
  2015.   echo "$ac_t""no" 1>&6
  2016. fi
  2017. done
  2018.  
  2019.  
  2020.  
  2021.  
  2022. for ac_func in getcwd
  2023. do
  2024. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2025. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2026.   echo $ac_n "(cached) $ac_c" 1>&6
  2027. else
  2028.   cat > conftest.$ac_ext <<EOF
  2029. #line 2030 "configure"
  2030. #include "confdefs.h"
  2031. /* System header to define __stub macros and hopefully few prototypes,
  2032.     which can conflict with char $ac_func(); below.  */
  2033. #include <assert.h>
  2034. /* Override any gcc2 internal prototype to avoid an error.  */
  2035. char $ac_func(); 
  2036.  
  2037. int main() { return 0; }
  2038. int t() {
  2039.  
  2040. /* The GNU C library defines this for functions which it implements
  2041.     to always fail with ENOSYS.  Some functions are actually named
  2042.     something starting with __ and the normal name is an alias.  */
  2043. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2044. choke me
  2045. #else
  2046. $ac_func();
  2047. #endif
  2048.  
  2049. ; return 0; }
  2050. EOF
  2051. if eval $ac_link; then
  2052.   rm -rf conftest*
  2053.   eval "ac_cv_func_$ac_func=yes"
  2054. else
  2055.   rm -rf conftest*
  2056.   eval "ac_cv_func_$ac_func=no"
  2057. fi
  2058. rm -f conftest*
  2059.  
  2060. fi
  2061. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2062.   echo "$ac_t""yes" 1>&6
  2063.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  2064.   cat >> confdefs.h <<EOF
  2065. #define $ac_tr_func 1
  2066. EOF
  2067.  
  2068. else
  2069.   echo "$ac_t""no" 1>&6
  2070. fi
  2071. done
  2072.  
  2073.  
  2074.  
  2075.  
  2076. echo "checking how to get filesystem space usage" 1>&6
  2077. space=no
  2078.  
  2079. # Here we'll compromise a little (and perform only the link test)
  2080. # since it seems there are no variants of the statvfs function.
  2081. if test $space = no; then
  2082.   # SVR4
  2083.   for ac_func in statvfs
  2084. do
  2085. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2086. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2087.   echo $ac_n "(cached) $ac_c" 1>&6
  2088. else
  2089.   cat > conftest.$ac_ext <<EOF
  2090. #line 2091 "configure"
  2091. #include "confdefs.h"
  2092. /* System header to define __stub macros and hopefully few prototypes,
  2093.     which can conflict with char $ac_func(); below.  */
  2094. #include <assert.h>
  2095. /* Override any gcc2 internal prototype to avoid an error.  */
  2096. char $ac_func(); 
  2097.  
  2098. int main() { return 0; }
  2099. int t() {
  2100.  
  2101. /* The GNU C library defines this for functions which it implements
  2102.     to always fail with ENOSYS.  Some functions are actually named
  2103.     something starting with __ and the normal name is an alias.  */
  2104. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2105. choke me
  2106. #else
  2107. $ac_func();
  2108. #endif
  2109.  
  2110. ; return 0; }
  2111. EOF
  2112. if eval $ac_link; then
  2113.   rm -rf conftest*
  2114.   eval "ac_cv_func_$ac_func=yes"
  2115. else
  2116.   rm -rf conftest*
  2117.   eval "ac_cv_func_$ac_func=no"
  2118. fi
  2119. rm -f conftest*
  2120.  
  2121. fi
  2122. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2123.   echo "$ac_t""yes" 1>&6
  2124.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  2125.   cat >> confdefs.h <<EOF
  2126. #define $ac_tr_func 1
  2127. EOF
  2128.  
  2129. else
  2130.   echo "$ac_t""no" 1>&6
  2131. fi
  2132. done
  2133.  
  2134.   if test $ac_cv_func_statvfs = yes; then
  2135.     space=yes
  2136.     cat >> confdefs.h <<\EOF
  2137. #define STAT_STATVFS 1
  2138. EOF
  2139.  
  2140.   fi
  2141. fi
  2142.  
  2143. if test $space = no; then
  2144.   # DEC Alpha running OSF/1
  2145.   echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
  2146.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
  2147.   echo $ac_n "(cached) $ac_c" 1>&6
  2148. else
  2149.   if test "$cross_compiling" = yes; then
  2150.   fu_cv_sys_stat_statfs3_osf1=no
  2151. else
  2152. cat > conftest.$ac_ext <<EOF
  2153. #line 2154 "configure"
  2154. #include "confdefs.h"
  2155.  
  2156. #include <sys/param.h>
  2157. #include <sys/types.h>
  2158. #include <sys/mount.h>
  2159.   main ()
  2160.   {
  2161.     struct statfs fsd;
  2162.     fsd.f_fsize = 0;
  2163.     exit (statfs (".", &fsd, sizeof (struct statfs)));
  2164.   }
  2165. EOF
  2166. eval $ac_link
  2167. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2168.   fu_cv_sys_stat_statfs3_osf1=yes
  2169. else
  2170.   fu_cv_sys_stat_statfs3_osf1=no
  2171. fi
  2172. fi
  2173. rm -fr conftest*
  2174. fi
  2175.  
  2176.   echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
  2177.   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
  2178.     space=yes
  2179.     cat >> confdefs.h <<\EOF
  2180. #define STAT_STATFS3_OSF1 1
  2181. EOF
  2182.  
  2183.   fi
  2184. fi
  2185.  
  2186. if test $space = no; then
  2187. # AIX
  2188.   echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
  2189.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
  2190.   echo $ac_n "(cached) $ac_c" 1>&6
  2191. else
  2192.   if test "$cross_compiling" = yes; then
  2193.   fu_cv_sys_stat_statfs2_bsize=no
  2194. else
  2195. cat > conftest.$ac_ext <<EOF
  2196. #line 2197 "configure"
  2197. #include "confdefs.h"
  2198.  
  2199. #ifdef HAVE_SYS_PARAM_H
  2200. #include <sys/param.h>
  2201. #endif
  2202. #ifdef HAVE_SYS_MOUNT_H
  2203. #include <sys/mount.h>
  2204. #endif
  2205. #ifdef HAVE_SYS_VFS_H
  2206. #include <sys/vfs.h>
  2207. #endif
  2208.   main ()
  2209.   {
  2210.   struct statfs fsd;
  2211.   fsd.f_bsize = 0;
  2212.   exit (statfs (".", &fsd));
  2213.   }
  2214. EOF
  2215. eval $ac_link
  2216. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2217.   fu_cv_sys_stat_statfs2_bsize=yes
  2218. else
  2219.   fu_cv_sys_stat_statfs2_bsize=no
  2220. fi
  2221. fi
  2222. rm -fr conftest*
  2223. fi
  2224.  
  2225.   echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
  2226.   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
  2227.     space=yes
  2228.     cat >> confdefs.h <<\EOF
  2229. #define STAT_STATFS2_BSIZE 1
  2230. EOF
  2231.  
  2232.   fi
  2233. fi
  2234.  
  2235. if test $space = no; then
  2236. # SVR3
  2237.   echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
  2238.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
  2239.   echo $ac_n "(cached) $ac_c" 1>&6
  2240. else
  2241.   if test "$cross_compiling" = yes; then
  2242.   fu_cv_sys_stat_statfs4=no
  2243. else
  2244. cat > conftest.$ac_ext <<EOF
  2245. #line 2246 "configure"
  2246. #include "confdefs.h"
  2247. #include <sys/types.h>
  2248. #include <sys/statfs.h>
  2249.   main ()
  2250.   {
  2251.   struct statfs fsd;
  2252.   exit (statfs (".", &fsd, sizeof fsd, 0));
  2253.   }
  2254. EOF
  2255. eval $ac_link
  2256. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2257.   fu_cv_sys_stat_statfs4=yes
  2258. else
  2259.   fu_cv_sys_stat_statfs4=no
  2260. fi
  2261. fi
  2262. rm -fr conftest*
  2263. fi
  2264.  
  2265.   echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
  2266.   if test $fu_cv_sys_stat_statfs4 = yes; then
  2267.     space=yes
  2268.     cat >> confdefs.h <<\EOF
  2269. #define STAT_STATFS4 1
  2270. EOF
  2271.  
  2272.   fi
  2273. fi
  2274.  
  2275. if test $space = no; then
  2276. # 4.4BSD and NetBSD
  2277.   echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
  2278.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
  2279.   echo $ac_n "(cached) $ac_c" 1>&6
  2280. else
  2281.   if test "$cross_compiling" = yes; then
  2282.   fu_cv_sys_stat_statfs2_fsize=no
  2283. else
  2284. cat > conftest.$ac_ext <<EOF
  2285. #line 2286 "configure"
  2286. #include "confdefs.h"
  2287. #include <sys/types.h>
  2288. #ifdef HAVE_SYS_PARAM_H
  2289. #include <sys/param.h>
  2290. #endif
  2291. #ifdef HAVE_SYS_MOUNT_H
  2292. #include <sys/mount.h>
  2293. #endif
  2294.   main ()
  2295.   {
  2296.   struct statfs fsd;
  2297.   fsd.f_fsize = 0;
  2298.   exit (statfs (".", &fsd));
  2299.   }
  2300. EOF
  2301. eval $ac_link
  2302. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2303.   fu_cv_sys_stat_statfs2_fsize=yes
  2304. else
  2305.   fu_cv_sys_stat_statfs2_fsize=no
  2306. fi
  2307. fi
  2308. rm -fr conftest*
  2309. fi
  2310.  
  2311.   echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
  2312.   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
  2313.     space=yes
  2314.     cat >> confdefs.h <<\EOF
  2315. #define STAT_STATFS2_FSIZE 1
  2316. EOF
  2317.  
  2318.   fi
  2319. fi
  2320.  
  2321. if test $space = no; then
  2322.   # Ultrix
  2323.   echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
  2324.   if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
  2325.   echo $ac_n "(cached) $ac_c" 1>&6
  2326. else
  2327.   if test "$cross_compiling" = yes; then
  2328.   fu_cv_sys_stat_fs_data=no
  2329. else
  2330. cat > conftest.$ac_ext <<EOF
  2331. #line 2332 "configure"
  2332. #include "confdefs.h"
  2333. #include <sys/types.h>
  2334. #ifdef HAVE_SYS_PARAM_H
  2335. #include <sys/param.h>
  2336. #endif
  2337. #ifdef HAVE_SYS_MOUNT_H
  2338. #include <sys/mount.h>
  2339. #endif
  2340. #ifdef HAVE_SYS_FS_TYPES_H
  2341. #include <sys/fs_types.h>
  2342. #endif
  2343.   main ()
  2344.   {
  2345.   struct fs_data fsd;
  2346.   /* Ultrix's statfs returns 1 for success,
  2347.      0 for not mounted, -1 for failure.  */
  2348.   exit (statfs (".", &fsd) != 1);
  2349.   }
  2350. EOF
  2351. eval $ac_link
  2352. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2353.   fu_cv_sys_stat_fs_data=yes
  2354. else
  2355.   fu_cv_sys_stat_fs_data=no
  2356. fi
  2357. fi
  2358. rm -fr conftest*
  2359. fi
  2360.  
  2361.   echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
  2362.   if test $fu_cv_sys_stat_fs_data = yes; then
  2363.     space=yes
  2364.     cat >> confdefs.h <<\EOF
  2365. #define STAT_STATFS2_FS_DATA 1
  2366. EOF
  2367.  
  2368.   fi
  2369. fi
  2370.  
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377. echo $ac_n "checking for -lreadline""... $ac_c" 1>&6
  2378. if eval "test \"`echo '$''{'ac_cv_lib_readline'+set}'`\" = set"; then
  2379.   echo $ac_n "(cached) $ac_c" 1>&6
  2380. else
  2381.   ac_save_LIBS="$LIBS"
  2382. LIBS="-lreadline  $LIBS"
  2383. cat > conftest.$ac_ext <<EOF
  2384. #line 2385 "configure"
  2385. #include "confdefs.h"
  2386.  
  2387. int main() { return 0; }
  2388. int t() {
  2389. main()
  2390. ; return 0; }
  2391. EOF
  2392. if eval $ac_link; then
  2393.   rm -rf conftest*
  2394.   eval "ac_cv_lib_readline=yes"
  2395. else
  2396.   rm -rf conftest*
  2397.   eval "ac_cv_lib_readline=no"
  2398. fi
  2399. rm -f conftest*
  2400. LIBS="$ac_save_LIBS"
  2401.  
  2402. fi
  2403. if eval "test \"`echo '$ac_cv_lib_'readline`\" = yes"; then
  2404.   echo "$ac_t""yes" 1>&6
  2405.     ac_tr_lib=HAVE_LIB`echo readline | tr '[a-z]' '[A-Z]'`
  2406.   cat >> confdefs.h <<EOF
  2407. #define $ac_tr_lib 1
  2408. EOF
  2409.  
  2410.   LIBS="-lreadline $LIBS"
  2411.  
  2412. else
  2413.   echo "$ac_t""no" 1>&6
  2414. fi
  2415.  
  2416. echo $ac_n "checking for tilde_expand""... $ac_c" 1>&6
  2417. if eval "test \"`echo '$''{'ac_cv_func_tilde_expand'+set}'`\" = set"; then
  2418.   echo $ac_n "(cached) $ac_c" 1>&6
  2419. else
  2420.   cat > conftest.$ac_ext <<EOF
  2421. #line 2422 "configure"
  2422. #include "confdefs.h"
  2423. /* System header to define __stub macros and hopefully few prototypes,
  2424.     which can conflict with char tilde_expand(); below.  */
  2425. #include <assert.h>
  2426. /* Override any gcc2 internal prototype to avoid an error.  */
  2427. char tilde_expand(); 
  2428.  
  2429. int main() { return 0; }
  2430. int t() {
  2431.  
  2432. /* The GNU C library defines this for functions which it implements
  2433.     to always fail with ENOSYS.  Some functions are actually named
  2434.     something starting with __ and the normal name is an alias.  */
  2435. #if defined (__stub_tilde_expand) || defined (__stub___tilde_expand)
  2436. choke me
  2437. #else
  2438. tilde_expand();
  2439. #endif
  2440.  
  2441. ; return 0; }
  2442. EOF
  2443. if eval $ac_link; then
  2444.   rm -rf conftest*
  2445.   eval "ac_cv_func_tilde_expand=yes"
  2446. else
  2447.   rm -rf conftest*
  2448.   eval "ac_cv_func_tilde_expand=no"
  2449. fi
  2450. rm -f conftest*
  2451.  
  2452. fi
  2453. if eval "test \"`echo '$ac_cv_func_'tilde_expand`\" = yes"; then
  2454.   echo "$ac_t""yes" 1>&6
  2455.   :
  2456. else
  2457.   echo "$ac_t""no" 1>&6
  2458. GIT_OBJS="$GIT_OBJS tilde.o"
  2459.           GITPS_OBJS="$GITPS_OBJS tilde.o"
  2460.           GITVIEW_OBJS="$GITVIEW_OBJS tilde.o"
  2461. fi
  2462.  
  2463. echo $ac_n "checking for using_history""... $ac_c" 1>&6
  2464. if eval "test \"`echo '$''{'ac_cv_func_using_history'+set}'`\" = set"; then
  2465.   echo $ac_n "(cached) $ac_c" 1>&6
  2466. else
  2467.   cat > conftest.$ac_ext <<EOF
  2468. #line 2469 "configure"
  2469. #include "confdefs.h"
  2470. /* System header to define __stub macros and hopefully few prototypes,
  2471.     which can conflict with char using_history(); below.  */
  2472. #include <assert.h>
  2473. /* Override any gcc2 internal prototype to avoid an error.  */
  2474. char using_history(); 
  2475.  
  2476. int main() { return 0; }
  2477. int t() {
  2478.  
  2479. /* The GNU C library defines this for functions which it implements
  2480.     to always fail with ENOSYS.  Some functions are actually named
  2481.     something starting with __ and the normal name is an alias.  */
  2482. #if defined (__stub_using_history) || defined (__stub___using_history)
  2483. choke me
  2484. #else
  2485. using_history();
  2486. #endif
  2487.  
  2488. ; return 0; }
  2489. EOF
  2490. if eval $ac_link; then
  2491.   rm -rf conftest*
  2492.   eval "ac_cv_func_using_history=yes"
  2493. else
  2494.   rm -rf conftest*
  2495.   eval "ac_cv_func_using_history=no"
  2496. fi
  2497. rm -f conftest*
  2498.  
  2499. fi
  2500. if eval "test \"`echo '$ac_cv_func_'using_history`\" = yes"; then
  2501.   echo "$ac_t""yes" 1>&6
  2502.   :
  2503. else
  2504.   echo "$ac_t""no" 1>&6
  2505. GIT_OBJS="$GIT_OBJS history.o"
  2506. fi
  2507.  
  2508.  
  2509.  
  2510.  
  2511. echo $ac_n "checking for struct winsz""... $ac_c" 1>&6
  2512.  
  2513. if eval "test \"`echo '$''{'git_cv_struct_winsz'+set}'`\" = set"; then
  2514.   echo $ac_n "(cached) $ac_c" 1>&6
  2515. else
  2516.   git_cv_struct_winsz="no"
  2517.     cat > conftest.$ac_ext <<EOF
  2518. #line 2519 "configure"
  2519. #include "confdefs.h"
  2520. #include <sys/types.h>
  2521.      #include <sys/ioctl.h>
  2522.      #if defined TIOCGSIZE && !defined TIOCGWINSZ
  2523.      #define TIOCGWINSZ TIOCGSIZE
  2524.      #endif
  2525. int main() { return 0; }
  2526. int t() {
  2527. {
  2528.         struct winsize winsz;
  2529.         ioctl(1, TIOCGWINSZ, &winsz);
  2530.         winsz.ws_col = winsz.ws_row;
  2531.     }
  2532. ; return 0; }
  2533. EOF
  2534. if eval $ac_link; then
  2535.   rm -rf conftest*
  2536.   git_cv_struct_winsz="yes"
  2537.     
  2538. fi
  2539. rm -f conftest*
  2540.  
  2541.  
  2542. fi
  2543.  
  2544.  
  2545. if test "$git_cv_struct_winsz" = "yes"; then
  2546.     cat >> confdefs.h <<\EOF
  2547. #define HAVE_WINSZ 1
  2548. EOF
  2549.  
  2550. fi
  2551.  
  2552. echo "$ac_t""$git_cv_struct_winsz" 1>&6
  2553.  
  2554.  
  2555.  
  2556. echo $ac_n "checking for struct utsname""... $ac_c" 1>&6
  2557.  
  2558. if eval "test \"`echo '$''{'git_cv_struct_utsname'+set}'`\" = set"; then
  2559.   echo $ac_n "(cached) $ac_c" 1>&6
  2560. else
  2561.   git_cv_struct_utsname="no"
  2562.     cat > conftest.$ac_ext <<EOF
  2563. #line 2564 "configure"
  2564. #include "confdefs.h"
  2565. #include <sys/utsname.h>
  2566. int main() { return 0; }
  2567. int t() {
  2568. {
  2569.         char *ptr;
  2570.         struct utsname u;
  2571.  
  2572.         uname(&u);
  2573.         ptr = u.nodename;
  2574.         ptr = u.sysname;
  2575.         ptr = u.machine;
  2576.         }
  2577. ; return 0; }
  2578. EOF
  2579. if eval $ac_link; then
  2580.   rm -rf conftest*
  2581.   git_cv_struct_utsname="yes"
  2582.     
  2583. fi
  2584. rm -f conftest*
  2585.  
  2586.  
  2587. fi
  2588.  
  2589.  
  2590. if test "$git_cv_struct_utsname" = "yes"; then
  2591.     cat >> confdefs.h <<\EOF
  2592. #define HAVE_UTSNAME 1
  2593. EOF
  2594.  
  2595. fi
  2596.  
  2597. echo "$ac_t""$git_cv_struct_utsname" 1>&6
  2598.  
  2599.  
  2600.  
  2601. echo $ac_n "checking for POSIX compatible terminal interface""... $ac_c" 1>&6
  2602.  
  2603. if eval "test \"`echo '$''{'git_cv_sys_posix_tty'+set}'`\" = set"; then
  2604.   echo $ac_n "(cached) $ac_c" 1>&6
  2605. else
  2606.   git_cv_sys_posix_tty="no"
  2607.     cat > conftest.$ac_ext <<EOF
  2608. #line 2609 "configure"
  2609. #include "confdefs.h"
  2610. #include <termios.h>
  2611. int main() { return 0; }
  2612. int t() {
  2613. {
  2614.         struct termios term;
  2615.  
  2616.         tcgetattr(0, &term);
  2617.     }
  2618. ; return 0; }
  2619. EOF
  2620. if eval $ac_link; then
  2621.   rm -rf conftest*
  2622.   git_cv_sys_posix_tty="yes"
  2623.     
  2624. fi
  2625. rm -f conftest*
  2626.  
  2627.  
  2628. fi
  2629.  
  2630.  
  2631. if test "$git_cv_sys_posix_tty" = "yes"; then
  2632.     cat >> confdefs.h <<\EOF
  2633. #define HAVE_POSIXTTY 1
  2634. EOF
  2635.  
  2636. fi
  2637.  
  2638. echo "$ac_t""$git_cv_sys_posix_tty" 1>&6
  2639.  
  2640.  
  2641.  
  2642. echo $ac_n "checking for System V compatible terminal interface""... $ac_c" 1>&6
  2643.  
  2644. if eval "test \"`echo '$''{'git_cv_sys_systemv_tty'+set}'`\" = set"; then
  2645.   echo $ac_n "(cached) $ac_c" 1>&6
  2646. else
  2647.   git_cv_sys_systemv_tty="no"
  2648.     cat > conftest.$ac_ext <<EOF
  2649. #line 2650 "configure"
  2650. #include "confdefs.h"
  2651. #include <termio.h>
  2652. int main() { return 0; }
  2653. int t() {
  2654. {
  2655.         struct termio term;
  2656.  
  2657.         ioctl(0, TCGETA, &term);
  2658.     }
  2659. ; return 0; }
  2660. EOF
  2661. if eval $ac_link; then
  2662.   rm -rf conftest*
  2663.   git_cv_sys_systemv_tty="yes"
  2664.     
  2665. fi
  2666. rm -f conftest*
  2667.  
  2668.  
  2669. fi
  2670.  
  2671.  
  2672. if test "$git_cv_sys_systemv_tty" = "yes"; then
  2673.     cat >> confdefs.h <<\EOF
  2674. #define HAVE_SYSTEMVTTY 1
  2675. EOF
  2676.  
  2677. fi
  2678.  
  2679. echo "$ac_t""$git_cv_sys_systemv_tty" 1>&6
  2680.  
  2681.  
  2682.  
  2683. echo $ac_n "checking for BSD compatible terminal interface""... $ac_c" 1>&6
  2684.  
  2685. if eval "test \"`echo '$''{'git_cv_sys_bsd_tty'+set}'`\" = set"; then
  2686.   echo $ac_n "(cached) $ac_c" 1>&6
  2687. else
  2688.   git_cv_sys_bsd_tty="no"
  2689.     cat > conftest.$ac_ext <<EOF
  2690. #line 2691 "configure"
  2691. #include "confdefs.h"
  2692. #include <sgtty.h>
  2693. int main() { return 0; }
  2694. int t() {
  2695. {
  2696.         struct sgttyb arg;
  2697.         struct tchars targ;
  2698.         struct ltchars ltarg;
  2699.  
  2700.         ioctl(0, TIOCGETP,&arg);
  2701.         ioctl(0, TIOCGETC,&targ);
  2702.         ioctl(0, TIOCGLTC,<arg);
  2703.     }
  2704. ; return 0; }
  2705. EOF
  2706. if eval $ac_link; then
  2707.   rm -rf conftest*
  2708.   git_cv_sys_bsd_tty="yes"
  2709.     
  2710. fi
  2711. rm -f conftest*
  2712.  
  2713.  
  2714. fi
  2715.  
  2716.  
  2717. if test "$git_cv_sys_bsd_tty" = "yes"; then
  2718.     cat >> confdefs.h <<\EOF
  2719. #define HAVE_BSDTTY 1
  2720. EOF
  2721.  
  2722. fi
  2723.  
  2724. echo "$ac_t""$git_cv_sys_bsd_tty" 1>&6
  2725.  
  2726.  
  2727.  
  2728.  
  2729. # Check whether --enable-terminfo or --disable-terminfo was given.
  2730. enableval="$enable_terminfo"
  2731. if test -n "$enableval"; then
  2732.   TERMINFO="$enableval"
  2733. else
  2734.   TERMINFO="no"
  2735. fi
  2736.  
  2737.  
  2738. if test "$host_os" = "linux"; then
  2739.     if test "$TERMINFO" = "yes"; then
  2740.     echo "configure: warning: don't use the terminfo library on Linux  systems," 1>&2
  2741.     echo "configure: warning: termcap is *MUCH* better because it has  features" 1>&2
  2742.     echo "configure: warning: that terminfo lacks. Start the 'configure' script" 1>&2
  2743.     echo "configure: warning: like this: './configure'." 1>&2
  2744.     fi
  2745. fi
  2746.  
  2747. if test "$host_os" = "HP-UX"; then
  2748.     if test "$TERMINFO" = "no"; then
  2749.     echo "configure: warning: don't use the termcap library on  HP-UX  systems," 1>&2
  2750.     echo "configure: warning: terminfo is *MUCH* better. Start the  'configure'" 1>&2
  2751.     echo "configure: warning: script like this: './configure --enable-terminfo'" 1>&2
  2752.     echo "configure: warning: or like this: 'sh configure --enable-terminfo' if" 1>&2
  2753.     echo "configure: warning: you are using an old shell (/bin/sh)." 1>&2
  2754.     fi
  2755. fi
  2756.  
  2757. if test "$TERMINFO" = "yes"; then
  2758.         echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
  2759. if eval "test \"`echo '$''{'ac_cv_lib_ncurses'+set}'`\" = set"; then
  2760.   echo $ac_n "(cached) $ac_c" 1>&6
  2761. else
  2762.   ac_save_LIBS="$LIBS"
  2763. LIBS="-lncurses  $LIBS"
  2764. cat > conftest.$ac_ext <<EOF
  2765. #line 2766 "configure"
  2766. #include "confdefs.h"
  2767.  
  2768. int main() { return 0; }
  2769. int t() {
  2770. main()
  2771. ; return 0; }
  2772. EOF
  2773. if eval $ac_link; then
  2774.   rm -rf conftest*
  2775.   eval "ac_cv_lib_ncurses=yes"
  2776. else
  2777.   rm -rf conftest*
  2778.   eval "ac_cv_lib_ncurses=no"
  2779. fi
  2780. rm -f conftest*
  2781. LIBS="$ac_save_LIBS"
  2782.  
  2783. fi
  2784. if eval "test \"`echo '$ac_cv_lib_'ncurses`\" = yes"; then
  2785.   echo "$ac_t""yes" 1>&6
  2786.   cat >> confdefs.h <<\EOF
  2787. #define HAVE_LIBTERMINFO 1
  2788. EOF
  2789.  
  2790.                  LIBS="$LIBS -lncurses"
  2791.                  TERMLIB_FOUND="yes"
  2792. else
  2793.   echo "$ac_t""no" 1>&6
  2794. echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
  2795. if eval "test \"`echo '$''{'ac_cv_lib_termlib'+set}'`\" = set"; then
  2796.   echo $ac_n "(cached) $ac_c" 1>&6
  2797. else
  2798.   ac_save_LIBS="$LIBS"
  2799. LIBS="-ltermlib  $LIBS"
  2800. cat > conftest.$ac_ext <<EOF
  2801. #line 2802 "configure"
  2802. #include "confdefs.h"
  2803.  
  2804. int main() { return 0; }
  2805. int t() {
  2806. main()
  2807. ; return 0; }
  2808. EOF
  2809. if eval $ac_link; then
  2810.   rm -rf conftest*
  2811.   eval "ac_cv_lib_termlib=yes"
  2812. else
  2813.   rm -rf conftest*
  2814.   eval "ac_cv_lib_termlib=no"
  2815. fi
  2816. rm -f conftest*
  2817. LIBS="$ac_save_LIBS"
  2818.  
  2819. fi
  2820. if eval "test \"`echo '$ac_cv_lib_'termlib`\" = yes"; then
  2821.   echo "$ac_t""yes" 1>&6
  2822.   cat >> confdefs.h <<\EOF
  2823. #define HAVE_LIBTERMINFO 1
  2824. EOF
  2825.  
  2826.                     LIBS="$LIBS -ltermlib"
  2827.                     TERMLIB_FOUND="yes"
  2828. else
  2829.   echo "$ac_t""no" 1>&6
  2830. echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  2831. if eval "test \"`echo '$''{'ac_cv_lib_curses'+set}'`\" = set"; then
  2832.   echo $ac_n "(cached) $ac_c" 1>&6
  2833. else
  2834.   ac_save_LIBS="$LIBS"
  2835. LIBS="-lcurses  $LIBS"
  2836. cat > conftest.$ac_ext <<EOF
  2837. #line 2838 "configure"
  2838. #include "confdefs.h"
  2839.  
  2840. int main() { return 0; }
  2841. int t() {
  2842. main()
  2843. ; return 0; }
  2844. EOF
  2845. if eval $ac_link; then
  2846.   rm -rf conftest*
  2847.   eval "ac_cv_lib_curses=yes"
  2848. else
  2849.   rm -rf conftest*
  2850.   eval "ac_cv_lib_curses=no"
  2851. fi
  2852. rm -f conftest*
  2853. LIBS="$ac_save_LIBS"
  2854.  
  2855. fi
  2856. if eval "test \"`echo '$ac_cv_lib_'curses`\" = yes"; then
  2857.   echo "$ac_t""yes" 1>&6
  2858.   cat >> confdefs.h <<\EOF
  2859. #define HAVE_LIBTERMINFO 1
  2860. EOF
  2861.  
  2862.                        LIBS="$LIBS -lcurses"
  2863.                        TERMLIB_FOUND="yes"
  2864. else
  2865.   echo "$ac_t""no" 1>&6
  2866. echo $ac_n "checking for -ltinfo""... $ac_c" 1>&6
  2867. if eval "test \"`echo '$''{'ac_cv_lib_tinfo'+set}'`\" = set"; then
  2868.   echo $ac_n "(cached) $ac_c" 1>&6
  2869. else
  2870.   ac_save_LIBS="$LIBS"
  2871. LIBS="-ltinfo  $LIBS"
  2872. cat > conftest.$ac_ext <<EOF
  2873. #line 2874 "configure"
  2874. #include "confdefs.h"
  2875.  
  2876. int main() { return 0; }
  2877. int t() {
  2878. main()
  2879. ; return 0; }
  2880. EOF
  2881. if eval $ac_link; then
  2882.   rm -rf conftest*
  2883.   eval "ac_cv_lib_tinfo=yes"
  2884. else
  2885.   rm -rf conftest*
  2886.   eval "ac_cv_lib_tinfo=no"
  2887. fi
  2888. rm -f conftest*
  2889. LIBS="$ac_save_LIBS"
  2890.  
  2891. fi
  2892. if eval "test \"`echo '$ac_cv_lib_'tinfo`\" = yes"; then
  2893.   echo "$ac_t""yes" 1>&6
  2894.   cat >> confdefs.h <<\EOF
  2895. #define HAVE_LIBTERMINFO 1
  2896. EOF
  2897.  
  2898.                       LIBS="$LIBS -ltinfo"
  2899.                       TERMLIB_FOUND="yes"
  2900. else
  2901.   echo "$ac_t""no" 1>&6
  2902. echo $ac_n "checking for -lterminfo""... $ac_c" 1>&6
  2903. if eval "test \"`echo '$''{'ac_cv_lib_terminfo'+set}'`\" = set"; then
  2904.   echo $ac_n "(cached) $ac_c" 1>&6
  2905. else
  2906.   ac_save_LIBS="$LIBS"
  2907. LIBS="-lterminfo  $LIBS"
  2908. cat > conftest.$ac_ext <<EOF
  2909. #line 2910 "configure"
  2910. #include "confdefs.h"
  2911.  
  2912. int main() { return 0; }
  2913. int t() {
  2914. main()
  2915. ; return 0; }
  2916. EOF
  2917. if eval $ac_link; then
  2918.   rm -rf conftest*
  2919.   eval "ac_cv_lib_terminfo=yes"
  2920. else
  2921.   rm -rf conftest*
  2922.   eval "ac_cv_lib_terminfo=no"
  2923. fi
  2924. rm -f conftest*
  2925. LIBS="$ac_save_LIBS"
  2926.  
  2927. fi
  2928. if eval "test \"`echo '$ac_cv_lib_'terminfo`\" = yes"; then
  2929.   echo "$ac_t""yes" 1>&6
  2930.   cat >> confdefs.h <<\EOF
  2931. #define HAVE_LIBTERMINFO 1
  2932. EOF
  2933.  
  2934.                          LIBS="$LIBS -lterminfo"
  2935.                          TERMLIB_FOUND="yes"
  2936. else
  2937.   echo "$ac_t""no" 1>&6
  2938. TERMLIB_FOUND="no"
  2939.             
  2940. fi
  2941.  
  2942.         
  2943. fi
  2944.  
  2945.         
  2946. fi
  2947.  
  2948.     
  2949. fi
  2950.  
  2951.     
  2952. fi
  2953.  
  2954.  
  2955.  
  2956.     if test "$TERMLIB_FOUND" = "no"; then
  2957.     echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
  2958. if eval "test \"`echo '$''{'ac_cv_lib_termcap'+set}'`\" = set"; then
  2959.   echo $ac_n "(cached) $ac_c" 1>&6
  2960. else
  2961.   ac_save_LIBS="$LIBS"
  2962. LIBS="-ltermcap  $LIBS"
  2963. cat > conftest.$ac_ext <<EOF
  2964. #line 2965 "configure"
  2965. #include "confdefs.h"
  2966.  
  2967. int main() { return 0; }
  2968. int t() {
  2969. main()
  2970. ; return 0; }
  2971. EOF
  2972. if eval $ac_link; then
  2973.   rm -rf conftest*
  2974.   eval "ac_cv_lib_termcap=yes"
  2975. else
  2976.   rm -rf conftest*
  2977.   eval "ac_cv_lib_termcap=no"
  2978. fi
  2979. rm -f conftest*
  2980. LIBS="$ac_save_LIBS"
  2981.  
  2982. fi
  2983. if eval "test \"`echo '$ac_cv_lib_'termcap`\" = yes"; then
  2984.   echo "$ac_t""yes" 1>&6
  2985.   cat >> confdefs.h <<\EOF
  2986. #define HAVE_LIBTERMCAP 1
  2987. EOF
  2988.  
  2989.              LIBS="$LIBS -ltermcap"
  2990.              TERMLIB_FOUND="yes"
  2991. else
  2992.   echo "$ac_t""no" 1>&6
  2993. fi
  2994.  
  2995.     fi
  2996. else
  2997.     echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
  2998. if eval "test \"`echo '$''{'ac_cv_lib_termcap'+set}'`\" = set"; then
  2999.   echo $ac_n "(cached) $ac_c" 1>&6
  3000. else
  3001.   ac_save_LIBS="$LIBS"
  3002. LIBS="-ltermcap  $LIBS"
  3003. cat > conftest.$ac_ext <<EOF
  3004. #line 3005 "configure"
  3005. #include "confdefs.h"
  3006.  
  3007. int main() { return 0; }
  3008. int t() {
  3009. main()
  3010. ; return 0; }
  3011. EOF
  3012. if eval $ac_link; then
  3013.   rm -rf conftest*
  3014.   eval "ac_cv_lib_termcap=yes"
  3015. else
  3016.   rm -rf conftest*
  3017.   eval "ac_cv_lib_termcap=no"
  3018. fi
  3019. rm -f conftest*
  3020. LIBS="$ac_save_LIBS"
  3021.  
  3022. fi
  3023. if eval "test \"`echo '$ac_cv_lib_'termcap`\" = yes"; then
  3024.   echo "$ac_t""yes" 1>&6
  3025.   cat >> confdefs.h <<\EOF
  3026. #define HAVE_LIBTERMCAP 1
  3027. EOF
  3028.  
  3029.          LIBS="$LIBS -ltermcap"
  3030.          TERMLIB_FOUND="yes"
  3031. else
  3032.   echo "$ac_t""no" 1>&6
  3033.     echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
  3034. if eval "test \"`echo '$''{'ac_cv_lib_ncurses'+set}'`\" = set"; then
  3035.   echo $ac_n "(cached) $ac_c" 1>&6
  3036. else
  3037.   ac_save_LIBS="$LIBS"
  3038. LIBS="-lncurses  $LIBS"
  3039. cat > conftest.$ac_ext <<EOF
  3040. #line 3041 "configure"
  3041. #include "confdefs.h"
  3042.  
  3043. int main() { return 0; }
  3044. int t() {
  3045. main()
  3046. ; return 0; }
  3047. EOF
  3048. if eval $ac_link; then
  3049.   rm -rf conftest*
  3050.   eval "ac_cv_lib_ncurses=yes"
  3051. else
  3052.   rm -rf conftest*
  3053.   eval "ac_cv_lib_ncurses=no"
  3054. fi
  3055. rm -f conftest*
  3056. LIBS="$ac_save_LIBS"
  3057.  
  3058. fi
  3059. if eval "test \"`echo '$ac_cv_lib_'ncurses`\" = yes"; then
  3060.   echo "$ac_t""yes" 1>&6
  3061.   cat >> confdefs.h <<\EOF
  3062. #define HAVE_LIBTERMINFO 1
  3063. EOF
  3064.  
  3065.                  LIBS="$LIBS -lncurses"
  3066.                  TERMLIB_FOUND="yes"
  3067. else
  3068.   echo "$ac_t""no" 1>&6
  3069. echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
  3070. if eval "test \"`echo '$''{'ac_cv_lib_termlib'+set}'`\" = set"; then
  3071.   echo $ac_n "(cached) $ac_c" 1>&6
  3072. else
  3073.   ac_save_LIBS="$LIBS"
  3074. LIBS="-ltermlib  $LIBS"
  3075. cat > conftest.$ac_ext <<EOF
  3076. #line 3077 "configure"
  3077. #include "confdefs.h"
  3078.  
  3079. int main() { return 0; }
  3080. int t() {
  3081. main()
  3082. ; return 0; }
  3083. EOF
  3084. if eval $ac_link; then
  3085.   rm -rf conftest*
  3086.   eval "ac_cv_lib_termlib=yes"
  3087. else
  3088.   rm -rf conftest*
  3089.   eval "ac_cv_lib_termlib=no"
  3090. fi
  3091. rm -f conftest*
  3092. LIBS="$ac_save_LIBS"
  3093.  
  3094. fi
  3095. if eval "test \"`echo '$ac_cv_lib_'termlib`\" = yes"; then
  3096.   echo "$ac_t""yes" 1>&6
  3097.   cat >> confdefs.h <<\EOF
  3098. #define HAVE_LIBTERMINFO 1
  3099. EOF
  3100.  
  3101.                     LIBS="$LIBS -ltermlib"
  3102.                     TERMLIB_FOUND="yes"
  3103. else
  3104.   echo "$ac_t""no" 1>&6
  3105. echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  3106. if eval "test \"`echo '$''{'ac_cv_lib_curses'+set}'`\" = set"; then
  3107.   echo $ac_n "(cached) $ac_c" 1>&6
  3108. else
  3109.   ac_save_LIBS="$LIBS"
  3110. LIBS="-lcurses  $LIBS"
  3111. cat > conftest.$ac_ext <<EOF
  3112. #line 3113 "configure"
  3113. #include "confdefs.h"
  3114.  
  3115. int main() { return 0; }
  3116. int t() {
  3117. main()
  3118. ; return 0; }
  3119. EOF
  3120. if eval $ac_link; then
  3121.   rm -rf conftest*
  3122.   eval "ac_cv_lib_curses=yes"
  3123. else
  3124.   rm -rf conftest*
  3125.   eval "ac_cv_lib_curses=no"
  3126. fi
  3127. rm -f conftest*
  3128. LIBS="$ac_save_LIBS"
  3129.  
  3130. fi
  3131. if eval "test \"`echo '$ac_cv_lib_'curses`\" = yes"; then
  3132.   echo "$ac_t""yes" 1>&6
  3133.   cat >> confdefs.h <<\EOF
  3134. #define HAVE_LIBTERMINFO 1
  3135. EOF
  3136.  
  3137.                        LIBS="$LIBS -lcurses"
  3138.                        TERMLIB_FOUND="yes"
  3139. else
  3140.   echo "$ac_t""no" 1>&6
  3141. echo $ac_n "checking for -ltinfo""... $ac_c" 1>&6
  3142. if eval "test \"`echo '$''{'ac_cv_lib_tinfo'+set}'`\" = set"; then
  3143.   echo $ac_n "(cached) $ac_c" 1>&6
  3144. else
  3145.   ac_save_LIBS="$LIBS"
  3146. LIBS="-ltinfo  $LIBS"
  3147. cat > conftest.$ac_ext <<EOF
  3148. #line 3149 "configure"
  3149. #include "confdefs.h"
  3150.  
  3151. int main() { return 0; }
  3152. int t() {
  3153. main()
  3154. ; return 0; }
  3155. EOF
  3156. if eval $ac_link; then
  3157.   rm -rf conftest*
  3158.   eval "ac_cv_lib_tinfo=yes"
  3159. else
  3160.   rm -rf conftest*
  3161.   eval "ac_cv_lib_tinfo=no"
  3162. fi
  3163. rm -f conftest*
  3164. LIBS="$ac_save_LIBS"
  3165.  
  3166. fi
  3167. if eval "test \"`echo '$ac_cv_lib_'tinfo`\" = yes"; then
  3168.   echo "$ac_t""yes" 1>&6
  3169.   cat >> confdefs.h <<\EOF
  3170. #define HAVE_LIBTERMINFO 1
  3171. EOF
  3172.  
  3173.                       LIBS="$LIBS -ltinfo"
  3174.                       TERMLIB_FOUND="yes"
  3175. else
  3176.   echo "$ac_t""no" 1>&6
  3177. echo $ac_n "checking for -lterminfo""... $ac_c" 1>&6
  3178. if eval "test \"`echo '$''{'ac_cv_lib_terminfo'+set}'`\" = set"; then
  3179.   echo $ac_n "(cached) $ac_c" 1>&6
  3180. else
  3181.   ac_save_LIBS="$LIBS"
  3182. LIBS="-lterminfo  $LIBS"
  3183. cat > conftest.$ac_ext <<EOF
  3184. #line 3185 "configure"
  3185. #include "confdefs.h"
  3186.  
  3187. int main() { return 0; }
  3188. int t() {
  3189. main()
  3190. ; return 0; }
  3191. EOF
  3192. if eval $ac_link; then
  3193.   rm -rf conftest*
  3194.   eval "ac_cv_lib_terminfo=yes"
  3195. else
  3196.   rm -rf conftest*
  3197.   eval "ac_cv_lib_terminfo=no"
  3198. fi
  3199. rm -f conftest*
  3200. LIBS="$ac_save_LIBS"
  3201.  
  3202. fi
  3203. if eval "test \"`echo '$ac_cv_lib_'terminfo`\" = yes"; then
  3204.   echo "$ac_t""yes" 1>&6
  3205.   cat >> confdefs.h <<\EOF
  3206. #define HAVE_LIBTERMINFO 1
  3207. EOF
  3208.  
  3209.                          LIBS="$LIBS -lterminfo"
  3210.                          TERMLIB_FOUND="yes"
  3211. else
  3212.   echo "$ac_t""no" 1>&6
  3213. TERMLIB_FOUND="no"
  3214.             
  3215. fi
  3216.  
  3217.         
  3218. fi
  3219.  
  3220.         
  3221. fi
  3222.  
  3223.     
  3224. fi
  3225.  
  3226.     
  3227. fi
  3228.  
  3229.  
  3230.  
  3231. fi
  3232.  
  3233. fi
  3234.  
  3235. if test "$TERMLIB_FOUND" = "no"; then
  3236.     { echo "configure: error: no library for handling terminal capabilities" 1>&2; exit 1; }
  3237. fi
  3238.  
  3239.  
  3240.  
  3241. # Extract the first word of "makeinfo", so it can be a program name with args.
  3242. set dummy makeinfo; ac_word=$2
  3243. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3244. if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
  3245.   echo $ac_n "(cached) $ac_c" 1>&6
  3246. else
  3247.   if test -n "$MAKEINFO"; then
  3248.   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  3249. else
  3250.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3251.   for ac_dir in $PATH; do
  3252.     test -z "$ac_dir" && ac_dir=.
  3253.     if test -f $ac_dir/$ac_word; then
  3254.       ac_cv_prog_MAKEINFO="makeinfo"
  3255.       break
  3256.     fi
  3257.   done
  3258.   IFS="$ac_save_ifs"
  3259.   test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="false"
  3260. fi
  3261. fi
  3262. MAKEINFO="$ac_cv_prog_MAKEINFO"
  3263. if test -n "$MAKEINFO"; then
  3264.   echo "$ac_t""$MAKEINFO" 1>&6
  3265. else
  3266.   echo "$ac_t""no" 1>&6
  3267. fi
  3268.  
  3269. if test "$MAKEINFO" = "false"; then
  3270.     echo "configure: warning: ***** makeinfo utility not found *****" 1>&2
  3271. fi
  3272.  
  3273.  
  3274.  
  3275. # Extract the first word of "texi2dvi", so it can be a program name with args.
  3276. set dummy texi2dvi; ac_word=$2
  3277. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3278. if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
  3279.   echo $ac_n "(cached) $ac_c" 1>&6
  3280. else
  3281.   if test -n "$TEXI2DVI"; then
  3282.   ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
  3283. else
  3284.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3285.   for ac_dir in $PATH; do
  3286.     test -z "$ac_dir" && ac_dir=.
  3287.     if test -f $ac_dir/$ac_word; then
  3288.       ac_cv_prog_TEXI2DVI="texi2dvi"
  3289.       break
  3290.     fi
  3291.   done
  3292.   IFS="$ac_save_ifs"
  3293.   test -z "$ac_cv_prog_TEXI2DVI" && ac_cv_prog_TEXI2DVI="false"
  3294. fi
  3295. fi
  3296. TEXI2DVI="$ac_cv_prog_TEXI2DVI"
  3297. if test -n "$TEXI2DVI"; then
  3298.   echo "$ac_t""$TEXI2DVI" 1>&6
  3299. else
  3300.   echo "$ac_t""no" 1>&6
  3301. fi
  3302.  
  3303. if test "$TEXI2DVI" = "false"; then
  3304.     echo "configure: warning: ***** texi2dvi utility not found *****" 1>&2
  3305. fi
  3306.  
  3307.  
  3308.  
  3309.  
  3310.  
  3311.  
  3312. trap '' 1 2 15
  3313. cat > confcache <<\EOF
  3314. # This file is a shell script that caches the results of configure
  3315. # tests run on this system so they can be shared between configure
  3316. # scripts and configure runs.  It is not useful on other systems.
  3317. # If it contains results you don't want to keep, you may remove or edit it.
  3318. #
  3319. # By default, configure uses ./config.cache as the cache file,
  3320. # creating it if it does not exist already.  You can give configure
  3321. # the --cache-file=FILE option to use a different cache file; that is
  3322. # what configure does when it calls configure scripts in
  3323. # subdirectories, so they share the cache.
  3324. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3325. # config.status only pays attention to the cache file if you give it the
  3326. # --recheck option to rerun configure.
  3327. #
  3328. EOF
  3329. # Ultrix sh set writes to stderr and can't be redirected directly,
  3330. # and sets the high bit in the cache file unless we assign to the vars.
  3331. (set) 2>&1 |
  3332.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  3333.   >> confcache
  3334. if cmp -s $cache_file confcache; then
  3335.   :
  3336. else
  3337.   if test -w $cache_file; then
  3338.     echo "updating cache $cache_file"
  3339.     cat confcache > $cache_file
  3340.   else
  3341.     echo "not updating unwritable cache $cache_file"
  3342.   fi
  3343. fi
  3344. rm -f confcache
  3345.  
  3346. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3347.  
  3348. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3349. # Let make expand exec_prefix.
  3350. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3351.  
  3352. # Any assignment to VPATH causes Sun make to only execute
  3353. # the first set of double-colon rules, so remove it if not needed.
  3354. # If there is a colon in the path, we need to keep it.
  3355. if test "x$srcdir" = x.; then
  3356.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3357. fi
  3358.  
  3359. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3360.  
  3361. DEFS=-DHAVE_CONFIG_H
  3362.  
  3363. # Without the "./", some shells look in PATH for config.status.
  3364. : ${CONFIG_STATUS=./config.status}
  3365.  
  3366. echo creating $CONFIG_STATUS
  3367. rm -f $CONFIG_STATUS
  3368. cat > $CONFIG_STATUS <<EOF
  3369. #! /bin/sh
  3370. # Generated automatically by configure.
  3371. # Run this file to recreate the current configuration.
  3372. # This directory was configured as follows,
  3373. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3374. #
  3375. # $0 $ac_configure_args
  3376. #
  3377. # Compiler output produced by configure, useful for debugging
  3378. # configure, is in ./config.log if it exists.
  3379.  
  3380. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3381. for ac_option
  3382. do
  3383.   case "\$ac_option" in
  3384.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3385.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3386.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3387.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3388.     echo "$CONFIG_STATUS generated by autoconf version 2.4"
  3389.     exit 0 ;;
  3390.   -help | --help | --hel | --he | --h)
  3391.     echo "\$ac_cs_usage"; exit 0 ;;
  3392.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3393.   esac
  3394. done
  3395.  
  3396. ac_given_srcdir=$srcdir
  3397. ac_given_INSTALL="$INSTALL"
  3398.  
  3399. trap 'rm -fr `echo "Makefile src/Makefile info/Makefile man/Makefile term/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3400.  
  3401. # Protect against being on the right side of a sed subst in config.status. 
  3402. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  3403.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  3404. $ac_vpsub
  3405. $extrasub
  3406. s%@CFLAGS@%$CFLAGS%g
  3407. s%@CPPFLAGS@%$CPPFLAGS%g
  3408. s%@CXXFLAGS@%$CXXFLAGS%g
  3409. s%@DEFS@%$DEFS%g
  3410. s%@LDFLAGS@%$LDFLAGS%g
  3411. s%@LIBS@%$LIBS%g
  3412. s%@exec_prefix@%$exec_prefix%g
  3413. s%@prefix@%$prefix%g
  3414. s%@program_transform_name@%$program_transform_name%g
  3415. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3416. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3417. s%@host@%$host%g
  3418. s%@host_alias@%$host_alias%g
  3419. s%@host_cpu@%$host_cpu%g
  3420. s%@host_vendor@%$host_vendor%g
  3421. s%@host_os@%$host_os%g
  3422. s%@CC@%$CC%g
  3423. s%@CPP@%$CPP%g
  3424. s%@MAKEINFO@%$MAKEINFO%g
  3425. s%@TEXI2DVI@%$TEXI2DVI%g
  3426. s%@PRODUCT@%$PRODUCT%g
  3427. s%@VERSION@%$VERSION%g
  3428. s%@HOST@%$HOST%g
  3429. s%@INSTALL@%$INSTALL%g
  3430. s%@GIT_OBJS@%$GIT_OBJS%g
  3431. s%@GITMATCH_OBJS@%$GITMATCH_OBJS%g
  3432. s%@GITPS_OBJS@%$GITPS_OBJS%g
  3433. s%@GITVIEW_OBJS@%$GITVIEW_OBJS%g
  3434.  
  3435. CEOF
  3436. EOF
  3437. cat >> $CONFIG_STATUS <<EOF
  3438.  
  3439. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile info/Makefile man/Makefile term/Makefile"}
  3440. EOF
  3441. cat >> $CONFIG_STATUS <<\EOF
  3442. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3443.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3444.   case "$ac_file" in
  3445.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3446.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3447.   *) ac_file_in="${ac_file}.in" ;;
  3448.   esac
  3449.  
  3450.   # Adjust relative srcdir, etc. for subdirectories.
  3451.  
  3452.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3453.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3454.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3455.     # The file is in a subdirectory.
  3456.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3457.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3458.     # A "../" for each directory in $ac_dir_suffix.
  3459.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3460.   else
  3461.     ac_dir_suffix= ac_dots=
  3462.   fi
  3463.  
  3464.   case "$ac_given_srcdir" in
  3465.   .)  srcdir=.
  3466.       if test -z "$ac_dots"; then top_srcdir=.
  3467.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3468.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3469.   *) # Relative path.
  3470.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3471.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3472.   esac
  3473.  
  3474.   case "$ac_given_INSTALL" in
  3475.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3476.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3477.   esac
  3478.   echo creating "$ac_file"
  3479.   rm -f "$ac_file"
  3480.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3481.   case "$ac_file" in
  3482.   *Makefile*) ac_comsub="1i\\
  3483. # $configure_input" ;;
  3484.   *) ac_comsub= ;;
  3485.   esac
  3486.   sed -e "$ac_comsub
  3487. s%@configure_input@%$configure_input%g
  3488. s%@srcdir@%$srcdir%g
  3489. s%@top_srcdir@%$top_srcdir%g
  3490. s%@INSTALL@%$INSTALL%g
  3491. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3492. fi; done
  3493. rm -f conftest.subs
  3494.  
  3495. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3496. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3497. #
  3498. # ac_d sets the value in "#define NAME VALUE" lines.
  3499. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3500. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3501. ac_dC='\3'
  3502. ac_dD='%g'
  3503. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3504. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3505. ac_uB='\([     ]\)%\1#\2define\3'
  3506. ac_uC=' '
  3507. ac_uD='\4%g'
  3508. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3509. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3510. ac_eB='$%\1#\2define\3'
  3511. ac_eC=' '
  3512. ac_eD='%g'
  3513.  
  3514. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  3515. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3516.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3517.   case "$ac_file" in
  3518.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3519.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3520.   *) ac_file_in="${ac_file}.in" ;;
  3521.   esac
  3522.  
  3523.   echo creating $ac_file
  3524.  
  3525.   rm -f conftest.frag conftest.in conftest.out
  3526.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3527.  
  3528. EOF
  3529.  
  3530. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3531. # the proper values into config.h.in to produce config.h.  And first:
  3532. # Protect against being on the right side of a sed subst in config.status. 
  3533. # Protect against being in an unquoted here document in config.status.
  3534. rm -f conftest.vals
  3535. cat > conftest.hdr <<\EOF
  3536. s/[\\&%]/\\&/g
  3537. s%[\\$`]%\\&%g
  3538. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3539. s%ac_d%ac_u%gp
  3540. s%ac_u%ac_e%gp
  3541. EOF
  3542. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3543. rm -f conftest.hdr
  3544.  
  3545. # This sed command replaces #undef with comments.  This is necessary, for
  3546. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3547. # on some systems where configure will not decide to define it.
  3548. cat >> conftest.vals <<\EOF
  3549. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3550. EOF
  3551.  
  3552. # Break up conftest.vals because some shells have a limit on
  3553. # the size of here documents, and old seds have small limits too.
  3554. # Maximum number of lines to put in a single here document.
  3555. ac_max_here_lines=12
  3556.  
  3557. rm -f conftest.tail
  3558. while :
  3559. do
  3560.   ac_lines=`grep -c . conftest.vals`
  3561.   # grep -c gives empty output for an empty file on some AIX systems.
  3562.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3563.   # Write a limited-size here document to conftest.frag.
  3564.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3565.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3566.   echo 'CEOF
  3567.   sed -f conftest.frag conftest.in > conftest.out
  3568.   rm -f conftest.in
  3569.   mv conftest.out conftest.in
  3570. ' >> $CONFIG_STATUS
  3571.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3572.   rm -f conftest.vals
  3573.   mv conftest.tail conftest.vals
  3574. done
  3575. rm -f conftest.vals
  3576.  
  3577. cat >> $CONFIG_STATUS <<\EOF
  3578.   rm -f conftest.frag conftest.h
  3579.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3580.   cat conftest.in >> conftest.h
  3581.   rm -f conftest.in
  3582.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3583.     echo "$ac_file is unchanged"
  3584.     rm -f conftest.h
  3585.   else
  3586.     rm -f $ac_file
  3587.     mv conftest.h $ac_file
  3588.   fi
  3589. fi; done
  3590.  
  3591.  
  3592.  
  3593. exit 0
  3594. EOF
  3595. chmod +x $CONFIG_STATUS
  3596. rm -fr confdefs* $ac_clean_files
  3597. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3598.  
  3599.