home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / textutils-1.11-src.lha / textutils-1.11 / configure < prev    next >
Encoding:
Text File  |  1994-11-13  |  57.5 KB  |  2,203 lines

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