home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / forut062.zip / ForUtil-0.62 / configure < prev    next >
Text File  |  1996-11-11  |  47KB  |  1,721 lines

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