home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / grep-2.0-src.lha / grep-2.0 / configure < prev    next >
Encoding:
Text File  |  1994-04-25  |  33.6 KB  |  1,227 lines

  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 1.9 
  4. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  5.  
  6. # This configure script is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU General Public License as published
  8. # by the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This script is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  14. # Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # Save the original args to write them into config.status later.
  21. configure_args="$*"
  22.  
  23. # Only options that might do something get documented.
  24. ac_usage="Usage: configure [options] [host]
  25. Options: [defaults in brackets after descriptions]
  26. --build=BUILD        configure for building on BUILD [BUILD=HOST]
  27. --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  28. --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  29. --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  30. --help            print this message
  31. --host=HOST        configure for HOST [guessed]
  32. --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  33. --quiet, --silent    do not print \`checking for...' messages
  34. --srcdir=DIR        find the sources in DIR [configure dir or ..]
  35. --target=TARGET        configure for TARGET [TARGET=HOST]
  36. --verbose        print results of checks
  37. --version        print the version of autoconf that created configure
  38. --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  39. --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  40. --x-includes=DIR    X include files are in DIR
  41. --x-libraries=DIR    X library files are in DIR"
  42.  
  43. # Initialize some variables set by options.
  44. # The variables have the same names as the options, with
  45. # dashes changed to underlines.
  46. build=NONE
  47. exec_prefix=
  48. host=NONE
  49. no_create=
  50. nonopt=NONE
  51. norecursion=
  52. prefix=
  53. program_prefix=
  54. program_suffix=
  55. program_transform_name=
  56. silent=
  57. srcdir=
  58. target=NONE
  59. verbose=
  60. x_includes=
  61. x_libraries=
  62.  
  63. ac_prev=
  64. for ac_option
  65. do
  66.  
  67.   # If the previous option needs an argument, assign it.
  68.   if test -n "$ac_prev"; then
  69.     eval "$ac_prev=\$ac_option"
  70.     ac_prev=
  71.     continue
  72.   fi
  73.  
  74.   # Accept (but ignore some of) the important Cygnus configure
  75.   # options, so we can diagnose typos.
  76.  
  77.   case "$ac_option" in
  78.   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  79.   *) ac_optarg= ;;
  80.   esac
  81.  
  82.   case "$ac_option" in
  83.  
  84.   -build | --build | --buil | --bui | --bu | --b)
  85.     ac_prev=build ;;
  86.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  87.     build="$ac_optarg" ;;
  88.  
  89.   -disable-* | --disable-*)
  90.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  91.     # Reject names that aren't valid shell variable names.
  92.     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  93.       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  94.     fi
  95.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  96.     eval "enable_${ac_feature}=no" ;;
  97.  
  98.   -enable-* | --enable-*)
  99.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  100.     # Reject names that aren't valid shell variable names.
  101.     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  102.       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  103.     fi
  104.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  105.     case "$ac_option" in
  106.       *=*) ;;
  107.       *) ac_optarg=yes ;;
  108.     esac
  109.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  110.  
  111.   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  112.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  113.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  114.   | --exec | --exe | --ex)
  115.     ac_prev=exec_prefix ;;
  116.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  117.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  118.   | --exec=* | --exe=* | --ex=*)
  119.     exec_prefix="$ac_optarg" ;;
  120.  
  121.   -gas | --gas | --ga | --g)
  122.     with_gas=yes ;; # Obsolete; use --with-gas.
  123.  
  124.   -help | --help | --hel | --he)
  125.     cat << EOF
  126. $ac_usage
  127. EOF
  128.     exit 0 ;;
  129.  
  130.   -host | --host | --hos | --ho)
  131.     ac_prev=host ;;
  132.   -host=* | --host=* | --hos=* | --ho=*)
  133.     host="$ac_optarg" ;;
  134.  
  135.   -nfp | --nfp | --nf)
  136.     with_fp=no ;; # Obsolete; use --without-fp.
  137.  
  138.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  139.   | --no-cr | --no-c)
  140.     no_create=yes ;;
  141.  
  142.   -norecursion | --norecursion | --norecursio | --norecursi \
  143.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  144.     norecursion=yes ;;
  145.  
  146.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  147.     ac_prev=prefix ;;
  148.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  149.     prefix="$ac_optarg" ;;
  150.  
  151.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  152.   | --program-pre | --program-pr | --program-p)
  153.     ac_prev=program_prefix ;;
  154.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  155.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  156.     program_prefix="$ac_optarg" ;;
  157.  
  158.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  159.   | --program-suf | --program-su | --program-s)
  160.     ac_prev=program_suffix ;;
  161.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  162.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  163.     program_suffix="$ac_optarg" ;;
  164.  
  165.   -program-transform-name | --program-transform-name \
  166.   | --program-transform-nam | --program-transform-na \
  167.   | --program-transform-n | --program-transform- \
  168.   | --program-transform | --program-transfor \
  169.   | --program-transfo | --program-transf \
  170.   | --program-trans | --program-tran \
  171.   | --progr-tra | --program-tr | --program-t)
  172.     ac_prev=program_transform_name ;;
  173.   -program-transform-name=* | --program-transform-name=* \
  174.   | --program-transform-nam=* | --program-transform-na=* \
  175.   | --program-transform-n=* | --program-transform-=* \
  176.   | --program-transform=* | --program-transfor=* \
  177.   | --program-transfo=* | --program-transf=* \
  178.   | --program-trans=* | --program-tran=* \
  179.   | --progr-tra=* | --program-tr=* | --program-t=*)
  180.     program_transform_name="$ac_optarg" ;;
  181.  
  182.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  183.   | -silent | --silent | --silen | --sile | --sil)
  184.     silent=yes ;;
  185.  
  186.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  187.     ac_prev=srcdir ;;
  188.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  189.     srcdir="$ac_optarg" ;;
  190.  
  191.   -target | --target | --targe | --targ | --tar | --ta | --t)
  192.     ac_prev=target ;;
  193.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  194.     target="$ac_optarg" ;;
  195.  
  196.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  197.     verbose=yes ;;
  198.  
  199.   -version | --version | --versio | --versi | --vers)
  200.     /bin/echo "configure generated by autoconf version 1.9"
  201.     exit 0 ;;
  202.  
  203.   -with-* | --with-*)
  204.     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  205.     # Reject names that aren't valid shell variable names.
  206.     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  207.       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  208.     fi
  209.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  210.     case "$ac_option" in
  211.       *=*) ;;
  212.       *) ac_optarg=yes ;;
  213.     esac
  214.     eval "with_${ac_package}='$ac_optarg'" ;;
  215.  
  216.   -without-* | --without-*)
  217.     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  218.     # Reject names that aren't valid shell variable names.
  219.     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  220.       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  221.     fi
  222.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  223.     eval "with_${ac_package}=no" ;;
  224.  
  225.   --x) with_x=yes ;; # Obsolete; use --with-x.
  226.  
  227.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  228.   | --x-incl | --x-inc | --x-in | --x-i)
  229.     ac_prev=x_includes ;;
  230.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  231.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  232.     x_includes="$ac_optarg" ;;
  233.  
  234.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  235.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  236.     ac_prev=x_libraries ;;
  237.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  238.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  239.     x_libraries="$ac_optarg" ;;
  240.  
  241.   -*) /bin/echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  242.     ;;
  243.  
  244.   *) 
  245.     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  246.       /bin/echo "configure: warning: $ac_option: invalid host type" >&2
  247.     fi
  248.     if test "x$nonopt" != xNONE; then
  249.       /bin/echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  250.     fi
  251.     nonopt="$ac_option"
  252.     ;;
  253.  
  254.   esac
  255. done
  256.  
  257. if test -n "$ac_prev"; then
  258.   /bin/echo "configure: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  259. fi
  260.  
  261. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  262. trap 'rm -fr confdefs* $ac_clean_files' 0
  263.  
  264. # Save the original args if we used an alternate arg parser.
  265. ac_configure_temp="${configure_args-$*}"
  266. # Strip out --no-create and --norecursion so they don't pile up.
  267. configure_args=
  268. for ac_arg in $ac_configure_temp; do
  269.   case "$ac_arg" in
  270.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  271.   | --no-cr | --no-c) ;;
  272.   -norecursion | --norecursion | --norecursio | --norecursi \
  273.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  274.   *) configure_args="$configure_args $ac_arg" ;;
  275.   esac
  276. done
  277.  
  278. # NLS nuisances.
  279. # These must not be set unconditionally because not all systems understand
  280. # e.g. LANG=C (notably SCO).
  281. if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  282. if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  283.  
  284. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  285. rm -rf conftest* confdefs.h
  286. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  287. /bin/echo > confdefs.h
  288.  
  289. # A filename unique to this package, relative to the directory that
  290. # configure is in, which we can look for to find out if srcdir is correct.
  291. ac_unique_file=grep.c
  292.  
  293. # Find the source files, if location was not specified.
  294. if test -z "$srcdir"; then
  295.   ac_srcdir_defaulted=yes
  296.   # Try the directory containing this script, then `..'.
  297.   ac_prog=$0
  298.   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  299.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  300.   srcdir=$ac_confdir
  301.   if test ! -r $srcdir/$ac_unique_file; then
  302.     srcdir=..
  303.   fi
  304. fi
  305. if test ! -r $srcdir/$ac_unique_file; then
  306.   if test x$ac_srcdir_defaulted = xyes; then
  307.     /bin/echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  308.   else
  309.     /bin/echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  310.   fi
  311. fi
  312. ac_ext=c
  313. ac_cpp='${CPP} $CFLAGS'
  314. ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  315.  
  316.  
  317. for ac_prog in mawk gawk nawk awk
  318. do
  319. if test -z "$AWK"; then
  320.   # Extract the first word of `$ac_prog', so it can be a program name with args.
  321.   set ac_dummy $ac_prog; ac_word=$2
  322.   test -n "$silent" || /bin/echo "checking for $ac_word"
  323.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  324.   for ac_dir in $PATH; do
  325.     test -z "$ac_dir" && ac_dir=.
  326.     if test -f $ac_dir/$ac_word; then
  327.       AWK="$ac_prog"
  328.       break
  329.     fi
  330.   done
  331.   IFS="$ac_save_ifs"
  332. fi
  333.  
  334. test -n "$AWK" && test -n "$verbose" && /bin/echo "    setting AWK to $AWK"
  335.  
  336. test -n "$AWK" && break
  337. done
  338.  
  339. if test -z "$CC"; then
  340.   # Extract the first word of `gcc', so it can be a program name with args.
  341.   set ac_dummy gcc; ac_word=$2
  342.   test -n "$silent" || /bin/echo "checking for $ac_word"
  343.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  344.   for ac_dir in $PATH; do
  345.     test -z "$ac_dir" && ac_dir=.
  346.     if test -f $ac_dir/$ac_word; then
  347.       CC="gcc"
  348.       break
  349.     fi
  350.   done
  351.   IFS="$ac_save_ifs"
  352. fi
  353. test -z "$CC" && CC="cc"
  354. test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  355.  
  356. # Find out if we are using GNU C, under whatever name.
  357. cat > conftest.c <<EOF
  358. #ifdef __GNUC__
  359.   yes
  360. #endif
  361. EOF
  362. ${CC-cc} -E conftest.c > conftest.out 2>&1
  363. if egrep yes conftest.out >/dev/null 2>&1; then
  364.   GCC=1 # For later tests.
  365. fi
  366. rm -f conftest*
  367.  
  368. test -n "$silent" || /bin/echo "checking for POSIXized ISC"
  369. if test -d /gnu/etc/conf/kconfig.d &&
  370.   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  371. then
  372.   ISC=1 # If later tests want to check for ISC.
  373.   
  374. {
  375. test -n "$verbose" && \
  376. /bin/echo "    defining _POSIX_SOURCE"
  377. /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  378. DEFS="$DEFS -D_POSIX_SOURCE=1"
  379. }
  380.  
  381.   if test -n "$GCC"; then
  382.     CC="$CC -posix"
  383.   else
  384.     CC="$CC -Xp"
  385.   fi
  386. fi
  387.  
  388. test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  389. if test -z "$CPP"; then
  390.   # This must be in double quotes, not single quotes, because CPP may get
  391.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  392.   # make.  It must be expanded now.
  393.   CPP="${CC-cc} -E"
  394.   cat > conftest.${ac_ext} <<EOF
  395. #include "confdefs.h"
  396. #include <stdio.h>
  397. Syntax Error
  398. EOF
  399. # Some shells (Coherent) do redirections in the wrong order, so need
  400. # the parens.
  401. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  402. if test -z "$ac_err"; then
  403.   :
  404. else
  405.   rm -rf conftest*
  406.   CPP="${CC-cc} -E -traditional-cpp"
  407.   cat > conftest.${ac_ext} <<EOF
  408. #include "confdefs.h"
  409. #include <stdio.h>
  410. Syntax Error
  411. EOF
  412. # Some shells (Coherent) do redirections in the wrong order, so need
  413. # the parens.
  414. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  415. if test -z "$ac_err"; then
  416.   :
  417. else
  418.   rm -rf conftest*
  419.   CPP=/lib/cpp
  420. fi
  421. rm -f conftest*
  422. fi
  423. rm -f conftest*
  424. fi
  425. test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  426.  
  427. # Make sure to not get the incompatible SysV /etc/install and
  428. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  429. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  430. # or the AFS install, which mishandles nonexistent args, or
  431. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  432. # `staff', or /sbin/install on IRIX which has incompatible command-line
  433. # syntax.  Sigh.
  434. #
  435. #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  436. #     anyway.
  437. # This turns out not to be true, so the mere pathname isn't an indication
  438. # of whether the program works.  What we really need is a set of tests for
  439. # the install program to see if it actually works in all the required ways.
  440. #
  441. # Avoid using ./install, which might have been erroneously created
  442. # by make from ./install.sh.
  443. if test "z${INSTALL}" = "z" ; then
  444.   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  445.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  446.   for ac_dir in $PATH; do
  447.     case "$ac_dir" in
  448.     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  449.     *)
  450.       # OSF1 and SCO ODT 3.0 have their own names for install.
  451.       for ac_prog in installbsd scoinst install; do
  452.         if test -f $ac_dir/$ac_prog; then
  453.       if test $ac_prog = install &&
  454.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  455.         # AIX install.  It has an incompatible calling convention.
  456.         # OSF/1 installbsd also uses dspmsg, but is usable.
  457.         :
  458.       else
  459.         INSTALL="$ac_dir/$ac_prog -c"
  460.         INSTALL_PROGRAM='${INSTALL}'
  461.         INSTALL_DATA='${INSTALL} -m 644'
  462.         break 2
  463.       fi
  464.     fi
  465.       done
  466.       ;;
  467.     esac
  468.   done
  469.   IFS="$ac_save_ifs"
  470. fi
  471. if test -z "$INSTALL"; then
  472.   if test -f ${srcdir}/install.sh; then
  473.     # As a last resort, use the slow shell script.
  474.     INSTALL='@top_srcdir@/install.sh -c'
  475.   else
  476.     /bin/echo "configure: warning: ${srcdir}/install.sh not found; using cp" >&2
  477.     INSTALL=cp
  478.   fi
  479. fi
  480. test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  481. # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  482. # It thinks the first close brace ends the variable substitution.
  483. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  484. test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  485. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL}'
  486. test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  487.  
  488. test -n "$silent" || /bin/echo "checking for ANSI C header files"
  489. cat > conftest.${ac_ext} <<EOF
  490. #include "confdefs.h"
  491. #include <stdlib.h>
  492. #include <stdarg.h>
  493. #include <string.h>
  494. #include <float.h>
  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.   rm -rf conftest*
  501.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  502. /bin/echo '#include "confdefs.h"
  503. #include <string.h>' > conftest.${ac_ext}
  504. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  505. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  506.   rm -rf conftest*
  507.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  508. cat > conftest.${ac_ext} <<EOF
  509. #include "confdefs.h"
  510. #include <ctype.h>
  511. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  512. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  513. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  514. int main () { int i; for (i = 0; i < 256; i++)
  515. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  516. exit (0); }
  517.  
  518. EOF
  519. eval $ac_compile
  520. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  521.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  522. /bin/echo '#include "confdefs.h"
  523. #include <stdlib.h>' > conftest.${ac_ext}
  524. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  525. if egrep "free" conftest.out >/dev/null 2>&1; then
  526.   rm -rf conftest*
  527.   
  528. {
  529. test -n "$verbose" && \
  530. /bin/echo "    defining STDC_HEADERS"
  531. /bin/echo "#define" STDC_HEADERS "1" >> confdefs.h
  532. DEFS="$DEFS -DSTDC_HEADERS=1"
  533. }
  534.  
  535.  
  536. fi
  537. rm -f conftest*
  538.  
  539.  
  540. fi
  541. rm -fr conftest*
  542.  
  543. fi
  544. rm -f conftest*
  545.  
  546.  
  547. fi
  548. rm -f conftest*
  549.  
  550. for ac_hdr in string.h sys/param.h
  551. do
  552. ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  553. test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  554. cat > conftest.${ac_ext} <<EOF
  555. #include "confdefs.h"
  556. #include <${ac_hdr}>
  557. EOF
  558. # Some shells (Coherent) do redirections in the wrong order, so need
  559. # the parens.
  560. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  561. if test -z "$ac_err"; then
  562.   rm -rf conftest*
  563.   
  564. {
  565. test -n "$verbose" && \
  566. /bin/echo "    defining ${ac_tr_hdr}"
  567. /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  568. DEFS="$DEFS -D${ac_tr_hdr}=1"
  569. }
  570.  
  571.  
  572. fi
  573. rm -f conftest*
  574. done
  575.  
  576. for ac_hdr in memory.h
  577. do
  578. ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  579. test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  580. cat > conftest.${ac_ext} <<EOF
  581. #include "confdefs.h"
  582. #include <${ac_hdr}>
  583. EOF
  584. # Some shells (Coherent) do redirections in the wrong order, so need
  585. # the parens.
  586. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  587. if test -z "$ac_err"; then
  588.   rm -rf conftest*
  589.   
  590. {
  591. test -n "$verbose" && \
  592. /bin/echo "    defining ${ac_tr_hdr}"
  593. /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  594. DEFS="$DEFS -D${ac_tr_hdr}=1"
  595. }
  596.  
  597.  
  598. fi
  599. rm -f conftest*
  600. done
  601.  
  602. for ac_hdr in unistd.h
  603. do
  604. ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  605. test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  606. cat > conftest.${ac_ext} <<EOF
  607. #include "confdefs.h"
  608. #include <${ac_hdr}>
  609. EOF
  610. # Some shells (Coherent) do redirections in the wrong order, so need
  611. # the parens.
  612. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  613. if test -z "$ac_err"; then
  614.   rm -rf conftest*
  615.   
  616. {
  617. test -n "$verbose" && \
  618. /bin/echo "    defining ${ac_tr_hdr}"
  619. /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  620. DEFS="$DEFS -D${ac_tr_hdr}=1"
  621. }
  622.  
  623.  
  624. fi
  625. rm -f conftest*
  626. done
  627.  
  628. test -n "$silent" || /bin/echo "checking for size_t in sys/types.h"
  629. /bin/echo '#include "confdefs.h"
  630. #include <sys/types.h>' > conftest.${ac_ext}
  631. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  632. if egrep "size_t" conftest.out >/dev/null 2>&1; then
  633.   :
  634. else
  635.   rm -rf conftest*
  636.   
  637. {
  638. test -n "$verbose" && \
  639. /bin/echo "    defining" size_t to be "unsigned"
  640. /bin/echo "#define" size_t "unsigned" >> confdefs.h
  641. DEFS="$DEFS -Dsize_t=unsigned"
  642. }
  643.  
  644. fi
  645. rm -f conftest*
  646.  
  647. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  648. # for constant arguments.  Useless!
  649. test -n "$silent" || /bin/echo "checking for working alloca.h"
  650. cat > conftest.${ac_ext} <<EOF
  651. #include "confdefs.h"
  652. #include <alloca.h>
  653. int main() { return 0; }
  654. int t() { char *p = alloca(2 * sizeof(int));; return 0; }
  655. EOF
  656. if eval $ac_compile; then
  657.   rm -rf conftest*
  658.   
  659. {
  660. test -n "$verbose" && \
  661. /bin/echo "    defining HAVE_ALLOCA_H"
  662. /bin/echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
  663. DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  664. }
  665.  
  666.  
  667. fi
  668. rm -f conftest*
  669.  
  670. ac_decl="#ifdef __GNUC__
  671. #define alloca __builtin_alloca
  672. #else
  673. #if HAVE_ALLOCA_H
  674. #include <alloca.h>
  675. #else
  676. #ifdef _AIX
  677.  #pragma alloca
  678. #else
  679. char *alloca ();
  680. #endif
  681. #endif
  682. #endif
  683. "
  684. test -n "$silent" || /bin/echo "checking for alloca"
  685. cat > conftest.${ac_ext} <<EOF
  686. #include "confdefs.h"
  687. $ac_decl
  688. int main() { return 0; }
  689. int t() { char *p = (char *) alloca(1);; return 0; }
  690. EOF
  691. if eval $ac_compile; then
  692.   rm -rf conftest*
  693.   
  694. {
  695. test -n "$verbose" && \
  696. /bin/echo "    defining HAVE_ALLOCA"
  697. /bin/echo "#define" HAVE_ALLOCA "1" >> confdefs.h
  698. DEFS="$DEFS -DHAVE_ALLOCA=1"
  699. }
  700.  
  701.  
  702. else
  703.   rm -rf conftest*
  704.   ac_alloca_missing=1
  705. cat > conftest.${ac_ext} <<EOF
  706. #include "confdefs.h"
  707.  
  708. #if defined(CRAY) && ! defined(CRAY2)
  709. winnitude
  710. #else
  711. lossage
  712. #endif
  713.  
  714. EOF
  715. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  716. if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  717.   rm -rf conftest*
  718.   test -n "$silent" || /bin/echo "checking for _getb67"
  719. cat > conftest.${ac_ext} <<EOF
  720. #include "confdefs.h"
  721. #include <ctype.h>
  722. int main() { return 0; }
  723. int t() { 
  724. /* The GNU C library defines this for functions which it implements
  725.     to always fail with ENOSYS.  Some functions are actually named
  726.     something starting with __ and the normal name is an alias.  */
  727. #if defined (__stub__getb67) || defined (__stub____getb67)
  728. choke me
  729. #else
  730. /* Override any gcc2 internal prototype to avoid an error.  */
  731. extern char _getb67(); _getb67();
  732. #endif
  733. ; return 0; }
  734. EOF
  735. if eval $ac_compile; then
  736.   rm -rf conftest*
  737.   {
  738. test -n "$verbose" && \
  739. /bin/echo "    defining" CRAY_STACKSEG_END to be "_getb67"
  740. /bin/echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
  741. DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  742. }
  743.  
  744.  
  745. else
  746.   rm -rf conftest*
  747.   test -n "$silent" || /bin/echo "checking for GETB67"
  748. cat > conftest.${ac_ext} <<EOF
  749. #include "confdefs.h"
  750. #include <ctype.h>
  751. int main() { return 0; }
  752. int t() { 
  753. /* The GNU C library defines this for functions which it implements
  754.     to always fail with ENOSYS.  Some functions are actually named
  755.     something starting with __ and the normal name is an alias.  */
  756. #if defined (__stub_GETB67) || defined (__stub___GETB67)
  757. choke me
  758. #else
  759. /* Override any gcc2 internal prototype to avoid an error.  */
  760. extern char GETB67(); GETB67();
  761. #endif
  762. ; return 0; }
  763. EOF
  764. if eval $ac_compile; then
  765.   rm -rf conftest*
  766.   {
  767. test -n "$verbose" && \
  768. /bin/echo "    defining" CRAY_STACKSEG_END to be "GETB67"
  769. /bin/echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
  770. DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  771. }
  772.  
  773.  
  774. else
  775.   rm -rf conftest*
  776.   test -n "$silent" || /bin/echo "checking for getb67"
  777. cat > conftest.${ac_ext} <<EOF
  778. #include "confdefs.h"
  779. #include <ctype.h>
  780. int main() { return 0; }
  781. int t() { 
  782. /* The GNU C library defines this for functions which it implements
  783.     to always fail with ENOSYS.  Some functions are actually named
  784.     something starting with __ and the normal name is an alias.  */
  785. #if defined (__stub_getb67) || defined (__stub___getb67)
  786. choke me
  787. #else
  788. /* Override any gcc2 internal prototype to avoid an error.  */
  789. extern char getb67(); getb67();
  790. #endif
  791. ; return 0; }
  792. EOF
  793. if eval $ac_compile; then
  794.   rm -rf conftest*
  795.   {
  796. test -n "$verbose" && \
  797. /bin/echo "    defining" CRAY_STACKSEG_END to be "getb67"
  798. /bin/echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
  799. DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  800. }
  801.  
  802.  
  803. fi
  804. rm -f conftest*
  805.  
  806. fi
  807. rm -f conftest*
  808.  
  809. fi
  810. rm -f conftest*
  811.  
  812.  
  813. fi
  814. rm -f conftest*
  815.  
  816.  
  817. fi
  818. rm -f conftest*
  819.  
  820. if test -n "$ac_alloca_missing"; then
  821.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  822.   # that cause trouble.  Some versions do not even contain alloca or
  823.   # contain a buggy version.  If you still want to use their alloca,
  824.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  825.   ALLOCA=alloca.o
  826.   
  827. {
  828. test -n "$verbose" && \
  829. /bin/echo "    defining C_ALLOCA"
  830. /bin/echo "#define" C_ALLOCA "1" >> confdefs.h
  831. DEFS="$DEFS -DC_ALLOCA=1"
  832. }
  833.  
  834.  
  835.   test -n "$silent" || /bin/echo "checking stack direction for C alloca"
  836.   test -n "$silent" || /bin/echo "checking whether cross-compiling"
  837. # If we cannot run a trivial program, we must be cross compiling.
  838. cat > conftest.${ac_ext} <<EOF
  839. #include "confdefs.h"
  840. main(){exit(0);}
  841. EOF
  842. eval $ac_compile
  843. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  844.   :
  845. else
  846.   cross_compiling=1
  847. fi
  848. rm -fr conftest*
  849.  
  850. if test -n "$cross_compiling"
  851. then
  852.   
  853. {
  854. test -n "$verbose" && \
  855. /bin/echo "    defining" STACK_DIRECTION to be "0"
  856. /bin/echo "#define" STACK_DIRECTION "0" >> confdefs.h
  857. DEFS="$DEFS -DSTACK_DIRECTION=0"
  858. }
  859.  
  860. else
  861. cat > conftest.${ac_ext} <<EOF
  862. #include "confdefs.h"
  863. find_stack_direction ()
  864. {
  865.   static char *addr = 0;
  866.   auto char dummy;
  867.   if (addr == 0)
  868.     {
  869.       addr = &dummy;
  870.       return find_stack_direction ();
  871.     }
  872.   else
  873.     return (&dummy > addr) ? 1 : -1;
  874. }
  875. main ()
  876. {
  877.   exit (find_stack_direction() < 0);
  878. }
  879. EOF
  880. eval $ac_compile
  881. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  882.   
  883. {
  884. test -n "$verbose" && \
  885. /bin/echo "    defining" STACK_DIRECTION to be "1"
  886. /bin/echo "#define" STACK_DIRECTION "1" >> confdefs.h
  887. DEFS="$DEFS -DSTACK_DIRECTION=1"
  888. }
  889.  
  890.  
  891. else
  892.   
  893. {
  894. test -n "$verbose" && \
  895. /bin/echo "    defining" STACK_DIRECTION to be "-1"
  896. /bin/echo "#define" STACK_DIRECTION "-1" >> confdefs.h
  897. DEFS="$DEFS -DSTACK_DIRECTION=-1"
  898. }
  899.  
  900. fi
  901. fi
  902. rm -fr conftest*
  903. fi
  904.  
  905. for ac_func in getpagesize memchr strerror valloc
  906. do
  907. ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  908. test -n "$silent" || /bin/echo "checking for ${ac_func}"
  909. cat > conftest.${ac_ext} <<EOF
  910. #include "confdefs.h"
  911. #include <ctype.h>
  912. int main() { return 0; }
  913. int t() { 
  914. /* The GNU C library defines this for functions which it implements
  915.     to always fail with ENOSYS.  Some functions are actually named
  916.     something starting with __ and the normal name is an alias.  */
  917. #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  918. choke me
  919. #else
  920. /* Override any gcc2 internal prototype to avoid an error.  */
  921. extern char ${ac_func}(); ${ac_func}();
  922. #endif
  923. ; return 0; }
  924. EOF
  925. if eval $ac_compile; then
  926.   rm -rf conftest*
  927.   {
  928. test -n "$verbose" && \
  929. /bin/echo "    defining ${ac_tr_func}"
  930. /bin/echo "#define" ${ac_tr_func} "1" >> confdefs.h
  931. DEFS="$DEFS -D${ac_tr_func}=1"
  932. }
  933.  
  934.  
  935. fi
  936. rm -f conftest*
  937. done
  938.  
  939. test -n "$silent" || /bin/echo "checking for unsigned characters"
  940. cat > conftest.${ac_ext} <<EOF
  941. #include "confdefs.h"
  942. /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  943. #if !__STDC__
  944. #define volatile
  945. #endif
  946. main() {
  947. #ifdef __CHAR_UNSIGNED__
  948.   exit(1); /* No need to redefine it.  */
  949. #else
  950.   volatile char c = 255; exit(c < 0);
  951. #endif
  952. }
  953. EOF
  954. eval $ac_compile
  955. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  956.   
  957. {
  958. test -n "$verbose" && \
  959. /bin/echo "    defining __CHAR_UNSIGNED__"
  960. /bin/echo "#define" __CHAR_UNSIGNED__ "1" >> confdefs.h
  961. DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  962. }
  963.  
  964.  
  965. fi
  966. rm -fr conftest*
  967.  
  968. ac_prog='/* Ultrix mips cc rejects this.  */
  969. typedef int charset[2]; const charset x;
  970. /* SunOS 4.1.1 cc rejects this.  */
  971. char const *const *ccp;
  972. char **p;
  973. /* AIX XL C 1.02.0.0 rejects this.
  974.    It does not let you subtract one const X* pointer from another in an arm
  975.    of an if-expression whose if-part is not a constant expression */
  976. const char *g = "string";
  977. ccp = &g + (g ? g-g : 0);
  978. /* HPUX 7.0 cc rejects these. */
  979. ++ccp;
  980. p = (char**) ccp;
  981. ccp = (char const *const *) p;
  982. { /* SCO 3.2v4 cc rejects this.  */
  983.   char *t;
  984.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  985.  
  986.   *t++ = 0;
  987. }
  988. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  989.   int x[] = {25,17};
  990.   const int *foo = &x[0];
  991.   ++foo;
  992. }
  993. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  994.   typedef const int *iptr;
  995.   iptr p = 0;
  996.   ++p;
  997. }
  998. { /* AIX XL C 1.02.0.0 rejects this saying
  999.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1000.   struct s { int j; const int *ap[3]; };
  1001.   struct s *b; b->j = 5;
  1002. }
  1003. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1004.   const int foo = 10;
  1005. }'
  1006. test -n "$silent" || /bin/echo "checking for lack of working const"
  1007. cat > conftest.${ac_ext} <<EOF
  1008. #include "confdefs.h"
  1009.  
  1010. int main() { return 0; }
  1011. int t() { $ac_prog; return 0; }
  1012. EOF
  1013. if eval $ac_compile; then
  1014.   :
  1015. else
  1016.   rm -rf conftest*
  1017.   
  1018. {
  1019. test -n "$verbose" && \
  1020. /bin/echo "    defining" const to be empty
  1021. /bin/echo "#define" const "" >> confdefs.h
  1022. DEFS="$DEFS -Dconst="
  1023. }
  1024.  
  1025. fi
  1026. rm -f conftest*
  1027.  
  1028. echo checking for working mmap
  1029. cat > conftest.${ac_ext} <<EOF
  1030. #include "confdefs.h"
  1031.  
  1032. #include <fcntl.h>
  1033. #include <sys/types.h>
  1034. #include <sys/mman.h>
  1035.  
  1036. #ifdef BSD
  1037. #ifndef BSD4_1
  1038. #define HAVE_GETPAGESIZE
  1039. #endif
  1040. #endif
  1041. #ifndef HAVE_GETPAGESIZE
  1042. #include <sys/param.h>
  1043. #ifdef EXEC_PAGESIZE
  1044. #define getpagesize() EXEC_PAGESIZE
  1045. #else
  1046. #ifdef NBPG
  1047. #define getpagesize() NBPG * CLSIZE
  1048. #ifndef CLSIZE
  1049. #define CLSIZE 1
  1050. #endif /* no CLSIZE */
  1051. #else /* no NBPG */
  1052. #define getpagesize() NBPC
  1053. #endif /* no NBPG */
  1054. #endif /* no EXEC_PAGESIZE */
  1055. #endif /* not HAVE_GETPAGESIZE */
  1056.  
  1057. #ifdef __osf__
  1058. #define valloc malloc
  1059. #endif
  1060.  
  1061. extern char *valloc();
  1062.  
  1063. int
  1064. main()
  1065. {
  1066.   char *buf1, *buf2;
  1067.   int i = getpagesize(), j;
  1068.   int fd;
  1069.  
  1070.   buf1 = valloc(i);
  1071.   buf2 = valloc(i);
  1072.   for (j = 0; j < i; ++j)
  1073.     *(buf1 + j) = rand();
  1074.   fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
  1075.   write(fd, buf1, i);
  1076.   mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
  1077.   for (j = 0; j < i; ++j)
  1078.     if (*(buf1 + j) != *(buf2 + j))
  1079.       exit(1);
  1080.   exit(0);
  1081. }
  1082.  
  1083. EOF
  1084. eval $ac_compile
  1085. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1086.   
  1087. {
  1088. test -n "$verbose" && \
  1089. /bin/echo "    defining HAVE_WORKING_MMAP"
  1090. /bin/echo "#define" HAVE_WORKING_MMAP "1" >> confdefs.h
  1091. DEFS="$DEFS -DHAVE_WORKING_MMAP=1"
  1092. }
  1093.  
  1094.  
  1095. fi
  1096. rm -fr conftest*
  1097. # Set default prefixes.
  1098. if test -n "$prefix"; then
  1099.   test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  1100.   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  1101. fi
  1102. if test -n "$exec_prefix"; then
  1103.   ac_prsub="$ac_prsub
  1104. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  1105. fi
  1106. # Any assignment to VPATH causes Sun make to only execute
  1107. # the first set of double-colon rules, so remove it if not needed.
  1108. # If there is a colon in the path, we need to keep it.
  1109. if test "x$srcdir" = x.; then
  1110.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1111. fi
  1112.  
  1113. # Quote sed substitution magic chars in DEFS.
  1114. cat >conftest.def <<EOF
  1115. $DEFS
  1116. EOF
  1117. ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  1118. DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  1119. rm -f conftest.def
  1120. # Substitute for predefined variables.
  1121.  
  1122. trap 'rm -f config.status; exit 1' 1 2 15
  1123. /bin/echo creating config.status
  1124. rm -f config.status
  1125. cat > config.status <<EOF
  1126. #!/bin/sh
  1127. # Generated automatically by configure.
  1128. # Run this file to recreate the current configuration.
  1129. # This directory was configured as follows,
  1130. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1131. #
  1132. # $0 $configure_args
  1133.  
  1134. ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  1135. for ac_option
  1136. do
  1137.   case "\$ac_option" in
  1138.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1139.     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  1140.     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  1141.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1142.     /bin/echo "config.status generated by autoconf version 1.9"
  1143.     exit 0 ;;
  1144.   -help | --help | --hel | --he | --h)
  1145.     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  1146.   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  1147.   esac
  1148. done
  1149.  
  1150. trap 'rm -f Makefile; exit 1' 1 2 15
  1151. AWK='$AWK'
  1152. CC='$CC'
  1153. CPP='$CPP'
  1154. INSTALL='$INSTALL'
  1155. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  1156. INSTALL_DATA='$INSTALL_DATA'
  1157. ALLOCA='$ALLOCA'
  1158. LIBS='$LIBS'
  1159. srcdir='$srcdir'
  1160. top_srcdir='$top_srcdir'
  1161. prefix='$prefix'
  1162. exec_prefix='$exec_prefix'
  1163. DEFS='$DEFS'
  1164. ac_prsub='$ac_prsub'
  1165. ac_vpsub='$ac_vpsub'
  1166. extrasub='$extrasub'
  1167. EOF
  1168. cat >> config.status <<\EOF
  1169.  
  1170. ac_given_srcdir=$srcdir
  1171.  
  1172. CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  1173. for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  1174.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1175.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1176.   if test "$ac_dir" != "$ac_file"; then
  1177.     # The file is in a subdirectory.
  1178.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1179.     ac_dir_suffix="/$ac_dir"
  1180.   else
  1181.     ac_dir_suffix=
  1182.   fi
  1183.  
  1184.   # A "../" for each directory in $ac_dir_suffix.
  1185.   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1186.   case "$ac_given_srcdir" in
  1187.   .)  srcdir=.; top_srcdir="$ac_dots." ;;
  1188.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1189.   *) # Relative path.
  1190.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1191.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1192.   esac
  1193.  
  1194.   /bin/echo creating "$ac_file"
  1195.   rm -f "$ac_file"
  1196.   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  1197.   case "$ac_file" in
  1198.     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  1199.     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  1200.   esac
  1201.   sed -e "
  1202. $ac_prsub
  1203. $ac_vpsub
  1204. $extrasub
  1205. s%@AWK@%$AWK%g
  1206. s%@CC@%$CC%g
  1207. s%@CPP@%$CPP%g
  1208. s%@INSTALL@%$INSTALL%g
  1209. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1210. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1211. s%@ALLOCA@%$ALLOCA%g
  1212. s%@LIBS@%$LIBS%g
  1213. s%@srcdir@%$srcdir%g
  1214. s%@top_srcdir@%$top_srcdir%g
  1215. s%@prefix@%$prefix%g
  1216. s%@exec_prefix@%$exec_prefix%g
  1217. s%@DEFS@%$DEFS%
  1218. " $ac_given_srcdir/${ac_file}.in >> $ac_file
  1219. fi; done
  1220.  
  1221.  
  1222. exit 0
  1223. EOF
  1224. chmod +x config.status
  1225. test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status
  1226.  
  1227.