home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / cvs14p9b.zip / cvs / configure < prev    next >
Text File  |  1994-11-05  |  59KB  |  2,106 lines

  1. #!/bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 1.119 
  5. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU General Public License as published
  9. # by the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11. #
  12. # This script is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  15. # Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. ac_help=
  22.  
  23. # Omit some internal or obsolete options to make the list less imposing.
  24. ac_usage="Usage: configure [options] [host]
  25. Options: [defaults in brackets after descriptions]
  26. Configuration:
  27.   --cache-file=FILE       cache test results in FILE
  28.   --help                  print this message
  29.   --no-create             do not create output files
  30.   --quiet, --silent       do not print \`checking...' messages
  31.   --version               print the version of autoconf that created configure
  32. Directory and file names:
  33.   --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  34.   --prefix=PREFIX         install host independent files in PREFIX [/usr/local]
  35.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  36.   --program-prefix=PREFIX prepend PREFIX to installed program names
  37.   --program-suffix=SUFFIX append SUFFIX to installed program names
  38. Host type:
  39.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  40.   --host=HOST             configure for HOST [guessed]
  41.   --target=TARGET         configure for TARGET [TARGET=HOST]
  42. Features and packages:
  43.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  44.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  45.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  46.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  47.   --x-includes=DIR        X include files are in DIR
  48.   --x-libraries=DIR       X library files are in DIR
  49. --enable and --with options recognized:$ac_help"
  50.  
  51. # Initialize some variables set by options.
  52. # The variables have the same names as the options, with
  53. # dashes changed to underlines.
  54. build=NONE
  55. cache_file=./config.cache
  56. exec_prefix=NONE
  57. host=NONE
  58. no_create=
  59. nonopt=NONE
  60. no_recursion=
  61. prefix=NONE
  62. program_prefix=NONE
  63. program_suffix=NONE
  64. program_transform_name=NONE
  65. silent=
  66. srcdir=
  67. target=NONE
  68. verbose=
  69. x_includes=NONE
  70. x_libraries=NONE
  71.  
  72. # Initialize some other variables.
  73. subdirs=
  74.  
  75. ac_prev=
  76. for ac_option
  77. do
  78.  
  79.   # If the previous option needs an argument, assign it.
  80.   if test -n "$ac_prev"; then
  81.     eval "$ac_prev=\$ac_option"
  82.     ac_prev=
  83.     continue
  84.   fi
  85.  
  86.   case "$ac_option" in
  87.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  88.   *) ac_optarg= ;;
  89.   esac
  90.  
  91.   # Accept the important Cygnus configure options, so we can diagnose typos.
  92.  
  93.   case "$ac_option" in
  94.  
  95.   -build | --build | --buil | --bui | --bu | --b)
  96.     ac_prev=build ;;
  97.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  98.     build="$ac_optarg" ;;
  99.  
  100.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  101.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  102.     ac_prev=cache_file ;;
  103.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  104.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  105.     cache_file="$ac_optarg" ;;
  106.  
  107.   -disable-* | --disable-*)
  108.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  109.     # Reject names that are not valid shell variable names.
  110.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  111.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  112.     fi
  113.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  114.     eval "enable_${ac_feature}=no" ;;
  115.  
  116.   -enable-* | --enable-*)
  117.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  118.     # Reject names that are not valid shell variable names.
  119.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  120.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  121.     fi
  122.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  123.     case "$ac_option" in
  124.       *=*) ;;
  125.       *) ac_optarg=yes ;;
  126.     esac
  127.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  128.  
  129.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  130.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  131.   | --exec | --exe | --ex)
  132.     ac_prev=exec_prefix ;;
  133.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  134.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  135.   | --exec=* | --exe=* | --ex=*)
  136.     exec_prefix="$ac_optarg" ;;
  137.  
  138.   -gas | --gas | --ga | --g)
  139.     # Obsolete; use --with-gas.
  140.     with_gas=yes ;;
  141.  
  142.   -help | --help | --hel | --he)
  143.     cat << EOF
  144. $ac_usage
  145. EOF
  146.     exit 0 ;;
  147.  
  148.   -host | --host | --hos | --ho)
  149.     ac_prev=host ;;
  150.   -host=* | --host=* | --hos=* | --ho=*)
  151.     host="$ac_optarg" ;;
  152.  
  153.   -nfp | --nfp | --nf)
  154.     # Obsolete; use --without-fp.
  155.     with_fp=no ;;
  156.  
  157.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  158.   | --no-cr | --no-c)
  159.     no_create=yes ;;
  160.  
  161.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  162.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  163.     no_recursion=yes ;;
  164.  
  165.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  166.     ac_prev=prefix ;;
  167.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  168.     prefix="$ac_optarg" ;;
  169.  
  170.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  171.   | --program-pre | --program-pr | --program-p)
  172.     ac_prev=program_prefix ;;
  173.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  174.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  175.     program_prefix="$ac_optarg" ;;
  176.  
  177.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  178.   | --program-suf | --program-su | --program-s)
  179.     ac_prev=program_suffix ;;
  180.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  181.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  182.     program_suffix="$ac_optarg" ;;
  183.  
  184.   -program-transform-name | --program-transform-name \
  185.   | --program-transform-nam | --program-transform-na \
  186.   | --program-transform-n | --program-transform- \
  187.   | --program-transform | --program-transfor \
  188.   | --program-transfo | --program-transf \
  189.   | --program-trans | --program-tran \
  190.   | --progr-tra | --program-tr | --program-t)
  191.     ac_prev=program_transform_name ;;
  192.   -program-transform-name=* | --program-transform-name=* \
  193.   | --program-transform-nam=* | --program-transform-na=* \
  194.   | --program-transform-n=* | --program-transform-=* \
  195.   | --program-transform=* | --program-transfor=* \
  196.   | --program-transfo=* | --program-transf=* \
  197.   | --program-trans=* | --program-tran=* \
  198.   | --progr-tra=* | --program-tr=* | --program-t=*)
  199.     program_transform_name="$ac_optarg" ;;
  200.  
  201.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  202.   | -silent | --silent | --silen | --sile | --sil)
  203.     silent=yes ;;
  204.  
  205.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  206.     ac_prev=srcdir ;;
  207.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  208.     srcdir="$ac_optarg" ;;
  209.  
  210.   -target | --target | --targe | --targ | --tar | --ta | --t)
  211.     ac_prev=target ;;
  212.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  213.     target="$ac_optarg" ;;
  214.  
  215.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  216.     verbose=yes ;;
  217.  
  218.   -version | --version | --versio | --versi | --vers)
  219.     echo "configure generated by autoconf version 1.119"
  220.     exit 0 ;;
  221.  
  222.   -with-* | --with-*)
  223.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  224.     # Reject names that are not valid shell variable names.
  225.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  226.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  227.     fi
  228.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  229.     case "$ac_option" in
  230.       *=*) ;;
  231.       *) ac_optarg=yes ;;
  232.     esac
  233.     eval "with_${ac_package}='$ac_optarg'" ;;
  234.  
  235.   -without-* | --without-*)
  236.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  237.     # Reject names that are not valid shell variable names.
  238.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  239.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  240.     fi
  241.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  242.     eval "with_${ac_package}=no" ;;
  243.  
  244.   --x)
  245.     # Obsolete; use --with-x.
  246.     with_x=yes ;;
  247.  
  248.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  249.   | --x-incl | --x-inc | --x-in | --x-i)
  250.     ac_prev=x_includes ;;
  251.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  252.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  253.     x_includes="$ac_optarg" ;;
  254.  
  255.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  256.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  257.     ac_prev=x_libraries ;;
  258.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  259.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  260.     x_libraries="$ac_optarg" ;;
  261.  
  262.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  263.     ;;
  264.  
  265.   *) 
  266.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  267.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  268.     fi
  269.     if test "x$nonopt" != xNONE; then
  270.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  271.     fi
  272.     nonopt="$ac_option"
  273.     ;;
  274.  
  275.   esac
  276. done
  277.  
  278. if test -n "$ac_prev"; then
  279.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  280. fi
  281.  
  282. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  283.  
  284. # File descriptor usage:
  285. # 0 unused; standard input
  286. # 1 file creation
  287. # 2 errors and warnings
  288. # 3 unused; some systems may open it to /dev/tty
  289. # 4 checking for... messages and results
  290. # 5 compiler messages saved in config.log
  291. if test "$silent" = yes; then
  292.   exec 4>/dev/null
  293. else
  294.   exec 4>&1
  295. fi
  296. exec 5>./config.log
  297.  
  298. echo "\
  299. This file contains any messages produced by compilers while
  300. running configure, to aid debugging if configure makes a mistake.
  301. " 1>&5
  302.  
  303. # Strip out --no-create and --no-recursion so they do not pile up.
  304. # Also quote any args containing shell metacharacters.
  305. ac_configure_args=
  306. for ac_arg
  307. do
  308.   case "$ac_arg" in
  309.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  310.   | --no-cr | --no-c) ;;
  311.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  312.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  313.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  314.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  315.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  316.   esac
  317. done
  318.  
  319. # NLS nuisances.
  320. # Only set LANG and LC_ALL to C if already set.
  321. # These must not be set unconditionally because not all systems understand
  322. # e.g. LANG=C (notably SCO).
  323. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  324. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  325.  
  326. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  327. rm -rf conftest* confdefs.h
  328. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  329. echo > confdefs.h
  330.  
  331. # A filename unique to this package, relative to the directory that
  332. # configure is in, which we can look for to find out if srcdir is correct.
  333. ac_unique_file=src/cvs.h
  334.  
  335. # Find the source files, if location was not specified.
  336. if test -z "$srcdir"; then
  337.   ac_srcdir_defaulted=yes
  338.   # Try the directory containing this script, then its parent.
  339.   ac_prog=$0
  340.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  341.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  342.   srcdir=$ac_confdir
  343.   if test ! -r $srcdir/$ac_unique_file; then
  344.     srcdir=..
  345.   fi
  346. else
  347.   ac_srcdir_defaulted=no
  348. fi
  349. if test ! -r $srcdir/$ac_unique_file; then
  350.   if test "$ac_srcdir_defaulted" = yes; then
  351.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  352.   else
  353.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  354.   fi
  355. fi
  356.  
  357. # Prefer explicitly selected file to automatically selected ones.
  358. if test -z "$CONFIG_SITE"; then
  359.   if test "x$prefix" != xNONE; then
  360.     CONFIG_SITE=$prefix/lib/config.site
  361.   else
  362.     CONFIG_SITE=/usr/local/lib/config.site
  363.   fi
  364.   # System dependent files override system independent ones.
  365.   if test "x$exec_prefix" != xNONE && test "x$exec_prefix" != "x$prefix"; then
  366.     CONFIG_SITE="$CONFIG_SITE $exec_prefix/lib/config.site"
  367.   fi
  368. fi
  369. for ac_site_file in $CONFIG_SITE; do
  370.   if test -r "$ac_site_file"; then
  371.     echo "loading site script $ac_site_file"
  372.     . "$ac_site_file"
  373.   fi
  374. done
  375.  
  376. if test -r "$cache_file"; then
  377.   echo "loading cache $cache_file"
  378.   . $cache_file
  379. else
  380.   echo "creating cache $cache_file"
  381.   > $cache_file
  382. fi
  383.  
  384. ac_ext=c
  385. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  386. ac_cpp='$CPP $CPPFLAGS'
  387. ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  388.  
  389. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  390.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  391.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  392.     ac_n= ac_c='
  393. ' ac_t='    '
  394.   else
  395.     ac_n=-n ac_c= ac_t=
  396.   fi
  397. else
  398.   ac_n= ac_c='\c' ac_t=
  399. fi
  400.  
  401.  
  402.  
  403. # Extract the first word of "gcc", so it can be a program name with args.
  404. set dummy gcc; ac_word=$2
  405. echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  406. if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  407.   echo $ac_n "(cached) $ac_c" 1>&4
  408. else
  409.   if test -n "$CC"; then
  410.   ac_cv_prog_CC="$CC" # Let the user override the test.
  411. else
  412.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  413.   for ac_dir in $PATH; do
  414.     test -z "$ac_dir" && ac_dir=.
  415.     if test -f $ac_dir/$ac_word; then
  416.       ac_cv_prog_CC="gcc"
  417.       break
  418.     fi
  419.   done
  420.   IFS="$ac_save_ifs"
  421.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  422. fi
  423. fi
  424. CC="$ac_cv_prog_CC"
  425. if test -n "$CC"; then
  426.   echo "$ac_t""$CC" 1>&4
  427. else
  428.   echo "$ac_t""no" 1>&4
  429. fi
  430.  
  431.  
  432. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  433. if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  434.   echo $ac_n "(cached) $ac_c" 1>&4
  435. else
  436.   cat > conftest.c <<EOF
  437. #ifdef __GNUC__
  438.   yes
  439. #endif
  440. EOF
  441. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  442.   ac_cv_prog_gcc=yes
  443. else
  444.   ac_cv_prog_gcc=no
  445. fi
  446. fi
  447. echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  448. if test $ac_cv_prog_gcc = yes; then
  449.   GCC=yes
  450.   if test "${CFLAGS+set}" != set; then
  451.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  452. if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  453.   echo $ac_n "(cached) $ac_c" 1>&4
  454. else
  455.   echo 'void f(){}' > conftest.c
  456. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  457.   ac_cv_prog_gcc_g=yes
  458. else
  459.   ac_cv_prog_gcc_g=no
  460. fi
  461. rm -f conftest*
  462.  
  463. fi
  464.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  465.     if test $ac_cv_prog_gcc_g = yes; then
  466.       CFLAGS="-g -O"
  467.     else
  468.       CFLAGS="-O"
  469.     fi
  470.   fi
  471. else
  472.   GCC=
  473.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  474. fi
  475.  
  476. ac_aux_dir=
  477. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  478.   if test -f $ac_dir/install-sh; then
  479.     ac_aux_dir=$ac_dir
  480.     ac_install_sh="$ac_aux_dir/install-sh -c"
  481.     break
  482.   elif test -f $ac_dir/install.sh; then
  483.     ac_aux_dir=$ac_dir
  484.     ac_install_sh="$ac_aux_dir/install.sh -c"
  485.     break
  486.   fi
  487. done
  488. if test -z "$ac_aux_dir"; then
  489.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  490. fi
  491. ac_config_guess=$ac_aux_dir/config.guess
  492. ac_config_sub=$ac_aux_dir/config.sub
  493. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  494.  
  495. # Find a good install program.  We prefer a C program (faster),
  496. # so one script is as good as another.  But avoid the broken or
  497. # incompatible versions:
  498. # SysV /etc/install, /usr/sbin/install
  499. # SunOS /usr/etc/install
  500. # IRIX /sbin/install
  501. # AIX /bin/install
  502. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  503. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  504. # ./install, which can be erroneously created by make from ./install.sh.
  505. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  506. if test -z "$INSTALL"; then
  507. if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  508.   echo $ac_n "(cached) $ac_c" 1>&4
  509. else
  510.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  511.   for ac_dir in $PATH; do
  512.     case "$ac_dir" in
  513.     ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  514.     *)
  515.       # OSF1 and SCO ODT 3.0 have their own names for install.
  516.       for ac_prog in ginstall installbsd scoinst install; do
  517.         if test -f $ac_dir/$ac_prog; then
  518.       if test $ac_prog = install &&
  519.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  520.         # AIX install.  It has an incompatible calling convention.
  521.         # OSF/1 installbsd also uses dspmsg, but is usable.
  522.         :
  523.       else
  524.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  525.         break 2
  526.       fi
  527.     fi
  528.       done
  529.       ;;
  530.     esac
  531.   done
  532.   IFS="$ac_save_ifs"
  533.   # As a last resort, use the slow shell script.
  534.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  535. fi
  536.   INSTALL="$ac_cv_path_install"
  537. fi
  538. echo "$ac_t""$INSTALL" 1>&4
  539.  
  540. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  541. # It thinks the first close brace ends the variable substitution.
  542. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  543.  
  544. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  545.  
  546. # Extract the first word of "ranlib", so it can be a program name with args.
  547. set dummy ranlib; ac_word=$2
  548. echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  549. if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  550.   echo $ac_n "(cached) $ac_c" 1>&4
  551. else
  552.   if test -n "$RANLIB"; then
  553.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  554. else
  555.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  556.   for ac_dir in $PATH; do
  557.     test -z "$ac_dir" && ac_dir=.
  558.     if test -f $ac_dir/$ac_word; then
  559.       ac_cv_prog_RANLIB="ranlib"
  560.       break
  561.     fi
  562.   done
  563.   IFS="$ac_save_ifs"
  564.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  565. fi
  566. fi
  567. RANLIB="$ac_cv_prog_RANLIB"
  568. if test -n "$RANLIB"; then
  569.   echo "$ac_t""$RANLIB" 1>&4
  570. else
  571.   echo "$ac_t""no" 1>&4
  572. fi
  573.  
  574. for ac_prog in 'bison -y' byacc
  575. do
  576. # Extract the first word of "$ac_prog", so it can be a program name with args.
  577. set dummy $ac_prog; ac_word=$2
  578. echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  579. if eval "test \"`echo '${'ac_cv_prog_YACC'+set}'`\" = set"; then
  580.   echo $ac_n "(cached) $ac_c" 1>&4
  581. else
  582.   if test -n "$YACC"; then
  583.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  584. else
  585.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  586.   for ac_dir in $PATH; do
  587.     test -z "$ac_dir" && ac_dir=.
  588.     if test -f $ac_dir/$ac_word; then
  589.       ac_cv_prog_YACC="$ac_prog"
  590.       break
  591.     fi
  592.   done
  593.   IFS="$ac_save_ifs"
  594. fi
  595. fi
  596. YACC="$ac_cv_prog_YACC"
  597. if test -n "$YACC"; then
  598.   echo "$ac_t""$YACC" 1>&4
  599. else
  600.   echo "$ac_t""no" 1>&4
  601. fi
  602.  
  603. test -n "$YACC" && break
  604. done
  605. test -n "$YACC" || YACC="yacc"
  606.  
  607. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  608. # On Suns, sometimes $CPP names a directory.
  609. if test -n "$CPP" && test -d "$CPP"; then
  610.   CPP=
  611. fi
  612. if test -z "$CPP"; then
  613. if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  614.   echo $ac_n "(cached) $ac_c" 1>&4
  615. else
  616.     # This must be in double quotes, not single quotes, because CPP may get
  617.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  618.   CPP="${CC-cc} -E"
  619.   # On the NeXT, cc -E runs the code through the compiler's parser,
  620.   # not just through cpp.
  621.   cat > conftest.$ac_ext <<EOF
  622. #line 623 "configure"
  623. #include "confdefs.h"
  624. #include <stdio.h>
  625. Syntax Error
  626. EOF
  627. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  628. ac_err=`grep -v '^ *+' conftest.out`
  629. if test -z "$ac_err"; then
  630.   :
  631. else
  632.   echo "$ac_err" >&5
  633.   rm -rf conftest*
  634.   CPP="${CC-cc} -E -traditional-cpp"
  635.   cat > conftest.$ac_ext <<EOF
  636. #line 637 "configure"
  637. #include "confdefs.h"
  638. #include <stdio.h>
  639. Syntax Error
  640. EOF
  641. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  642. ac_err=`grep -v '^ *+' conftest.out`
  643. if test -z "$ac_err"; then
  644.   :
  645. else
  646.   echo "$ac_err" >&5
  647.   rm -rf conftest*
  648.   CPP=/lib/cpp
  649. fi
  650. rm -f conftest*
  651. fi
  652. rm -f conftest*
  653.   ac_cv_prog_CPP="$CPP"
  654. fi
  655. fi
  656. CPP="$ac_cv_prog_CPP"
  657. echo "$ac_t""$CPP" 1>&4
  658.  
  659. ac_safe=`echo "minix/config.h" | tr './' '__'`
  660. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  661. if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  662.   echo $ac_n "(cached) $ac_c" 1>&4
  663. else
  664.   cat > conftest.$ac_ext <<EOF
  665. #line 666 "configure"
  666. #include "confdefs.h"
  667. #include <minix/config.h>
  668. EOF
  669. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  670. ac_err=`grep -v '^ *+' conftest.out`
  671. if test -z "$ac_err"; then
  672.   rm -rf conftest*
  673.   eval "ac_cv_header_$ac_safe=yes"
  674. else
  675.   echo "$ac_err" >&5
  676.   rm -rf conftest*
  677.   eval "ac_cv_header_$ac_safe=no"
  678. fi
  679. rm -f conftest*
  680. fi
  681. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  682.   echo "$ac_t""yes" 1>&4
  683.   MINIX=yes
  684. else
  685.   echo "$ac_t""no" 1>&4
  686. MINIX=
  687. fi
  688.  
  689. if test "$MINIX" = yes; then
  690.   cat >> confdefs.h <<\EOF
  691. #define _POSIX_SOURCE 1
  692. EOF
  693.  
  694.   cat >> confdefs.h <<\EOF
  695. #define _POSIX_1_SOURCE 2
  696. EOF
  697.  
  698.   cat >> confdefs.h <<\EOF
  699. #define _MINIX 1
  700. EOF
  701.  
  702. fi
  703.  
  704. echo $ac_n "checking for working const""... $ac_c" 1>&4
  705. if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  706.   echo $ac_n "(cached) $ac_c" 1>&4
  707. else
  708.   cat > conftest.$ac_ext <<EOF
  709. #line 710 "configure"
  710. #include "confdefs.h"
  711.  
  712. int main() { return 0; }
  713. int t() {
  714.  
  715. /* Ultrix mips cc rejects this.  */
  716. typedef int charset[2]; const charset x;
  717. /* SunOS 4.1.1 cc rejects this.  */
  718. char const *const *ccp;
  719. char **p;
  720. /* AIX XL C 1.02.0.0 rejects this.
  721.    It does not let you subtract one const X* pointer from another in an arm
  722.    of an if-expression whose if-part is not a constant expression */
  723. const char *g = "string";
  724. ccp = &g + (g ? g-g : 0);
  725. /* HPUX 7.0 cc rejects these. */
  726. ++ccp;
  727. p = (char**) ccp;
  728. ccp = (char const *const *) p;
  729. { /* SCO 3.2v4 cc rejects this.  */
  730.   char *t;
  731.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  732.  
  733.   *t++ = 0;
  734. }
  735. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  736.   int x[] = {25, 17};
  737.   const int *foo = &x[0];
  738.   ++foo;
  739. }
  740. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  741.   typedef const int *iptr;
  742.   iptr p = 0;
  743.   ++p;
  744. }
  745. { /* AIX XL C 1.02.0.0 rejects this saying
  746.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  747.   struct s { int j; const int *ap[3]; };
  748.   struct s *b; b->j = 5;
  749. }
  750. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  751.   const int foo = 10;
  752. }
  753.  
  754. ; return 0; }
  755. EOF
  756. if eval $ac_link; then
  757.   rm -rf conftest*
  758.   ac_cv_c_const=yes
  759. else
  760.   rm -rf conftest*
  761.   ac_cv_c_const=no
  762. fi
  763. rm -f conftest*
  764.  
  765. fi
  766. echo "$ac_t""$ac_cv_c_const" 1>&4
  767. if test $ac_cv_c_const = no; then
  768.   cat >> confdefs.h <<\EOF
  769. #define const 
  770. EOF
  771.  
  772. fi
  773.  
  774. # If we cannot run a trivial program, we must be cross compiling.
  775. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  776. if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  777.   echo $ac_n "(cached) $ac_c" 1>&4
  778. else
  779.   if test "$cross_compiling" = yes; then
  780.   ac_cv_cross=yes
  781. else
  782. cat > conftest.$ac_ext <<EOF
  783. #line 784 "configure"
  784. #include "confdefs.h"
  785. main(){return(0);}
  786. EOF
  787. eval $ac_link
  788. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  789.   ac_cv_c_cross=no
  790. else
  791.   ac_cv_c_cross=yes
  792. fi
  793. fi
  794. rm -fr conftest*
  795. fi
  796. cross_compiling=$ac_cv_c_cross
  797. echo "$ac_t""$ac_cv_c_cross" 1>&4
  798.  
  799. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  800. if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  801.   echo $ac_n "(cached) $ac_c" 1>&4
  802. else
  803.   cat > conftest.$ac_ext <<EOF
  804. #line 805 "configure"
  805. #include "confdefs.h"
  806. #include <stdlib.h>
  807. #include <stdarg.h>
  808. #include <string.h>
  809. #include <float.h>
  810. EOF
  811. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  812. ac_err=`grep -v '^ *+' conftest.out`
  813. if test -z "$ac_err"; then
  814.   rm -rf conftest*
  815.   ac_cv_header_stdc=yes
  816. else
  817.   echo "$ac_err" >&5
  818.   rm -rf conftest*
  819.   ac_cv_header_stdc=no
  820. fi
  821. rm -f conftest*
  822.  
  823. if test $ac_cv_header_stdc = yes; then
  824.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  825. cat > conftest.$ac_ext <<EOF
  826. #line 827 "configure"
  827. #include "confdefs.h"
  828. #include <string.h>
  829. EOF
  830. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  831.   egrep "memchr" >/dev/null 2>&1; then
  832.   :
  833. else
  834.   rm -rf conftest*
  835.   ac_cv_header_stdc=no
  836. fi
  837. rm -f conftest*
  838.  
  839. fi
  840.  
  841. if test $ac_cv_header_stdc = yes; then
  842.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  843. cat > conftest.$ac_ext <<EOF
  844. #line 845 "configure"
  845. #include "confdefs.h"
  846. #include <stdlib.h>
  847. EOF
  848. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  849.   egrep "free" >/dev/null 2>&1; then
  850.   :
  851. else
  852.   rm -rf conftest*
  853.   ac_cv_header_stdc=no
  854. fi
  855. rm -f conftest*
  856.  
  857. fi
  858.  
  859. if test $ac_cv_header_stdc = yes; then
  860.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  861. if test "$cross_compiling" = yes; then
  862.   ac_cv_header_stdc=no
  863. else
  864. cat > conftest.$ac_ext <<EOF
  865. #line 866 "configure"
  866. #include "confdefs.h"
  867. #include <ctype.h>
  868. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  869. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  870. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  871. int main () { int i; for (i = 0; i < 256; i++)
  872. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  873. exit (0); }
  874.  
  875. EOF
  876. eval $ac_link
  877. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  878.   :
  879. else
  880.   ac_cv_header_stdc=no
  881. fi
  882. fi
  883. rm -fr conftest*
  884. fi
  885. fi
  886. echo "$ac_t""$ac_cv_header_stdc" 1>&4
  887. if test $ac_cv_header_stdc = yes; then
  888.   cat >> confdefs.h <<\EOF
  889. #define STDC_HEADERS 1
  890. EOF
  891.  
  892. fi
  893.  
  894. for ac_hdr in errno.h unistd.h string.h memory.h utime.h fcntl.h ndbm.h sys/select.h sys/timeb.h sys/wait.h
  895. do
  896. ac_safe=`echo "$ac_hdr" | tr './' '__'`
  897. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  898. if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  899.   echo $ac_n "(cached) $ac_c" 1>&4
  900. else
  901.   cat > conftest.$ac_ext <<EOF
  902. #line 903 "configure"
  903. #include "confdefs.h"
  904. #include <$ac_hdr>
  905. EOF
  906. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  907. ac_err=`grep -v '^ *+' conftest.out`
  908. if test -z "$ac_err"; then
  909.   rm -rf conftest*
  910.   eval "ac_cv_header_$ac_safe=yes"
  911. else
  912.   echo "$ac_err" >&5
  913.   rm -rf conftest*
  914.   eval "ac_cv_header_$ac_safe=no"
  915. fi
  916. rm -f conftest*
  917. fi
  918. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  919.   echo "$ac_t""yes" 1>&4
  920.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  921.   cat >> confdefs.h <<EOF
  922. #define $ac_tr_hdr 1
  923. EOF
  924.  
  925. else
  926.   echo "$ac_t""no" 1>&4
  927. fi
  928. done
  929.  
  930. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
  931. if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then
  932.   echo $ac_n "(cached) $ac_c" 1>&4
  933. else
  934.   cat > conftest.$ac_ext <<EOF
  935. #line 936 "configure"
  936. #include "confdefs.h"
  937. #include <sys/types.h>
  938. #include <signal.h>
  939. #ifdef signal
  940. #undef signal
  941. #endif
  942. extern void (*signal ()) ();
  943. int main() { return 0; }
  944. int t() {
  945. int i;
  946. ; return 0; }
  947. EOF
  948. if eval $ac_link; then
  949.   rm -rf conftest*
  950.   ac_cv_type_signal=void
  951. else
  952.   rm -rf conftest*
  953.   ac_cv_type_signal=int
  954. fi
  955. rm -f conftest*
  956.  
  957. fi
  958. echo "$ac_t""$ac_cv_type_signal" 1>&4
  959. cat >> confdefs.h <<EOF
  960. #define RETSIGTYPE $ac_cv_type_signal
  961. EOF
  962.  
  963.  
  964. ac_header_dirent=no
  965. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  966. do
  967. ac_safe=`echo "$ac_hdr" | tr './' '__'`
  968. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
  969. if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  970.   echo $ac_n "(cached) $ac_c" 1>&4
  971. else
  972.   cat > conftest.$ac_ext <<EOF
  973. #line 974 "configure"
  974. #include "confdefs.h"
  975. #include <sys/types.h>
  976. #include <$ac_hdr>
  977. int main() { return 0; }
  978. int t() {
  979. DIR *dirp = 0;
  980. ; return 0; }
  981. EOF
  982. if eval $ac_link; then
  983.   rm -rf conftest*
  984.   eval "ac_cv_header_dirent_$ac_safe=yes"
  985. else
  986.   rm -rf conftest*
  987.   eval "ac_cv_header_dirent_$ac_safe=no"
  988. fi
  989. rm -f conftest*
  990.  
  991. fi
  992. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  993.   echo "$ac_t""yes" 1>&4
  994.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  995.   cat >> confdefs.h <<EOF
  996. #define $ac_tr_hdr 1
  997. EOF
  998.  ac_header_dirent=$ac_hdr; break
  999. else
  1000.   echo "$ac_t""no" 1>&4
  1001. fi
  1002. done
  1003. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix,
  1004. # and -lx contains other useful things as well.  (FIXME what are they?)
  1005. if test $ac_header_dirent = dirent.h; then
  1006. echo $ac_n "checking for -ldir""... $ac_c" 1>&4
  1007. if eval "test \"`echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
  1008.   echo $ac_n "(cached) $ac_c" 1>&4
  1009. else
  1010.   ac_save_LIBS="$LIBS"
  1011. LIBS="$LIBS -ldir "
  1012. cat > conftest.$ac_ext <<EOF
  1013. #line 1014 "configure"
  1014. #include "confdefs.h"
  1015.  
  1016. int main() { return 0; }
  1017. int t() {
  1018. opendir()
  1019. ; return 0; }
  1020. EOF
  1021. if eval $ac_link; then
  1022.   rm -rf conftest*
  1023.   eval "ac_cv_lib_dir=yes"
  1024. else
  1025.   rm -rf conftest*
  1026.   eval "ac_cv_lib_dir=no"
  1027. fi
  1028. rm -f conftest*
  1029. LIBS="$ac_save_LIBS"
  1030.  
  1031. fi
  1032. if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
  1033.   echo "$ac_t""yes" 1>&4
  1034.   LIBS="$LIBS -ldir"
  1035. else
  1036.   echo "$ac_t""no" 1>&4
  1037. fi
  1038.  
  1039. fi
  1040. echo $ac_n "checking for -lx""... $ac_c" 1>&4
  1041. if eval "test \"`echo '${'ac_cv_lib_x'+set}'`\" = set"; then
  1042.   echo $ac_n "(cached) $ac_c" 1>&4
  1043. else
  1044.   ac_save_LIBS="$LIBS"
  1045. LIBS="$LIBS -lx "
  1046. cat > conftest.$ac_ext <<EOF
  1047. #line 1048 "configure"
  1048. #include "confdefs.h"
  1049.  
  1050. int main() { return 0; }
  1051. int t() {
  1052. main()
  1053. ; return 0; }
  1054. EOF
  1055. if eval $ac_link; then
  1056.   rm -rf conftest*
  1057.   eval "ac_cv_lib_x=yes"
  1058. else
  1059.   rm -rf conftest*
  1060.   eval "ac_cv_lib_x=no"
  1061. fi
  1062. rm -f conftest*
  1063. LIBS="$ac_save_LIBS"
  1064.  
  1065. fi
  1066. if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
  1067.   echo "$ac_t""yes" 1>&4
  1068.   LIBS="$LIBS -lx"
  1069. else
  1070.   echo "$ac_t""no" 1>&4
  1071. fi
  1072.  
  1073.  
  1074. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&4
  1075. if eval "test \"`echo '${'ac_cv_type_uid_t'+set}'`\" = set"; then
  1076.   echo $ac_n "(cached) $ac_c" 1>&4
  1077. else
  1078.   cat > conftest.$ac_ext <<EOF
  1079. #line 1080 "configure"
  1080. #include "confdefs.h"
  1081. #include <sys/types.h>
  1082. EOF
  1083. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1084.   egrep "uid_t" >/dev/null 2>&1; then
  1085.   rm -rf conftest*
  1086.   ac_cv_type_uid_t=yes
  1087. else
  1088.   rm -rf conftest*
  1089.   ac_cv_type_uid_t=no
  1090. fi
  1091. rm -f conftest*
  1092.  
  1093. fi
  1094. echo "$ac_t""$ac_cv_type_uid_t" 1>&4
  1095. if test $ac_cv_type_uid_t = no; then
  1096.   cat >> confdefs.h <<\EOF
  1097. #define uid_t int
  1098. EOF
  1099.  
  1100.   cat >> confdefs.h <<\EOF
  1101. #define gid_t int
  1102. EOF
  1103.  
  1104. fi
  1105.  
  1106. echo $ac_n "checking for mode_t""... $ac_c" 1>&4
  1107. if eval "test \"`echo '${'ac_cv_type_mode_t'+set}'`\" = set"; then
  1108.   echo $ac_n "(cached) $ac_c" 1>&4
  1109. else
  1110.   cat > conftest.$ac_ext <<EOF
  1111. #line 1112 "configure"
  1112. #include "confdefs.h"
  1113. #include <sys/types.h>
  1114. #if STDC_HEADERS
  1115. #include <stdlib.h>
  1116. #endif
  1117. EOF
  1118. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1119.   egrep "mode_t" >/dev/null 2>&1; then
  1120.   rm -rf conftest*
  1121.   ac_cv_type_mode_t=yes
  1122. else
  1123.   rm -rf conftest*
  1124.   ac_cv_type_mode_t=no
  1125. fi
  1126. rm -f conftest*
  1127.  
  1128. fi
  1129. echo "$ac_t""$ac_cv_type_mode_t" 1>&4
  1130. if test $ac_cv_type_mode_t = no; then
  1131.   cat >> confdefs.h <<\EOF
  1132. #define mode_t int
  1133. EOF
  1134.  
  1135. fi
  1136.  
  1137. echo $ac_n "checking for size_t""... $ac_c" 1>&4
  1138. if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
  1139.   echo $ac_n "(cached) $ac_c" 1>&4
  1140. else
  1141.   cat > conftest.$ac_ext <<EOF
  1142. #line 1143 "configure"
  1143. #include "confdefs.h"
  1144. #include <sys/types.h>
  1145. #if STDC_HEADERS
  1146. #include <stdlib.h>
  1147. #endif
  1148. EOF
  1149. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1150.   egrep "size_t" >/dev/null 2>&1; then
  1151.   rm -rf conftest*
  1152.   ac_cv_type_size_t=yes
  1153. else
  1154.   rm -rf conftest*
  1155.   ac_cv_type_size_t=no
  1156. fi
  1157. rm -f conftest*
  1158.  
  1159. fi
  1160. echo "$ac_t""$ac_cv_type_size_t" 1>&4
  1161. if test $ac_cv_type_size_t = no; then
  1162.   cat >> confdefs.h <<\EOF
  1163. #define size_t unsigned
  1164. EOF
  1165.  
  1166. fi
  1167.  
  1168. echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&4
  1169. if eval "test \"`echo '${'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  1170.   echo $ac_n "(cached) $ac_c" 1>&4
  1171. else
  1172.   if test "$GCC" = yes; then
  1173.   # GCC predefines this symbol on systems where it applies.
  1174. cat > conftest.$ac_ext <<EOF
  1175. #line 1176 "configure"
  1176. #include "confdefs.h"
  1177. #ifdef __CHAR_UNSIGNED__
  1178.   yes
  1179. #endif
  1180.  
  1181. EOF
  1182. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1183.   egrep "yes" >/dev/null 2>&1; then
  1184.   rm -rf conftest*
  1185.   ac_cv_c_char_unsigned=yes
  1186. else
  1187.   rm -rf conftest*
  1188.   ac_cv_c_char_unsigned=no
  1189. fi
  1190. rm -f conftest*
  1191.  
  1192. else
  1193. if test "$cross_compiling" = yes; then
  1194.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1195. else
  1196. cat > conftest.$ac_ext <<EOF
  1197. #line 1198 "configure"
  1198. #include "confdefs.h"
  1199. /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1200. #if !defined(__STDC__) || __STDC__ != 1
  1201. #define volatile
  1202. #endif
  1203. main() {
  1204.   volatile char c = 255; exit(c < 0);
  1205. }
  1206. EOF
  1207. eval $ac_link
  1208. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1209.   ac_cv_c_char_unsigned=yes
  1210. else
  1211.   ac_cv_c_char_unsigned=no
  1212. fi
  1213. fi
  1214. rm -fr conftest*
  1215. fi
  1216. fi
  1217. echo "$ac_t""$ac_cv_c_char_unsigned" 1>&4
  1218. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  1219.   cat >> confdefs.h <<\EOF
  1220. #define __CHAR_UNSIGNED__ 1
  1221. EOF
  1222.  
  1223. fi
  1224.  
  1225. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&4
  1226. if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then
  1227.   echo $ac_n "(cached) $ac_c" 1>&4
  1228. else
  1229.   cat > conftest.$ac_ext <<EOF
  1230. #line 1231 "configure"
  1231. #include "confdefs.h"
  1232. #include <sys/types.h>
  1233. #include <time.h>
  1234. int main() { return 0; }
  1235. int t() {
  1236. struct tm *tp; tp->tm_sec;
  1237. ; return 0; }
  1238. EOF
  1239. if eval $ac_link; then
  1240.   rm -rf conftest*
  1241.   ac_cv_struct_tm=time.h
  1242. else
  1243.   rm -rf conftest*
  1244.   ac_cv_struct_tm=sys/time.h
  1245. fi
  1246. rm -f conftest*
  1247.  
  1248. fi
  1249. echo "$ac_t""$ac_cv_struct_tm" 1>&4
  1250. if test $ac_cv_struct_tm = sys/time.h; then
  1251.   cat >> confdefs.h <<\EOF
  1252. #define TM_IN_SYS_TIME 1
  1253. EOF
  1254.  
  1255. fi
  1256.  
  1257. for ac_func in getwd mkdir rename strdup dup2 strerror
  1258. do
  1259. echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1260. if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1261.   echo $ac_n "(cached) $ac_c" 1>&4
  1262. else
  1263.   cat > conftest.$ac_ext <<EOF
  1264. #line 1265 "configure"
  1265. #include "confdefs.h"
  1266. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1267. int main() { return 0; }
  1268. int t() {
  1269.  
  1270. /* The GNU C library defines this for functions which it implements
  1271.     to always fail with ENOSYS.  Some functions are actually named
  1272.     something starting with __ and the normal name is an alias.  */
  1273. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1274. choke me
  1275. #else
  1276. /* Override any gcc2 internal prototype to avoid an error.  */
  1277. char $ac_func(); $ac_func();
  1278. #endif
  1279.  
  1280. ; return 0; }
  1281. EOF
  1282. if eval $ac_link; then
  1283.   rm -rf conftest*
  1284.   eval "ac_cv_func_$ac_func=yes"
  1285. else
  1286.   rm -rf conftest*
  1287.   eval "ac_cv_func_$ac_func=no"
  1288. fi
  1289. rm -f conftest*
  1290.  
  1291. fi
  1292. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1293.   echo "$ac_t""yes" 1>&4
  1294.   :
  1295. else
  1296.   echo "$ac_t""no" 1>&4
  1297. LIBOBJS="$LIBOBJS ${ac_func}.o"
  1298. fi
  1299.  
  1300. done
  1301.  
  1302. for ac_func in fchmod fsync ftime mkfifo putenv setvbuf vfork vprintf ftruncate
  1303. do
  1304. echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1305. if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1306.   echo $ac_n "(cached) $ac_c" 1>&4
  1307. else
  1308.   cat > conftest.$ac_ext <<EOF
  1309. #line 1310 "configure"
  1310. #include "confdefs.h"
  1311. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1312. int main() { return 0; }
  1313. int t() {
  1314.  
  1315. /* The GNU C library defines this for functions which it implements
  1316.     to always fail with ENOSYS.  Some functions are actually named
  1317.     something starting with __ and the normal name is an alias.  */
  1318. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1319. choke me
  1320. #else
  1321. /* Override any gcc2 internal prototype to avoid an error.  */
  1322. char $ac_func(); $ac_func();
  1323. #endif
  1324.  
  1325. ; return 0; }
  1326. EOF
  1327. if eval $ac_link; then
  1328.   rm -rf conftest*
  1329.   eval "ac_cv_func_$ac_func=yes"
  1330. else
  1331.   rm -rf conftest*
  1332.   eval "ac_cv_func_$ac_func=no"
  1333. fi
  1334. rm -f conftest*
  1335.  
  1336. fi
  1337. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1338.   echo "$ac_t""yes" 1>&4
  1339.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1340.   cat >> confdefs.h <<EOF
  1341. #define $ac_tr_func 1
  1342. EOF
  1343.  
  1344. else
  1345.   echo "$ac_t""no" 1>&4
  1346. fi
  1347. done
  1348.  
  1349. echo $ac_n "checking for re_exec""... $ac_c" 1>&4
  1350. if eval "test \"`echo '${'ac_cv_func_re_exec'+set}'`\" = set"; then
  1351.   echo $ac_n "(cached) $ac_c" 1>&4
  1352. else
  1353.   cat > conftest.$ac_ext <<EOF
  1354. #line 1355 "configure"
  1355. #include "confdefs.h"
  1356. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1357. int main() { return 0; }
  1358. int t() {
  1359.  
  1360. /* The GNU C library defines this for functions which it implements
  1361.     to always fail with ENOSYS.  Some functions are actually named
  1362.     something starting with __ and the normal name is an alias.  */
  1363. #if defined (__stub_re_exec) || defined (__stub___re_exec)
  1364. choke me
  1365. #else
  1366. /* Override any gcc2 internal prototype to avoid an error.  */
  1367. char re_exec(); re_exec();
  1368. #endif
  1369.  
  1370. ; return 0; }
  1371. EOF
  1372. if eval $ac_link; then
  1373.   rm -rf conftest*
  1374.   eval "ac_cv_func_re_exec=yes"
  1375. else
  1376.   rm -rf conftest*
  1377.   eval "ac_cv_func_re_exec=no"
  1378. fi
  1379. rm -f conftest*
  1380.  
  1381. fi
  1382. if eval "test \"`echo '$ac_cv_func_'re_exec`\" = yes"; then
  1383.   echo "$ac_t""yes" 1>&4
  1384.   :
  1385. else
  1386.   echo "$ac_t""no" 1>&4
  1387. LIBOBJS="$LIBOBJS regex.o"
  1388. fi
  1389.  
  1390. echo $ac_n "checking for gethostname""... $ac_c" 1>&4
  1391. if eval "test \"`echo '${'ac_cv_func_gethostname'+set}'`\" = set"; then
  1392.   echo $ac_n "(cached) $ac_c" 1>&4
  1393. else
  1394.   cat > conftest.$ac_ext <<EOF
  1395. #line 1396 "configure"
  1396. #include "confdefs.h"
  1397. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1398. int main() { return 0; }
  1399. int t() {
  1400.  
  1401. /* The GNU C library defines this for functions which it implements
  1402.     to always fail with ENOSYS.  Some functions are actually named
  1403.     something starting with __ and the normal name is an alias.  */
  1404. #if defined (__stub_gethostname) || defined (__stub___gethostname)
  1405. choke me
  1406. #else
  1407. /* Override any gcc2 internal prototype to avoid an error.  */
  1408. char gethostname(); gethostname();
  1409. #endif
  1410.  
  1411. ; return 0; }
  1412. EOF
  1413. if eval $ac_link; then
  1414.   rm -rf conftest*
  1415.   eval "ac_cv_func_gethostname=yes"
  1416. else
  1417.   rm -rf conftest*
  1418.   eval "ac_cv_func_gethostname=no"
  1419. fi
  1420. rm -f conftest*
  1421.  
  1422. fi
  1423. if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
  1424.   echo "$ac_t""yes" 1>&4
  1425.   :
  1426. else
  1427.   echo "$ac_t""no" 1>&4
  1428. LIBOBJS="$LIBOBJS hostname.o"
  1429. fi
  1430.  
  1431. echo $ac_n "checking for memmove""... $ac_c" 1>&4
  1432. if eval "test \"`echo '${'ac_cv_func_memmove'+set}'`\" = set"; then
  1433.   echo $ac_n "(cached) $ac_c" 1>&4
  1434. else
  1435.   cat > conftest.$ac_ext <<EOF
  1436. #line 1437 "configure"
  1437. #include "confdefs.h"
  1438. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1439. int main() { return 0; }
  1440. int t() {
  1441.  
  1442. /* The GNU C library defines this for functions which it implements
  1443.     to always fail with ENOSYS.  Some functions are actually named
  1444.     something starting with __ and the normal name is an alias.  */
  1445. #if defined (__stub_memmove) || defined (__stub___memmove)
  1446. choke me
  1447. #else
  1448. /* Override any gcc2 internal prototype to avoid an error.  */
  1449. char memmove(); memmove();
  1450. #endif
  1451.  
  1452. ; return 0; }
  1453. EOF
  1454. if eval $ac_link; then
  1455.   rm -rf conftest*
  1456.   eval "ac_cv_func_memmove=yes"
  1457. else
  1458.   rm -rf conftest*
  1459.   eval "ac_cv_func_memmove=no"
  1460. fi
  1461. rm -f conftest*
  1462.  
  1463. fi
  1464. if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
  1465.   echo "$ac_t""yes" 1>&4
  1466.   :
  1467. else
  1468.   echo "$ac_t""no" 1>&4
  1469. LIBOBJS="$LIBOBJS memmove.o"
  1470. fi
  1471.  
  1472. echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&4
  1473. if eval "test \"`echo '${'ac_cv_func_utime_null'+set}'`\" = set"; then
  1474.   echo $ac_n "(cached) $ac_c" 1>&4
  1475. else
  1476.   rm -f conftestdata; > conftestdata
  1477. # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
  1478. if test "$cross_compiling" = yes; then
  1479.   ac_cv_func_utime_null=no
  1480. else
  1481. cat > conftest.$ac_ext <<EOF
  1482. #line 1483 "configure"
  1483. #include "confdefs.h"
  1484. #include <sys/types.h>
  1485. #include <sys/stat.h>
  1486. main() {
  1487. struct stat s, t;
  1488. exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
  1489. && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
  1490. && t.st_mtime - s.st_mtime < 120));
  1491. }
  1492. EOF
  1493. eval $ac_link
  1494. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1495.   ac_cv_func_utime_null=yes
  1496. else
  1497.   ac_cv_func_utime_null=no
  1498. fi
  1499. fi
  1500. rm -fr conftest*
  1501. rm -f core
  1502. fi
  1503. echo "$ac_t""$ac_cv_func_utime_null" 1>&4
  1504. if test $ac_cv_func_utime_null = yes; then
  1505.   cat >> confdefs.h <<\EOF
  1506. #define HAVE_UTIME_NULL 1
  1507. EOF
  1508.  
  1509. fi
  1510.  
  1511. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1512. # for constant arguments.  Useless!
  1513. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  1514. if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1515.   echo $ac_n "(cached) $ac_c" 1>&4
  1516. else
  1517.   cat > conftest.$ac_ext <<EOF
  1518. #line 1519 "configure"
  1519. #include "confdefs.h"
  1520. #include <alloca.h>
  1521. int main() { return 0; }
  1522. int t() {
  1523. char *p = alloca(2 * sizeof(int));
  1524. ; return 0; }
  1525. EOF
  1526. if eval $ac_link; then
  1527.   rm -rf conftest*
  1528.   ac_cv_header_alloca_h=yes
  1529. else
  1530.   rm -rf conftest*
  1531.   ac_cv_header_alloca_h=no
  1532. fi
  1533. rm -f conftest*
  1534.  
  1535. fi
  1536. echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  1537. if test $ac_cv_header_alloca_h = yes; then
  1538.   cat >> confdefs.h <<\EOF
  1539. #define HAVE_ALLOCA_H 1
  1540. EOF
  1541.  
  1542. fi
  1543.  
  1544. echo $ac_n "checking for alloca""... $ac_c" 1>&4
  1545. if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  1546.   echo $ac_n "(cached) $ac_c" 1>&4
  1547. else
  1548.   cat > conftest.$ac_ext <<EOF
  1549. #line 1550 "configure"
  1550. #include "confdefs.h"
  1551.  
  1552. #ifdef __GNUC__
  1553. # define alloca __builtin_alloca
  1554. #else
  1555. # if HAVE_ALLOCA_H
  1556. #  include <alloca.h>
  1557. # else
  1558. #  ifdef _AIX
  1559.  #pragma alloca
  1560. #  else
  1561. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1562. char *alloca ();
  1563. #   endif
  1564. #  endif
  1565. # endif
  1566. #endif
  1567.  
  1568. int main() { return 0; }
  1569. int t() {
  1570. char *p = (char *) alloca(1);
  1571. ; return 0; }
  1572. EOF
  1573. if eval $ac_link; then
  1574.   rm -rf conftest*
  1575.   ac_cv_func_alloca=yes
  1576. else
  1577.   rm -rf conftest*
  1578.   ac_cv_func_alloca=no
  1579. fi
  1580. rm -f conftest*
  1581.  
  1582. fi
  1583. echo "$ac_t""$ac_cv_func_alloca" 1>&4
  1584. if test $ac_cv_func_alloca = yes; then
  1585.   cat >> confdefs.h <<\EOF
  1586. #define HAVE_ALLOCA 1
  1587. EOF
  1588.  
  1589. fi
  1590.  
  1591. if test $ac_cv_func_alloca = no; then
  1592.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1593.   # that cause trouble.  Some versions do not even contain alloca or
  1594.   # contain a buggy version.  If you still want to use their alloca,
  1595.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1596.   ALLOCA=alloca.o
  1597.   cat >> confdefs.h <<\EOF
  1598. #define C_ALLOCA 1
  1599. EOF
  1600.  
  1601.  
  1602. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  1603. if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  1604.   echo $ac_n "(cached) $ac_c" 1>&4
  1605. else
  1606.   cat > conftest.$ac_ext <<EOF
  1607. #line 1608 "configure"
  1608. #include "confdefs.h"
  1609. #if defined(CRAY) && ! defined(CRAY2)
  1610. webecray
  1611. #else
  1612. wenotbecray
  1613. #endif
  1614.  
  1615. EOF
  1616. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1617.   egrep "webecray" >/dev/null 2>&1; then
  1618.   rm -rf conftest*
  1619.   ac_cv_os_cray=yes
  1620. else
  1621.   rm -rf conftest*
  1622.   ac_cv_os_cray=no
  1623. fi
  1624. rm -f conftest*
  1625.  
  1626. fi
  1627. echo "$ac_t""$ac_cv_os_cray" 1>&4
  1628. if test $ac_cv_os_cray = yes; then
  1629. echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  1630. if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  1631.   echo $ac_n "(cached) $ac_c" 1>&4
  1632. else
  1633.   cat > conftest.$ac_ext <<EOF
  1634. #line 1635 "configure"
  1635. #include "confdefs.h"
  1636. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1637. int main() { return 0; }
  1638. int t() {
  1639.  
  1640. /* The GNU C library defines this for functions which it implements
  1641.     to always fail with ENOSYS.  Some functions are actually named
  1642.     something starting with __ and the normal name is an alias.  */
  1643. #if defined (__stub__getb67) || defined (__stub____getb67)
  1644. choke me
  1645. #else
  1646. /* Override any gcc2 internal prototype to avoid an error.  */
  1647. char _getb67(); _getb67();
  1648. #endif
  1649.  
  1650. ; return 0; }
  1651. EOF
  1652. if eval $ac_link; then
  1653.   rm -rf conftest*
  1654.   eval "ac_cv_func__getb67=yes"
  1655. else
  1656.   rm -rf conftest*
  1657.   eval "ac_cv_func__getb67=no"
  1658. fi
  1659. rm -f conftest*
  1660.  
  1661. fi
  1662. if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  1663.   echo "$ac_t""yes" 1>&4
  1664.   cat >> confdefs.h <<\EOF
  1665. #define CRAY_STACKSEG_END _getb67
  1666. EOF
  1667.  
  1668. else
  1669.   echo "$ac_t""no" 1>&4
  1670. echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  1671. if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  1672.   echo $ac_n "(cached) $ac_c" 1>&4
  1673. else
  1674.   cat > conftest.$ac_ext <<EOF
  1675. #line 1676 "configure"
  1676. #include "confdefs.h"
  1677. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1678. int main() { return 0; }
  1679. int t() {
  1680.  
  1681. /* The GNU C library defines this for functions which it implements
  1682.     to always fail with ENOSYS.  Some functions are actually named
  1683.     something starting with __ and the normal name is an alias.  */
  1684. #if defined (__stub_GETB67) || defined (__stub___GETB67)
  1685. choke me
  1686. #else
  1687. /* Override any gcc2 internal prototype to avoid an error.  */
  1688. char GETB67(); GETB67();
  1689. #endif
  1690.  
  1691. ; return 0; }
  1692. EOF
  1693. if eval $ac_link; then
  1694.   rm -rf conftest*
  1695.   eval "ac_cv_func_GETB67=yes"
  1696. else
  1697.   rm -rf conftest*
  1698.   eval "ac_cv_func_GETB67=no"
  1699. fi
  1700. rm -f conftest*
  1701.  
  1702. fi
  1703. if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  1704.   echo "$ac_t""yes" 1>&4
  1705.   cat >> confdefs.h <<\EOF
  1706. #define CRAY_STACKSEG_END GETB67
  1707. EOF
  1708.  
  1709. else
  1710.   echo "$ac_t""no" 1>&4
  1711. echo $ac_n "checking for getb67""... $ac_c" 1>&4
  1712. if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  1713.   echo $ac_n "(cached) $ac_c" 1>&4
  1714. else
  1715.   cat > conftest.$ac_ext <<EOF
  1716. #line 1717 "configure"
  1717. #include "confdefs.h"
  1718. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1719. int main() { return 0; }
  1720. int t() {
  1721.  
  1722. /* The GNU C library defines this for functions which it implements
  1723.     to always fail with ENOSYS.  Some functions are actually named
  1724.     something starting with __ and the normal name is an alias.  */
  1725. #if defined (__stub_getb67) || defined (__stub___getb67)
  1726. choke me
  1727. #else
  1728. /* Override any gcc2 internal prototype to avoid an error.  */
  1729. char getb67(); getb67();
  1730. #endif
  1731.  
  1732. ; return 0; }
  1733. EOF
  1734. if eval $ac_link; then
  1735.   rm -rf conftest*
  1736.   eval "ac_cv_func_getb67=yes"
  1737. else
  1738.   rm -rf conftest*
  1739.   eval "ac_cv_func_getb67=no"
  1740. fi
  1741. rm -f conftest*
  1742.  
  1743. fi
  1744. if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  1745.   echo "$ac_t""yes" 1>&4
  1746.   cat >> confdefs.h <<\EOF
  1747. #define CRAY_STACKSEG_END getb67
  1748. EOF
  1749.  
  1750. else
  1751.   echo "$ac_t""no" 1>&4
  1752. fi
  1753.  
  1754. fi
  1755.  
  1756. fi
  1757.  
  1758. fi
  1759.  
  1760. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  1761. if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1762.   echo $ac_n "(cached) $ac_c" 1>&4
  1763. else
  1764.   if test "$cross_compiling" = yes; then
  1765.   ac_cv_c_stack_direction=0
  1766. else
  1767. cat > conftest.$ac_ext <<EOF
  1768. #line 1769 "configure"
  1769. #include "confdefs.h"
  1770. find_stack_direction ()
  1771. {
  1772.   static char *addr = 0;
  1773.   auto char dummy;
  1774.   if (addr == 0)
  1775.     {
  1776.       addr = &dummy;
  1777.       return find_stack_direction ();
  1778.     }
  1779.   else
  1780.     return (&dummy > addr) ? 1 : -1;
  1781. }
  1782. main ()
  1783. {
  1784.   exit (find_stack_direction() < 0);
  1785. }
  1786. EOF
  1787. eval $ac_link
  1788. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1789.   ac_cv_c_stack_direction=1
  1790. else
  1791.   ac_cv_c_stack_direction=-1
  1792. fi
  1793. fi
  1794. rm -fr conftest*
  1795. fi
  1796. echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  1797. cat >> confdefs.h <<EOF
  1798. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1799. EOF
  1800.  
  1801. fi
  1802.  
  1803. echo $ac_n "checking for long file names""... $ac_c" 1>&4
  1804. if eval "test \"`echo '${'ac_cv_sys_long_file_names'+set}'`\" = set"; then
  1805.   echo $ac_n "(cached) $ac_c" 1>&4
  1806. else
  1807.   ac_cv_sys_long_file_names=yes
  1808. # Test for long file names in all the places we know might matter:
  1809. #      .        the current directory, where building will happen
  1810. #      /tmp        where it might want to write temporary files
  1811. #      /var/tmp        likewise
  1812. #      /usr/tmp        likewise
  1813. #      $prefix/lib    where we will be installing things
  1814. #      $exec_prefix/lib    likewise
  1815. # eval it to expand exec_prefix.
  1816. for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
  1817.   test -d $ac_dir || continue
  1818.   test -w $ac_dir || continue # It is less confusing to not echo anything here.
  1819.   (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  1820.   (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  1821.   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  1822.   if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
  1823.     ac_cv_sys_long_file_names=no
  1824.     rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  1825.     break
  1826.   fi
  1827.   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  1828. done
  1829. fi
  1830. echo "$ac_t""$ac_cv_sys_long_file_names" 1>&4
  1831. if test $ac_cv_sys_long_file_names = yes; then
  1832.   cat >> confdefs.h <<\EOF
  1833. #define HAVE_LONG_FILE_NAMES 1
  1834. EOF
  1835.  
  1836. fi
  1837.  
  1838. trap '' 1 2 15
  1839. if test -w $cache_file; then
  1840. echo "updating cache $cache_file"
  1841. cat > $cache_file <<\EOF
  1842. # This file is a shell script that caches the results of configure
  1843. # tests run on this system so they can be shared between configure
  1844. # scripts and configure runs.  It is not useful on other systems.
  1845. # If it contains results you don't want to keep, you may remove or edit it.
  1846. #
  1847. # By default, configure uses ./config.cache as the cache file,
  1848. # creating it if it does not exist already.  You can give configure
  1849. # the --cache-file=FILE option to use a different cache file; that is
  1850. # what configure does when it calls configure scripts in
  1851. # subdirectories, so they share the cache.
  1852. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1853. # config.status only pays attention to the cache file if you give it the
  1854. # --recheck option to rerun configure.
  1855. #
  1856. EOF
  1857. # Ultrix sh set writes to stderr and can't be redirected directly.
  1858. (set) 2>&1 |
  1859.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  1860.   >> $cache_file
  1861. else
  1862. echo "not updating unwritable cache $cache_file"
  1863. fi
  1864.  
  1865. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  1866.  
  1867. test "x$prefix" = xNONE && prefix=/usr/local
  1868. # Let make expand exec_prefix.
  1869. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1870.  
  1871. # Any assignment to VPATH causes Sun make to only execute
  1872. # the first set of double-colon rules, so remove it if not needed.
  1873. # If there is a colon in the path, we need to keep it.
  1874. if test "x$srcdir" = x.; then
  1875.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1876. fi
  1877.  
  1878. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1879.  
  1880. DEFS=-DHAVE_CONFIG_H
  1881.  
  1882. # Without the "./", some shells look in PATH for config.status.
  1883. : ${CONFIG_STATUS=./config.status}
  1884.  
  1885. echo creating $CONFIG_STATUS
  1886. rm -f $CONFIG_STATUS
  1887. cat > $CONFIG_STATUS <<EOF
  1888. #!/bin/sh
  1889. # Generated automatically by configure.
  1890. # Run this file to recreate the current configuration.
  1891. # This directory was configured as follows,
  1892. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1893. #
  1894. # $0 $ac_configure_args
  1895. #
  1896. # Compiler output produced by configure, useful for debugging
  1897. # configure, is in ./config.log if it exists.
  1898.  
  1899. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1900. for ac_option
  1901. do
  1902.   case "\$ac_option" in
  1903.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1904.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1905.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1906.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1907.     echo "$CONFIG_STATUS generated by autoconf version 1.119"
  1908.     exit 0 ;;
  1909.   -help | --help | --hel | --he | --h)
  1910.     echo "\$ac_cs_usage"; exit 0 ;;
  1911.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1912.   esac
  1913. done
  1914.  
  1915. ac_given_srcdir=$srcdir
  1916. ac_given_INSTALL="$INSTALL"
  1917.  
  1918. trap 'rm -fr Makefile lib/Makefile src/Makefile doc/Makefile man/Makefile contrib/Makefile config.h conftest*; exit 1' 1 2 15
  1919.  
  1920. # Protect against being on the right side of a sed subst in config.status. 
  1921. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1922.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1923. $ac_vpsub
  1924. $extrasub
  1925. s%@CFLAGS@%$CFLAGS%g
  1926. s%@CPPFLAGS@%$CPPFLAGS%g
  1927. s%@CXXFLAGS@%$CXXFLAGS%g
  1928. s%@DEFS@%$DEFS%g
  1929. s%@LDFLAGS@%$LDFLAGS%g
  1930. s%@LIBS@%$LIBS%g
  1931. s%@exec_prefix@%$exec_prefix%g
  1932. s%@prefix@%$prefix%g
  1933. s%@CC@%$CC%g
  1934. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1935. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1936. s%@RANLIB@%$RANLIB%g
  1937. s%@YACC@%$YACC%g
  1938. s%@CPP@%$CPP%g
  1939. s%@LIBOBJS@%$LIBOBJS%g
  1940. s%@ALLOCA@%$ALLOCA%g
  1941.  
  1942. CEOF
  1943. EOF
  1944. cat >> $CONFIG_STATUS <<EOF
  1945.  
  1946. CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile src/Makefile doc/Makefile man/Makefile contrib/Makefile"}
  1947. EOF
  1948. cat >> $CONFIG_STATUS <<\EOF
  1949. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1950.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1951.   case "$ac_file" in
  1952.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1953.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1954.   *) ac_file_in="${ac_file}.in" ;;
  1955.   esac
  1956.  
  1957.   # Adjust relative srcdir, etc. for subdirectories.
  1958.  
  1959.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1960.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1961.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1962.     # The file is in a subdirectory.
  1963.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1964.     ac_dir_suffix="/$ac_dir"
  1965.     # A "../" for each directory in $ac_dir_suffix.
  1966.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1967.   else
  1968.     ac_dir_suffix= ac_dots=
  1969.   fi
  1970.  
  1971.   case "$ac_given_srcdir" in
  1972.   .)  srcdir=.
  1973.       if test -z "$ac_dots"; then top_srcdir=.
  1974.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1975.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1976.   *) # Relative path.
  1977.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1978.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1979.   esac
  1980.  
  1981.   case "$ac_given_INSTALL" in
  1982.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1983.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1984.   esac
  1985.   echo creating "$ac_file"
  1986.   rm -f "$ac_file"
  1987.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1988.   case "$ac_file" in
  1989.   *Makefile*) ac_comsub="1i\\
  1990. # $configure_input" ;;
  1991.   *) ac_comsub= ;;
  1992.   esac
  1993.   sed -e "$ac_comsub
  1994. s%@configure_input@%$configure_input%g
  1995. s%@srcdir@%$srcdir%g
  1996. s%@top_srcdir@%$top_srcdir%g
  1997. s%@INSTALL@%$INSTALL%g
  1998. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1999. fi; done
  2000. rm -f conftest.subs
  2001.  
  2002. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2003. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2004. #
  2005. # ac_d sets the value in "#define NAME VALUE" lines.
  2006. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2007. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2008. ac_dC='\3'
  2009. ac_dD='%g'
  2010. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2011. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2012. ac_uB='\([     ]\)%\1#\2define\3'
  2013. ac_uC=' '
  2014. ac_uD='\4%g'
  2015. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2016. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2017. ac_eB='$%\1#\2define\3'
  2018. ac_eC=' '
  2019. ac_eD='%g'
  2020.  
  2021. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  2022. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2023.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2024.   case "$ac_file" in
  2025.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2026.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2027.   *) ac_file_in="${ac_file}.in" ;;
  2028.   esac
  2029.  
  2030.   echo creating $ac_file
  2031.  
  2032.   rm -f conftest.frag conftest.in conftest.out
  2033.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2034.  
  2035. EOF
  2036.  
  2037. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2038. # the proper values into config.h.in to produce config.h.  And first:
  2039. # Protect against being on the right side of a sed subst in config.status. 
  2040. # Protect against being in an unquoted here document in config.status.
  2041. rm -f conftest.vals
  2042. cat > conftest.hdr <<\EOF
  2043. s/[\\&%]/\\&/g
  2044. s%[\\$`]%\\&%g
  2045. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2046. s%ac_d%ac_u%gp
  2047. s%ac_u%ac_e%gp
  2048. EOF
  2049. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2050. rm -f conftest.hdr
  2051.  
  2052. # This sed command replaces #undef with comments.  This is necessary, for
  2053. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2054. # on some systems where configure will not decide to define it.
  2055. cat >> conftest.vals <<\EOF
  2056. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2057. EOF
  2058.  
  2059. # Break up conftest.vals because some shells have a limit on
  2060. # the size of here documents, and old seds have small limits too.
  2061. # Maximum number of lines to put in a single here document.
  2062. ac_max_here_lines=12
  2063.  
  2064. rm -f conftest.tail
  2065. while :
  2066. do
  2067.   ac_lines=`grep -c . conftest.vals`
  2068.   # grep -c gives empty output for an empty file on some AIX systems.
  2069.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2070.   # Write a limited-size here document to conftest.frag.
  2071.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2072.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2073.   echo 'CEOF
  2074.   sed -f conftest.frag conftest.in > conftest.out
  2075.   rm -f conftest.in
  2076.   mv conftest.out conftest.in
  2077. ' >> $CONFIG_STATUS
  2078.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2079.   rm -f conftest.vals
  2080.   mv conftest.tail conftest.vals
  2081. done
  2082. rm -f conftest.vals
  2083.  
  2084. cat >> $CONFIG_STATUS <<\EOF
  2085.   rm -f conftest.frag conftest.h
  2086.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2087.   cat conftest.in >> conftest.h
  2088.   rm -f conftest.in
  2089.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2090.     echo "$ac_file is unchanged"
  2091.     rm -f conftest.h
  2092.   else
  2093.     rm -f $ac_file
  2094.     mv conftest.h $ac_file
  2095.   fi
  2096. fi; done
  2097.  
  2098.  
  2099.  
  2100. exit 0
  2101. EOF
  2102. chmod +x $CONFIG_STATUS
  2103. rm -fr confdefs* $ac_clean_files
  2104. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  2105.  
  2106.