home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / microcode / configure < prev    next >
Text File  |  2001-07-18  |  199KB  |  6,753 lines

  1. #! /bin/sh
  2.  
  3. # From configure.in Id: configure.in,v 11.13 2001/07/02 01:20:32 cph Exp 
  4. # Guess values for system-dependent variables and create Makefiles.
  5. # Generated automatically using autoconf version 2.13 
  6. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  7. #
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10.  
  11. # Defaults:
  12. ac_help=
  13. ac_default_prefix=/usr/local
  14. # Any additions from configure.in:
  15. ac_help="$ac_help
  16.   --enable-static-libs    Link some libraries statically [no]"
  17. ac_help="$ac_help
  18.   --enable-dynamic-crypto Link crypto primitives dynamically [yes]"
  19. ac_help="$ac_help
  20.   --with-openssl          Use the OpenSSL crypto library if available [yes]"
  21. ac_help="$ac_help
  22.   --with-mhash            Use the mhash library if available [yes]"
  23. ac_help="$ac_help
  24.   --with-mcrypt           Use the mcrypt library available [yes]"
  25. ac_help="$ac_help
  26.   --with-x                use the X Window System"
  27.  
  28. # Initialize some variables set by options.
  29. # The variables have the same names as the options, with
  30. # dashes changed to underlines.
  31. build=NONE
  32. cache_file=./config.cache
  33. exec_prefix=NONE
  34. host=NONE
  35. no_create=
  36. nonopt=NONE
  37. no_recursion=
  38. prefix=NONE
  39. program_prefix=NONE
  40. program_suffix=NONE
  41. program_transform_name=s,x,x,
  42. silent=
  43. site=
  44. srcdir=
  45. target=NONE
  46. verbose=
  47. x_includes=NONE
  48. x_libraries=NONE
  49. bindir='${exec_prefix}/bin'
  50. sbindir='${exec_prefix}/sbin'
  51. libexecdir='${exec_prefix}/libexec'
  52. datadir='${prefix}/share'
  53. sysconfdir='${prefix}/etc'
  54. sharedstatedir='${prefix}/com'
  55. localstatedir='${prefix}/var'
  56. libdir='${exec_prefix}/lib'
  57. includedir='${prefix}/include'
  58. oldincludedir='/usr/include'
  59. infodir='${prefix}/info'
  60. mandir='${prefix}/man'
  61.  
  62. # Initialize some other variables.
  63. subdirs=
  64. MFLAGS= MAKEFLAGS=
  65. SHELL=${CONFIG_SHELL-/bin/sh}
  66. # Maximum number of lines to put in a shell here document.
  67. ac_max_here_lines=12
  68.  
  69. ac_prev=
  70. for ac_option
  71. do
  72.  
  73.   # If the previous option needs an argument, assign it.
  74.   if test -n "$ac_prev"; then
  75.     eval "$ac_prev=\$ac_option"
  76.     ac_prev=
  77.     continue
  78.   fi
  79.  
  80.   case "$ac_option" in
  81.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  82.   *) ac_optarg= ;;
  83.   esac
  84.  
  85.   # Accept the important Cygnus configure options, so we can diagnose typos.
  86.  
  87.   case "$ac_option" in
  88.  
  89.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  90.     ac_prev=bindir ;;
  91.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  92.     bindir="$ac_optarg" ;;
  93.  
  94.   -build | --build | --buil | --bui | --bu)
  95.     ac_prev=build ;;
  96.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  97.     build="$ac_optarg" ;;
  98.  
  99.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  100.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  101.     ac_prev=cache_file ;;
  102.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  103.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  104.     cache_file="$ac_optarg" ;;
  105.  
  106.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  107.     ac_prev=datadir ;;
  108.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  109.   | --da=*)
  110.     datadir="$ac_optarg" ;;
  111.  
  112.   -disable-* | --disable-*)
  113.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  114.     # Reject names that are not valid shell variable names.
  115.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  116.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  117.     fi
  118.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  119.     eval "enable_${ac_feature}=no" ;;
  120.  
  121.   -enable-* | --enable-*)
  122.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  123.     # Reject names that are not valid shell variable names.
  124.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  125.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  126.     fi
  127.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  128.     case "$ac_option" in
  129.       *=*) ;;
  130.       *) ac_optarg=yes ;;
  131.     esac
  132.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  133.  
  134.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  135.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  136.   | --exec | --exe | --ex)
  137.     ac_prev=exec_prefix ;;
  138.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  139.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  140.   | --exec=* | --exe=* | --ex=*)
  141.     exec_prefix="$ac_optarg" ;;
  142.  
  143.   -gas | --gas | --ga | --g)
  144.     # Obsolete; use --with-gas.
  145.     with_gas=yes ;;
  146.  
  147.   -help | --help | --hel | --he)
  148.     # Omit some internal or obsolete options to make the list less imposing.
  149.     # This message is too long to be a string in the A/UX 3.1 sh.
  150.     cat << EOF
  151. Usage: configure [options] [host]
  152. Options: [defaults in brackets after descriptions]
  153. Configuration:
  154.   --cache-file=FILE       cache test results in FILE
  155.   --help                  print this message
  156.   --no-create             do not create output files
  157.   --quiet, --silent       do not print \`checking...' messages
  158.   --version               print the version of autoconf that created configure
  159. Directory and file names:
  160.   --prefix=PREFIX         install architecture-independent files in PREFIX
  161.                           [$ac_default_prefix]
  162.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  163.                           [same as prefix]
  164.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  165.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  166.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  167.   --datadir=DIR           read-only architecture-independent data in DIR
  168.                           [PREFIX/share]
  169.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  170.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  171.                           [PREFIX/com]
  172.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  173.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  174.   --includedir=DIR        C header files in DIR [PREFIX/include]
  175.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  176.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  177.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  178.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  179.   --program-prefix=PREFIX prepend PREFIX to installed program names
  180.   --program-suffix=SUFFIX append SUFFIX to installed program names
  181.   --program-transform-name=PROGRAM
  182.                           run sed PROGRAM on installed program names
  183. EOF
  184.     cat << EOF
  185. Host type:
  186.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  187.   --host=HOST             configure for HOST [guessed]
  188.   --target=TARGET         configure for TARGET [TARGET=HOST]
  189. Features and packages:
  190.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  191.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  192.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  193.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  194.   --x-includes=DIR        X include files are in DIR
  195.   --x-libraries=DIR       X library files are in DIR
  196. EOF
  197.     if test -n "$ac_help"; then
  198.       echo "--enable and --with options recognized:$ac_help"
  199.     fi
  200.     exit 0 ;;
  201.  
  202.   -host | --host | --hos | --ho)
  203.     ac_prev=host ;;
  204.   -host=* | --host=* | --hos=* | --ho=*)
  205.     host="$ac_optarg" ;;
  206.  
  207.   -includedir | --includedir | --includedi | --included | --include \
  208.   | --includ | --inclu | --incl | --inc)
  209.     ac_prev=includedir ;;
  210.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  211.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  212.     includedir="$ac_optarg" ;;
  213.  
  214.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  215.     ac_prev=infodir ;;
  216.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  217.     infodir="$ac_optarg" ;;
  218.  
  219.   -libdir | --libdir | --libdi | --libd)
  220.     ac_prev=libdir ;;
  221.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  222.     libdir="$ac_optarg" ;;
  223.  
  224.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  225.   | --libexe | --libex | --libe)
  226.     ac_prev=libexecdir ;;
  227.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  228.   | --libexe=* | --libex=* | --libe=*)
  229.     libexecdir="$ac_optarg" ;;
  230.  
  231.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  232.   | --localstate | --localstat | --localsta | --localst \
  233.   | --locals | --local | --loca | --loc | --lo)
  234.     ac_prev=localstatedir ;;
  235.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  236.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  237.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  238.     localstatedir="$ac_optarg" ;;
  239.  
  240.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  241.     ac_prev=mandir ;;
  242.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  243.     mandir="$ac_optarg" ;;
  244.  
  245.   -nfp | --nfp | --nf)
  246.     # Obsolete; use --without-fp.
  247.     with_fp=no ;;
  248.  
  249.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  250.   | --no-cr | --no-c)
  251.     no_create=yes ;;
  252.  
  253.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  254.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  255.     no_recursion=yes ;;
  256.  
  257.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  258.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  259.   | --oldin | --oldi | --old | --ol | --o)
  260.     ac_prev=oldincludedir ;;
  261.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  262.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  263.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  264.     oldincludedir="$ac_optarg" ;;
  265.  
  266.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  267.     ac_prev=prefix ;;
  268.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  269.     prefix="$ac_optarg" ;;
  270.  
  271.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  272.   | --program-pre | --program-pr | --program-p)
  273.     ac_prev=program_prefix ;;
  274.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  275.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  276.     program_prefix="$ac_optarg" ;;
  277.  
  278.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  279.   | --program-suf | --program-su | --program-s)
  280.     ac_prev=program_suffix ;;
  281.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  282.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  283.     program_suffix="$ac_optarg" ;;
  284.  
  285.   -program-transform-name | --program-transform-name \
  286.   | --program-transform-nam | --program-transform-na \
  287.   | --program-transform-n | --program-transform- \
  288.   | --program-transform | --program-transfor \
  289.   | --program-transfo | --program-transf \
  290.   | --program-trans | --program-tran \
  291.   | --progr-tra | --program-tr | --program-t)
  292.     ac_prev=program_transform_name ;;
  293.   -program-transform-name=* | --program-transform-name=* \
  294.   | --program-transform-nam=* | --program-transform-na=* \
  295.   | --program-transform-n=* | --program-transform-=* \
  296.   | --program-transform=* | --program-transfor=* \
  297.   | --program-transfo=* | --program-transf=* \
  298.   | --program-trans=* | --program-tran=* \
  299.   | --progr-tra=* | --program-tr=* | --program-t=*)
  300.     program_transform_name="$ac_optarg" ;;
  301.  
  302.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  303.   | -silent | --silent | --silen | --sile | --sil)
  304.     silent=yes ;;
  305.  
  306.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  307.     ac_prev=sbindir ;;
  308.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  309.   | --sbi=* | --sb=*)
  310.     sbindir="$ac_optarg" ;;
  311.  
  312.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  313.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  314.   | --sharedst | --shareds | --shared | --share | --shar \
  315.   | --sha | --sh)
  316.     ac_prev=sharedstatedir ;;
  317.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  318.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  319.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  320.   | --sha=* | --sh=*)
  321.     sharedstatedir="$ac_optarg" ;;
  322.  
  323.   -site | --site | --sit)
  324.     ac_prev=site ;;
  325.   -site=* | --site=* | --sit=*)
  326.     site="$ac_optarg" ;;
  327.  
  328.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  329.     ac_prev=srcdir ;;
  330.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  331.     srcdir="$ac_optarg" ;;
  332.  
  333.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  334.   | --syscon | --sysco | --sysc | --sys | --sy)
  335.     ac_prev=sysconfdir ;;
  336.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  337.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  338.     sysconfdir="$ac_optarg" ;;
  339.  
  340.   -target | --target | --targe | --targ | --tar | --ta | --t)
  341.     ac_prev=target ;;
  342.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  343.     target="$ac_optarg" ;;
  344.  
  345.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  346.     verbose=yes ;;
  347.  
  348.   -version | --version | --versio | --versi | --vers)
  349.     echo "configure generated by autoconf version 2.13"
  350.     exit 0 ;;
  351.  
  352.   -with-* | --with-*)
  353.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  354.     # Reject names that are not valid shell variable names.
  355.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  356.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  357.     fi
  358.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  359.     case "$ac_option" in
  360.       *=*) ;;
  361.       *) ac_optarg=yes ;;
  362.     esac
  363.     eval "with_${ac_package}='$ac_optarg'" ;;
  364.  
  365.   -without-* | --without-*)
  366.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  367.     # Reject names that are not valid shell variable names.
  368.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  369.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  370.     fi
  371.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  372.     eval "with_${ac_package}=no" ;;
  373.  
  374.   --x)
  375.     # Obsolete; use --with-x.
  376.     with_x=yes ;;
  377.  
  378.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  379.   | --x-incl | --x-inc | --x-in | --x-i)
  380.     ac_prev=x_includes ;;
  381.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  382.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  383.     x_includes="$ac_optarg" ;;
  384.  
  385.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  386.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  387.     ac_prev=x_libraries ;;
  388.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  389.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  390.     x_libraries="$ac_optarg" ;;
  391.  
  392.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  393.     ;;
  394.  
  395.   *)
  396.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  397.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  398.     fi
  399.     if test "x$nonopt" != xNONE; then
  400.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  401.     fi
  402.     nonopt="$ac_option"
  403.     ;;
  404.  
  405.   esac
  406. done
  407.  
  408. if test -n "$ac_prev"; then
  409.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  410. fi
  411.  
  412. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  413.  
  414. # File descriptor usage:
  415. # 0 standard input
  416. # 1 file creation
  417. # 2 errors and warnings
  418. # 3 some systems may open it to /dev/tty
  419. # 4 used on the Kubota Titan
  420. # 6 checking for... messages and results
  421. # 5 compiler messages saved in config.log
  422. if test "$silent" = yes; then
  423.   exec 6>/dev/null
  424. else
  425.   exec 6>&1
  426. fi
  427. exec 5>./config.log
  428.  
  429. echo "\
  430. This file contains any messages produced by compilers while
  431. running configure, to aid debugging if configure makes a mistake.
  432. " 1>&5
  433.  
  434. # Strip out --no-create and --no-recursion so they do not pile up.
  435. # Also quote any args containing shell metacharacters.
  436. ac_configure_args=
  437. for ac_arg
  438. do
  439.   case "$ac_arg" in
  440.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  441.   | --no-cr | --no-c) ;;
  442.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  443.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  444.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  445.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  446.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  447.   esac
  448. done
  449.  
  450. # NLS nuisances.
  451. # Only set these to C if already set.  These must not be set unconditionally
  452. # because not all systems understand e.g. LANG=C (notably SCO).
  453. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  454. # Non-C LC_CTYPE values break the ctype check.
  455. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  456. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  457. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  458. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  459.  
  460. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  461. rm -rf conftest* confdefs.h
  462. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  463. echo > confdefs.h
  464.  
  465. # A filename unique to this package, relative to the directory that
  466. # configure is in, which we can look for to find out if srcdir is correct.
  467. ac_unique_file=boot.c
  468.  
  469. # Find the source files, if location was not specified.
  470. if test -z "$srcdir"; then
  471.   ac_srcdir_defaulted=yes
  472.   # Try the directory containing this script, then its parent.
  473.   ac_prog=$0
  474.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  475.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  476.   srcdir=$ac_confdir
  477.   if test ! -r $srcdir/$ac_unique_file; then
  478.     srcdir=..
  479.   fi
  480. else
  481.   ac_srcdir_defaulted=no
  482. fi
  483. if test ! -r $srcdir/$ac_unique_file; then
  484.   if test "$ac_srcdir_defaulted" = yes; then
  485.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  486.   else
  487.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  488.   fi
  489. fi
  490. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  491.  
  492. # Prefer explicitly selected file to automatically selected ones.
  493. if test -z "$CONFIG_SITE"; then
  494.   if test "x$prefix" != xNONE; then
  495.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  496.   else
  497.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  498.   fi
  499. fi
  500. for ac_site_file in $CONFIG_SITE; do
  501.   if test -r "$ac_site_file"; then
  502.     echo "loading site script $ac_site_file"
  503.     . "$ac_site_file"
  504.   fi
  505. done
  506.  
  507. if test -r "$cache_file"; then
  508.   echo "loading cache $cache_file"
  509.   . $cache_file
  510. else
  511.   echo "creating cache $cache_file"
  512.   > $cache_file
  513. fi
  514.  
  515. ac_ext=c
  516. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  517. ac_cpp='$CPP $CPPFLAGS'
  518. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  519. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  520. cross_compiling=$ac_cv_prog_cc_cross
  521.  
  522. ac_exeext=
  523. ac_objext=o
  524. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  525.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  526.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  527.     ac_n= ac_c='
  528. ' ac_t='    '
  529.   else
  530.     ac_n=-n ac_c= ac_t=
  531.   fi
  532. else
  533.   ac_n= ac_c='\c' ac_t=
  534. fi
  535.  
  536.  
  537.  
  538.  
  539. # Check whether --enable-static-libs or --disable-static-libs was given.
  540. if test "${enable_static_libs+set}" = set; then
  541.   enableval="$enable_static_libs"
  542.   :
  543. fi
  544.  
  545. # Check whether --enable-dynamic-crypto or --disable-dynamic-crypto was given.
  546. if test "${enable_dynamic_crypto+set}" = set; then
  547.   enableval="$enable_dynamic_crypto"
  548.   :
  549. fi
  550.  
  551. # Check whether --with-openssl or --without-openssl was given.
  552. if test "${with_openssl+set}" = set; then
  553.   withval="$with_openssl"
  554.   :
  555. fi
  556.  
  557. # Check whether --with-mhash or --without-mhash was given.
  558. if test "${with_mhash+set}" = set; then
  559.   withval="$with_mhash"
  560.   :
  561. fi
  562.  
  563. # Check whether --with-mcrypt or --without-mcrypt was given.
  564. if test "${with_mcrypt+set}" = set; then
  565.   withval="$with_mcrypt"
  566.   :
  567. fi
  568.  
  569.  
  570. AS_FLAGS=
  571. GC_HEAD_FILES=
  572. LIB_X11=
  573. M4_FLAGS=
  574. OPTIONAL_BASES=
  575. OPTIONAL_OBJECTS=
  576. OPTIONAL_SOURCES=
  577. STATIC_LIBS=
  578. QUASI_STATIC_LIBS=
  579. STATIC_PREFIX=
  580. STATIC_SUFFIX=
  581. PRBFISH_LIBS=
  582. PRMD5_LIBS=
  583. SCHEME_DEFS=
  584. DLD_LDFLAGS=
  585. MODULE_BASES=
  586. MODULE_CFLAGS="-DCOMPILE_AS_MODULE"
  587. MODULE_LDFLAGS=
  588.  
  589. # Extract the first word of "gcc", so it can be a program name with args.
  590. set dummy gcc; ac_word=$2
  591. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  592. echo "configure:593: checking for $ac_word" >&5
  593. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  594.   echo $ac_n "(cached) $ac_c" 1>&6
  595. else
  596.   if test -n "$CC"; then
  597.   ac_cv_prog_CC="$CC" # Let the user override the test.
  598. else
  599.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  600.   ac_dummy="$PATH"
  601.   for ac_dir in $ac_dummy; do
  602.     test -z "$ac_dir" && ac_dir=.
  603.     if test -f $ac_dir/$ac_word; then
  604.       ac_cv_prog_CC="gcc"
  605.       break
  606.     fi
  607.   done
  608.   IFS="$ac_save_ifs"
  609. fi
  610. fi
  611. CC="$ac_cv_prog_CC"
  612. if test -n "$CC"; then
  613.   echo "$ac_t""$CC" 1>&6
  614. else
  615.   echo "$ac_t""no" 1>&6
  616. fi
  617.  
  618. if test -z "$CC"; then
  619.   # Extract the first word of "cc", so it can be a program name with args.
  620. set dummy cc; ac_word=$2
  621. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  622. echo "configure:623: checking for $ac_word" >&5
  623. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  624.   echo $ac_n "(cached) $ac_c" 1>&6
  625. else
  626.   if test -n "$CC"; then
  627.   ac_cv_prog_CC="$CC" # Let the user override the test.
  628. else
  629.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  630.   ac_prog_rejected=no
  631.   ac_dummy="$PATH"
  632.   for ac_dir in $ac_dummy; do
  633.     test -z "$ac_dir" && ac_dir=.
  634.     if test -f $ac_dir/$ac_word; then
  635.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  636.         ac_prog_rejected=yes
  637.     continue
  638.       fi
  639.       ac_cv_prog_CC="cc"
  640.       break
  641.     fi
  642.   done
  643.   IFS="$ac_save_ifs"
  644. if test $ac_prog_rejected = yes; then
  645.   # We found a bogon in the path, so make sure we never use it.
  646.   set dummy $ac_cv_prog_CC
  647.   shift
  648.   if test $# -gt 0; then
  649.     # We chose a different compiler from the bogus one.
  650.     # However, it has the same basename, so the bogon will be chosen
  651.     # first if we set CC to just the basename; use the full file name.
  652.     shift
  653.     set dummy "$ac_dir/$ac_word" "$@"
  654.     shift
  655.     ac_cv_prog_CC="$@"
  656.   fi
  657. fi
  658. fi
  659. fi
  660. CC="$ac_cv_prog_CC"
  661. if test -n "$CC"; then
  662.   echo "$ac_t""$CC" 1>&6
  663. else
  664.   echo "$ac_t""no" 1>&6
  665. fi
  666.  
  667.   if test -z "$CC"; then
  668.     case "`uname -s`" in
  669.     *win32* | *WIN32*)
  670.       # Extract the first word of "cl", so it can be a program name with args.
  671. set dummy cl; ac_word=$2
  672. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  673. echo "configure:674: checking for $ac_word" >&5
  674. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  675.   echo $ac_n "(cached) $ac_c" 1>&6
  676. else
  677.   if test -n "$CC"; then
  678.   ac_cv_prog_CC="$CC" # Let the user override the test.
  679. else
  680.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  681.   ac_dummy="$PATH"
  682.   for ac_dir in $ac_dummy; do
  683.     test -z "$ac_dir" && ac_dir=.
  684.     if test -f $ac_dir/$ac_word; then
  685.       ac_cv_prog_CC="cl"
  686.       break
  687.     fi
  688.   done
  689.   IFS="$ac_save_ifs"
  690. fi
  691. fi
  692. CC="$ac_cv_prog_CC"
  693. if test -n "$CC"; then
  694.   echo "$ac_t""$CC" 1>&6
  695. else
  696.   echo "$ac_t""no" 1>&6
  697. fi
  698.  ;;
  699.     esac
  700.   fi
  701.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  702. fi
  703.  
  704. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  705. echo "configure:706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  706.  
  707. ac_ext=c
  708. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  709. ac_cpp='$CPP $CPPFLAGS'
  710. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  711. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  712. cross_compiling=$ac_cv_prog_cc_cross
  713.  
  714. cat > conftest.$ac_ext << EOF
  715.  
  716. #line 717 "configure"
  717. #include "confdefs.h"
  718.  
  719. main(){return(0);}
  720. EOF
  721. if { (eval echo configure:722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  722.   ac_cv_prog_cc_works=yes
  723.   # If we can't run a trivial program, we are probably using a cross compiler.
  724.   if (./conftest; exit) 2>/dev/null; then
  725.     ac_cv_prog_cc_cross=no
  726.   else
  727.     ac_cv_prog_cc_cross=yes
  728.   fi
  729. else
  730.   echo "configure: failed program was:" >&5
  731.   cat conftest.$ac_ext >&5
  732.   ac_cv_prog_cc_works=no
  733. fi
  734. rm -fr conftest*
  735. ac_ext=c
  736. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  737. ac_cpp='$CPP $CPPFLAGS'
  738. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  739. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  740. cross_compiling=$ac_cv_prog_cc_cross
  741.  
  742. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  743. if test $ac_cv_prog_cc_works = no; then
  744.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  745. fi
  746. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  747. echo "configure:748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  748. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  749. cross_compiling=$ac_cv_prog_cc_cross
  750.  
  751. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  752. echo "configure:753: checking whether we are using GNU C" >&5
  753. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  754.   echo $ac_n "(cached) $ac_c" 1>&6
  755. else
  756.   cat > conftest.c <<EOF
  757. #ifdef __GNUC__
  758.   yes;
  759. #endif
  760. EOF
  761. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  762.   ac_cv_prog_gcc=yes
  763. else
  764.   ac_cv_prog_gcc=no
  765. fi
  766. fi
  767.  
  768. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  769.  
  770. if test $ac_cv_prog_gcc = yes; then
  771.   GCC=yes
  772. else
  773.   GCC=
  774. fi
  775.  
  776. ac_test_CFLAGS="${CFLAGS+set}"
  777. ac_save_CFLAGS="$CFLAGS"
  778. CFLAGS=
  779. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  780. echo "configure:781: checking whether ${CC-cc} accepts -g" >&5
  781. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  782.   echo $ac_n "(cached) $ac_c" 1>&6
  783. else
  784.   echo 'void f(){}' > conftest.c
  785. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  786.   ac_cv_prog_cc_g=yes
  787. else
  788.   ac_cv_prog_cc_g=no
  789. fi
  790. rm -f conftest*
  791.  
  792. fi
  793.  
  794. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  795. if test "$ac_test_CFLAGS" = set; then
  796.   CFLAGS="$ac_save_CFLAGS"
  797. elif test $ac_cv_prog_cc_g = yes; then
  798.   if test "$GCC" = yes; then
  799.     CFLAGS="-g -O2"
  800.   else
  801.     CFLAGS="-g"
  802.   fi
  803. else
  804.   if test "$GCC" = yes; then
  805.     CFLAGS="-O2"
  806.   else
  807.     CFLAGS=
  808.   fi
  809. fi
  810.  
  811. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  812. echo "configure:813: checking how to run the C preprocessor" >&5
  813. # On Suns, sometimes $CPP names a directory.
  814. if test -n "$CPP" && test -d "$CPP"; then
  815.   CPP=
  816. fi
  817. if test -z "$CPP"; then
  818. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  819.   echo $ac_n "(cached) $ac_c" 1>&6
  820. else
  821.     # This must be in double quotes, not single quotes, because CPP may get
  822.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  823.   CPP="${CC-cc} -E"
  824.   # On the NeXT, cc -E runs the code through the compiler's parser,
  825.   # not just through cpp.
  826.   cat > conftest.$ac_ext <<EOF
  827. #line 828 "configure"
  828. #include "confdefs.h"
  829. #include <assert.h>
  830. Syntax Error
  831. EOF
  832. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  833. { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  834. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  835. if test -z "$ac_err"; then
  836.   :
  837. else
  838.   echo "$ac_err" >&5
  839.   echo "configure: failed program was:" >&5
  840.   cat conftest.$ac_ext >&5
  841.   rm -rf conftest*
  842.   CPP="${CC-cc} -E -traditional-cpp"
  843.   cat > conftest.$ac_ext <<EOF
  844. #line 845 "configure"
  845. #include "confdefs.h"
  846. #include <assert.h>
  847. Syntax Error
  848. EOF
  849. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  850. { (eval echo configure:851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  851. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  852. if test -z "$ac_err"; then
  853.   :
  854. else
  855.   echo "$ac_err" >&5
  856.   echo "configure: failed program was:" >&5
  857.   cat conftest.$ac_ext >&5
  858.   rm -rf conftest*
  859.   CPP="${CC-cc} -nologo -E"
  860.   cat > conftest.$ac_ext <<EOF
  861. #line 862 "configure"
  862. #include "confdefs.h"
  863. #include <assert.h>
  864. Syntax Error
  865. EOF
  866. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  867. { (eval echo configure:868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  868. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  869. if test -z "$ac_err"; then
  870.   :
  871. else
  872.   echo "$ac_err" >&5
  873.   echo "configure: failed program was:" >&5
  874.   cat conftest.$ac_ext >&5
  875.   rm -rf conftest*
  876.   CPP=/lib/cpp
  877. fi
  878. rm -f conftest*
  879. fi
  880. rm -f conftest*
  881. fi
  882. rm -f conftest*
  883.   ac_cv_prog_CPP="$CPP"
  884. fi
  885.   CPP="$ac_cv_prog_CPP"
  886. else
  887.   ac_cv_prog_CPP="$CPP"
  888. fi
  889. echo "$ac_t""$CPP" 1>&6
  890.  
  891. if test $ac_cv_prog_gcc = yes; then
  892.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  893. echo "configure:894: checking whether ${CC-cc} needs -traditional" >&5
  894. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  895.   echo $ac_n "(cached) $ac_c" 1>&6
  896. else
  897.     ac_pattern="Autoconf.*'x'"
  898.   cat > conftest.$ac_ext <<EOF
  899. #line 900 "configure"
  900. #include "confdefs.h"
  901. #include <sgtty.h>
  902. Autoconf TIOCGETP
  903. EOF
  904. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  905.   egrep "$ac_pattern" >/dev/null 2>&1; then
  906.   rm -rf conftest*
  907.   ac_cv_prog_gcc_traditional=yes
  908. else
  909.   rm -rf conftest*
  910.   ac_cv_prog_gcc_traditional=no
  911. fi
  912. rm -f conftest*
  913.  
  914.  
  915.   if test $ac_cv_prog_gcc_traditional = no; then
  916.     cat > conftest.$ac_ext <<EOF
  917. #line 918 "configure"
  918. #include "confdefs.h"
  919. #include <termio.h>
  920. Autoconf TCGETA
  921. EOF
  922. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  923.   egrep "$ac_pattern" >/dev/null 2>&1; then
  924.   rm -rf conftest*
  925.   ac_cv_prog_gcc_traditional=yes
  926. fi
  927. rm -f conftest*
  928.  
  929.   fi
  930. fi
  931.  
  932. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  933.   if test $ac_cv_prog_gcc_traditional = yes; then
  934.     CC="$CC -traditional"
  935.   fi
  936. fi
  937.  
  938. ac_aux_dir=
  939. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  940.   if test -f $ac_dir/install-sh; then
  941.     ac_aux_dir=$ac_dir
  942.     ac_install_sh="$ac_aux_dir/install-sh -c"
  943.     break
  944.   elif test -f $ac_dir/install.sh; then
  945.     ac_aux_dir=$ac_dir
  946.     ac_install_sh="$ac_aux_dir/install.sh -c"
  947.     break
  948.   fi
  949. done
  950. if test -z "$ac_aux_dir"; then
  951.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  952. fi
  953. ac_config_guess=$ac_aux_dir/config.guess
  954. ac_config_sub=$ac_aux_dir/config.sub
  955. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  956.  
  957. # Find a good install program.  We prefer a C program (faster),
  958. # so one script is as good as another.  But avoid the broken or
  959. # incompatible versions:
  960. # SysV /etc/install, /usr/sbin/install
  961. # SunOS /usr/etc/install
  962. # IRIX /sbin/install
  963. # AIX /bin/install
  964. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  965. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  966. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  967. # ./install, which can be erroneously created by make from ./install.sh.
  968. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  969. echo "configure:970: checking for a BSD compatible install" >&5
  970. if test -z "$INSTALL"; then
  971. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  972.   echo $ac_n "(cached) $ac_c" 1>&6
  973. else
  974.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  975.   for ac_dir in $PATH; do
  976.     # Account for people who put trailing slashes in PATH elements.
  977.     case "$ac_dir/" in
  978.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  979.     *)
  980.       # OSF1 and SCO ODT 3.0 have their own names for install.
  981.       # Don't use installbsd from OSF since it installs stuff as root
  982.       # by default.
  983.       for ac_prog in ginstall scoinst install; do
  984.         if test -f $ac_dir/$ac_prog; then
  985.       if test $ac_prog = install &&
  986.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  987.         # AIX install.  It has an incompatible calling convention.
  988.         :
  989.       else
  990.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  991.         break 2
  992.       fi
  993.     fi
  994.       done
  995.       ;;
  996.     esac
  997.   done
  998.   IFS="$ac_save_IFS"
  999.  
  1000. fi
  1001.   if test "${ac_cv_path_install+set}" = set; then
  1002.     INSTALL="$ac_cv_path_install"
  1003.   else
  1004.     # As a last resort, use the slow shell script.  We don't cache a
  1005.     # path for INSTALL within a source directory, because that will
  1006.     # break other packages using the cache if that directory is
  1007.     # removed, or if the path is relative.
  1008.     INSTALL="$ac_install_sh"
  1009.   fi
  1010. fi
  1011. echo "$ac_t""$INSTALL" 1>&6
  1012.  
  1013. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1014. # It thinks the first close brace ends the variable substitution.
  1015. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1016.  
  1017. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1018.  
  1019. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1020.  
  1021. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1022. echo "configure:1023: checking whether ln -s works" >&5
  1023. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1024.   echo $ac_n "(cached) $ac_c" 1>&6
  1025. else
  1026.   rm -f conftestdata
  1027. if ln -s X conftestdata 2>/dev/null
  1028. then
  1029.   rm -f conftestdata
  1030.   ac_cv_prog_LN_S="ln -s"
  1031. else
  1032.   ac_cv_prog_LN_S=ln
  1033. fi
  1034. fi
  1035. LN_S="$ac_cv_prog_LN_S"
  1036. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1037.   echo "$ac_t""yes" 1>&6
  1038. else
  1039.   echo "$ac_t""no" 1>&6
  1040. fi
  1041.  
  1042. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1043. echo "configure:1044: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1044. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  1045. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1046.   echo $ac_n "(cached) $ac_c" 1>&6
  1047. else
  1048.   cat > conftestmake <<\EOF
  1049. all:
  1050.     @echo 'ac_maketemp="${MAKE}"'
  1051. EOF
  1052. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1053. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1054. if test -n "$ac_maketemp"; then
  1055.   eval ac_cv_prog_make_${ac_make}_set=yes
  1056. else
  1057.   eval ac_cv_prog_make_${ac_make}_set=no
  1058. fi
  1059. rm -f conftestmake
  1060. fi
  1061. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1062.   echo "$ac_t""yes" 1>&6
  1063.   SET_MAKE=
  1064. else
  1065.   echo "$ac_t""no" 1>&6
  1066.   SET_MAKE="MAKE=${MAKE-make}"
  1067. fi
  1068.  
  1069. if test "${GCC}" = "yes"; then
  1070.     CFLAGS="${CFLAGS} -Wall"
  1071. fi
  1072. if test "$(${INSTALL} --help 2> /dev/null | fgrep -e --preserve-timestamps)"
  1073. then
  1074.     INSTALL="${INSTALL} --preserve-timestamps"
  1075. fi
  1076.  
  1077. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  1078. echo "configure:1079: checking for dlopen in -ldl" >&5
  1079. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  1080. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1081.   echo $ac_n "(cached) $ac_c" 1>&6
  1082. else
  1083.   ac_save_LIBS="$LIBS"
  1084. LIBS="-ldl  $LIBS"
  1085. cat > conftest.$ac_ext <<EOF
  1086. #line 1087 "configure"
  1087. #include "confdefs.h"
  1088. /* Override any gcc2 internal prototype to avoid an error.  */
  1089. /* We use char because int might match the return type of a gcc2
  1090.     builtin and then its argument prototype would still apply.  */
  1091. char dlopen();
  1092.  
  1093. int main() {
  1094. dlopen()
  1095. ; return 0; }
  1096. EOF
  1097. if { (eval echo configure:1098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1098.   rm -rf conftest*
  1099.   eval "ac_cv_lib_$ac_lib_var=yes"
  1100. else
  1101.   echo "configure: failed program was:" >&5
  1102.   cat conftest.$ac_ext >&5
  1103.   rm -rf conftest*
  1104.   eval "ac_cv_lib_$ac_lib_var=no"
  1105. fi
  1106. rm -f conftest*
  1107. LIBS="$ac_save_LIBS"
  1108.  
  1109. fi
  1110. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1111.   echo "$ac_t""yes" 1>&6
  1112.     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1113.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1114.   cat >> confdefs.h <<EOF
  1115. #define $ac_tr_lib 1
  1116. EOF
  1117.  
  1118.   LIBS="-ldl $LIBS"
  1119.  
  1120. else
  1121.   echo "$ac_t""no" 1>&6
  1122. fi
  1123.  
  1124. echo $ac_n "checking for exp in -lm""... $ac_c" 1>&6
  1125. echo "configure:1126: checking for exp in -lm" >&5
  1126. ac_lib_var=`echo m'_'exp | sed 'y%./+-%__p_%'`
  1127. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1128.   echo $ac_n "(cached) $ac_c" 1>&6
  1129. else
  1130.   ac_save_LIBS="$LIBS"
  1131. LIBS="-lm  $LIBS"
  1132. cat > conftest.$ac_ext <<EOF
  1133. #line 1134 "configure"
  1134. #include "confdefs.h"
  1135. /* Override any gcc2 internal prototype to avoid an error.  */
  1136. /* We use char because int might match the return type of a gcc2
  1137.     builtin and then its argument prototype would still apply.  */
  1138. char exp();
  1139.  
  1140. int main() {
  1141. exp()
  1142. ; return 0; }
  1143. EOF
  1144. if { (eval echo configure:1145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1145.   rm -rf conftest*
  1146.   eval "ac_cv_lib_$ac_lib_var=yes"
  1147. else
  1148.   echo "configure: failed program was:" >&5
  1149.   cat conftest.$ac_ext >&5
  1150.   rm -rf conftest*
  1151.   eval "ac_cv_lib_$ac_lib_var=no"
  1152. fi
  1153. rm -f conftest*
  1154. LIBS="$ac_save_LIBS"
  1155.  
  1156. fi
  1157. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1158.   echo "$ac_t""yes" 1>&6
  1159.     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1160.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1161.   cat >> confdefs.h <<EOF
  1162. #define $ac_tr_lib 1
  1163. EOF
  1164.  
  1165.   LIBS="-lm $LIBS"
  1166.  
  1167. else
  1168.   echo "$ac_t""no" 1>&6
  1169. fi
  1170.  
  1171.  
  1172. echo $ac_n "checking for BF_set_key in -lcrypto""... $ac_c" 1>&6
  1173. echo "configure:1174: checking for BF_set_key in -lcrypto" >&5
  1174. ac_lib_var=`echo crypto'_'BF_set_key | sed 'y%./+-%__p_%'`
  1175. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1176.   echo $ac_n "(cached) $ac_c" 1>&6
  1177. else
  1178.   ac_save_LIBS="$LIBS"
  1179. LIBS="-lcrypto  $LIBS"
  1180. cat > conftest.$ac_ext <<EOF
  1181. #line 1182 "configure"
  1182. #include "confdefs.h"
  1183. /* Override any gcc2 internal prototype to avoid an error.  */
  1184. /* We use char because int might match the return type of a gcc2
  1185.     builtin and then its argument prototype would still apply.  */
  1186. char BF_set_key();
  1187.  
  1188. int main() {
  1189. BF_set_key()
  1190. ; return 0; }
  1191. EOF
  1192. if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1193.   rm -rf conftest*
  1194.   eval "ac_cv_lib_$ac_lib_var=yes"
  1195. else
  1196.   echo "configure: failed program was:" >&5
  1197.   cat conftest.$ac_ext >&5
  1198.   rm -rf conftest*
  1199.   eval "ac_cv_lib_$ac_lib_var=no"
  1200. fi
  1201. rm -f conftest*
  1202. LIBS="$ac_save_LIBS"
  1203.  
  1204. fi
  1205. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1206.   echo "$ac_t""yes" 1>&6
  1207.   scheme_cv_lib_crypto=yes
  1208. else
  1209.   echo "$ac_t""no" 1>&6
  1210. scheme_cv_lib_crypto=no
  1211. fi
  1212.  
  1213. echo $ac_n "checking for mhash_count in -lmhash""... $ac_c" 1>&6
  1214. echo "configure:1215: checking for mhash_count in -lmhash" >&5
  1215. ac_lib_var=`echo mhash'_'mhash_count | sed 'y%./+-%__p_%'`
  1216. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1217.   echo $ac_n "(cached) $ac_c" 1>&6
  1218. else
  1219.   ac_save_LIBS="$LIBS"
  1220. LIBS="-lmhash  $LIBS"
  1221. cat > conftest.$ac_ext <<EOF
  1222. #line 1223 "configure"
  1223. #include "confdefs.h"
  1224. /* Override any gcc2 internal prototype to avoid an error.  */
  1225. /* We use char because int might match the return type of a gcc2
  1226.     builtin and then its argument prototype would still apply.  */
  1227. char mhash_count();
  1228.  
  1229. int main() {
  1230. mhash_count()
  1231. ; return 0; }
  1232. EOF
  1233. if { (eval echo configure:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1234.   rm -rf conftest*
  1235.   eval "ac_cv_lib_$ac_lib_var=yes"
  1236. else
  1237.   echo "configure: failed program was:" >&5
  1238.   cat conftest.$ac_ext >&5
  1239.   rm -rf conftest*
  1240.   eval "ac_cv_lib_$ac_lib_var=no"
  1241. fi
  1242. rm -f conftest*
  1243. LIBS="$ac_save_LIBS"
  1244.  
  1245. fi
  1246. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1247.   echo "$ac_t""yes" 1>&6
  1248.   scheme_cv_lib_mhash=yes
  1249. else
  1250.   echo "$ac_t""no" 1>&6
  1251. scheme_cv_lib_mhash=no
  1252. fi
  1253.  
  1254. echo $ac_n "checking for mcrypt_generic_init in -lmcrypt""... $ac_c" 1>&6
  1255. echo "configure:1256: checking for mcrypt_generic_init in -lmcrypt" >&5
  1256. ac_lib_var=`echo mcrypt'_'mcrypt_generic_init | sed 'y%./+-%__p_%'`
  1257. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1258.   echo $ac_n "(cached) $ac_c" 1>&6
  1259. else
  1260.   ac_save_LIBS="$LIBS"
  1261. LIBS="-lmcrypt -lltdl $LIBS"
  1262. cat > conftest.$ac_ext <<EOF
  1263. #line 1264 "configure"
  1264. #include "confdefs.h"
  1265. /* Override any gcc2 internal prototype to avoid an error.  */
  1266. /* We use char because int might match the return type of a gcc2
  1267.     builtin and then its argument prototype would still apply.  */
  1268. char mcrypt_generic_init();
  1269.  
  1270. int main() {
  1271. mcrypt_generic_init()
  1272. ; return 0; }
  1273. EOF
  1274. if { (eval echo configure:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1275.   rm -rf conftest*
  1276.   eval "ac_cv_lib_$ac_lib_var=yes"
  1277. else
  1278.   echo "configure: failed program was:" >&5
  1279.   cat conftest.$ac_ext >&5
  1280.   rm -rf conftest*
  1281.   eval "ac_cv_lib_$ac_lib_var=no"
  1282. fi
  1283. rm -f conftest*
  1284. LIBS="$ac_save_LIBS"
  1285.  
  1286. fi
  1287. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1288.   echo "$ac_t""yes" 1>&6
  1289.   scheme_cv_lib_mcrypt=yes
  1290. else
  1291.   echo "$ac_t""no" 1>&6
  1292. scheme_cv_lib_mcrypt=no
  1293. fi
  1294.  
  1295. echo $ac_n "checking for BF_set_key in -lblowfish""... $ac_c" 1>&6
  1296. echo "configure:1297: checking for BF_set_key in -lblowfish" >&5
  1297. ac_lib_var=`echo blowfish'_'BF_set_key | sed 'y%./+-%__p_%'`
  1298. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1299.   echo $ac_n "(cached) $ac_c" 1>&6
  1300. else
  1301.   ac_save_LIBS="$LIBS"
  1302. LIBS="-lblowfish  $LIBS"
  1303. cat > conftest.$ac_ext <<EOF
  1304. #line 1305 "configure"
  1305. #include "confdefs.h"
  1306. /* Override any gcc2 internal prototype to avoid an error.  */
  1307. /* We use char because int might match the return type of a gcc2
  1308.     builtin and then its argument prototype would still apply.  */
  1309. char BF_set_key();
  1310.  
  1311. int main() {
  1312. BF_set_key()
  1313. ; return 0; }
  1314. EOF
  1315. if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1316.   rm -rf conftest*
  1317.   eval "ac_cv_lib_$ac_lib_var=yes"
  1318. else
  1319.   echo "configure: failed program was:" >&5
  1320.   cat conftest.$ac_ext >&5
  1321.   rm -rf conftest*
  1322.   eval "ac_cv_lib_$ac_lib_var=no"
  1323. fi
  1324. rm -f conftest*
  1325. LIBS="$ac_save_LIBS"
  1326.  
  1327. fi
  1328. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1329.   echo "$ac_t""yes" 1>&6
  1330.   scheme_cv_lib_blowfish=yes
  1331. else
  1332.   echo "$ac_t""no" 1>&6
  1333. scheme_cv_lib_blowfish=no
  1334. fi
  1335.  
  1336. echo $ac_n "checking for MD5Init in -lmd5""... $ac_c" 1>&6
  1337. echo "configure:1338: checking for MD5Init in -lmd5" >&5
  1338. ac_lib_var=`echo md5'_'MD5Init | sed 'y%./+-%__p_%'`
  1339. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1340.   echo $ac_n "(cached) $ac_c" 1>&6
  1341. else
  1342.   ac_save_LIBS="$LIBS"
  1343. LIBS="-lmd5  $LIBS"
  1344. cat > conftest.$ac_ext <<EOF
  1345. #line 1346 "configure"
  1346. #include "confdefs.h"
  1347. /* Override any gcc2 internal prototype to avoid an error.  */
  1348. /* We use char because int might match the return type of a gcc2
  1349.     builtin and then its argument prototype would still apply.  */
  1350. char MD5Init();
  1351.  
  1352. int main() {
  1353. MD5Init()
  1354. ; return 0; }
  1355. EOF
  1356. if { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1357.   rm -rf conftest*
  1358.   eval "ac_cv_lib_$ac_lib_var=yes"
  1359. else
  1360.   echo "configure: failed program was:" >&5
  1361.   cat conftest.$ac_ext >&5
  1362.   rm -rf conftest*
  1363.   eval "ac_cv_lib_$ac_lib_var=no"
  1364. fi
  1365. rm -f conftest*
  1366. LIBS="$ac_save_LIBS"
  1367.  
  1368. fi
  1369. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1370.   echo "$ac_t""yes" 1>&6
  1371.   scheme_cv_lib_md5=yes
  1372. else
  1373.   echo "$ac_t""no" 1>&6
  1374. scheme_cv_lib_md5=no
  1375. fi
  1376.  
  1377. echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
  1378. echo "configure:1379: checking for gdbm_open in -lgdbm" >&5
  1379. ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
  1380. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1381.   echo $ac_n "(cached) $ac_c" 1>&6
  1382. else
  1383.   ac_save_LIBS="$LIBS"
  1384. LIBS="-lgdbm  $LIBS"
  1385. cat > conftest.$ac_ext <<EOF
  1386. #line 1387 "configure"
  1387. #include "confdefs.h"
  1388. /* Override any gcc2 internal prototype to avoid an error.  */
  1389. /* We use char because int might match the return type of a gcc2
  1390.     builtin and then its argument prototype would still apply.  */
  1391. char gdbm_open();
  1392.  
  1393. int main() {
  1394. gdbm_open()
  1395. ; return 0; }
  1396. EOF
  1397. if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1398.   rm -rf conftest*
  1399.   eval "ac_cv_lib_$ac_lib_var=yes"
  1400. else
  1401.   echo "configure: failed program was:" >&5
  1402.   cat conftest.$ac_ext >&5
  1403.   rm -rf conftest*
  1404.   eval "ac_cv_lib_$ac_lib_var=no"
  1405. fi
  1406. rm -f conftest*
  1407. LIBS="$ac_save_LIBS"
  1408.  
  1409. fi
  1410. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1411.   echo "$ac_t""yes" 1>&6
  1412.   scheme_cv_lib_gdbm=yes
  1413. else
  1414.   echo "$ac_t""no" 1>&6
  1415. scheme_cv_lib_gdbm=no
  1416. fi
  1417.  
  1418. echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
  1419. echo "configure:1420: checking for tparm in -lncurses" >&5
  1420. ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
  1421. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1422.   echo $ac_n "(cached) $ac_c" 1>&6
  1423. else
  1424.   ac_save_LIBS="$LIBS"
  1425. LIBS="-lncurses  $LIBS"
  1426. cat > conftest.$ac_ext <<EOF
  1427. #line 1428 "configure"
  1428. #include "confdefs.h"
  1429. /* Override any gcc2 internal prototype to avoid an error.  */
  1430. /* We use char because int might match the return type of a gcc2
  1431.     builtin and then its argument prototype would still apply.  */
  1432. char tparm();
  1433.  
  1434. int main() {
  1435. tparm()
  1436. ; return 0; }
  1437. EOF
  1438. if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1439.   rm -rf conftest*
  1440.   eval "ac_cv_lib_$ac_lib_var=yes"
  1441. else
  1442.   echo "configure: failed program was:" >&5
  1443.   cat conftest.$ac_ext >&5
  1444.   rm -rf conftest*
  1445.   eval "ac_cv_lib_$ac_lib_var=no"
  1446. fi
  1447. rm -f conftest*
  1448. LIBS="$ac_save_LIBS"
  1449.  
  1450. fi
  1451. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1452.   echo "$ac_t""yes" 1>&6
  1453.   scheme_cv_lib_ncurses=yes
  1454. else
  1455.   echo "$ac_t""no" 1>&6
  1456. scheme_cv_lib_ncurses=no
  1457. fi
  1458.  
  1459. echo $ac_n "checking for tparam in -lncurses""... $ac_c" 1>&6
  1460. echo "configure:1461: checking for tparam in -lncurses" >&5
  1461. ac_lib_var=`echo ncurses'_'tparam | sed 'y%./+-%__p_%'`
  1462. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1463.   echo $ac_n "(cached) $ac_c" 1>&6
  1464. else
  1465.   ac_save_LIBS="$LIBS"
  1466. LIBS="-lncurses  $LIBS"
  1467. cat > conftest.$ac_ext <<EOF
  1468. #line 1469 "configure"
  1469. #include "confdefs.h"
  1470. /* Override any gcc2 internal prototype to avoid an error.  */
  1471. /* We use char because int might match the return type of a gcc2
  1472.     builtin and then its argument prototype would still apply.  */
  1473. char tparam();
  1474.  
  1475. int main() {
  1476. tparam()
  1477. ; return 0; }
  1478. EOF
  1479. if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1480.   rm -rf conftest*
  1481.   eval "ac_cv_lib_$ac_lib_var=yes"
  1482. else
  1483.   echo "configure: failed program was:" >&5
  1484.   cat conftest.$ac_ext >&5
  1485.   rm -rf conftest*
  1486.   eval "ac_cv_lib_$ac_lib_var=no"
  1487. fi
  1488. rm -f conftest*
  1489. LIBS="$ac_save_LIBS"
  1490.  
  1491. fi
  1492. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1493.   echo "$ac_t""yes" 1>&6
  1494.   scheme_cv_lib_ncurses_defines_tparam=yes
  1495. else
  1496.   echo "$ac_t""no" 1>&6
  1497. scheme_cv_lib_ncurses_defines_tparam=no
  1498. fi
  1499.  
  1500. echo $ac_n "checking for tparm in -lcurses""... $ac_c" 1>&6
  1501. echo "configure:1502: checking for tparm in -lcurses" >&5
  1502. ac_lib_var=`echo curses'_'tparm | sed 'y%./+-%__p_%'`
  1503. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1504.   echo $ac_n "(cached) $ac_c" 1>&6
  1505. else
  1506.   ac_save_LIBS="$LIBS"
  1507. LIBS="-lcurses  $LIBS"
  1508. cat > conftest.$ac_ext <<EOF
  1509. #line 1510 "configure"
  1510. #include "confdefs.h"
  1511. /* Override any gcc2 internal prototype to avoid an error.  */
  1512. /* We use char because int might match the return type of a gcc2
  1513.     builtin and then its argument prototype would still apply.  */
  1514. char tparm();
  1515.  
  1516. int main() {
  1517. tparm()
  1518. ; return 0; }
  1519. EOF
  1520. if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1521.   rm -rf conftest*
  1522.   eval "ac_cv_lib_$ac_lib_var=yes"
  1523. else
  1524.   echo "configure: failed program was:" >&5
  1525.   cat conftest.$ac_ext >&5
  1526.   rm -rf conftest*
  1527.   eval "ac_cv_lib_$ac_lib_var=no"
  1528. fi
  1529. rm -f conftest*
  1530. LIBS="$ac_save_LIBS"
  1531.  
  1532. fi
  1533. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1534.   echo "$ac_t""yes" 1>&6
  1535.   scheme_cv_lib_curses=yes
  1536. else
  1537.   echo "$ac_t""no" 1>&6
  1538. scheme_cv_lib_curses=no
  1539. fi
  1540.  
  1541. echo $ac_n "checking for tparam in -ltermcap""... $ac_c" 1>&6
  1542. echo "configure:1543: checking for tparam in -ltermcap" >&5
  1543. ac_lib_var=`echo termcap'_'tparam | sed 'y%./+-%__p_%'`
  1544. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1545.   echo $ac_n "(cached) $ac_c" 1>&6
  1546. else
  1547.   ac_save_LIBS="$LIBS"
  1548. LIBS="-ltermcap  $LIBS"
  1549. cat > conftest.$ac_ext <<EOF
  1550. #line 1551 "configure"
  1551. #include "confdefs.h"
  1552. /* Override any gcc2 internal prototype to avoid an error.  */
  1553. /* We use char because int might match the return type of a gcc2
  1554.     builtin and then its argument prototype would still apply.  */
  1555. char tparam();
  1556.  
  1557. int main() {
  1558. tparam()
  1559. ; return 0; }
  1560. EOF
  1561. if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1562.   rm -rf conftest*
  1563.   eval "ac_cv_lib_$ac_lib_var=yes"
  1564. else
  1565.   echo "configure: failed program was:" >&5
  1566.   cat conftest.$ac_ext >&5
  1567.   rm -rf conftest*
  1568.   eval "ac_cv_lib_$ac_lib_var=no"
  1569. fi
  1570. rm -f conftest*
  1571. LIBS="$ac_save_LIBS"
  1572.  
  1573. fi
  1574. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1575.   echo "$ac_t""yes" 1>&6
  1576.   scheme_cv_lib_termcap=yes
  1577. else
  1578.   echo "$ac_t""no" 1>&6
  1579. scheme_cv_lib_termcap=no
  1580. fi
  1581.  
  1582.  
  1583. ac_header_dirent=no
  1584. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1585. do
  1586. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1587. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1588. echo "configure:1589: checking for $ac_hdr that defines DIR" >&5
  1589. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1590.   echo $ac_n "(cached) $ac_c" 1>&6
  1591. else
  1592.   cat > conftest.$ac_ext <<EOF
  1593. #line 1594 "configure"
  1594. #include "confdefs.h"
  1595. #include <sys/types.h>
  1596. #include <$ac_hdr>
  1597. int main() {
  1598. DIR *dirp = 0;
  1599. ; return 0; }
  1600. EOF
  1601. if { (eval echo configure:1602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1602.   rm -rf conftest*
  1603.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1604. else
  1605.   echo "configure: failed program was:" >&5
  1606.   cat conftest.$ac_ext >&5
  1607.   rm -rf conftest*
  1608.   eval "ac_cv_header_dirent_$ac_safe=no"
  1609. fi
  1610. rm -f conftest*
  1611. fi
  1612. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1613.   echo "$ac_t""yes" 1>&6
  1614.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1615.   cat >> confdefs.h <<EOF
  1616. #define $ac_tr_hdr 1
  1617. EOF
  1618.  ac_header_dirent=$ac_hdr; break
  1619. else
  1620.   echo "$ac_t""no" 1>&6
  1621. fi
  1622. done
  1623. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1624. if test $ac_header_dirent = dirent.h; then
  1625. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  1626. echo "configure:1627: checking for opendir in -ldir" >&5
  1627. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  1628. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1629.   echo $ac_n "(cached) $ac_c" 1>&6
  1630. else
  1631.   ac_save_LIBS="$LIBS"
  1632. LIBS="-ldir  $LIBS"
  1633. cat > conftest.$ac_ext <<EOF
  1634. #line 1635 "configure"
  1635. #include "confdefs.h"
  1636. /* Override any gcc2 internal prototype to avoid an error.  */
  1637. /* We use char because int might match the return type of a gcc2
  1638.     builtin and then its argument prototype would still apply.  */
  1639. char opendir();
  1640.  
  1641. int main() {
  1642. opendir()
  1643. ; return 0; }
  1644. EOF
  1645. if { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1646.   rm -rf conftest*
  1647.   eval "ac_cv_lib_$ac_lib_var=yes"
  1648. else
  1649.   echo "configure: failed program was:" >&5
  1650.   cat conftest.$ac_ext >&5
  1651.   rm -rf conftest*
  1652.   eval "ac_cv_lib_$ac_lib_var=no"
  1653. fi
  1654. rm -f conftest*
  1655. LIBS="$ac_save_LIBS"
  1656.  
  1657. fi
  1658. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1659.   echo "$ac_t""yes" 1>&6
  1660.   LIBS="$LIBS -ldir"
  1661. else
  1662.   echo "$ac_t""no" 1>&6
  1663. fi
  1664.  
  1665. else
  1666. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  1667. echo "configure:1668: checking for opendir in -lx" >&5
  1668. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  1669. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1670.   echo $ac_n "(cached) $ac_c" 1>&6
  1671. else
  1672.   ac_save_LIBS="$LIBS"
  1673. LIBS="-lx  $LIBS"
  1674. cat > conftest.$ac_ext <<EOF
  1675. #line 1676 "configure"
  1676. #include "confdefs.h"
  1677. /* Override any gcc2 internal prototype to avoid an error.  */
  1678. /* We use char because int might match the return type of a gcc2
  1679.     builtin and then its argument prototype would still apply.  */
  1680. char opendir();
  1681.  
  1682. int main() {
  1683. opendir()
  1684. ; return 0; }
  1685. EOF
  1686. if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1687.   rm -rf conftest*
  1688.   eval "ac_cv_lib_$ac_lib_var=yes"
  1689. else
  1690.   echo "configure: failed program was:" >&5
  1691.   cat conftest.$ac_ext >&5
  1692.   rm -rf conftest*
  1693.   eval "ac_cv_lib_$ac_lib_var=no"
  1694. fi
  1695. rm -f conftest*
  1696. LIBS="$ac_save_LIBS"
  1697.  
  1698. fi
  1699. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1700.   echo "$ac_t""yes" 1>&6
  1701.   LIBS="$LIBS -lx"
  1702. else
  1703.   echo "$ac_t""no" 1>&6
  1704. fi
  1705.  
  1706. fi
  1707.  
  1708. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1709. echo "configure:1710: checking for ANSI C header files" >&5
  1710. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1711.   echo $ac_n "(cached) $ac_c" 1>&6
  1712. else
  1713.   cat > conftest.$ac_ext <<EOF
  1714. #line 1715 "configure"
  1715. #include "confdefs.h"
  1716. #include <stdlib.h>
  1717. #include <stdarg.h>
  1718. #include <string.h>
  1719. #include <float.h>
  1720. EOF
  1721. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1722. { (eval echo configure:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1723. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1724. if test -z "$ac_err"; then
  1725.   rm -rf conftest*
  1726.   ac_cv_header_stdc=yes
  1727. else
  1728.   echo "$ac_err" >&5
  1729.   echo "configure: failed program was:" >&5
  1730.   cat conftest.$ac_ext >&5
  1731.   rm -rf conftest*
  1732.   ac_cv_header_stdc=no
  1733. fi
  1734. rm -f conftest*
  1735.  
  1736. if test $ac_cv_header_stdc = yes; then
  1737.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1738. cat > conftest.$ac_ext <<EOF
  1739. #line 1740 "configure"
  1740. #include "confdefs.h"
  1741. #include <string.h>
  1742. EOF
  1743. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1744.   egrep "memchr" >/dev/null 2>&1; then
  1745.   :
  1746. else
  1747.   rm -rf conftest*
  1748.   ac_cv_header_stdc=no
  1749. fi
  1750. rm -f conftest*
  1751.  
  1752. fi
  1753.  
  1754. if test $ac_cv_header_stdc = yes; then
  1755.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1756. cat > conftest.$ac_ext <<EOF
  1757. #line 1758 "configure"
  1758. #include "confdefs.h"
  1759. #include <stdlib.h>
  1760. EOF
  1761. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1762.   egrep "free" >/dev/null 2>&1; then
  1763.   :
  1764. else
  1765.   rm -rf conftest*
  1766.   ac_cv_header_stdc=no
  1767. fi
  1768. rm -f conftest*
  1769.  
  1770. fi
  1771.  
  1772. if test $ac_cv_header_stdc = yes; then
  1773.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1774. if test "$cross_compiling" = yes; then
  1775.   :
  1776. else
  1777.   cat > conftest.$ac_ext <<EOF
  1778. #line 1779 "configure"
  1779. #include "confdefs.h"
  1780. #include <ctype.h>
  1781. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1782. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1783. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1784. int main () { int i; for (i = 0; i < 256; i++)
  1785. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1786. exit (0); }
  1787.  
  1788. EOF
  1789. if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1790. then
  1791.   :
  1792. else
  1793.   echo "configure: failed program was:" >&5
  1794.   cat conftest.$ac_ext >&5
  1795.   rm -fr conftest*
  1796.   ac_cv_header_stdc=no
  1797. fi
  1798. rm -fr conftest*
  1799. fi
  1800.  
  1801. fi
  1802. fi
  1803.  
  1804. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1805. if test $ac_cv_header_stdc = yes; then
  1806.   cat >> confdefs.h <<\EOF
  1807. #define STDC_HEADERS 1
  1808. EOF
  1809.  
  1810. fi
  1811.  
  1812. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1813. echo "configure:1814: checking for sys/wait.h that is POSIX.1 compatible" >&5
  1814. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1815.   echo $ac_n "(cached) $ac_c" 1>&6
  1816. else
  1817.   cat > conftest.$ac_ext <<EOF
  1818. #line 1819 "configure"
  1819. #include "confdefs.h"
  1820. #include <sys/types.h>
  1821. #include <sys/wait.h>
  1822. #ifndef WEXITSTATUS
  1823. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1824. #endif
  1825. #ifndef WIFEXITED
  1826. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1827. #endif
  1828. int main() {
  1829. int s;
  1830. wait (&s);
  1831. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1832. ; return 0; }
  1833. EOF
  1834. if { (eval echo configure:1835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1835.   rm -rf conftest*
  1836.   ac_cv_header_sys_wait_h=yes
  1837. else
  1838.   echo "configure: failed program was:" >&5
  1839.   cat conftest.$ac_ext >&5
  1840.   rm -rf conftest*
  1841.   ac_cv_header_sys_wait_h=no
  1842. fi
  1843. rm -f conftest*
  1844. fi
  1845.  
  1846. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1847. if test $ac_cv_header_sys_wait_h = yes; then
  1848.   cat >> confdefs.h <<\EOF
  1849. #define HAVE_SYS_WAIT_H 1
  1850. EOF
  1851.  
  1852. fi
  1853.  
  1854. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1855. echo "configure:1856: checking whether time.h and sys/time.h may both be included" >&5
  1856. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1857.   echo $ac_n "(cached) $ac_c" 1>&6
  1858. else
  1859.   cat > conftest.$ac_ext <<EOF
  1860. #line 1861 "configure"
  1861. #include "confdefs.h"
  1862. #include <sys/types.h>
  1863. #include <sys/time.h>
  1864. #include <time.h>
  1865. int main() {
  1866. struct tm *tp;
  1867. ; return 0; }
  1868. EOF
  1869. if { (eval echo configure:1870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1870.   rm -rf conftest*
  1871.   ac_cv_header_time=yes
  1872. else
  1873.   echo "configure: failed program was:" >&5
  1874.   cat conftest.$ac_ext >&5
  1875.   rm -rf conftest*
  1876.   ac_cv_header_time=no
  1877. fi
  1878. rm -f conftest*
  1879. fi
  1880.  
  1881. echo "$ac_t""$ac_cv_header_time" 1>&6
  1882. if test $ac_cv_header_time = yes; then
  1883.   cat >> confdefs.h <<\EOF
  1884. #define TIME_WITH_SYS_TIME 1
  1885. EOF
  1886.  
  1887. fi
  1888.  
  1889. for ac_hdr in bsdtty.h fcntl.h limits.h malloc.h sgtty.h stropts.h time.h
  1890. do
  1891. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1892. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1893. echo "configure:1894: checking for $ac_hdr" >&5
  1894. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1895.   echo $ac_n "(cached) $ac_c" 1>&6
  1896. else
  1897.   cat > conftest.$ac_ext <<EOF
  1898. #line 1899 "configure"
  1899. #include "confdefs.h"
  1900. #include <$ac_hdr>
  1901. EOF
  1902. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1903. { (eval echo configure:1904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1904. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1905. if test -z "$ac_err"; then
  1906.   rm -rf conftest*
  1907.   eval "ac_cv_header_$ac_safe=yes"
  1908. else
  1909.   echo "$ac_err" >&5
  1910.   echo "configure: failed program was:" >&5
  1911.   cat conftest.$ac_ext >&5
  1912.   rm -rf conftest*
  1913.   eval "ac_cv_header_$ac_safe=no"
  1914. fi
  1915. rm -f conftest*
  1916. fi
  1917. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1918.   echo "$ac_t""yes" 1>&6
  1919.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1920.   cat >> confdefs.h <<EOF
  1921. #define $ac_tr_hdr 1
  1922. EOF
  1923.  
  1924. else
  1925.   echo "$ac_t""no" 1>&6
  1926. fi
  1927. done
  1928.  
  1929. for ac_hdr in sys/file.h sys/ioctl.h sys/mount.h sys/param.h sys/poll.h
  1930. do
  1931. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1932. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1933. echo "configure:1934: checking for $ac_hdr" >&5
  1934. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1935.   echo $ac_n "(cached) $ac_c" 1>&6
  1936. else
  1937.   cat > conftest.$ac_ext <<EOF
  1938. #line 1939 "configure"
  1939. #include "confdefs.h"
  1940. #include <$ac_hdr>
  1941. EOF
  1942. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1943. { (eval echo configure:1944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1944. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1945. if test -z "$ac_err"; then
  1946.   rm -rf conftest*
  1947.   eval "ac_cv_header_$ac_safe=yes"
  1948. else
  1949.   echo "$ac_err" >&5
  1950.   echo "configure: failed program was:" >&5
  1951.   cat conftest.$ac_ext >&5
  1952.   rm -rf conftest*
  1953.   eval "ac_cv_header_$ac_safe=no"
  1954. fi
  1955. rm -f conftest*
  1956. fi
  1957. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1958.   echo "$ac_t""yes" 1>&6
  1959.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1960.   cat >> confdefs.h <<EOF
  1961. #define $ac_tr_hdr 1
  1962. EOF
  1963.  
  1964. else
  1965.   echo "$ac_t""no" 1>&6
  1966. fi
  1967. done
  1968.  
  1969. for ac_hdr in sys/ptyio.h sys/socket.h sys/time.h sys/un.h sys/vfs.h
  1970. do
  1971. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1972. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1973. echo "configure:1974: checking for $ac_hdr" >&5
  1974. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1975.   echo $ac_n "(cached) $ac_c" 1>&6
  1976. else
  1977.   cat > conftest.$ac_ext <<EOF
  1978. #line 1979 "configure"
  1979. #include "confdefs.h"
  1980. #include <$ac_hdr>
  1981. EOF
  1982. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1983. { (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1984. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1985. if test -z "$ac_err"; then
  1986.   rm -rf conftest*
  1987.   eval "ac_cv_header_$ac_safe=yes"
  1988. else
  1989.   echo "$ac_err" >&5
  1990.   echo "configure: failed program was:" >&5
  1991.   cat conftest.$ac_ext >&5
  1992.   rm -rf conftest*
  1993.   eval "ac_cv_header_$ac_safe=no"
  1994. fi
  1995. rm -f conftest*
  1996. fi
  1997. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1998.   echo "$ac_t""yes" 1>&6
  1999.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2000.   cat >> confdefs.h <<EOF
  2001. #define $ac_tr_hdr 1
  2002. EOF
  2003.  
  2004. else
  2005.   echo "$ac_t""no" 1>&6
  2006. fi
  2007. done
  2008.  
  2009. for ac_hdr in termio.h termios.h unistd.h utime.h
  2010. do
  2011. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2012. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2013. echo "configure:2014: checking for $ac_hdr" >&5
  2014. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2015.   echo $ac_n "(cached) $ac_c" 1>&6
  2016. else
  2017.   cat > conftest.$ac_ext <<EOF
  2018. #line 2019 "configure"
  2019. #include "confdefs.h"
  2020. #include <$ac_hdr>
  2021. EOF
  2022. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2023. { (eval echo configure:2024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2024. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2025. if test -z "$ac_err"; then
  2026.   rm -rf conftest*
  2027.   eval "ac_cv_header_$ac_safe=yes"
  2028. else
  2029.   echo "$ac_err" >&5
  2030.   echo "configure: failed program was:" >&5
  2031.   cat conftest.$ac_ext >&5
  2032.   rm -rf conftest*
  2033.   eval "ac_cv_header_$ac_safe=no"
  2034. fi
  2035. rm -f conftest*
  2036. fi
  2037. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2038.   echo "$ac_t""yes" 1>&6
  2039.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2040.   cat >> confdefs.h <<EOF
  2041. #define $ac_tr_hdr 1
  2042. EOF
  2043.  
  2044. else
  2045.   echo "$ac_t""no" 1>&6
  2046. fi
  2047. done
  2048.  
  2049. for ac_hdr in openssl/blowfish.h openssl/md5.h blowfish.h md5.h
  2050. do
  2051. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2052. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2053. echo "configure:2054: checking for $ac_hdr" >&5
  2054. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2055.   echo $ac_n "(cached) $ac_c" 1>&6
  2056. else
  2057.   cat > conftest.$ac_ext <<EOF
  2058. #line 2059 "configure"
  2059. #include "confdefs.h"
  2060. #include <$ac_hdr>
  2061. EOF
  2062. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2063. { (eval echo configure:2064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2064. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2065. if test -z "$ac_err"; then
  2066.   rm -rf conftest*
  2067.   eval "ac_cv_header_$ac_safe=yes"
  2068. else
  2069.   echo "$ac_err" >&5
  2070.   echo "configure: failed program was:" >&5
  2071.   cat conftest.$ac_ext >&5
  2072.   rm -rf conftest*
  2073.   eval "ac_cv_header_$ac_safe=no"
  2074. fi
  2075. rm -f conftest*
  2076. fi
  2077. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2078.   echo "$ac_t""yes" 1>&6
  2079.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2080.   cat >> confdefs.h <<EOF
  2081. #define $ac_tr_hdr 1
  2082. EOF
  2083.  
  2084. else
  2085.   echo "$ac_t""no" 1>&6
  2086. fi
  2087. done
  2088.  
  2089. for ac_hdr in mhash.h mcrypt.h gdbm.h curses.h term.h
  2090. do
  2091. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2092. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2093. echo "configure:2094: checking for $ac_hdr" >&5
  2094. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2095.   echo $ac_n "(cached) $ac_c" 1>&6
  2096. else
  2097.   cat > conftest.$ac_ext <<EOF
  2098. #line 2099 "configure"
  2099. #include "confdefs.h"
  2100. #include <$ac_hdr>
  2101. EOF
  2102. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2103. { (eval echo configure:2104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2104. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2105. if test -z "$ac_err"; then
  2106.   rm -rf conftest*
  2107.   eval "ac_cv_header_$ac_safe=yes"
  2108. else
  2109.   echo "$ac_err" >&5
  2110.   echo "configure: failed program was:" >&5
  2111.   cat conftest.$ac_ext >&5
  2112.   rm -rf conftest*
  2113.   eval "ac_cv_header_$ac_safe=no"
  2114. fi
  2115. rm -f conftest*
  2116. fi
  2117. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2118.   echo "$ac_t""yes" 1>&6
  2119.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2120.   cat >> confdefs.h <<EOF
  2121. #define $ac_tr_hdr 1
  2122. EOF
  2123.  
  2124. else
  2125.   echo "$ac_t""no" 1>&6
  2126. fi
  2127. done
  2128.  
  2129.  
  2130. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  2131. echo "configure:2132: checking for mode_t" >&5
  2132. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  2133.   echo $ac_n "(cached) $ac_c" 1>&6
  2134. else
  2135.   cat > conftest.$ac_ext <<EOF
  2136. #line 2137 "configure"
  2137. #include "confdefs.h"
  2138. #include <sys/types.h>
  2139. #if STDC_HEADERS
  2140. #include <stdlib.h>
  2141. #include <stddef.h>
  2142. #endif
  2143. EOF
  2144. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2145.   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2146.   rm -rf conftest*
  2147.   ac_cv_type_mode_t=yes
  2148. else
  2149.   rm -rf conftest*
  2150.   ac_cv_type_mode_t=no
  2151. fi
  2152. rm -f conftest*
  2153.  
  2154. fi
  2155. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  2156. if test $ac_cv_type_mode_t = no; then
  2157.   cat >> confdefs.h <<\EOF
  2158. #define mode_t int
  2159. EOF
  2160.  
  2161. fi
  2162.  
  2163. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2164. echo "configure:2165: checking for off_t" >&5
  2165. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  2166.   echo $ac_n "(cached) $ac_c" 1>&6
  2167. else
  2168.   cat > conftest.$ac_ext <<EOF
  2169. #line 2170 "configure"
  2170. #include "confdefs.h"
  2171. #include <sys/types.h>
  2172. #if STDC_HEADERS
  2173. #include <stdlib.h>
  2174. #include <stddef.h>
  2175. #endif
  2176. EOF
  2177. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2178.   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2179.   rm -rf conftest*
  2180.   ac_cv_type_off_t=yes
  2181. else
  2182.   rm -rf conftest*
  2183.   ac_cv_type_off_t=no
  2184. fi
  2185. rm -f conftest*
  2186.  
  2187. fi
  2188. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2189. if test $ac_cv_type_off_t = no; then
  2190.   cat >> confdefs.h <<\EOF
  2191. #define off_t long
  2192. EOF
  2193.  
  2194. fi
  2195.  
  2196. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  2197. echo "configure:2198: checking for pid_t" >&5
  2198. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  2199.   echo $ac_n "(cached) $ac_c" 1>&6
  2200. else
  2201.   cat > conftest.$ac_ext <<EOF
  2202. #line 2203 "configure"
  2203. #include "confdefs.h"
  2204. #include <sys/types.h>
  2205. #if STDC_HEADERS
  2206. #include <stdlib.h>
  2207. #include <stddef.h>
  2208. #endif
  2209. EOF
  2210. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2211.   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2212.   rm -rf conftest*
  2213.   ac_cv_type_pid_t=yes
  2214. else
  2215.   rm -rf conftest*
  2216.   ac_cv_type_pid_t=no
  2217. fi
  2218. rm -f conftest*
  2219.  
  2220. fi
  2221. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  2222. if test $ac_cv_type_pid_t = no; then
  2223.   cat >> confdefs.h <<\EOF
  2224. #define pid_t int
  2225. EOF
  2226.  
  2227. fi
  2228.  
  2229. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2230. echo "configure:2231: checking return type of signal handlers" >&5
  2231. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  2232.   echo $ac_n "(cached) $ac_c" 1>&6
  2233. else
  2234.   cat > conftest.$ac_ext <<EOF
  2235. #line 2236 "configure"
  2236. #include "confdefs.h"
  2237. #include <sys/types.h>
  2238. #include <signal.h>
  2239. #ifdef signal
  2240. #undef signal
  2241. #endif
  2242. #ifdef __cplusplus
  2243. extern "C" void (*signal (int, void (*)(int)))(int);
  2244. #else
  2245. void (*signal ()) ();
  2246. #endif
  2247.  
  2248. int main() {
  2249. int i;
  2250. ; return 0; }
  2251. EOF
  2252. if { (eval echo configure:2253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2253.   rm -rf conftest*
  2254.   ac_cv_type_signal=void
  2255. else
  2256.   echo "configure: failed program was:" >&5
  2257.   cat conftest.$ac_ext >&5
  2258.   rm -rf conftest*
  2259.   ac_cv_type_signal=int
  2260. fi
  2261. rm -f conftest*
  2262. fi
  2263.  
  2264. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2265. cat >> confdefs.h <<EOF
  2266. #define RETSIGTYPE $ac_cv_type_signal
  2267. EOF
  2268.  
  2269.  
  2270. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  2271. echo "configure:2272: checking for size_t" >&5
  2272. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  2273.   echo $ac_n "(cached) $ac_c" 1>&6
  2274. else
  2275.   cat > conftest.$ac_ext <<EOF
  2276. #line 2277 "configure"
  2277. #include "confdefs.h"
  2278. #include <sys/types.h>
  2279. #if STDC_HEADERS
  2280. #include <stdlib.h>
  2281. #include <stddef.h>
  2282. #endif
  2283. EOF
  2284. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2285.   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2286.   rm -rf conftest*
  2287.   ac_cv_type_size_t=yes
  2288. else
  2289.   rm -rf conftest*
  2290.   ac_cv_type_size_t=no
  2291. fi
  2292. rm -f conftest*
  2293.  
  2294. fi
  2295. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  2296. if test $ac_cv_type_size_t = no; then
  2297.   cat >> confdefs.h <<\EOF
  2298. #define size_t unsigned
  2299. EOF
  2300.  
  2301. fi
  2302.  
  2303. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2304. echo "configure:2305: checking for uid_t in sys/types.h" >&5
  2305. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  2306.   echo $ac_n "(cached) $ac_c" 1>&6
  2307. else
  2308.   cat > conftest.$ac_ext <<EOF
  2309. #line 2310 "configure"
  2310. #include "confdefs.h"
  2311. #include <sys/types.h>
  2312. EOF
  2313. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2314.   egrep "uid_t" >/dev/null 2>&1; then
  2315.   rm -rf conftest*
  2316.   ac_cv_type_uid_t=yes
  2317. else
  2318.   rm -rf conftest*
  2319.   ac_cv_type_uid_t=no
  2320. fi
  2321. rm -f conftest*
  2322.  
  2323. fi
  2324.  
  2325. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2326. if test $ac_cv_type_uid_t = no; then
  2327.   cat >> confdefs.h <<\EOF
  2328. #define uid_t int
  2329. EOF
  2330.  
  2331.   cat >> confdefs.h <<\EOF
  2332. #define gid_t int
  2333. EOF
  2334.  
  2335. fi
  2336.  
  2337. echo $ac_n "checking for nlink_t""... $ac_c" 1>&6
  2338. echo "configure:2339: checking for nlink_t" >&5
  2339. if eval "test \"`echo '$''{'ac_cv_type_nlink_t'+set}'`\" = set"; then
  2340.   echo $ac_n "(cached) $ac_c" 1>&6
  2341. else
  2342.   cat > conftest.$ac_ext <<EOF
  2343. #line 2344 "configure"
  2344. #include "confdefs.h"
  2345. #include <sys/types.h>
  2346. #if STDC_HEADERS
  2347. #include <stdlib.h>
  2348. #include <stddef.h>
  2349. #endif
  2350. EOF
  2351. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2352.   egrep "(^|[^a-zA-Z_0-9])nlink_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2353.   rm -rf conftest*
  2354.   ac_cv_type_nlink_t=yes
  2355. else
  2356.   rm -rf conftest*
  2357.   ac_cv_type_nlink_t=no
  2358. fi
  2359. rm -f conftest*
  2360.  
  2361. fi
  2362. echo "$ac_t""$ac_cv_type_nlink_t" 1>&6
  2363. if test $ac_cv_type_nlink_t = no; then
  2364.   cat >> confdefs.h <<\EOF
  2365. #define nlink_t short
  2366. EOF
  2367.  
  2368. fi
  2369.  
  2370.  
  2371. echo $ac_n "checking for clock_t""... $ac_c" 1>&6
  2372. echo "configure:2373: checking for clock_t" >&5
  2373. cat > conftest.$ac_ext <<EOF
  2374. #line 2375 "configure"
  2375. #include "confdefs.h"
  2376.  
  2377. #ifdef TIME_WITH_SYS_TIME
  2378. #  include <sys/time.h>
  2379. #  include <time.h>
  2380. #else
  2381. #  ifdef HAVE_SYS_TIME_H
  2382. #    include <sys/time.h>
  2383. #  else
  2384. #    include <time.h>
  2385. #  endif
  2386. #endif
  2387. int main() {
  2388. clock_t x;
  2389. ; return 0; }
  2390. EOF
  2391. if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2392.   rm -rf conftest*
  2393.   scheme_cv_type_clock_t=yes
  2394. else
  2395.   echo "configure: failed program was:" >&5
  2396.   cat conftest.$ac_ext >&5
  2397.   rm -rf conftest*
  2398.   scheme_cv_type_clock_t=no
  2399. fi
  2400. rm -f conftest*
  2401. echo "$ac_t""${scheme_cv_type_clock_t}" 1>&6
  2402. if test "${scheme_cv_type_clock_t}" = "no"; then
  2403.     cat >> confdefs.h <<\EOF
  2404. #define clock_t unsigned long
  2405. EOF
  2406.  
  2407. fi
  2408.  
  2409. echo $ac_n "checking for time_t""... $ac_c" 1>&6
  2410. echo "configure:2411: checking for time_t" >&5
  2411. cat > conftest.$ac_ext <<EOF
  2412. #line 2413 "configure"
  2413. #include "confdefs.h"
  2414.  
  2415. #ifdef TIME_WITH_SYS_TIME
  2416. #  include <sys/time.h>
  2417. #  include <time.h>
  2418. #else
  2419. #  ifdef HAVE_SYS_TIME_H
  2420. #    include <sys/time.h>
  2421. #  else
  2422. #    include <time.h>
  2423. #  endif
  2424. #endif
  2425. int main() {
  2426. time_t x;
  2427. ; return 0; }
  2428. EOF
  2429. if { (eval echo configure:2430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2430.   rm -rf conftest*
  2431.   scheme_cv_type_time_t=yes
  2432. else
  2433.   echo "configure: failed program was:" >&5
  2434.   cat conftest.$ac_ext >&5
  2435.   rm -rf conftest*
  2436.   scheme_cv_type_time_t=no
  2437. fi
  2438. rm -f conftest*
  2439. echo "$ac_t""${scheme_cv_type_time_t}" 1>&6
  2440. if test "${scheme_cv_type_time_t}" = "no"; then
  2441.     cat >> confdefs.h <<\EOF
  2442. #define time_t long
  2443. EOF
  2444.  
  2445. fi
  2446.  
  2447. if test "${ac_cv_header_sys_socket_h}" = "yes"; then
  2448.     echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
  2449. echo "configure:2450: checking for socklen_t" >&5
  2450.     cat > conftest.$ac_ext <<EOF
  2451. #line 2452 "configure"
  2452. #include "confdefs.h"
  2453. #include <sys/socket.h>
  2454. int main() {
  2455. socklen_t x;
  2456. ; return 0; }
  2457. EOF
  2458. if { (eval echo configure:2459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2459.   rm -rf conftest*
  2460.   scheme_cv_type_socklen_t=yes
  2461. else
  2462.   echo "configure: failed program was:" >&5
  2463.   cat conftest.$ac_ext >&5
  2464.   rm -rf conftest*
  2465.   scheme_cv_type_socklen_t=no
  2466. fi
  2467. rm -f conftest*
  2468.     echo "$ac_t""${scheme_cv_type_socklen_t}" 1>&6
  2469.     if test "${scheme_cv_type_socklen_t}" = "no"; then
  2470.     cat >> confdefs.h <<\EOF
  2471. #define socklen_t int
  2472. EOF
  2473.  
  2474.     fi
  2475. fi
  2476.  
  2477. echo $ac_n "checking for cc_t""... $ac_c" 1>&6
  2478. echo "configure:2479: checking for cc_t" >&5
  2479. cat > conftest.$ac_ext <<EOF
  2480. #line 2481 "configure"
  2481. #include "confdefs.h"
  2482.  
  2483. #ifdef HAVE_TERMIOS_H
  2484. #  include <termios.h>
  2485. #else
  2486. #  ifdef HAVE_TERMIO_H
  2487. #    include <termio.h>
  2488. #  endif
  2489. #endif
  2490. int main() {
  2491. cc_t x;
  2492. ; return 0; }
  2493. EOF
  2494. if { (eval echo configure:2495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2495.   rm -rf conftest*
  2496.   scheme_cv_type_cc_t=yes
  2497. else
  2498.   echo "configure: failed program was:" >&5
  2499.   cat conftest.$ac_ext >&5
  2500.   rm -rf conftest*
  2501.   scheme_cv_type_cc_t=no
  2502. fi
  2503. rm -f conftest*
  2504. echo "$ac_t""${scheme_cv_type_cc_t}" 1>&6
  2505. if test "${scheme_cv_type_cc_t}" = "no"; then
  2506.     cat >> confdefs.h <<\EOF
  2507. #define cc_t unsigned char
  2508. EOF
  2509.  
  2510. fi
  2511.  
  2512. echo $ac_n "checking for speed_t""... $ac_c" 1>&6
  2513. echo "configure:2514: checking for speed_t" >&5
  2514. cat > conftest.$ac_ext <<EOF
  2515. #line 2516 "configure"
  2516. #include "confdefs.h"
  2517.  
  2518. #ifdef HAVE_TERMIOS_H
  2519. #  include <termios.h>
  2520. #else
  2521. #  ifdef HAVE_TERMIO_H
  2522. #    include <termio.h>
  2523. #  endif
  2524. #endif
  2525. int main() {
  2526. speed_t x;
  2527. ; return 0; }
  2528. EOF
  2529. if { (eval echo configure:2530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2530.   rm -rf conftest*
  2531.   scheme_cv_type_speed_t=yes
  2532. else
  2533.   echo "configure: failed program was:" >&5
  2534.   cat conftest.$ac_ext >&5
  2535.   rm -rf conftest*
  2536.   scheme_cv_type_speed_t=no
  2537. fi
  2538. rm -f conftest*
  2539. echo "$ac_t""${scheme_cv_type_speed_t}" 1>&6
  2540. if test "${scheme_cv_type_speed_t}" = "no"; then
  2541.     cat >> confdefs.h <<\EOF
  2542. #define speed_t short
  2543. EOF
  2544.  
  2545. fi
  2546.  
  2547. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  2548. echo "configure:2549: checking whether struct tm is in sys/time.h or time.h" >&5
  2549. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  2550.   echo $ac_n "(cached) $ac_c" 1>&6
  2551. else
  2552.   cat > conftest.$ac_ext <<EOF
  2553. #line 2554 "configure"
  2554. #include "confdefs.h"
  2555. #include <sys/types.h>
  2556. #include <time.h>
  2557. int main() {
  2558. struct tm *tp; tp->tm_sec;
  2559. ; return 0; }
  2560. EOF
  2561. if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2562.   rm -rf conftest*
  2563.   ac_cv_struct_tm=time.h
  2564. else
  2565.   echo "configure: failed program was:" >&5
  2566.   cat conftest.$ac_ext >&5
  2567.   rm -rf conftest*
  2568.   ac_cv_struct_tm=sys/time.h
  2569. fi
  2570. rm -f conftest*
  2571. fi
  2572.  
  2573. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  2574. if test $ac_cv_struct_tm = sys/time.h; then
  2575.   cat >> confdefs.h <<\EOF
  2576. #define TM_IN_SYS_TIME 1
  2577. EOF
  2578.  
  2579. fi
  2580.  
  2581. echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
  2582. echo "configure:2583: checking for tm_zone in struct tm" >&5
  2583. if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  2584.   echo $ac_n "(cached) $ac_c" 1>&6
  2585. else
  2586.   cat > conftest.$ac_ext <<EOF
  2587. #line 2588 "configure"
  2588. #include "confdefs.h"
  2589. #include <sys/types.h>
  2590. #include <$ac_cv_struct_tm>
  2591. int main() {
  2592. struct tm tm; tm.tm_zone;
  2593. ; return 0; }
  2594. EOF
  2595. if { (eval echo configure:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2596.   rm -rf conftest*
  2597.   ac_cv_struct_tm_zone=yes
  2598. else
  2599.   echo "configure: failed program was:" >&5
  2600.   cat conftest.$ac_ext >&5
  2601.   rm -rf conftest*
  2602.   ac_cv_struct_tm_zone=no
  2603. fi
  2604. rm -f conftest*
  2605. fi
  2606.  
  2607. echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
  2608. if test "$ac_cv_struct_tm_zone" = yes; then
  2609.   cat >> confdefs.h <<\EOF
  2610. #define HAVE_TM_ZONE 1
  2611. EOF
  2612.  
  2613. else
  2614.   echo $ac_n "checking for tzname""... $ac_c" 1>&6
  2615. echo "configure:2616: checking for tzname" >&5
  2616. if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
  2617.   echo $ac_n "(cached) $ac_c" 1>&6
  2618. else
  2619.   cat > conftest.$ac_ext <<EOF
  2620. #line 2621 "configure"
  2621. #include "confdefs.h"
  2622. #include <time.h>
  2623. #ifndef tzname /* For SGI.  */
  2624. extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
  2625. #endif
  2626. int main() {
  2627. atoi(*tzname);
  2628. ; return 0; }
  2629. EOF
  2630. if { (eval echo configure:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2631.   rm -rf conftest*
  2632.   ac_cv_var_tzname=yes
  2633. else
  2634.   echo "configure: failed program was:" >&5
  2635.   cat conftest.$ac_ext >&5
  2636.   rm -rf conftest*
  2637.   ac_cv_var_tzname=no
  2638. fi
  2639. rm -f conftest*
  2640. fi
  2641.  
  2642. echo "$ac_t""$ac_cv_var_tzname" 1>&6
  2643.   if test $ac_cv_var_tzname = yes; then
  2644.     cat >> confdefs.h <<\EOF
  2645. #define HAVE_TZNAME 1
  2646. EOF
  2647.  
  2648.   fi
  2649. fi
  2650.  
  2651.  
  2652.  
  2653. have_timezone_info=no
  2654.  
  2655. if test "${have_timezone_info}" = "no"; then
  2656.     echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
  2657. echo "configure:2658: checking for tm_gmtoff in struct tm" >&5
  2658.     cat > conftest.$ac_ext <<EOF
  2659. #line 2660 "configure"
  2660. #include "confdefs.h"
  2661. #include <time.h>
  2662. int main() {
  2663. struct tm t; t.tm_gmtoff
  2664. ; return 0; }
  2665. EOF
  2666. if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2667.   rm -rf conftest*
  2668.   scheme_cv_struct_tm_gmtoff=yes
  2669. else
  2670.   echo "configure: failed program was:" >&5
  2671.   cat conftest.$ac_ext >&5
  2672.   rm -rf conftest*
  2673.   scheme_cv_struct_tm_gmtoff=no
  2674. fi
  2675. rm -f conftest*
  2676.     echo "$ac_t""${scheme_cv_struct_tm_gmtoff}" 1>&6
  2677.     if test "${scheme_cv_struct_tm_gmtoff}" = "yes"; then
  2678.     cat >> confdefs.h <<\EOF
  2679. #define HAVE_TM_GMTOFF 1
  2680. EOF
  2681.  
  2682.     cat >> confdefs.h <<\EOF
  2683. #define TM_GMTOFF tm_gmtoff
  2684. EOF
  2685.  
  2686.     have_timezone_info=yes
  2687.     fi
  2688. fi
  2689.  
  2690. if test "${have_timezone_info}" = "no"; then
  2691.     echo $ac_n "checking for __tm_gmtoff in struct tm""... $ac_c" 1>&6
  2692. echo "configure:2693: checking for __tm_gmtoff in struct tm" >&5
  2693.     cat > conftest.$ac_ext <<EOF
  2694. #line 2695 "configure"
  2695. #include "confdefs.h"
  2696. #include <time.h>
  2697. int main() {
  2698. struct tm t; t.__tm_gmtoff
  2699. ; return 0; }
  2700. EOF
  2701. if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2702.   rm -rf conftest*
  2703.   scheme_cv_struct___tm_gmtoff=yes
  2704. else
  2705.   echo "configure: failed program was:" >&5
  2706.   cat conftest.$ac_ext >&5
  2707.   rm -rf conftest*
  2708.   scheme_cv_struct___tm_gmtoff=no
  2709. fi
  2710. rm -f conftest*
  2711.     echo "$ac_t""${scheme_cv_struct___tm_gmtoff}" 1>&6
  2712.     if test "${scheme_cv_struct___tm_gmtoff}" = "yes"; then
  2713.     cat >> confdefs.h <<\EOF
  2714. #define HAVE_TM_GMTOFF 1
  2715. EOF
  2716.  
  2717.     cat >> confdefs.h <<\EOF
  2718. #define TM_GMTOFF __tm_gmtoff
  2719. EOF
  2720.  
  2721.     have_timezone_info=yes
  2722.     fi
  2723. fi
  2724.  
  2725. if test "${have_timezone_info}" = "no"; then
  2726.     echo $ac_n "checking for __timezone""... $ac_c" 1>&6
  2727. echo "configure:2728: checking for __timezone" >&5
  2728.     cat > conftest.$ac_ext <<EOF
  2729. #line 2730 "configure"
  2730. #include "confdefs.h"
  2731.  
  2732. #ifdef TIME_WITH_SYS_TIME
  2733. #  include <sys/time.h>
  2734. #  include <time.h>
  2735. #else
  2736. #  ifdef HAVE_SYS_TIME_H
  2737. #    include <sys/time.h>
  2738. #  else
  2739. #    include <time.h>
  2740. #  endif
  2741. #endif
  2742. int main() {
  2743. __timezone;
  2744. ; return 0; }
  2745. EOF
  2746. if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2747.   rm -rf conftest*
  2748.   scheme_cv_var___timezone=yes
  2749. else
  2750.   echo "configure: failed program was:" >&5
  2751.   cat conftest.$ac_ext >&5
  2752.   rm -rf conftest*
  2753.   scheme_cv_var___timezone=no
  2754. fi
  2755. rm -f conftest*
  2756.     echo "$ac_t""${scheme_cv_var___timezone}" 1>&6
  2757.     if test "${scheme_cv_var___timezone}" = "yes"; then
  2758.     cat >> confdefs.h <<\EOF
  2759. #define HAVE_TIMEZONE 1
  2760. EOF
  2761.  
  2762.     cat >> confdefs.h <<\EOF
  2763. #define TIMEZONE __timezone
  2764. EOF
  2765.  
  2766.     have_timezone_info=yes
  2767.     fi
  2768. fi
  2769.  
  2770. if test "${have_timezone_info}" = "no"; then
  2771.     echo $ac_n "checking for _timezone""... $ac_c" 1>&6
  2772. echo "configure:2773: checking for _timezone" >&5
  2773.     cat > conftest.$ac_ext <<EOF
  2774. #line 2775 "configure"
  2775. #include "confdefs.h"
  2776.  
  2777. #ifdef TIME_WITH_SYS_TIME
  2778. #  include <sys/time.h>
  2779. #  include <time.h>
  2780. #else
  2781. #  ifdef HAVE_SYS_TIME_H
  2782. #    include <sys/time.h>
  2783. #  else
  2784. #    include <time.h>
  2785. #  endif
  2786. #endif
  2787. int main() {
  2788. _timezone;
  2789. ; return 0; }
  2790. EOF
  2791. if { (eval echo configure:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2792.   rm -rf conftest*
  2793.   scheme_cv_var__timezone=yes
  2794. else
  2795.   echo "configure: failed program was:" >&5
  2796.   cat conftest.$ac_ext >&5
  2797.   rm -rf conftest*
  2798.   scheme_cv_var__timezone=no
  2799. fi
  2800. rm -f conftest*
  2801.     echo "$ac_t""${scheme_cv_var__timezone}" 1>&6
  2802.     if test "${scheme_cv_var__timezone}" = "yes"; then
  2803.     cat >> confdefs.h <<\EOF
  2804. #define HAVE_TIMEZONE 1
  2805. EOF
  2806.  
  2807.     cat >> confdefs.h <<\EOF
  2808. #define TIMEZONE _timezone
  2809. EOF
  2810.  
  2811.     have_timezone_info=yes
  2812.     fi
  2813. fi
  2814.  
  2815. if test "${have_timezone_info}" = "no"; then
  2816.     echo $ac_n "checking for timezone""... $ac_c" 1>&6
  2817. echo "configure:2818: checking for timezone" >&5
  2818.     cat > conftest.$ac_ext <<EOF
  2819. #line 2820 "configure"
  2820. #include "confdefs.h"
  2821.  
  2822. #ifdef TIME_WITH_SYS_TIME
  2823. #  include <sys/time.h>
  2824. #  include <time.h>
  2825. #else
  2826. #  ifdef HAVE_SYS_TIME_H
  2827. #    include <sys/time.h>
  2828. #  else
  2829. #    include <time.h>
  2830. #  endif
  2831. #endif
  2832. int main() {
  2833. timezone;
  2834. ; return 0; }
  2835. EOF
  2836. if { (eval echo configure:2837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2837.   rm -rf conftest*
  2838.   scheme_cv_var_timezone=yes
  2839. else
  2840.   echo "configure: failed program was:" >&5
  2841.   cat conftest.$ac_ext >&5
  2842.   rm -rf conftest*
  2843.   scheme_cv_var_timezone=no
  2844. fi
  2845. rm -f conftest*
  2846.     echo "$ac_t""${scheme_cv_var_timezone}" 1>&6
  2847.     if test "${scheme_cv_var_timezone}" = "yes"; then
  2848.     cat >> confdefs.h <<\EOF
  2849. #define HAVE_TIMEZONE 1
  2850. EOF
  2851.  
  2852.     cat >> confdefs.h <<\EOF
  2853. #define TIMEZONE timezone
  2854. EOF
  2855.  
  2856.     have_timezone_info=yes
  2857.     fi
  2858. fi
  2859.  
  2860. if test "${ac_cv_header_bsdtty_h}" = "yes"; then
  2861.     echo $ac_n "checking for struct ltchars""... $ac_c" 1>&6
  2862. echo "configure:2863: checking for struct ltchars" >&5
  2863.     cat > conftest.$ac_ext <<EOF
  2864. #line 2865 "configure"
  2865. #include "confdefs.h"
  2866. #include <bsdtty.h>
  2867. int main() {
  2868. struct ltchars x;
  2869. ; return 0; }
  2870. EOF
  2871. if { (eval echo configure:2872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2872.   rm -rf conftest*
  2873.   scheme_cv_struct_ltchars=yes
  2874. else
  2875.   echo "configure: failed program was:" >&5
  2876.   cat conftest.$ac_ext >&5
  2877.   rm -rf conftest*
  2878.   scheme_cv_struct_ltchars=no
  2879. fi
  2880. rm -f conftest*
  2881.     echo "$ac_t""${scheme_cv_struct_ltchars}" 1>&6
  2882.     if test "${scheme_cv_struct_ltchars}" = "yes"; then
  2883.     cat >> confdefs.h <<\EOF
  2884. #define HAVE_STRUCT_LTCHARS 1
  2885. EOF
  2886.  
  2887.     fi
  2888. fi
  2889.  
  2890. echo $ac_n "checking for hostent h_addr_list""... $ac_c" 1>&6
  2891. echo "configure:2892: checking for hostent h_addr_list" >&5
  2892. cat > conftest.$ac_ext <<EOF
  2893. #line 2894 "configure"
  2894. #include "confdefs.h"
  2895. #include <netdb.h>
  2896. int main() {
  2897. struct hostent x; x.h_addr_list;
  2898. ; return 0; }
  2899. EOF
  2900. if { (eval echo configure:2901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2901.   rm -rf conftest*
  2902.   scheme_cv_struct_hostent_h_addr_list=yes
  2903. else
  2904.   echo "configure: failed program was:" >&5
  2905.   cat conftest.$ac_ext >&5
  2906.   rm -rf conftest*
  2907.   scheme_cv_struct_hostent_h_addr_list=no
  2908. fi
  2909. rm -f conftest*
  2910. echo "$ac_t""${scheme_cv_struct_hostent_h_addr_list}" 1>&6
  2911. if test "${scheme_cv_struct_hostent_h_addr_list}" = "yes"; then
  2912.     cat >> confdefs.h <<\EOF
  2913. #define HAVE_HOSTENT_H_ADDR_LIST 1
  2914. EOF
  2915.  
  2916. fi
  2917.  
  2918. echo $ac_n "checking for struct sigcontext""... $ac_c" 1>&6
  2919. echo "configure:2920: checking for struct sigcontext" >&5
  2920. cat > conftest.$ac_ext <<EOF
  2921. #line 2922 "configure"
  2922. #include "confdefs.h"
  2923. #include <signal.h>
  2924. int main() {
  2925. struct sigcontext x;
  2926. ; return 0; }
  2927. EOF
  2928. if { (eval echo configure:2929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2929.   rm -rf conftest*
  2930.   scheme_cv_struct_sigcontext=yes
  2931. else
  2932.   echo "configure: failed program was:" >&5
  2933.   cat conftest.$ac_ext >&5
  2934.   rm -rf conftest*
  2935.   scheme_cv_struct_sigcontext=no
  2936. fi
  2937. rm -f conftest*
  2938. echo "$ac_t""${scheme_cv_struct_sigcontext}" 1>&6
  2939. if test "${scheme_cv_struct_sigcontext}" = "yes"; then
  2940.     cat >> confdefs.h <<\EOF
  2941. #define HAVE_STRUCT_SIGCONTEXT 1
  2942. EOF
  2943.  
  2944. fi
  2945.  
  2946. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  2947. echo "configure:2948: checking whether byte ordering is bigendian" >&5
  2948. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  2949.   echo $ac_n "(cached) $ac_c" 1>&6
  2950. else
  2951.   ac_cv_c_bigendian=unknown
  2952. # See if sys/param.h defines the BYTE_ORDER macro.
  2953. cat > conftest.$ac_ext <<EOF
  2954. #line 2955 "configure"
  2955. #include "confdefs.h"
  2956. #include <sys/types.h>
  2957. #include <sys/param.h>
  2958. int main() {
  2959.  
  2960. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2961.  bogus endian macros
  2962. #endif
  2963. ; return 0; }
  2964. EOF
  2965. if { (eval echo configure:2966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2966.   rm -rf conftest*
  2967.   # It does; now see whether it defined to BIG_ENDIAN or not.
  2968. cat > conftest.$ac_ext <<EOF
  2969. #line 2970 "configure"
  2970. #include "confdefs.h"
  2971. #include <sys/types.h>
  2972. #include <sys/param.h>
  2973. int main() {
  2974.  
  2975. #if BYTE_ORDER != BIG_ENDIAN
  2976.  not big endian
  2977. #endif
  2978. ; return 0; }
  2979. EOF
  2980. if { (eval echo configure:2981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2981.   rm -rf conftest*
  2982.   ac_cv_c_bigendian=yes
  2983. else
  2984.   echo "configure: failed program was:" >&5
  2985.   cat conftest.$ac_ext >&5
  2986.   rm -rf conftest*
  2987.   ac_cv_c_bigendian=no
  2988. fi
  2989. rm -f conftest*
  2990. else
  2991.   echo "configure: failed program was:" >&5
  2992.   cat conftest.$ac_ext >&5
  2993. fi
  2994. rm -f conftest*
  2995. if test $ac_cv_c_bigendian = unknown; then
  2996. if test "$cross_compiling" = yes; then
  2997.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2998. else
  2999.   cat > conftest.$ac_ext <<EOF
  3000. #line 3001 "configure"
  3001. #include "confdefs.h"
  3002. main () {
  3003.   /* Are we little or big endian?  From Harbison&Steele.  */
  3004.   union
  3005.   {
  3006.     long l;
  3007.     char c[sizeof (long)];
  3008.   } u;
  3009.   u.l = 1;
  3010.   exit (u.c[sizeof (long) - 1] == 1);
  3011. }
  3012. EOF
  3013. if { (eval echo configure:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3014. then
  3015.   ac_cv_c_bigendian=no
  3016. else
  3017.   echo "configure: failed program was:" >&5
  3018.   cat conftest.$ac_ext >&5
  3019.   rm -fr conftest*
  3020.   ac_cv_c_bigendian=yes
  3021. fi
  3022. rm -fr conftest*
  3023. fi
  3024.  
  3025. fi
  3026. fi
  3027.  
  3028. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  3029. if test $ac_cv_c_bigendian = yes; then
  3030.   cat >> confdefs.h <<\EOF
  3031. #define WORDS_BIGENDIAN 1
  3032. EOF
  3033.  
  3034. fi
  3035.  
  3036. echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
  3037. echo "configure:3038: checking whether char is unsigned" >&5
  3038. if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  3039.   echo $ac_n "(cached) $ac_c" 1>&6
  3040. else
  3041.   if test "$GCC" = yes; then
  3042.   # GCC predefines this symbol on systems where it applies.
  3043. cat > conftest.$ac_ext <<EOF
  3044. #line 3045 "configure"
  3045. #include "confdefs.h"
  3046. #ifdef __CHAR_UNSIGNED__
  3047.   yes
  3048. #endif
  3049.  
  3050. EOF
  3051. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3052.   egrep "yes" >/dev/null 2>&1; then
  3053.   rm -rf conftest*
  3054.   ac_cv_c_char_unsigned=yes
  3055. else
  3056.   rm -rf conftest*
  3057.   ac_cv_c_char_unsigned=no
  3058. fi
  3059. rm -f conftest*
  3060.  
  3061. else
  3062. if test "$cross_compiling" = yes; then
  3063.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3064. else
  3065.   cat > conftest.$ac_ext <<EOF
  3066. #line 3067 "configure"
  3067. #include "confdefs.h"
  3068. /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  3069. #if !defined(__STDC__) || __STDC__ != 1
  3070. #define volatile
  3071. #endif
  3072. main() {
  3073.   volatile char c = 255; exit(c < 0);
  3074. }
  3075. EOF
  3076. if { (eval echo configure:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3077. then
  3078.   ac_cv_c_char_unsigned=yes
  3079. else
  3080.   echo "configure: failed program was:" >&5
  3081.   cat conftest.$ac_ext >&5
  3082.   rm -fr conftest*
  3083.   ac_cv_c_char_unsigned=no
  3084. fi
  3085. rm -fr conftest*
  3086. fi
  3087.  
  3088. fi
  3089. fi
  3090.  
  3091. echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
  3092. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  3093.   cat >> confdefs.h <<\EOF
  3094. #define __CHAR_UNSIGNED__ 1
  3095. EOF
  3096.  
  3097. fi
  3098.  
  3099. echo $ac_n "checking for working const""... $ac_c" 1>&6
  3100. echo "configure:3101: checking for working const" >&5
  3101. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  3102.   echo $ac_n "(cached) $ac_c" 1>&6
  3103. else
  3104.   cat > conftest.$ac_ext <<EOF
  3105. #line 3106 "configure"
  3106. #include "confdefs.h"
  3107.  
  3108. int main() {
  3109.  
  3110. /* Ultrix mips cc rejects this.  */
  3111. typedef int charset[2]; const charset x = {0,0};
  3112. /* SunOS 4.1.1 cc rejects this.  */
  3113. char const *const *ccp;
  3114. char **p;
  3115. /* NEC SVR4.0.2 mips cc rejects this.  */
  3116. struct point {int x, y;};
  3117. static struct point const zero = {0,0};
  3118. /* AIX XL C 1.02.0.0 rejects this.
  3119.    It does not let you subtract one const X* pointer from another in an arm
  3120.    of an if-expression whose if-part is not a constant expression */
  3121. const char *g = "string";
  3122. ccp = &g + (g ? g-g : 0);
  3123. /* HPUX 7.0 cc rejects these. */
  3124. ++ccp;
  3125. p = (char**) ccp;
  3126. ccp = (char const *const *) p;
  3127. { /* SCO 3.2v4 cc rejects this.  */
  3128.   char *t;
  3129.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  3130.  
  3131.   *t++ = 0;
  3132. }
  3133. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  3134.   int x[] = {25, 17};
  3135.   const int *foo = &x[0];
  3136.   ++foo;
  3137. }
  3138. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3139.   typedef const int *iptr;
  3140.   iptr p = 0;
  3141.   ++p;
  3142. }
  3143. { /* AIX XL C 1.02.0.0 rejects this saying
  3144.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3145.   struct s { int j; const int *ap[3]; };
  3146.   struct s *b; b->j = 5;
  3147. }
  3148. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3149.   const int foo = 10;
  3150. }
  3151.  
  3152. ; return 0; }
  3153. EOF
  3154. if { (eval echo configure:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3155.   rm -rf conftest*
  3156.   ac_cv_c_const=yes
  3157. else
  3158.   echo "configure: failed program was:" >&5
  3159.   cat conftest.$ac_ext >&5
  3160.   rm -rf conftest*
  3161.   ac_cv_c_const=no
  3162. fi
  3163. rm -f conftest*
  3164. fi
  3165.  
  3166. echo "$ac_t""$ac_cv_c_const" 1>&6
  3167. if test $ac_cv_c_const = no; then
  3168.   cat >> confdefs.h <<\EOF
  3169. #define const 
  3170. EOF
  3171.  
  3172. fi
  3173.  
  3174. echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
  3175. echo "configure:3176: checking size of unsigned long" >&5
  3176. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
  3177.   echo $ac_n "(cached) $ac_c" 1>&6
  3178. else
  3179.   if test "$cross_compiling" = yes; then
  3180.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3181. else
  3182.   cat > conftest.$ac_ext <<EOF
  3183. #line 3184 "configure"
  3184. #include "confdefs.h"
  3185. #include <stdio.h>
  3186. main()
  3187. {
  3188.   FILE *f=fopen("conftestval", "w");
  3189.   if (!f) exit(1);
  3190.   fprintf(f, "%d\n", sizeof(unsigned long));
  3191.   exit(0);
  3192. }
  3193. EOF
  3194. if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3195. then
  3196.   ac_cv_sizeof_unsigned_long=`cat conftestval`
  3197. else
  3198.   echo "configure: failed program was:" >&5
  3199.   cat conftest.$ac_ext >&5
  3200.   rm -fr conftest*
  3201.   ac_cv_sizeof_unsigned_long=0
  3202. fi
  3203. rm -fr conftest*
  3204. fi
  3205.  
  3206. fi
  3207. echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
  3208. cat >> confdefs.h <<EOF
  3209. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  3210. EOF
  3211.  
  3212.  
  3213.  
  3214. echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
  3215. echo "configure:3216: checking whether getpgrp takes no argument" >&5
  3216. if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
  3217.   echo $ac_n "(cached) $ac_c" 1>&6
  3218. else
  3219.   if test "$cross_compiling" = yes; then
  3220.   { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
  3221. else
  3222.   cat > conftest.$ac_ext <<EOF
  3223. #line 3224 "configure"
  3224. #include "confdefs.h"
  3225.  
  3226. /*
  3227.  * If this system has a BSD-style getpgrp(),
  3228.  * which takes a pid argument, exit unsuccessfully.
  3229.  *
  3230.  * Snarfed from Chet Ramey's bash pgrp.c test program
  3231.  */
  3232. #include <stdio.h>
  3233. #include <sys/types.h>
  3234.  
  3235. int     pid;
  3236. int     pg1, pg2, pg3, pg4;
  3237. int     ng, np, s, child;
  3238.  
  3239. main()
  3240. {
  3241.         pid = getpid();
  3242.         pg1 = getpgrp(0);
  3243.         pg2 = getpgrp();
  3244.         pg3 = getpgrp(pid);
  3245.         pg4 = getpgrp(1);
  3246.  
  3247.         /*
  3248.          * If all of these values are the same, it's pretty sure that
  3249.          * we're on a system that ignores getpgrp's first argument.
  3250.          */
  3251.         if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
  3252.                 exit(0);
  3253.  
  3254.         child = fork();
  3255.         if (child < 0)
  3256.                 exit(1);
  3257.         else if (child == 0) {
  3258.                 np = getpid();
  3259.                 /*
  3260.                  * If this is Sys V, this will not work; pgrp will be
  3261.                  * set to np because setpgrp just changes a pgrp to be
  3262.                  * the same as the pid.
  3263.                  */
  3264.                 setpgrp(np, pg1);
  3265.                 ng = getpgrp(0);        /* Same result for Sys V and BSD */
  3266.                 if (ng == pg1) {
  3267.                         exit(1);
  3268.                 } else {
  3269.                         exit(0);
  3270.                 }
  3271.         } else {
  3272.                 wait(&s);
  3273.                 exit(s>>8);
  3274.         }
  3275. }
  3276.  
  3277. EOF
  3278. if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3279. then
  3280.   ac_cv_func_getpgrp_void=yes
  3281. else
  3282.   echo "configure: failed program was:" >&5
  3283.   cat conftest.$ac_ext >&5
  3284.   rm -fr conftest*
  3285.   ac_cv_func_getpgrp_void=no
  3286. fi
  3287. rm -fr conftest*
  3288. fi
  3289.  
  3290.  
  3291. fi
  3292.  
  3293. echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
  3294. if test $ac_cv_func_getpgrp_void = yes; then
  3295.   cat >> confdefs.h <<\EOF
  3296. #define GETPGRP_VOID 1
  3297. EOF
  3298.  
  3299. fi
  3300.  
  3301. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  3302. echo "configure:3303: checking for 8-bit clean memcmp" >&5
  3303. if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
  3304.   echo $ac_n "(cached) $ac_c" 1>&6
  3305. else
  3306.   if test "$cross_compiling" = yes; then
  3307.   ac_cv_func_memcmp_clean=no
  3308. else
  3309.   cat > conftest.$ac_ext <<EOF
  3310. #line 3311 "configure"
  3311. #include "confdefs.h"
  3312.  
  3313. main()
  3314. {
  3315.   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  3316.   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  3317. }
  3318.  
  3319. EOF
  3320. if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3321. then
  3322.   ac_cv_func_memcmp_clean=yes
  3323. else
  3324.   echo "configure: failed program was:" >&5
  3325.   cat conftest.$ac_ext >&5
  3326.   rm -fr conftest*
  3327.   ac_cv_func_memcmp_clean=no
  3328. fi
  3329. rm -fr conftest*
  3330. fi
  3331.  
  3332. fi
  3333.  
  3334. echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
  3335. test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
  3336.  
  3337. for ac_hdr in unistd.h
  3338. do
  3339. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3340. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3341. echo "configure:3342: checking for $ac_hdr" >&5
  3342. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3343.   echo $ac_n "(cached) $ac_c" 1>&6
  3344. else
  3345.   cat > conftest.$ac_ext <<EOF
  3346. #line 3347 "configure"
  3347. #include "confdefs.h"
  3348. #include <$ac_hdr>
  3349. EOF
  3350. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3351. { (eval echo configure:3352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3352. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3353. if test -z "$ac_err"; then
  3354.   rm -rf conftest*
  3355.   eval "ac_cv_header_$ac_safe=yes"
  3356. else
  3357.   echo "$ac_err" >&5
  3358.   echo "configure: failed program was:" >&5
  3359.   cat conftest.$ac_ext >&5
  3360.   rm -rf conftest*
  3361.   eval "ac_cv_header_$ac_safe=no"
  3362. fi
  3363. rm -f conftest*
  3364. fi
  3365. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3366.   echo "$ac_t""yes" 1>&6
  3367.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3368.   cat >> confdefs.h <<EOF
  3369. #define $ac_tr_hdr 1
  3370. EOF
  3371.  
  3372. else
  3373.   echo "$ac_t""no" 1>&6
  3374. fi
  3375. done
  3376.  
  3377. for ac_func in getpagesize
  3378. do
  3379. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3380. echo "configure:3381: checking for $ac_func" >&5
  3381. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3382.   echo $ac_n "(cached) $ac_c" 1>&6
  3383. else
  3384.   cat > conftest.$ac_ext <<EOF
  3385. #line 3386 "configure"
  3386. #include "confdefs.h"
  3387. /* System header to define __stub macros and hopefully few prototypes,
  3388.     which can conflict with char $ac_func(); below.  */
  3389. #include <assert.h>
  3390. /* Override any gcc2 internal prototype to avoid an error.  */
  3391. /* We use char because int might match the return type of a gcc2
  3392.     builtin and then its argument prototype would still apply.  */
  3393. char $ac_func();
  3394.  
  3395. int main() {
  3396.  
  3397. /* The GNU C library defines this for functions which it implements
  3398.     to always fail with ENOSYS.  Some functions are actually named
  3399.     something starting with __ and the normal name is an alias.  */
  3400. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3401. choke me
  3402. #else
  3403. $ac_func();
  3404. #endif
  3405.  
  3406. ; return 0; }
  3407. EOF
  3408. if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3409.   rm -rf conftest*
  3410.   eval "ac_cv_func_$ac_func=yes"
  3411. else
  3412.   echo "configure: failed program was:" >&5
  3413.   cat conftest.$ac_ext >&5
  3414.   rm -rf conftest*
  3415.   eval "ac_cv_func_$ac_func=no"
  3416. fi
  3417. rm -f conftest*
  3418. fi
  3419.  
  3420. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3421.   echo "$ac_t""yes" 1>&6
  3422.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3423.   cat >> confdefs.h <<EOF
  3424. #define $ac_tr_func 1
  3425. EOF
  3426.  
  3427. else
  3428.   echo "$ac_t""no" 1>&6
  3429. fi
  3430. done
  3431.  
  3432. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  3433. echo "configure:3434: checking for working mmap" >&5
  3434. if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  3435.   echo $ac_n "(cached) $ac_c" 1>&6
  3436. else
  3437.   if test "$cross_compiling" = yes; then
  3438.   ac_cv_func_mmap_fixed_mapped=no
  3439. else
  3440.   cat > conftest.$ac_ext <<EOF
  3441. #line 3442 "configure"
  3442. #include "confdefs.h"
  3443.  
  3444. /* Thanks to Mike Haertel and Jim Avera for this test.
  3445.    Here is a matrix of mmap possibilities:
  3446.     mmap private not fixed
  3447.     mmap private fixed at somewhere currently unmapped
  3448.     mmap private fixed at somewhere already mapped
  3449.     mmap shared not fixed
  3450.     mmap shared fixed at somewhere currently unmapped
  3451.     mmap shared fixed at somewhere already mapped
  3452.    For private mappings, we should verify that changes cannot be read()
  3453.    back from the file, nor mmap's back from the file at a different
  3454.    address.  (There have been systems where private was not correctly
  3455.    implemented like the infamous i386 svr4.0, and systems where the
  3456.    VM page cache was not coherent with the filesystem buffer cache
  3457.    like early versions of FreeBSD and possibly contemporary NetBSD.)
  3458.    For shared mappings, we should conversely verify that changes get
  3459.    propogated back to all the places they're supposed to be.
  3460.  
  3461.    Grep wants private fixed already mapped.
  3462.    The main things grep needs to know about mmap are:
  3463.    * does it exist and is it safe to write into the mmap'd area
  3464.    * how to use it (BSD variants)  */
  3465. #include <sys/types.h>
  3466. #include <fcntl.h>
  3467. #include <sys/mman.h>
  3468. #include <stdlib.h>
  3469. #include <sys/stat.h>
  3470.  
  3471. #ifdef HAVE_UNISTD_H
  3472. # include <unistd.h>
  3473. #endif
  3474.  
  3475. /* This mess was copied from the GNU getpagesize.h.  */
  3476. #ifndef HAVE_GETPAGESIZE
  3477.  
  3478. /* Assume that all systems that can run configure have sys/param.h.  */
  3479. # ifndef HAVE_SYS_PARAM_H
  3480. #  define HAVE_SYS_PARAM_H 1
  3481. # endif
  3482.  
  3483. # ifdef _SC_PAGESIZE
  3484. #  define getpagesize() sysconf(_SC_PAGESIZE)
  3485. # else /* no _SC_PAGESIZE */
  3486. #  ifdef HAVE_SYS_PARAM_H
  3487. #   include <sys/param.h>
  3488. #   ifdef EXEC_PAGESIZE
  3489. #    define getpagesize() EXEC_PAGESIZE
  3490. #   else /* no EXEC_PAGESIZE */
  3491. #    ifdef NBPG
  3492. #     define getpagesize() NBPG * CLSIZE
  3493. #     ifndef CLSIZE
  3494. #      define CLSIZE 1
  3495. #     endif /* no CLSIZE */
  3496. #    else /* no NBPG */
  3497. #     ifdef NBPC
  3498. #      define getpagesize() NBPC
  3499. #     else /* no NBPC */
  3500. #      ifdef PAGESIZE
  3501. #       define getpagesize() PAGESIZE
  3502. #      endif /* PAGESIZE */
  3503. #     endif /* no NBPC */
  3504. #    endif /* no NBPG */
  3505. #   endif /* no EXEC_PAGESIZE */
  3506. #  else /* no HAVE_SYS_PARAM_H */
  3507. #   define getpagesize() 8192    /* punt totally */
  3508. #  endif /* no HAVE_SYS_PARAM_H */
  3509. # endif /* no _SC_PAGESIZE */
  3510.  
  3511. #endif /* no HAVE_GETPAGESIZE */
  3512.  
  3513. #ifdef __cplusplus
  3514. extern "C" { void *malloc(unsigned); }
  3515. #else
  3516. char *malloc();
  3517. #endif
  3518.  
  3519. int
  3520. main()
  3521. {
  3522.     char *data, *data2, *data3;
  3523.     int i, pagesize;
  3524.     int fd;
  3525.  
  3526.     pagesize = getpagesize();
  3527.  
  3528.     /*
  3529.      * First, make a file with some known garbage in it.
  3530.      */
  3531.     data = (char*)malloc(pagesize);
  3532.     if (!data)
  3533.         exit(1);
  3534.     for (i = 0; i < pagesize; ++i)
  3535.         *(data + i) = rand();
  3536.     umask(0);
  3537.     fd = creat("conftestmmap", 0600);
  3538.     if (fd < 0)
  3539.         exit(1);
  3540.     if (write(fd, data, pagesize) != pagesize)
  3541.         exit(1);
  3542.     close(fd);
  3543.  
  3544.     /*
  3545.      * Next, try to mmap the file at a fixed address which
  3546.      * already has something else allocated at it.  If we can,
  3547.      * also make sure that we see the same garbage.
  3548.      */
  3549.     fd = open("conftestmmap", O_RDWR);
  3550.     if (fd < 0)
  3551.         exit(1);
  3552.     data2 = (char*)malloc(2 * pagesize);
  3553.     if (!data2)
  3554.         exit(1);
  3555.     data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  3556.     if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
  3557.         MAP_PRIVATE | MAP_FIXED, fd, 0L))
  3558.         exit(1);
  3559.     for (i = 0; i < pagesize; ++i)
  3560.         if (*(data + i) != *(data2 + i))
  3561.             exit(1);
  3562.  
  3563.     /*
  3564.      * Finally, make sure that changes to the mapped area
  3565.      * do not percolate back to the file as seen by read().
  3566.      * (This is a bug on some variants of i386 svr4.0.)
  3567.      */
  3568.     for (i = 0; i < pagesize; ++i)
  3569.         *(data2 + i) = *(data2 + i) + 1;
  3570.     data3 = (char*)malloc(pagesize);
  3571.     if (!data3)
  3572.         exit(1);
  3573.     if (read(fd, data3, pagesize) != pagesize)
  3574.         exit(1);
  3575.     for (i = 0; i < pagesize; ++i)
  3576.         if (*(data + i) != *(data3 + i))
  3577.             exit(1);
  3578.     close(fd);
  3579.     unlink("conftestmmap");
  3580.     exit(0);
  3581. }
  3582.  
  3583. EOF
  3584. if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3585. then
  3586.   ac_cv_func_mmap_fixed_mapped=yes
  3587. else
  3588.   echo "configure: failed program was:" >&5
  3589.   cat conftest.$ac_ext >&5
  3590.   rm -fr conftest*
  3591.   ac_cv_func_mmap_fixed_mapped=no
  3592. fi
  3593. rm -fr conftest*
  3594. fi
  3595.  
  3596. fi
  3597.  
  3598. echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
  3599. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  3600.   cat >> confdefs.h <<\EOF
  3601. #define HAVE_MMAP 1
  3602. EOF
  3603.  
  3604. fi
  3605.  
  3606. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  3607. echo "configure:3608: checking whether setpgrp takes no argument" >&5
  3608. if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
  3609.   echo $ac_n "(cached) $ac_c" 1>&6
  3610. else
  3611.   if test "$cross_compiling" = yes; then
  3612.   { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  3613. else
  3614.   cat > conftest.$ac_ext <<EOF
  3615. #line 3616 "configure"
  3616. #include "confdefs.h"
  3617.  
  3618. #ifdef HAVE_UNISTD_H
  3619. #include <unistd.h>
  3620. #endif
  3621.  
  3622. /*
  3623.  * If this system has a BSD-style setpgrp, which takes arguments, exit
  3624.  * successfully.
  3625.  */
  3626. main()
  3627. {
  3628.     if (setpgrp(1,1) == -1)
  3629.     exit(0);
  3630.     else
  3631.     exit(1);
  3632. }
  3633.  
  3634. EOF
  3635. if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3636. then
  3637.   ac_cv_func_setpgrp_void=no
  3638. else
  3639.   echo "configure: failed program was:" >&5
  3640.   cat conftest.$ac_ext >&5
  3641.   rm -fr conftest*
  3642.   ac_cv_func_setpgrp_void=yes
  3643. fi
  3644. rm -fr conftest*
  3645. fi
  3646.  
  3647.  
  3648. fi
  3649.  
  3650. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  3651. if test $ac_cv_func_setpgrp_void = yes; then
  3652.   cat >> confdefs.h <<\EOF
  3653. #define SETPGRP_VOID 1
  3654. EOF
  3655.  
  3656. fi
  3657.  
  3658. echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
  3659. echo "configure:3660: checking whether setvbuf arguments are reversed" >&5
  3660. if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
  3661.   echo $ac_n "(cached) $ac_c" 1>&6
  3662. else
  3663.   if test "$cross_compiling" = yes; then
  3664.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3665. else
  3666.   cat > conftest.$ac_ext <<EOF
  3667. #line 3668 "configure"
  3668. #include "confdefs.h"
  3669. #include <stdio.h>
  3670. /* If setvbuf has the reversed format, exit 0. */
  3671. main () {
  3672.   /* This call has the arguments reversed.
  3673.      A reversed system may check and see that the address of main
  3674.      is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  3675.   if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
  3676.     exit(1);
  3677.   putc('\r', stdout);
  3678.   exit(0);            /* Non-reversed systems segv here.  */
  3679. }
  3680. EOF
  3681. if { (eval echo configure:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3682. then
  3683.   ac_cv_func_setvbuf_reversed=yes
  3684. else
  3685.   echo "configure: failed program was:" >&5
  3686.   cat conftest.$ac_ext >&5
  3687.   rm -fr conftest*
  3688.   ac_cv_func_setvbuf_reversed=no
  3689. fi
  3690. rm -fr conftest*
  3691. fi
  3692.  
  3693. rm -f core core.* *.core
  3694. fi
  3695.  
  3696. echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
  3697. if test $ac_cv_func_setvbuf_reversed = yes; then
  3698.   cat >> confdefs.h <<\EOF
  3699. #define SETVBUF_REVERSED 1
  3700. EOF
  3701.  
  3702. fi
  3703.  
  3704. echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
  3705. echo "configure:3706: checking whether utime accepts a null argument" >&5
  3706. if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
  3707.   echo $ac_n "(cached) $ac_c" 1>&6
  3708. else
  3709.   rm -f conftestdata; > conftestdata
  3710. # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
  3711. if test "$cross_compiling" = yes; then
  3712.   ac_cv_func_utime_null=no
  3713. else
  3714.   cat > conftest.$ac_ext <<EOF
  3715. #line 3716 "configure"
  3716. #include "confdefs.h"
  3717. #include <sys/types.h>
  3718. #include <sys/stat.h>
  3719. main() {
  3720. struct stat s, t;
  3721. exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
  3722. && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
  3723. && t.st_mtime - s.st_mtime < 120));
  3724. }
  3725. EOF
  3726. if { (eval echo configure:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3727. then
  3728.   ac_cv_func_utime_null=yes
  3729. else
  3730.   echo "configure: failed program was:" >&5
  3731.   cat conftest.$ac_ext >&5
  3732.   rm -fr conftest*
  3733.   ac_cv_func_utime_null=no
  3734. fi
  3735. rm -fr conftest*
  3736. fi
  3737.  
  3738. rm -f core core.* *.core
  3739. fi
  3740.  
  3741. echo "$ac_t""$ac_cv_func_utime_null" 1>&6
  3742. if test $ac_cv_func_utime_null = yes; then
  3743.   cat >> confdefs.h <<\EOF
  3744. #define HAVE_UTIME_NULL 1
  3745. EOF
  3746.  
  3747. fi
  3748.  
  3749. ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
  3750. echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
  3751. echo "configure:3752: checking for vfork.h" >&5
  3752. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3753.   echo $ac_n "(cached) $ac_c" 1>&6
  3754. else
  3755.   cat > conftest.$ac_ext <<EOF
  3756. #line 3757 "configure"
  3757. #include "confdefs.h"
  3758. #include <vfork.h>
  3759. EOF
  3760. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3761. { (eval echo configure:3762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3762. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3763. if test -z "$ac_err"; then
  3764.   rm -rf conftest*
  3765.   eval "ac_cv_header_$ac_safe=yes"
  3766. else
  3767.   echo "$ac_err" >&5
  3768.   echo "configure: failed program was:" >&5
  3769.   cat conftest.$ac_ext >&5
  3770.   rm -rf conftest*
  3771.   eval "ac_cv_header_$ac_safe=no"
  3772. fi
  3773. rm -f conftest*
  3774. fi
  3775. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3776.   echo "$ac_t""yes" 1>&6
  3777.   cat >> confdefs.h <<\EOF
  3778. #define HAVE_VFORK_H 1
  3779. EOF
  3780.  
  3781. else
  3782.   echo "$ac_t""no" 1>&6
  3783. fi
  3784.  
  3785. echo $ac_n "checking for working vfork""... $ac_c" 1>&6
  3786. echo "configure:3787: checking for working vfork" >&5
  3787. if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
  3788.   echo $ac_n "(cached) $ac_c" 1>&6
  3789. else
  3790.   if test "$cross_compiling" = yes; then
  3791.   echo $ac_n "checking for vfork""... $ac_c" 1>&6
  3792. echo "configure:3793: checking for vfork" >&5
  3793. if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
  3794.   echo $ac_n "(cached) $ac_c" 1>&6
  3795. else
  3796.   cat > conftest.$ac_ext <<EOF
  3797. #line 3798 "configure"
  3798. #include "confdefs.h"
  3799. /* System header to define __stub macros and hopefully few prototypes,
  3800.     which can conflict with char vfork(); below.  */
  3801. #include <assert.h>
  3802. /* Override any gcc2 internal prototype to avoid an error.  */
  3803. /* We use char because int might match the return type of a gcc2
  3804.     builtin and then its argument prototype would still apply.  */
  3805. char vfork();
  3806.  
  3807. int main() {
  3808.  
  3809. /* The GNU C library defines this for functions which it implements
  3810.     to always fail with ENOSYS.  Some functions are actually named
  3811.     something starting with __ and the normal name is an alias.  */
  3812. #if defined (__stub_vfork) || defined (__stub___vfork)
  3813. choke me
  3814. #else
  3815. vfork();
  3816. #endif
  3817.  
  3818. ; return 0; }
  3819. EOF
  3820. if { (eval echo configure:3821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3821.   rm -rf conftest*
  3822.   eval "ac_cv_func_vfork=yes"
  3823. else
  3824.   echo "configure: failed program was:" >&5
  3825.   cat conftest.$ac_ext >&5
  3826.   rm -rf conftest*
  3827.   eval "ac_cv_func_vfork=no"
  3828. fi
  3829. rm -f conftest*
  3830. fi
  3831.  
  3832. if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
  3833.   echo "$ac_t""yes" 1>&6
  3834.   :
  3835. else
  3836.   echo "$ac_t""no" 1>&6
  3837. fi
  3838.  
  3839. ac_cv_func_vfork_works=$ac_cv_func_vfork
  3840. else
  3841.   cat > conftest.$ac_ext <<EOF
  3842. #line 3843 "configure"
  3843. #include "confdefs.h"
  3844. /* Thanks to Paul Eggert for this test.  */
  3845. #include <stdio.h>
  3846. #include <sys/types.h>
  3847. #include <sys/stat.h>
  3848. #ifdef HAVE_UNISTD_H
  3849. #include <unistd.h>
  3850. #endif
  3851. #ifdef HAVE_VFORK_H
  3852. #include <vfork.h>
  3853. #endif
  3854. /* On some sparc systems, changes by the child to local and incoming
  3855.    argument registers are propagated back to the parent.
  3856.    The compiler is told about this with #include <vfork.h>,
  3857.    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
  3858.    Test for this by using a static variable whose address
  3859.    is put into a register that is clobbered by the vfork.  */
  3860. static
  3861. #ifdef __cplusplus
  3862. sparc_address_test (int arg)
  3863. #else
  3864. sparc_address_test (arg) int arg;
  3865. #endif
  3866. {
  3867.   static pid_t child;
  3868.   if (!child) {
  3869.     child = vfork ();
  3870.     if (child < 0) {
  3871.       perror ("vfork");
  3872.       _exit(2);
  3873.     }
  3874.     if (!child) {
  3875.       arg = getpid();
  3876.       write(-1, "", 0);
  3877.       _exit (arg);
  3878.     }
  3879.   }
  3880. }
  3881. main() {
  3882.   pid_t parent = getpid ();
  3883.   pid_t child;
  3884.  
  3885.   sparc_address_test ();
  3886.  
  3887.   child = vfork ();
  3888.  
  3889.   if (child == 0) {
  3890.     /* Here is another test for sparc vfork register problems.
  3891.        This test uses lots of local variables, at least
  3892.        as many local variables as main has allocated so far
  3893.        including compiler temporaries.  4 locals are enough for
  3894.        gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
  3895.        A buggy compiler should reuse the register of parent
  3896.        for one of the local variables, since it will think that
  3897.        parent can't possibly be used any more in this routine.
  3898.        Assigning to the local variable will thus munge parent
  3899.        in the parent process.  */
  3900.     pid_t
  3901.       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  3902.       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  3903.     /* Convince the compiler that p..p7 are live; otherwise, it might
  3904.        use the same hardware register for all 8 local variables.  */
  3905.     if (p != p1 || p != p2 || p != p3 || p != p4
  3906.     || p != p5 || p != p6 || p != p7)
  3907.       _exit(1);
  3908.  
  3909.     /* On some systems (e.g. IRIX 3.3),
  3910.        vfork doesn't separate parent from child file descriptors.
  3911.        If the child closes a descriptor before it execs or exits,
  3912.        this munges the parent's descriptor as well.
  3913.        Test for this by closing stdout in the child.  */
  3914.     _exit(close(fileno(stdout)) != 0);
  3915.   } else {
  3916.     int status;
  3917.     struct stat st;
  3918.  
  3919.     while (wait(&status) != child)
  3920.       ;
  3921.     exit(
  3922.      /* Was there some problem with vforking?  */
  3923.      child < 0
  3924.  
  3925.      /* Did the child fail?  (This shouldn't happen.)  */
  3926.      || status
  3927.  
  3928.      /* Did the vfork/compiler bug occur?  */
  3929.      || parent != getpid()
  3930.  
  3931.      /* Did the file descriptor bug occur?  */
  3932.      || fstat(fileno(stdout), &st) != 0
  3933.      );
  3934.   }
  3935. }
  3936. EOF
  3937. if { (eval echo configure:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3938. then
  3939.   ac_cv_func_vfork_works=yes
  3940. else
  3941.   echo "configure: failed program was:" >&5
  3942.   cat conftest.$ac_ext >&5
  3943.   rm -fr conftest*
  3944.   ac_cv_func_vfork_works=no
  3945. fi
  3946. rm -fr conftest*
  3947. fi
  3948.  
  3949. fi
  3950.  
  3951. echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
  3952. if test $ac_cv_func_vfork_works = no; then
  3953.   cat >> confdefs.h <<\EOF
  3954. #define vfork fork
  3955. EOF
  3956.  
  3957. fi
  3958.  
  3959. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  3960. echo "configure:3961: checking for vprintf" >&5
  3961. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  3962.   echo $ac_n "(cached) $ac_c" 1>&6
  3963. else
  3964.   cat > conftest.$ac_ext <<EOF
  3965. #line 3966 "configure"
  3966. #include "confdefs.h"
  3967. /* System header to define __stub macros and hopefully few prototypes,
  3968.     which can conflict with char vprintf(); below.  */
  3969. #include <assert.h>
  3970. /* Override any gcc2 internal prototype to avoid an error.  */
  3971. /* We use char because int might match the return type of a gcc2
  3972.     builtin and then its argument prototype would still apply.  */
  3973. char vprintf();
  3974.  
  3975. int main() {
  3976.  
  3977. /* The GNU C library defines this for functions which it implements
  3978.     to always fail with ENOSYS.  Some functions are actually named
  3979.     something starting with __ and the normal name is an alias.  */
  3980. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  3981. choke me
  3982. #else
  3983. vprintf();
  3984. #endif
  3985.  
  3986. ; return 0; }
  3987. EOF
  3988. if { (eval echo configure:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3989.   rm -rf conftest*
  3990.   eval "ac_cv_func_vprintf=yes"
  3991. else
  3992.   echo "configure: failed program was:" >&5
  3993.   cat conftest.$ac_ext >&5
  3994.   rm -rf conftest*
  3995.   eval "ac_cv_func_vprintf=no"
  3996. fi
  3997. rm -f conftest*
  3998. fi
  3999.  
  4000. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  4001.   echo "$ac_t""yes" 1>&6
  4002.   cat >> confdefs.h <<\EOF
  4003. #define HAVE_VPRINTF 1
  4004. EOF
  4005.  
  4006. else
  4007.   echo "$ac_t""no" 1>&6
  4008. fi
  4009.  
  4010. if test "$ac_cv_func_vprintf" != yes; then
  4011. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  4012. echo "configure:4013: checking for _doprnt" >&5
  4013. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  4014.   echo $ac_n "(cached) $ac_c" 1>&6
  4015. else
  4016.   cat > conftest.$ac_ext <<EOF
  4017. #line 4018 "configure"
  4018. #include "confdefs.h"
  4019. /* System header to define __stub macros and hopefully few prototypes,
  4020.     which can conflict with char _doprnt(); below.  */
  4021. #include <assert.h>
  4022. /* Override any gcc2 internal prototype to avoid an error.  */
  4023. /* We use char because int might match the return type of a gcc2
  4024.     builtin and then its argument prototype would still apply.  */
  4025. char _doprnt();
  4026.  
  4027. int main() {
  4028.  
  4029. /* The GNU C library defines this for functions which it implements
  4030.     to always fail with ENOSYS.  Some functions are actually named
  4031.     something starting with __ and the normal name is an alias.  */
  4032. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  4033. choke me
  4034. #else
  4035. _doprnt();
  4036. #endif
  4037.  
  4038. ; return 0; }
  4039. EOF
  4040. if { (eval echo configure:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4041.   rm -rf conftest*
  4042.   eval "ac_cv_func__doprnt=yes"
  4043. else
  4044.   echo "configure: failed program was:" >&5
  4045.   cat conftest.$ac_ext >&5
  4046.   rm -rf conftest*
  4047.   eval "ac_cv_func__doprnt=no"
  4048. fi
  4049. rm -f conftest*
  4050. fi
  4051.  
  4052. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  4053.   echo "$ac_t""yes" 1>&6
  4054.   cat >> confdefs.h <<\EOF
  4055. #define HAVE_DOPRNT 1
  4056. EOF
  4057.  
  4058. else
  4059.   echo "$ac_t""no" 1>&6
  4060. fi
  4061.  
  4062. fi
  4063.  
  4064. echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
  4065. echo "configure:4066: checking for wait3 that fills in rusage" >&5
  4066. if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
  4067.   echo $ac_n "(cached) $ac_c" 1>&6
  4068. else
  4069.   if test "$cross_compiling" = yes; then
  4070.   ac_cv_func_wait3_rusage=no
  4071. else
  4072.   cat > conftest.$ac_ext <<EOF
  4073. #line 4074 "configure"
  4074. #include "confdefs.h"
  4075. #include <sys/types.h>
  4076. #include <sys/time.h>
  4077. #include <sys/resource.h>
  4078. #include <stdio.h>
  4079. /* HP-UX has wait3 but does not fill in rusage at all.  */
  4080. main() {
  4081.   struct rusage r;
  4082.   int i;
  4083.   /* Use a field that we can force nonzero --
  4084.      voluntary context switches.
  4085.      For systems like NeXT and OSF/1 that don't set it,
  4086.      also use the system CPU time.  And page faults (I/O) for Linux.  */
  4087.   r.ru_nvcsw = 0;
  4088.   r.ru_stime.tv_sec = 0;
  4089.   r.ru_stime.tv_usec = 0;
  4090.   r.ru_majflt = r.ru_minflt = 0;
  4091.   switch (fork()) {
  4092.   case 0: /* Child.  */
  4093.     sleep(1); /* Give up the CPU.  */
  4094.     _exit(0);
  4095.   case -1: _exit(0); /* What can we do?  */
  4096.   default: /* Parent.  */
  4097.     wait3(&i, 0, &r);
  4098.     sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines.  */
  4099.     exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
  4100.      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
  4101.   }
  4102. }
  4103. EOF
  4104. if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4105. then
  4106.   ac_cv_func_wait3_rusage=yes
  4107. else
  4108.   echo "configure: failed program was:" >&5
  4109.   cat conftest.$ac_ext >&5
  4110.   rm -fr conftest*
  4111.   ac_cv_func_wait3_rusage=no
  4112. fi
  4113. rm -fr conftest*
  4114. fi
  4115.  
  4116. fi
  4117.  
  4118. echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
  4119. if test $ac_cv_func_wait3_rusage = yes; then
  4120.   cat >> confdefs.h <<\EOF
  4121. #define HAVE_WAIT3 1
  4122. EOF
  4123.  
  4124. fi
  4125.  
  4126. for ac_func in ctermid
  4127. do
  4128. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4129. echo "configure:4130: checking for $ac_func" >&5
  4130. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4131.   echo $ac_n "(cached) $ac_c" 1>&6
  4132. else
  4133.   cat > conftest.$ac_ext <<EOF
  4134. #line 4135 "configure"
  4135. #include "confdefs.h"
  4136. /* System header to define __stub macros and hopefully few prototypes,
  4137.     which can conflict with char $ac_func(); below.  */
  4138. #include <assert.h>
  4139. /* Override any gcc2 internal prototype to avoid an error.  */
  4140. /* We use char because int might match the return type of a gcc2
  4141.     builtin and then its argument prototype would still apply.  */
  4142. char $ac_func();
  4143.  
  4144. int main() {
  4145.  
  4146. /* The GNU C library defines this for functions which it implements
  4147.     to always fail with ENOSYS.  Some functions are actually named
  4148.     something starting with __ and the normal name is an alias.  */
  4149. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4150. choke me
  4151. #else
  4152. $ac_func();
  4153. #endif
  4154.  
  4155. ; return 0; }
  4156. EOF
  4157. if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4158.   rm -rf conftest*
  4159.   eval "ac_cv_func_$ac_func=yes"
  4160. else
  4161.   echo "configure: failed program was:" >&5
  4162.   cat conftest.$ac_ext >&5
  4163.   rm -rf conftest*
  4164.   eval "ac_cv_func_$ac_func=no"
  4165. fi
  4166. rm -f conftest*
  4167. fi
  4168.  
  4169. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4170.   echo "$ac_t""yes" 1>&6
  4171.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4172.   cat >> confdefs.h <<EOF
  4173. #define $ac_tr_func 1
  4174. EOF
  4175.  
  4176. else
  4177.   echo "$ac_t""no" 1>&6
  4178. fi
  4179. done
  4180.  
  4181. for ac_func in dup2
  4182. do
  4183. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4184. echo "configure:4185: checking for $ac_func" >&5
  4185. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4186.   echo $ac_n "(cached) $ac_c" 1>&6
  4187. else
  4188.   cat > conftest.$ac_ext <<EOF
  4189. #line 4190 "configure"
  4190. #include "confdefs.h"
  4191. /* System header to define __stub macros and hopefully few prototypes,
  4192.     which can conflict with char $ac_func(); below.  */
  4193. #include <assert.h>
  4194. /* Override any gcc2 internal prototype to avoid an error.  */
  4195. /* We use char because int might match the return type of a gcc2
  4196.     builtin and then its argument prototype would still apply.  */
  4197. char $ac_func();
  4198.  
  4199. int main() {
  4200.  
  4201. /* The GNU C library defines this for functions which it implements
  4202.     to always fail with ENOSYS.  Some functions are actually named
  4203.     something starting with __ and the normal name is an alias.  */
  4204. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4205. choke me
  4206. #else
  4207. $ac_func();
  4208. #endif
  4209.  
  4210. ; return 0; }
  4211. EOF
  4212. if { (eval echo configure:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4213.   rm -rf conftest*
  4214.   eval "ac_cv_func_$ac_func=yes"
  4215. else
  4216.   echo "configure: failed program was:" >&5
  4217.   cat conftest.$ac_ext >&5
  4218.   rm -rf conftest*
  4219.   eval "ac_cv_func_$ac_func=no"
  4220. fi
  4221. rm -f conftest*
  4222. fi
  4223.  
  4224. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4225.   echo "$ac_t""yes" 1>&6
  4226.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4227.   cat >> confdefs.h <<EOF
  4228. #define $ac_tr_func 1
  4229. EOF
  4230.  
  4231. else
  4232.   echo "$ac_t""no" 1>&6
  4233. fi
  4234. done
  4235.  
  4236. for ac_func in fcntl floor fpathconf frexp ftruncate
  4237. do
  4238. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4239. echo "configure:4240: checking for $ac_func" >&5
  4240. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4241.   echo $ac_n "(cached) $ac_c" 1>&6
  4242. else
  4243.   cat > conftest.$ac_ext <<EOF
  4244. #line 4245 "configure"
  4245. #include "confdefs.h"
  4246. /* System header to define __stub macros and hopefully few prototypes,
  4247.     which can conflict with char $ac_func(); below.  */
  4248. #include <assert.h>
  4249. /* Override any gcc2 internal prototype to avoid an error.  */
  4250. /* We use char because int might match the return type of a gcc2
  4251.     builtin and then its argument prototype would still apply.  */
  4252. char $ac_func();
  4253.  
  4254. int main() {
  4255.  
  4256. /* The GNU C library defines this for functions which it implements
  4257.     to always fail with ENOSYS.  Some functions are actually named
  4258.     something starting with __ and the normal name is an alias.  */
  4259. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4260. choke me
  4261. #else
  4262. $ac_func();
  4263. #endif
  4264.  
  4265. ; return 0; }
  4266. EOF
  4267. if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4268.   rm -rf conftest*
  4269.   eval "ac_cv_func_$ac_func=yes"
  4270. else
  4271.   echo "configure: failed program was:" >&5
  4272.   cat conftest.$ac_ext >&5
  4273.   rm -rf conftest*
  4274.   eval "ac_cv_func_$ac_func=no"
  4275. fi
  4276. rm -f conftest*
  4277. fi
  4278.  
  4279. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4280.   echo "$ac_t""yes" 1>&6
  4281.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4282.   cat >> confdefs.h <<EOF
  4283. #define $ac_tr_func 1
  4284. EOF
  4285.  
  4286. else
  4287.   echo "$ac_t""no" 1>&6
  4288. fi
  4289. done
  4290.  
  4291. for ac_func in getcwd gethostbyname gethostname getlogin getpgrp
  4292. do
  4293. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4294. echo "configure:4295: checking for $ac_func" >&5
  4295. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4296.   echo $ac_n "(cached) $ac_c" 1>&6
  4297. else
  4298.   cat > conftest.$ac_ext <<EOF
  4299. #line 4300 "configure"
  4300. #include "confdefs.h"
  4301. /* System header to define __stub macros and hopefully few prototypes,
  4302.     which can conflict with char $ac_func(); below.  */
  4303. #include <assert.h>
  4304. /* Override any gcc2 internal prototype to avoid an error.  */
  4305. /* We use char because int might match the return type of a gcc2
  4306.     builtin and then its argument prototype would still apply.  */
  4307. char $ac_func();
  4308.  
  4309. int main() {
  4310.  
  4311. /* The GNU C library defines this for functions which it implements
  4312.     to always fail with ENOSYS.  Some functions are actually named
  4313.     something starting with __ and the normal name is an alias.  */
  4314. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4315. choke me
  4316. #else
  4317. $ac_func();
  4318. #endif
  4319.  
  4320. ; return 0; }
  4321. EOF
  4322. if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4323.   rm -rf conftest*
  4324.   eval "ac_cv_func_$ac_func=yes"
  4325. else
  4326.   echo "configure: failed program was:" >&5
  4327.   cat conftest.$ac_ext >&5
  4328.   rm -rf conftest*
  4329.   eval "ac_cv_func_$ac_func=no"
  4330. fi
  4331. rm -f conftest*
  4332. fi
  4333.  
  4334. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4335.   echo "$ac_t""yes" 1>&6
  4336.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4337.   cat >> confdefs.h <<EOF
  4338. #define $ac_tr_func 1
  4339. EOF
  4340.  
  4341. else
  4342.   echo "$ac_t""no" 1>&6
  4343. fi
  4344. done
  4345.  
  4346. for ac_func in gettimeofday getwd grantpt
  4347. do
  4348. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4349. echo "configure:4350: checking for $ac_func" >&5
  4350. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4351.   echo $ac_n "(cached) $ac_c" 1>&6
  4352. else
  4353.   cat > conftest.$ac_ext <<EOF
  4354. #line 4355 "configure"
  4355. #include "confdefs.h"
  4356. /* System header to define __stub macros and hopefully few prototypes,
  4357.     which can conflict with char $ac_func(); below.  */
  4358. #include <assert.h>
  4359. /* Override any gcc2 internal prototype to avoid an error.  */
  4360. /* We use char because int might match the return type of a gcc2
  4361.     builtin and then its argument prototype would still apply.  */
  4362. char $ac_func();
  4363.  
  4364. int main() {
  4365.  
  4366. /* The GNU C library defines this for functions which it implements
  4367.     to always fail with ENOSYS.  Some functions are actually named
  4368.     something starting with __ and the normal name is an alias.  */
  4369. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4370. choke me
  4371. #else
  4372. $ac_func();
  4373. #endif
  4374.  
  4375. ; return 0; }
  4376. EOF
  4377. if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4378.   rm -rf conftest*
  4379.   eval "ac_cv_func_$ac_func=yes"
  4380. else
  4381.   echo "configure: failed program was:" >&5
  4382.   cat conftest.$ac_ext >&5
  4383.   rm -rf conftest*
  4384.   eval "ac_cv_func_$ac_func=no"
  4385. fi
  4386. rm -f conftest*
  4387. fi
  4388.  
  4389. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4390.   echo "$ac_t""yes" 1>&6
  4391.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4392.   cat >> confdefs.h <<EOF
  4393. #define $ac_tr_func 1
  4394. EOF
  4395.  
  4396. else
  4397.   echo "$ac_t""no" 1>&6
  4398. fi
  4399. done
  4400.  
  4401. for ac_func in kill
  4402. do
  4403. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4404. echo "configure:4405: checking for $ac_func" >&5
  4405. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4406.   echo $ac_n "(cached) $ac_c" 1>&6
  4407. else
  4408.   cat > conftest.$ac_ext <<EOF
  4409. #line 4410 "configure"
  4410. #include "confdefs.h"
  4411. /* System header to define __stub macros and hopefully few prototypes,
  4412.     which can conflict with char $ac_func(); below.  */
  4413. #include <assert.h>
  4414. /* Override any gcc2 internal prototype to avoid an error.  */
  4415. /* We use char because int might match the return type of a gcc2
  4416.     builtin and then its argument prototype would still apply.  */
  4417. char $ac_func();
  4418.  
  4419. int main() {
  4420.  
  4421. /* The GNU C library defines this for functions which it implements
  4422.     to always fail with ENOSYS.  Some functions are actually named
  4423.     something starting with __ and the normal name is an alias.  */
  4424. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4425. choke me
  4426. #else
  4427. $ac_func();
  4428. #endif
  4429.  
  4430. ; return 0; }
  4431. EOF
  4432. if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4433.   rm -rf conftest*
  4434.   eval "ac_cv_func_$ac_func=yes"
  4435. else
  4436.   echo "configure: failed program was:" >&5
  4437.   cat conftest.$ac_ext >&5
  4438.   rm -rf conftest*
  4439.   eval "ac_cv_func_$ac_func=no"
  4440. fi
  4441. rm -f conftest*
  4442. fi
  4443.  
  4444. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4445.   echo "$ac_t""yes" 1>&6
  4446.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4447.   cat >> confdefs.h <<EOF
  4448. #define $ac_tr_func 1
  4449. EOF
  4450.  
  4451. else
  4452.   echo "$ac_t""no" 1>&6
  4453. fi
  4454. done
  4455.  
  4456. for ac_func in lockf
  4457. do
  4458. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4459. echo "configure:4460: checking for $ac_func" >&5
  4460. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4461.   echo $ac_n "(cached) $ac_c" 1>&6
  4462. else
  4463.   cat > conftest.$ac_ext <<EOF
  4464. #line 4465 "configure"
  4465. #include "confdefs.h"
  4466. /* System header to define __stub macros and hopefully few prototypes,
  4467.     which can conflict with char $ac_func(); below.  */
  4468. #include <assert.h>
  4469. /* Override any gcc2 internal prototype to avoid an error.  */
  4470. /* We use char because int might match the return type of a gcc2
  4471.     builtin and then its argument prototype would still apply.  */
  4472. char $ac_func();
  4473.  
  4474. int main() {
  4475.  
  4476. /* The GNU C library defines this for functions which it implements
  4477.     to always fail with ENOSYS.  Some functions are actually named
  4478.     something starting with __ and the normal name is an alias.  */
  4479. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4480. choke me
  4481. #else
  4482. $ac_func();
  4483. #endif
  4484.  
  4485. ; return 0; }
  4486. EOF
  4487. if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4488.   rm -rf conftest*
  4489.   eval "ac_cv_func_$ac_func=yes"
  4490. else
  4491.   echo "configure: failed program was:" >&5
  4492.   cat conftest.$ac_ext >&5
  4493.   rm -rf conftest*
  4494.   eval "ac_cv_func_$ac_func=no"
  4495. fi
  4496. rm -f conftest*
  4497. fi
  4498.  
  4499. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4500.   echo "$ac_t""yes" 1>&6
  4501.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4502.   cat >> confdefs.h <<EOF
  4503. #define $ac_tr_func 1
  4504. EOF
  4505.  
  4506. else
  4507.   echo "$ac_t""no" 1>&6
  4508. fi
  4509. done
  4510.  
  4511. for ac_func in memcpy mkdir mktime modf
  4512. do
  4513. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4514. echo "configure:4515: checking for $ac_func" >&5
  4515. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4516.   echo $ac_n "(cached) $ac_c" 1>&6
  4517. else
  4518.   cat > conftest.$ac_ext <<EOF
  4519. #line 4520 "configure"
  4520. #include "confdefs.h"
  4521. /* System header to define __stub macros and hopefully few prototypes,
  4522.     which can conflict with char $ac_func(); below.  */
  4523. #include <assert.h>
  4524. /* Override any gcc2 internal prototype to avoid an error.  */
  4525. /* We use char because int might match the return type of a gcc2
  4526.     builtin and then its argument prototype would still apply.  */
  4527. char $ac_func();
  4528.  
  4529. int main() {
  4530.  
  4531. /* The GNU C library defines this for functions which it implements
  4532.     to always fail with ENOSYS.  Some functions are actually named
  4533.     something starting with __ and the normal name is an alias.  */
  4534. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4535. choke me
  4536. #else
  4537. $ac_func();
  4538. #endif
  4539.  
  4540. ; return 0; }
  4541. EOF
  4542. if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4543.   rm -rf conftest*
  4544.   eval "ac_cv_func_$ac_func=yes"
  4545. else
  4546.   echo "configure: failed program was:" >&5
  4547.   cat conftest.$ac_ext >&5
  4548.   rm -rf conftest*
  4549.   eval "ac_cv_func_$ac_func=no"
  4550. fi
  4551. rm -f conftest*
  4552. fi
  4553.  
  4554. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4555.   echo "$ac_t""yes" 1>&6
  4556.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4557.   cat >> confdefs.h <<EOF
  4558. #define $ac_tr_func 1
  4559. EOF
  4560.  
  4561. else
  4562.   echo "$ac_t""no" 1>&6
  4563. fi
  4564. done
  4565.  
  4566. for ac_func in nice
  4567. do
  4568. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4569. echo "configure:4570: checking for $ac_func" >&5
  4570. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4571.   echo $ac_n "(cached) $ac_c" 1>&6
  4572. else
  4573.   cat > conftest.$ac_ext <<EOF
  4574. #line 4575 "configure"
  4575. #include "confdefs.h"
  4576. /* System header to define __stub macros and hopefully few prototypes,
  4577.     which can conflict with char $ac_func(); below.  */
  4578. #include <assert.h>
  4579. /* Override any gcc2 internal prototype to avoid an error.  */
  4580. /* We use char because int might match the return type of a gcc2
  4581.     builtin and then its argument prototype would still apply.  */
  4582. char $ac_func();
  4583.  
  4584. int main() {
  4585.  
  4586. /* The GNU C library defines this for functions which it implements
  4587.     to always fail with ENOSYS.  Some functions are actually named
  4588.     something starting with __ and the normal name is an alias.  */
  4589. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4590. choke me
  4591. #else
  4592. $ac_func();
  4593. #endif
  4594.  
  4595. ; return 0; }
  4596. EOF
  4597. if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4598.   rm -rf conftest*
  4599.   eval "ac_cv_func_$ac_func=yes"
  4600. else
  4601.   echo "configure: failed program was:" >&5
  4602.   cat conftest.$ac_ext >&5
  4603.   rm -rf conftest*
  4604.   eval "ac_cv_func_$ac_func=no"
  4605. fi
  4606. rm -f conftest*
  4607. fi
  4608.  
  4609. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4610.   echo "$ac_t""yes" 1>&6
  4611.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4612.   cat >> confdefs.h <<EOF
  4613. #define $ac_tr_func 1
  4614. EOF
  4615.  
  4616. else
  4617.   echo "$ac_t""no" 1>&6
  4618. fi
  4619. done
  4620.  
  4621. for ac_func in poll prealloc
  4622. do
  4623. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4624. echo "configure:4625: checking for $ac_func" >&5
  4625. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4626.   echo $ac_n "(cached) $ac_c" 1>&6
  4627. else
  4628.   cat > conftest.$ac_ext <<EOF
  4629. #line 4630 "configure"
  4630. #include "confdefs.h"
  4631. /* System header to define __stub macros and hopefully few prototypes,
  4632.     which can conflict with char $ac_func(); below.  */
  4633. #include <assert.h>
  4634. /* Override any gcc2 internal prototype to avoid an error.  */
  4635. /* We use char because int might match the return type of a gcc2
  4636.     builtin and then its argument prototype would still apply.  */
  4637. char $ac_func();
  4638.  
  4639. int main() {
  4640.  
  4641. /* The GNU C library defines this for functions which it implements
  4642.     to always fail with ENOSYS.  Some functions are actually named
  4643.     something starting with __ and the normal name is an alias.  */
  4644. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4645. choke me
  4646. #else
  4647. $ac_func();
  4648. #endif
  4649.  
  4650. ; return 0; }
  4651. EOF
  4652. if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4653.   rm -rf conftest*
  4654.   eval "ac_cv_func_$ac_func=yes"
  4655. else
  4656.   echo "configure: failed program was:" >&5
  4657.   cat conftest.$ac_ext >&5
  4658.   rm -rf conftest*
  4659.   eval "ac_cv_func_$ac_func=no"
  4660. fi
  4661. rm -f conftest*
  4662. fi
  4663.  
  4664. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4665.   echo "$ac_t""yes" 1>&6
  4666.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4667.   cat >> confdefs.h <<EOF
  4668. #define $ac_tr_func 1
  4669. EOF
  4670.  
  4671. else
  4672.   echo "$ac_t""no" 1>&6
  4673. fi
  4674. done
  4675.  
  4676. for ac_func in rename rmdir
  4677. do
  4678. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4679. echo "configure:4680: checking for $ac_func" >&5
  4680. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4681.   echo $ac_n "(cached) $ac_c" 1>&6
  4682. else
  4683.   cat > conftest.$ac_ext <<EOF
  4684. #line 4685 "configure"
  4685. #include "confdefs.h"
  4686. /* System header to define __stub macros and hopefully few prototypes,
  4687.     which can conflict with char $ac_func(); below.  */
  4688. #include <assert.h>
  4689. /* Override any gcc2 internal prototype to avoid an error.  */
  4690. /* We use char because int might match the return type of a gcc2
  4691.     builtin and then its argument prototype would still apply.  */
  4692. char $ac_func();
  4693.  
  4694. int main() {
  4695.  
  4696. /* The GNU C library defines this for functions which it implements
  4697.     to always fail with ENOSYS.  Some functions are actually named
  4698.     something starting with __ and the normal name is an alias.  */
  4699. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4700. choke me
  4701. #else
  4702. $ac_func();
  4703. #endif
  4704.  
  4705. ; return 0; }
  4706. EOF
  4707. if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4708.   rm -rf conftest*
  4709.   eval "ac_cv_func_$ac_func=yes"
  4710. else
  4711.   echo "configure: failed program was:" >&5
  4712.   cat conftest.$ac_ext >&5
  4713.   rm -rf conftest*
  4714.   eval "ac_cv_func_$ac_func=no"
  4715. fi
  4716. rm -f conftest*
  4717. fi
  4718.  
  4719. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4720.   echo "$ac_t""yes" 1>&6
  4721.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4722.   cat >> confdefs.h <<EOF
  4723. #define $ac_tr_func 1
  4724. EOF
  4725.  
  4726. else
  4727.   echo "$ac_t""no" 1>&6
  4728. fi
  4729. done
  4730.  
  4731. for ac_func in select setitimer setpgrp setpgrp2 shmat sigaction
  4732. do
  4733. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4734. echo "configure:4735: checking for $ac_func" >&5
  4735. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4736.   echo $ac_n "(cached) $ac_c" 1>&6
  4737. else
  4738.   cat > conftest.$ac_ext <<EOF
  4739. #line 4740 "configure"
  4740. #include "confdefs.h"
  4741. /* System header to define __stub macros and hopefully few prototypes,
  4742.     which can conflict with char $ac_func(); below.  */
  4743. #include <assert.h>
  4744. /* Override any gcc2 internal prototype to avoid an error.  */
  4745. /* We use char because int might match the return type of a gcc2
  4746.     builtin and then its argument prototype would still apply.  */
  4747. char $ac_func();
  4748.  
  4749. int main() {
  4750.  
  4751. /* The GNU C library defines this for functions which it implements
  4752.     to always fail with ENOSYS.  Some functions are actually named
  4753.     something starting with __ and the normal name is an alias.  */
  4754. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4755. choke me
  4756. #else
  4757. $ac_func();
  4758. #endif
  4759.  
  4760. ; return 0; }
  4761. EOF
  4762. if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4763.   rm -rf conftest*
  4764.   eval "ac_cv_func_$ac_func=yes"
  4765. else
  4766.   echo "configure: failed program was:" >&5
  4767.   cat conftest.$ac_ext >&5
  4768.   rm -rf conftest*
  4769.   eval "ac_cv_func_$ac_func=no"
  4770. fi
  4771. rm -f conftest*
  4772. fi
  4773.  
  4774. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4775.   echo "$ac_t""yes" 1>&6
  4776.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4777.   cat >> confdefs.h <<EOF
  4778. #define $ac_tr_func 1
  4779. EOF
  4780.  
  4781. else
  4782.   echo "$ac_t""no" 1>&6
  4783. fi
  4784. done
  4785.  
  4786. for ac_func in sighold socket statfs strchr strstr strtol strtoul
  4787. do
  4788. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4789. echo "configure:4790: checking for $ac_func" >&5
  4790. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4791.   echo $ac_n "(cached) $ac_c" 1>&6
  4792. else
  4793.   cat > conftest.$ac_ext <<EOF
  4794. #line 4795 "configure"
  4795. #include "confdefs.h"
  4796. /* System header to define __stub macros and hopefully few prototypes,
  4797.     which can conflict with char $ac_func(); below.  */
  4798. #include <assert.h>
  4799. /* Override any gcc2 internal prototype to avoid an error.  */
  4800. /* We use char because int might match the return type of a gcc2
  4801.     builtin and then its argument prototype would still apply.  */
  4802. char $ac_func();
  4803.  
  4804. int main() {
  4805.  
  4806. /* The GNU C library defines this for functions which it implements
  4807.     to always fail with ENOSYS.  Some functions are actually named
  4808.     something starting with __ and the normal name is an alias.  */
  4809. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4810. choke me
  4811. #else
  4812. $ac_func();
  4813. #endif
  4814.  
  4815. ; return 0; }
  4816. EOF
  4817. if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4818.   rm -rf conftest*
  4819.   eval "ac_cv_func_$ac_func=yes"
  4820. else
  4821.   echo "configure: failed program was:" >&5
  4822.   cat conftest.$ac_ext >&5
  4823.   rm -rf conftest*
  4824.   eval "ac_cv_func_$ac_func=no"
  4825. fi
  4826. rm -f conftest*
  4827. fi
  4828.  
  4829. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4830.   echo "$ac_t""yes" 1>&6
  4831.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4832.   cat >> confdefs.h <<EOF
  4833. #define $ac_tr_func 1
  4834. EOF
  4835.  
  4836. else
  4837.   echo "$ac_t""no" 1>&6
  4838. fi
  4839. done
  4840.  
  4841. for ac_func in symlink sysconf
  4842. do
  4843. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4844. echo "configure:4845: checking for $ac_func" >&5
  4845. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4846.   echo $ac_n "(cached) $ac_c" 1>&6
  4847. else
  4848.   cat > conftest.$ac_ext <<EOF
  4849. #line 4850 "configure"
  4850. #include "confdefs.h"
  4851. /* System header to define __stub macros and hopefully few prototypes,
  4852.     which can conflict with char $ac_func(); below.  */
  4853. #include <assert.h>
  4854. /* Override any gcc2 internal prototype to avoid an error.  */
  4855. /* We use char because int might match the return type of a gcc2
  4856.     builtin and then its argument prototype would still apply.  */
  4857. char $ac_func();
  4858.  
  4859. int main() {
  4860.  
  4861. /* The GNU C library defines this for functions which it implements
  4862.     to always fail with ENOSYS.  Some functions are actually named
  4863.     something starting with __ and the normal name is an alias.  */
  4864. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4865. choke me
  4866. #else
  4867. $ac_func();
  4868. #endif
  4869.  
  4870. ; return 0; }
  4871. EOF
  4872. if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4873.   rm -rf conftest*
  4874.   eval "ac_cv_func_$ac_func=yes"
  4875. else
  4876.   echo "configure: failed program was:" >&5
  4877.   cat conftest.$ac_ext >&5
  4878.   rm -rf conftest*
  4879.   eval "ac_cv_func_$ac_func=no"
  4880. fi
  4881. rm -f conftest*
  4882. fi
  4883.  
  4884. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4885.   echo "$ac_t""yes" 1>&6
  4886.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4887.   cat >> confdefs.h <<EOF
  4888. #define $ac_tr_func 1
  4889. EOF
  4890.  
  4891. else
  4892.   echo "$ac_t""no" 1>&6
  4893. fi
  4894. done
  4895.  
  4896. for ac_func in times truncate
  4897. do
  4898. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4899. echo "configure:4900: checking for $ac_func" >&5
  4900. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4901.   echo $ac_n "(cached) $ac_c" 1>&6
  4902. else
  4903.   cat > conftest.$ac_ext <<EOF
  4904. #line 4905 "configure"
  4905. #include "confdefs.h"
  4906. /* System header to define __stub macros and hopefully few prototypes,
  4907.     which can conflict with char $ac_func(); below.  */
  4908. #include <assert.h>
  4909. /* Override any gcc2 internal prototype to avoid an error.  */
  4910. /* We use char because int might match the return type of a gcc2
  4911.     builtin and then its argument prototype would still apply.  */
  4912. char $ac_func();
  4913.  
  4914. int main() {
  4915.  
  4916. /* The GNU C library defines this for functions which it implements
  4917.     to always fail with ENOSYS.  Some functions are actually named
  4918.     something starting with __ and the normal name is an alias.  */
  4919. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4920. choke me
  4921. #else
  4922. $ac_func();
  4923. #endif
  4924.  
  4925. ; return 0; }
  4926. EOF
  4927. if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4928.   rm -rf conftest*
  4929.   eval "ac_cv_func_$ac_func=yes"
  4930. else
  4931.   echo "configure: failed program was:" >&5
  4932.   cat conftest.$ac_ext >&5
  4933.   rm -rf conftest*
  4934.   eval "ac_cv_func_$ac_func=no"
  4935. fi
  4936. rm -f conftest*
  4937. fi
  4938.  
  4939. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4940.   echo "$ac_t""yes" 1>&6
  4941.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4942.   cat >> confdefs.h <<EOF
  4943. #define $ac_tr_func 1
  4944. EOF
  4945.  
  4946. else
  4947.   echo "$ac_t""no" 1>&6
  4948. fi
  4949. done
  4950.  
  4951. for ac_func in uname utime
  4952. do
  4953. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4954. echo "configure:4955: checking for $ac_func" >&5
  4955. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4956.   echo $ac_n "(cached) $ac_c" 1>&6
  4957. else
  4958.   cat > conftest.$ac_ext <<EOF
  4959. #line 4960 "configure"
  4960. #include "confdefs.h"
  4961. /* System header to define __stub macros and hopefully few prototypes,
  4962.     which can conflict with char $ac_func(); below.  */
  4963. #include <assert.h>
  4964. /* Override any gcc2 internal prototype to avoid an error.  */
  4965. /* We use char because int might match the return type of a gcc2
  4966.     builtin and then its argument prototype would still apply.  */
  4967. char $ac_func();
  4968.  
  4969. int main() {
  4970.  
  4971. /* The GNU C library defines this for functions which it implements
  4972.     to always fail with ENOSYS.  Some functions are actually named
  4973.     something starting with __ and the normal name is an alias.  */
  4974. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4975. choke me
  4976. #else
  4977. $ac_func();
  4978. #endif
  4979.  
  4980. ; return 0; }
  4981. EOF
  4982. if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4983.   rm -rf conftest*
  4984.   eval "ac_cv_func_$ac_func=yes"
  4985. else
  4986.   echo "configure: failed program was:" >&5
  4987.   cat conftest.$ac_ext >&5
  4988.   rm -rf conftest*
  4989.   eval "ac_cv_func_$ac_func=no"
  4990. fi
  4991. rm -f conftest*
  4992. fi
  4993.  
  4994. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4995.   echo "$ac_t""yes" 1>&6
  4996.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4997.   cat >> confdefs.h <<EOF
  4998. #define $ac_tr_func 1
  4999. EOF
  5000.  
  5001. else
  5002.   echo "$ac_t""no" 1>&6
  5003. fi
  5004. done
  5005.  
  5006. for ac_func in waitpid
  5007. do
  5008. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5009. echo "configure:5010: checking for $ac_func" >&5
  5010. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5011.   echo $ac_n "(cached) $ac_c" 1>&6
  5012. else
  5013.   cat > conftest.$ac_ext <<EOF
  5014. #line 5015 "configure"
  5015. #include "confdefs.h"
  5016. /* System header to define __stub macros and hopefully few prototypes,
  5017.     which can conflict with char $ac_func(); below.  */
  5018. #include <assert.h>
  5019. /* Override any gcc2 internal prototype to avoid an error.  */
  5020. /* We use char because int might match the return type of a gcc2
  5021.     builtin and then its argument prototype would still apply.  */
  5022. char $ac_func();
  5023.  
  5024. int main() {
  5025.  
  5026. /* The GNU C library defines this for functions which it implements
  5027.     to always fail with ENOSYS.  Some functions are actually named
  5028.     something starting with __ and the normal name is an alias.  */
  5029. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5030. choke me
  5031. #else
  5032. $ac_func();
  5033. #endif
  5034.  
  5035. ; return 0; }
  5036. EOF
  5037. if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5038.   rm -rf conftest*
  5039.   eval "ac_cv_func_$ac_func=yes"
  5040. else
  5041.   echo "configure: failed program was:" >&5
  5042.   cat conftest.$ac_ext >&5
  5043.   rm -rf conftest*
  5044.   eval "ac_cv_func_$ac_func=no"
  5045. fi
  5046. rm -f conftest*
  5047. fi
  5048.  
  5049. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5050.   echo "$ac_t""yes" 1>&6
  5051.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5052.   cat >> confdefs.h <<EOF
  5053. #define $ac_tr_func 1
  5054. EOF
  5055.  
  5056. else
  5057.   echo "$ac_t""no" 1>&6
  5058. fi
  5059. done
  5060.  
  5061.  
  5062. if test "${ac_cv_type_signal}" = "void"; then
  5063.     cat >> confdefs.h <<\EOF
  5064. #define VOID_SIGNAL_HANDLERS 1
  5065. EOF
  5066.  
  5067. fi
  5068.  
  5069.  
  5070. # Make sure we can run config.sub.
  5071. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  5072. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  5073. fi
  5074.  
  5075. echo $ac_n "checking host system type""... $ac_c" 1>&6
  5076. echo "configure:5077: checking host system type" >&5
  5077.  
  5078. host_alias=$host
  5079. case "$host_alias" in
  5080. NONE)
  5081.   case $nonopt in
  5082.   NONE)
  5083.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  5084.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  5085.     fi ;;
  5086.   *) host_alias=$nonopt ;;
  5087.   esac ;;
  5088. esac
  5089.  
  5090. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  5091. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5092. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5093. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5094. echo "$ac_t""$host" 1>&6
  5095.  
  5096. # If we find X, set shell vars x_includes and x_libraries to the
  5097. # paths, otherwise set no_x=yes.
  5098. # Uses ac_ vars as temps to allow command line to override cache and checks.
  5099. # --without-x overrides everything else, but does not touch the cache.
  5100. echo $ac_n "checking for X""... $ac_c" 1>&6
  5101. echo "configure:5102: checking for X" >&5
  5102.  
  5103. # Check whether --with-x or --without-x was given.
  5104. if test "${with_x+set}" = set; then
  5105.   withval="$with_x"
  5106.   :
  5107. fi
  5108.  
  5109. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  5110. if test "x$with_x" = xno; then
  5111.   # The user explicitly disabled X.
  5112.   have_x=disabled
  5113. else
  5114.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  5115.     # Both variables are already set.
  5116.     have_x=yes
  5117.   else
  5118. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  5119.   echo $ac_n "(cached) $ac_c" 1>&6
  5120. else
  5121.   # One or both of the vars are not set, and there is no cached value.
  5122. ac_x_includes=NO ac_x_libraries=NO
  5123. rm -fr conftestdir
  5124. if mkdir conftestdir; then
  5125.   cd conftestdir
  5126.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  5127.   cat > Imakefile <<'EOF'
  5128. acfindx:
  5129.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  5130. EOF
  5131.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  5132.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  5133.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  5134.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  5135.     for ac_extension in a so sl; do
  5136.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  5137.         test -f $ac_im_libdir/libX11.$ac_extension; then
  5138.         ac_im_usrlibdir=$ac_im_libdir; break
  5139.       fi
  5140.     done
  5141.     # Screen out bogus values from the imake configuration.  They are
  5142.     # bogus both because they are the default anyway, and because
  5143.     # using them would break gcc on systems where it needs fixed includes.
  5144.     case "$ac_im_incroot" in
  5145.     /usr/include) ;;
  5146.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  5147.     esac
  5148.     case "$ac_im_usrlibdir" in
  5149.     /usr/lib | /lib) ;;
  5150.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  5151.     esac
  5152.   fi
  5153.   cd ..
  5154.   rm -fr conftestdir
  5155. fi
  5156.  
  5157. if test "$ac_x_includes" = NO; then
  5158.   # Guess where to find include files, by looking for this one X11 .h file.
  5159.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  5160.  
  5161.   # First, try using that file with no special directory specified.
  5162. cat > conftest.$ac_ext <<EOF
  5163. #line 5164 "configure"
  5164. #include "confdefs.h"
  5165. #include <$x_direct_test_include>
  5166. EOF
  5167. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5168. { (eval echo configure:5169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5169. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5170. if test -z "$ac_err"; then
  5171.   rm -rf conftest*
  5172.   # We can compile using X headers with no special include directory.
  5173. ac_x_includes=
  5174. else
  5175.   echo "$ac_err" >&5
  5176.   echo "configure: failed program was:" >&5
  5177.   cat conftest.$ac_ext >&5
  5178.   rm -rf conftest*
  5179.   # Look for the header file in a standard set of common directories.
  5180. # Check X11 before X11Rn because it is often a symlink to the current release.
  5181.   for ac_dir in               \
  5182.     /usr/X11/include          \
  5183.     /usr/X11R6/include        \
  5184.     /usr/X11R5/include        \
  5185.     /usr/X11R4/include        \
  5186.                               \
  5187.     /usr/include/X11          \
  5188.     /usr/include/X11R6        \
  5189.     /usr/include/X11R5        \
  5190.     /usr/include/X11R4        \
  5191.                               \
  5192.     /usr/local/X11/include    \
  5193.     /usr/local/X11R6/include  \
  5194.     /usr/local/X11R5/include  \
  5195.     /usr/local/X11R4/include  \
  5196.                               \
  5197.     /usr/local/include/X11    \
  5198.     /usr/local/include/X11R6  \
  5199.     /usr/local/include/X11R5  \
  5200.     /usr/local/include/X11R4  \
  5201.                               \
  5202.     /usr/X386/include         \
  5203.     /usr/x386/include         \
  5204.     /usr/XFree86/include/X11  \
  5205.                               \
  5206.     /usr/include              \
  5207.     /usr/local/include        \
  5208.     /usr/unsupported/include  \
  5209.     /usr/athena/include       \
  5210.     /usr/local/x11r5/include  \
  5211.     /usr/lpp/Xamples/include  \
  5212.                               \
  5213.     /usr/openwin/include      \
  5214.     /usr/openwin/share/include \
  5215.     ; \
  5216.   do
  5217.     if test -r "$ac_dir/$x_direct_test_include"; then
  5218.       ac_x_includes=$ac_dir
  5219.       break
  5220.     fi
  5221.   done
  5222. fi
  5223. rm -f conftest*
  5224. fi # $ac_x_includes = NO
  5225.  
  5226. if test "$ac_x_libraries" = NO; then
  5227.   # Check for the libraries.
  5228.  
  5229.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  5230.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  5231.  
  5232.   # See if we find them without any special options.
  5233.   # Don't add to $LIBS permanently.
  5234.   ac_save_LIBS="$LIBS"
  5235.   LIBS="-l$x_direct_test_library $LIBS"
  5236. cat > conftest.$ac_ext <<EOF
  5237. #line 5238 "configure"
  5238. #include "confdefs.h"
  5239.  
  5240. int main() {
  5241. ${x_direct_test_function}()
  5242. ; return 0; }
  5243. EOF
  5244. if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5245.   rm -rf conftest*
  5246.   LIBS="$ac_save_LIBS"
  5247. # We can link X programs with no special library path.
  5248. ac_x_libraries=
  5249. else
  5250.   echo "configure: failed program was:" >&5
  5251.   cat conftest.$ac_ext >&5
  5252.   rm -rf conftest*
  5253.   LIBS="$ac_save_LIBS"
  5254. # First see if replacing the include by lib works.
  5255. # Check X11 before X11Rn because it is often a symlink to the current release.
  5256. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  5257.     /usr/X11/lib          \
  5258.     /usr/X11R6/lib        \
  5259.     /usr/X11R5/lib        \
  5260.     /usr/X11R4/lib        \
  5261.                           \
  5262.     /usr/lib/X11          \
  5263.     /usr/lib/X11R6        \
  5264.     /usr/lib/X11R5        \
  5265.     /usr/lib/X11R4        \
  5266.                           \
  5267.     /usr/local/X11/lib    \
  5268.     /usr/local/X11R6/lib  \
  5269.     /usr/local/X11R5/lib  \
  5270.     /usr/local/X11R4/lib  \
  5271.                           \
  5272.     /usr/local/lib/X11    \
  5273.     /usr/local/lib/X11R6  \
  5274.     /usr/local/lib/X11R5  \
  5275.     /usr/local/lib/X11R4  \
  5276.                           \
  5277.     /usr/X386/lib         \
  5278.     /usr/x386/lib         \
  5279.     /usr/XFree86/lib/X11  \
  5280.                           \
  5281.     /usr/lib              \
  5282.     /usr/local/lib        \
  5283.     /usr/unsupported/lib  \
  5284.     /usr/athena/lib       \
  5285.     /usr/local/x11r5/lib  \
  5286.     /usr/lpp/Xamples/lib  \
  5287.     /lib/usr/lib/X11      \
  5288.                           \
  5289.     /usr/openwin/lib      \
  5290.     /usr/openwin/share/lib \
  5291.     ; \
  5292. do
  5293.   for ac_extension in a so sl; do
  5294.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  5295.       ac_x_libraries=$ac_dir
  5296.       break 2
  5297.     fi
  5298.   done
  5299. done
  5300. fi
  5301. rm -f conftest*
  5302. fi # $ac_x_libraries = NO
  5303.  
  5304. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  5305.   # Didn't find X anywhere.  Cache the known absence of X.
  5306.   ac_cv_have_x="have_x=no"
  5307. else
  5308.   # Record where we found X for the cache.
  5309.   ac_cv_have_x="have_x=yes \
  5310.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  5311. fi
  5312. fi
  5313.   fi
  5314.   eval "$ac_cv_have_x"
  5315. fi # $with_x != no
  5316.  
  5317. if test "$have_x" != yes; then
  5318.   echo "$ac_t""$have_x" 1>&6
  5319.   no_x=yes
  5320. else
  5321.   # If each of the values was on the command line, it overrides each guess.
  5322.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  5323.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  5324.   # Update the cache value to reflect the command line values.
  5325.   ac_cv_have_x="have_x=yes \
  5326.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  5327.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  5328. fi
  5329.  
  5330. if test "$no_x" = yes; then
  5331.   # Not all programs may use this symbol, but it does not hurt to define it.
  5332.   cat >> confdefs.h <<\EOF
  5333. #define X_DISPLAY_MISSING 1
  5334. EOF
  5335.  
  5336.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  5337. else
  5338.   if test -n "$x_includes"; then
  5339.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  5340.   fi
  5341.  
  5342.   # It would also be nice to do this for all -L options, not just this one.
  5343.   if test -n "$x_libraries"; then
  5344.     X_LIBS="$X_LIBS -L$x_libraries"
  5345.     # For Solaris; some versions of Sun CC require a space after -R and
  5346.     # others require no space.  Words are not sufficient . . . .
  5347.     case "`(uname -sr) 2>/dev/null`" in
  5348.     "SunOS 5"*)
  5349.       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  5350. echo "configure:5351: checking whether -R must be followed by a space" >&5
  5351.       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  5352.       cat > conftest.$ac_ext <<EOF
  5353. #line 5354 "configure"
  5354. #include "confdefs.h"
  5355.  
  5356. int main() {
  5357.  
  5358. ; return 0; }
  5359. EOF
  5360. if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5361.   rm -rf conftest*
  5362.   ac_R_nospace=yes
  5363. else
  5364.   echo "configure: failed program was:" >&5
  5365.   cat conftest.$ac_ext >&5
  5366.   rm -rf conftest*
  5367.   ac_R_nospace=no
  5368. fi
  5369. rm -f conftest*
  5370.       if test $ac_R_nospace = yes; then
  5371.     echo "$ac_t""no" 1>&6
  5372.     X_LIBS="$X_LIBS -R$x_libraries"
  5373.       else
  5374.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  5375.     cat > conftest.$ac_ext <<EOF
  5376. #line 5377 "configure"
  5377. #include "confdefs.h"
  5378.  
  5379. int main() {
  5380.  
  5381. ; return 0; }
  5382. EOF
  5383. if { (eval echo configure:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5384.   rm -rf conftest*
  5385.   ac_R_space=yes
  5386. else
  5387.   echo "configure: failed program was:" >&5
  5388.   cat conftest.$ac_ext >&5
  5389.   rm -rf conftest*
  5390.   ac_R_space=no
  5391. fi
  5392. rm -f conftest*
  5393.     if test $ac_R_space = yes; then
  5394.       echo "$ac_t""yes" 1>&6
  5395.       X_LIBS="$X_LIBS -R $x_libraries"
  5396.     else
  5397.       echo "$ac_t""neither works" 1>&6
  5398.     fi
  5399.       fi
  5400.       LIBS="$ac_xsave_LIBS"
  5401.     esac
  5402.   fi
  5403.  
  5404.   # Check for system-dependent libraries X programs must link with.
  5405.   # Do this before checking for the system-independent R6 libraries
  5406.   # (-lICE), since we may need -lsocket or whatever for X linking.
  5407.  
  5408.   if test "$ISC" = yes; then
  5409.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  5410.   else
  5411.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  5412.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  5413.     # the Alpha needs dnet_stub (dnet does not exist).
  5414.     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  5415. echo "configure:5416: checking for dnet_ntoa in -ldnet" >&5
  5416. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  5417. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5418.   echo $ac_n "(cached) $ac_c" 1>&6
  5419. else
  5420.   ac_save_LIBS="$LIBS"
  5421. LIBS="-ldnet  $LIBS"
  5422. cat > conftest.$ac_ext <<EOF
  5423. #line 5424 "configure"
  5424. #include "confdefs.h"
  5425. /* Override any gcc2 internal prototype to avoid an error.  */
  5426. /* We use char because int might match the return type of a gcc2
  5427.     builtin and then its argument prototype would still apply.  */
  5428. char dnet_ntoa();
  5429.  
  5430. int main() {
  5431. dnet_ntoa()
  5432. ; return 0; }
  5433. EOF
  5434. if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5435.   rm -rf conftest*
  5436.   eval "ac_cv_lib_$ac_lib_var=yes"
  5437. else
  5438.   echo "configure: failed program was:" >&5
  5439.   cat conftest.$ac_ext >&5
  5440.   rm -rf conftest*
  5441.   eval "ac_cv_lib_$ac_lib_var=no"
  5442. fi
  5443. rm -f conftest*
  5444. LIBS="$ac_save_LIBS"
  5445.  
  5446. fi
  5447. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5448.   echo "$ac_t""yes" 1>&6
  5449.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  5450. else
  5451.   echo "$ac_t""no" 1>&6
  5452. fi
  5453.  
  5454.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  5455.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  5456. echo "configure:5457: checking for dnet_ntoa in -ldnet_stub" >&5
  5457. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  5458. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5459.   echo $ac_n "(cached) $ac_c" 1>&6
  5460. else
  5461.   ac_save_LIBS="$LIBS"
  5462. LIBS="-ldnet_stub  $LIBS"
  5463. cat > conftest.$ac_ext <<EOF
  5464. #line 5465 "configure"
  5465. #include "confdefs.h"
  5466. /* Override any gcc2 internal prototype to avoid an error.  */
  5467. /* We use char because int might match the return type of a gcc2
  5468.     builtin and then its argument prototype would still apply.  */
  5469. char dnet_ntoa();
  5470.  
  5471. int main() {
  5472. dnet_ntoa()
  5473. ; return 0; }
  5474. EOF
  5475. if { (eval echo configure:5476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5476.   rm -rf conftest*
  5477.   eval "ac_cv_lib_$ac_lib_var=yes"
  5478. else
  5479.   echo "configure: failed program was:" >&5
  5480.   cat conftest.$ac_ext >&5
  5481.   rm -rf conftest*
  5482.   eval "ac_cv_lib_$ac_lib_var=no"
  5483. fi
  5484. rm -f conftest*
  5485. LIBS="$ac_save_LIBS"
  5486.  
  5487. fi
  5488. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5489.   echo "$ac_t""yes" 1>&6
  5490.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  5491. else
  5492.   echo "$ac_t""no" 1>&6
  5493. fi
  5494.  
  5495.     fi
  5496.  
  5497.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  5498.     # to get the SysV transport functions.
  5499.     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  5500.     # needs -lnsl.
  5501.     # The nsl library prevents programs from opening the X display
  5502.     # on Irix 5.2, according to dickey@clark.net.
  5503.     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  5504. echo "configure:5505: checking for gethostbyname" >&5
  5505. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  5506.   echo $ac_n "(cached) $ac_c" 1>&6
  5507. else
  5508.   cat > conftest.$ac_ext <<EOF
  5509. #line 5510 "configure"
  5510. #include "confdefs.h"
  5511. /* System header to define __stub macros and hopefully few prototypes,
  5512.     which can conflict with char gethostbyname(); below.  */
  5513. #include <assert.h>
  5514. /* Override any gcc2 internal prototype to avoid an error.  */
  5515. /* We use char because int might match the return type of a gcc2
  5516.     builtin and then its argument prototype would still apply.  */
  5517. char gethostbyname();
  5518.  
  5519. int main() {
  5520.  
  5521. /* The GNU C library defines this for functions which it implements
  5522.     to always fail with ENOSYS.  Some functions are actually named
  5523.     something starting with __ and the normal name is an alias.  */
  5524. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  5525. choke me
  5526. #else
  5527. gethostbyname();
  5528. #endif
  5529.  
  5530. ; return 0; }
  5531. EOF
  5532. if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5533.   rm -rf conftest*
  5534.   eval "ac_cv_func_gethostbyname=yes"
  5535. else
  5536.   echo "configure: failed program was:" >&5
  5537.   cat conftest.$ac_ext >&5
  5538.   rm -rf conftest*
  5539.   eval "ac_cv_func_gethostbyname=no"
  5540. fi
  5541. rm -f conftest*
  5542. fi
  5543.  
  5544. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  5545.   echo "$ac_t""yes" 1>&6
  5546.   :
  5547. else
  5548.   echo "$ac_t""no" 1>&6
  5549. fi
  5550.  
  5551.     if test $ac_cv_func_gethostbyname = no; then
  5552.       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  5553. echo "configure:5554: checking for gethostbyname in -lnsl" >&5
  5554. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  5555. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5556.   echo $ac_n "(cached) $ac_c" 1>&6
  5557. else
  5558.   ac_save_LIBS="$LIBS"
  5559. LIBS="-lnsl  $LIBS"
  5560. cat > conftest.$ac_ext <<EOF
  5561. #line 5562 "configure"
  5562. #include "confdefs.h"
  5563. /* Override any gcc2 internal prototype to avoid an error.  */
  5564. /* We use char because int might match the return type of a gcc2
  5565.     builtin and then its argument prototype would still apply.  */
  5566. char gethostbyname();
  5567.  
  5568. int main() {
  5569. gethostbyname()
  5570. ; return 0; }
  5571. EOF
  5572. if { (eval echo configure:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5573.   rm -rf conftest*
  5574.   eval "ac_cv_lib_$ac_lib_var=yes"
  5575. else
  5576.   echo "configure: failed program was:" >&5
  5577.   cat conftest.$ac_ext >&5
  5578.   rm -rf conftest*
  5579.   eval "ac_cv_lib_$ac_lib_var=no"
  5580. fi
  5581. rm -f conftest*
  5582. LIBS="$ac_save_LIBS"
  5583.  
  5584. fi
  5585. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5586.   echo "$ac_t""yes" 1>&6
  5587.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  5588. else
  5589.   echo "$ac_t""no" 1>&6
  5590. fi
  5591.  
  5592.     fi
  5593.  
  5594.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  5595.     # socket/setsockopt and other routines are undefined under SCO ODT
  5596.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  5597.     # on later versions), says simon@lia.di.epfl.ch: it contains
  5598.     # gethostby* variants that don't use the nameserver (or something).
  5599.     # -lsocket must be given before -lnsl if both are needed.
  5600.     # We assume that if connect needs -lnsl, so does gethostbyname.
  5601.     echo $ac_n "checking for connect""... $ac_c" 1>&6
  5602. echo "configure:5603: checking for connect" >&5
  5603. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  5604.   echo $ac_n "(cached) $ac_c" 1>&6
  5605. else
  5606.   cat > conftest.$ac_ext <<EOF
  5607. #line 5608 "configure"
  5608. #include "confdefs.h"
  5609. /* System header to define __stub macros and hopefully few prototypes,
  5610.     which can conflict with char connect(); below.  */
  5611. #include <assert.h>
  5612. /* Override any gcc2 internal prototype to avoid an error.  */
  5613. /* We use char because int might match the return type of a gcc2
  5614.     builtin and then its argument prototype would still apply.  */
  5615. char connect();
  5616.  
  5617. int main() {
  5618.  
  5619. /* The GNU C library defines this for functions which it implements
  5620.     to always fail with ENOSYS.  Some functions are actually named
  5621.     something starting with __ and the normal name is an alias.  */
  5622. #if defined (__stub_connect) || defined (__stub___connect)
  5623. choke me
  5624. #else
  5625. connect();
  5626. #endif
  5627.  
  5628. ; return 0; }
  5629. EOF
  5630. if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5631.   rm -rf conftest*
  5632.   eval "ac_cv_func_connect=yes"
  5633. else
  5634.   echo "configure: failed program was:" >&5
  5635.   cat conftest.$ac_ext >&5
  5636.   rm -rf conftest*
  5637.   eval "ac_cv_func_connect=no"
  5638. fi
  5639. rm -f conftest*
  5640. fi
  5641.  
  5642. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  5643.   echo "$ac_t""yes" 1>&6
  5644.   :
  5645. else
  5646.   echo "$ac_t""no" 1>&6
  5647. fi
  5648.  
  5649.     if test $ac_cv_func_connect = no; then
  5650.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  5651. echo "configure:5652: checking for connect in -lsocket" >&5
  5652. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  5653. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5654.   echo $ac_n "(cached) $ac_c" 1>&6
  5655. else
  5656.   ac_save_LIBS="$LIBS"
  5657. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  5658. cat > conftest.$ac_ext <<EOF
  5659. #line 5660 "configure"
  5660. #include "confdefs.h"
  5661. /* Override any gcc2 internal prototype to avoid an error.  */
  5662. /* We use char because int might match the return type of a gcc2
  5663.     builtin and then its argument prototype would still apply.  */
  5664. char connect();
  5665.  
  5666. int main() {
  5667. connect()
  5668. ; return 0; }
  5669. EOF
  5670. if { (eval echo configure:5671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5671.   rm -rf conftest*
  5672.   eval "ac_cv_lib_$ac_lib_var=yes"
  5673. else
  5674.   echo "configure: failed program was:" >&5
  5675.   cat conftest.$ac_ext >&5
  5676.   rm -rf conftest*
  5677.   eval "ac_cv_lib_$ac_lib_var=no"
  5678. fi
  5679. rm -f conftest*
  5680. LIBS="$ac_save_LIBS"
  5681.  
  5682. fi
  5683. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5684.   echo "$ac_t""yes" 1>&6
  5685.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  5686. else
  5687.   echo "$ac_t""no" 1>&6
  5688. fi
  5689.  
  5690.     fi
  5691.  
  5692.     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  5693.     echo $ac_n "checking for remove""... $ac_c" 1>&6
  5694. echo "configure:5695: checking for remove" >&5
  5695. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  5696.   echo $ac_n "(cached) $ac_c" 1>&6
  5697. else
  5698.   cat > conftest.$ac_ext <<EOF
  5699. #line 5700 "configure"
  5700. #include "confdefs.h"
  5701. /* System header to define __stub macros and hopefully few prototypes,
  5702.     which can conflict with char remove(); below.  */
  5703. #include <assert.h>
  5704. /* Override any gcc2 internal prototype to avoid an error.  */
  5705. /* We use char because int might match the return type of a gcc2
  5706.     builtin and then its argument prototype would still apply.  */
  5707. char remove();
  5708.  
  5709. int main() {
  5710.  
  5711. /* The GNU C library defines this for functions which it implements
  5712.     to always fail with ENOSYS.  Some functions are actually named
  5713.     something starting with __ and the normal name is an alias.  */
  5714. #if defined (__stub_remove) || defined (__stub___remove)
  5715. choke me
  5716. #else
  5717. remove();
  5718. #endif
  5719.  
  5720. ; return 0; }
  5721. EOF
  5722. if { (eval echo configure:5723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5723.   rm -rf conftest*
  5724.   eval "ac_cv_func_remove=yes"
  5725. else
  5726.   echo "configure: failed program was:" >&5
  5727.   cat conftest.$ac_ext >&5
  5728.   rm -rf conftest*
  5729.   eval "ac_cv_func_remove=no"
  5730. fi
  5731. rm -f conftest*
  5732. fi
  5733.  
  5734. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  5735.   echo "$ac_t""yes" 1>&6
  5736.   :
  5737. else
  5738.   echo "$ac_t""no" 1>&6
  5739. fi
  5740.  
  5741.     if test $ac_cv_func_remove = no; then
  5742.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  5743. echo "configure:5744: checking for remove in -lposix" >&5
  5744. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  5745. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5746.   echo $ac_n "(cached) $ac_c" 1>&6
  5747. else
  5748.   ac_save_LIBS="$LIBS"
  5749. LIBS="-lposix  $LIBS"
  5750. cat > conftest.$ac_ext <<EOF
  5751. #line 5752 "configure"
  5752. #include "confdefs.h"
  5753. /* Override any gcc2 internal prototype to avoid an error.  */
  5754. /* We use char because int might match the return type of a gcc2
  5755.     builtin and then its argument prototype would still apply.  */
  5756. char remove();
  5757.  
  5758. int main() {
  5759. remove()
  5760. ; return 0; }
  5761. EOF
  5762. if { (eval echo configure:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5763.   rm -rf conftest*
  5764.   eval "ac_cv_lib_$ac_lib_var=yes"
  5765. else
  5766.   echo "configure: failed program was:" >&5
  5767.   cat conftest.$ac_ext >&5
  5768.   rm -rf conftest*
  5769.   eval "ac_cv_lib_$ac_lib_var=no"
  5770. fi
  5771. rm -f conftest*
  5772. LIBS="$ac_save_LIBS"
  5773.  
  5774. fi
  5775. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5776.   echo "$ac_t""yes" 1>&6
  5777.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  5778. else
  5779.   echo "$ac_t""no" 1>&6
  5780. fi
  5781.  
  5782.     fi
  5783.  
  5784.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  5785.     echo $ac_n "checking for shmat""... $ac_c" 1>&6
  5786. echo "configure:5787: checking for shmat" >&5
  5787. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  5788.   echo $ac_n "(cached) $ac_c" 1>&6
  5789. else
  5790.   cat > conftest.$ac_ext <<EOF
  5791. #line 5792 "configure"
  5792. #include "confdefs.h"
  5793. /* System header to define __stub macros and hopefully few prototypes,
  5794.     which can conflict with char shmat(); below.  */
  5795. #include <assert.h>
  5796. /* Override any gcc2 internal prototype to avoid an error.  */
  5797. /* We use char because int might match the return type of a gcc2
  5798.     builtin and then its argument prototype would still apply.  */
  5799. char shmat();
  5800.  
  5801. int main() {
  5802.  
  5803. /* The GNU C library defines this for functions which it implements
  5804.     to always fail with ENOSYS.  Some functions are actually named
  5805.     something starting with __ and the normal name is an alias.  */
  5806. #if defined (__stub_shmat) || defined (__stub___shmat)
  5807. choke me
  5808. #else
  5809. shmat();
  5810. #endif
  5811.  
  5812. ; return 0; }
  5813. EOF
  5814. if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5815.   rm -rf conftest*
  5816.   eval "ac_cv_func_shmat=yes"
  5817. else
  5818.   echo "configure: failed program was:" >&5
  5819.   cat conftest.$ac_ext >&5
  5820.   rm -rf conftest*
  5821.   eval "ac_cv_func_shmat=no"
  5822. fi
  5823. rm -f conftest*
  5824. fi
  5825.  
  5826. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  5827.   echo "$ac_t""yes" 1>&6
  5828.   :
  5829. else
  5830.   echo "$ac_t""no" 1>&6
  5831. fi
  5832.  
  5833.     if test $ac_cv_func_shmat = no; then
  5834.       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  5835. echo "configure:5836: checking for shmat in -lipc" >&5
  5836. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  5837. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5838.   echo $ac_n "(cached) $ac_c" 1>&6
  5839. else
  5840.   ac_save_LIBS="$LIBS"
  5841. LIBS="-lipc  $LIBS"
  5842. cat > conftest.$ac_ext <<EOF
  5843. #line 5844 "configure"
  5844. #include "confdefs.h"
  5845. /* Override any gcc2 internal prototype to avoid an error.  */
  5846. /* We use char because int might match the return type of a gcc2
  5847.     builtin and then its argument prototype would still apply.  */
  5848. char shmat();
  5849.  
  5850. int main() {
  5851. shmat()
  5852. ; return 0; }
  5853. EOF
  5854. if { (eval echo configure:5855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5855.   rm -rf conftest*
  5856.   eval "ac_cv_lib_$ac_lib_var=yes"
  5857. else
  5858.   echo "configure: failed program was:" >&5
  5859.   cat conftest.$ac_ext >&5
  5860.   rm -rf conftest*
  5861.   eval "ac_cv_lib_$ac_lib_var=no"
  5862. fi
  5863. rm -f conftest*
  5864. LIBS="$ac_save_LIBS"
  5865.  
  5866. fi
  5867. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5868.   echo "$ac_t""yes" 1>&6
  5869.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  5870. else
  5871.   echo "$ac_t""no" 1>&6
  5872. fi
  5873.  
  5874.     fi
  5875.   fi
  5876.  
  5877.   # Check for libraries that X11R6 Xt/Xaw programs need.
  5878.   ac_save_LDFLAGS="$LDFLAGS"
  5879.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  5880.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  5881.   # check for ICE first), but we must link in the order -lSM -lICE or
  5882.   # we get undefined symbols.  So assume we have SM if we have ICE.
  5883.   # These have to be linked with before -lX11, unlike the other
  5884.   # libraries we check for below, so use a different variable.
  5885.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  5886.   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  5887. echo "configure:5888: checking for IceConnectionNumber in -lICE" >&5
  5888. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  5889. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5890.   echo $ac_n "(cached) $ac_c" 1>&6
  5891. else
  5892.   ac_save_LIBS="$LIBS"
  5893. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  5894. cat > conftest.$ac_ext <<EOF
  5895. #line 5896 "configure"
  5896. #include "confdefs.h"
  5897. /* Override any gcc2 internal prototype to avoid an error.  */
  5898. /* We use char because int might match the return type of a gcc2
  5899.     builtin and then its argument prototype would still apply.  */
  5900. char IceConnectionNumber();
  5901.  
  5902. int main() {
  5903. IceConnectionNumber()
  5904. ; return 0; }
  5905. EOF
  5906. if { (eval echo configure:5907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5907.   rm -rf conftest*
  5908.   eval "ac_cv_lib_$ac_lib_var=yes"
  5909. else
  5910.   echo "configure: failed program was:" >&5
  5911.   cat conftest.$ac_ext >&5
  5912.   rm -rf conftest*
  5913.   eval "ac_cv_lib_$ac_lib_var=no"
  5914. fi
  5915. rm -f conftest*
  5916. LIBS="$ac_save_LIBS"
  5917.  
  5918. fi
  5919. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5920.   echo "$ac_t""yes" 1>&6
  5921.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  5922. else
  5923.   echo "$ac_t""no" 1>&6
  5924. fi
  5925.  
  5926.   LDFLAGS="$ac_save_LDFLAGS"
  5927.  
  5928. fi
  5929.  
  5930. echo $ac_n "checking for long file names""... $ac_c" 1>&6
  5931. echo "configure:5932: checking for long file names" >&5
  5932. if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
  5933.   echo $ac_n "(cached) $ac_c" 1>&6
  5934. else
  5935.   ac_cv_sys_long_file_names=yes
  5936. # Test for long file names in all the places we know might matter:
  5937. #      .        the current directory, where building will happen
  5938. #      $prefix/lib    where we will be installing things
  5939. #      $exec_prefix/lib    likewise
  5940. # eval it to expand exec_prefix.
  5941. #      $TMPDIR        if set, where it might want to write temporary files
  5942. # if $TMPDIR is not set:
  5943. #      /tmp        where it might want to write temporary files
  5944. #      /var/tmp        likewise
  5945. #      /usr/tmp        likewise
  5946. if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  5947.   ac_tmpdirs="$TMPDIR"
  5948. else
  5949.   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
  5950. fi
  5951. for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  5952.   test -d $ac_dir || continue
  5953.   test -w $ac_dir || continue # It is less confusing to not echo anything here.
  5954.   (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  5955.   (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  5956.   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  5957.   if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
  5958.     ac_cv_sys_long_file_names=no
  5959.     rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  5960.     break
  5961.   fi
  5962.   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  5963. done
  5964. fi
  5965.  
  5966. echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
  5967. if test $ac_cv_sys_long_file_names = yes; then
  5968.   cat >> confdefs.h <<\EOF
  5969. #define HAVE_LONG_FILE_NAMES 1
  5970. EOF
  5971.  
  5972. fi
  5973.  
  5974. echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
  5975. echo "configure:5976: checking for restartable system calls" >&5
  5976. if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
  5977.   echo $ac_n "(cached) $ac_c" 1>&6
  5978. else
  5979.   if test "$cross_compiling" = yes; then
  5980.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  5981. else
  5982.   cat > conftest.$ac_ext <<EOF
  5983. #line 5984 "configure"
  5984. #include "confdefs.h"
  5985. /* Exit 0 (true) if wait returns something other than -1,
  5986.    i.e. the pid of the child, which means that wait was restarted
  5987.    after getting the signal.  */
  5988. #include <sys/types.h>
  5989. #include <signal.h>
  5990. ucatch (isig) { }
  5991. main () {
  5992.   int i = fork (), status;
  5993.   if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
  5994.   signal (SIGINT, ucatch);
  5995.   status = wait(&i);
  5996.   if (status == -1) wait(&i);
  5997.   exit (status == -1);
  5998. }
  5999.  
  6000. EOF
  6001. if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6002. then
  6003.   ac_cv_sys_restartable_syscalls=yes
  6004. else
  6005.   echo "configure: failed program was:" >&5
  6006.   cat conftest.$ac_ext >&5
  6007.   rm -fr conftest*
  6008.   ac_cv_sys_restartable_syscalls=no
  6009. fi
  6010. rm -fr conftest*
  6011. fi
  6012.  
  6013. fi
  6014.  
  6015. echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
  6016. if test $ac_cv_sys_restartable_syscalls = yes; then
  6017.   cat >> confdefs.h <<\EOF
  6018. #define HAVE_RESTARTABLE_SYSCALLS 1
  6019. EOF
  6020.  
  6021. fi
  6022.  
  6023.  
  6024.  
  6025. if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
  6026.     OPTIONAL_BASES="${OPTIONAL_BASES} pruxdld"
  6027.     enable_dynamic_crypto="${enable_dynamic_crypto:-yes}"
  6028. else
  6029.     enable_dynamic_crypto="no"
  6030. fi
  6031.  
  6032. test "${with_openssl:-yes}" = "no" && scheme_cv_lib_crypto="no"
  6033. test "${with_mhash:-yes}" = "no" && scheme_cv_lib_mhash="no"
  6034. test "${with_mcrypt:-yes}" = "no" && scheme_cv_lib_mcrypt="no"
  6035.  
  6036. HAVE_BLOWFISH="no"
  6037. HAVE_MD5="no"
  6038.  
  6039. if test "${scheme_cv_lib_crypto}" = "yes"; then
  6040.     cat >> confdefs.h <<\EOF
  6041. #define HAVE_LIBCRYPTO 1
  6042. EOF
  6043.  
  6044.     if test "${ac_cv_header_openssl_blowfish_h}" = "yes" \
  6045.         || test "${ac_cv_header_blowfish_h}" = "yes"; then
  6046.     if test "${enable_dynamic_crypto}" = "yes"; then
  6047.         MODULE_BASES="${MODULE_BASES} prbfish"
  6048.         PRBFISH_LIBS="-lcrypto"
  6049.     else
  6050.         OPTIONAL_BASES="${OPTIONAL_BASES} prbfish"
  6051.     fi
  6052.     HAVE_BLOWFISH="yes"
  6053.     fi
  6054.     if test "${ac_cv_header_openssl_md5_h}" = "yes" \
  6055.         || test "${ac_cv_header_md5_h}" = "yes"; then
  6056.     if test "${enable_dynamic_crypto}" = "yes"; then
  6057.         MODULE_BASES="${MODULE_BASES} prmd5"
  6058.         PRMD5_LIBS="-lcrypto"
  6059.     else
  6060.         OPTIONAL_BASES="${OPTIONAL_BASES} prmd5"
  6061.     fi
  6062.     HAVE_MD5="yes"
  6063.     fi
  6064.     if test "${enable_dynamic_crypto}" = "no"; then
  6065.     if test "${HAVE_BLOWFISH}" = "yes" || test "${HAVE_MD5}" = "yes"; then
  6066.         QUASI_STATIC_LIBS="${QUASI_STATIC_LIBS} -lcrypto"
  6067.     fi
  6068.     fi
  6069. fi
  6070.  
  6071. if test "${scheme_cv_lib_mhash}" = "yes"; then
  6072.     cat >> confdefs.h <<\EOF
  6073. #define HAVE_LIBMHASH 1
  6074. EOF
  6075.  
  6076.     if test "${ac_cv_header_mhash_h}" = "yes"; then
  6077.     if test "${enable_dynamic_crypto}" = "yes"; then
  6078.         MODULE_BASES="${MODULE_BASES} prmhash"
  6079.     else
  6080.         QUASI_STATIC_LIBS="${QUASI_STATIC_LIBS} -lmhash"
  6081.         OPTIONAL_BASES="${OPTIONAL_BASES} prmhash"
  6082.     fi
  6083.     HAVE_MD5="yes"
  6084.     fi
  6085. fi
  6086.  
  6087. if test "${scheme_cv_lib_mcrypt}" = "yes"; then
  6088.     cat >> confdefs.h <<\EOF
  6089. #define HAVE_LIBMCRYPT 1
  6090. EOF
  6091.  
  6092.     if test "${ac_cv_header_mcrypt_h}" = "yes"; then
  6093.     if test "${enable_dynamic_crypto}" = "yes"; then
  6094.         MODULE_BASES="${MODULE_BASES} prmcrypt"
  6095.     else
  6096.         QUASI_STATIC_LIBS="${QUASI_STATIC_LIBS} -lmcrypt -lltdl"
  6097.         OPTIONAL_BASES="${OPTIONAL_BASES} prmcrypt"
  6098.     fi
  6099.     fi
  6100. fi
  6101.  
  6102. if test "${HAVE_BLOWFISH}" = "no"; then
  6103.     if test "${scheme_cv_lib_blowfish}" = "yes"; then
  6104.     cat >> confdefs.h <<\EOF
  6105. #define HAVE_LIBBLOWFISH 1
  6106. EOF
  6107.  
  6108.     if test "${ac_cv_header_blowfish_h}" = "yes"; then
  6109.         if test "${enable_dynamic_crypto}" = "yes"; then
  6110.         MODULE_BASES="${MODULE_BASES} prbfish"
  6111.         PRBFISH_LIBS="-lblowfish"
  6112.         else
  6113.         STATIC_LIBS="${STATIC_LIBS} -lblowfish"
  6114.         OPTIONAL_BASES="${OPTIONAL_BASES} prbfish"
  6115.         fi
  6116.         HAVE_BLOWFISH="yes"
  6117.     fi
  6118.     fi
  6119. fi
  6120.  
  6121. if test "${HAVE_MD5}" = "no"; then
  6122.     if test "${scheme_cv_lib_md5}" = "yes"; then
  6123.     cat >> confdefs.h <<\EOF
  6124. #define HAVE_LIBMD5 1
  6125. EOF
  6126.  
  6127.     if test "${ac_cv_header_md5_h}" = "yes"; then
  6128.         if test "${enable_dynamic_crypto}" = "yes"; then
  6129.         MODULE_BASES="${MODULE_BASES} prmd5"
  6130.         PRMD5_LIBS="-lmd5"
  6131.         else
  6132.         STATIC_LIBS="${STATIC_LIBS} -lmd5"
  6133.         OPTIONAL_BASES="${OPTIONAL_BASES} prmd5"
  6134.         fi
  6135.         HAVE_MD5="yes"
  6136.     fi
  6137.     fi
  6138. fi
  6139.  
  6140. if test "${scheme_cv_lib_gdbm}" = "yes"; then
  6141.     cat >> confdefs.h <<\EOF
  6142. #define HAVE_LIBGDBM 1
  6143. EOF
  6144.  
  6145.     if test "${ac_cv_header_gdbm_h}" = "yes"; then
  6146.     QUASI_STATIC_LIBS="${QUASI_STATIC_LIBS} -lgdbm"
  6147.     OPTIONAL_BASES="${OPTIONAL_BASES} prgdbm"
  6148.     fi
  6149. fi
  6150.  
  6151. if test "${scheme_cv_lib_ncurses}" = "yes"; then
  6152.     cat >> confdefs.h <<\EOF
  6153. #define HAVE_LIBNCURSES 1
  6154. EOF
  6155.  
  6156.     if test "${ac_cv_header_curses_h}" = "yes" \
  6157.     && test "${ac_cv_header_term_h}" = "yes"; then
  6158.     QUASI_STATIC_LIBS="${QUASI_STATIC_LIBS} -lncurses"
  6159.     if test "${scheme_cv_lib_ncurses_defines_tparam}" = "yes"; then
  6160.         cat >> confdefs.h <<\EOF
  6161. #define LIBNCURSES_DEFINES_TPARAM 1
  6162. EOF
  6163.  
  6164.     else
  6165.         OPTIONAL_BASES="${OPTIONAL_BASES} terminfo"
  6166.     fi
  6167.     fi
  6168. else
  6169.     if test "${scheme_cv_lib_curses}" = "yes"; then
  6170.     cat >> confdefs.h <<\EOF
  6171. #define HAVE_LIBCURSES 1
  6172. EOF
  6173.  
  6174.     QUASI_STATIC_LIBS="${QUASI_STATIC_LIBS} -lcurses"
  6175.     OPTIONAL_BASES="${OPTIONAL_BASES} terminfo"
  6176.     else
  6177.     if test "${scheme_cv_lib_termcap}" = "yes"; then
  6178.         cat >> confdefs.h <<\EOF
  6179. #define HAVE_LIBTERMCAP 1
  6180. EOF
  6181.  
  6182.         QUASI_STATIC_LIBS="${QUASI_STATIC_LIBS} -ltermcap"
  6183.         OPTIONAL_BASES="${OPTIONAL_BASES} tparam"
  6184.     else
  6185.         OPTIONAL_BASES="${OPTIONAL_BASES} termcap tparam"
  6186.     fi
  6187.     fi
  6188. fi
  6189.  
  6190. if test "${enable_static_libs:-no}" = "no"; then
  6191.     LIBS="${LIBS}${QUASI_STATIC_LIBS}"
  6192. else
  6193.     STATIC_LIBS="${STATIC_LIBS}${QUASI_STATIC_LIBS}"
  6194. fi
  6195.  
  6196. if test "${no_x}" = "yes"; then
  6197.     LIB_X11=
  6198. else
  6199.     LIB_X11=-lX11
  6200.     OPTIONAL_BASES="${OPTIONAL_BASES} x11base x11term x11graph x11color"
  6201. fi
  6202.  
  6203. case "$host_os" in
  6204. linux-gnu)
  6205.     if test "${STATIC_LIBS}" != ""; then
  6206.     STATIC_PREFIX="-Xlinker -Bstatic"
  6207.     STATIC_SUFFIX="-Xlinker -Bdynamic"
  6208.     fi
  6209.     DLD_LDFLAGS="${DLD_LDFLAGS} -export-dynamic"
  6210.     MODULE_CFLAGS="${MODULE_CFLAGS} -fPIC"
  6211.     MODULE_LDFLAGS="${MODULE_LDFLAGS} -shared"
  6212.     echo $ac_n "checking for ELF binaries""... $ac_c" 1>&6
  6213. echo "configure:6214: checking for ELF binaries" >&5
  6214.     if test "$cross_compiling" = yes; then
  6215.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  6216. else
  6217.   cat > conftest.$ac_ext <<EOF
  6218. #line 6219 "configure"
  6219. #include "confdefs.h"
  6220. int
  6221. main ()
  6222. {
  6223. #ifdef __ELF__
  6224. return 0;
  6225. #endif
  6226. return 1;
  6227. }
  6228. EOF
  6229. if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6230. then
  6231.   scheme_cv_linux_elf=yes
  6232. else
  6233.   echo "configure: failed program was:" >&5
  6234.   cat conftest.$ac_ext >&5
  6235.   rm -fr conftest*
  6236.   scheme_cv_linux_elf=no
  6237. fi
  6238. rm -fr conftest*
  6239. fi
  6240.  
  6241.     echo "$ac_t""${scheme_cv_linux_elf}" 1>&6
  6242.     if test "${scheme_cv_linux_elf}" = "yes"; then
  6243.     M4_FLAGS="${M4_FLAGS} -P LINUX_ELF,1"
  6244.     fi
  6245.     if test "${GCC}" = "yes"; then
  6246.     echo $ac_n "checking for GCC version >= 2.95""... $ac_c" 1>&6
  6247. echo "configure:6248: checking for GCC version >= 2.95" >&5
  6248.     if test "$cross_compiling" = yes; then
  6249.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  6250. else
  6251.   cat > conftest.$ac_ext <<EOF
  6252. #line 6253 "configure"
  6253. #include "confdefs.h"
  6254. int
  6255. main ()
  6256. {
  6257. #if ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95)))
  6258. return 0;
  6259. #endif
  6260. return 1;
  6261. }
  6262. EOF
  6263. if { (eval echo configure:6264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6264. then
  6265.   scheme_cv_gcc3=yes
  6266. else
  6267.   echo "configure: failed program was:" >&5
  6268.   cat conftest.$ac_ext >&5
  6269.   rm -fr conftest*
  6270.   scheme_cv_gcc3=no
  6271. fi
  6272. rm -fr conftest*
  6273. fi
  6274.  
  6275.     echo "$ac_t""${scheme_cv_gcc3}" 1>&6
  6276.     if test "${scheme_cv_gcc3}" = "yes"; then
  6277.         M4_FLAGS="${M4_FLAGS} -P CALLEE_POPS_STRUCT_RETURN,1"
  6278.     fi
  6279.     fi
  6280.     ;;
  6281. freebsdelf*)
  6282.     M4_FLAGS="${M4_FLAGS} -P SUPPRESS_LEADING_UNDERSCORE,1"
  6283.     ;;
  6284. esac
  6285.  
  6286. scheme_arch=
  6287. OPTIONAL_BASES="${OPTIONAL_BASES} cmpint"
  6288. GC_HEAD_FILES="gccode.h cmpgc.h"
  6289. case "$host_cpu" in
  6290. alpha*)
  6291.     scheme_arch=alpha
  6292.     ;;
  6293. hppa*)
  6294.     scheme_arch=hppa
  6295.     GC_HEAD_FILES="${GC_HEAD_FILES} hppacach.h"
  6296.     ;;
  6297. i?86)
  6298.     scheme_arch=i386
  6299.     ;;
  6300. m68k|m680?0)
  6301.     scheme_arch=mc68k
  6302.     ;;
  6303. mips*)
  6304.     scheme_arch=mips
  6305.     ;;
  6306. vax)
  6307.     scheme_arch=vax
  6308.     ;;
  6309. esac
  6310. if test "${scheme_arch}" != ""; then
  6311.     cat >> confdefs.h <<\EOF
  6312. #define HAS_COMPILER_SUPPORT 1
  6313. EOF
  6314.  
  6315.     test -f cmpauxmd.m4 \
  6316.       || ${ac_cv_prog_LN_S} cmpauxmd/${scheme_arch}.m4 cmpauxmd.m4
  6317.     test -f cmpintmd.h \
  6318.       || ${ac_cv_prog_LN_S} cmpintmd/${scheme_arch}.h cmpintmd.h
  6319.     OPTIONAL_SOURCES="${OPTIONAL_SOURCES} cmpauxmd.m4"
  6320.     OPTIONAL_OBJECTS="${OPTIONAL_OBJECTS} cmpauxmd.o"
  6321.     GC_HEAD_FILES="${GC_HEAD_FILES} cmpintmd.h"
  6322. fi
  6323.  
  6324. for base in ${OPTIONAL_BASES}; do
  6325.     OPTIONAL_SOURCES="${OPTIONAL_SOURCES} ${base}.c"
  6326.     OPTIONAL_OBJECTS="${OPTIONAL_OBJECTS} ${base}.o"
  6327. done
  6328.  
  6329.  
  6330. MODULE_TARGETS=
  6331. if test "${MODULE_BASES}" = ""; then
  6332.     MODULE_RULES="/dev/null"
  6333. else
  6334.     MODULE_RULES="config.modrules"
  6335.     rm -f "${MODULE_RULES}"
  6336.     for BASE in ${MODULE_BASES}; do
  6337.     MODULE_TARGETS="${MODULE_TARGETS} ${BASE}.so"
  6338.     echo "" >> "${MODULE_RULES}"
  6339.     echo "${BASE}.o: ${BASE}.c" >> "${MODULE_RULES}"
  6340.     echo "    \$(COMPILE_MODULE) -c \$*.c" >> "${MODULE_RULES}"
  6341.     done
  6342. fi
  6343.  
  6344.  
  6345.  
  6346.  
  6347.  
  6348.  
  6349.  
  6350.  
  6351.  
  6352.  
  6353.  
  6354.  
  6355.  
  6356.  
  6357.  
  6358.  
  6359.  
  6360.  
  6361.  
  6362. trap '' 1 2 15
  6363. cat > confcache <<\EOF
  6364. # This file is a shell script that caches the results of configure
  6365. # tests run on this system so they can be shared between configure
  6366. # scripts and configure runs.  It is not useful on other systems.
  6367. # If it contains results you don't want to keep, you may remove or edit it.
  6368. #
  6369. # By default, configure uses ./config.cache as the cache file,
  6370. # creating it if it does not exist already.  You can give configure
  6371. # the --cache-file=FILE option to use a different cache file; that is
  6372. # what configure does when it calls configure scripts in
  6373. # subdirectories, so they share the cache.
  6374. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  6375. # config.status only pays attention to the cache file if you give it the
  6376. # --recheck option to rerun configure.
  6377. #
  6378. EOF
  6379. # The following way of writing the cache mishandles newlines in values,
  6380. # but we know of no workaround that is simple, portable, and efficient.
  6381. # So, don't put newlines in cache variables' values.
  6382. # Ultrix sh set writes to stderr and can't be redirected directly,
  6383. # and sets the high bit in the cache file unless we assign to the vars.
  6384. (set) 2>&1 |
  6385.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6386.   *ac_space=\ *)
  6387.     # `set' does not quote correctly, so add quotes (double-quote substitution
  6388.     # turns \\\\ into \\, and sed turns \\ into \).
  6389.     sed -n \
  6390.       -e "s/'/'\\\\''/g" \
  6391.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  6392.     ;;
  6393.   *)
  6394.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  6395.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  6396.     ;;
  6397.   esac >> confcache
  6398. if cmp -s $cache_file confcache; then
  6399.   :
  6400. else
  6401.   if test -w $cache_file; then
  6402.     echo "updating cache $cache_file"
  6403.     cat confcache > $cache_file
  6404.   else
  6405.     echo "not updating unwritable cache $cache_file"
  6406.   fi
  6407. fi
  6408. rm -f confcache
  6409.  
  6410. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  6411.  
  6412. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6413. # Let make expand exec_prefix.
  6414. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6415.  
  6416. # Any assignment to VPATH causes Sun make to only execute
  6417. # the first set of double-colon rules, so remove it if not needed.
  6418. # If there is a colon in the path, we need to keep it.
  6419. if test "x$srcdir" = x.; then
  6420.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  6421. fi
  6422.  
  6423. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  6424.  
  6425. DEFS=-DHAVE_CONFIG_H
  6426.  
  6427. # Without the "./", some shells look in PATH for config.status.
  6428. : ${CONFIG_STATUS=./config.status}
  6429.  
  6430. echo creating $CONFIG_STATUS
  6431. rm -f $CONFIG_STATUS
  6432. cat > $CONFIG_STATUS <<EOF
  6433. #! /bin/sh
  6434. # Generated automatically by configure.
  6435. # Run this file to recreate the current configuration.
  6436. # This directory was configured as follows,
  6437. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6438. #
  6439. # $0 $ac_configure_args
  6440. #
  6441. # Compiler output produced by configure, useful for debugging
  6442. # configure, is in ./config.log if it exists.
  6443.  
  6444. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  6445. for ac_option
  6446. do
  6447.   case "\$ac_option" in
  6448.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6449.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  6450.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  6451.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  6452.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  6453.     exit 0 ;;
  6454.   -help | --help | --hel | --he | --h)
  6455.     echo "\$ac_cs_usage"; exit 0 ;;
  6456.   *) echo "\$ac_cs_usage"; exit 1 ;;
  6457.   esac
  6458. done
  6459.  
  6460. ac_given_srcdir=$srcdir
  6461. ac_given_INSTALL="$INSTALL"
  6462.  
  6463. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  6464. EOF
  6465. cat >> $CONFIG_STATUS <<EOF
  6466.  
  6467. # Protect against being on the right side of a sed subst in config.status.
  6468. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  6469.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  6470. $ac_vpsub
  6471. $extrasub
  6472. s%@SHELL@%$SHELL%g
  6473. s%@CFLAGS@%$CFLAGS%g
  6474. s%@CPPFLAGS@%$CPPFLAGS%g
  6475. s%@CXXFLAGS@%$CXXFLAGS%g
  6476. s%@FFLAGS@%$FFLAGS%g
  6477. s%@DEFS@%$DEFS%g
  6478. s%@LDFLAGS@%$LDFLAGS%g
  6479. s%@LIBS@%$LIBS%g
  6480. s%@exec_prefix@%$exec_prefix%g
  6481. s%@prefix@%$prefix%g
  6482. s%@program_transform_name@%$program_transform_name%g
  6483. s%@bindir@%$bindir%g
  6484. s%@sbindir@%$sbindir%g
  6485. s%@libexecdir@%$libexecdir%g
  6486. s%@datadir@%$datadir%g
  6487. s%@sysconfdir@%$sysconfdir%g
  6488. s%@sharedstatedir@%$sharedstatedir%g
  6489. s%@localstatedir@%$localstatedir%g
  6490. s%@libdir@%$libdir%g
  6491. s%@includedir@%$includedir%g
  6492. s%@oldincludedir@%$oldincludedir%g
  6493. s%@infodir@%$infodir%g
  6494. s%@mandir@%$mandir%g
  6495. s%@CC@%$CC%g
  6496. s%@CPP@%$CPP%g
  6497. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  6498. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  6499. s%@INSTALL_DATA@%$INSTALL_DATA%g
  6500. s%@LN_S@%$LN_S%g
  6501. s%@SET_MAKE@%$SET_MAKE%g
  6502. s%@LIBOBJS@%$LIBOBJS%g
  6503. s%@host@%$host%g
  6504. s%@host_alias@%$host_alias%g
  6505. s%@host_cpu@%$host_cpu%g
  6506. s%@host_vendor@%$host_vendor%g
  6507. s%@host_os@%$host_os%g
  6508. s%@X_CFLAGS@%$X_CFLAGS%g
  6509. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  6510. s%@X_LIBS@%$X_LIBS%g
  6511. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  6512. s%@AS_FLAGS@%$AS_FLAGS%g
  6513. s%@GC_HEAD_FILES@%$GC_HEAD_FILES%g
  6514. s%@LIB_X11@%$LIB_X11%g
  6515. s%@M4_FLAGS@%$M4_FLAGS%g
  6516. s%@OPTIONAL_OBJECTS@%$OPTIONAL_OBJECTS%g
  6517. s%@OPTIONAL_SOURCES@%$OPTIONAL_SOURCES%g
  6518. s%@STATIC_LIBS@%$STATIC_LIBS%g
  6519. s%@STATIC_PREFIX@%$STATIC_PREFIX%g
  6520. s%@STATIC_SUFFIX@%$STATIC_SUFFIX%g
  6521. s%@PRBFISH_LIBS@%$PRBFISH_LIBS%g
  6522. s%@PRMD5_LIBS@%$PRMD5_LIBS%g
  6523. s%@SCHEME_DEFS@%$SCHEME_DEFS%g
  6524. s%@DLD_LDFLAGS@%$DLD_LDFLAGS%g
  6525. s%@MODULE_TARGETS@%$MODULE_TARGETS%g
  6526. /@MODULE_RULES@/r $MODULE_RULES
  6527. s%@MODULE_RULES@%%g
  6528. s%@MODULE_CFLAGS@%$MODULE_CFLAGS%g
  6529. s%@MODULE_LDFLAGS@%$MODULE_LDFLAGS%g
  6530.  
  6531. CEOF
  6532. EOF
  6533.  
  6534. cat >> $CONFIG_STATUS <<\EOF
  6535.  
  6536. # Split the substitutions into bite-sized pieces for seds with
  6537. # small command number limits, like on Digital OSF/1 and HP-UX.
  6538. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  6539. ac_file=1 # Number of current file.
  6540. ac_beg=1 # First line for current file.
  6541. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  6542. ac_more_lines=:
  6543. ac_sed_cmds=""
  6544. while $ac_more_lines; do
  6545.   if test $ac_beg -gt 1; then
  6546.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  6547.   else
  6548.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  6549.   fi
  6550.   if test ! -s conftest.s$ac_file; then
  6551.     ac_more_lines=false
  6552.     rm -f conftest.s$ac_file
  6553.   else
  6554.     if test -z "$ac_sed_cmds"; then
  6555.       ac_sed_cmds="sed -f conftest.s$ac_file"
  6556.     else
  6557.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  6558.     fi
  6559.     ac_file=`expr $ac_file + 1`
  6560.     ac_beg=$ac_end
  6561.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  6562.   fi
  6563. done
  6564. if test -z "$ac_sed_cmds"; then
  6565.   ac_sed_cmds=cat
  6566. fi
  6567. EOF
  6568.  
  6569. cat >> $CONFIG_STATUS <<EOF
  6570.  
  6571. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  6572. EOF
  6573. cat >> $CONFIG_STATUS <<\EOF
  6574. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  6575.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6576.   case "$ac_file" in
  6577.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6578.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6579.   *) ac_file_in="${ac_file}.in" ;;
  6580.   esac
  6581.  
  6582.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  6583.  
  6584.   # Remove last slash and all that follows it.  Not all systems have dirname.
  6585.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6586.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6587.     # The file is in a subdirectory.
  6588.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  6589.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  6590.     # A "../" for each directory in $ac_dir_suffix.
  6591.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  6592.   else
  6593.     ac_dir_suffix= ac_dots=
  6594.   fi
  6595.  
  6596.   case "$ac_given_srcdir" in
  6597.   .)  srcdir=.
  6598.       if test -z "$ac_dots"; then top_srcdir=.
  6599.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  6600.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  6601.   *) # Relative path.
  6602.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  6603.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  6604.   esac
  6605.  
  6606.   case "$ac_given_INSTALL" in
  6607.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  6608.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  6609.   esac
  6610.  
  6611.   echo creating "$ac_file"
  6612.   rm -f "$ac_file"
  6613.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  6614.   case "$ac_file" in
  6615.   *Makefile*) ac_comsub="1i\\
  6616. # $configure_input" ;;
  6617.   *) ac_comsub= ;;
  6618.   esac
  6619.  
  6620.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6621.   sed -e "$ac_comsub
  6622. s%@configure_input@%$configure_input%g
  6623. s%@srcdir@%$srcdir%g
  6624. s%@top_srcdir@%$top_srcdir%g
  6625. s%@INSTALL@%$INSTALL%g
  6626. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  6627. fi; done
  6628. rm -f conftest.s*
  6629.  
  6630. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  6631. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  6632. #
  6633. # ac_d sets the value in "#define NAME VALUE" lines.
  6634. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  6635. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  6636. ac_dC='\3'
  6637. ac_dD='%g'
  6638. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  6639. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  6640. ac_uB='\([     ]\)%\1#\2define\3'
  6641. ac_uC=' '
  6642. ac_uD='\4%g'
  6643. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  6644. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  6645. ac_eB='$%\1#\2define\3'
  6646. ac_eC=' '
  6647. ac_eD='%g'
  6648.  
  6649. if test "${CONFIG_HEADERS+set}" != set; then
  6650. EOF
  6651. cat >> $CONFIG_STATUS <<EOF
  6652.   CONFIG_HEADERS="config.h"
  6653. EOF
  6654. cat >> $CONFIG_STATUS <<\EOF
  6655. fi
  6656. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  6657.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6658.   case "$ac_file" in
  6659.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6660.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6661.   *) ac_file_in="${ac_file}.in" ;;
  6662.   esac
  6663.  
  6664.   echo creating $ac_file
  6665.  
  6666.   rm -f conftest.frag conftest.in conftest.out
  6667.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6668.   cat $ac_file_inputs > conftest.in
  6669.  
  6670. EOF
  6671.  
  6672. # Transform confdefs.h into a sed script conftest.vals that substitutes
  6673. # the proper values into config.h.in to produce config.h.  And first:
  6674. # Protect against being on the right side of a sed subst in config.status.
  6675. # Protect against being in an unquoted here document in config.status.
  6676. rm -f conftest.vals
  6677. cat > conftest.hdr <<\EOF
  6678. s/[\\&%]/\\&/g
  6679. s%[\\$`]%\\&%g
  6680. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  6681. s%ac_d%ac_u%gp
  6682. s%ac_u%ac_e%gp
  6683. EOF
  6684. sed -n -f conftest.hdr confdefs.h > conftest.vals
  6685. rm -f conftest.hdr
  6686.  
  6687. # This sed command replaces #undef with comments.  This is necessary, for
  6688. # example, in the case of _POSIX_SOURCE, which is predefined and required
  6689. # on some systems where configure will not decide to define it.
  6690. cat >> conftest.vals <<\EOF
  6691. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  6692. EOF
  6693.  
  6694. # Break up conftest.vals because some shells have a limit on
  6695. # the size of here documents, and old seds have small limits too.
  6696.  
  6697. rm -f conftest.tail
  6698. while :
  6699. do
  6700.   ac_lines=`grep -c . conftest.vals`
  6701.   # grep -c gives empty output for an empty file on some AIX systems.
  6702.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  6703.   # Write a limited-size here document to conftest.frag.
  6704.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  6705.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  6706.   echo 'CEOF
  6707.   sed -f conftest.frag conftest.in > conftest.out
  6708.   rm -f conftest.in
  6709.   mv conftest.out conftest.in
  6710. ' >> $CONFIG_STATUS
  6711.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  6712.   rm -f conftest.vals
  6713.   mv conftest.tail conftest.vals
  6714. done
  6715. rm -f conftest.vals
  6716.  
  6717. cat >> $CONFIG_STATUS <<\EOF
  6718.   rm -f conftest.frag conftest.h
  6719.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  6720.   cat conftest.in >> conftest.h
  6721.   rm -f conftest.in
  6722.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  6723.     echo "$ac_file is unchanged"
  6724.     rm -f conftest.h
  6725.   else
  6726.     # Remove last slash and all that follows it.  Not all systems have dirname.
  6727.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6728.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6729.       # The file is in a subdirectory.
  6730.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  6731.     fi
  6732.     rm -f $ac_file
  6733.     mv conftest.h $ac_file
  6734.   fi
  6735. fi; done
  6736.  
  6737. EOF
  6738. cat >> $CONFIG_STATUS <<EOF
  6739.  
  6740. EOF
  6741. cat >> $CONFIG_STATUS <<\EOF
  6742.  
  6743. exit 0
  6744. EOF
  6745. chmod +x $CONFIG_STATUS
  6746. rm -fr confdefs* $ac_clean_files
  6747. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  6748.  
  6749.  
  6750. if test "${MODULE_RULES}" != "/dev/null"; then
  6751.     rm -f "${MODULE_RULES}"
  6752. fi
  6753.