home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pyth_os2.zip / python-1.0.2 / configure < prev    next >
Text File  |  1994-05-04  |  62KB  |  2,280 lines

  1. #!/bin/sh
  2. # From configure.in Revision: 1.2.4.16 
  3. #!/bin/sh
  4. # Guess values for system-dependent variables and create Makefiles.
  5. # Generated automatically using autoconf version 1.8 
  6. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  7.  
  8. # This configure script is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU General Public License as published
  10. # by the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12.  
  13. # This script is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  16. # Public License for more details.
  17.  
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22. # Save the original args to write them into config.status later.
  23. configure_args="$*"
  24.  
  25. # Only options that might do something get documented.
  26. ac_usage="Usage: configure [options] [host]
  27. Options: [defaults in brackets after descriptions]
  28. --build=BUILD        configure for building on BUILD [BUILD=HOST]
  29. --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  30. --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  31. --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  32. --help            print this message
  33. --host=HOST        configure for HOST [guessed]
  34. --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  35. --quiet, --silent    do not print \`checking for...' messages
  36. --srcdir=DIR        find the sources in DIR [configure dir or ..]
  37. --target=TARGET        configure for TARGET [TARGET=HOST]
  38. --verbose        print results of checks
  39. --version        print the version of autoconf that created configure
  40. --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  41. --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  42. --x-includes=DIR    X include files are in DIR
  43. --x-libraries=DIR    X library files are in DIR"
  44.  
  45. # Initialize some variables set by options.
  46. # The variables have the same names as the options, with
  47. # dashes changed to underlines.
  48. build=NONE
  49. exec_prefix=
  50. host=NONE
  51. no_create=
  52. nonopt=NONE
  53. norecursion=
  54. prefix=
  55. program_prefix=
  56. program_suffix=
  57. program_transform_name=
  58. silent=
  59. srcdir=
  60. target=NONE
  61. verbose=
  62. x_includes=
  63. x_libraries=
  64.  
  65. ac_prev=
  66. for ac_option
  67. do
  68.  
  69.   # If the previous option needs an argument, assign it.
  70.   if test -n "$ac_prev"; then
  71.     eval "$ac_prev=\$ac_option"
  72.     ac_prev=
  73.     continue
  74.   fi
  75.  
  76.   # Accept (but ignore some of) the important Cygnus configure
  77.   # options, so we can diagnose typos.
  78.  
  79.   case "$ac_option" in
  80.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  81.   *) ac_optarg= ;;
  82.   esac
  83.  
  84.   case "$ac_option" in
  85.  
  86.   -build | --build | --buil | --bui | --bu | --b)
  87.     ac_prev=build ;;
  88.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  89.     build="$ac_optarg" ;;
  90.  
  91.   -disable-* | --disable-*)
  92.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  93.     # Reject names that aren't valid shell variable names.
  94.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  95.       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  96.     fi
  97.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  98.     eval "enable_${ac_feature}=no" ;;
  99.  
  100.   -enable-* | --enable-*)
  101.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  102.     # Reject names that aren't valid shell variable names.
  103.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  104.       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  105.     fi
  106.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  107.     case "$ac_option" in
  108.       *=*) ;;
  109.       *) ac_optarg=yes ;;
  110.     esac
  111.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  112.  
  113.   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  114.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  115.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  116.   | --exec | --exe | --ex)
  117.     ac_prev=exec_prefix ;;
  118.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  119.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  120.   | --exec=* | --exe=* | --ex=*)
  121.     exec_prefix="$ac_optarg" ;;
  122.  
  123.   -gas | --gas | --ga | --g)
  124.     with_gas=1 ;; # Obsolete; use --with-gas.
  125.  
  126.   -help | --help | --hel | --he)
  127.     cat << EOF
  128. $ac_usage
  129. EOF
  130.     exit 0 ;;
  131.  
  132.   -host | --host | --hos | --ho)
  133.     ac_prev=host ;;
  134.   -host=* | --host=* | --hos=* | --ho=*)
  135.     host="$ac_optarg" ;;
  136.  
  137.   -nfp | --nfp | --nf)
  138.     with_fp=no ;; # Obsolete; use --without-fp.
  139.  
  140.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  141.   | --no-cr | --no-c)
  142.     no_create=yes ;;
  143.  
  144.   -norecursion | --norecursion | --norecursio | --norecursi \
  145.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  146.     norecursion=yes ;;
  147.  
  148.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  149.     ac_prev=prefix ;;
  150.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  151.     prefix="$ac_optarg" ;;
  152.  
  153.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  154.   | --program-pre | --program-pr | --program-p)
  155.     ac_prev=program_prefix ;;
  156.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  157.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  158.     program_prefix="$ac_optarg" ;;
  159.  
  160.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  161.   | --program-suf | --program-su | --program-s)
  162.     ac_prev=program_suffix ;;
  163.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  164.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  165.     program_suffix="$ac_optarg" ;;
  166.  
  167.   -program-transform-name | --program-transform-name \
  168.   | --program-transform-nam | --program-transform-na \
  169.   | --program-transform-n | --program-transform- \
  170.   | --program-transform | --program-transfor \
  171.   | --program-transfo | --program-transf \
  172.   | --program-trans | --program-tran \
  173.   | --progr-tra | --program-tr | --program-t)
  174.     ac_prev=program_transform_name ;;
  175.   -program-transform-name=* | --program-transform-name=* \
  176.   | --program-transform-nam=* | --program-transform-na=* \
  177.   | --program-transform-n=* | --program-transform-=* \
  178.   | --program-transform=* | --program-transfor=* \
  179.   | --program-transfo=* | --program-transf=* \
  180.   | --program-trans=* | --program-tran=* \
  181.   | --progr-tra=* | --program-tr=* | --program-t=*)
  182.     program_transform_name="$ac_optarg" ;;
  183.  
  184.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  185.   | -silent | --silent | --silen | --sile | --sil)
  186.     silent=yes ;;
  187.  
  188.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  189.     ac_prev=srcdir ;;
  190.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  191.     srcdir="$ac_optarg" ;;
  192.  
  193.   -target | --target | --targe | --targ | --tar | --ta | --t)
  194.     ac_prev=target ;;
  195.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  196.     target="$ac_optarg" ;;
  197.  
  198.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  199.     verbose=yes ;;
  200.  
  201.   -version | --version | --versio | --versi | --vers)
  202.     echo "configure generated by autoconf version 1.8"
  203.     exit 0 ;;
  204.  
  205.   -with-* | --with-*)
  206.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  207.     # Reject names that aren't valid shell variable names.
  208.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  209.       echo "configure: $ac_package: invalid package name" >&2; exit 1
  210.     fi
  211.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  212.     case "$ac_option" in
  213.       *=*) ;;
  214.       *) ac_optarg=yes ;;
  215.     esac
  216.     eval "with_${ac_package}='$ac_optarg'" ;;
  217.  
  218.   -without-* | --without-*)
  219.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  220.     # Reject names that aren't valid shell variable names.
  221.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  222.       echo "configure: $ac_package: invalid package name" >&2; exit 1
  223.     fi
  224.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  225.     eval "with_${ac_package}=no" ;;
  226.  
  227.   --x) with_x=1 ;; # Obsolete; use --with-x.
  228.  
  229.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  230.   | --x-incl | --x-inc | --x-in | --x-i)
  231.     ac_prev=x_includes ;;
  232.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  233.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  234.     x_includes="$ac_optarg" ;;
  235.  
  236.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  237.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  238.     ac_prev=x_libraries ;;
  239.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  240.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  241.     x_libraries="$ac_optarg" ;;
  242.  
  243.   -*) echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  244.     ;;
  245.  
  246.   *) 
  247.     if test -n "`echo $ac_option| sed 's/[-a-z0-9]//g'`"; then
  248.       echo "configure: warning: $ac_option: invalid host type" >&2
  249.     fi
  250.     if test "x$nonopt" -ne xNONE; then
  251.       echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  252.     fi
  253.     nonopt="$ac_option"
  254.     ;;
  255.  
  256.   esac
  257. done
  258.  
  259. if test -n "$ac_prev"; then
  260.   echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  261. fi
  262.  
  263. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  264. trap 'rm -fr confdefs* $ac_clean_files' 0
  265.  
  266. # Save the original args if we used an alternate arg parser.
  267. ac_configure_temp="${configure_args-$*}"
  268. # Strip out --no-create and --norecursion so they don't pile up.
  269. configure_args=
  270. for ac_arg in $ac_configure_temp; do
  271.   case "$ac_arg" in
  272.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  273.   | --no-cr | --no-c) ;;
  274.   -norecursion | --norecursion | --norecursio | --norecursi \
  275.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  276.   *) configure_args="$configure_args $ac_arg" ;;
  277.   esac
  278. done
  279.  
  280. # NLS nuisances.
  281. # These must not be set unconditionally because not all systems understand
  282. # e.g. LANG=C (notably SCO).
  283. if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  284. if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  285.  
  286. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  287. rm -rf conftest* confdefs.h
  288. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  289. echo > confdefs.h
  290.  
  291. # A filename unique to this package, relative to the directory that
  292. # configure is in, which we can look for to find out if srcdir is correct.
  293. ac_unique_file=Include/object.h
  294.  
  295. # Find the source files, if location was not specified.
  296. if test -z "$srcdir"; then
  297.   ac_srcdir_defaulted=yes
  298.   # Try the directory containing this script, then `..'.
  299.   ac_prog=$0
  300.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  301.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  302.   srcdir=$ac_confdir
  303.   if test ! -r $srcdir/$ac_unique_file; then
  304.     srcdir=..
  305.   fi
  306. fi
  307. if test ! -r $srcdir/$ac_unique_file; then
  308.   if test x$ac_srcdir_defaulted = xyes; then
  309.     echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  310.   else
  311.     echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  312.   fi
  313. fi
  314.  
  315. ac_ext=c
  316. ac_cpp='${CPP} $CFLAGS'
  317. ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  318.  
  319. if test -z "$prefix"
  320. then
  321.   test -n "$silent" || echo "checking for python to derive installation directory prefix"
  322.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$IFS:"
  323.   for ac_dir in $PATH; do
  324.     test -z "$ac_dir" && ac_dir=.
  325.     if test $ac_dir != . && test -f $ac_dir/python; then
  326.       # Not all systems have dirname.
  327.       prefix=`echo $ac_dir|sed 's%/[^/][^/]*$%%'`
  328.       break
  329.     fi
  330.   done
  331.   IFS="$ac_save_ifs"
  332.   test -n "$verbose" && echo "    chose installation directory prefix ${prefix}"
  333. fi
  334.  
  335. # Don't suppress compiler output when --verbose is specified
  336. test -n "$verbose" &&
  337.     ac_compile=`echo "$ac_compile" | sed "s|>/dev/null 2>&1||"`
  338. test -n "$verbose" && echo "    ac_compile='$ac_compile'"
  339.  
  340. # checks for alternative programs
  341. if test -z "$CC"; then
  342.   # Extract the first word of `gcc', so it can be a program name with args.
  343.   set ac_dummy gcc; ac_word=$2
  344.   test -n "$silent" || echo "checking for $ac_word"
  345.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  346.   for ac_dir in $PATH; do
  347.     test -z "$ac_dir" && ac_dir=.
  348.     if test -f $ac_dir/$ac_word; then
  349.       CC="gcc"
  350.       break
  351.     fi
  352.   done
  353.   IFS="$ac_save_ifs"
  354. fi
  355. test -z "$CC" && CC="cc"
  356. test -n "$CC" && test -n "$verbose" && echo "    setting CC to $CC"
  357.  
  358. # Find out if we are using GNU C, under whatever name.
  359. cat > conftest.c <<EOF
  360. #ifdef __GNUC__
  361.   yes
  362. #endif
  363. EOF
  364. ${CC-cc} -E conftest.c > conftest.out 2>&1
  365. if egrep yes conftest.out >/dev/null 2>&1; then
  366.   GCC=1 # For later tests.
  367. fi
  368. rm -f conftest*
  369.  
  370. # Make sure to not get the incompatible SysV /etc/install and
  371. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  372. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  373. # or the AFS install, which mishandles nonexistent args, or
  374. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  375. # `staff', or /sbin/install on IRIX which has incompatible command-line
  376. # syntax.  Sigh.
  377. #
  378. #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  379. #     anyway.
  380. # This turns out not to be true, so the mere pathname isn't an indication
  381. # of whether the program works.  What we really need is a set of tests for
  382. # the install program to see if it actually works in all the required ways.
  383. #
  384. # Avoid using ./install, which might have been erroneously created
  385. # by make from ./install.sh.
  386. if test "z${INSTALL}" = "z" ; then
  387.   test -n "$silent" || echo "checking for a BSD compatible install"
  388.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  389.   for ac_dir in $PATH; do
  390.     case "$ac_dir" in
  391.     ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  392.     *)
  393.       # OSF1 and SCO ODT 3.0 have their own names for install.
  394.       for ac_prog in installbsd scoinst install; do
  395.         if test -f $ac_dir/$ac_prog; then
  396.       if grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  397.         : # AIX
  398.       else
  399.         INSTALL="$ac_dir/$ac_prog -c"
  400.         INSTALL_PROGRAM='${INSTALL}'
  401.         INSTALL_DATA='${INSTALL} -m 644'
  402.         break 2
  403.       fi
  404.     fi
  405.       done
  406.       ;;
  407.     esac
  408.   done
  409.   IFS="$ac_save_ifs"
  410. fi
  411. if test -z "$INSTALL"; then
  412.   if test -f ${srcdir}/install.sh; then
  413.     # As a last resort, use the slow shell script.
  414.     INSTALL='@top_srcdir@/install.sh -c'
  415.   else
  416.     echo "configure: warning: ${srcdir}/install.sh not found; using cp" >&2
  417.     INSTALL=cp
  418.   fi
  419. fi
  420. test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  421. # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  422. # It thinks the first close brace ends the variable substitution.
  423. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  424. test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  425. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL}'
  426. test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  427.  
  428. if test -z "$RANLIB"; then
  429.   # Extract the first word of `ranlib', so it can be a program name with args.
  430.   set ac_dummy ranlib; ac_word=$2
  431.   test -n "$silent" || echo "checking for $ac_word"
  432.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  433.   for ac_dir in $PATH; do
  434.     test -z "$ac_dir" && ac_dir=.
  435.     if test -f $ac_dir/$ac_word; then
  436.       RANLIB="ranlib"
  437.       break
  438.     fi
  439.   done
  440.   IFS="$ac_save_ifs"
  441. fi
  442. test -z "$RANLIB" && RANLIB=":"
  443. test -n "$RANLIB" && test -n "$verbose" && echo "    setting RANLIB to $RANLIB"
  444.  
  445.  
  446. for ac_prog in ar aal
  447. do
  448. if test -z "$AR"; then
  449.   # Extract the first word of `$ac_prog', so it can be a program name with args.
  450.   set ac_dummy $ac_prog; ac_word=$2
  451.   test -n "$silent" || echo "checking for $ac_word"
  452.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  453.   for ac_dir in $PATH; do
  454.     test -z "$ac_dir" && ac_dir=.
  455.     if test -f $ac_dir/$ac_word; then
  456.       AR="$ac_prog"
  457.       break
  458.     fi
  459.   done
  460.   IFS="$ac_save_ifs"
  461. fi
  462.  
  463. test -n "$AR" && test -n "$verbose" && echo "    setting AR to $AR"
  464.  
  465. test -n "$AR" && break
  466. done
  467. test -n "$AR" || AR="ar"
  468.  
  469.  
  470. # checks for UNIX variants that set C preprocessor variables
  471. test -n "$silent" || echo "checking for AIX"
  472. test -n "$silent" || echo "checking how to run the C preprocessor"
  473. if test -z "$CPP"; then
  474.   # This must be in double quotes, not single quotes, because CPP may get
  475.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  476.   # make.  It must be expanded now.
  477.   CPP="${CC-cc} -E"
  478.   cat > conftest.${ac_ext} <<EOF
  479. #include "confdefs.h"
  480. #include <stdio.h>
  481. Syntax Error
  482. EOF
  483. # Some shells (Coherent) do redirections in the wrong order, so need
  484. # the parens.
  485. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  486. if test -z "$ac_err"; then
  487.   :
  488. else
  489.   rm -rf conftest*
  490.   CPP="${CC-cc} -E -traditional-cpp"
  491.   cat > conftest.${ac_ext} <<EOF
  492. #include "confdefs.h"
  493. #include <stdio.h>
  494. Syntax Error
  495. EOF
  496. # Some shells (Coherent) do redirections in the wrong order, so need
  497. # the parens.
  498. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  499. if test -z "$ac_err"; then
  500.   :
  501. else
  502.   rm -rf conftest*
  503.   CPP=/lib/cpp
  504. fi
  505. rm -f conftest*
  506. fi
  507. rm -f conftest*
  508. fi
  509. test -n "$verbose" && echo "    setting CPP to $CPP"
  510.  
  511. cat > conftest.${ac_ext} <<EOF
  512. #include "confdefs.h"
  513. #ifdef _AIX
  514.   yes
  515. #endif
  516.  
  517. EOF
  518. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  519. if egrep "yes" conftest.out >/dev/null 2>&1; then
  520.   rm -rf conftest*
  521.   
  522. {
  523. test -n "$verbose" && \
  524. echo "    defining _ALL_SOURCE"
  525. echo "#define" _ALL_SOURCE "1" >> confdefs.h
  526. DEFS="$DEFS -D_ALL_SOURCE=1"
  527. ac_sed_defs="${ac_sed_defs}\${ac_dA}_ALL_SOURCE\${ac_dB}_ALL_SOURCE\${ac_dC}1\${ac_dD}
  528. \${ac_uA}_ALL_SOURCE\${ac_uB}_ALL_SOURCE\${ac_uC}1\${ac_uD}
  529. \${ac_eA}_ALL_SOURCE\${ac_eB}_ALL_SOURCE\${ac_eC}1\${ac_eD}
  530. "
  531. }
  532.  
  533.  
  534. fi
  535. rm -f conftest*
  536.  
  537.  
  538. test -n "$silent" || echo "checking for POSIXized ISC"
  539. if test -d /etc/conf/kconfig.d &&
  540.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  541. then
  542.   ISC=1 # If later tests want to check for ISC.
  543.   
  544. {
  545. test -n "$verbose" && \
  546. echo "    defining _POSIX_SOURCE"
  547. echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  548. DEFS="$DEFS -D_POSIX_SOURCE=1"
  549. ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  550. \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  551. \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  552. "
  553. }
  554.  
  555.   if test -n "$GCC"; then
  556.     CC="$CC -posix"
  557.   else
  558.     CC="$CC -Xp"
  559.   fi
  560. fi
  561.  
  562. test -n "$silent" || echo "checking for minix/config.h"
  563. cat > conftest.${ac_ext} <<EOF
  564. #include "confdefs.h"
  565. #include <minix/config.h>
  566. EOF
  567. # Some shells (Coherent) do redirections in the wrong order, so need
  568. # the parens.
  569. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  570. if test -z "$ac_err"; then
  571.   rm -rf conftest*
  572.   MINIX=1
  573.  
  574. fi
  575. rm -f conftest*
  576.  
  577. # The Minix shell can't assign to the same variable on the same line!
  578. if test -n "$MINIX"; then
  579.   
  580. {
  581. test -n "$verbose" && \
  582. echo "    defining _POSIX_SOURCE"
  583. echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  584. DEFS="$DEFS -D_POSIX_SOURCE=1"
  585. ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  586. \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  587. \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  588. "
  589. }
  590.  
  591.   
  592. {
  593. test -n "$verbose" && \
  594. echo "    defining" _POSIX_1_SOURCE to be "2"
  595. echo "#define" _POSIX_1_SOURCE "2" >> confdefs.h
  596. DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  597. ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_1_SOURCE\${ac_dB}_POSIX_1_SOURCE\${ac_dC}2\${ac_dD}
  598. \${ac_uA}_POSIX_1_SOURCE\${ac_uB}_POSIX_1_SOURCE\${ac_uC}2\${ac_uD}
  599. \${ac_eA}_POSIX_1_SOURCE\${ac_eB}_POSIX_1_SOURCE\${ac_eC}2\${ac_eD}
  600. "
  601. }
  602.  
  603.   
  604. {
  605. test -n "$verbose" && \
  606. echo "    defining _MINIX"
  607. echo "#define" _MINIX "1" >> confdefs.h
  608. DEFS="$DEFS -D_MINIX=1"
  609. ac_sed_defs="${ac_sed_defs}\${ac_dA}_MINIX\${ac_dB}_MINIX\${ac_dC}1\${ac_dD}
  610. \${ac_uA}_MINIX\${ac_uB}_MINIX\${ac_uC}1\${ac_uD}
  611. \${ac_eA}_MINIX\${ac_eB}_MINIX\${ac_eC}1\${ac_eD}
  612. "
  613. }
  614.  
  615. fi
  616.  
  617. ac_save_LIBS="${LIBS}"
  618. LIBS="${LIBS} -lseq"
  619. ac_have_lib=""
  620. test -n "$silent" || echo "checking for -lseq"
  621. cat > conftest.${ac_ext} <<EOF
  622. #include "confdefs.h"
  623.  
  624. int main() { return 0; }
  625. int t() { main();; return 0; }
  626. EOF
  627. if eval $ac_compile; then
  628.   rm -rf conftest*
  629.   ac_have_lib="1"
  630.  
  631. fi
  632. rm -f conftest*
  633. LIBS="${ac_save_LIBS}"
  634. if test -n "${ac_have_lib}"; then
  635.    :; LIBS="$LIBS -lseq"
  636. else
  637.    :; 
  638. fi
  639.  
  640.  
  641. echo checking for NeXT
  642. cat > conftest.${ac_ext} <<EOF
  643. #include "confdefs.h"
  644.  
  645. #ifdef _NEXT_SOURCE
  646. main() { exit(0); }
  647. #endif
  648.  
  649. EOF
  650. eval $ac_compile
  651. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  652.   
  653. {
  654. test -n "$verbose" && \
  655. echo "    defining _POSIX_SOURCE"
  656. echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  657. DEFS="$DEFS -D_POSIX_SOURCE=1"
  658. ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  659. \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  660. \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  661. "
  662. }
  663.  
  664.  
  665. fi
  666. rm -fr conftest*
  667.  
  668. # checks for header files
  669. test -n "$silent" || echo "checking for ANSI C header files"
  670. cat > conftest.${ac_ext} <<EOF
  671. #include "confdefs.h"
  672. #include <stdlib.h>
  673. #include <stdarg.h>
  674. #include <string.h>
  675. #include <float.h>
  676. EOF
  677. # Some shells (Coherent) do redirections in the wrong order, so need
  678. # the parens.
  679. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  680. if test -z "$ac_err"; then
  681.   rm -rf conftest*
  682.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  683. echo '#include "confdefs.h"
  684. #include <string.h>' > conftest.${ac_ext}
  685. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  686. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  687.   rm -rf conftest*
  688.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  689. cat > conftest.${ac_ext} <<EOF
  690. #include "confdefs.h"
  691. #include <ctype.h>
  692. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  693. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  694. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  695. int main () { int i; for (i = 0; i < 256; i++)
  696. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  697. exit (0); }
  698.  
  699. EOF
  700. eval $ac_compile
  701. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  702.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  703. echo '#include "confdefs.h"
  704. #include <stdlib.h>' > conftest.${ac_ext}
  705. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  706. if egrep "free" conftest.out >/dev/null 2>&1; then
  707.   rm -rf conftest*
  708.   
  709. {
  710. test -n "$verbose" && \
  711. echo "    defining STDC_HEADERS"
  712. echo "#define" STDC_HEADERS "1" >> confdefs.h
  713. DEFS="$DEFS -DSTDC_HEADERS=1"
  714. ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  715. \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  716. \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  717. "
  718. }
  719.  
  720.  
  721. fi
  722. rm -f conftest*
  723.  
  724.  
  725. fi
  726. rm -fr conftest*
  727.  
  728. fi
  729. rm -f conftest*
  730.  
  731.  
  732. fi
  733. rm -f conftest*
  734.  
  735. for ac_hdr in dlfcn.h fcntl.h signal.h stdarg.h stdlib.h thread.h unistd.h utime.h sys/audioio.h sys/param.h sys/select.h sys/time.h sys/times.h sys/un.h sys/utsname.h
  736. do
  737. ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  738. test -n "$silent" || echo "checking for ${ac_hdr}"
  739. cat > conftest.${ac_ext} <<EOF
  740. #include "confdefs.h"
  741. #include <${ac_hdr}>
  742. EOF
  743. # Some shells (Coherent) do redirections in the wrong order, so need
  744. # the parens.
  745. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  746. if test -z "$ac_err"; then
  747.   rm -rf conftest*
  748.   
  749. {
  750. test -n "$verbose" && \
  751. echo "    defining ${ac_tr_hdr}"
  752. echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  753. DEFS="$DEFS -D${ac_tr_hdr}=1"
  754. ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  755. \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  756. \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  757. "
  758. }
  759.  
  760.  
  761. fi
  762. rm -f conftest*
  763. done
  764.  
  765. test -n "$silent" || echo "checking for directory library header"
  766. ac_dir_header=
  767. if test -z "$ac_dir_header"; then
  768.   test -n "$silent" || echo "checking for dirent.h"
  769. cat > conftest.${ac_ext} <<EOF
  770. #include "confdefs.h"
  771. #include <sys/types.h>
  772. #include <dirent.h>
  773. int main() { return 0; }
  774. int t() { DIR *dirp = 0;; return 0; }
  775. EOF
  776. if eval $ac_compile; then
  777.   rm -rf conftest*
  778.   
  779. {
  780. test -n "$verbose" && \
  781. echo "    defining DIRENT"
  782. echo "#define" DIRENT "1" >> confdefs.h
  783. DEFS="$DEFS -DDIRENT=1"
  784. ac_sed_defs="${ac_sed_defs}\${ac_dA}DIRENT\${ac_dB}DIRENT\${ac_dC}1\${ac_dD}
  785. \${ac_uA}DIRENT\${ac_uB}DIRENT\${ac_uC}1\${ac_uD}
  786. \${ac_eA}DIRENT\${ac_eB}DIRENT\${ac_eC}1\${ac_eD}
  787. "
  788. }
  789.  ac_dir_header=dirent.h
  790.  
  791. fi
  792. rm -f conftest*
  793. fi
  794. if test -z "$ac_dir_header"; then
  795.   test -n "$silent" || echo "checking for sys/ndir.h"
  796. cat > conftest.${ac_ext} <<EOF
  797. #include "confdefs.h"
  798. #include <sys/types.h>
  799. #include <sys/ndir.h>
  800. int main() { return 0; }
  801. int t() { DIR *dirp = 0;; return 0; }
  802. EOF
  803. if eval $ac_compile; then
  804.   rm -rf conftest*
  805.   
  806. {
  807. test -n "$verbose" && \
  808. echo "    defining SYSNDIR"
  809. echo "#define" SYSNDIR "1" >> confdefs.h
  810. DEFS="$DEFS -DSYSNDIR=1"
  811. ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSNDIR\${ac_dB}SYSNDIR\${ac_dC}1\${ac_dD}
  812. \${ac_uA}SYSNDIR\${ac_uB}SYSNDIR\${ac_uC}1\${ac_uD}
  813. \${ac_eA}SYSNDIR\${ac_eB}SYSNDIR\${ac_eC}1\${ac_eD}
  814. "
  815. }
  816.  ac_dir_header=sys/ndir.h
  817.  
  818. fi
  819. rm -f conftest*
  820. fi
  821. if test -z "$ac_dir_header"; then
  822.   test -n "$silent" || echo "checking for sys/dir.h"
  823. cat > conftest.${ac_ext} <<EOF
  824. #include "confdefs.h"
  825. #include <sys/types.h>
  826. #include <sys/dir.h>
  827. int main() { return 0; }
  828. int t() { DIR *dirp = 0;; return 0; }
  829. EOF
  830. if eval $ac_compile; then
  831.   rm -rf conftest*
  832.   
  833. {
  834. test -n "$verbose" && \
  835. echo "    defining SYSDIR"
  836. echo "#define" SYSDIR "1" >> confdefs.h
  837. DEFS="$DEFS -DSYSDIR=1"
  838. ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSDIR\${ac_dB}SYSDIR\${ac_dC}1\${ac_dD}
  839. \${ac_uA}SYSDIR\${ac_uB}SYSDIR\${ac_uC}1\${ac_uD}
  840. \${ac_eA}SYSDIR\${ac_eB}SYSDIR\${ac_eC}1\${ac_eD}
  841. "
  842. }
  843.  ac_dir_header=sys/dir.h
  844.  
  845. fi
  846. rm -f conftest*
  847. fi
  848. if test -z "$ac_dir_header"; then
  849.   test -n "$silent" || echo "checking for ndir.h"
  850. cat > conftest.${ac_ext} <<EOF
  851. #include "confdefs.h"
  852. #include <sys/types.h>
  853. #include <ndir.h>
  854. int main() { return 0; }
  855. int t() { DIR *dirp = 0;; return 0; }
  856. EOF
  857. if eval $ac_compile; then
  858.   rm -rf conftest*
  859.   
  860. {
  861. test -n "$verbose" && \
  862. echo "    defining NDIR"
  863. echo "#define" NDIR "1" >> confdefs.h
  864. DEFS="$DEFS -DNDIR=1"
  865. ac_sed_defs="${ac_sed_defs}\${ac_dA}NDIR\${ac_dB}NDIR\${ac_dC}1\${ac_dD}
  866. \${ac_uA}NDIR\${ac_uB}NDIR\${ac_uC}1\${ac_uD}
  867. \${ac_eA}NDIR\${ac_eB}NDIR\${ac_eC}1\${ac_eD}
  868. "
  869. }
  870.  ac_dir_header=ndir.h
  871.  
  872. fi
  873. rm -f conftest*
  874. fi
  875.  
  876. test -n "$silent" || echo "checking for closedir return value"
  877. cat > conftest.${ac_ext} <<EOF
  878. #include "confdefs.h"
  879. #include <sys/types.h>
  880. #include <$ac_dir_header>
  881. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  882. EOF
  883. eval $ac_compile
  884. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  885.   :
  886. else
  887.   
  888. {
  889. test -n "$verbose" && \
  890. echo "    defining VOID_CLOSEDIR"
  891. echo "#define" VOID_CLOSEDIR "1" >> confdefs.h
  892. DEFS="$DEFS -DVOID_CLOSEDIR=1"
  893. ac_sed_defs="${ac_sed_defs}\${ac_dA}VOID_CLOSEDIR\${ac_dB}VOID_CLOSEDIR\${ac_dC}1\${ac_dD}
  894. \${ac_uA}VOID_CLOSEDIR\${ac_uB}VOID_CLOSEDIR\${ac_uC}1\${ac_uD}
  895. \${ac_eA}VOID_CLOSEDIR\${ac_eB}VOID_CLOSEDIR\${ac_eC}1\${ac_eD}
  896. "
  897. }
  898.  
  899. fi
  900. rm -fr conftest*
  901.  
  902.  
  903. # checks for typedefs
  904. test -n "$silent" || echo "checking for mode_t in sys/types.h"
  905. echo '#include "confdefs.h"
  906. #include <sys/types.h>' > conftest.${ac_ext}
  907. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  908. if egrep "mode_t" conftest.out >/dev/null 2>&1; then
  909.   :
  910. else
  911.   rm -rf conftest*
  912.   
  913. {
  914. test -n "$verbose" && \
  915. echo "    defining" mode_t to be "int"
  916. echo "#define" mode_t "int" >> confdefs.h
  917. DEFS="$DEFS -Dmode_t=int"
  918. ac_sed_defs="${ac_sed_defs}\${ac_dA}mode_t\${ac_dB}mode_t\${ac_dC}int\${ac_dD}
  919. \${ac_uA}mode_t\${ac_uB}mode_t\${ac_uC}int\${ac_uD}
  920. \${ac_eA}mode_t\${ac_eB}mode_t\${ac_eC}int\${ac_eD}
  921. "
  922. }
  923.  
  924. fi
  925. rm -f conftest*
  926.  
  927. test -n "$silent" || echo "checking for off_t in sys/types.h"
  928. echo '#include "confdefs.h"
  929. #include <sys/types.h>' > conftest.${ac_ext}
  930. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  931. if egrep "off_t" conftest.out >/dev/null 2>&1; then
  932.   :
  933. else
  934.   rm -rf conftest*
  935.   
  936. {
  937. test -n "$verbose" && \
  938. echo "    defining" off_t to be "long"
  939. echo "#define" off_t "long" >> confdefs.h
  940. DEFS="$DEFS -Doff_t=long"
  941. ac_sed_defs="${ac_sed_defs}\${ac_dA}off_t\${ac_dB}off_t\${ac_dC}long\${ac_dD}
  942. \${ac_uA}off_t\${ac_uB}off_t\${ac_uC}long\${ac_uD}
  943. \${ac_eA}off_t\${ac_eB}off_t\${ac_eC}long\${ac_eD}
  944. "
  945. }
  946.  
  947. fi
  948. rm -f conftest*
  949.  
  950. test -n "$silent" || echo "checking for pid_t in sys/types.h"
  951. echo '#include "confdefs.h"
  952. #include <sys/types.h>' > conftest.${ac_ext}
  953. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  954. if egrep "pid_t" conftest.out >/dev/null 2>&1; then
  955.   :
  956. else
  957.   rm -rf conftest*
  958.   
  959. {
  960. test -n "$verbose" && \
  961. echo "    defining" pid_t to be "int"
  962. echo "#define" pid_t "int" >> confdefs.h
  963. DEFS="$DEFS -Dpid_t=int"
  964. ac_sed_defs="${ac_sed_defs}\${ac_dA}pid_t\${ac_dB}pid_t\${ac_dC}int\${ac_dD}
  965. \${ac_uA}pid_t\${ac_uB}pid_t\${ac_uC}int\${ac_uD}
  966. \${ac_eA}pid_t\${ac_eB}pid_t\${ac_eC}int\${ac_eD}
  967. "
  968. }
  969.  
  970. fi
  971. rm -f conftest*
  972.  
  973. test -n "$silent" || echo "checking for return type of signal handlers"
  974. cat > conftest.${ac_ext} <<EOF
  975. #include "confdefs.h"
  976. #include <sys/types.h>
  977. #include <signal.h>
  978. #ifdef signal
  979. #undef signal
  980. #endif
  981. extern void (*signal ()) ();
  982. int main() { return 0; }
  983. int t() { int i;; return 0; }
  984. EOF
  985. if eval $ac_compile; then
  986.   rm -rf conftest*
  987.   
  988. {
  989. test -n "$verbose" && \
  990. echo "    defining" RETSIGTYPE to be "void"
  991. echo "#define" RETSIGTYPE "void" >> confdefs.h
  992. DEFS="$DEFS -DRETSIGTYPE=void"
  993. ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  994. \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  995. \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  996. "
  997. }
  998.  
  999.  
  1000. else
  1001.   rm -rf conftest*
  1002.   
  1003. {
  1004. test -n "$verbose" && \
  1005. echo "    defining" RETSIGTYPE to be "int"
  1006. echo "#define" RETSIGTYPE "int" >> confdefs.h
  1007. DEFS="$DEFS -DRETSIGTYPE=int"
  1008. ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  1009. \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  1010. \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  1011. "
  1012. }
  1013.  
  1014. fi
  1015. rm -f conftest*
  1016.  
  1017.  
  1018. test -n "$silent" || echo "checking for size_t in sys/types.h"
  1019. echo '#include "confdefs.h"
  1020. #include <sys/types.h>' > conftest.${ac_ext}
  1021. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1022. if egrep "size_t" conftest.out >/dev/null 2>&1; then
  1023.   :
  1024. else
  1025.   rm -rf conftest*
  1026.   
  1027. {
  1028. test -n "$verbose" && \
  1029. echo "    defining" size_t to be "unsigned"
  1030. echo "#define" size_t "unsigned" >> confdefs.h
  1031. DEFS="$DEFS -Dsize_t=unsigned"
  1032. ac_sed_defs="${ac_sed_defs}\${ac_dA}size_t\${ac_dB}size_t\${ac_dC}unsigned\${ac_dD}
  1033. \${ac_uA}size_t\${ac_uB}size_t\${ac_uC}unsigned\${ac_uD}
  1034. \${ac_eA}size_t\${ac_eB}size_t\${ac_eC}unsigned\${ac_eD}
  1035. "
  1036. }
  1037.  
  1038. fi
  1039. rm -f conftest*
  1040.  
  1041. test -n "$silent" || echo "checking for uid_t in sys/types.h"
  1042. echo '#include "confdefs.h"
  1043. #include <sys/types.h>' > conftest.${ac_ext}
  1044. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1045. if egrep "uid_t" conftest.out >/dev/null 2>&1; then
  1046.   :
  1047. else
  1048.   rm -rf conftest*
  1049.   
  1050. {
  1051. test -n "$verbose" && \
  1052. echo "    defining" uid_t to be "int"
  1053. echo "#define" uid_t "int" >> confdefs.h
  1054. DEFS="$DEFS -Duid_t=int"
  1055. ac_sed_defs="${ac_sed_defs}\${ac_dA}uid_t\${ac_dB}uid_t\${ac_dC}int\${ac_dD}
  1056. \${ac_uA}uid_t\${ac_uB}uid_t\${ac_uC}int\${ac_uD}
  1057. \${ac_eA}uid_t\${ac_eB}uid_t\${ac_eC}int\${ac_eD}
  1058. "
  1059. }
  1060.  
  1061. {
  1062. test -n "$verbose" && \
  1063. echo "    defining" gid_t to be "int"
  1064. echo "#define" gid_t "int" >> confdefs.h
  1065. DEFS="$DEFS -Dgid_t=int"
  1066. ac_sed_defs="${ac_sed_defs}\${ac_dA}gid_t\${ac_dB}gid_t\${ac_dC}int\${ac_dD}
  1067. \${ac_uA}gid_t\${ac_uB}gid_t\${ac_uC}int\${ac_uD}
  1068. \${ac_eA}gid_t\${ac_eB}gid_t\${ac_eC}int\${ac_eD}
  1069. "
  1070. }
  1071.  
  1072. fi
  1073. rm -f conftest*
  1074.  
  1075.  
  1076. # checks for libraries
  1077. ac_save_LIBS="${LIBS}"
  1078. LIBS="${LIBS} -ldl"
  1079. ac_have_lib=""
  1080. test -n "$silent" || echo "checking for -ldl"
  1081. cat > conftest.${ac_ext} <<EOF
  1082. #include "confdefs.h"
  1083.  
  1084. int main() { return 0; }
  1085. int t() { main();; return 0; }
  1086. EOF
  1087. if eval $ac_compile; then
  1088.   rm -rf conftest*
  1089.   ac_have_lib="1"
  1090.  
  1091. fi
  1092. rm -f conftest*
  1093. LIBS="${ac_save_LIBS}"
  1094. if test -n "${ac_have_lib}"; then
  1095.    
  1096. {
  1097. test -n "$verbose" && \
  1098. echo "    defining HAVE_LIBDL"
  1099. echo "#define" HAVE_LIBDL "1" >> confdefs.h
  1100. DEFS="$DEFS -DHAVE_LIBDL=1"
  1101. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDL\${ac_dB}HAVE_LIBDL\${ac_dC}1\${ac_dD}
  1102. \${ac_uA}HAVE_LIBDL\${ac_uB}HAVE_LIBDL\${ac_uC}1\${ac_uD}
  1103. \${ac_eA}HAVE_LIBDL\${ac_eB}HAVE_LIBDL\${ac_eC}1\${ac_eD}
  1104. "
  1105. }
  1106.  
  1107.    LIBS="${LIBS} -ldl"
  1108. fi
  1109.  
  1110.  
  1111. echo checking for --with-svr4
  1112. # check whether --with-svr4 or --without-svr4 was given.
  1113. withval="$with_svr4"
  1114. if test -n "$withval"; then
  1115.   
  1116. ac_save_LIBS="${LIBS}"
  1117. LIBS="${LIBS} -lsocket"
  1118. ac_have_lib=""
  1119. test -n "$silent" || echo "checking for -lsocket"
  1120. cat > conftest.${ac_ext} <<EOF
  1121. #include "confdefs.h"
  1122.  
  1123. int main() { return 0; }
  1124. int t() { main();; return 0; }
  1125. EOF
  1126. if eval $ac_compile; then
  1127.   rm -rf conftest*
  1128.   ac_have_lib="1"
  1129.  
  1130. fi
  1131. rm -f conftest*
  1132. LIBS="${ac_save_LIBS}"
  1133. if test -n "${ac_have_lib}"; then
  1134.    
  1135. {
  1136. test -n "$verbose" && \
  1137. echo "    defining HAVE_LIBSOCKET"
  1138. echo "#define" HAVE_LIBSOCKET "1" >> confdefs.h
  1139. DEFS="$DEFS -DHAVE_LIBSOCKET=1"
  1140. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBSOCKET\${ac_dB}HAVE_LIBSOCKET\${ac_dC}1\${ac_dD}
  1141. \${ac_uA}HAVE_LIBSOCKET\${ac_uB}HAVE_LIBSOCKET\${ac_uC}1\${ac_uD}
  1142. \${ac_eA}HAVE_LIBSOCKET\${ac_eB}HAVE_LIBSOCKET\${ac_eC}1\${ac_eD}
  1143. "
  1144. }
  1145.  
  1146.    LIBS="${LIBS} -lsocket"
  1147. fi
  1148.  
  1149. ac_save_LIBS="${LIBS}"
  1150. LIBS="${LIBS} -linet"
  1151. ac_have_lib=""
  1152. test -n "$silent" || echo "checking for -linet"
  1153. cat > conftest.${ac_ext} <<EOF
  1154. #include "confdefs.h"
  1155.  
  1156. int main() { return 0; }
  1157. int t() { main();; return 0; }
  1158. EOF
  1159. if eval $ac_compile; then
  1160.   rm -rf conftest*
  1161.   ac_have_lib="1"
  1162.  
  1163. fi
  1164. rm -f conftest*
  1165. LIBS="${ac_save_LIBS}"
  1166. if test -n "${ac_have_lib}"; then
  1167.    
  1168. {
  1169. test -n "$verbose" && \
  1170. echo "    defining HAVE_LIBINET"
  1171. echo "#define" HAVE_LIBINET "1" >> confdefs.h
  1172. DEFS="$DEFS -DHAVE_LIBINET=1"
  1173. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBINET\${ac_dB}HAVE_LIBINET\${ac_dC}1\${ac_dD}
  1174. \${ac_uA}HAVE_LIBINET\${ac_uB}HAVE_LIBINET\${ac_uC}1\${ac_uD}
  1175. \${ac_eA}HAVE_LIBINET\${ac_eB}HAVE_LIBINET\${ac_eC}1\${ac_eD}
  1176. "
  1177. }
  1178.  
  1179.    LIBS="${LIBS} -linet"
  1180. fi
  1181.  
  1182. ac_save_LIBS="${LIBS}"
  1183. LIBS="${LIBS} -lnsl"
  1184. ac_have_lib=""
  1185. test -n "$silent" || echo "checking for -lnsl"
  1186. cat > conftest.${ac_ext} <<EOF
  1187. #include "confdefs.h"
  1188.  
  1189. int main() { return 0; }
  1190. int t() { main();; return 0; }
  1191. EOF
  1192. if eval $ac_compile; then
  1193.   rm -rf conftest*
  1194.   ac_have_lib="1"
  1195.  
  1196. fi
  1197. rm -f conftest*
  1198. LIBS="${ac_save_LIBS}"
  1199. if test -n "${ac_have_lib}"; then
  1200.    
  1201. {
  1202. test -n "$verbose" && \
  1203. echo "    defining HAVE_LIBNSL"
  1204. echo "#define" HAVE_LIBNSL "1" >> confdefs.h
  1205. DEFS="$DEFS -DHAVE_LIBNSL=1"
  1206. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBNSL\${ac_dB}HAVE_LIBNSL\${ac_dC}1\${ac_dD}
  1207. \${ac_uA}HAVE_LIBNSL\${ac_uB}HAVE_LIBNSL\${ac_uC}1\${ac_uD}
  1208. \${ac_eA}HAVE_LIBNSL\${ac_eB}HAVE_LIBNSL\${ac_eC}1\${ac_eD}
  1209. "
  1210. }
  1211.  
  1212.    LIBS="${LIBS} -lnsl"
  1213. fi
  1214.  
  1215.  
  1216. fi
  1217.  
  1218.  
  1219. echo checking for --with-readline
  1220. # check whether --with-readline or --without-readline was given.
  1221. withval="$with_readline"
  1222. if test -n "$withval"; then
  1223.   
  1224. {
  1225. test -n "$verbose" && \
  1226. echo "    defining WITH_READLINE"
  1227. echo "#define" WITH_READLINE "1" >> confdefs.h
  1228. DEFS="$DEFS -DWITH_READLINE=1"
  1229. ac_sed_defs="${ac_sed_defs}\${ac_dA}WITH_READLINE\${ac_dB}WITH_READLINE\${ac_dC}1\${ac_dD}
  1230. \${ac_uA}WITH_READLINE\${ac_uB}WITH_READLINE\${ac_uC}1\${ac_uD}
  1231. \${ac_eA}WITH_READLINE\${ac_eB}WITH_READLINE\${ac_eC}1\${ac_eD}
  1232. "
  1233. }
  1234.  
  1235. if test -d "$withval"
  1236. then LIBS="$LIBS -L$withval"
  1237. else echo proper usage is --with-readline=DIRECTORY 1>&2; exit 1
  1238. fi
  1239. termcap=
  1240. ac_save_LIBS="${LIBS}"
  1241. LIBS="${LIBS} -ltermcap"
  1242. ac_have_lib=""
  1243. test -n "$silent" || echo "checking for -ltermcap"
  1244. cat > conftest.${ac_ext} <<EOF
  1245. #include "confdefs.h"
  1246.  
  1247. int main() { return 0; }
  1248. int t() { main();; return 0; }
  1249. EOF
  1250. if eval $ac_compile; then
  1251.   rm -rf conftest*
  1252.   ac_have_lib="1"
  1253.  
  1254. fi
  1255. rm -f conftest*
  1256. LIBS="${ac_save_LIBS}"
  1257. if test -n "${ac_have_lib}"; then
  1258.    :; termcap=termcap
  1259. else
  1260.    :; ac_save_LIBS="${LIBS}"
  1261. LIBS="${LIBS} -ltermlib"
  1262. ac_have_lib=""
  1263. test -n "$silent" || echo "checking for -ltermlib"
  1264. cat > conftest.${ac_ext} <<EOF
  1265. #include "confdefs.h"
  1266.  
  1267. int main() { return 0; }
  1268. int t() { main();; return 0; }
  1269. EOF
  1270. if eval $ac_compile; then
  1271.   rm -rf conftest*
  1272.   ac_have_lib="1"
  1273.  
  1274. fi
  1275. rm -f conftest*
  1276. LIBS="${ac_save_LIBS}"
  1277. if test -n "${ac_have_lib}"; then
  1278.    :; termcap=termlib
  1279. else
  1280.    :; 
  1281. fi
  1282.  
  1283. fi
  1284.  
  1285. if test ! -z "$termcap"
  1286. then LIBS="$LIBS -lreadline -l$termcap"
  1287. else echo no working termcap/termlib, do not use --with-readline 1>&2; exit 1
  1288. fi
  1289. fi
  1290.  
  1291.  
  1292. echo checking for --with-thread
  1293. # check whether --with-thread or --without-thread was given.
  1294. withval="$with_thread"
  1295. if test -n "$withval"; then
  1296.   
  1297. ac_save_LIBS="${LIBS}"
  1298. LIBS="${LIBS} -lmpc"
  1299. ac_have_lib=""
  1300. test -n "$silent" || echo "checking for -lmpc"
  1301. cat > conftest.${ac_ext} <<EOF
  1302. #include "confdefs.h"
  1303.  
  1304. int main() { return 0; }
  1305. int t() { main();; return 0; }
  1306. EOF
  1307. if eval $ac_compile; then
  1308.   rm -rf conftest*
  1309.   ac_have_lib="1"
  1310.  
  1311. fi
  1312. rm -f conftest*
  1313. LIBS="${ac_save_LIBS}"
  1314. if test -n "${ac_have_lib}"; then
  1315.    :; 
  1316. {
  1317. test -n "$verbose" && \
  1318. echo "    defining WITH_THREAD"
  1319. echo "#define" WITH_THREAD "1" >> confdefs.h
  1320. DEFS="$DEFS -DWITH_THREAD=1"
  1321. ac_sed_defs="${ac_sed_defs}\${ac_dA}WITH_THREAD\${ac_dB}WITH_THREAD\${ac_dC}1\${ac_dD}
  1322. \${ac_uA}WITH_THREAD\${ac_uB}WITH_THREAD\${ac_uC}1\${ac_uD}
  1323. \${ac_eA}WITH_THREAD\${ac_eB}WITH_THREAD\${ac_eC}1\${ac_eD}
  1324. "
  1325. }
  1326.  
  1327. LIBS="$LIBS -lmpc"
  1328. LIBOBJS="$LIBOBJS thread.o"
  1329. else
  1330.    :; 
  1331. fi
  1332.  
  1333. ac_save_LIBS="${LIBS}"
  1334. LIBS="${LIBS} -lthread"
  1335. ac_have_lib=""
  1336. test -n "$silent" || echo "checking for -lthread"
  1337. cat > conftest.${ac_ext} <<EOF
  1338. #include "confdefs.h"
  1339.  
  1340. int main() { return 0; }
  1341. int t() { main();; return 0; }
  1342. EOF
  1343. if eval $ac_compile; then
  1344.   rm -rf conftest*
  1345.   ac_have_lib="1"
  1346.  
  1347. fi
  1348. rm -f conftest*
  1349. LIBS="${ac_save_LIBS}"
  1350. if test -n "${ac_have_lib}"; then
  1351.    :; 
  1352. {
  1353. test -n "$verbose" && \
  1354. echo "    defining WITH_THREAD"
  1355. echo "#define" WITH_THREAD "1" >> confdefs.h
  1356. DEFS="$DEFS -DWITH_THREAD=1"
  1357. ac_sed_defs="${ac_sed_defs}\${ac_dA}WITH_THREAD\${ac_dB}WITH_THREAD\${ac_dC}1\${ac_dD}
  1358. \${ac_uA}WITH_THREAD\${ac_uB}WITH_THREAD\${ac_uC}1\${ac_uD}
  1359. \${ac_eA}WITH_THREAD\${ac_eB}WITH_THREAD\${ac_eC}1\${ac_eD}
  1360. "
  1361. }
  1362.  
  1363. LIBS="$LIBS -lthread"
  1364. LIBOBJS="$LIBOBJS thread.o"
  1365. else
  1366.    :; 
  1367. fi
  1368.  
  1369.  
  1370. fi
  1371.  
  1372.  
  1373. # -I${DLINCLDIR} is added to the compile rule for import.o
  1374.  
  1375. DLINCLDIR=/
  1376.  
  1377. echo checking for --with-sgi-dl
  1378. # check whether --with-sgi-dl or --without-sgi-dl was given.
  1379. withval="$with_sgi_dl"
  1380. if test -n "$withval"; then
  1381.   
  1382. {
  1383. test -n "$verbose" && \
  1384. echo "    defining WITH_SGI_DL"
  1385. echo "#define" WITH_SGI_DL "1" >> confdefs.h
  1386. DEFS="$DEFS -DWITH_SGI_DL=1"
  1387. ac_sed_defs="${ac_sed_defs}\${ac_dA}WITH_SGI_DL\${ac_dB}WITH_SGI_DL\${ac_dC}1\${ac_dD}
  1388. \${ac_uA}WITH_SGI_DL\${ac_uB}WITH_SGI_DL\${ac_uC}1\${ac_uD}
  1389. \${ac_eA}WITH_SGI_DL\${ac_eB}WITH_SGI_DL\${ac_eC}1\${ac_eD}
  1390. "
  1391. }
  1392.  
  1393. dldir=$withval
  1394. if test -d "$dldir"
  1395. then LIBS="$LIBS -L$dldir"
  1396. else echo proper usage is --with-sgi-dl=DIRECTORY 1>&2; exit 1
  1397. fi
  1398. DLINCLDIR=${dldir}
  1399. LIBS="$LIBS -ldl -lmld"
  1400. fi
  1401.  
  1402.  
  1403. echo checking for --with-dl-dld
  1404. # check whether --with-dl-dld or --without-dl-dld was given.
  1405. withval="$with_dl_dld"
  1406. if test -n "$withval"; then
  1407.   
  1408. {
  1409. test -n "$verbose" && \
  1410. echo "    defining WITH_DL_DLD"
  1411. echo "#define" WITH_DL_DLD "1" >> confdefs.h
  1412. DEFS="$DEFS -DWITH_DL_DLD=1"
  1413. ac_sed_defs="${ac_sed_defs}\${ac_dA}WITH_DL_DLD\${ac_dB}WITH_DL_DLD\${ac_dC}1\${ac_dD}
  1414. \${ac_uA}WITH_DL_DLD\${ac_uB}WITH_DL_DLD\${ac_uC}1\${ac_uD}
  1415. \${ac_eA}WITH_DL_DLD\${ac_eB}WITH_DL_DLD\${ac_eC}1\${ac_eD}
  1416. "
  1417. }
  1418.  
  1419. dldir=`echo "$withval" | sed 's/,.*//'`
  1420. dlddir=`echo "$withval" | sed 's/.*,//'`
  1421. if test -d "$dldir" -a -d "$dlddir"
  1422. then LIBS="$LIBS -L$dldir -L$dlddir"
  1423. else echo proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY 1>&2; exit 1
  1424. fi
  1425. DLINCLDIR=${dldir}
  1426. LIBS="$LIBS -ldl -ldld"
  1427. fi
  1428.  
  1429.  
  1430. # checks for library functions
  1431. for ac_func in clock dlopen ftime gettimeofday getpeername getpgrp getpid getwd lstat nice readlink select setsid setpgid setpgrp setvbuf siginterrupt symlink tcgetpgrp tcsetpgrp times uname waitpid
  1432. do
  1433. ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1434. test -n "$silent" || echo "checking for ${ac_func}"
  1435. cat > conftest.${ac_ext} <<EOF
  1436. #include "confdefs.h"
  1437. #include <ctype.h>
  1438. int main() { return 0; }
  1439. int t() { 
  1440. /* The GNU C library defines this for functions which it implements
  1441.     to always fail with ENOSYS.  Some functions are actually named
  1442.     something starting with __ and the normal name is an alias.  */
  1443. #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1444. choke me
  1445. #else
  1446. /* Override any gcc2 internal prototype to avoid an error.  */
  1447. extern char ${ac_func}(); ${ac_func}();
  1448. #endif
  1449. ; return 0; }
  1450. EOF
  1451. if eval $ac_compile; then
  1452.   rm -rf conftest*
  1453.   {
  1454. test -n "$verbose" && \
  1455. echo "    defining ${ac_tr_func}"
  1456. echo "#define" ${ac_tr_func} "1" >> confdefs.h
  1457. DEFS="$DEFS -D${ac_tr_func}=1"
  1458. ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  1459. \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  1460. \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  1461. "
  1462. }
  1463.  
  1464.  
  1465. fi
  1466. rm -f conftest*
  1467. done
  1468.  
  1469. for ac_func in dup2 getcwd strerror strtod memmove
  1470. do
  1471. test -n "$silent" || echo "checking for ${ac_func}"
  1472. cat > conftest.${ac_ext} <<EOF
  1473. #include "confdefs.h"
  1474. #include <ctype.h>
  1475. int main() { return 0; }
  1476. int t() { 
  1477. /* The GNU C library defines this for functions which it implements
  1478.     to always fail with ENOSYS.  Some functions are actually named
  1479.     something starting with __ and the normal name is an alias.  */
  1480. #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1481. choke me
  1482. #else
  1483. /* Override any gcc2 internal prototype to avoid an error.  */
  1484. extern char ${ac_func}(); ${ac_func}();
  1485. #endif
  1486. ; return 0; }
  1487. EOF
  1488. if eval $ac_compile; then
  1489.   :
  1490. else
  1491.   rm -rf conftest*
  1492.   LIBOBJS="$LIBOBJS ${ac_func}.o"
  1493. test -n "$verbose" && echo "    using ${ac_func}.o instead"
  1494. fi
  1495. rm -f conftest*
  1496.  
  1497. done
  1498.  
  1499. test -n "$silent" || echo "checking for getpgrp"
  1500. cat > conftest.${ac_ext} <<EOF
  1501. #include "confdefs.h"
  1502. #include <ctype.h>
  1503. int main() { return 0; }
  1504. int t() { 
  1505. /* The GNU C library defines this for functions which it implements
  1506.     to always fail with ENOSYS.  Some functions are actually named
  1507.     something starting with __ and the normal name is an alias.  */
  1508. #if defined (__stub_getpgrp) || defined (__stub___getpgrp)
  1509. choke me
  1510. #else
  1511. /* Override any gcc2 internal prototype to avoid an error.  */
  1512. extern char getpgrp(); getpgrp();
  1513. #endif
  1514. ; return 0; }
  1515. EOF
  1516. if eval $ac_compile; then
  1517.   rm -rf conftest*
  1518.   test -n "$silent" || echo "checking for argument to getpgrp"
  1519. cat > conftest.${ac_ext} <<EOF
  1520. #include "confdefs.h"
  1521. #include <unistd.h>
  1522. int main() { return 0; }
  1523. int t() { getpgrp(0);; return 0; }
  1524. EOF
  1525. if eval $ac_compile; then
  1526.   rm -rf conftest*
  1527.   
  1528. {
  1529. test -n "$verbose" && \
  1530. echo "    defining GETPGRP_HAVE_ARG"
  1531. echo "#define" GETPGRP_HAVE_ARG "1" >> confdefs.h
  1532. DEFS="$DEFS -DGETPGRP_HAVE_ARG=1"
  1533. ac_sed_defs="${ac_sed_defs}\${ac_dA}GETPGRP_HAVE_ARG\${ac_dB}GETPGRP_HAVE_ARG\${ac_dC}1\${ac_dD}
  1534. \${ac_uA}GETPGRP_HAVE_ARG\${ac_uB}GETPGRP_HAVE_ARG\${ac_uC}1\${ac_uD}
  1535. \${ac_eA}GETPGRP_HAVE_ARG\${ac_eB}GETPGRP_HAVE_ARG\${ac_eC}1\${ac_eD}
  1536. "
  1537. }
  1538.  
  1539.  
  1540. fi
  1541. rm -f conftest*
  1542.  
  1543.  
  1544. fi
  1545. rm -f conftest*
  1546.  
  1547.  
  1548. # checks for structures
  1549. test -n "$silent" || echo "checking for whether time.h and sys/time.h may both be included"
  1550. cat > conftest.${ac_ext} <<EOF
  1551. #include "confdefs.h"
  1552. #include <sys/types.h>
  1553. #include <sys/time.h>
  1554. #include <time.h>
  1555. int main() { return 0; }
  1556. int t() { struct tm *tp;; return 0; }
  1557. EOF
  1558. if eval $ac_compile; then
  1559.   rm -rf conftest*
  1560.   
  1561. {
  1562. test -n "$verbose" && \
  1563. echo "    defining TIME_WITH_SYS_TIME"
  1564. echo "#define" TIME_WITH_SYS_TIME "1" >> confdefs.h
  1565. DEFS="$DEFS -DTIME_WITH_SYS_TIME=1"
  1566. ac_sed_defs="${ac_sed_defs}\${ac_dA}TIME_WITH_SYS_TIME\${ac_dB}TIME_WITH_SYS_TIME\${ac_dC}1\${ac_dD}
  1567. \${ac_uA}TIME_WITH_SYS_TIME\${ac_uB}TIME_WITH_SYS_TIME\${ac_uC}1\${ac_uD}
  1568. \${ac_eA}TIME_WITH_SYS_TIME\${ac_eB}TIME_WITH_SYS_TIME\${ac_eC}1\${ac_eD}
  1569. "
  1570. }
  1571.  
  1572.  
  1573. fi
  1574. rm -f conftest*
  1575.  
  1576. test -n "$silent" || echo "checking for struct tm in time.h"
  1577. cat > conftest.${ac_ext} <<EOF
  1578. #include "confdefs.h"
  1579. #include <sys/types.h>
  1580. #include <time.h>
  1581. int main() { return 0; }
  1582. int t() { struct tm *tp; tp->tm_sec;; return 0; }
  1583. EOF
  1584. if eval $ac_compile; then
  1585.   :
  1586. else
  1587.   rm -rf conftest*
  1588.   
  1589. {
  1590. test -n "$verbose" && \
  1591. echo "    defining TM_IN_SYS_TIME"
  1592. echo "#define" TM_IN_SYS_TIME "1" >> confdefs.h
  1593. DEFS="$DEFS -DTM_IN_SYS_TIME=1"
  1594. ac_sed_defs="${ac_sed_defs}\${ac_dA}TM_IN_SYS_TIME\${ac_dB}TM_IN_SYS_TIME\${ac_dC}1\${ac_dD}
  1595. \${ac_uA}TM_IN_SYS_TIME\${ac_uB}TM_IN_SYS_TIME\${ac_uC}1\${ac_uD}
  1596. \${ac_eA}TM_IN_SYS_TIME\${ac_eB}TM_IN_SYS_TIME\${ac_eC}1\${ac_eD}
  1597. "
  1598. }
  1599.  
  1600. fi
  1601. rm -f conftest*
  1602.  
  1603. ac_decl='#include <sys/types.h>
  1604. '
  1605. case "$DEFS" in
  1606.   *TM_IN_SYS_TIME*) ac_decl="$ac_decl
  1607. #include <sys/time.h>
  1608. " ;;
  1609.   *) ac_decl="$ac_decl
  1610. #include <time.h>
  1611. " ;;
  1612. esac
  1613. test -n "$silent" || echo "checking for tm_zone in struct tm"
  1614. cat > conftest.${ac_ext} <<EOF
  1615. #include "confdefs.h"
  1616. $ac_decl
  1617. int main() { return 0; }
  1618. int t() { struct tm tm; tm.tm_zone;; return 0; }
  1619. EOF
  1620. if eval $ac_compile; then
  1621.   rm -rf conftest*
  1622.   
  1623. {
  1624. test -n "$verbose" && \
  1625. echo "    defining HAVE_TM_ZONE"
  1626. echo "#define" HAVE_TM_ZONE "1" >> confdefs.h
  1627. DEFS="$DEFS -DHAVE_TM_ZONE=1"
  1628. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TM_ZONE\${ac_dB}HAVE_TM_ZONE\${ac_dC}1\${ac_dD}
  1629. \${ac_uA}HAVE_TM_ZONE\${ac_uB}HAVE_TM_ZONE\${ac_uC}1\${ac_uD}
  1630. \${ac_eA}HAVE_TM_ZONE\${ac_eB}HAVE_TM_ZONE\${ac_eC}1\${ac_eD}
  1631. "
  1632. }
  1633.  
  1634.  
  1635. else
  1636.   rm -rf conftest*
  1637.   ac_no_tm_zone=1
  1638. fi
  1639. rm -f conftest*
  1640.  
  1641. if test -n "$ac_no_tm_zone"; then
  1642. test -n "$silent" || echo "checking for tzname"
  1643. cat > conftest.${ac_ext} <<EOF
  1644. #include "confdefs.h"
  1645. #include <time.h>
  1646. #ifndef tzname /* For SGI.  */
  1647. extern char *tzname[]; /* RS6000 and others want it this way.  */
  1648. #endif
  1649. int main() { return 0; }
  1650. int t() { atoi(*tzname);; return 0; }
  1651. EOF
  1652. if eval $ac_compile; then
  1653.   rm -rf conftest*
  1654.   
  1655. {
  1656. test -n "$verbose" && \
  1657. echo "    defining HAVE_TZNAME"
  1658. echo "#define" HAVE_TZNAME "1" >> confdefs.h
  1659. DEFS="$DEFS -DHAVE_TZNAME=1"
  1660. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TZNAME\${ac_dB}HAVE_TZNAME\${ac_dC}1\${ac_dD}
  1661. \${ac_uA}HAVE_TZNAME\${ac_uB}HAVE_TZNAME\${ac_uC}1\${ac_uD}
  1662. \${ac_eA}HAVE_TZNAME\${ac_eB}HAVE_TZNAME\${ac_eC}1\${ac_eD}
  1663. "
  1664. }
  1665.  
  1666.  
  1667. fi
  1668. rm -f conftest*
  1669.  
  1670. fi
  1671.  
  1672. test -n "$silent" || echo "checking for whether we have altzone"
  1673. cat > conftest.${ac_ext} <<EOF
  1674. #include "confdefs.h"
  1675. #include <time.h>
  1676. int main() { return 0; }
  1677. int t() { return altzone;; return 0; }
  1678. EOF
  1679. if eval $ac_compile; then
  1680.   rm -rf conftest*
  1681.   
  1682. {
  1683. test -n "$verbose" && \
  1684. echo "    defining HAVE_ALTZONE"
  1685. echo "#define" HAVE_ALTZONE "1" >> confdefs.h
  1686. DEFS="$DEFS -DHAVE_ALTZONE=1"
  1687. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALTZONE\${ac_dB}HAVE_ALTZONE\${ac_dC}1\${ac_dD}
  1688. \${ac_uA}HAVE_ALTZONE\${ac_uB}HAVE_ALTZONE\${ac_uC}1\${ac_uD}
  1689. \${ac_eA}HAVE_ALTZONE\${ac_eB}HAVE_ALTZONE\${ac_eC}1\${ac_eD}
  1690. "
  1691. }
  1692.  
  1693.  
  1694. fi
  1695. rm -f conftest*
  1696.  
  1697. test -n "$silent" || echo "checking for whether sys/select.h and sys/time.h may both be included"
  1698. cat > conftest.${ac_ext} <<EOF
  1699. #include "confdefs.h"
  1700.  
  1701. #include <sys/types.h>
  1702. #include <sys/select.h>
  1703. #include <sys/time.h>
  1704.  
  1705. int main() { return 0; }
  1706. int t() { ;; return 0; }
  1707. EOF
  1708. if eval $ac_compile; then
  1709.   rm -rf conftest*
  1710.   
  1711. {
  1712. test -n "$verbose" && \
  1713. echo "    defining SYS_SELECT_WITH_SYS_TIME"
  1714. echo "#define" SYS_SELECT_WITH_SYS_TIME "1" >> confdefs.h
  1715. DEFS="$DEFS -DSYS_SELECT_WITH_SYS_TIME=1"
  1716. ac_sed_defs="${ac_sed_defs}\${ac_dA}SYS_SELECT_WITH_SYS_TIME\${ac_dB}SYS_SELECT_WITH_SYS_TIME\${ac_dC}1\${ac_dD}
  1717. \${ac_uA}SYS_SELECT_WITH_SYS_TIME\${ac_uB}SYS_SELECT_WITH_SYS_TIME\${ac_uC}1\${ac_uD}
  1718. \${ac_eA}SYS_SELECT_WITH_SYS_TIME\${ac_eB}SYS_SELECT_WITH_SYS_TIME\${ac_eC}1\${ac_eD}
  1719. "
  1720. }
  1721.  
  1722.  
  1723. fi
  1724. rm -f conftest*
  1725.  
  1726.  
  1727. # checks for compiler characteristics
  1728.  
  1729. test -n "$silent" || echo "checking for unsigned characters"
  1730. cat > conftest.${ac_ext} <<EOF
  1731. #include "confdefs.h"
  1732. /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1733. #if !__STDC__
  1734. #define volatile
  1735. #endif
  1736. main() {
  1737. #ifdef __CHAR_UNSIGNED__
  1738.   exit(1); /* No need to redefine it.  */
  1739. #else
  1740.   volatile char c = 255; exit(c < 0);
  1741. #endif
  1742. }
  1743. EOF
  1744. eval $ac_compile
  1745. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1746.   
  1747. {
  1748. test -n "$verbose" && \
  1749. echo "    defining __CHAR_UNSIGNED__"
  1750. echo "#define" __CHAR_UNSIGNED__ "1" >> confdefs.h
  1751. DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  1752. ac_sed_defs="${ac_sed_defs}\${ac_dA}__CHAR_UNSIGNED__\${ac_dB}__CHAR_UNSIGNED__\${ac_dC}1\${ac_dD}
  1753. \${ac_uA}__CHAR_UNSIGNED__\${ac_uB}__CHAR_UNSIGNED__\${ac_uC}1\${ac_uD}
  1754. \${ac_eA}__CHAR_UNSIGNED__\${ac_eB}__CHAR_UNSIGNED__\${ac_eC}1\${ac_eD}
  1755. "
  1756. }
  1757.  
  1758.  
  1759. fi
  1760. rm -fr conftest*
  1761.  
  1762.  
  1763. ac_prog='/* Ultrix mips cc rejects this.  */
  1764. typedef int charset[2]; const charset x;
  1765. /* SunOS 4.1.1 cc rejects this.  */
  1766. char const *const *ccp;
  1767. char **p;
  1768. /* AIX XL C 1.02.0.0 rejects this.
  1769.    It does not let you subtract one const X* pointer from another in an arm
  1770.    of an if-expression whose if-part is not a constant expression */
  1771. const char *g = "string";
  1772. ccp = &g + (g ? g-g : 0);
  1773. /* HPUX 7.0 cc rejects these. */
  1774. ++ccp;
  1775. p = (char**) ccp;
  1776. ccp = (char const *const *) p;
  1777. { /* SCO 3.2v4 cc rejects this.  */
  1778.   char *t;
  1779.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1780.  
  1781.   *t++ = 0;
  1782. }
  1783. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1784.   int x[] = {25,17};
  1785.   const int *foo = &x[0];
  1786.   ++foo;
  1787. }
  1788. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1789.   typedef const int *iptr;
  1790.   iptr p = 0;
  1791.   ++p;
  1792. }
  1793. { /* AIX XL C 1.02.0.0 rejects this saying
  1794.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1795.   struct s { int j; const int *ap[3]; };
  1796.   struct s *b; b->j = 5;
  1797. }
  1798. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1799.   const int foo = 10;
  1800. }'
  1801. test -n "$silent" || echo "checking for lack of working const"
  1802. cat > conftest.${ac_ext} <<EOF
  1803. #include "confdefs.h"
  1804.  
  1805. int main() { return 0; }
  1806. int t() { $ac_prog; return 0; }
  1807. EOF
  1808. if eval $ac_compile; then
  1809.   :
  1810. else
  1811.   rm -rf conftest*
  1812.   
  1813. {
  1814. test -n "$verbose" && \
  1815. echo "    defining" const to be empty
  1816. echo "#define" const "" >> confdefs.h
  1817. DEFS="$DEFS -Dconst="
  1818. ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
  1819. \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
  1820. \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
  1821. "
  1822. }
  1823.  
  1824. fi
  1825. rm -f conftest*
  1826.  
  1827.  
  1828. test -n "$silent" || echo "checking for wheter we have signed char"
  1829. cat > conftest.${ac_ext} <<EOF
  1830. #include "confdefs.h"
  1831.  
  1832. int main() { return 0; }
  1833. int t() { signed char c;; return 0; }
  1834. EOF
  1835. if eval $ac_compile; then
  1836.   :
  1837. else
  1838.   rm -rf conftest*
  1839.   
  1840. {
  1841. test -n "$verbose" && \
  1842. echo "    defining" signed to be empty
  1843. echo "#define" signed "" >> confdefs.h
  1844. DEFS="$DEFS -Dsigned="
  1845. ac_sed_defs="${ac_sed_defs}\${ac_dA}signed\${ac_dB}signed\${ac_dC}\${ac_dD}
  1846. \${ac_uA}signed\${ac_uB}signed\${ac_uC}\${ac_uD}
  1847. \${ac_eA}signed\${ac_eB}signed\${ac_eC}\${ac_eD}
  1848. "
  1849. }
  1850.  
  1851. fi
  1852. rm -f conftest*
  1853.  
  1854.  
  1855. echo checking for prototypes
  1856. cat > conftest.${ac_ext} <<EOF
  1857. #include "confdefs.h"
  1858.  
  1859. int foo(int x) { return 0; }
  1860. int main() { return foo(10); }
  1861.  
  1862. EOF
  1863. eval $ac_compile
  1864. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1865.   
  1866. {
  1867. test -n "$verbose" && \
  1868. echo "    defining HAVE_PROTOTYPES"
  1869. echo "#define" HAVE_PROTOTYPES "1" >> confdefs.h
  1870. DEFS="$DEFS -DHAVE_PROTOTYPES=1"
  1871. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PROTOTYPES\${ac_dB}HAVE_PROTOTYPES\${ac_dC}1\${ac_dD}
  1872. \${ac_uA}HAVE_PROTOTYPES\${ac_uB}HAVE_PROTOTYPES\${ac_uC}1\${ac_uD}
  1873. \${ac_eA}HAVE_PROTOTYPES\${ac_eB}HAVE_PROTOTYPES\${ac_eC}1\${ac_eD}
  1874. "
  1875. }
  1876.  have_prototypes=1
  1877.  
  1878. fi
  1879. rm -fr conftest*
  1880.  
  1881. echo checking for variable length prototypes and stdarg.h
  1882. cat > conftest.${ac_ext} <<EOF
  1883. #include "confdefs.h"
  1884.  
  1885. #include <stdarg.h>
  1886. int foo(int x, ...) { return 0; }
  1887. int main() { return foo(10, 11, 12); }
  1888.  
  1889. EOF
  1890. eval $ac_compile
  1891. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1892.   
  1893. {
  1894. test -n "$verbose" && \
  1895. echo "    defining HAVE_STDARG_PROTOTYPES"
  1896. echo "#define" HAVE_STDARG_PROTOTYPES "1" >> confdefs.h
  1897. DEFS="$DEFS -DHAVE_STDARG_PROTOTYPES=1"
  1898. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STDARG_PROTOTYPES\${ac_dB}HAVE_STDARG_PROTOTYPES\${ac_dC}1\${ac_dD}
  1899. \${ac_uA}HAVE_STDARG_PROTOTYPES\${ac_uB}HAVE_STDARG_PROTOTYPES\${ac_uC}1\${ac_uD}
  1900. \${ac_eA}HAVE_STDARG_PROTOTYPES\${ac_eB}HAVE_STDARG_PROTOTYPES\${ac_eC}1\${ac_eD}
  1901. "
  1902. }
  1903.  have_prototypes=1
  1904.  
  1905. fi
  1906. rm -fr conftest*
  1907. if test "$have_prototypes"; then
  1908. test -n "$silent" || echo "checking for "bad exec* prototypes""
  1909. cat > conftest.${ac_ext} <<EOF
  1910. #include "confdefs.h"
  1911. #include <unistd.h>
  1912. int main() { return 0; }
  1913. int t() { char **t;execve("@",t,t);; return 0; }
  1914. EOF
  1915. if eval $ac_compile; then
  1916.   :
  1917. else
  1918.   rm -rf conftest*
  1919.   
  1920. {
  1921. test -n "$verbose" && \
  1922. echo "    defining BAD_EXEC_PROTOTYPES"
  1923. echo "#define" BAD_EXEC_PROTOTYPES "1" >> confdefs.h
  1924. DEFS="$DEFS -DBAD_EXEC_PROTOTYPES=1"
  1925. ac_sed_defs="${ac_sed_defs}\${ac_dA}BAD_EXEC_PROTOTYPES\${ac_dB}BAD_EXEC_PROTOTYPES\${ac_dC}1\${ac_dD}
  1926. \${ac_uA}BAD_EXEC_PROTOTYPES\${ac_uB}BAD_EXEC_PROTOTYPES\${ac_uC}1\${ac_uD}
  1927. \${ac_eA}BAD_EXEC_PROTOTYPES\${ac_eB}BAD_EXEC_PROTOTYPES\${ac_eC}1\${ac_eD}
  1928. "
  1929. }
  1930.  
  1931. fi
  1932. rm -f conftest*
  1933.  
  1934. fi
  1935.  
  1936. echo checking for bad static forward
  1937. cat > conftest.${ac_ext} <<EOF
  1938. #include "confdefs.h"
  1939.  
  1940. struct s { int a; int b; };
  1941. static struct s foo;
  1942. int foobar() { return !foo.a; }
  1943. static struct s foo = { 1, 2 };
  1944. main() { exit(foobar()); }
  1945.  
  1946. EOF
  1947. eval $ac_compile
  1948. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1949.   :
  1950. else
  1951.   
  1952. {
  1953. test -n "$verbose" && \
  1954. echo "    defining BAD_STATIC_FORWARD"
  1955. echo "#define" BAD_STATIC_FORWARD "1" >> confdefs.h
  1956. DEFS="$DEFS -DBAD_STATIC_FORWARD=1"
  1957. ac_sed_defs="${ac_sed_defs}\${ac_dA}BAD_STATIC_FORWARD\${ac_dB}BAD_STATIC_FORWARD\${ac_dC}1\${ac_dD}
  1958. \${ac_uA}BAD_STATIC_FORWARD\${ac_uB}BAD_STATIC_FORWARD\${ac_uC}1\${ac_uD}
  1959. \${ac_eA}BAD_STATIC_FORWARD\${ac_eB}BAD_STATIC_FORWARD\${ac_eC}1\${ac_eD}
  1960. "
  1961. }
  1962.  
  1963. fi
  1964. rm -fr conftest*
  1965.  
  1966. # checks for system services
  1967. # (none yet)
  1968.  
  1969. # other checks for UNIX variants
  1970. ac_save_LIBS="${LIBS}"
  1971. LIBS="${LIBS} -lsun"
  1972. ac_have_lib=""
  1973. test -n "$silent" || echo "checking for -lsun"
  1974. cat > conftest.${ac_ext} <<EOF
  1975. #include "confdefs.h"
  1976.  
  1977. int main() { return 0; }
  1978. int t() { main();; return 0; }
  1979. EOF
  1980. if eval $ac_compile; then
  1981.   rm -rf conftest*
  1982.   ac_have_lib="1"
  1983.  
  1984. fi
  1985. rm -f conftest*
  1986. LIBS="${ac_save_LIBS}"
  1987. if test -n "${ac_have_lib}"; then
  1988.    :; LIBS="$LIBS -lsun"
  1989. else
  1990.    :; 
  1991. fi
  1992.  
  1993.  
  1994. test -n "$silent" || echo "checking for Xenix"
  1995. cat > conftest.${ac_ext} <<EOF
  1996. #include "confdefs.h"
  1997. #if defined(M_XENIX) && !defined(M_UNIX)
  1998.   yes
  1999. #endif
  2000.  
  2001. EOF
  2002. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2003. if egrep "yes" conftest.out >/dev/null 2>&1; then
  2004.   rm -rf conftest*
  2005.   XENIX=1
  2006.  
  2007. fi
  2008. rm -f conftest*
  2009.  
  2010. if test -n "$XENIX"; then
  2011.   LIBS="$LIBS -lx"
  2012.   case "$DEFS" in
  2013.   *SYSNDIR*) ;;
  2014.   *) LIBS="-ldir $LIBS" ;; # Make sure -ldir precedes any -lx.
  2015.   esac
  2016. fi
  2017.  
  2018.  
  2019. # check for --with-libm=...
  2020.  
  2021. LIBM=-lm
  2022. # check whether --with-libm or --without-libm was given.
  2023. withval="$with_libm"
  2024. if test -n "$withval"; then
  2025.   if test "$withval" != yes
  2026. then LIBM=$withval
  2027. else echo proper usage is --with-libm=STRING 1>&2; exit 1
  2028. fi
  2029. fi
  2030.  
  2031.  
  2032. # check for --with-libc=...
  2033.  
  2034. # check whether --with-libc or --without-libc was given.
  2035. withval="$with_libc"
  2036. if test -n "$withval"; then
  2037.   if test "$withval" != yes
  2038. then LIBC=$withval
  2039. else echo proper usage is --with-libc=STRING 1>&2; exit 1
  2040. fi
  2041. fi
  2042.  
  2043.  
  2044. # generate output files
  2045. # Set default prefixes.
  2046. if test -n "$prefix"; then
  2047.   test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  2048.   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2049. fi
  2050. if test -n "$exec_prefix"; then
  2051.   ac_prsub="$ac_prsub
  2052. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2053. fi
  2054. # Any assignment to VPATH causes Sun make to only execute
  2055. # the first set of double-colon rules, so remove it if not needed.
  2056. # If there is a colon in the path, we need to keep it.
  2057. if test "x$srcdir" = x.; then
  2058.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2059. fi
  2060.  
  2061. # Quote sed substitution magic chars in DEFS.
  2062. cat >conftest.def <<EOF
  2063. $DEFS
  2064. EOF
  2065. ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2066. DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  2067. rm -f conftest.def
  2068. # Substitute for predefined variables.
  2069.  
  2070. trap 'rm -f config.status; exit 1' 1 2 15
  2071. echo creating config.status
  2072. rm -f config.status
  2073. cat > config.status <<EOF
  2074. #!/bin/sh
  2075. # Generated automatically by configure.
  2076. # Run this file to recreate the current configuration.
  2077. # This directory was configured as follows,
  2078. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2079. #
  2080. # $0 $configure_args
  2081.  
  2082. ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  2083. for ac_option
  2084. do
  2085.   case "\$ac_option" in
  2086.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2087.     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  2088.     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  2089.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2090.     echo "config.status generated by autoconf version 1.8"
  2091.     exit 0 ;;
  2092.   -help | --help | --hel | --he | --h)
  2093.     echo "\$ac_cs_usage"; exit 0 ;;
  2094.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2095.   esac
  2096. done
  2097.  
  2098. trap 'rm -fr Makefile Objects/Makefile Parser/Makefile Python/Makefile Modules/Makefile.pre config.h conftest*; exit 1' 1 2 15
  2099. CC='$CC'
  2100. INSTALL='$INSTALL'
  2101. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  2102. INSTALL_DATA='$INSTALL_DATA'
  2103. RANLIB='$RANLIB'
  2104. AR='$AR'
  2105. CPP='$CPP'
  2106. DLINCLDIR='$DLINCLDIR'
  2107. LIBOBJS='$LIBOBJS'
  2108. LIBM='$LIBM'
  2109. LIBC='$LIBC'
  2110. LIBS='$LIBS'
  2111. srcdir='$srcdir'
  2112. top_srcdir='$top_srcdir'
  2113. prefix='$prefix'
  2114. exec_prefix='$exec_prefix'
  2115. ac_prsub='$ac_prsub'
  2116. ac_vpsub='$ac_vpsub'
  2117. extrasub='$extrasub'
  2118. EOF
  2119. cat >> config.status <<\EOF
  2120.  
  2121. ac_given_srcdir=$srcdir
  2122.  
  2123. CONFIG_FILES=${CONFIG_FILES-"Makefile Objects/Makefile Parser/Makefile Python/Makefile Modules/Makefile.pre"}
  2124. for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  2125.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2126.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2127.   if test "$ac_dir" != "$ac_file"; then
  2128.     # The file is in a subdirectory.
  2129.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2130.     ac_dir_suffix="/$ac_dir"
  2131.   else
  2132.     ac_dir_suffix=
  2133.   fi
  2134.  
  2135.   # A "../" for each directory in $ac_dir_suffix.
  2136.   ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2137.   case "$ac_given_srcdir" in
  2138.   .)  srcdir=.; top_srcdir="$ac_dots." ;;
  2139.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2140.   *) # Relative path.
  2141.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2142.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2143.   esac
  2144.  
  2145.   echo creating "$ac_file"
  2146.   rm -f "$ac_file"
  2147.   comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  2148.   case "$ac_file" in
  2149.     *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
  2150.     * )          echo "# $comment_str"     > "$ac_file" ;;
  2151.   esac
  2152.   sed -e "
  2153. $ac_prsub
  2154. $ac_vpsub
  2155. $extrasub
  2156. s%@CC@%$CC%g
  2157. s%@INSTALL@%$INSTALL%g
  2158. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2159. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2160. s%@RANLIB@%$RANLIB%g
  2161. s%@AR@%$AR%g
  2162. s%@CPP@%$CPP%g
  2163. s%@DLINCLDIR@%$DLINCLDIR%g
  2164. s%@LIBOBJS@%$LIBOBJS%g
  2165. s%@LIBM@%$LIBM%g
  2166. s%@LIBC@%$LIBC%g
  2167. s%@LIBS@%$LIBS%g
  2168. s%@srcdir@%$srcdir%g
  2169. s%@top_srcdir@%$top_srcdir%g
  2170. s%@prefix@%$prefix%g
  2171. s%@exec_prefix@%$exec_prefix%g
  2172. s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
  2173. fi; done
  2174.  
  2175. # These sed commands are put into ac_sed_defs when defining a macro.
  2176. # They are broken into pieces to make the sed script easier to manage.
  2177. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  2178. # is the cpp macro being defined and VALUE is the value it is being given.
  2179. # Each defining turns into a single global substitution command.
  2180. # Hopefully no one uses "!" as a variable value.
  2181. # Other candidates for the sed separators, like , and @, do get used.
  2182. #
  2183. # ac_d sets the value in "#define NAME VALUE" lines.
  2184. ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2185. ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  2186. ac_dC='\3'
  2187. ac_dD='!g'
  2188. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2189. ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2190. ac_uB='\([     ]\)!\1#\2define\3'
  2191. ac_uC=' '
  2192. ac_uD='\4!g'
  2193. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2194. ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2195. ac_eB='$!\1#\2define\3'
  2196. ac_eC=' '
  2197. ac_eD='!g'
  2198. rm -f conftest.sed
  2199. EOF
  2200. # Turn off quoting long enough to insert the sed commands.
  2201. rm -f conftest.sh
  2202. cat > conftest.sh <<EOF
  2203. $ac_sed_defs
  2204. EOF
  2205.  
  2206. # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  2207. # on the size of here documents.
  2208.  
  2209. # Maximum number of lines to put in a single here document.
  2210. ac_max_sh_lines=9
  2211.  
  2212. while :
  2213. do
  2214.   # wc gives bogus results for an empty file on some AIX systems.
  2215.   ac_lines=`grep -c . conftest.sh`
  2216.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2217.   rm -f conftest.s1 conftest.s2
  2218.   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -20.
  2219.   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +21.
  2220.   # Write a limited-size here document to append to conftest.sed.
  2221.   echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  2222.   cat conftest.s1 >> config.status
  2223.   echo 'CONFEOF' >> config.status
  2224.   rm -f conftest.s1 conftest.sh
  2225.   mv conftest.s2 conftest.sh
  2226. done
  2227. rm -f conftest.sh
  2228.  
  2229. # Now back to your regularly scheduled config.status.
  2230. cat >> config.status <<\EOF
  2231. # This sed command replaces #undef's with comments.  This is necessary, for
  2232. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2233. # on some systems where configure will not decide to define it in
  2234. # config.h.
  2235. cat >> conftest.sed <<\CONFEOF
  2236. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  2237. CONFEOF
  2238. rm -f conftest.h
  2239. # Break up the sed commands because old seds have small limits.
  2240. ac_max_sed_lines=20
  2241.  
  2242. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  2243. for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  2244.   echo creating $ac_file
  2245.  
  2246.   cp $ac_given_srcdir/$ac_file.in conftest.h1
  2247.   while :
  2248.   do
  2249.     ac_lines=`grep -c . conftest.sed`
  2250.     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2251.     rm -f conftest.s1 conftest.s2 conftest.h2
  2252.     sed ${ac_max_sed_lines}q conftest.sed > conftest.s1 # Like head -20.
  2253.     sed 1,${ac_max_sed_lines}d conftest.sed > conftest.s2 # Like tail +21.
  2254.     sed -f conftest.s1 < conftest.h1 > conftest.h2
  2255.     rm -f conftest.s1 conftest.h1 conftest.sed
  2256.     mv conftest.h2 conftest.h1
  2257.     mv conftest.s2 conftest.sed
  2258.   done
  2259.   rm -f conftest.sed conftest.h
  2260.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2261.   cat conftest.h1 >> conftest.h
  2262.   rm -f conftest.h1
  2263.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2264.     # The file exists and we would not be changing it.
  2265.     echo "$ac_file is unchanged"
  2266.     rm -f conftest.h
  2267.   else
  2268.     rm -f $ac_file
  2269.     mv conftest.h $ac_file
  2270.   fi
  2271. fi; done
  2272.  
  2273.  
  2274.  
  2275. exit 0
  2276. EOF
  2277. chmod +x config.status
  2278. test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status
  2279.  
  2280.