home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / amiga / libg++-2.6.2-src.lha / libg++-2.6.2 / librx / configure < prev    next >
Encoding:
Text File  |  1994-12-18  |  35.6 KB  |  1,266 lines

  1. #!/bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.1 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/gnu
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36.  
  37. # Initialize some other variables.
  38. subdirs=
  39.  
  40. ac_prev=
  41. for ac_option
  42. do
  43.  
  44.   # If the previous option needs an argument, assign it.
  45.   if test -n "$ac_prev"; then
  46.     eval "$ac_prev=\$ac_option"
  47.     ac_prev=
  48.     continue
  49.   fi
  50.  
  51.   case "$ac_option" in
  52.   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  53.   *) ac_optarg= ;;
  54.   esac
  55.  
  56.   # Accept the important Cygnus configure options, so we can diagnose typos.
  57.  
  58.   case "$ac_option" in
  59.  
  60.   -build | --build | --buil | --bui | --bu | --b)
  61.     ac_prev=build ;;
  62.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  63.     build="$ac_optarg" ;;
  64.  
  65.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  66.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  67.     ac_prev=cache_file ;;
  68.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  69.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  70.     cache_file="$ac_optarg" ;;
  71.  
  72.   -disable-* | --disable-*)
  73.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  74.     # Reject names that are not valid shell variable names.
  75.     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  76.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  77.     fi
  78.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  79.     eval "enable_${ac_feature}=no" ;;
  80.  
  81.   -enable-* | --enable-*)
  82.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  83.     # Reject names that are not valid shell variable names.
  84.     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  85.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  86.     fi
  87.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  88.     case "$ac_option" in
  89.       *=*) ;;
  90.       *) ac_optarg=yes ;;
  91.     esac
  92.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  93.  
  94.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  95.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  96.   | --exec | --exe | --ex)
  97.     ac_prev=exec_prefix ;;
  98.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  99.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  100.   | --exec=* | --exe=* | --ex=*)
  101.     exec_prefix="$ac_optarg" ;;
  102.  
  103.   -gas | --gas | --ga | --g)
  104.     # Obsolete; use --with-gas.
  105.     with_gas=yes ;;
  106.  
  107.   -help | --help | --hel | --he)
  108.     # Omit some internal or obsolete options to make the list less imposing.
  109.     # This message is too long to be a string in the A/UX 3.1 sh.
  110.     cat << EOF
  111. Usage: configure [options] [host]
  112. Options: [defaults in brackets after descriptions]
  113. Configuration:
  114.   --cache-file=FILE       cache test results in FILE
  115.   --help                  print this message
  116.   --no-create             do not create output files
  117.   --quiet, --silent       do not print \`checking...' messages
  118.   --version               print the version of autoconf that created configure
  119. Directory and file names:
  120.   --prefix=PREFIX         install architecture-independent files in PREFIX
  121.                           [$ac_default_prefix]
  122.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  123.                           [same as prefix]
  124.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  125.   --program-prefix=PREFIX prepend PREFIX to installed program names
  126.   --program-suffix=SUFFIX append SUFFIX to installed program names
  127.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  128. Host type:
  129.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  130.   --host=HOST             configure for HOST [guessed]
  131.   --target=TARGET         configure for TARGET [TARGET=HOST]
  132. Features and packages:
  133.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  134.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  135.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  136.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  137.   --x-includes=DIR        X include files are in DIR
  138.   --x-libraries=DIR       X library files are in DIR
  139. --enable and --with options recognized:$ac_help
  140. EOF
  141.     exit 0 ;;
  142.  
  143.   -host | --host | --hos | --ho)
  144.     ac_prev=host ;;
  145.   -host=* | --host=* | --hos=* | --ho=*)
  146.     host="$ac_optarg" ;;
  147.  
  148.   -nfp | --nfp | --nf)
  149.     # Obsolete; use --without-fp.
  150.     with_fp=no ;;
  151.  
  152.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  153.   | --no-cr | --no-c)
  154.     no_create=yes ;;
  155.  
  156.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  157.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  158.     no_recursion=yes ;;
  159.  
  160.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  161.     ac_prev=prefix ;;
  162.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  163.     prefix="$ac_optarg" ;;
  164.  
  165.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  166.   | --program-pre | --program-pr | --program-p)
  167.     ac_prev=program_prefix ;;
  168.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  169.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  170.     program_prefix="$ac_optarg" ;;
  171.  
  172.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  173.   | --program-suf | --program-su | --program-s)
  174.     ac_prev=program_suffix ;;
  175.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  176.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  177.     program_suffix="$ac_optarg" ;;
  178.  
  179.   -program-transform-name | --program-transform-name \
  180.   | --program-transform-nam | --program-transform-na \
  181.   | --program-transform-n | --program-transform- \
  182.   | --program-transform | --program-transfor \
  183.   | --program-transfo | --program-transf \
  184.   | --program-trans | --program-tran \
  185.   | --progr-tra | --program-tr | --program-t)
  186.     ac_prev=program_transform_name ;;
  187.   -program-transform-name=* | --program-transform-name=* \
  188.   | --program-transform-nam=* | --program-transform-na=* \
  189.   | --program-transform-n=* | --program-transform-=* \
  190.   | --program-transform=* | --program-transfor=* \
  191.   | --program-transfo=* | --program-transf=* \
  192.   | --program-trans=* | --program-tran=* \
  193.   | --progr-tra=* | --program-tr=* | --program-t=*)
  194.     program_transform_name="$ac_optarg" ;;
  195.  
  196.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  197.   | -silent | --silent | --silen | --sile | --sil)
  198.     silent=yes ;;
  199.  
  200.   -site | --site | --sit)
  201.     ac_prev=site ;;
  202.   -site=* | --site=* | --sit=*)
  203.     site="$ac_optarg" ;;
  204.  
  205.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  206.     ac_prev=srcdir ;;
  207.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  208.     srcdir="$ac_optarg" ;;
  209.  
  210.   -target | --target | --targe | --targ | --tar | --ta | --t)
  211.     ac_prev=target ;;
  212.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  213.     target="$ac_optarg" ;;
  214.  
  215.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  216.     verbose=yes ;;
  217.  
  218.   -version | --version | --versio | --versi | --vers)
  219.     echo "configure generated by autoconf version 2.1"
  220.     exit 0 ;;
  221.  
  222.   -with-* | --with-*)
  223.     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  224.     # Reject names that are not valid shell variable names.
  225.     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  226.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  227.     fi
  228.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  229.     case "$ac_option" in
  230.       *=*) ;;
  231.       *) ac_optarg=yes ;;
  232.     esac
  233.     eval "with_${ac_package}='$ac_optarg'" ;;
  234.  
  235.   -without-* | --without-*)
  236.     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  237.     # Reject names that are not valid shell variable names.
  238.     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  239.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  240.     fi
  241.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  242.     eval "with_${ac_package}=no" ;;
  243.  
  244.   --x)
  245.     # Obsolete; use --with-x.
  246.     with_x=yes ;;
  247.  
  248.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  249.   | --x-incl | --x-inc | --x-in | --x-i)
  250.     ac_prev=x_includes ;;
  251.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  252.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  253.     x_includes="$ac_optarg" ;;
  254.  
  255.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  256.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  257.     ac_prev=x_libraries ;;
  258.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  259.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  260.     x_libraries="$ac_optarg" ;;
  261.  
  262.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  263.     ;;
  264.  
  265.   *) 
  266.     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  267.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  268.     fi
  269.     if test "x$nonopt" != xNONE; then
  270.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  271.     fi
  272.     nonopt="$ac_option"
  273.     ;;
  274.  
  275.   esac
  276. done
  277.  
  278. if test -n "$ac_prev"; then
  279.   { echo "configure: error: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  280. fi
  281.  
  282. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  283.  
  284. # File descriptor usage:
  285. # 0 unused; standard input
  286. # 1 file creation
  287. # 2 errors and warnings
  288. # 3 unused; some systems may open it to /dev/tty
  289. # 4 checking for... messages and results
  290. # 5 compiler messages saved in config.log
  291. if test "$silent" = yes; then
  292.   exec 4>/dev/null
  293. else
  294.   exec 4>&1
  295. fi
  296. exec 5>./config.log
  297.  
  298. echo "\
  299. This file contains any messages produced by compilers while
  300. running configure, to aid debugging if configure makes a mistake.
  301. " 1>&5
  302.  
  303. # Strip out --no-create and --no-recursion so they do not pile up.
  304. # Also quote any args containing shell metacharacters.
  305. ac_configure_args=
  306. for ac_arg
  307. do
  308.   case "$ac_arg" in
  309.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  310.   | --no-cr | --no-c) ;;
  311.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  312.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  313.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  314.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  315.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  316.   esac
  317. done
  318.  
  319. # NLS nuisances.
  320. # Only set LANG and LC_ALL to C if already set.
  321. # These must not be set unconditionally because not all systems understand
  322. # e.g. LANG=C (notably SCO).
  323. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  324. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  325.  
  326. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  327. rm -rf conftest* confdefs.h
  328. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  329. /bin/echo > confdefs.h
  330.  
  331. # A filename unique to this package, relative to the directory that
  332. # configure is in, which we can look for to find out if srcdir is correct.
  333. ac_unique_file=rx.c
  334.  
  335. # Find the source files, if location was not specified.
  336. if test -z "$srcdir"; then
  337.   ac_srcdir_defaulted=yes
  338.   # Try the directory containing this script, then its parent.
  339.   ac_prog=$0
  340.   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  341.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  342.   srcdir=$ac_confdir
  343.   if test ! -r $srcdir/$ac_unique_file; then
  344.     srcdir=..
  345.   fi
  346. else
  347.   ac_srcdir_defaulted=no
  348. fi
  349. if test ! -r $srcdir/$ac_unique_file; then
  350.   if test "$ac_srcdir_defaulted" = yes; then
  351.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  352.   else
  353.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  354.   fi
  355. fi
  356. srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  357.  
  358. # Prefer explicitly selected file to automatically selected ones.
  359. if test -z "$CONFIG_SITE"; then
  360.   if test "x$prefix" != xNONE; then
  361.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  362.   else
  363.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  364.   fi
  365. fi
  366. for ac_site_file in $CONFIG_SITE; do
  367.   if test -r "$ac_site_file"; then
  368.     echo "loading site script $ac_site_file"
  369.     . "$ac_site_file"
  370.   fi
  371. done
  372.  
  373. if test -r "$cache_file"; then
  374.   echo "loading cache $cache_file"
  375.   . $cache_file
  376. else
  377.   echo "creating cache $cache_file"
  378.   > $cache_file
  379. fi
  380.  
  381. ac_ext=c
  382. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  383. ac_cpp='$CPP $CPPFLAGS'
  384. ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  385. ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  386.  
  387. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  388.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  389.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  390.     ac_n= ac_c='
  391. ' ac_t='    '
  392.   else
  393.     ac_n=-n ac_c= ac_t=
  394.   fi
  395. else
  396.   ac_n= ac_c='\c' ac_t=
  397. fi
  398.  
  399.  
  400.  
  401. # Extract the first word of "gcc", so it can be a program name with args.
  402. set dummy gcc; ac_word=$2
  403. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  404. if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  405.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  406. else
  407.   if test -n "$CC"; then
  408.   ac_cv_prog_CC="$CC" # Let the user override the test.
  409. else
  410.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  411.   for ac_dir in $PATH; do
  412.     test -z "$ac_dir" && ac_dir=.
  413.     if test -f $ac_dir/$ac_word; then
  414.       ac_cv_prog_CC="gcc"
  415.       break
  416.     fi
  417.   done
  418.   IFS="$ac_save_ifs"
  419.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  420. fi
  421. fi
  422. CC="$ac_cv_prog_CC"
  423. if test -n "$CC"; then
  424.   /bin/echo "$ac_t""$CC" 1>&4
  425. else
  426.   /bin/echo "$ac_t""no" 1>&4
  427. fi
  428.  
  429.  
  430. /bin/echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  431. if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  432.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  433. else
  434.   cat > conftest.c <<EOF
  435. #ifdef __GNUC__
  436.   yes;
  437. #endif
  438. EOF
  439. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  440.   ac_cv_prog_gcc=yes
  441. else
  442.   ac_cv_prog_gcc=no
  443. fi
  444. fi
  445. /bin/echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  446. if test $ac_cv_prog_gcc = yes; then
  447.   GCC=yes
  448.   if test "${CFLAGS+set}" != set; then
  449.     /bin/echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  450. if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  451.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  452. else
  453.   echo 'void f(){}' > conftest.c
  454. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  455.   ac_cv_prog_gcc_g=yes
  456. else
  457.   ac_cv_prog_gcc_g=no
  458. fi
  459. rm -f conftest*
  460.  
  461. fi
  462.     /bin/echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  463.     if test $ac_cv_prog_gcc_g = yes; then
  464.       # Amiga hack - suppress automatically using -g for now
  465.       # Also default to using -O2
  466.       CFLAGS="-O2"
  467.     else
  468.       CFLAGS="-O2"
  469.     fi
  470.   fi
  471. else
  472.   GCC=
  473.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  474. fi
  475.  
  476. /bin/echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  477. # On Suns, sometimes $CPP names a directory.
  478. if test -n "$CPP" && test -d "$CPP"; then
  479.   CPP=
  480. fi
  481. if test -z "$CPP"; then
  482. if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  483.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  484. else
  485.     # This must be in double quotes, not single quotes, because CPP may get
  486.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  487.   CPP="${CC-cc} -E"
  488.   # On the NeXT, cc -E runs the code through the compiler's parser,
  489.   # not just through cpp.
  490.   cat > conftest.$ac_ext <<EOF
  491. #line 492 "configure"
  492. #include "confdefs.h"
  493. #include <assert.h>
  494. Syntax Error
  495. EOF
  496. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  497. ac_err=`grep -v '^ *+' conftest.out`
  498. if test -z "$ac_err"; then
  499.   :
  500. else
  501.   /bin/echo "$ac_err" >&5
  502.   rm -rf conftest*
  503.   CPP="${CC-cc} -E -traditional-cpp"
  504.   cat > conftest.$ac_ext <<EOF
  505. #line 506 "configure"
  506. #include "confdefs.h"
  507. #include <assert.h>
  508. Syntax Error
  509. EOF
  510. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  511. ac_err=`grep -v '^ *+' conftest.out`
  512. if test -z "$ac_err"; then
  513.   :
  514. else
  515.   /bin/echo "$ac_err" >&5
  516.   rm -rf conftest*
  517.   CPP=/lib/cpp
  518. fi
  519. rm -f conftest*
  520. fi
  521. rm -f conftest*
  522.   ac_cv_prog_CPP="$CPP"
  523. fi
  524. fi
  525. CPP="$ac_cv_prog_CPP"
  526. /bin/echo "$ac_t""$CPP" 1>&4
  527.  
  528. # Extract the first word of "ranlib", so it can be a program name with args.
  529. set dummy ranlib; ac_word=$2
  530. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  531. if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  532.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  533. else
  534.   if test -n "$RANLIB"; then
  535.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  536. else
  537.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  538.   for ac_dir in $PATH; do
  539.     test -z "$ac_dir" && ac_dir=.
  540.     if test -f $ac_dir/$ac_word; then
  541.       ac_cv_prog_RANLIB="ranlib"
  542.       break
  543.     fi
  544.   done
  545.   IFS="$ac_save_ifs"
  546.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  547. fi
  548. fi
  549. RANLIB="$ac_cv_prog_RANLIB"
  550. if test -n "$RANLIB"; then
  551.   /bin/echo "$ac_t""$RANLIB" 1>&4
  552. else
  553.   /bin/echo "$ac_t""no" 1>&4
  554. fi
  555.  
  556. ac_aux_dir=
  557. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  558.   if test -f $ac_dir/install-sh; then
  559.     ac_aux_dir=$ac_dir
  560.     ac_install_sh="$ac_aux_dir/install-sh -c"
  561.     break
  562.   elif test -f $ac_dir/install.sh; then
  563.     ac_aux_dir=$ac_dir
  564.     ac_install_sh="$ac_aux_dir/install.sh -c"
  565.     break
  566.   fi
  567. done
  568. if test -z "$ac_aux_dir"; then
  569.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  570. fi
  571. ac_config_guess=$ac_aux_dir/config.guess
  572. ac_config_sub=$ac_aux_dir/config.sub
  573. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  574.  
  575. # Find a good install program.  We prefer a C program (faster),
  576. # so one script is as good as another.  But avoid the broken or
  577. # incompatible versions:
  578. # SysV /etc/install, /usr/sbin/install
  579. # SunOS /usr/etc/install
  580. # IRIX /sbin/install
  581. # AIX /bin/install
  582. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  583. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  584. # ./install, which can be erroneously created by make from ./install.sh.
  585. /bin/echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  586. if test -z "$INSTALL"; then
  587. if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  588.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  589. else
  590.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  591.   for ac_dir in $PATH; do
  592.     case "$ac_dir" in
  593.     ''|.|/gnu/etc) ;;
  594.     *)
  595.       # OSF1 and SCO ODT 3.0 have their own names for install.
  596.       for ac_prog in ginstall installbsd scoinst install; do
  597.         if test -f $ac_dir/$ac_prog; then
  598.       if test $ac_prog = install &&
  599.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  600.         # AIX install.  It has an incompatible calling convention.
  601.         # OSF/1 installbsd also uses dspmsg, but is usable.
  602.         :
  603.       else
  604.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  605.         break 2
  606.       fi
  607.     fi
  608.       done
  609.       ;;
  610.     esac
  611.   done
  612.   IFS="$ac_save_ifs"
  613.   # As a last resort, use the slow shell script.
  614.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  615. fi
  616.   INSTALL="$ac_cv_path_install"
  617. fi
  618. /bin/echo "$ac_t""$INSTALL" 1>&4
  619.  
  620. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  621. # It thinks the first close brace ends the variable substitution.
  622. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  623.  
  624. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  625.  
  626.  
  627. # If we cannot run a trivial program, we must be cross compiling.
  628. /bin/echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  629. if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  630.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  631. else
  632.   if test "$cross_compiling" = yes; then
  633.   ac_cv_cross=yes
  634. else
  635. cat > conftest.$ac_ext <<EOF
  636. #line 637 "configure"
  637. #include "confdefs.h"
  638. main(){return(0);}
  639. EOF
  640. eval $ac_link
  641. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  642.   ac_cv_c_cross=no
  643. else
  644.   ac_cv_c_cross=yes
  645. fi
  646. fi
  647. rm -fr conftest*
  648. fi
  649. cross_compiling=$ac_cv_c_cross
  650. /bin/echo "$ac_t""$ac_cv_c_cross" 1>&4
  651.  
  652. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  653. # for constant arguments.  Useless!
  654. /bin/echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  655. if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  656.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  657. else
  658.   cat > conftest.$ac_ext <<EOF
  659. #line 660 "configure"
  660. #include "confdefs.h"
  661. #include <alloca.h>
  662. int main() { return 0; }
  663. int t() {
  664. char *p = alloca(2 * sizeof(int));
  665. ; return 0; }
  666. EOF
  667. if eval $ac_link; then
  668.   rm -rf conftest*
  669.   ac_cv_header_alloca_h=yes
  670. else
  671.   rm -rf conftest*
  672.   ac_cv_header_alloca_h=no
  673. fi
  674. rm -f conftest*
  675.  
  676. fi
  677. /bin/echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  678. if test $ac_cv_header_alloca_h = yes; then
  679.   cat >> confdefs.h <<\EOF
  680. #define HAVE_ALLOCA_H 1
  681. EOF
  682.  
  683. fi
  684.  
  685. /bin/echo $ac_n "checking for alloca""... $ac_c" 1>&4
  686. if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  687.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  688. else
  689.   cat > conftest.$ac_ext <<EOF
  690. #line 691 "configure"
  691. #include "confdefs.h"
  692.  
  693. #ifdef __GNUC__
  694. # define alloca __builtin_alloca
  695. #else
  696. # if HAVE_ALLOCA_H
  697. #  include <alloca.h>
  698. # else
  699. #  ifdef _AIX
  700.  #pragma alloca
  701. #  else
  702. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  703. char *alloca ();
  704. #   endif
  705. #  endif
  706. # endif
  707. #endif
  708.  
  709. int main() { return 0; }
  710. int t() {
  711. char *p = (char *) alloca(1);
  712. ; return 0; }
  713. EOF
  714. if eval $ac_link; then
  715.   rm -rf conftest*
  716.   ac_cv_func_alloca=yes
  717. else
  718.   rm -rf conftest*
  719.   ac_cv_func_alloca=no
  720. fi
  721. rm -f conftest*
  722.  
  723. fi
  724. /bin/echo "$ac_t""$ac_cv_func_alloca" 1>&4
  725. if test $ac_cv_func_alloca = yes; then
  726.   cat >> confdefs.h <<\EOF
  727. #define HAVE_ALLOCA 1
  728. EOF
  729.  
  730. fi
  731.  
  732. if test $ac_cv_func_alloca = no; then
  733.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  734.   # that cause trouble.  Some versions do not even contain alloca or
  735.   # contain a buggy version.  If you still want to use their alloca,
  736.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  737.   ALLOCA=alloca.o
  738.   cat >> confdefs.h <<\EOF
  739. #define C_ALLOCA 1
  740. EOF
  741.  
  742.  
  743. /bin/echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  744. if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  745.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  746. else
  747.   cat > conftest.$ac_ext <<EOF
  748. #line 749 "configure"
  749. #include "confdefs.h"
  750. #if defined(CRAY) && ! defined(CRAY2)
  751. webecray
  752. #else
  753. wenotbecray
  754. #endif
  755.  
  756. EOF
  757. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  758.   egrep "webecray" >/dev/null 2>&1; then
  759.   rm -rf conftest*
  760.   ac_cv_os_cray=yes
  761. else
  762.   rm -rf conftest*
  763.   ac_cv_os_cray=no
  764. fi
  765. rm -f conftest*
  766.  
  767. fi
  768. /bin/echo "$ac_t""$ac_cv_os_cray" 1>&4
  769. if test $ac_cv_os_cray = yes; then
  770. /bin/echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  771. if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  772.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  773. else
  774.   cat > conftest.$ac_ext <<EOF
  775. #line 776 "configure"
  776. #include "confdefs.h"
  777. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  778. /* Override any gcc2 internal prototype to avoid an error.  */
  779. char _getb67(); 
  780.  
  781. int main() { return 0; }
  782. int t() {
  783.  
  784. /* The GNU C library defines this for functions which it implements
  785.     to always fail with ENOSYS.  Some functions are actually named
  786.     something starting with __ and the normal name is an alias.  */
  787. #if defined (__stub__getb67) || defined (__stub____getb67)
  788. choke me
  789. #else
  790. _getb67();
  791. #endif
  792.  
  793. ; return 0; }
  794. EOF
  795. if eval $ac_link; then
  796.   rm -rf conftest*
  797.   eval "ac_cv_func__getb67=yes"
  798. else
  799.   rm -rf conftest*
  800.   eval "ac_cv_func__getb67=no"
  801. fi
  802. rm -f conftest*
  803.  
  804. fi
  805. if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  806.   /bin/echo "$ac_t""yes" 1>&4
  807.   cat >> confdefs.h <<\EOF
  808. #define CRAY_STACKSEG_END _getb67
  809. EOF
  810.  
  811. else
  812.   /bin/echo "$ac_t""no" 1>&4
  813. /bin/echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  814. if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  815.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  816. else
  817.   cat > conftest.$ac_ext <<EOF
  818. #line 819 "configure"
  819. #include "confdefs.h"
  820. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  821. /* Override any gcc2 internal prototype to avoid an error.  */
  822. char GETB67(); 
  823.  
  824. int main() { return 0; }
  825. int t() {
  826.  
  827. /* The GNU C library defines this for functions which it implements
  828.     to always fail with ENOSYS.  Some functions are actually named
  829.     something starting with __ and the normal name is an alias.  */
  830. #if defined (__stub_GETB67) || defined (__stub___GETB67)
  831. choke me
  832. #else
  833. GETB67();
  834. #endif
  835.  
  836. ; return 0; }
  837. EOF
  838. if eval $ac_link; then
  839.   rm -rf conftest*
  840.   eval "ac_cv_func_GETB67=yes"
  841. else
  842.   rm -rf conftest*
  843.   eval "ac_cv_func_GETB67=no"
  844. fi
  845. rm -f conftest*
  846.  
  847. fi
  848. if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  849.   /bin/echo "$ac_t""yes" 1>&4
  850.   cat >> confdefs.h <<\EOF
  851. #define CRAY_STACKSEG_END GETB67
  852. EOF
  853.  
  854. else
  855.   /bin/echo "$ac_t""no" 1>&4
  856. /bin/echo $ac_n "checking for getb67""... $ac_c" 1>&4
  857. if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  858.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  859. else
  860.   cat > conftest.$ac_ext <<EOF
  861. #line 862 "configure"
  862. #include "confdefs.h"
  863. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  864. /* Override any gcc2 internal prototype to avoid an error.  */
  865. char getb67(); 
  866.  
  867. int main() { return 0; }
  868. int t() {
  869.  
  870. /* The GNU C library defines this for functions which it implements
  871.     to always fail with ENOSYS.  Some functions are actually named
  872.     something starting with __ and the normal name is an alias.  */
  873. #if defined (__stub_getb67) || defined (__stub___getb67)
  874. choke me
  875. #else
  876. getb67();
  877. #endif
  878.  
  879. ; return 0; }
  880. EOF
  881. if eval $ac_link; then
  882.   rm -rf conftest*
  883.   eval "ac_cv_func_getb67=yes"
  884. else
  885.   rm -rf conftest*
  886.   eval "ac_cv_func_getb67=no"
  887. fi
  888. rm -f conftest*
  889.  
  890. fi
  891. if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  892.   /bin/echo "$ac_t""yes" 1>&4
  893.   cat >> confdefs.h <<\EOF
  894. #define CRAY_STACKSEG_END getb67
  895. EOF
  896.  
  897. else
  898.   /bin/echo "$ac_t""no" 1>&4
  899. fi
  900.  
  901. fi
  902.  
  903. fi
  904.  
  905. fi
  906.  
  907. /bin/echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  908. if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  909.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  910. else
  911.   if test "$cross_compiling" = yes; then
  912.   ac_cv_c_stack_direction=0
  913. else
  914. cat > conftest.$ac_ext <<EOF
  915. #line 916 "configure"
  916. #include "confdefs.h"
  917. find_stack_direction ()
  918. {
  919.   static char *addr = 0;
  920.   auto char dummy;
  921.   if (addr == 0)
  922.     {
  923.       addr = &dummy;
  924.       return find_stack_direction ();
  925.     }
  926.   else
  927.     return (&dummy > addr) ? 1 : -1;
  928. }
  929. main ()
  930. {
  931.   exit (find_stack_direction() < 0);
  932. }
  933. EOF
  934. eval $ac_link
  935. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  936.   ac_cv_c_stack_direction=1
  937. else
  938.   ac_cv_c_stack_direction=-1
  939. fi
  940. fi
  941. rm -fr conftest*
  942. fi
  943. /bin/echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  944. cat >> confdefs.h <<EOF
  945. #define STACK_DIRECTION $ac_cv_c_stack_direction
  946. EOF
  947.  
  948. fi
  949.  
  950. /bin/echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  951. if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  952.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  953. else
  954.   cat > conftest.$ac_ext <<EOF
  955. #line 956 "configure"
  956. #include "confdefs.h"
  957. #include <stdlib.h>
  958. #include <stdarg.h>
  959. #include <string.h>
  960. #include <float.h>
  961. EOF
  962. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  963. ac_err=`grep -v '^ *+' conftest.out`
  964. if test -z "$ac_err"; then
  965.   rm -rf conftest*
  966.   ac_cv_header_stdc=yes
  967. else
  968.   /bin/echo "$ac_err" >&5
  969.   rm -rf conftest*
  970.   ac_cv_header_stdc=no
  971. fi
  972. rm -f conftest*
  973.  
  974. if test $ac_cv_header_stdc = yes; then
  975.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  976. cat > conftest.$ac_ext <<EOF
  977. #line 978 "configure"
  978. #include "confdefs.h"
  979. #include <string.h>
  980. EOF
  981. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  982.   egrep "memchr" >/dev/null 2>&1; then
  983.   :
  984. else
  985.   rm -rf conftest*
  986.   ac_cv_header_stdc=no
  987. fi
  988. rm -f conftest*
  989.  
  990. fi
  991.  
  992. if test $ac_cv_header_stdc = yes; then
  993.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  994. cat > conftest.$ac_ext <<EOF
  995. #line 996 "configure"
  996. #include "confdefs.h"
  997. #include <stdlib.h>
  998. EOF
  999. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1000.   egrep "free" >/dev/null 2>&1; then
  1001.   :
  1002. else
  1003.   rm -rf conftest*
  1004.   ac_cv_header_stdc=no
  1005. fi
  1006. rm -f conftest*
  1007.  
  1008. fi
  1009.  
  1010. if test $ac_cv_header_stdc = yes; then
  1011.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1012. if test "$cross_compiling" = yes; then
  1013.   ac_cv_header_stdc=no
  1014. else
  1015. cat > conftest.$ac_ext <<EOF
  1016. #line 1017 "configure"
  1017. #include "confdefs.h"
  1018. #include <ctype.h>
  1019. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1020. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1021. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1022. int main () { int i; for (i = 0; i < 256; i++)
  1023. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1024. exit (0); }
  1025.  
  1026. EOF
  1027. eval $ac_link
  1028. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1029.   :
  1030. else
  1031.   ac_cv_header_stdc=no
  1032. fi
  1033. fi
  1034. rm -fr conftest*
  1035. fi
  1036. fi
  1037. /bin/echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1038. if test $ac_cv_header_stdc = yes; then
  1039.   cat >> confdefs.h <<\EOF
  1040. #define STDC_HEADERS 1
  1041. EOF
  1042.  
  1043. fi
  1044.  
  1045. for ac_hdr in string.h
  1046. do
  1047. ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  1048. /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  1049. if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1050.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1051. else
  1052.   cat > conftest.$ac_ext <<EOF
  1053. #line 1054 "configure"
  1054. #include "confdefs.h"
  1055. #include <$ac_hdr>
  1056. EOF
  1057. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1058. ac_err=`grep -v '^ *+' conftest.out`
  1059. if test -z "$ac_err"; then
  1060.   rm -rf conftest*
  1061.   eval "ac_cv_header_$ac_safe=yes"
  1062. else
  1063.   /bin/echo "$ac_err" >&5
  1064.   rm -rf conftest*
  1065.   eval "ac_cv_header_$ac_safe=no"
  1066. fi
  1067. rm -f conftest*
  1068. fi
  1069. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1070.   /bin/echo "$ac_t""yes" 1>&4
  1071.     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1072.   cat >> confdefs.h <<EOF
  1073. #define $ac_tr_hdr 1
  1074. EOF
  1075.  
  1076. else
  1077.   /bin/echo "$ac_t""no" 1>&4
  1078. fi
  1079. done
  1080.  
  1081. trap '' 1 2 15
  1082. if test -w $cache_file; then
  1083. echo "updating cache $cache_file"
  1084. cat > $cache_file <<\EOF
  1085. # This file is a shell script that caches the results of configure
  1086. # tests run on this system so they can be shared between configure
  1087. # scripts and configure runs.  It is not useful on other systems.
  1088. # If it contains results you don't want to keep, you may remove or edit it.
  1089. #
  1090. # By default, configure uses ./config.cache as the cache file,
  1091. # creating it if it does not exist already.  You can give configure
  1092. # the --cache-file=FILE option to use a different cache file; that is
  1093. # what configure does when it calls configure scripts in
  1094. # subdirectories, so they share the cache.
  1095. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1096. # config.status only pays attention to the cache file if you give it the
  1097. # --recheck option to rerun configure.
  1098. #
  1099. EOF
  1100. # Ultrix sh set writes to stderr and can't be redirected directly.
  1101. (set) 2>&1 |
  1102.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  1103.   >> $cache_file
  1104. else
  1105. echo "not updating unwritable cache $cache_file"
  1106. fi
  1107.  
  1108. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  1109.  
  1110. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1111. # Let make expand exec_prefix.
  1112. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1113.  
  1114. # Any assignment to VPATH causes Sun make to only execute
  1115. # the first set of double-colon rules, so remove it if not needed.
  1116. # If there is a colon in the path, we need to keep it.
  1117. if test "x$srcdir" = x.; then
  1118.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1119. fi
  1120.  
  1121. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1122.  
  1123. # Transform confdefs.h into DEFS.
  1124. # Protect against shell expansion while executing Makefile rules.
  1125. # Protect against Makefile macro expansion.
  1126. cat > conftest.defs <<\EOF
  1127. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  1128. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1129. s%\[%\\&%g
  1130. s%\]%\\&%g
  1131. s%\$%$$%g
  1132. EOF
  1133. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1134. rm -f conftest.defs
  1135.  
  1136.  
  1137. # Without the "./", some shells look in PATH for config.status.
  1138. : ${CONFIG_STATUS=./config.status}
  1139.  
  1140. echo creating $CONFIG_STATUS
  1141. # Some systems, like AmigaDOS, won't allow you to remove a script that is
  1142. # being executed, so just move it out of the way instead.
  1143. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1144. cat > $CONFIG_STATUS <<EOF
  1145. #!/bin/sh
  1146. # Generated automatically by configure.
  1147. # Run this file to recreate the current configuration.
  1148. # This directory was configured as follows,
  1149. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1150. #
  1151. # $0 $ac_configure_args
  1152. #
  1153. # Compiler output produced by configure, useful for debugging
  1154. # configure, is in ./config.log if it exists.
  1155.  
  1156. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1157. for ac_option
  1158. do
  1159.   case "\$ac_option" in
  1160.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1161.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1162.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1163.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1164.     /bin/echo "$CONFIG_STATUS generated by autoconf version 2.1"
  1165.     exit 0 ;;
  1166.   -help | --help | --hel | --he | --h)
  1167.     echo "\$ac_cs_usage"; exit 0 ;;
  1168.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1169.   esac
  1170. done
  1171.  
  1172. ac_given_srcdir=$srcdir
  1173. ac_given_INSTALL="$INSTALL"
  1174.  
  1175. trap 'rm -f Makefile; exit 1' 1 2 15
  1176.  
  1177. # Protect against being on the right side of a sed subst in config.status. 
  1178. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1179.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1180. $ac_vpsub
  1181. $extrasub
  1182. s%@CFLAGS@%$CFLAGS%g
  1183. s%@CPPFLAGS@%$CPPFLAGS%g
  1184. s%@CXXFLAGS@%$CXXFLAGS%g
  1185. s%@DEFS@%$DEFS%g
  1186. s%@LDFLAGS@%$LDFLAGS%g
  1187. s%@LIBS@%$LIBS%g
  1188. s%@exec_prefix@%$exec_prefix%g
  1189. s%@prefix@%$prefix%g
  1190. s%@program_transform_name@%$program_transform_name%g
  1191. s%@CC@%$CC%g
  1192. s%@CPP@%$CPP%g
  1193. s%@RANLIB@%$RANLIB%g
  1194. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1195. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1196. s%@ALLOCA@%$ALLOCA%g
  1197.  
  1198. CEOF
  1199. EOF
  1200. cat >> $CONFIG_STATUS <<EOF
  1201.  
  1202. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1203. EOF
  1204. cat >> $CONFIG_STATUS <<\EOF
  1205. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1206.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1207.   case "$ac_file" in
  1208.   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  1209.        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  1210.   *) ac_file_in="${ac_file}.in" ;;
  1211.   esac
  1212.  
  1213.   # Adjust relative srcdir, etc. for subdirectories.
  1214.  
  1215.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1216.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1217.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1218.     # The file is in a subdirectory.
  1219.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1220.     ac_dir_suffix="/$ac_dir"
  1221.     # A "../" for each directory in $ac_dir_suffix.
  1222.     ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1223.   else
  1224.     ac_dir_suffix= ac_dots=
  1225.   fi
  1226.  
  1227.   case "$ac_given_srcdir" in
  1228.   .)  srcdir=.
  1229.       if test -z "$ac_dots"; then top_srcdir=.
  1230.       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  1231.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1232.   *) # Relative path.
  1233.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1234.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1235.   esac
  1236.  
  1237.   case "$ac_given_INSTALL" in
  1238.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1239.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1240.   esac
  1241.   echo creating "$ac_file"
  1242.   rm -f "$ac_file"
  1243.   configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
  1244.   case "$ac_file" in
  1245.   *Makefile*) ac_comsub="1i\\
  1246. # $configure_input" ;;
  1247.   *) ac_comsub= ;;
  1248.   esac
  1249.   sed -e "$ac_comsub
  1250. s%@configure_input@%$configure_input%g
  1251. s%@srcdir@%$srcdir%g
  1252. s%@top_srcdir@%$top_srcdir%g
  1253. s%@INSTALL@%$INSTALL%g
  1254. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1255. fi; done
  1256. rm -f conftest.subs
  1257.  
  1258.  
  1259.  
  1260. exit 0
  1261. EOF
  1262. chmod +x $CONFIG_STATUS
  1263. rm -fr confdefs* $ac_clean_files
  1264. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  1265.  
  1266.