home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / gawk-2.15.5-src.lha / GNU / src / amiga / gawk-2.15.5 / configure < prev    next >
Encoding:
Text File  |  1994-06-13  |  28.3 KB  |  900 lines

  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 1.11 
  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.11"
  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=awk.y
  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. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  314. ac_cpp='${CPP}'
  315. ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  316.  
  317.  
  318.  
  319.  
  320. # We want these before the checks, so the checks can modify their values.
  321. test -z "$CFLAGS" && CFLAGS= auto_cflags=1
  322. test -z "$LDFLAGS" && LDFLAGS=
  323.  
  324. if test -z "$CC"; then
  325.   # Extract the first word of `gcc', so it can be a program name with args.
  326.   set ac_dummy gcc; ac_word=$2
  327.   test -n "$silent" || /bin/echo "checking for $ac_word"
  328.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  329.   for ac_dir in $PATH; do
  330.     test -z "$ac_dir" && ac_dir=.
  331.     if test -f $ac_dir/$ac_word; then
  332.       CC="gcc"
  333.       break
  334.     fi
  335.   done
  336.   IFS="$ac_save_ifs"
  337. fi
  338. test -z "$CC" && CC="cc"
  339. test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  340.  
  341. # Find out if we are using GNU C, under whatever name.
  342. cat > conftest.c <<EOF
  343. #ifdef __GNUC__
  344.   yes
  345. #endif
  346. EOF
  347. ${CC-cc} -E conftest.c > conftest.out 2>&1
  348. if egrep yes conftest.out >/dev/null 2>&1; then
  349.   GCC=1 # For later tests.
  350. fi
  351. rm -f conftest*
  352.  
  353.  
  354. # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  355. test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
  356.  
  357.  
  358. test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  359. if test -z "$CPP"; then
  360.   # This must be in double quotes, not single quotes, because CPP may get
  361.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  362.   # make.  It must be expanded now.
  363.   CPP="${CC-cc} -E"
  364.   cat > conftest.${ac_ext} <<EOF
  365. #include "confdefs.h"
  366. #include <stdio.h>
  367. Syntax Error
  368. EOF
  369. # Some shells (Coherent) do redirections in the wrong order, so need
  370. # the parens.
  371. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  372. if test -z "$ac_err"; then
  373.   :
  374. else
  375.   rm -rf conftest*
  376.   CPP="${CC-cc} -E -traditional-cpp"
  377.   cat > conftest.${ac_ext} <<EOF
  378. #include "confdefs.h"
  379. #include <stdio.h>
  380. Syntax Error
  381. EOF
  382. # Some shells (Coherent) do redirections in the wrong order, so need
  383. # the parens.
  384. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  385. if test -z "$ac_err"; then
  386.   :
  387. else
  388.   rm -rf conftest*
  389.   CPP=/lib/cpp
  390. fi
  391. rm -f conftest*
  392. fi
  393. rm -f conftest*
  394. fi
  395. test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  396.  
  397. if test -n "$GCC"; then
  398.   test -n "$silent" || /bin/echo "checking whether -traditional is needed"
  399.   ac_pattern="Autoconf.*'x'"
  400.   ac_prog='#include <sgtty.h>
  401. Autoconf TIOCGETP'
  402.   cat > conftest.${ac_ext} <<EOF
  403. #include "confdefs.h"
  404. $ac_prog
  405. EOF
  406. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  407. if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  408.   rm -rf conftest*
  409.   ac_need_trad=1
  410.  
  411. fi
  412. rm -f conftest*
  413.  
  414.  
  415.   if test -z "$ac_need_trad"; then
  416.     ac_prog='#include <termio.h>
  417. Autoconf TCGETA'
  418.     cat > conftest.${ac_ext} <<EOF
  419. #include "confdefs.h"
  420. $ac_prog
  421. EOF
  422. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  423. if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  424.   rm -rf conftest*
  425.   ac_need_trad=1
  426.  
  427. fi
  428. rm -f conftest*
  429.  
  430.   fi
  431.   test -n "$ac_need_trad" && CC="$CC -traditional"
  432. fi
  433.  
  434. # Make sure to not get the incompatible SysV /etc/install and
  435. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  436. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  437. # or the AFS install, which mishandles nonexistent args, or
  438. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  439. # `staff', or /sbin/install on IRIX which has incompatible command-line
  440. # syntax.  Sigh.
  441. #
  442. #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  443. #     anyway.
  444. # This turns out not to be true, so the mere pathname isn't an indication
  445. # of whether the program works.  What we really need is a set of tests for
  446. # the install program to see if it actually works in all the required ways.
  447. #
  448. # Avoid using ./install, which might have been erroneously created
  449. # by make from ./install.sh.
  450. if test -z "${INSTALL}"; then
  451.   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  452.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  453.   for ac_dir in $PATH; do
  454.     case "$ac_dir" in
  455.     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  456.     *)
  457.       # OSF1 and SCO ODT 3.0 have their own names for install.
  458.       for ac_prog in installbsd scoinst install; do
  459.         if test -f $ac_dir/$ac_prog; then
  460.       if test $ac_prog = install &&
  461.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  462.         # AIX install.  It has an incompatible calling convention.
  463.         # OSF/1 installbsd also uses dspmsg, but is usable.
  464.         :
  465.       else
  466.         INSTALL="$ac_dir/$ac_prog -c"
  467.         break 2
  468.       fi
  469.     fi
  470.       done
  471.       ;;
  472.     esac
  473.   done
  474.   IFS="$ac_save_ifs"
  475. fi
  476.  
  477. if test -z "$INSTALL"; then
  478.   # As a last resort, use the slow shell script.
  479.   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  480.     if test -f $ac_dir/install.sh; then
  481.       INSTALL="$ac_dir/install.sh -c"; break
  482.     fi
  483.   done
  484. fi
  485. if test -z "$INSTALL"; then
  486.   /bin/echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  487. fi
  488. test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  489.  
  490. # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  491. # It thinks the first close brace ends the variable substitution.
  492. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  493. test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  494.  
  495. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  496. test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  497.  
  498. for ac_prog in 'bison -y' byacc
  499. do
  500. if test -z "$YACC"; then
  501.   # Extract the first word of `$ac_prog', so it can be a program name with args.
  502.   set ac_dummy $ac_prog; ac_word=$2
  503.   test -n "$silent" || /bin/echo "checking for $ac_word"
  504.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  505.   for ac_dir in $PATH; do
  506.     test -z "$ac_dir" && ac_dir=.
  507.     if test -f $ac_dir/$ac_word; then
  508.       YACC="$ac_prog"
  509.       break
  510.     fi
  511.   done
  512.   IFS="$ac_save_ifs"
  513. fi
  514.  
  515. test -n "$YACC" && test -n "$verbose" && /bin/echo "    setting YACC to $YACC"
  516.  
  517. test -n "$YACC" && break
  518. done
  519. test -n "$YACC" || YACC="yacc"
  520.  
  521. test -n "$silent" || /bin/echo "checking for return type of signal handlers"
  522. cat > conftest.${ac_ext} <<EOF
  523. #include "confdefs.h"
  524. #include <sys/types.h>
  525. #include <signal.h>
  526. #ifdef signal
  527. #undef signal
  528. #endif
  529. extern void (*signal ()) ();
  530. int main() { return 0; }
  531. int t() { int i;; return 0; }
  532. EOF
  533. if eval $ac_compile; then
  534.   rm -rf conftest*
  535.   
  536. {
  537. test -n "$verbose" && \
  538. /bin/echo "    defining" RETSIGTYPE to be "void"
  539. /bin/echo "#define" RETSIGTYPE "void" >> confdefs.h
  540. DEFS="$DEFS -DRETSIGTYPE=void"
  541. ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  542. \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  543. \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  544. "
  545. }
  546.  
  547.  
  548. else
  549.   rm -rf conftest*
  550.   
  551. {
  552. test -n "$verbose" && \
  553. /bin/echo "    defining" RETSIGTYPE to be "int"
  554. /bin/echo "#define" RETSIGTYPE "int" >> confdefs.h
  555. DEFS="$DEFS -DRETSIGTYPE=int"
  556. ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  557. \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  558. \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  559. "
  560. }
  561.  
  562. fi
  563. rm -f conftest*
  564.  
  565.  
  566. test -n "$silent" || /bin/echo "checking for ANSI C header files"
  567. cat > conftest.${ac_ext} <<EOF
  568. #include "confdefs.h"
  569. #include <stdlib.h>
  570. #include <stdarg.h>
  571. #include <string.h>
  572. #include <float.h>
  573. EOF
  574. # Some shells (Coherent) do redirections in the wrong order, so need
  575. # the parens.
  576. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  577. if test -z "$ac_err"; then
  578.   rm -rf conftest*
  579.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  580. /bin/echo '#include "confdefs.h"
  581. #include <string.h>' > conftest.${ac_ext}
  582. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  583. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  584.   rm -rf conftest*
  585.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  586. cat > conftest.${ac_ext} <<EOF
  587. #include "confdefs.h"
  588. #include <ctype.h>
  589. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  590. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  591. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  592. int main () { int i; for (i = 0; i < 256; i++)
  593. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  594. exit (0); }
  595.  
  596. EOF
  597. eval $ac_compile
  598. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  599.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  600. /bin/echo '#include "confdefs.h"
  601. #include <stdlib.h>' > conftest.${ac_ext}
  602. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  603. if egrep "free" conftest.out >/dev/null 2>&1; then
  604.   rm -rf conftest*
  605.   
  606. {
  607. test -n "$verbose" && \
  608. /bin/echo "    defining STDC_HEADERS"
  609. /bin/echo "#define" STDC_HEADERS "1" >> confdefs.h
  610. DEFS="$DEFS -DSTDC_HEADERS=1"
  611. ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  612. \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  613. \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  614. "
  615. }
  616.  
  617.  
  618. fi
  619. rm -f conftest*
  620.  
  621.  
  622. fi
  623. rm -fr conftest*
  624.  
  625. fi
  626. rm -f conftest*
  627.  
  628.  
  629. fi
  630. rm -f conftest*
  631.  
  632.  
  633. test -n "$silent" || /bin/echo "checking for _setjmp declaration in <setjmp.h>"
  634. cat > conftest.${ac_ext} <<EOF
  635. #include "confdefs.h"
  636. #include <setjmp.h>
  637. int main() { return 0; }
  638. int t() { jmp_buf buf; _setjmp (buf); return 0; }
  639. EOF
  640. if eval $ac_compile; then
  641.   rm -rf conftest*
  642.   
  643. {
  644. test -n "$verbose" && \
  645. /bin/echo "    defining HAVE_UNDERSCORE_SETJMP"
  646. /bin/echo "#define" HAVE_UNDERSCORE_SETJMP "1" >> confdefs.h
  647. DEFS="$DEFS -DHAVE_UNDERSCORE_SETJMP=1"
  648. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_UNDERSCORE_SETJMP\${ac_dB}HAVE_UNDERSCORE_SETJMP\${ac_dC}1\${ac_dD}
  649. \${ac_uA}HAVE_UNDERSCORE_SETJMP\${ac_uB}HAVE_UNDERSCORE_SETJMP\${ac_uC}1\${ac_uD}
  650. \${ac_eA}HAVE_UNDERSCORE_SETJMP\${ac_eB}HAVE_UNDERSCORE_SETJMP\${ac_eC}1\${ac_eD}
  651. "
  652. }
  653.  
  654.  
  655. fi
  656. rm -f conftest*
  657.  
  658.  
  659.  
  660. # The preferred way to propogate these variables is regular @ substitutions.
  661. if test -n "$prefix"; then
  662.   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  663. else
  664.   prefix=/usr/local
  665. fi
  666. if test -n "$exec_prefix"; then
  667.   ac_prsub="$ac_prsub
  668. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  669. else
  670.   exec_prefix='${prefix}' # Let make expand it.
  671. fi
  672.  
  673. # Any assignment to VPATH causes Sun make to only execute
  674. # the first set of double-colon rules, so remove it if not needed.
  675. # If there is a colon in the path, we need to keep it.
  676. if test "x$srcdir" = x.; then
  677.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  678. fi
  679.  
  680. # Quote sed substitution magic chars in DEFS.
  681. cat >conftest.def <<EOF
  682. $DEFS
  683. EOF
  684. ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  685. DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  686. rm -f conftest.def
  687. # Substitute for predefined variables.
  688.  
  689. trap 'rm -f config.status; exit 1' 1 2 15
  690. /bin/echo creating config.status
  691. # Some systems, like AmigaDOS, won't allow you to remove a script that is
  692. # being executed, so just move it out of the way instead.
  693. if test -f config.status; then mv config.status config.status.old; else true; fi
  694. cat > config.status <<EOF
  695. #!/bin/sh
  696. # Generated automatically by configure.
  697. # Run this file to recreate the current configuration.
  698. # This directory was configured as follows,
  699. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  700. #
  701. # $0 $configure_args
  702.  
  703. ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  704. for ac_option
  705. do
  706.   case "\$ac_option" in
  707.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  708.     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  709.     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  710.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  711.     /bin/echo "config.status generated by autoconf version 1.11"
  712.     exit 0 ;;
  713.   -help | --help | --hel | --he | --h)
  714.     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  715.   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  716.   esac
  717. done
  718.  
  719. trap 'rm -fr Makefile config.h conftest*; exit 1' 1 2 15
  720. CC='$CC'
  721. CFLAGS='$CFLAGS'
  722. LDFLAGS='$LDFLAGS'
  723. CPP='$CPP'
  724. INSTALL='$INSTALL'
  725. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  726. INSTALL_DATA='$INSTALL_DATA'
  727. YACC='$YACC'
  728. LIBS='$LIBS'
  729. srcdir='$srcdir'
  730. top_srcdir='$top_srcdir'
  731. prefix='$prefix'
  732. exec_prefix='$exec_prefix'
  733. ac_prsub='$ac_prsub'
  734. ac_vpsub='$ac_vpsub'
  735. extrasub='$extrasub'
  736. EOF
  737. cat >> config.status <<\EOF
  738.  
  739. ac_given_srcdir=$srcdir
  740.  
  741. CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  742. for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  743.   # Remove last slash and all that follows it.  Not all systems have dirname.
  744.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  745.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  746.     # The file is in a subdirectory.
  747.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  748.     ac_dir_suffix="/$ac_dir"
  749.   else
  750.     ac_dir_suffix=
  751.   fi
  752.  
  753.   # A "../" for each directory in $ac_dir_suffix.
  754.   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  755.   case "$ac_given_srcdir" in
  756.   .)  srcdir=.
  757.       if test -z "$ac_dir_suffix"; then top_srcdir=.
  758.       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  759.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  760.   *) # Relative path.
  761.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  762.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  763.   esac
  764.  
  765.   /bin/echo creating "$ac_file"
  766.   rm -f "$ac_file"
  767.   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  768.   case "$ac_file" in
  769.     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  770.     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  771.   esac
  772.   sed -e "
  773. $ac_prsub
  774. $ac_vpsub
  775. $extrasub
  776. s%@CC@%$CC%g
  777. s%@CFLAGS@%$CFLAGS%g
  778. s%@LDFLAGS@%$LDFLAGS%g
  779. s%@CPP@%$CPP%g
  780. s%@INSTALL@%$INSTALL%g
  781. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  782. s%@INSTALL_DATA@%$INSTALL_DATA%g
  783. s%@YACC@%$YACC%g
  784. s%@LIBS@%$LIBS%g
  785. s%@srcdir@%$srcdir%g
  786. s%@top_srcdir@%$top_srcdir%g
  787. s%@prefix@%$prefix%g
  788. s%@exec_prefix@%$exec_prefix%g
  789. s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
  790. fi; done
  791.  
  792. # These sed commands are put into ac_sed_defs when defining a macro.
  793. # They are broken into pieces to make the sed script easier to manage.
  794. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  795. # is the cpp macro being defined and VALUE is the value it is being given.
  796. # Each defining turns into a single global substitution command.
  797. # Hopefully no one uses "!" as a variable value.
  798. # Other candidates for the sed separators, like , and @, do get used.
  799. #
  800. # ac_d sets the value in "#define NAME VALUE" lines.
  801. ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  802. ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  803. ac_dC='\3'
  804. ac_dD='!g'
  805. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  806. ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  807. ac_uB='\([     ]\)!\1#\2define\3'
  808. ac_uC=' '
  809. ac_uD='\4!g'
  810. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  811. ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  812. ac_eB='$!\1#\2define\3'
  813. ac_eC=' '
  814. ac_eD='!g'
  815. rm -f conftest.sed
  816. EOF
  817. # Turn off quoting long enough to insert the sed commands.
  818. rm -f conftest.sh
  819. cat > conftest.sh <<EOF
  820. $ac_sed_defs
  821. EOF
  822.  
  823. # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  824. # on the size of here documents.
  825.  
  826. # Maximum number of lines to put in a single here document.
  827. ac_max_sh_lines=9
  828.  
  829. while :
  830. do
  831.   # wc gives bogus results for an empty file on some AIX systems.
  832.   ac_lines=`grep -c . conftest.sh`
  833.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  834.   rm -f conftest.s1 conftest.s2
  835.   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
  836.   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
  837.   # Write a limited-size here document to append to conftest.sed.
  838.   /bin/echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  839.   cat conftest.s1 >> config.status
  840.   /bin/echo 'CONFEOF' >> config.status
  841.   rm -f conftest.s1 conftest.sh
  842.   mv conftest.s2 conftest.sh
  843. done
  844. rm -f conftest.sh
  845.  
  846. # Now back to your regularly scheduled config.status.
  847. cat >> config.status <<\EOF
  848. # This sed command replaces #undef's with comments.  This is necessary, for
  849. # example, in the case of _POSIX_SOURCE, which is predefined and required
  850. # on some systems where configure will not decide to define it in
  851. # config.h.
  852. cat >> conftest.sed <<\CONFEOF
  853. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  854. CONFEOF
  855. rm -f conftest.h
  856. # Break up the sed commands because old seds have small limits.
  857. ac_max_sed_lines=20
  858.  
  859. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  860. for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  861.   /bin/echo creating $ac_file
  862.  
  863.   cp $ac_given_srcdir/$ac_file.in conftest.h1
  864.   cp conftest.sed conftest.stm
  865.   while :
  866.   do
  867.     ac_lines=`grep -c . conftest.stm`
  868.     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  869.     rm -f conftest.s1 conftest.s2 conftest.h2
  870.     sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
  871.     sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
  872.     sed -f conftest.s1 < conftest.h1 > conftest.h2
  873.     rm -f conftest.s1 conftest.h1 conftest.stm
  874.     mv conftest.h2 conftest.h1
  875.     mv conftest.s2 conftest.stm
  876.   done
  877.   rm -f conftest.stm conftest.h
  878.   /bin/echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  879.   cat conftest.h1 >> conftest.h
  880.   rm -f conftest.h1
  881.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  882.     # The file exists and we would not be changing it.
  883.     /bin/echo "$ac_file is unchanged"
  884.     rm -f conftest.h
  885.   else
  886.     rm -f $ac_file
  887.     mv conftest.h $ac_file
  888.   fi
  889. fi; done
  890. rm -f conftest.sed
  891.  
  892.  
  893.  
  894. exit 0
  895. EOF
  896. chmod +x config.status
  897. # Some shells look in PATH for config.status without the "./".
  898. test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  899.  
  900.