home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / conflict.0 / conflict / conflict-6.0 / configure < prev    next >
Encoding:
Text File  |  1995-03-18  |  40.9 KB  |  1,534 lines

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