home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / binutils-1.8.x-src.lha / binutils-1.8.x / configure < prev    next >
Encoding:
Text File  |  1994-06-22  |  20.5 KB  |  638 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=ld.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. # 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. # We want these before the checks, so the checks can modify their values.
  320. test -z "$CFLAGS" && CFLAGS= auto_cflags=1
  321. test -z "$LDFLAGS" && LDFLAGS=
  322.  
  323. if test -z "$CC"; then
  324.   # Extract the first word of `gcc', so it can be a program name with args.
  325.   set ac_dummy gcc; ac_word=$2
  326.   test -n "$silent" || /bin/echo "checking for $ac_word"
  327.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  328.   for ac_dir in $PATH; do
  329.     test -z "$ac_dir" && ac_dir=.
  330.     if test -f $ac_dir/$ac_word; then
  331.       CC="gcc"
  332.       break
  333.     fi
  334.   done
  335.   IFS="$ac_save_ifs"
  336. fi
  337. test -z "$CC" && CC="cc"
  338. test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  339.  
  340. # Find out if we are using GNU C, under whatever name.
  341. cat > conftest.c <<EOF
  342. #ifdef __GNUC__
  343.   yes
  344. #endif
  345. EOF
  346. ${CC-cc} -E conftest.c > conftest.out 2>&1
  347. if egrep yes conftest.out >/dev/null 2>&1; then
  348.   GCC=1 # For later tests.
  349. fi
  350. rm -f conftest*
  351.  
  352.  
  353. # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  354. test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
  355.  
  356.  
  357. test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  358. if test -z "$CPP"; then
  359.   # This must be in double quotes, not single quotes, because CPP may get
  360.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  361.   # make.  It must be expanded now.
  362.   CPP="${CC-cc} -E"
  363.   cat > conftest.${ac_ext} <<EOF
  364. #include "confdefs.h"
  365. #include <stdio.h>
  366. Syntax Error
  367. EOF
  368. # Some shells (Coherent) do redirections in the wrong order, so need
  369. # the parens.
  370. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  371. if test -z "$ac_err"; then
  372.   :
  373. else
  374.   rm -rf conftest*
  375.   CPP="${CC-cc} -E -traditional-cpp"
  376.   cat > conftest.${ac_ext} <<EOF
  377. #include "confdefs.h"
  378. #include <stdio.h>
  379. Syntax Error
  380. EOF
  381. # Some shells (Coherent) do redirections in the wrong order, so need
  382. # the parens.
  383. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  384. if test -z "$ac_err"; then
  385.   :
  386. else
  387.   rm -rf conftest*
  388.   CPP=/lib/cpp
  389. fi
  390. rm -f conftest*
  391. fi
  392. rm -f conftest*
  393. fi
  394. test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  395.  
  396. if test -n "$GCC"; then
  397.   test -n "$silent" || /bin/echo "checking whether -traditional is needed"
  398.   ac_pattern="Autoconf.*'x'"
  399.   ac_prog='#include <sgtty.h>
  400. Autoconf TIOCGETP'
  401.   cat > conftest.${ac_ext} <<EOF
  402. #include "confdefs.h"
  403. $ac_prog
  404. EOF
  405. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  406. if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  407.   rm -rf conftest*
  408.   ac_need_trad=1
  409.  
  410. fi
  411. rm -f conftest*
  412.  
  413.  
  414.   if test -z "$ac_need_trad"; then
  415.     ac_prog='#include <termio.h>
  416. Autoconf TCGETA'
  417.     cat > conftest.${ac_ext} <<EOF
  418. #include "confdefs.h"
  419. $ac_prog
  420. EOF
  421. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  422. if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  423.   rm -rf conftest*
  424.   ac_need_trad=1
  425.  
  426. fi
  427. rm -f conftest*
  428.  
  429.   fi
  430.   test -n "$ac_need_trad" && CC="$CC -traditional"
  431. fi
  432.  
  433. # Make sure to not get the incompatible SysV /etc/install and
  434. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  435. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  436. # or the AFS install, which mishandles nonexistent args, or
  437. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  438. # `staff', or /sbin/install on IRIX which has incompatible command-line
  439. # syntax.  Sigh.
  440. #
  441. #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  442. #     anyway.
  443. # This turns out not to be true, so the mere pathname isn't an indication
  444. # of whether the program works.  What we really need is a set of tests for
  445. # the install program to see if it actually works in all the required ways.
  446. #
  447. # Avoid using ./install, which might have been erroneously created
  448. # by make from ./install.sh.
  449. if test -z "${INSTALL}"; then
  450.   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  451.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  452.   for ac_dir in $PATH; do
  453.     case "$ac_dir" in
  454.     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  455.     *)
  456.       # OSF1 and SCO ODT 3.0 have their own names for install.
  457.       for ac_prog in installbsd scoinst install; do
  458.         if test -f $ac_dir/$ac_prog; then
  459.       if test $ac_prog = install &&
  460.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  461.         # AIX install.  It has an incompatible calling convention.
  462.         # OSF/1 installbsd also uses dspmsg, but is usable.
  463.         :
  464.       else
  465.         INSTALL="$ac_dir/$ac_prog -c"
  466.         break 2
  467.       fi
  468.     fi
  469.       done
  470.       ;;
  471.     esac
  472.   done
  473.   IFS="$ac_save_ifs"
  474. fi
  475.  
  476. if test -z "$INSTALL"; then
  477.   # As a last resort, use the slow shell script.
  478.   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  479.     if test -f $ac_dir/install.sh; then
  480.       INSTALL="$ac_dir/install.sh -c"; break
  481.     fi
  482.   done
  483. fi
  484. if test -z "$INSTALL"; then
  485.   /bin/echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  486. fi
  487. test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  488.  
  489. # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  490. # It thinks the first close brace ends the variable substitution.
  491. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  492. test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  493.  
  494. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  495. test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  496.  
  497.  
  498.  
  499. # The preferred way to propogate these variables is regular @ substitutions.
  500. if test -n "$prefix"; then
  501.   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  502. else
  503.   prefix=/usr/local
  504. fi
  505. if test -n "$exec_prefix"; then
  506.   ac_prsub="$ac_prsub
  507. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  508. else
  509.   exec_prefix='${prefix}' # Let make expand it.
  510. fi
  511.  
  512. # Any assignment to VPATH causes Sun make to only execute
  513. # the first set of double-colon rules, so remove it if not needed.
  514. # If there is a colon in the path, we need to keep it.
  515. if test "x$srcdir" = x.; then
  516.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  517. fi
  518.  
  519. # Quote sed substitution magic chars in DEFS.
  520. cat >conftest.def <<EOF
  521. $DEFS
  522. EOF
  523. ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  524. DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  525. rm -f conftest.def
  526. # Substitute for predefined variables.
  527.  
  528. trap 'rm -f config.status; exit 1' 1 2 15
  529. /bin/echo creating config.status
  530. # Some systems, like AmigaDOS, won't allow you to remove a script that is
  531. # being executed, so just move it out of the way instead.
  532. if test -f config.status; then mv config.status config.status.old; else true; fi
  533. cat > config.status <<EOF
  534. #!/bin/sh
  535. # Generated automatically by configure.
  536. # Run this file to recreate the current configuration.
  537. # This directory was configured as follows,
  538. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  539. #
  540. # $0 $configure_args
  541.  
  542. ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  543. for ac_option
  544. do
  545.   case "\$ac_option" in
  546.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  547.     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  548.     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  549.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  550.     /bin/echo "config.status generated by autoconf version 1.11"
  551.     exit 0 ;;
  552.   -help | --help | --hel | --he | --h)
  553.     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  554.   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  555.   esac
  556. done
  557.  
  558. trap 'rm -f Makefile; exit 1' 1 2 15
  559. CC='$CC'
  560. CFLAGS='$CFLAGS'
  561. LDFLAGS='$LDFLAGS'
  562. CPP='$CPP'
  563. INSTALL='$INSTALL'
  564. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  565. INSTALL_DATA='$INSTALL_DATA'
  566. LIBS='$LIBS'
  567. srcdir='$srcdir'
  568. top_srcdir='$top_srcdir'
  569. prefix='$prefix'
  570. exec_prefix='$exec_prefix'
  571. DEFS='$DEFS'
  572. ac_prsub='$ac_prsub'
  573. ac_vpsub='$ac_vpsub'
  574. extrasub='$extrasub'
  575. EOF
  576. cat >> config.status <<\EOF
  577.  
  578. ac_given_srcdir=$srcdir
  579.  
  580. CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  581. for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  582.   # Remove last slash and all that follows it.  Not all systems have dirname.
  583.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  584.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  585.     # The file is in a subdirectory.
  586.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  587.     ac_dir_suffix="/$ac_dir"
  588.   else
  589.     ac_dir_suffix=
  590.   fi
  591.  
  592.   # A "../" for each directory in $ac_dir_suffix.
  593.   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  594.   case "$ac_given_srcdir" in
  595.   .)  srcdir=.
  596.       if test -z "$ac_dir_suffix"; then top_srcdir=.
  597.       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  598.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  599.   *) # Relative path.
  600.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  601.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  602.   esac
  603.  
  604.   /bin/echo creating "$ac_file"
  605.   rm -f "$ac_file"
  606.   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  607.   case "$ac_file" in
  608.     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  609.     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  610.   esac
  611.   sed -e "
  612. $ac_prsub
  613. $ac_vpsub
  614. $extrasub
  615. s%@CC@%$CC%g
  616. s%@CFLAGS@%$CFLAGS%g
  617. s%@LDFLAGS@%$LDFLAGS%g
  618. s%@CPP@%$CPP%g
  619. s%@INSTALL@%$INSTALL%g
  620. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  621. s%@INSTALL_DATA@%$INSTALL_DATA%g
  622. s%@LIBS@%$LIBS%g
  623. s%@srcdir@%$srcdir%g
  624. s%@top_srcdir@%$top_srcdir%g
  625. s%@prefix@%$prefix%g
  626. s%@exec_prefix@%$exec_prefix%g
  627. s%@DEFS@%$DEFS%
  628. " $ac_given_srcdir/${ac_file}.in >> $ac_file
  629. fi; done
  630.  
  631.  
  632. exit 0
  633. EOF
  634. chmod +x config.status
  635. # Some shells look in PATH for config.status without the "./".
  636. test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  637.  
  638.