home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / crypl200.zip / BNLIB / CONFIGUR < prev    next >
Text File  |  1996-01-28  |  53KB  |  1,795 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.7 
  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=/usr/local
  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. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. mandir='${prefix}/man'
  48.  
  49. # Initialize some other variables.
  50. subdirs=
  51. MFLAGS= MAKEFLAGS=
  52.  
  53. ac_prev=
  54. for ac_option
  55. do
  56.  
  57.   # If the previous option needs an argument, assign it.
  58.   if test -n "$ac_prev"; then
  59.     eval "$ac_prev=\$ac_option"
  60.     ac_prev=
  61.     continue
  62.   fi
  63.  
  64.   case "$ac_option" in
  65.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  66.   *) ac_optarg= ;;
  67.   esac
  68.  
  69.   # Accept the important Cygnus configure options, so we can diagnose typos.
  70.  
  71.   case "$ac_option" in
  72.  
  73.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  74.     ac_prev=bindir ;;
  75.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  76.     bindir="$ac_optarg" ;;
  77.  
  78.   -build | --build | --buil | --bui | --bu)
  79.     ac_prev=build ;;
  80.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  81.     build="$ac_optarg" ;;
  82.  
  83.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  84.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  85.     ac_prev=cache_file ;;
  86.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  87.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  88.     cache_file="$ac_optarg" ;;
  89.  
  90.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  91.     ac_prev=datadir ;;
  92.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  93.   | --da=*)
  94.     datadir="$ac_optarg" ;;
  95.  
  96.   -disable-* | --disable-*)
  97.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  98.     # Reject names that are not valid shell variable names.
  99.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  100.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  101.     fi
  102.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  103.     eval "enable_${ac_feature}=no" ;;
  104.  
  105.   -enable-* | --enable-*)
  106.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  107.     # Reject names that are not valid shell variable names.
  108.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  109.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  110.     fi
  111.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  112.     case "$ac_option" in
  113.       *=*) ;;
  114.       *) ac_optarg=yes ;;
  115.     esac
  116.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  117.  
  118.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  119.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  120.   | --exec | --exe | --ex)
  121.     ac_prev=exec_prefix ;;
  122.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  123.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  124.   | --exec=* | --exe=* | --ex=*)
  125.     exec_prefix="$ac_optarg" ;;
  126.  
  127.   -gas | --gas | --ga | --g)
  128.     # Obsolete; use --with-gas.
  129.     with_gas=yes ;;
  130.  
  131.   -help | --help | --hel | --he)
  132.     # Omit some internal or obsolete options to make the list less imposing.
  133.     # This message is too long to be a string in the A/UX 3.1 sh.
  134.     cat << EOF
  135. Usage: configure [options] [host]
  136. Options: [defaults in brackets after descriptions]
  137. Configuration:
  138.   --cache-file=FILE       cache test results in FILE
  139.   --help                  print this message
  140.   --no-create             do not create output files
  141.   --quiet, --silent       do not print \`checking...' messages
  142.   --version               print the version of autoconf that created configure
  143. Directory and file names:
  144.   --prefix=PREFIX         install architecture-independent files in PREFIX
  145.                           [$ac_default_prefix]
  146.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  147.                           [same as prefix]
  148.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  149.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  150.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  151.   --datadir=DIR           read-only architecture-independent data in DIR
  152.                           [PREFIX/share]
  153.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  154.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  155.                           [PREFIX/com]
  156.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  157.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  158.   --includedir=DIR        C header files in DIR [PREFIX/include]
  159.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  160.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  161.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  162.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  163.   --program-prefix=PREFIX prepend PREFIX to installed program names
  164.   --program-suffix=SUFFIX append SUFFIX to installed program names
  165.   --program-transform-name=PROGRAM
  166.                           run sed PROGRAM on installed program names
  167. EOF
  168.     cat << EOF
  169. Host type:
  170.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  171.   --host=HOST             configure for HOST [guessed]
  172.   --target=TARGET         configure for TARGET [TARGET=HOST]
  173. Features and packages:
  174.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  175.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  176.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  177.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  178.   --x-includes=DIR        X include files are in DIR
  179.   --x-libraries=DIR       X library files are in DIR
  180. EOF
  181.     if test -n "$ac_help"; then
  182.       echo "--enable and --with options recognized:$ac_help"
  183.     fi
  184.     exit 0 ;;
  185.  
  186.   -host | --host | --hos | --ho)
  187.     ac_prev=host ;;
  188.   -host=* | --host=* | --hos=* | --ho=*)
  189.     host="$ac_optarg" ;;
  190.  
  191.   -includedir | --includedir | --includedi | --included | --include \
  192.   | --includ | --inclu | --incl | --inc)
  193.     ac_prev=includedir ;;
  194.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  195.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  196.     includedir="$ac_optarg" ;;
  197.  
  198.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  199.     ac_prev=infodir ;;
  200.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  201.     infodir="$ac_optarg" ;;
  202.  
  203.   -libdir | --libdir | --libdi | --libd)
  204.     ac_prev=libdir ;;
  205.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  206.     libdir="$ac_optarg" ;;
  207.  
  208.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  209.   | --libexe | --libex | --libe)
  210.     ac_prev=libexecdir ;;
  211.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  212.   | --libexe=* | --libex=* | --libe=*)
  213.     libexecdir="$ac_optarg" ;;
  214.  
  215.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  216.   | --localstate | --localstat | --localsta | --localst \
  217.   | --locals | --local | --loca | --loc | --lo)
  218.     ac_prev=localstatedir ;;
  219.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  220.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  221.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  222.     localstatedir="$ac_optarg" ;;
  223.  
  224.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  225.     ac_prev=mandir ;;
  226.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  227.     mandir="$ac_optarg" ;;
  228.  
  229.   -nfp | --nfp | --nf)
  230.     # Obsolete; use --without-fp.
  231.     with_fp=no ;;
  232.  
  233.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  234.   | --no-cr | --no-c)
  235.     no_create=yes ;;
  236.  
  237.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  238.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  239.     no_recursion=yes ;;
  240.  
  241.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  242.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  243.   | --oldin | --oldi | --old | --ol | --o)
  244.     ac_prev=oldincludedir ;;
  245.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  246.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  247.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  248.     oldincludedir="$ac_optarg" ;;
  249.  
  250.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  251.     ac_prev=prefix ;;
  252.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  253.     prefix="$ac_optarg" ;;
  254.  
  255.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  256.   | --program-pre | --program-pr | --program-p)
  257.     ac_prev=program_prefix ;;
  258.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  259.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  260.     program_prefix="$ac_optarg" ;;
  261.  
  262.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  263.   | --program-suf | --program-su | --program-s)
  264.     ac_prev=program_suffix ;;
  265.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  266.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  267.     program_suffix="$ac_optarg" ;;
  268.  
  269.   -program-transform-name | --program-transform-name \
  270.   | --program-transform-nam | --program-transform-na \
  271.   | --program-transform-n | --program-transform- \
  272.   | --program-transform | --program-transfor \
  273.   | --program-transfo | --program-transf \
  274.   | --program-trans | --program-tran \
  275.   | --progr-tra | --program-tr | --program-t)
  276.     ac_prev=program_transform_name ;;
  277.   -program-transform-name=* | --program-transform-name=* \
  278.   | --program-transform-nam=* | --program-transform-na=* \
  279.   | --program-transform-n=* | --program-transform-=* \
  280.   | --program-transform=* | --program-transfor=* \
  281.   | --program-transfo=* | --program-transf=* \
  282.   | --program-trans=* | --program-tran=* \
  283.   | --progr-tra=* | --program-tr=* | --program-t=*)
  284.     program_transform_name="$ac_optarg" ;;
  285.  
  286.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  287.   | -silent | --silent | --silen | --sile | --sil)
  288.     silent=yes ;;
  289.  
  290.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  291.     ac_prev=sbindir ;;
  292.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  293.   | --sbi=* | --sb=*)
  294.     sbindir="$ac_optarg" ;;
  295.  
  296.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  297.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  298.   | --sharedst | --shareds | --shared | --share | --shar \
  299.   | --sha | --sh)
  300.     ac_prev=sharedstatedir ;;
  301.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  302.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  303.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  304.   | --sha=* | --sh=*)
  305.     sharedstatedir="$ac_optarg" ;;
  306.  
  307.   -site | --site | --sit)
  308.     ac_prev=site ;;
  309.   -site=* | --site=* | --sit=*)
  310.     site="$ac_optarg" ;;
  311.  
  312.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  313.     ac_prev=srcdir ;;
  314.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  315.     srcdir="$ac_optarg" ;;
  316.  
  317.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  318.   | --syscon | --sysco | --sysc | --sys | --sy)
  319.     ac_prev=sysconfdir ;;
  320.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  321.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  322.     sysconfdir="$ac_optarg" ;;
  323.  
  324.   -target | --target | --targe | --targ | --tar | --ta | --t)
  325.     ac_prev=target ;;
  326.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  327.     target="$ac_optarg" ;;
  328.  
  329.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  330.     verbose=yes ;;
  331.  
  332.   -version | --version | --versio | --versi | --vers)
  333.     echo "configure generated by autoconf version 2.7"
  334.     exit 0 ;;
  335.  
  336.   -with-* | --with-*)
  337.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  338.     # Reject names that are not valid shell variable names.
  339.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  340.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  341.     fi
  342.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  343.     case "$ac_option" in
  344.       *=*) ;;
  345.       *) ac_optarg=yes ;;
  346.     esac
  347.     eval "with_${ac_package}='$ac_optarg'" ;;
  348.  
  349.   -without-* | --without-*)
  350.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  351.     # Reject names that are not valid shell variable names.
  352.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  353.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  354.     fi
  355.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  356.     eval "with_${ac_package}=no" ;;
  357.  
  358.   --x)
  359.     # Obsolete; use --with-x.
  360.     with_x=yes ;;
  361.  
  362.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  363.   | --x-incl | --x-inc | --x-in | --x-i)
  364.     ac_prev=x_includes ;;
  365.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  366.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  367.     x_includes="$ac_optarg" ;;
  368.  
  369.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  370.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  371.     ac_prev=x_libraries ;;
  372.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  373.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  374.     x_libraries="$ac_optarg" ;;
  375.  
  376.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  377.     ;;
  378.  
  379.   *)
  380.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  381.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  382.     fi
  383.     if test "x$nonopt" != xNONE; then
  384.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  385.     fi
  386.     nonopt="$ac_option"
  387.     ;;
  388.  
  389.   esac
  390. done
  391.  
  392. if test -n "$ac_prev"; then
  393.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  394. fi
  395.  
  396. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  397.  
  398. # File descriptor usage:
  399. # 0 standard input
  400. # 1 file creation
  401. # 2 errors and warnings
  402. # 3 some systems may open it to /dev/tty
  403. # 4 used on the Kubota Titan
  404. # 6 checking for... messages and results
  405. # 5 compiler messages saved in config.log
  406. if test "$silent" = yes; then
  407.   exec 6>/dev/null
  408. else
  409.   exec 6>&1
  410. fi
  411. exec 5>./config.log
  412.  
  413. echo "\
  414. This file contains any messages produced by compilers while
  415. running configure, to aid debugging if configure makes a mistake.
  416. " 1>&5
  417.  
  418. # Strip out --no-create and --no-recursion so they do not pile up.
  419. # Also quote any args containing shell metacharacters.
  420. ac_configure_args=
  421. for ac_arg
  422. do
  423.   case "$ac_arg" in
  424.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  425.   | --no-cr | --no-c) ;;
  426.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  428.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  429.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  430.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  431.   esac
  432. done
  433.  
  434. # NLS nuisances.
  435. # Only set LANG and LC_ALL to C if already set.
  436. # These must not be set unconditionally because not all systems understand
  437. # e.g. LANG=C (notably SCO).
  438. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  439. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  440.  
  441. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  442. rm -rf conftest* confdefs.h
  443. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  444. echo > confdefs.h
  445.  
  446. # A filename unique to this package, relative to the directory that
  447. # configure is in, which we can look for to find out if srcdir is correct.
  448. ac_unique_file=lbn16.c
  449.  
  450. # Find the source files, if location was not specified.
  451. if test -z "$srcdir"; then
  452.   ac_srcdir_defaulted=yes
  453.   # Try the directory containing this script, then its parent.
  454.   ac_prog=$0
  455.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  456.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  457.   srcdir=$ac_confdir
  458.   if test ! -r $srcdir/$ac_unique_file; then
  459.     srcdir=..
  460.   fi
  461. else
  462.   ac_srcdir_defaulted=no
  463. fi
  464. if test ! -r $srcdir/$ac_unique_file; then
  465.   if test "$ac_srcdir_defaulted" = yes; then
  466.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  467.   else
  468.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  469.   fi
  470. fi
  471. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  472.  
  473. # Prefer explicitly selected file to automatically selected ones.
  474. if test -z "$CONFIG_SITE"; then
  475.   if test "x$prefix" != xNONE; then
  476.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  477.   else
  478.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  479.   fi
  480. fi
  481. for ac_site_file in $CONFIG_SITE; do
  482.   if test -r "$ac_site_file"; then
  483.     echo "loading site script $ac_site_file"
  484.     . "$ac_site_file"
  485.   fi
  486. done
  487.  
  488. if test -r "$cache_file"; then
  489.   echo "loading cache $cache_file"
  490.   . $cache_file
  491. else
  492.   echo "creating cache $cache_file"
  493.   > $cache_file
  494. fi
  495.  
  496. ac_ext=c
  497. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  498. ac_cpp='echo $CPP $CPPFLAGS 1>&5;
  499. $CPP $CPPFLAGS'
  500. ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
  501. ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  502. ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
  503. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  504.  
  505. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  506.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  507.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  508.     ac_n= ac_c='
  509. ' ac_t='    '
  510.   else
  511.     ac_n=-n ac_c= ac_t=
  512.   fi
  513. else
  514.   ac_n= ac_c='\c' ac_t=
  515. fi
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522. # Find a compiler to use.
  523. # Check 1) The $CC environment varaible, 2) gcc, 3) acc, and 4) cc.
  524. # This deals with brain-damaged Sun systems that place a bogus cc or
  525. # acc executable in the $PATH, which just prints an error and exit.
  526. # We deal with this by actually trying to compile a trivial test program.
  527. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  528.   echo $ac_n "checking For C compiler (cached)""... $ac_c" 1>&6
  529.   CC="$ac_cv_prog_CC"
  530.   echo "$ac_t""$CC" 1>&6
  531. elif test -n "$CC"; then
  532.   ac_cv_prog_CC="$CC" # Let the user override the test.
  533.   echo $ac_n "checking For C compiler""... $ac_c" 1>&6
  534.   echo "$ac_t""$CC" 1>&6
  535. else
  536.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  537.   echo 'main(){return 0;}' > conftest.$ac_ext
  538.   for ac_prog in gcc acc cc; do
  539. # Extract the first word of "$ac_prog", so it can be a program name with args.
  540.     set dummy $ac_prog; ac_word=$2
  541.     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  542.     for ac_dir in $PATH; do
  543.       test -z "$ac_dir" && ac_dir=.
  544.       if test -x "$ac_dir/$ac_word"; then
  545.         CC="$ac_prog"
  546.         if eval $ac_compile; then
  547.           ac_cv_prog_CC="$ac_prog"
  548.         fi
  549.         break
  550.       fi
  551.     done
  552.     CC="$ac_cv_prog_CC"
  553.     if test -n "$CC"; then
  554.       echo "$ac_t""$ac_dir/$CC" 1>&6
  555.       break;
  556.     fi
  557.     echo "$ac_t""no" 1>&6
  558.   done
  559.   if test ! -n "$CC"; then
  560.     { echo "configure: error: no C compiler found" 1>&2; exit 1; }
  561.   fi
  562.   IFS="$ac_save_ifs"
  563.   rm -f conftest*
  564. fi
  565.  
  566.  
  567. echo $ac_n "checking whether we are using GNU CC""... $ac_c" 1>&6
  568. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  569.   echo $ac_n "(cached) $ac_c" 1>&6
  570. else
  571.   cat > conftest.c <<EOF
  572. #ifdef __GNUC__
  573.   yes;
  574. #endif
  575. EOF
  576. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  577.   ac_cv_prog_gcc=yes
  578. else
  579.   ac_cv_prog_gcc=no
  580. fi
  581. fi
  582.  
  583. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  584.  
  585. if test $ac_cv_prog_gcc = yes; then
  586.   if test "${CFLAGS+set}" != set; then
  587. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  588. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  589.   echo $ac_n "(cached) $ac_c" 1>&6
  590. else
  591.   echo 'void f(){}' > conftest.c
  592. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  593.   ac_cv_prog_gcc_g=yes
  594. else
  595.   ac_cv_prog_gcc_g=no
  596. fi
  597. rm -f conftest*
  598.  
  599. fi
  600.  
  601. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  602.   fi
  603.  
  604.   # If we're using GCC, perform some Deep Magic to enable the result to
  605.   # link cleanly with code compiled with a compiler that doesn't understand
  606.   # GCC's support library (-lgcc).  Do a link, to relocatable object form,
  607.   # with just -lgcc.  If it's not GCC, do the normal -c thing.
  608.   # These substitutions are used in the Makefile to force that behaviour.
  609.   GCCMAGIC1='-Wl,-r -nostdlib'
  610.   GCCMAGIC2=-lgcc
  611. else
  612.   GCCMAGIC1=-c
  613.   GCCMAGIC2=
  614. fi
  615.  
  616.  
  617.  
  618. # Now, figure out the CFLAGS we want.  If the user didn't *ask*
  619. # for CFLAGS, we're going to use some ideas of our own.
  620. if test "$(CFLAGS+set)" != set; then
  621.  
  622. # First, remember one useful thing that was just figured out,
  623. # namely whether the compiler can take -g with -O.  (Most compilers
  624. # seem to do the opposite of what I want here - if you give both, -g
  625. # overrides and disables optimization.)  This is only done for
  626. # gcc at the moment, and the no/yes combination is possible but
  627. # misleading
  628. if test $ac_cv_prog_gcc$ac_cv_prog_gcc_g = yesyes; then
  629.   CFLAGS=-g
  630. else
  631.   CFLAGS=""
  632. fi
  633.  
  634. # Now, the whole raison d'e^tre of this library is that it's *fast*.
  635. # So we are *not* happy with autoconf's normal conservative compilation
  636. # flags.  Try to figure out what kind the compiler we're using and soup
  637. # things up a bit.  Also turn on warnings if possible.
  638. # If it's GCC, crank up optimization to -O6, and try to add some
  639. # -m options, too.
  640. # Otherwise, it gets even more ad-hoc, but the test below works for the
  641. # SunPro C compiler and cranks it up to maximum optimization.
  642. echo $ac_n "checking for useful tuning options (\$TUNE)""... $ac_c" 1>&6
  643. if test $ac_cv_prog_gcc = yes; then
  644.   : ${WARN="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"}
  645.   if test "${TUNE+set}" != set; then
  646.     TUNE=-O6
  647.     case `$CC -v 2>&1` in
  648.     *gcc-lib/sparc-*)
  649.     # Try to use the architecture-detecting tool with SunPro CC.
  650.     if bn_tune=`(fpversion -foption) 2>/dev/null`; then
  651.       if test "$bn_tune" = xcg92 || test "$bn_tune" = cg92; then
  652.         TUNE="$TUNE -mv8"
  653.       elif test "$bn_tune" != xcg89 && test "$bn_tune" != cg89; then
  654.         TUNE="$TUNE -mv8"
  655.         bn_tune_guess=yes
  656.       fi
  657.     else
  658.       TUNE="$TUNE -mv8"
  659.       bn_tune_guess=yes
  660.     fi
  661.     esac
  662.   fi
  663. elif $CC -flags 2>&1 | grep SunSoft >/dev/null 2>&1; then
  664.   if test "${WARN+set}" != set; then
  665.     if $CC -flags 2>&1 | grep 'checking' | grep '^-vc' > /dev/null 2>&1; then
  666.       WARN=-vc
  667.     elif $CC -flags 2>&1 | grep 'checking' | grep '^-v ' > /dev/null 2>&1; then
  668.       WARN=-v
  669.     fi
  670.     if $CC -flags 2>&1 | grep '^-xstrconst' > /dev/null 2>&1; then
  671.       WARN="${WARN}${WARN+ }-xstrconst"
  672.     fi
  673.   fi
  674.   # SunPro C compiler - now grok version and platform
  675.   if test "${TUNE+set}" != set; then
  676.     if $CC -flags 2>&1 | grep '^-xO.*5' >/dev/null 2>&1; then
  677.       TUNE=-xO5
  678.     else
  679.       TUNE=-xO4
  680.     fi
  681.     # Architecture: -native iv avail., else as fpversion says, else guess -mv8
  682.     if $CC -flags 2>&1 | grep '^-native' >/dev/null 2>&1; then
  683.       TUNE="$TUNE -native"
  684.     elif bn_tune=`(fpversion -foption) 2>/dev/null`; then
  685.       TUNE="$TUNE -$bn_tune"
  686.     elif $CC -flags 2>&1 | grep '^-xcg92' >/dev/null 2>&1; then
  687.       TUNE="$TUNE -xcg92"
  688.       bn_tune_guess=yes
  689.     fi
  690.   fi
  691. fi
  692. bn_tune_set=${TUNE+set}
  693. # If nothing better is available, turn on -O
  694. : ${TUNE=-O}
  695. echo "$ac_t""${TUNE-none}" 1>&6
  696. if test "$bn_tune_set" != set; then
  697.   echo "configure: warning: not optimizing heavily - try setting \$CFLAGS" 1>&2
  698. elif test "$bn_tune_guess" = yes; then
  699.   echo "configure: warning: architecture guessed.  If incorrect, use explicit \$TUNE." 1>&2
  700. fi
  701. echo $ac_n "checking for useful warning options (\$WARN)""... $ac_c" 1>&6
  702. echo "$ac_t""${WARN-none}" 1>&6
  703. fi 
  704. # ^^ End of "$(CFLAGS+set)" != set condition
  705.  
  706.  
  707.  
  708. # Find "ranlib".  Sone systems don't have or need ranlib.  If so,
  709. # ":" (do nothing) is used instead.
  710. # Extract the first word of "ranlib", so it can be a program name with args.
  711. set dummy ranlib; ac_word=$2
  712. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  713. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  714.   echo $ac_n "(cached) $ac_c" 1>&6
  715. else
  716.   if test -n "$RANLIB"; then
  717.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  718. else
  719.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  720.   for ac_dir in $PATH; do
  721.     test -z "$ac_dir" && ac_dir=.
  722.     if test -f $ac_dir/$ac_word; then
  723.       if test -x $ac_dir/$ac_word; then
  724.         ac_cv_prog_RANLIB="ranlib"
  725.       fi
  726.       break
  727.     fi
  728.   done
  729.   IFS="$ac_save_ifs"
  730.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  731. fi
  732. fi
  733. RANLIB="$ac_cv_prog_RANLIB"
  734. if test -n "$RANLIB"; then
  735.   echo "$ac_t""$RANLIB" 1>&6
  736. else
  737.   echo "$ac_t""no" 1>&6
  738. fi
  739.  
  740.  
  741.  
  742. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  743. # On Suns, sometimes $CPP names a directory.
  744. if test -n "$CPP" && test -d "$CPP"; then
  745.   CPP=
  746. fi
  747. if test -z "$CPP"; then
  748. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  749.   echo $ac_n "(cached) $ac_c" 1>&6
  750. else
  751.     # This must be in double quotes, not single quotes, because CPP may get
  752.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  753.   CPP="${CC-cc} -E"
  754.   # On the NeXT, cc -E runs the code through the compiler's parser,
  755.   # not just through cpp.
  756.   cat > conftest.$ac_ext <<EOF
  757. #line 758 "configure"
  758. #include "confdefs.h"
  759. #include <assert.h>
  760. Syntax Error
  761. EOF
  762. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  763. ac_err=`grep -v '^ *+' conftest.out`
  764. if test -z "$ac_err"; then
  765.   :
  766. else
  767.   echo "$ac_err" >&5
  768.   rm -rf conftest*
  769.   CPP="${CC-cc} -E -traditional-cpp"
  770.   cat > conftest.$ac_ext <<EOF
  771. #line 772 "configure"
  772. #include "confdefs.h"
  773. #include <assert.h>
  774. Syntax Error
  775. EOF
  776. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  777. ac_err=`grep -v '^ *+' conftest.out`
  778. if test -z "$ac_err"; then
  779.   :
  780. else
  781.   echo "$ac_err" >&5
  782.   rm -rf conftest*
  783.   CPP=/lib/cpp
  784. fi
  785. rm -f conftest*
  786. fi
  787. rm -f conftest*
  788.   ac_cv_prog_CPP="$CPP"
  789. fi
  790.   CPP="$ac_cv_prog_CPP"
  791. else
  792.   ac_cv_prog_CPP="$CPP"
  793. fi
  794. echo "$ac_t""$CPP" 1>&6
  795.  
  796. # If we cannot run a trivial program, we must be cross compiling.
  797. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  798. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  799.   echo $ac_n "(cached) $ac_c" 1>&6
  800. else
  801.   if test "$cross_compiling" = yes; then
  802.   ac_cv_c_cross=yes
  803. else
  804. cat > conftest.$ac_ext <<EOF
  805. #line 806 "configure"
  806. #include "confdefs.h"
  807. main(){return(0);}
  808. EOF
  809. eval $ac_link
  810. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  811.   ac_cv_c_cross=no
  812. else
  813.   ac_cv_c_cross=yes
  814. fi
  815. fi
  816. rm -fr conftest*
  817. fi
  818.  
  819. echo "$ac_t""$ac_cv_c_cross" 1>&6
  820. cross_compiling=$ac_cv_c_cross
  821.  
  822. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  823. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  824.   echo $ac_n "(cached) $ac_c" 1>&6
  825. else
  826.   cat > conftest.$ac_ext <<EOF
  827. #line 828 "configure"
  828. #include "confdefs.h"
  829. #include <stdlib.h>
  830. #include <stdarg.h>
  831. #include <string.h>
  832. #include <float.h>
  833. EOF
  834. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  835. ac_err=`grep -v '^ *+' conftest.out`
  836. if test -z "$ac_err"; then
  837.   rm -rf conftest*
  838.   ac_cv_header_stdc=yes
  839. else
  840.   echo "$ac_err" >&5
  841.   rm -rf conftest*
  842.   ac_cv_header_stdc=no
  843. fi
  844. rm -f conftest*
  845.  
  846. if test $ac_cv_header_stdc = yes; then
  847.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  848. cat > conftest.$ac_ext <<EOF
  849. #line 850 "configure"
  850. #include "confdefs.h"
  851. #include <string.h>
  852. EOF
  853. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  854.   egrep "memchr" >/dev/null 2>&1; then
  855.   :
  856. else
  857.   rm -rf conftest*
  858.   ac_cv_header_stdc=no
  859. fi
  860. rm -f conftest*
  861.  
  862. fi
  863.  
  864. if test $ac_cv_header_stdc = yes; then
  865.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  866. cat > conftest.$ac_ext <<EOF
  867. #line 868 "configure"
  868. #include "confdefs.h"
  869. #include <stdlib.h>
  870. EOF
  871. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  872.   egrep "free" >/dev/null 2>&1; then
  873.   :
  874. else
  875.   rm -rf conftest*
  876.   ac_cv_header_stdc=no
  877. fi
  878. rm -f conftest*
  879.  
  880. fi
  881.  
  882. if test $ac_cv_header_stdc = yes; then
  883.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  884. if test "$cross_compiling" = yes; then
  885.   :
  886. else
  887. cat > conftest.$ac_ext <<EOF
  888. #line 889 "configure"
  889. #include "confdefs.h"
  890. #include <ctype.h>
  891. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  892. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  893. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  894. int main () { int i; for (i = 0; i < 256; i++)
  895. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  896. exit (0); }
  897.  
  898. EOF
  899. eval $ac_link
  900. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  901.   :
  902. else
  903.   ac_cv_header_stdc=no
  904. fi
  905. fi
  906. rm -fr conftest*
  907. fi
  908. fi
  909.  
  910. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  911. if test $ac_cv_header_stdc = yes; then
  912.   cat >> confdefs.h <<\EOF
  913. #define STDC_HEADERS 1
  914. EOF
  915.  
  916. fi
  917.  
  918.  
  919. if test $ac_cv_header_stdc = yes; then
  920.   cat >> confdefs.h <<\EOF
  921. #define HAVE_ASSERT_H 1
  922. EOF
  923.  
  924.   cat >> confdefs.h <<\EOF
  925. #define HAVE_LIMITS_H 1
  926. EOF
  927.  
  928.   cat >> confdefs.h <<\EOF
  929. #define HAVE_STDLIB_H 1
  930. EOF
  931.  
  932.   cat >> confdefs.h <<\EOF
  933. #define HAVE_STRING_H 1
  934. EOF
  935.  
  936.  
  937. else    # If non-ANSI, check for other brokenness.
  938.  
  939. for ac_hdr in assert.h limits.h stdlib.h string.h
  940. do
  941. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  942. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  943. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  944.   echo $ac_n "(cached) $ac_c" 1>&6
  945. else
  946.   cat > conftest.$ac_ext <<EOF
  947. #line 948 "configure"
  948. #include "confdefs.h"
  949. #include <$ac_hdr>
  950. EOF
  951. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  952. ac_err=`grep -v '^ *+' conftest.out`
  953. if test -z "$ac_err"; then
  954.   rm -rf conftest*
  955.   eval "ac_cv_header_$ac_safe=yes"
  956. else
  957.   echo "$ac_err" >&5
  958.   rm -rf conftest*
  959.   eval "ac_cv_header_$ac_safe=no"
  960. fi
  961. rm -f conftest*
  962. fi
  963. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  964.   echo "$ac_t""yes" 1>&6
  965.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  966.   cat >> confdefs.h <<EOF
  967. #define $ac_tr_hdr 1
  968. EOF
  969.  
  970. else
  971.   echo "$ac_t""no" 1>&6
  972. fi
  973. done
  974.  
  975.  
  976. # Do we want to include memory.h?
  977. if test $ac_cv_header_string_h = no; then
  978. for ac_hdr in strings.h
  979. do
  980. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  981. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  982. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  983.   echo $ac_n "(cached) $ac_c" 1>&6
  984. else
  985.   cat > conftest.$ac_ext <<EOF
  986. #line 987 "configure"
  987. #include "confdefs.h"
  988. #include <$ac_hdr>
  989. EOF
  990. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  991. ac_err=`grep -v '^ *+' conftest.out`
  992. if test -z "$ac_err"; then
  993.   rm -rf conftest*
  994.   eval "ac_cv_header_$ac_safe=yes"
  995. else
  996.   echo "$ac_err" >&5
  997.   rm -rf conftest*
  998.   eval "ac_cv_header_$ac_safe=no"
  999. fi
  1000. rm -f conftest*
  1001. fi
  1002. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1003.   echo "$ac_t""yes" 1>&6
  1004.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1005.   cat >> confdefs.h <<EOF
  1006. #define $ac_tr_hdr 1
  1007. EOF
  1008.  
  1009. else
  1010.   echo "$ac_t""no" 1>&6
  1011. fi
  1012. done
  1013.  
  1014. ac_found=no
  1015. else
  1016. echo $ac_n "checking whether string.h declares mem functions""... $ac_c" 1>&6
  1017. cat > conftest.$ac_ext <<EOF
  1018. #line 1019 "configure"
  1019. #include "confdefs.h"
  1020. #include <string.h>
  1021. EOF
  1022. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1023.   egrep "memset" >/dev/null 2>&1; then
  1024.   rm -rf conftest*
  1025.   ac_found=yes
  1026. else
  1027.   rm -rf conftest*
  1028.   ac_found=no
  1029. fi
  1030. rm -f conftest*
  1031.  
  1032. echo "$ac_t""$ac_found" 1>&6
  1033. fi
  1034. # ac_found is now "yes" if string.h exists and declares the mem*
  1035. # functions.  If not, see if memory.h exists and include that
  1036. # as well.
  1037. if test $ac_found = no; then
  1038. ac_safe=`echo "memory" | tr './\055' '___'`
  1039. echo $ac_n "checking for memory""... $ac_c" 1>&6
  1040. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1041.   echo $ac_n "(cached) $ac_c" 1>&6
  1042. else
  1043.   cat > conftest.$ac_ext <<EOF
  1044. #line 1045 "configure"
  1045. #include "confdefs.h"
  1046. #include <memory>
  1047. EOF
  1048. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1049. ac_err=`grep -v '^ *+' conftest.out`
  1050. if test -z "$ac_err"; then
  1051.   rm -rf conftest*
  1052.   eval "ac_cv_header_$ac_safe=yes"
  1053. else
  1054.   echo "$ac_err" >&5
  1055.   rm -rf conftest*
  1056.   eval "ac_cv_header_$ac_safe=no"
  1057. fi
  1058. rm -f conftest*
  1059. fi
  1060. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1061.   echo "$ac_t""yes" 1>&6
  1062.   h. cat >> confdefs.h <<\EOF
  1063. #define NEED_MEMORY_H 1
  1064. EOF
  1065.  
  1066. else
  1067.   echo "$ac_t""no" 1>&6
  1068. fi
  1069.  
  1070. fi
  1071.  
  1072. echo $ac_n "checking whether <stdio.h> provides prototypes""... $ac_c" 1>&6
  1073. if eval "test \"`echo '$''{'bn_cv_header_stdio_protos'+set}'`\" = set"; then
  1074.   echo $ac_n "(cached) $ac_c" 1>&6
  1075. else
  1076.   cat > conftest.$ac_ext <<EOF
  1077. #line 1078 "configure"
  1078. #include "confdefs.h"
  1079. #include <stdio.h>
  1080. EOF
  1081. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1082.   egrep "printf" >/dev/null 2>&1; then
  1083.   rm -rf conftest*
  1084.   bn_cv_header_stdio_protos=yes
  1085. else
  1086.   rm -rf conftest*
  1087.   bn_cv_header_stdio_protos=no
  1088. fi
  1089. rm -f conftest*
  1090.  
  1091.  
  1092. fi
  1093.  
  1094. echo "$ac_t""$bn_cv_header_stdio_protos" 1>&6
  1095. if test $bn_cv_header_stdio_protos = no; then
  1096.   cat >> confdefs.h <<\EOF
  1097. #define NO_STDIO_PROTOS 1
  1098. EOF
  1099.  
  1100. fi
  1101.  
  1102. fi
  1103. # ^^ End of non-ANSI header brokenness tests (first part)
  1104.  
  1105. echo $ac_n "checking whether <string.h> declares mem* wrong.""... $ac_c" 1>&6
  1106. if eval "test \"`echo '$''{'bn_cv_header_mem_broken'+set}'`\" = set"; then
  1107.   echo $ac_n "(cached) $ac_c" 1>&6
  1108. else
  1109.   cat > conftest.$ac_ext <<EOF
  1110. #line 1111 "configure"
  1111. #include "confdefs.h"
  1112. #include <string.h>
  1113. EOF
  1114. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1115.   egrep "memcpy.*char" >/dev/null 2>&1; then
  1116.   rm -rf conftest*
  1117.   bn_cv_header_mem_broken=yes
  1118. else
  1119.   rm -rf conftest*
  1120.   bn_cv_header_mem_broken=no
  1121. fi
  1122. rm -f conftest*
  1123.  
  1124.  
  1125. fi
  1126.  
  1127. echo "$ac_t""$bn_cv_header_mem_broken" 1>&6
  1128. if test $bn_cv_header_mem_broken = yes; then
  1129.   cat >> confdefs.h <<\EOF
  1130. #define MEM_PROTOS_BROKEN 1
  1131. EOF
  1132.  
  1133. fi
  1134.  
  1135. # SunOS 4.1.x acc's <assert.h> is broken
  1136. echo $ac_n "checking whether <assert.h> is broken and needs <stdio.h>""... $ac_c" 1>&6
  1137. if eval "test \"`echo '$''{'bn_cv_header_assert_needs_stdio'+set}'`\" = set"; then
  1138.   echo $ac_n "(cached) $ac_c" 1>&6
  1139. else
  1140.   cat > conftest.$ac_ext <<EOF
  1141. #line 1142 "configure"
  1142. #include "confdefs.h"
  1143. #include <assert.h>
  1144. assert(foo)
  1145.  
  1146. EOF
  1147. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1148.   egrep "stderr" >/dev/null 2>&1; then
  1149.   rm -rf conftest*
  1150.   bn_cv_header_assert_needs_stdio=yes
  1151. else
  1152.   rm -rf conftest*
  1153.   bn_cv_header_assert_needs_stdio=no
  1154. fi
  1155. rm -f conftest*
  1156.  
  1157.  
  1158. fi
  1159.  
  1160. echo "$ac_t""$bn_cv_header_assert_needs_stdio" 1>&6
  1161. if test $bn_cv_header_assert_needs_stdio = yes; then
  1162.   cat >> confdefs.h <<\EOF
  1163. #define ASSERT_NEEDS_STDIO 1
  1164. EOF
  1165.  
  1166. fi
  1167.  
  1168. echo $ac_n "checking whether <assert.h> is broken and needs <stdlib.h>""... $ac_c" 1>&6
  1169. if eval "test \"`echo '$''{'bn_cv_header_assert_needs_stdlib'+set}'`\" = set"; then
  1170.   echo $ac_n "(cached) $ac_c" 1>&6
  1171. else
  1172.   cat > conftest.$ac_ext <<EOF
  1173. #line 1174 "configure"
  1174. #include "confdefs.h"
  1175. #include <assert.h>
  1176. assert(foo)
  1177.  
  1178. EOF
  1179. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1180.   egrep "exit" >/dev/null 2>&1; then
  1181.   rm -rf conftest*
  1182.   bn_cv_header_assert_needs_stdlib=yes
  1183. else
  1184.   rm -rf conftest*
  1185.   bn_cv_header_assert_needs_stdlib=no
  1186. fi
  1187. rm -f conftest*
  1188.  
  1189.  
  1190. fi
  1191.  
  1192. echo "$ac_t""$bn_cv_header_assert_needs_stdlib" 1>&6
  1193. if test $bn_cv_header_assert_needs_stdlib = yes; then
  1194.   cat >> confdefs.h <<\EOF
  1195. #define ASSERT_NEEDS_STDLIB 1
  1196. EOF
  1197.  
  1198. fi
  1199.  
  1200. # Check that we have <sys/time.h> explicitly.
  1201. for ac_hdr in sys/time.h
  1202. do
  1203. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1204. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1205. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1206.   echo $ac_n "(cached) $ac_c" 1>&6
  1207. else
  1208.   cat > conftest.$ac_ext <<EOF
  1209. #line 1210 "configure"
  1210. #include "confdefs.h"
  1211. #include <$ac_hdr>
  1212. EOF
  1213. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1214. ac_err=`grep -v '^ *+' conftest.out`
  1215. if test -z "$ac_err"; then
  1216.   rm -rf conftest*
  1217.   eval "ac_cv_header_$ac_safe=yes"
  1218. else
  1219.   echo "$ac_err" >&5
  1220.   rm -rf conftest*
  1221.   eval "ac_cv_header_$ac_safe=no"
  1222. fi
  1223. rm -f conftest*
  1224. fi
  1225. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1226.   echo "$ac_t""yes" 1>&6
  1227.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1228.   cat >> confdefs.h <<EOF
  1229. #define $ac_tr_hdr 1
  1230. EOF
  1231.  
  1232. else
  1233.   echo "$ac_t""no" 1>&6
  1234. fi
  1235. done
  1236.  
  1237. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1238. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1239.   echo $ac_n "(cached) $ac_c" 1>&6
  1240. else
  1241.   cat > conftest.$ac_ext <<EOF
  1242. #line 1243 "configure"
  1243. #include "confdefs.h"
  1244. #include <sys/types.h>
  1245. #include <sys/time.h>
  1246. #include <time.h>
  1247. int main() { return 0; }
  1248. int t() {
  1249. struct tm *tp;
  1250. ; return 0; }
  1251. EOF
  1252. if eval $ac_compile; then
  1253.   rm -rf conftest*
  1254.   ac_cv_header_time=yes
  1255. else
  1256.   rm -rf conftest*
  1257.   ac_cv_header_time=no
  1258. fi
  1259. rm -f conftest*
  1260.  
  1261. fi
  1262.  
  1263. echo "$ac_t""$ac_cv_header_time" 1>&6
  1264. if test $ac_cv_header_time = yes; then
  1265.   cat >> confdefs.h <<\EOF
  1266. #define TIME_WITH_SYS_TIME 1
  1267. EOF
  1268.  
  1269. fi
  1270.  
  1271.  
  1272. # Verify that the compiler supports const, and that it works.
  1273. # A number of compilers sort of support const, but they have bugs
  1274. # that will prevent valid programs from compiling.
  1275. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1276. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1277.   echo $ac_n "(cached) $ac_c" 1>&6
  1278. else
  1279.   cat > conftest.$ac_ext <<EOF
  1280. #line 1281 "configure"
  1281. #include "confdefs.h"
  1282.  
  1283. int main() { return 0; }
  1284. int t() {
  1285.  
  1286. /* Ultrix mips cc rejects this.  */
  1287. typedef int charset[2]; const charset x;
  1288. /* SunOS 4.1.1 cc rejects this.  */
  1289. char const *const *ccp;
  1290. char **p;
  1291. /* NEC SVR4.0.2 mips cc rejects this.  */
  1292. struct point {int x, y;};
  1293. static struct point const zero = {0,0};
  1294. /* AIX XL C 1.02.0.0 rejects this.
  1295.    It does not let you subtract one const X* pointer from another in an arm
  1296.    of an if-expression whose if-part is not a constant expression */
  1297. const char *g = "string";
  1298. ccp = &g + (g ? g-g : 0);
  1299. /* HPUX 7.0 cc rejects these. */
  1300. ++ccp;
  1301. p = (char**) ccp;
  1302. ccp = (char const *const *) p;
  1303. { /* SCO 3.2v4 cc rejects this.  */
  1304.   char *t;
  1305.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1306.  
  1307.   *t++ = 0;
  1308. }
  1309. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1310.   int x[] = {25, 17};
  1311.   const int *foo = &x[0];
  1312.   ++foo;
  1313. }
  1314. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1315.   typedef const int *iptr;
  1316.   iptr p = 0;
  1317.   ++p;
  1318. }
  1319. { /* AIX XL C 1.02.0.0 rejects this saying
  1320.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1321.   struct s { int j; const int *ap[3]; };
  1322.   struct s *b; b->j = 5;
  1323. }
  1324. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1325.   const int foo = 10;
  1326. }
  1327.  
  1328. ; return 0; }
  1329. EOF
  1330. if eval $ac_compile; then
  1331.   rm -rf conftest*
  1332.   ac_cv_c_const=yes
  1333. else
  1334.   rm -rf conftest*
  1335.   ac_cv_c_const=no
  1336. fi
  1337. rm -f conftest*
  1338.  
  1339. fi
  1340.  
  1341. echo "$ac_t""$ac_cv_c_const" 1>&6
  1342. if test $ac_cv_c_const = no; then
  1343.   cat >> confdefs.h <<\EOF
  1344. #define const 
  1345. EOF
  1346.  
  1347. fi
  1348.  
  1349.  
  1350. # See if we have size_t.  (If not, define it as unsigned.)
  1351. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1352. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1353.   echo $ac_n "(cached) $ac_c" 1>&6
  1354. else
  1355.   cat > conftest.$ac_ext <<EOF
  1356. #line 1357 "configure"
  1357. #include "confdefs.h"
  1358. #include <sys/types.h>
  1359. #if STDC_HEADERS
  1360. #include <stdlib.h>
  1361. #endif
  1362. EOF
  1363. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1364.   egrep "size_t" >/dev/null 2>&1; then
  1365.   rm -rf conftest*
  1366.   ac_cv_type_size_t=yes
  1367. else
  1368.   rm -rf conftest*
  1369.   ac_cv_type_size_t=no
  1370. fi
  1371. rm -f conftest*
  1372.  
  1373. fi
  1374. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1375. if test $ac_cv_type_size_t = no; then
  1376.   cat >> confdefs.h <<\EOF
  1377. #define size_t unsigned
  1378. EOF
  1379.  
  1380. fi
  1381.  
  1382.  
  1383. for ac_func in clock_gettime gethrvtime getrusage
  1384. do
  1385. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1386. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1387.   echo $ac_n "(cached) $ac_c" 1>&6
  1388. else
  1389.   cat > conftest.$ac_ext <<EOF
  1390. #line 1391 "configure"
  1391. #include "confdefs.h"
  1392. /* System header to define __stub macros and hopefully few prototypes,
  1393.     which can conflict with char $ac_func(); below.  */
  1394. #include <assert.h>
  1395. /* Override any gcc2 internal prototype to avoid an error.  */
  1396. char $ac_func();
  1397.  
  1398. int main() { return 0; }
  1399. int t() {
  1400.  
  1401. /* The GNU C library defines this for functions which it implements
  1402.     to always fail with ENOSYS.  Some functions are actually named
  1403.     something starting with __ and the normal name is an alias.  */
  1404. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1405. choke me
  1406. #else
  1407. $ac_func();
  1408. #endif
  1409.  
  1410. ; return 0; }
  1411. EOF
  1412. if eval $ac_link; then
  1413.   rm -rf conftest*
  1414.   eval "ac_cv_func_$ac_func=yes"
  1415. else
  1416.   rm -rf conftest*
  1417.   eval "ac_cv_func_$ac_func=no"
  1418. fi
  1419. rm -f conftest*
  1420.  
  1421. fi
  1422. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1423.   echo "$ac_t""yes" 1>&6
  1424.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1425.   cat >> confdefs.h <<EOF
  1426. #define $ac_tr_func 1
  1427. EOF
  1428.  
  1429. else
  1430.   echo "$ac_t""no" 1>&6
  1431. fi
  1432. done
  1433.  
  1434.  
  1435. # If we don't have ANSI C, see if a few functions are missing that
  1436. # we've noticed the lack of before.
  1437. if test $ac_cv_header_stdc = yes; then
  1438.   cat >> confdefs.h <<\EOF
  1439. #define HAVE_CLOCK 1
  1440. EOF
  1441.  
  1442.   cat >> confdefs.h <<\EOF
  1443. #define HAVE_TIME 1
  1444. EOF
  1445.  
  1446.   cat >> confdefs.h <<\EOF
  1447. #define HAVE_MEMMOVE 1
  1448. EOF
  1449.  
  1450.   cat >> confdefs.h <<\EOF
  1451. #define HAVE_MEMCPY 1
  1452. EOF
  1453.  
  1454. else
  1455. for ac_func in clock time memmove memcpy
  1456. do
  1457. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1458. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1459.   echo $ac_n "(cached) $ac_c" 1>&6
  1460. else
  1461.   cat > conftest.$ac_ext <<EOF
  1462. #line 1463 "configure"
  1463. #include "confdefs.h"
  1464. /* System header to define __stub macros and hopefully few prototypes,
  1465.     which can conflict with char $ac_func(); below.  */
  1466. #include <assert.h>
  1467. /* Override any gcc2 internal prototype to avoid an error.  */
  1468. char $ac_func();
  1469.  
  1470. int main() { return 0; }
  1471. int t() {
  1472.  
  1473. /* The GNU C library defines this for functions which it implements
  1474.     to always fail with ENOSYS.  Some functions are actually named
  1475.     something starting with __ and the normal name is an alias.  */
  1476. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1477. choke me
  1478. #else
  1479. $ac_func();
  1480. #endif
  1481.  
  1482. ; return 0; }
  1483. EOF
  1484. if eval $ac_link; then
  1485.   rm -rf conftest*
  1486.   eval "ac_cv_func_$ac_func=yes"
  1487. else
  1488.   rm -rf conftest*
  1489.   eval "ac_cv_func_$ac_func=no"
  1490. fi
  1491. rm -f conftest*
  1492.  
  1493. fi
  1494. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1495.   echo "$ac_t""yes" 1>&6
  1496.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1497.   cat >> confdefs.h <<EOF
  1498. #define $ac_tr_func 1
  1499. EOF
  1500.  
  1501. else
  1502.   echo "$ac_t""no" 1>&6
  1503. fi
  1504. done
  1505.  
  1506. fi
  1507. # ^^ End of non-ANSI header brokenness tests (second part)
  1508.  
  1509. # The big bang!  Produce the output files.  This is config.cache, and
  1510. # config.status, which builds the config.h file and a long list of
  1511. # Makefiles.
  1512. trap '' 1 2 15
  1513. cat > confcache <<\EOF
  1514. # This file is a shell script that caches the results of configure
  1515. # tests run on this system so they can be shared between configure
  1516. # scripts and configure runs.  It is not useful on other systems.
  1517. # If it contains results you don't want to keep, you may remove or edit it.
  1518. #
  1519. # By default, configure uses ./config.cache as the cache file,
  1520. # creating it if it does not exist already.  You can give configure
  1521. # the --cache-file=FILE option to use a different cache file; that is
  1522. # what configure does when it calls configure scripts in
  1523. # subdirectories, so they share the cache.
  1524. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1525. # config.status only pays attention to the cache file if you give it the
  1526. # --recheck option to rerun configure.
  1527. #
  1528. EOF
  1529. # Ultrix sh set writes to stderr and can't be redirected directly,
  1530. # and sets the high bit in the cache file unless we assign to the vars.
  1531. (set) 2>&1 |
  1532.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1533.   >> confcache
  1534. if cmp -s $cache_file confcache; then
  1535.   :
  1536. else
  1537.   if test -w $cache_file; then
  1538.     echo "updating cache $cache_file"
  1539.     cat confcache > $cache_file
  1540.   else
  1541.     echo "not updating unwritable cache $cache_file"
  1542.   fi
  1543. fi
  1544. rm -f confcache
  1545.  
  1546. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1547.  
  1548. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1549. # Let make expand exec_prefix.
  1550. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1551.  
  1552. # Any assignment to VPATH causes Sun make to only execute
  1553. # the first set of double-colon rules, so remove it if not needed.
  1554. # If there is a colon in the path, we need to keep it.
  1555. if test "x$srcdir" = x.; then
  1556.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1557. fi
  1558.  
  1559. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1560.  
  1561. DEFS=-DHAVE_CONFIG_H
  1562.  
  1563. # Without the "./", some shells look in PATH for config.status.
  1564. : ${CONFIG_STATUS=./config.status}
  1565.  
  1566. echo creating $CONFIG_STATUS
  1567. rm -f $CONFIG_STATUS
  1568. cat > $CONFIG_STATUS <<EOF
  1569. #! /bin/sh
  1570. # Generated automatically by configure.
  1571. # Run this file to recreate the current configuration.
  1572. # This directory was configured as follows,
  1573. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1574. #
  1575. # $0 $ac_configure_args
  1576. #
  1577. # Compiler output produced by configure, useful for debugging
  1578. # configure, is in ./config.log if it exists.
  1579.  
  1580. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1581. for ac_option
  1582. do
  1583.   case "\$ac_option" in
  1584.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1585.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1586.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1587.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1588.     echo "$CONFIG_STATUS generated by autoconf version 2.7"
  1589.     exit 0 ;;
  1590.   -help | --help | --hel | --he | --h)
  1591.     echo "\$ac_cs_usage"; exit 0 ;;
  1592.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1593.   esac
  1594. done
  1595.  
  1596. ac_given_srcdir=$srcdir
  1597.  
  1598. trap 'rm -fr `echo "Makefile config.h:config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1599. EOF
  1600. cat >> $CONFIG_STATUS <<EOF
  1601.  
  1602. # Protect against being on the right side of a sed subst in config.status.
  1603. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1604.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1605. $ac_vpsub
  1606. $extrasub
  1607. s%@CFLAGS@%$CFLAGS%g
  1608. s%@CPPFLAGS@%$CPPFLAGS%g
  1609. s%@CXXFLAGS@%$CXXFLAGS%g
  1610. s%@DEFS@%$DEFS%g
  1611. s%@LDFLAGS@%$LDFLAGS%g
  1612. s%@LIBS@%$LIBS%g
  1613. s%@exec_prefix@%$exec_prefix%g
  1614. s%@prefix@%$prefix%g
  1615. s%@program_transform_name@%$program_transform_name%g
  1616. s%@bindir@%$bindir%g
  1617. s%@sbindir@%$sbindir%g
  1618. s%@libexecdir@%$libexecdir%g
  1619. s%@datadir@%$datadir%g
  1620. s%@sysconfdir@%$sysconfdir%g
  1621. s%@sharedstatedir@%$sharedstatedir%g
  1622. s%@localstatedir@%$localstatedir%g
  1623. s%@libdir@%$libdir%g
  1624. s%@includedir@%$includedir%g
  1625. s%@oldincludedir@%$oldincludedir%g
  1626. s%@infodir@%$infodir%g
  1627. s%@mandir@%$mandir%g
  1628. s%@CC@%$CC%g
  1629. s%@GCCMAGIC1@%$GCCMAGIC1%g
  1630. s%@GCCMAGIC2@%$GCCMAGIC2%g
  1631. s%@TUNE@%$TUNE%g
  1632. s%@WARN@%$WARN%g
  1633. s%@RANLIB@%$RANLIB%g
  1634. s%@CPP@%$CPP%g
  1635.  
  1636. CEOF
  1637. EOF
  1638. cat >> $CONFIG_STATUS <<EOF
  1639.  
  1640. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1641. EOF
  1642. cat >> $CONFIG_STATUS <<\EOF
  1643. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1644.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1645.   case "$ac_file" in
  1646.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1647.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1648.   *) ac_file_in="${ac_file}.in" ;;
  1649.   esac
  1650.  
  1651.   # Adjust relative srcdir, etc. for subdirectories.
  1652.  
  1653.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1654.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1655.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1656.     # The file is in a subdirectory.
  1657.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1658.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1659.     # A "../" for each directory in $ac_dir_suffix.
  1660.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1661.   else
  1662.     ac_dir_suffix= ac_dots=
  1663.   fi
  1664.  
  1665.   case "$ac_given_srcdir" in
  1666.   .)  srcdir=.
  1667.       if test -z "$ac_dots"; then top_srcdir=.
  1668.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1669.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1670.   *) # Relative path.
  1671.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1672.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1673.   esac
  1674.  
  1675.   echo creating "$ac_file"
  1676.   rm -f "$ac_file"
  1677.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1678.   case "$ac_file" in
  1679.   *Makefile*) ac_comsub="1i\\
  1680. # $configure_input" ;;
  1681.   *) ac_comsub= ;;
  1682.   esac
  1683.   sed -e "$ac_comsub
  1684. s%@configure_input@%$configure_input%g
  1685. s%@srcdir@%$srcdir%g
  1686. s%@top_srcdir@%$top_srcdir%g
  1687. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1688. fi; done
  1689. rm -f conftest.subs
  1690.  
  1691. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1692. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1693. #
  1694. # ac_d sets the value in "#define NAME VALUE" lines.
  1695. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1696. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1697. ac_dC='\3'
  1698. ac_dD='%g'
  1699. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1700. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1701. ac_uB='\([     ]\)%\1#\2define\3'
  1702. ac_uC=' '
  1703. ac_uD='\4%g'
  1704. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1705. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1706. ac_eB='$%\1#\2define\3'
  1707. ac_eC=' '
  1708. ac_eD='%g'
  1709.  
  1710. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.hin"}
  1711. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1712.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1713.   case "$ac_file" in
  1714.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1715.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1716.   *) ac_file_in="${ac_file}.in" ;;
  1717.   esac
  1718.  
  1719.   echo creating $ac_file
  1720.  
  1721.   rm -f conftest.frag conftest.in conftest.out
  1722.   cp $ac_given_srcdir/$ac_file_in conftest.in
  1723.  
  1724. EOF
  1725.  
  1726. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1727. # the proper values into config.h.in to produce config.h.  And first:
  1728. # Protect against being on the right side of a sed subst in config.status.
  1729. # Protect against being in an unquoted here document in config.status.
  1730. rm -f conftest.vals
  1731. cat > conftest.hdr <<\EOF
  1732. s/[\\&%]/\\&/g
  1733. s%[\\$`]%\\&%g
  1734. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1735. s%ac_d%ac_u%gp
  1736. s%ac_u%ac_e%gp
  1737. EOF
  1738. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1739. rm -f conftest.hdr
  1740.  
  1741. # This sed command replaces #undef with comments.  This is necessary, for
  1742. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1743. # on some systems where configure will not decide to define it.
  1744. cat >> conftest.vals <<\EOF
  1745. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1746. EOF
  1747.  
  1748. # Break up conftest.vals because some shells have a limit on
  1749. # the size of here documents, and old seds have small limits too.
  1750. # Maximum number of lines to put in a single here document.
  1751. ac_max_here_lines=12
  1752.  
  1753. rm -f conftest.tail
  1754. while :
  1755. do
  1756.   ac_lines=`grep -c . conftest.vals`
  1757.   # grep -c gives empty output for an empty file on some AIX systems.
  1758.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1759.   # Write a limited-size here document to conftest.frag.
  1760.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1761.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1762.   echo 'CEOF
  1763.   sed -f conftest.frag conftest.in > conftest.out
  1764.   rm -f conftest.in
  1765.   mv conftest.out conftest.in
  1766. ' >> $CONFIG_STATUS
  1767.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1768.   rm -f conftest.vals
  1769.   mv conftest.tail conftest.vals
  1770. done
  1771. rm -f conftest.vals
  1772.  
  1773. cat >> $CONFIG_STATUS <<\EOF
  1774.   rm -f conftest.frag conftest.h
  1775.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1776.   cat conftest.in >> conftest.h
  1777.   rm -f conftest.in
  1778.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1779.     echo "$ac_file is unchanged"
  1780.     rm -f conftest.h
  1781.   else
  1782.     rm -f $ac_file
  1783.     mv conftest.h $ac_file
  1784.   fi
  1785. fi; done
  1786.  
  1787.  
  1788.  
  1789. exit 0
  1790. EOF
  1791. chmod +x $CONFIG_STATUS
  1792. rm -fr confdefs* $ac_clean_files
  1793. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1794.  
  1795.