home *** CD-ROM | disk | FTP | other *** search
/ Dream 44 / Amiga_Dream_44.iso / RiscPc / jeux / ArcBoard004.arc / !GNUChessX / src / misc / configure < prev    next >
Text File  |  1995-07-02  |  38KB  |  1,371 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.2 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36.  
  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.2"
  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=ataks.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} conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
  386. ac_link='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS $LDFLAGS -o conftest $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. fi
  446. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  447. if test $ac_cv_prog_gcc = yes; then
  448.   GCC=yes
  449.   if test "${CFLAGS+set}" != set; then
  450.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  451. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  452.   echo $ac_n "(cached) $ac_c" 1>&6
  453. else
  454.   echo 'void f(){}' > conftest.c
  455. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  456.   ac_cv_prog_gcc_g=yes
  457. else
  458.   ac_cv_prog_gcc_g=no
  459. fi
  460. rm -f conftest*
  461.  
  462. fi
  463.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  464.     if test $ac_cv_prog_gcc_g = yes; then
  465.       CFLAGS="-g -O"
  466.     else
  467.       CFLAGS="-O"
  468.     fi
  469.   fi
  470. else
  471.   GCC=
  472.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  473. fi
  474.  
  475. ac_aux_dir=
  476. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  477.   if test -f $ac_dir/install-sh; then
  478.     ac_aux_dir=$ac_dir
  479.     ac_install_sh="$ac_aux_dir/install-sh -c"
  480.     break
  481.   elif test -f $ac_dir/install.sh; then
  482.     ac_aux_dir=$ac_dir
  483.     ac_install_sh="$ac_aux_dir/install.sh -c"
  484.     break
  485.   fi
  486. done
  487. if test -z "$ac_aux_dir"; then
  488.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  489. fi
  490. ac_config_guess=$ac_aux_dir/config.guess
  491. ac_config_sub=$ac_aux_dir/config.sub
  492. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  493.  
  494. # Find a good install program.  We prefer a C program (faster),
  495. # so one script is as good as another.  But avoid the broken or
  496. # incompatible versions:
  497. # SysV /etc/install, /usr/sbin/install
  498. # SunOS /usr/etc/install
  499. # IRIX /sbin/install
  500. # AIX /bin/install
  501. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  502. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  503. # ./install, which can be erroneously created by make from ./install.sh.
  504. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  505. if test -z "$INSTALL"; then
  506. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  507.   echo $ac_n "(cached) $ac_c" 1>&6
  508. else
  509.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  510.   for ac_dir in $PATH; do
  511.     # Account for people who put trailing slashes in PATH elements.
  512.     case "$ac_dir/" in
  513.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  514.     *)
  515.       # OSF1 and SCO ODT 3.0 have their own names for install.
  516.       for ac_prog in ginstall installbsd scoinst install; do
  517.         if test -f $ac_dir/$ac_prog; then
  518.       if test $ac_prog = install &&
  519.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  520.         # AIX install.  It has an incompatible calling convention.
  521.         # OSF/1 installbsd also uses dspmsg, but is usable.
  522.         :
  523.       else
  524.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  525.         break 2
  526.       fi
  527.     fi
  528.       done
  529.       ;;
  530.     esac
  531.   done
  532.   IFS="$ac_save_ifs"
  533.   # As a last resort, use the slow shell script.
  534.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  535. fi
  536.   INSTALL="$ac_cv_path_install"
  537. fi
  538. echo "$ac_t""$INSTALL" 1>&6
  539.  
  540. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  541. # It thinks the first close brace ends the variable substitution.
  542. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  543.  
  544. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  545.  
  546.  
  547. echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  548. if eval "test \"`echo '$''{'ac_cv_lib_curses'+set}'`\" = set"; then
  549.   echo $ac_n "(cached) $ac_c" 1>&6
  550. else
  551.   ac_save_LIBS="$LIBS"
  552. LIBS="-lcurses  $LIBS"
  553. cat > conftest.$ac_ext <<EOF
  554. #line 555 "configure"
  555. #include "confdefs.h"
  556.  
  557. int main() { return 0; }
  558. int t() {
  559. main()
  560. ; return 0; }
  561. EOF
  562. if eval $ac_link; then
  563.   rm -rf conftest*
  564.   eval "ac_cv_lib_curses=yes"
  565. else
  566.   rm -rf conftest*
  567.   eval "ac_cv_lib_curses=no"
  568. fi
  569. rm -f conftest*
  570. LIBS="$ac_save_LIBS"
  571.  
  572. fi
  573. if eval "test \"`echo '$ac_cv_lib_'curses`\" = yes"; then
  574.   echo "$ac_t""yes" 1>&6
  575.     ac_tr_lib=HAVE_LIB`echo curses | tr '[a-z]' '[A-Z]'`
  576.   cat >> confdefs.h <<EOF
  577. #define $ac_tr_lib 1
  578. EOF
  579.  
  580.   LIBS="-lcurses $LIBS"
  581.  
  582. else
  583.   echo "$ac_t""no" 1>&6
  584. fi
  585.  
  586. echo $ac_n "checking for -lm""... $ac_c" 1>&6
  587. if eval "test \"`echo '$''{'ac_cv_lib_m'+set}'`\" = set"; then
  588.   echo $ac_n "(cached) $ac_c" 1>&6
  589. else
  590.   ac_save_LIBS="$LIBS"
  591. LIBS="-lm  $LIBS"
  592. cat > conftest.$ac_ext <<EOF
  593. #line 594 "configure"
  594. #include "confdefs.h"
  595.  
  596. int main() { return 0; }
  597. int t() {
  598. main()
  599. ; return 0; }
  600. EOF
  601. if eval $ac_link; then
  602.   rm -rf conftest*
  603.   eval "ac_cv_lib_m=yes"
  604. else
  605.   rm -rf conftest*
  606.   eval "ac_cv_lib_m=no"
  607. fi
  608. rm -f conftest*
  609. LIBS="$ac_save_LIBS"
  610.  
  611. fi
  612. if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
  613.   echo "$ac_t""yes" 1>&6
  614.     ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'`
  615.   cat >> confdefs.h <<EOF
  616. #define $ac_tr_lib 1
  617. EOF
  618.  
  619.   LIBS="-lm $LIBS"
  620.  
  621. else
  622.   echo "$ac_t""no" 1>&6
  623. fi
  624.  
  625. echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
  626. if eval "test \"`echo '$''{'ac_cv_lib_termcap'+set}'`\" = set"; then
  627.   echo $ac_n "(cached) $ac_c" 1>&6
  628. else
  629.   ac_save_LIBS="$LIBS"
  630. LIBS="-ltermcap  $LIBS"
  631. cat > conftest.$ac_ext <<EOF
  632. #line 633 "configure"
  633. #include "confdefs.h"
  634.  
  635. int main() { return 0; }
  636. int t() {
  637. main()
  638. ; return 0; }
  639. EOF
  640. if eval $ac_link; then
  641.   rm -rf conftest*
  642.   eval "ac_cv_lib_termcap=yes"
  643. else
  644.   rm -rf conftest*
  645.   eval "ac_cv_lib_termcap=no"
  646. fi
  647. rm -f conftest*
  648. LIBS="$ac_save_LIBS"
  649.  
  650. fi
  651. if eval "test \"`echo '$ac_cv_lib_'termcap`\" = yes"; then
  652.   echo "$ac_t""yes" 1>&6
  653.     ac_tr_lib=HAVE_LIB`echo termcap | tr '[a-z]' '[A-Z]'`
  654.   cat >> confdefs.h <<EOF
  655. #define $ac_tr_lib 1
  656. EOF
  657.  
  658.   LIBS="-ltermcap $LIBS"
  659.  
  660. else
  661.   echo "$ac_t""no" 1>&6
  662. fi
  663.  
  664.  
  665. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  666. # On Suns, sometimes $CPP names a directory.
  667. if test -n "$CPP" && test -d "$CPP"; then
  668.   CPP=
  669. fi
  670. if test -z "$CPP"; then
  671. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  672.   echo $ac_n "(cached) $ac_c" 1>&6
  673. else
  674.     # This must be in double quotes, not single quotes, because CPP may get
  675.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  676.   CPP="${CC-cc} -E"
  677.   # On the NeXT, cc -E runs the code through the compiler's parser,
  678.   # not just through cpp.
  679.   cat > conftest.$ac_ext <<EOF
  680. #line 681 "configure"
  681. #include "confdefs.h"
  682. #include <assert.h>
  683. Syntax Error
  684. EOF
  685. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  686. ac_err=`grep -v '^ *+' conftest.out`
  687. if test -z "$ac_err"; then
  688.   :
  689. else
  690.   echo "$ac_err" >&5
  691.   rm -rf conftest*
  692.   CPP="${CC-cc} -E -traditional-cpp"
  693.   cat > conftest.$ac_ext <<EOF
  694. #line 695 "configure"
  695. #include "confdefs.h"
  696. #include <assert.h>
  697. Syntax Error
  698. EOF
  699. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  700. ac_err=`grep -v '^ *+' conftest.out`
  701. if test -z "$ac_err"; then
  702.   :
  703. else
  704.   echo "$ac_err" >&5
  705.   rm -rf conftest*
  706.   CPP=/lib/cpp
  707. fi
  708. rm -f conftest*
  709. fi
  710. rm -f conftest*
  711.   ac_cv_prog_CPP="$CPP"
  712. fi
  713. fi
  714. CPP="$ac_cv_prog_CPP"
  715. echo "$ac_t""$CPP" 1>&6
  716.  
  717. # If we cannot run a trivial program, we must be cross compiling.
  718. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  719. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  720.   echo $ac_n "(cached) $ac_c" 1>&6
  721. else
  722.   if test "$cross_compiling" = yes; then
  723.   ac_cv_c_cross=yes
  724. else
  725. cat > conftest.$ac_ext <<EOF
  726. #line 727 "configure"
  727. #include "confdefs.h"
  728. main(){return(0);}
  729. EOF
  730. eval $ac_link
  731. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  732.   ac_cv_c_cross=no
  733. else
  734.   ac_cv_c_cross=yes
  735. fi
  736. fi
  737. rm -fr conftest*
  738. fi
  739. cross_compiling=$ac_cv_c_cross
  740. echo "$ac_t""$ac_cv_c_cross" 1>&6
  741.  
  742. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  743. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  744.   echo $ac_n "(cached) $ac_c" 1>&6
  745. else
  746.   cat > conftest.$ac_ext <<EOF
  747. #line 748 "configure"
  748. #include "confdefs.h"
  749. #include <stdlib.h>
  750. #include <stdarg.h>
  751. #include <string.h>
  752. #include <float.h>
  753. EOF
  754. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  755. ac_err=`grep -v '^ *+' conftest.out`
  756. if test -z "$ac_err"; then
  757.   rm -rf conftest*
  758.   ac_cv_header_stdc=yes
  759. else
  760.   echo "$ac_err" >&5
  761.   rm -rf conftest*
  762.   ac_cv_header_stdc=no
  763. fi
  764. rm -f conftest*
  765.  
  766. if test $ac_cv_header_stdc = yes; then
  767.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  768. cat > conftest.$ac_ext <<EOF
  769. #line 770 "configure"
  770. #include "confdefs.h"
  771. #include <string.h>
  772. EOF
  773. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  774.   egrep "memchr" >/dev/null 2>&1; then
  775.   :
  776. else
  777.   rm -rf conftest*
  778.   ac_cv_header_stdc=no
  779. fi
  780. rm -f conftest*
  781.  
  782. fi
  783.  
  784. if test $ac_cv_header_stdc = yes; then
  785.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  786. cat > conftest.$ac_ext <<EOF
  787. #line 788 "configure"
  788. #include "confdefs.h"
  789. #include <stdlib.h>
  790. EOF
  791. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  792.   egrep "free" >/dev/null 2>&1; then
  793.   :
  794. else
  795.   rm -rf conftest*
  796.   ac_cv_header_stdc=no
  797. fi
  798. rm -f conftest*
  799.  
  800. fi
  801.  
  802. if test $ac_cv_header_stdc = yes; then
  803.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  804. if test "$cross_compiling" = yes; then
  805.   ac_cv_header_stdc=no
  806. else
  807. cat > conftest.$ac_ext <<EOF
  808. #line 809 "configure"
  809. #include "confdefs.h"
  810. #include <ctype.h>
  811. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  812. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  813. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  814. int main () { int i; for (i = 0; i < 256; i++)
  815. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  816. exit (0); }
  817.  
  818. EOF
  819. eval $ac_link
  820. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  821.   :
  822. else
  823.   ac_cv_header_stdc=no
  824. fi
  825. fi
  826. rm -fr conftest*
  827. fi
  828. fi
  829. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  830. if test $ac_cv_header_stdc = yes; then
  831.   cat >> confdefs.h <<\EOF
  832. #define STDC_HEADERS 1
  833. EOF
  834.  
  835. fi
  836.  
  837. for ac_hdr in fcntl.h time.h sys/file.h sys/ioctl.h sys/time.h unistd.h
  838. do
  839. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  840. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  841. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  842.   echo $ac_n "(cached) $ac_c" 1>&6
  843. else
  844.   cat > conftest.$ac_ext <<EOF
  845. #line 846 "configure"
  846. #include "confdefs.h"
  847. #include <$ac_hdr>
  848. EOF
  849. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  850. ac_err=`grep -v '^ *+' conftest.out`
  851. if test -z "$ac_err"; then
  852.   rm -rf conftest*
  853.   eval "ac_cv_header_$ac_safe=yes"
  854. else
  855.   echo "$ac_err" >&5
  856.   rm -rf conftest*
  857.   eval "ac_cv_header_$ac_safe=no"
  858. fi
  859. rm -f conftest*
  860. fi
  861. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  862.   echo "$ac_t""yes" 1>&6
  863.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  864.   cat >> confdefs.h <<EOF
  865. #define $ac_tr_hdr 1
  866. EOF
  867.  
  868. else
  869.   echo "$ac_t""no" 1>&6
  870. fi
  871. done
  872.  
  873.  
  874. echo $ac_n "checking for working const""... $ac_c" 1>&6
  875. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  876.   echo $ac_n "(cached) $ac_c" 1>&6
  877. else
  878.   cat > conftest.$ac_ext <<EOF
  879. #line 880 "configure"
  880. #include "confdefs.h"
  881.  
  882. int main() { return 0; }
  883. int t() {
  884.  
  885. /* Ultrix mips cc rejects this.  */
  886. typedef int charset[2]; const charset x;
  887. /* SunOS 4.1.1 cc rejects this.  */
  888. char const *const *ccp;
  889. char **p;
  890. /* NEC SVR4.0.2 mips cc rejects this.  */
  891. struct point {int x, y;};
  892. static struct point const zero;
  893. /* AIX XL C 1.02.0.0 rejects this.
  894.    It does not let you subtract one const X* pointer from another in an arm
  895.    of an if-expression whose if-part is not a constant expression */
  896. const char *g = "string";
  897. ccp = &g + (g ? g-g : 0);
  898. /* HPUX 7.0 cc rejects these. */
  899. ++ccp;
  900. p = (char**) ccp;
  901. ccp = (char const *const *) p;
  902. { /* SCO 3.2v4 cc rejects this.  */
  903.   char *t;
  904.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  905.  
  906.   *t++ = 0;
  907. }
  908. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  909.   int x[] = {25, 17};
  910.   const int *foo = &x[0];
  911.   ++foo;
  912. }
  913. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  914.   typedef const int *iptr;
  915.   iptr p = 0;
  916.   ++p;
  917. }
  918. { /* AIX XL C 1.02.0.0 rejects this saying
  919.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  920.   struct s { int j; const int *ap[3]; };
  921.   struct s *b; b->j = 5;
  922. }
  923. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  924.   const int foo = 10;
  925. }
  926.  
  927. ; return 0; }
  928. EOF
  929. if eval $ac_compile; then
  930.   rm -rf conftest*
  931.   ac_cv_c_const=yes
  932. else
  933.   rm -rf conftest*
  934.   ac_cv_c_const=no
  935. fi
  936. rm -f conftest*
  937.  
  938. fi
  939. echo "$ac_t""$ac_cv_c_const" 1>&6
  940. if test $ac_cv_c_const = no; then
  941.   cat >> confdefs.h <<\EOF
  942. #define const 
  943. EOF
  944.  
  945. fi
  946.  
  947. echo $ac_n "checking for inline""... $ac_c" 1>&6
  948. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  949.   echo $ac_n "(cached) $ac_c" 1>&6
  950. else
  951.   ac_cv_c_inline=no
  952. for ac_kw in inline __inline__ __inline; do
  953.   cat > conftest.$ac_ext <<EOF
  954. #line 955 "configure"
  955. #include "confdefs.h"
  956.  
  957. int main() { return 0; }
  958. int t() {
  959. } $ac_kw foo() {
  960. ; return 0; }
  961. EOF
  962. if eval $ac_compile; then
  963.   rm -rf conftest*
  964.   ac_cv_c_inline=$ac_kw; break
  965. fi
  966. rm -f conftest*
  967.  
  968. done
  969.  
  970. fi
  971. echo "$ac_t""$ac_cv_c_inline" 1>&6
  972. case "$ac_cv_c_inline" in
  973.   inline | yes) ;;
  974.   no) cat >> confdefs.h <<\EOF
  975. #define inline 
  976. EOF
  977.  ;;
  978.   *)  cat >> confdefs.h <<EOF
  979. #define inline $ac_cv_c_inline
  980. EOF
  981.  ;;
  982. esac
  983.  
  984. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  985. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  986.   echo $ac_n "(cached) $ac_c" 1>&6
  987. else
  988.   cat > conftest.$ac_ext <<EOF
  989. #line 990 "configure"
  990. #include "confdefs.h"
  991. #include <sys/types.h>
  992. #if STDC_HEADERS
  993. #include <stdlib.h>
  994. #endif
  995. EOF
  996. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  997.   egrep "size_t" >/dev/null 2>&1; then
  998.   rm -rf conftest*
  999.   ac_cv_type_size_t=yes
  1000. else
  1001.   rm -rf conftest*
  1002.   ac_cv_type_size_t=no
  1003. fi
  1004. rm -f conftest*
  1005.  
  1006. fi
  1007. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1008. if test $ac_cv_type_size_t = no; then
  1009.   cat >> confdefs.h <<\EOF
  1010. #define size_t unsigned
  1011. EOF
  1012.  
  1013. fi
  1014.  
  1015. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1016. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1017.   echo $ac_n "(cached) $ac_c" 1>&6
  1018. else
  1019.   cat > conftest.$ac_ext <<EOF
  1020. #line 1021 "configure"
  1021. #include "confdefs.h"
  1022. #include <sys/types.h>
  1023. #include <sys/time.h>
  1024. #include <time.h>
  1025. int main() { return 0; }
  1026. int t() {
  1027. struct tm *tp;
  1028. ; return 0; }
  1029. EOF
  1030. if eval $ac_compile; then
  1031.   rm -rf conftest*
  1032.   ac_cv_header_time=yes
  1033. else
  1034.   rm -rf conftest*
  1035.   ac_cv_header_time=no
  1036. fi
  1037. rm -f conftest*
  1038.  
  1039. fi
  1040. echo "$ac_t""$ac_cv_header_time" 1>&6
  1041. if test $ac_cv_header_time = yes; then
  1042.   cat >> confdefs.h <<\EOF
  1043. #define TIME_WITH_SYS_TIME 1
  1044. EOF
  1045.  
  1046. fi
  1047.  
  1048.  
  1049. if test $ac_cv_prog_gcc = yes; then
  1050.   echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  1051. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  1052.   echo $ac_n "(cached) $ac_c" 1>&6
  1053. else
  1054.     ac_pattern="Autoconf.*'x'"
  1055.   cat > conftest.$ac_ext <<EOF
  1056. #line 1057 "configure"
  1057. #include "confdefs.h"
  1058. #include <sgtty.h>
  1059. Autoconf TIOCGETP
  1060. EOF
  1061. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1062.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1063.   rm -rf conftest*
  1064.   ac_cv_prog_gcc_traditional=yes
  1065. else
  1066.   rm -rf conftest*
  1067.   ac_cv_prog_gcc_traditional=no
  1068. fi
  1069. rm -f conftest*
  1070.  
  1071.  
  1072.   if test $ac_cv_prog_gcc_traditional = no; then
  1073.     cat > conftest.$ac_ext <<EOF
  1074. #line 1075 "configure"
  1075. #include "confdefs.h"
  1076. #include <termio.h>
  1077. Autoconf TCGETA
  1078. EOF
  1079. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1080.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1081.   rm -rf conftest*
  1082.   ac_cv_prog_gcc_traditional=yes
  1083. fi
  1084. rm -f conftest*
  1085.  
  1086.   fi
  1087. fi
  1088.   echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  1089.   if test $ac_cv_prog_gcc_traditional = yes; then
  1090.     CC="$CC -traditional"
  1091.   fi
  1092. fi
  1093.  
  1094. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1095. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1096.   echo $ac_n "(cached) $ac_c" 1>&6
  1097. else
  1098.   cat > conftest.$ac_ext <<EOF
  1099. #line 1100 "configure"
  1100. #include "confdefs.h"
  1101. #include <sys/types.h>
  1102. #include <signal.h>
  1103. #ifdef signal
  1104. #undef signal
  1105. #endif
  1106. #ifdef __cplusplus
  1107. extern "C"
  1108. #endif
  1109. void (*signal ()) ();
  1110. int main() { return 0; }
  1111. int t() {
  1112. int i;
  1113. ; return 0; }
  1114. EOF
  1115. if eval $ac_compile; then
  1116.   rm -rf conftest*
  1117.   ac_cv_type_signal=void
  1118. else
  1119.   rm -rf conftest*
  1120.   ac_cv_type_signal=int
  1121. fi
  1122. rm -f conftest*
  1123.  
  1124. fi
  1125. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1126. cat >> confdefs.h <<EOF
  1127. #define RETSIGTYPE $ac_cv_type_signal
  1128. EOF
  1129.  
  1130.  
  1131. for ac_func in gettimeofday strstr strtol strtoul memset
  1132. do
  1133. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1134. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1135.   echo $ac_n "(cached) $ac_c" 1>&6
  1136. else
  1137.   cat > conftest.$ac_ext <<EOF
  1138. #line 1139 "configure"
  1139. #include "confdefs.h"
  1140. /* System header to define __stub macros and hopefully few prototypes,
  1141.     which can conflict with char $ac_func(); below.  */
  1142. #include <assert.h>
  1143. /* Override any gcc2 internal prototype to avoid an error.  */
  1144. char $ac_func(); 
  1145.  
  1146. int main() { return 0; }
  1147. int t() {
  1148.  
  1149. /* The GNU C library defines this for functions which it implements
  1150.     to always fail with ENOSYS.  Some functions are actually named
  1151.     something starting with __ and the normal name is an alias.  */
  1152. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1153. choke me
  1154. #else
  1155. $ac_func();
  1156. #endif
  1157.  
  1158. ; return 0; }
  1159. EOF
  1160. if eval $ac_link; then
  1161.   rm -rf conftest*
  1162.   eval "ac_cv_func_$ac_func=yes"
  1163. else
  1164.   rm -rf conftest*
  1165.   eval "ac_cv_func_$ac_func=no"
  1166. fi
  1167. rm -f conftest*
  1168.  
  1169. fi
  1170. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1171.   echo "$ac_t""yes" 1>&6
  1172.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1173.   cat >> confdefs.h <<EOF
  1174. #define $ac_tr_func 1
  1175. EOF
  1176.  
  1177. else
  1178.   echo "$ac_t""no" 1>&6
  1179. fi
  1180. done
  1181.  
  1182.  
  1183. trap '' 1 2 15
  1184. cat > confcache <<\EOF
  1185. # This file is a shell script that caches the results of configure
  1186. # tests run on this system so they can be shared between configure
  1187. # scripts and configure runs.  It is not useful on other systems.
  1188. # If it contains results you don't want to keep, you may remove or edit it.
  1189. #
  1190. # By default, configure uses ./config.cache as the cache file,
  1191. # creating it if it does not exist already.  You can give configure
  1192. # the --cache-file=FILE option to use a different cache file; that is
  1193. # what configure does when it calls configure scripts in
  1194. # subdirectories, so they share the cache.
  1195. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1196. # config.status only pays attention to the cache file if you give it the
  1197. # --recheck option to rerun configure.
  1198. #
  1199. EOF
  1200. # Ultrix sh set writes to stderr and can't be redirected directly,
  1201. # and sets the high bit in the cache file unless we assign to the vars.
  1202. (set) 2>&1 |
  1203.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1204.   >> confcache
  1205. if cmp -s $cache_file confcache; then
  1206.   :
  1207. else
  1208.   if test -w $cache_file; then
  1209.     echo "updating cache $cache_file"
  1210.     cat confcache > $cache_file
  1211.   else
  1212.     echo "not updating unwritable cache $cache_file"
  1213.   fi
  1214. fi
  1215. rm -f confcache
  1216.  
  1217. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1218.  
  1219. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1220. # Let make expand exec_prefix.
  1221. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1222.  
  1223. # Any assignment to VPATH causes Sun make to only execute
  1224. # the first set of double-colon rules, so remove it if not needed.
  1225. # If there is a colon in the path, we need to keep it.
  1226. if test "x$srcdir" = x.; then
  1227.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1228. fi
  1229.  
  1230. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1231.  
  1232. # Transform confdefs.h into DEFS.
  1233. # Protect against shell expansion while executing Makefile rules.
  1234. # Protect against Makefile macro expansion.
  1235. cat > conftest.defs <<\EOF
  1236. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  1237. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1238. s%\[%\\&%g
  1239. s%\]%\\&%g
  1240. s%\$%$$%g
  1241. EOF
  1242. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1243. rm -f conftest.defs
  1244.  
  1245.  
  1246. # Without the "./", some shells look in PATH for config.status.
  1247. : ${CONFIG_STATUS=./config.status}
  1248.  
  1249. echo creating $CONFIG_STATUS
  1250. rm -f $CONFIG_STATUS
  1251. cat > $CONFIG_STATUS <<EOF
  1252. #! /bin/sh
  1253. # Generated automatically by configure.
  1254. # Run this file to recreate the current configuration.
  1255. # This directory was configured as follows,
  1256. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1257. #
  1258. # $0 $ac_configure_args
  1259. #
  1260. # Compiler output produced by configure, useful for debugging
  1261. # configure, is in ./config.log if it exists.
  1262.  
  1263. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1264. for ac_option
  1265. do
  1266.   case "\$ac_option" in
  1267.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1268.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1269.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1270.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1271.     echo "$CONFIG_STATUS generated by autoconf version 2.2"
  1272.     exit 0 ;;
  1273.   -help | --help | --hel | --he | --h)
  1274.     echo "\$ac_cs_usage"; exit 0 ;;
  1275.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1276.   esac
  1277. done
  1278.  
  1279. ac_given_srcdir=$srcdir
  1280. ac_given_INSTALL="$INSTALL"
  1281.  
  1282. trap 'rm -f Makefile; exit 1' 1 2 15
  1283.  
  1284. # Protect against being on the right side of a sed subst in config.status. 
  1285. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1286.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1287. $ac_vpsub
  1288. $extrasub
  1289. s%@CFLAGS@%$CFLAGS%g
  1290. s%@CPPFLAGS@%$CPPFLAGS%g
  1291. s%@CXXFLAGS@%$CXXFLAGS%g
  1292. s%@DEFS@%$DEFS%g
  1293. s%@LDFLAGS@%$LDFLAGS%g
  1294. s%@LIBS@%$LIBS%g
  1295. s%@exec_prefix@%$exec_prefix%g
  1296. s%@prefix@%$prefix%g
  1297. s%@program_transform_name@%$program_transform_name%g
  1298. s%@CC@%$CC%g
  1299. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1300. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1301. s%@CPP@%$CPP%g
  1302.  
  1303. CEOF
  1304. EOF
  1305. cat >> $CONFIG_STATUS <<EOF
  1306.  
  1307. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1308. EOF
  1309. cat >> $CONFIG_STATUS <<\EOF
  1310. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1311.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1312.   case "$ac_file" in
  1313.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1314.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1315.   *) ac_file_in="${ac_file}.in" ;;
  1316.   esac
  1317.  
  1318.   # Adjust relative srcdir, etc. for subdirectories.
  1319.  
  1320.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1321.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1322.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1323.     # The file is in a subdirectory.
  1324.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1325.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1326.     # A "../" for each directory in $ac_dir_suffix.
  1327.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1328.   else
  1329.     ac_dir_suffix= ac_dots=
  1330.   fi
  1331.  
  1332.   case "$ac_given_srcdir" in
  1333.   .)  srcdir=.
  1334.       if test -z "$ac_dots"; then top_srcdir=.
  1335.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1336.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1337.   *) # Relative path.
  1338.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1339.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1340.   esac
  1341.  
  1342.   case "$ac_given_INSTALL" in
  1343.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1344.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1345.   esac
  1346.   echo creating "$ac_file"
  1347.   rm -f "$ac_file"
  1348.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1349.   case "$ac_file" in
  1350.   *Makefile*) ac_comsub="1i\\
  1351. # $configure_input" ;;
  1352.   *) ac_comsub= ;;
  1353.   esac
  1354.   sed -e "$ac_comsub
  1355. s%@configure_input@%$configure_input%g
  1356. s%@srcdir@%$srcdir%g
  1357. s%@top_srcdir@%$top_srcdir%g
  1358. s%@INSTALL@%$INSTALL%g
  1359. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1360. fi; done
  1361. rm -f conftest.subs
  1362.  
  1363.  
  1364.  
  1365. exit 0
  1366. EOF
  1367. chmod +x $CONFIG_STATUS
  1368. rm -fr confdefs* $ac_clean_files
  1369. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1370.  
  1371.