configure
上传用户:zbbssh
上传日期:2007-01-08
资源大小:196k
文件大小:51k
源码类别:

CA认证

开发平台:

C/C++

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