home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / unixtex-6.1b-src.lha / unixtex-6.1b / web2c / configure < prev    next >
Encoding:
Text File  |  1995-04-03  |  66.5 KB  |  2,473 lines

  1. #!/bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.1 
  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=/gnu
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-x                use the X Window System"
  16.  
  17. # Initialize some variables set by options.
  18. # The variables have the same names as the options, with
  19. # dashes changed to underlines.
  20. build=NONE
  21. cache_file=./config.cache
  22. exec_prefix=NONE
  23. host=NONE
  24. no_create=
  25. nonopt=NONE
  26. no_recursion=
  27. prefix=NONE
  28. program_prefix=NONE
  29. program_suffix=NONE
  30. program_transform_name=s,x,x,
  31. silent=
  32. site=
  33. srcdir=
  34. target=NONE
  35. verbose=
  36. x_includes=NONE
  37. x_libraries=NONE
  38.  
  39. # Initialize some other variables.
  40. subdirs=
  41.  
  42. ac_prev=
  43. for ac_option
  44. do
  45.  
  46.   # If the previous option needs an argument, assign it.
  47.   if test -n "$ac_prev"; then
  48.     eval "$ac_prev=\$ac_option"
  49.     ac_prev=
  50.     continue
  51.   fi
  52.  
  53.   case "$ac_option" in
  54.   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  55.   *) ac_optarg= ;;
  56.   esac
  57.  
  58.   # Accept the important Cygnus configure options, so we can diagnose typos.
  59.  
  60.   case "$ac_option" in
  61.  
  62.   -build | --build | --buil | --bui | --bu | --b)
  63.     ac_prev=build ;;
  64.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  65.     build="$ac_optarg" ;;
  66.  
  67.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  68.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  69.     ac_prev=cache_file ;;
  70.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  71.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  72.     cache_file="$ac_optarg" ;;
  73.  
  74.   -disable-* | --disable-*)
  75.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  76.     # Reject names that are not valid shell variable names.
  77.     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  78.       { /bin/echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  79.     fi
  80.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  81.     eval "enable_${ac_feature}=no" ;;
  82.  
  83.   -enable-* | --enable-*)
  84.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  85.     # Reject names that are not valid shell variable names.
  86.     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  87.       { /bin/echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  88.     fi
  89.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  90.     case "$ac_option" in
  91.       *=*) ;;
  92.       *) ac_optarg=yes ;;
  93.     esac
  94.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  95.  
  96.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  97.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  98.   | --exec | --exe | --ex)
  99.     ac_prev=exec_prefix ;;
  100.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  101.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  102.   | --exec=* | --exe=* | --ex=*)
  103.     exec_prefix="$ac_optarg" ;;
  104.  
  105.   -gas | --gas | --ga | --g)
  106.     # Obsolete; use --with-gas.
  107.     with_gas=yes ;;
  108.  
  109.   -help | --help | --hel | --he)
  110.     # Omit some internal or obsolete options to make the list less imposing.
  111.     # This message is too long to be a string in the A/UX 3.1 sh.
  112.     cat << EOF
  113. Usage: configure [options] [host]
  114. Options: [defaults in brackets after descriptions]
  115. Configuration:
  116.   --cache-file=FILE       cache test results in FILE
  117.   --help                  print this message
  118.   --no-create             do not create output files
  119.   --quiet, --silent       do not print \`checking...' messages
  120.   --version               print the version of autoconf that created configure
  121. Directory and file names:
  122.   --prefix=PREFIX         install architecture-independent files in PREFIX
  123.                           [$ac_default_prefix]
  124.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  125.                           [same as prefix]
  126.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  127.   --program-prefix=PREFIX prepend PREFIX to installed program names
  128.   --program-suffix=SUFFIX append SUFFIX to installed program names
  129.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  130. Host type:
  131.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  132.   --host=HOST             configure for HOST [guessed]
  133.   --target=TARGET         configure for TARGET [TARGET=HOST]
  134. Features and packages:
  135.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  136.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  137.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  138.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  139.   --x-includes=DIR        X include files are in DIR
  140.   --x-libraries=DIR       X library files are in DIR
  141. --enable and --with options recognized:$ac_help
  142. EOF
  143.     exit 0 ;;
  144.  
  145.   -host | --host | --hos | --ho)
  146.     ac_prev=host ;;
  147.   -host=* | --host=* | --hos=* | --ho=*)
  148.     host="$ac_optarg" ;;
  149.  
  150.   -nfp | --nfp | --nf)
  151.     # Obsolete; use --without-fp.
  152.     with_fp=no ;;
  153.  
  154.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  155.   | --no-cr | --no-c)
  156.     no_create=yes ;;
  157.  
  158.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  159.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  160.     no_recursion=yes ;;
  161.  
  162.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  163.     ac_prev=prefix ;;
  164.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  165.     prefix="$ac_optarg" ;;
  166.  
  167.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  168.   | --program-pre | --program-pr | --program-p)
  169.     ac_prev=program_prefix ;;
  170.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  171.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  172.     program_prefix="$ac_optarg" ;;
  173.  
  174.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  175.   | --program-suf | --program-su | --program-s)
  176.     ac_prev=program_suffix ;;
  177.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  178.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  179.     program_suffix="$ac_optarg" ;;
  180.  
  181.   -program-transform-name | --program-transform-name \
  182.   | --program-transform-nam | --program-transform-na \
  183.   | --program-transform-n | --program-transform- \
  184.   | --program-transform | --program-transfor \
  185.   | --program-transfo | --program-transf \
  186.   | --program-trans | --program-tran \
  187.   | --progr-tra | --program-tr | --program-t)
  188.     ac_prev=program_transform_name ;;
  189.   -program-transform-name=* | --program-transform-name=* \
  190.   | --program-transform-nam=* | --program-transform-na=* \
  191.   | --program-transform-n=* | --program-transform-=* \
  192.   | --program-transform=* | --program-transfor=* \
  193.   | --program-transfo=* | --program-transf=* \
  194.   | --program-trans=* | --program-tran=* \
  195.   | --progr-tra=* | --program-tr=* | --program-t=*)
  196.     program_transform_name="$ac_optarg" ;;
  197.  
  198.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  199.   | -silent | --silent | --silen | --sile | --sil)
  200.     silent=yes ;;
  201.  
  202.   -site | --site | --sit)
  203.     ac_prev=site ;;
  204.   -site=* | --site=* | --sit=*)
  205.     site="$ac_optarg" ;;
  206.  
  207.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  208.     ac_prev=srcdir ;;
  209.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  210.     srcdir="$ac_optarg" ;;
  211.  
  212.   -target | --target | --targe | --targ | --tar | --ta | --t)
  213.     ac_prev=target ;;
  214.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  215.     target="$ac_optarg" ;;
  216.  
  217.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  218.     verbose=yes ;;
  219.  
  220.   -version | --version | --versio | --versi | --vers)
  221.     /bin/echo "configure generated by autoconf version 2.1"
  222.     exit 0 ;;
  223.  
  224.   -with-* | --with-*)
  225.     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  226.     # Reject names that are not valid shell variable names.
  227.     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  228.       { /bin/echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  229.     fi
  230.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  231.     case "$ac_option" in
  232.       *=*) ;;
  233.       *) ac_optarg=yes ;;
  234.     esac
  235.     eval "with_${ac_package}='$ac_optarg'" ;;
  236.  
  237.   -without-* | --without-*)
  238.     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  239.     # Reject names that are not valid shell variable names.
  240.     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  241.       { /bin/echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  242.     fi
  243.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  244.     eval "with_${ac_package}=no" ;;
  245.  
  246.   --x)
  247.     # Obsolete; use --with-x.
  248.     with_x=yes ;;
  249.  
  250.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  251.   | --x-incl | --x-inc | --x-in | --x-i)
  252.     ac_prev=x_includes ;;
  253.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  254.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  255.     x_includes="$ac_optarg" ;;
  256.  
  257.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  258.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  259.     ac_prev=x_libraries ;;
  260.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  261.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  262.     x_libraries="$ac_optarg" ;;
  263.  
  264.   -*) { /bin/echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  265.     ;;
  266.  
  267.   *) 
  268.     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  269.       /bin/echo "configure: warning: $ac_option: invalid host type" 1>&2
  270.     fi
  271.     if test "x$nonopt" != xNONE; then
  272.       { /bin/echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  273.     fi
  274.     nonopt="$ac_option"
  275.     ;;
  276.  
  277.   esac
  278. done
  279.  
  280. if test -n "$ac_prev"; then
  281.   { /bin/echo "configure: error: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  282. fi
  283.  
  284. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  285.  
  286. # File descriptor usage:
  287. # 0 unused; standard input
  288. # 1 file creation
  289. # 2 errors and warnings
  290. # 3 unused; some systems may open it to /dev/tty
  291. # 4 checking for... messages and results
  292. # 5 compiler messages saved in config.log
  293. if test "$silent" = yes; then
  294.   exec 4>/dev/null
  295. else
  296.   exec 4>&1
  297. fi
  298. exec 5>./config.log
  299.  
  300. /bin/echo "\
  301. This file contains any messages produced by compilers while
  302. running configure, to aid debugging if configure makes a mistake.
  303. " 1>&5
  304.  
  305. # Strip out --no-create and --no-recursion so they do not pile up.
  306. # Also quote any args containing shell metacharacters.
  307. ac_configure_args=
  308. for ac_arg
  309. do
  310.   case "$ac_arg" in
  311.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  312.   | --no-cr | --no-c) ;;
  313.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  314.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  315.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  316.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  317.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  318.   esac
  319. done
  320.  
  321. # NLS nuisances.
  322. # Only set LANG and LC_ALL to C if already set.
  323. # These must not be set unconditionally because not all systems understand
  324. # e.g. LANG=C (notably SCO).
  325. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  326. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  327.  
  328. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  329. rm -rf conftest* confdefs.h
  330. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  331. /bin/echo > confdefs.h
  332.  
  333. # A filename unique to this package, relative to the directory that
  334. # configure is in, which we can look for to find out if srcdir is correct.
  335. ac_unique_file=web2c/web2c.c
  336.  
  337. # Find the source files, if location was not specified.
  338. if test -z "$srcdir"; then
  339.   ac_srcdir_defaulted=yes
  340.   # Try the directory containing this script, then its parent.
  341.   ac_prog=$0
  342.   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  343.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  344.   srcdir=$ac_confdir
  345.   if test ! -r $srcdir/$ac_unique_file; then
  346.     srcdir=..
  347.   fi
  348. else
  349.   ac_srcdir_defaulted=no
  350. fi
  351. if test ! -r $srcdir/$ac_unique_file; then
  352.   if test "$ac_srcdir_defaulted" = yes; then
  353.     { /bin/echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  354.   else
  355.     { /bin/echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  356.   fi
  357. fi
  358. srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  359.  
  360. # Prefer explicitly selected file to automatically selected ones.
  361. if test -z "$CONFIG_SITE"; then
  362.   if test "x$prefix" != xNONE; then
  363.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  364.   else
  365.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  366.   fi
  367. fi
  368. for ac_site_file in $CONFIG_SITE; do
  369.   if test -r "$ac_site_file"; then
  370.     /bin/echo "loading site script $ac_site_file"
  371.     . "$ac_site_file"
  372.   fi
  373. done
  374.  
  375. if test -r "$cache_file"; then
  376.   /bin/echo "loading cache $cache_file"
  377.   . $cache_file
  378. else
  379.   /bin/echo "creating cache $cache_file"
  380.   > $cache_file
  381. fi
  382.  
  383. ac_ext=c
  384. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  385. ac_cpp='$CPP $CPPFLAGS'
  386. ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  387. ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  388.  
  389. if (/bin/echo "testing\c"; /bin/echo 1,2,3) | grep c >/dev/null; then
  390.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  391.   if (/bin/echo -n testing; /bin/echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  392.     ac_n= ac_c='
  393. ' ac_t='    '
  394.   else
  395.     ac_n=-n ac_c= ac_t=
  396.   fi
  397. else
  398.   ac_n= ac_c='\c' ac_t=
  399. fi
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409. /bin/echo $ac_n "checking whether ${MAKE-make} sets \$MAKE""... $ac_c" 1>&4
  410. set dummy ${MAKE-make}; ac_make=$2
  411. if eval "test \"`/bin/echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  412.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  413. else
  414.   cat > conftestmake <<\EOF
  415. all:
  416.     @/bin/echo 'ac_maketemp="${MAKE}"'
  417. EOF
  418. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  419. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  420. if test -n "$ac_maketemp"; then
  421.   eval ac_cv_prog_make_${ac_make}_set=yes
  422. else
  423.   eval ac_cv_prog_make_${ac_make}_set=no
  424. fi
  425. rm -f conftestmake
  426. fi
  427. if eval "test \"`/bin/echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  428.   /bin/echo "$ac_t""yes" 1>&4
  429.   SET_MAKE=
  430. else
  431.   /bin/echo "$ac_t""no" 1>&4
  432.   SET_MAKE="MAKE=${MAKE-make}"
  433. fi
  434.  
  435.  
  436. # Extract the first word of "gcc", so it can be a program name with args.
  437. set dummy gcc; ac_word=$2
  438. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  439. if eval "test \"`/bin/echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  440.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  441. else
  442.   if test -n "$CC"; then
  443.   ac_cv_prog_CC="$CC" # Let the user override the test.
  444. else
  445.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  446.   for ac_dir in $PATH; do
  447.     test -z "$ac_dir" && ac_dir=.
  448.     if test -f $ac_dir/$ac_word; then
  449.       ac_cv_prog_CC="gcc"
  450.       break
  451.     fi
  452.   done
  453.   IFS="$ac_save_ifs"
  454.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  455. fi
  456. fi
  457. CC="$ac_cv_prog_CC"
  458. if test -n "$CC"; then
  459.   /bin/echo "$ac_t""$CC" 1>&4
  460. else
  461.   /bin/echo "$ac_t""no" 1>&4
  462. fi
  463.  
  464.  
  465. /bin/echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  466. if eval "test \"`/bin/echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  467.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  468. else
  469.   cat > conftest.c <<EOF
  470. #ifdef __GNUC__
  471.   yes;
  472. #endif
  473. EOF
  474. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  475.   ac_cv_prog_gcc=yes
  476. else
  477.   ac_cv_prog_gcc=no
  478. fi
  479. fi
  480. /bin/echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  481. if test $ac_cv_prog_gcc = yes; then
  482.   GCC=yes
  483.   if test "${CFLAGS+set}" != set; then
  484.     /bin/echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  485. if eval "test \"`/bin/echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  486.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  487. else
  488.   /bin/echo 'void f(){}' > conftest.c
  489. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  490.   ac_cv_prog_gcc_g=yes
  491. else
  492.   ac_cv_prog_gcc_g=no
  493. fi
  494. rm -f conftest*
  495.  
  496. fi
  497.     /bin/echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  498.     if test $ac_cv_prog_gcc_g = yes; then
  499.       CFLAGS="-g -O"
  500.     else
  501.       CFLAGS="-O"
  502.     fi
  503.   fi
  504. else
  505.   GCC=
  506.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  507. fi
  508.  
  509. ac_aux_dir=
  510. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  511.   if test -f $ac_dir/install-sh; then
  512.     ac_aux_dir=$ac_dir
  513.     ac_install_sh="$ac_aux_dir/install-sh -c"
  514.     break
  515.   elif test -f $ac_dir/install.sh; then
  516.     ac_aux_dir=$ac_dir
  517.     ac_install_sh="$ac_aux_dir/install.sh -c"
  518.     break
  519.   fi
  520. done
  521. if test -z "$ac_aux_dir"; then
  522.   { /bin/echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  523. fi
  524. ac_config_guess=$ac_aux_dir/config.guess
  525. ac_config_sub=$ac_aux_dir/config.sub
  526. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  527.  
  528. # Find a good install program.  We prefer a C program (faster),
  529. # so one script is as good as another.  But avoid the broken or
  530. # incompatible versions:
  531. # SysV /etc/install, /usr/sbin/install
  532. # SunOS /usr/etc/install
  533. # IRIX /sbin/install
  534. # AIX /bin/install
  535. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  536. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  537. # ./install, which can be erroneously created by make from ./install.sh.
  538. /bin/echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  539. INSTALL="/bin/install -c"
  540. if test -z "$INSTALL"; then
  541. if eval "test \"`/bin/echo '${'ac_cv_path_install'+set}'`\" = set"; then
  542.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  543. else
  544.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  545.   for ac_dir in $PATH; do
  546.     case "$ac_dir" in
  547.     ''|.|/bin) ;;
  548.     *)
  549.       # OSF1 and SCO ODT 3.0 have their own names for install.
  550.       for ac_prog in ginstall installbsd scoinst install; do
  551.         if test -f $ac_dir/$ac_prog; then
  552.       if test $ac_prog = install &&
  553.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  554.         # AIX install.  It has an incompatible calling convention.
  555.         # OSF/1 installbsd also uses dspmsg, but is usable.
  556.         :
  557.       else
  558.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  559.         break 2
  560.       fi
  561.     fi
  562.       done
  563.       ;;
  564.     esac
  565.   done
  566.   IFS="$ac_save_ifs"
  567.   # As a last resort, use the slow shell script.
  568.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  569. fi
  570.   INSTALL="$ac_cv_path_install"
  571. fi
  572. /bin/echo "$ac_t""$INSTALL" 1>&4
  573.  
  574. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  575. # It thinks the first close brace ends the variable substitution.
  576. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  577.  
  578. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  579.  
  580. # Extract the first word of "ranlib", so it can be a program name with args.
  581. set dummy ranlib; ac_word=$2
  582. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  583. if eval "test \"`/bin/echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  584.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  585. else
  586.   if test -n "$RANLIB"; then
  587.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  588. else
  589.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  590.   for ac_dir in $PATH; do
  591.     test -z "$ac_dir" && ac_dir=.
  592.     if test -f $ac_dir/$ac_word; then
  593.       ac_cv_prog_RANLIB="ranlib"
  594.       break
  595.     fi
  596.   done
  597.   IFS="$ac_save_ifs"
  598.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  599. fi
  600. fi
  601. RANLIB="$ac_cv_prog_RANLIB"
  602. if test -n "$RANLIB"; then
  603.   /bin/echo "$ac_t""$RANLIB" 1>&4
  604. else
  605.   /bin/echo "$ac_t""no" 1>&4
  606. fi
  607.  
  608.  
  609. /bin/echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  610. if test -d /etc/conf/kconfig.d &&
  611.   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  612. then
  613.   /bin/echo "$ac_t""yes" 1>&4
  614.   ISC=yes # If later tests want to check for ISC.
  615.   cat >> confdefs.h <<\EOF
  616. #define _POSIX_SOURCE 1
  617. EOF
  618.  
  619.   if test "$GCC" = yes; then
  620.     CC="$CC -posix"
  621.   else
  622.     CC="$CC -Xp"
  623.   fi
  624. else
  625.   /bin/echo "$ac_t""no" 1>&4
  626.   ISC=
  627. fi
  628.  
  629.  
  630. ac_header_dirent=no
  631. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  632. do
  633. ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  634. /bin/echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
  635. if eval "test \"`/bin/echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  636.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  637. else
  638.   cat > conftest.$ac_ext <<EOF
  639. #line 639 "configure"
  640. #include "confdefs.h"
  641. #include <sys/types.h>
  642. #include <$ac_hdr>
  643. int main() { return 0; }
  644. int t() {
  645. DIR *dirp = 0;
  646. ; return 0; }
  647. EOF
  648. if eval $ac_compile; then
  649.   rm -rf conftest*
  650.   eval "ac_cv_header_dirent_$ac_safe=yes"
  651. else
  652.   rm -rf conftest*
  653.   eval "ac_cv_header_dirent_$ac_safe=no"
  654. fi
  655. rm -f conftest*
  656.  
  657. fi
  658. if eval "test \"`/bin/echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  659.   /bin/echo "$ac_t""yes" 1>&4
  660.     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  661.   cat >> confdefs.h <<EOF
  662. #define $ac_tr_hdr 1
  663. EOF
  664.  ac_header_dirent=$ac_hdr; break
  665. else
  666.   /bin/echo "$ac_t""no" 1>&4
  667. fi
  668. done
  669. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  670. if test $ac_header_dirent = dirent.h; then
  671. /bin/echo $ac_n "checking for -ldir""... $ac_c" 1>&4
  672. if eval "test \"`/bin/echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
  673.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  674. else
  675.   ac_save_LIBS="$LIBS"
  676. LIBS="$LIBS -ldir "
  677. cat > conftest.$ac_ext <<EOF
  678. #line 678 "configure"
  679. #include "confdefs.h"
  680.  
  681. int main() { return 0; }
  682. int t() {
  683. opendir()
  684. ; return 0; }
  685. EOF
  686. if eval $ac_link; then
  687.   rm -rf conftest*
  688.   eval "ac_cv_lib_dir=yes"
  689. else
  690.   rm -rf conftest*
  691.   eval "ac_cv_lib_dir=no"
  692. fi
  693. rm -f conftest*
  694. LIBS="$ac_save_LIBS"
  695.  
  696. fi
  697. if eval "test \"`/bin/echo '$ac_cv_lib_'dir`\" = yes"; then
  698.   /bin/echo "$ac_t""yes" 1>&4
  699.   LIBS="$LIBS -ldir"
  700. else
  701.   /bin/echo "$ac_t""no" 1>&4
  702. fi
  703.  
  704. else
  705. /bin/echo $ac_n "checking for -lx""... $ac_c" 1>&4
  706. if eval "test \"`/bin/echo '${'ac_cv_lib_x'+set}'`\" = set"; then
  707.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  708. else
  709.   ac_save_LIBS="$LIBS"
  710. LIBS="$LIBS -lx "
  711. cat > conftest.$ac_ext <<EOF
  712. #line 712 "configure"
  713. #include "confdefs.h"
  714.  
  715. int main() { return 0; }
  716. int t() {
  717. opendir()
  718. ; return 0; }
  719. EOF
  720. if eval $ac_link; then
  721.   rm -rf conftest*
  722.   eval "ac_cv_lib_x=yes"
  723. else
  724.   rm -rf conftest*
  725.   eval "ac_cv_lib_x=no"
  726. fi
  727. rm -f conftest*
  728. LIBS="$ac_save_LIBS"
  729.  
  730. fi
  731. if eval "test \"`/bin/echo '$ac_cv_lib_'x`\" = yes"; then
  732.   /bin/echo "$ac_t""yes" 1>&4
  733.   LIBS="$LIBS -lx"
  734. else
  735.   /bin/echo "$ac_t""no" 1>&4
  736. fi
  737.  
  738. fi
  739.  
  740. /bin/echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  741. # On Suns, sometimes $CPP names a directory.
  742. if test -n "$CPP" && test -d "$CPP"; then
  743.   CPP=
  744. fi
  745. if test -z "$CPP"; then
  746. if eval "test \"`/bin/echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  747.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  748. else
  749.     # This must be in double quotes, not single quotes, because CPP may get
  750.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  751.   CPP="${CC-cc} -E"
  752.   # On the NeXT, cc -E runs the code through the compiler's parser,
  753.   # not just through cpp.
  754.   cat > conftest.$ac_ext <<EOF
  755. #line 755 "configure"
  756. #include "confdefs.h"
  757. #include <assert.h>
  758. Syntax Error
  759. EOF
  760. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  761. ac_err=`grep -v '^ *+' conftest.out`
  762. if test -z "$ac_err"; then
  763.   :
  764. else
  765.   /bin/echo "$ac_err" >&5
  766.   rm -rf conftest*
  767.   CPP="${CC-cc} -E -traditional-cpp"
  768.   cat > conftest.$ac_ext <<EOF
  769. #line 769 "configure"
  770. #include "confdefs.h"
  771. #include <assert.h>
  772. Syntax Error
  773. EOF
  774. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  775. ac_err=`grep -v '^ *+' conftest.out`
  776. if test -z "$ac_err"; then
  777.   :
  778. else
  779.   /bin/echo "$ac_err" >&5
  780.   rm -rf conftest*
  781.   CPP=/lib/cpp
  782. fi
  783. rm -f conftest*
  784. fi
  785. rm -f conftest*
  786.   ac_cv_prog_CPP="$CPP"
  787. fi
  788. fi
  789. CPP="$ac_cv_prog_CPP"
  790. /bin/echo "$ac_t""$CPP" 1>&4
  791.  
  792. # If we cannot run a trivial program, we must be cross compiling.
  793. /bin/echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  794. if eval "test \"`/bin/echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  795.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  796. else
  797.   if test "$cross_compiling" = yes; then
  798.   ac_cv_cross=yes
  799. else
  800. cat > conftest.$ac_ext <<EOF
  801. #line 801 "configure"
  802. #include "confdefs.h"
  803. main(){return(0);}
  804. EOF
  805. eval $ac_link
  806. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  807.   ac_cv_c_cross=no
  808. else
  809.   ac_cv_c_cross=yes
  810. fi
  811. fi
  812. rm -fr conftest*
  813. fi
  814. cross_compiling=$ac_cv_c_cross
  815. /bin/echo "$ac_t""$ac_cv_c_cross" 1>&4
  816.  
  817. /bin/echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  818. if eval "test \"`/bin/echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  819.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  820. else
  821.   cat > conftest.$ac_ext <<EOF
  822. #line 822 "configure"
  823. #include "confdefs.h"
  824. #include <stdlib.h>
  825. #include <stdarg.h>
  826. #include <string.h>
  827. #include <float.h>
  828. EOF
  829. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  830. ac_err=`grep -v '^ *+' conftest.out`
  831. if test -z "$ac_err"; then
  832.   rm -rf conftest*
  833.   ac_cv_header_stdc=yes
  834. else
  835.   /bin/echo "$ac_err" >&5
  836.   rm -rf conftest*
  837.   ac_cv_header_stdc=no
  838. fi
  839. rm -f conftest*
  840.  
  841. if test $ac_cv_header_stdc = yes; then
  842.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  843. cat > conftest.$ac_ext <<EOF
  844. #line 844 "configure"
  845. #include "confdefs.h"
  846. #include <string.h>
  847. EOF
  848. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  849.   egrep "memchr" >/dev/null 2>&1; then
  850.   :
  851. else
  852.   rm -rf conftest*
  853.   ac_cv_header_stdc=no
  854. fi
  855. rm -f conftest*
  856.  
  857. fi
  858.  
  859. if test $ac_cv_header_stdc = yes; then
  860.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  861. cat > conftest.$ac_ext <<EOF
  862. #line 862 "configure"
  863. #include "confdefs.h"
  864. #include <stdlib.h>
  865. EOF
  866. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  867.   egrep "free" >/dev/null 2>&1; then
  868.   :
  869. else
  870.   rm -rf conftest*
  871.   ac_cv_header_stdc=no
  872. fi
  873. rm -f conftest*
  874.  
  875. fi
  876.  
  877. if test $ac_cv_header_stdc = yes; then
  878.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  879. if test "$cross_compiling" = yes; then
  880.   ac_cv_header_stdc=no
  881. else
  882. cat > conftest.$ac_ext <<EOF
  883. #line 883 "configure"
  884. #include "confdefs.h"
  885. #include <ctype.h>
  886. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  887. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  888. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  889. int main () { int i; for (i = 0; i < 256; i++)
  890. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  891. exit (0); }
  892.  
  893. EOF
  894. eval $ac_link
  895. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  896.   :
  897. else
  898.   ac_cv_header_stdc=no
  899. fi
  900. fi
  901. rm -fr conftest*
  902. fi
  903. fi
  904. /bin/echo "$ac_t""$ac_cv_header_stdc" 1>&4
  905. if test $ac_cv_header_stdc = yes; then
  906.   cat >> confdefs.h <<\EOF
  907. #define STDC_HEADERS 1
  908. EOF
  909.  
  910. fi
  911.  
  912. /bin/echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&4
  913. if eval "test \"`/bin/echo '${'ac_cv_func_closedir_void'+set}'`\" = set"; then
  914.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  915. else
  916.   if test "$cross_compiling" = yes; then
  917.     { /bin/echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  918. else
  919. cat > conftest.$ac_ext <<EOF
  920. #line 920 "configure"
  921. #include "confdefs.h"
  922. #include <sys/types.h>
  923. #include <$ac_header_dirent>
  924. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  925. EOF
  926. eval $ac_link
  927. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  928.   ac_cv_func_closedir_void=no
  929. else
  930.   ac_cv_func_closedir_void=yes
  931. fi
  932. fi
  933. rm -fr conftest*
  934. fi
  935. /bin/echo "$ac_t""$ac_cv_func_closedir_void" 1>&4
  936. if test $ac_cv_func_closedir_void = yes; then
  937.   cat >> confdefs.h <<\EOF
  938. #define CLOSEDIR_VOID 1
  939. EOF
  940.  
  941. fi
  942.  
  943. for ac_hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h \
  944.                  string.h unistd.h
  945. do
  946. ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  947. /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  948. if eval "test \"`/bin/echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  949.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  950. else
  951.   cat > conftest.$ac_ext <<EOF
  952. #line 952 "configure"
  953. #include "confdefs.h"
  954. #include <$ac_hdr>
  955. EOF
  956. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  957. ac_err=`grep -v '^ *+' conftest.out`
  958. if test -z "$ac_err"; then
  959.   rm -rf conftest*
  960.   eval "ac_cv_header_$ac_safe=yes"
  961. else
  962.   /bin/echo "$ac_err" >&5
  963.   rm -rf conftest*
  964.   eval "ac_cv_header_$ac_safe=no"
  965. fi
  966. rm -f conftest*
  967. fi
  968. if eval "test \"`/bin/echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  969.   /bin/echo "$ac_t""yes" 1>&4
  970.     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  971.   cat >> confdefs.h <<EOF
  972. #define $ac_tr_hdr 1
  973. EOF
  974.  
  975. else
  976.   /bin/echo "$ac_t""no" 1>&4
  977. fi
  978. done
  979.  
  980.  
  981. for ac_func in basename bcopy memmove putenv
  982. do
  983. /bin/echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  984. if eval "test \"`/bin/echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  985.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  986. else
  987.   cat > conftest.$ac_ext <<EOF
  988. #line 988 "configure"
  989. #include "confdefs.h"
  990. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  991. /* Override any gcc2 internal prototype to avoid an error.  */
  992. char $ac_func(); 
  993.  
  994. int main() { return 0; }
  995. int t() {
  996.  
  997. /* The GNU C library defines this for functions which it implements
  998.     to always fail with ENOSYS.  Some functions are actually named
  999.     something starting with __ and the normal name is an alias.  */
  1000. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1001. choke me
  1002. #else
  1003. $ac_func();
  1004. #endif
  1005.  
  1006. ; return 0; }
  1007. EOF
  1008. if eval $ac_link; then
  1009.   rm -rf conftest*
  1010.   eval "ac_cv_func_$ac_func=yes"
  1011. else
  1012.   rm -rf conftest*
  1013.   eval "ac_cv_func_$ac_func=no"
  1014. fi
  1015. rm -f conftest*
  1016.  
  1017. fi
  1018. if eval "test \"`/bin/echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1019.   /bin/echo "$ac_t""yes" 1>&4
  1020.     ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  1021.   cat >> confdefs.h <<EOF
  1022. #define $ac_tr_func 1
  1023. EOF
  1024.  
  1025. else
  1026.   /bin/echo "$ac_t""no" 1>&4
  1027. fi
  1028. done
  1029.  
  1030.  
  1031. /bin/echo $ac_n "checking for working const""... $ac_c" 1>&4
  1032. if eval "test \"`/bin/echo '${'ac_cv_c_const'+set}'`\" = set"; then
  1033.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1034. else
  1035.   cat > conftest.$ac_ext <<EOF
  1036. #line 1036 "configure"
  1037. #include "confdefs.h"
  1038.  
  1039. int main() { return 0; }
  1040. int t() {
  1041.  
  1042. /* Ultrix mips cc rejects this.  */
  1043. typedef int charset[2]; const charset x;
  1044. /* SunOS 4.1.1 cc rejects this.  */
  1045. char const *const *ccp;
  1046. char **p;
  1047. /* NEC SVR4.0.2 mips cc rejects this.  */
  1048. struct point {int x, y;};
  1049. static struct point const zero;
  1050. /* AIX XL C 1.02.0.0 rejects this.
  1051.    It does not let you subtract one const X* pointer from another in an arm
  1052.    of an if-expression whose if-part is not a constant expression */
  1053. const char *g = "string";
  1054. ccp = &g + (g ? g-g : 0);
  1055. /* HPUX 7.0 cc rejects these. */
  1056. ++ccp;
  1057. p = (char**) ccp;
  1058. ccp = (char const *const *) p;
  1059. { /* SCO 3.2v4 cc rejects this.  */
  1060.   char *t;
  1061.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1062.  
  1063.   *t++ = 0;
  1064. }
  1065. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1066.   int x[] = {25, 17};
  1067.   const int *foo = &x[0];
  1068.   ++foo;
  1069. }
  1070. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1071.   typedef const int *iptr;
  1072.   iptr p = 0;
  1073.   ++p;
  1074. }
  1075. { /* AIX XL C 1.02.0.0 rejects this saying
  1076.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1077.   struct s { int j; const int *ap[3]; };
  1078.   struct s *b; b->j = 5;
  1079. }
  1080. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1081.   const int foo = 10;
  1082. }
  1083.  
  1084. ; return 0; }
  1085. EOF
  1086. if eval $ac_compile; then
  1087.   rm -rf conftest*
  1088.   ac_cv_c_const=yes
  1089. else
  1090.   rm -rf conftest*
  1091.   ac_cv_c_const=no
  1092. fi
  1093. rm -f conftest*
  1094.  
  1095. fi
  1096. /bin/echo "$ac_t""$ac_cv_c_const" 1>&4
  1097. if test $ac_cv_c_const = no; then
  1098.   cat >> confdefs.h <<\EOF
  1099. #define const 
  1100. EOF
  1101.  
  1102. fi
  1103.  
  1104.  
  1105.  
  1106. # This is a GNU libc invention.
  1107. /bin/echo $ac_n "checking whether program_invocation_name is predefined""... $ac_c" 1>&4
  1108. if eval "test \"`/bin/echo '${'kb_cv_var_program_inv_name'+set}'`\" = set"; then
  1109.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1110. else
  1111.   cat > conftest.$ac_ext <<EOF
  1112. #line 1112 "configure"
  1113. #include "confdefs.h"
  1114.  
  1115. int main() { return 0; }
  1116. int t() {
  1117. main() { program_invocation_name = "love"; }
  1118. ; return 0; }
  1119. EOF
  1120. if eval $ac_link; then
  1121.   rm -rf conftest*
  1122.   kb_cv_var_program_inv_name=yes
  1123. else
  1124.   rm -rf conftest*
  1125.   kb_cv_var_program_inv_name=no
  1126. fi
  1127. rm -f conftest*
  1128.  
  1129. fi
  1130. /bin/echo "$ac_t""$kb_cv_var_program_inv_name" 1>&4
  1131. if test $kb_cv_var_program_inv_name = yes; then
  1132.   cat >> confdefs.h <<\EOF
  1133. #define HAVE_PROGRAM_INVOCATION_NAME 1
  1134. EOF
  1135.  
  1136. fi
  1137.  
  1138.  
  1139. # Some BSD putenv's, e.g., FreeBSD, do malloc/free's on the environment.
  1140. # This test program is due to Mike Hibler <mike@cs.utah.edu>.
  1141. # We don't actually need to run this if we don't have putenv, but it
  1142. # doesn't hurt.
  1143. /bin/echo $ac_n "checking whether putenv uses malloc""... $ac_c" 1>&4
  1144. if eval "test \"`/bin/echo '${'kb_cv_func_putenv_malloc'+set}'`\" = set"; then
  1145.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1146. else
  1147.   if test "$cross_compiling" = yes; then
  1148.   kb_cv_func_putenv_malloc=no
  1149. else
  1150. cat > conftest.$ac_ext <<EOF
  1151. #line 1151 "configure"
  1152. #include "confdefs.h"
  1153.  
  1154. #define VAR    "YOW_VAR"
  1155. #define STRING1 "GabbaGabbaHey"
  1156. #define STRING2 "Yow!!"        /* should be shorter than STRING1 */
  1157. extern char *getenv (); /* in case char* and int don't mix gracefully */
  1158. main ()
  1159. {
  1160.   char *str1, *rstr1, *str2, *rstr2;
  1161.   str1 = getenv (VAR);
  1162.   if (str1)
  1163.     exit (1);
  1164.   str1 = malloc (strlen (VAR) + 1 + strlen (STRING1) + 1);
  1165.   if (str1 == 0)
  1166.     exit (2);
  1167.   strcpy (str1, VAR);
  1168.   strcat (str1, "=");
  1169.   strcat (str1, STRING1);
  1170.   if (putenv (str1) < 0)
  1171.     exit (3);
  1172.   rstr1 = getenv (VAR);
  1173.   if (rstr1 == 0)
  1174.     exit (4);
  1175.   rstr1 -= strlen (VAR) + 1;
  1176.   if (strncmp (rstr1, VAR, strlen (VAR)))
  1177.     exit (5);
  1178.   str2 = malloc (strlen (VAR) + 1 + strlen (STRING2) + 1);
  1179.   if (str2 == 0 || str1 == str2)
  1180.     exit (6);
  1181.   strcpy (str2, VAR);
  1182.   strcat (str2, "=");
  1183.   strcat (str2, STRING2);
  1184.   if (putenv (str2) < 0)
  1185.     exit (7);
  1186.   rstr2 = getenv (VAR);
  1187.   if (rstr2 == 0)
  1188.     exit (8);
  1189.   rstr2 -= strlen (VAR) + 1;
  1190. #if 0
  1191.   printf ("rstr1=0x%x, rstr2=0x%x\n", rstr1, rstr2);
  1192.   /*
  1193.    * If string from first call was reused for the second call,
  1194.    * you had better not do a free on the first string!
  1195.    */
  1196.   if (rstr1 == rstr2)
  1197.           printf ("#define SMART_PUTENV\n");
  1198.   else
  1199.           printf ("#undef SMART_PUTENV\n");
  1200. #endif
  1201.   exit (rstr1 == rstr2 ? 0 : 1);
  1202. }
  1203. EOF
  1204. eval $ac_link
  1205. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1206.   kb_cv_func_putenv_malloc=yes
  1207. else
  1208.   kb_cv_func_putenv_malloc=no
  1209. fi
  1210. fi
  1211. rm -fr conftest*
  1212. fi
  1213. /bin/echo "$ac_t""$kb_cv_func_putenv_malloc" 1>&4
  1214. if test $kb_cv_func_putenv_malloc = yes; then
  1215.   cat >> confdefs.h <<\EOF
  1216. #define SMART_PUTENV 1
  1217. EOF
  1218.  
  1219. fi
  1220.  
  1221.  
  1222. for ac_prog in 'bison -y' byacc
  1223. do
  1224. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1225. set dummy $ac_prog; ac_word=$2
  1226. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  1227. if eval "test \"`/bin/echo '${'ac_cv_prog_YACC'+set}'`\" = set"; then
  1228.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1229. else
  1230.   if test -n "$YACC"; then
  1231.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1232. else
  1233.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1234.   for ac_dir in $PATH; do
  1235.     test -z "$ac_dir" && ac_dir=.
  1236.     if test -f $ac_dir/$ac_word; then
  1237.       ac_cv_prog_YACC="$ac_prog"
  1238.       break
  1239.     fi
  1240.   done
  1241.   IFS="$ac_save_ifs"
  1242. fi
  1243. fi
  1244. YACC="$ac_cv_prog_YACC"
  1245. if test -n "$YACC"; then
  1246.   /bin/echo "$ac_t""$YACC" 1>&4
  1247. else
  1248.   /bin/echo "$ac_t""no" 1>&4
  1249. fi
  1250.  
  1251. test -n "$YACC" && break
  1252. done
  1253. test -n "$YACC" || YACC="yacc"
  1254.  
  1255. # Extract the first word of "flex", so it can be a program name with args.
  1256. set dummy flex; ac_word=$2
  1257. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  1258. if eval "test \"`/bin/echo '${'ac_cv_prog_LEX'+set}'`\" = set"; then
  1259.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1260. else
  1261.   if test -n "$LEX"; then
  1262.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1263. else
  1264.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1265.   for ac_dir in $PATH; do
  1266.     test -z "$ac_dir" && ac_dir=.
  1267.     if test -f $ac_dir/$ac_word; then
  1268.       ac_cv_prog_LEX="flex"
  1269.       break
  1270.     fi
  1271.   done
  1272.   IFS="$ac_save_ifs"
  1273.   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1274. fi
  1275. fi
  1276. LEX="$ac_cv_prog_LEX"
  1277. if test -n "$LEX"; then
  1278.   /bin/echo "$ac_t""$LEX" 1>&4
  1279. else
  1280.   /bin/echo "$ac_t""no" 1>&4
  1281. fi
  1282.  
  1283. if test -z "$LEXLIB"
  1284. then
  1285.   case "$LEX" in
  1286.   flex*) ac_lib=fl ;;
  1287.   *) ac_lib=l ;;
  1288.   esac
  1289.   /bin/echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&4
  1290. if eval "test \"`/bin/echo '${'ac_cv_lib_$ac_lib'+set}'`\" = set"; then
  1291.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1292. else
  1293.   ac_save_LIBS="$LIBS"
  1294. LIBS="$LIBS -l$ac_lib "
  1295. cat > conftest.$ac_ext <<EOF
  1296. #line 1296 "configure"
  1297. #include "confdefs.h"
  1298.  
  1299. int main() { return 0; }
  1300. int t() {
  1301. main()
  1302. ; return 0; }
  1303. EOF
  1304. if eval $ac_link; then
  1305.   rm -rf conftest*
  1306.   eval "ac_cv_lib_$ac_lib=yes"
  1307. else
  1308.   rm -rf conftest*
  1309.   eval "ac_cv_lib_$ac_lib=no"
  1310. fi
  1311. rm -f conftest*
  1312. LIBS="$ac_save_LIBS"
  1313.  
  1314. fi
  1315. if eval "test \"`/bin/echo '$ac_cv_lib_'$ac_lib`\" = yes"; then
  1316.   /bin/echo "$ac_t""yes" 1>&4
  1317.   LEXLIB="-l$ac_lib"
  1318. else
  1319.   /bin/echo "$ac_t""no" 1>&4
  1320. fi
  1321.  
  1322. fi
  1323.  
  1324. /bin/echo $ac_n "checking whether ln -s works""... $ac_c" 1>&4
  1325. if eval "test \"`/bin/echo '${'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1326.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1327. else
  1328.   rm -f conftestdata
  1329. if ln -s X conftestdata 2>/dev/null
  1330. then
  1331.   rm -f conftestdata
  1332.   ac_cv_prog_LN_S="cp -p"
  1333. else
  1334.   ac_cv_prog_LN_S="cp -p"
  1335. fi
  1336. fi
  1337. LN_S="$ac_cv_prog_LN_S"
  1338. if test "$ac_cv_prog_LN_S" = "cp -p"; then
  1339.   /bin/echo "$ac_t""yes" 1>&4
  1340. else
  1341.   /bin/echo "$ac_t""no" 1>&4
  1342. fi
  1343.  
  1344.  
  1345. /bin/echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
  1346. if eval "test \"`/bin/echo '${'ac_cv_type_signal'+set}'`\" = set"; then
  1347.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1348. else
  1349.   cat > conftest.$ac_ext <<EOF
  1350. #line 1350 "configure"
  1351. #include "confdefs.h"
  1352. #include <sys/types.h>
  1353. #include <signal.h>
  1354. #ifdef signal
  1355. #undef signal
  1356. #endif
  1357. extern void (*signal ()) ();
  1358. int main() { return 0; }
  1359. int t() {
  1360. int i;
  1361. ; return 0; }
  1362. EOF
  1363. if eval $ac_compile; then
  1364.   rm -rf conftest*
  1365.   ac_cv_type_signal=void
  1366. else
  1367.   rm -rf conftest*
  1368.   ac_cv_type_signal=int
  1369. fi
  1370. rm -f conftest*
  1371.  
  1372. fi
  1373. /bin/echo "$ac_t""$ac_cv_type_signal" 1>&4
  1374. cat >> confdefs.h <<EOF
  1375. #define RETSIGTYPE $ac_cv_type_signal
  1376. EOF
  1377.  
  1378.  
  1379.  
  1380. /bin/echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&4
  1381. if eval "test \"`/bin/echo '${'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  1382.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1383. else
  1384.   if test "$GCC" = yes; then
  1385.   # GCC predefines this symbol on systems where it applies.
  1386. cat > conftest.$ac_ext <<EOF
  1387. #line 1387 "configure"
  1388. #include "confdefs.h"
  1389. #ifdef __CHAR_UNSIGNED__
  1390.   yes
  1391. #endif
  1392.  
  1393. EOF
  1394. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1395.   egrep "yes" >/dev/null 2>&1; then
  1396.   rm -rf conftest*
  1397.   ac_cv_c_char_unsigned=yes
  1398. else
  1399.   rm -rf conftest*
  1400.   ac_cv_c_char_unsigned=no
  1401. fi
  1402. rm -f conftest*
  1403.  
  1404. else
  1405. if test "$cross_compiling" = yes; then
  1406.     { /bin/echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1407. else
  1408. cat > conftest.$ac_ext <<EOF
  1409. #line 1409 "configure"
  1410. #include "confdefs.h"
  1411. /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1412. #if !defined(__STDC__) || __STDC__ != 1
  1413. #define volatile
  1414. #endif
  1415. main() {
  1416.   volatile char c = 255; exit(c < 0);
  1417. }
  1418. EOF
  1419. eval $ac_link
  1420. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1421.   ac_cv_c_char_unsigned=yes
  1422. else
  1423.   ac_cv_c_char_unsigned=no
  1424. fi
  1425. fi
  1426. rm -fr conftest*
  1427. fi
  1428. fi
  1429. /bin/echo "$ac_t""$ac_cv_c_char_unsigned" 1>&4
  1430. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  1431.   cat >> confdefs.h <<\EOF
  1432. #define __CHAR_UNSIGNED__ 1
  1433. EOF
  1434.  
  1435. fi
  1436.  
  1437. /bin/echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&4
  1438. if test "$cross_compiling" = yes; then
  1439.     { /bin/echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1440. else
  1441. cat > conftest.$ac_ext <<EOF
  1442. #line 1442 "configure"
  1443. #include "confdefs.h"
  1444. main() { exit(sizeof(long int) != 8); }
  1445. EOF
  1446. eval $ac_link
  1447. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1448.   /bin/echo "$ac_t""yes" 1>&4
  1449.  cat >> confdefs.h <<\EOF
  1450. #define LONG_64_BITS 1
  1451. EOF
  1452.  
  1453. else
  1454.   /bin/echo "$ac_t""no" 1>&4
  1455. fi
  1456. fi
  1457. rm -fr conftest*
  1458.  
  1459. /bin/echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&4
  1460. if eval "test \"`/bin/echo '${'ac_cv_c_bigendian'+set}'`\" = set"; then
  1461.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1462. else
  1463.   if test "$cross_compiling" = yes; then
  1464.     { /bin/echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1465. else
  1466. cat > conftest.$ac_ext <<EOF
  1467. #line 1467 "configure"
  1468. #include "confdefs.h"
  1469. main () {
  1470.   /* Are we little or big endian?  From Harbison&Steele.  */
  1471.   union
  1472.   {
  1473.     long l;
  1474.     char c[sizeof (long)];
  1475.   } u;
  1476.   u.l = 1;
  1477.   exit (u.c[sizeof (long) - 1] == 1);
  1478. }
  1479. EOF
  1480. eval $ac_link
  1481. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1482.   ac_cv_c_bigendian=no
  1483. else
  1484.   ac_cv_c_bigendian=yes
  1485. fi
  1486. fi
  1487. rm -fr conftest*
  1488. fi
  1489. /bin/echo "$ac_t""$ac_cv_c_bigendian" 1>&4
  1490. if test $ac_cv_c_bigendian = yes; then
  1491.   cat >> confdefs.h <<\EOF
  1492. #define WORDS_BIGENDIAN 1
  1493. EOF
  1494.  
  1495. fi
  1496.  
  1497.  
  1498. if eval "test \"`/bin/echo '${'ac_cv_prog_lex_output_root'+set}'`\" = set"; then
  1499.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1500. else
  1501.   # The minimal lex program is just a single line: %%.  But some broken lexes
  1502. # (Solaris, I think it was) want two %% lines, so accommodate them.
  1503. /bin/echo '%%
  1504. %%' | $LEX
  1505. if test -f lex.yy.c; then
  1506.   ac_cv_prog_lex_output_root=lex.yy
  1507. elif test -f lexyy.c; then
  1508.   ac_cv_prog_lex_output_root=lexyy
  1509. else
  1510.   { /bin/echo "configure: error: cannot find output from $LEX, giving up" 1>&2; exit 1; }
  1511. fi
  1512. fi
  1513. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_output_root
  1514. /bin/echo $ac_n "checking for yytext declaration""... $ac_c" 1>&4
  1515. if eval "test \"`/bin/echo '${'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
  1516.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1517. else
  1518.   # POSIX says lex can declare yytext either as a pointer or an array; the
  1519. # default is implementation-dependent. Figure out which it is, since
  1520. # not all implementations provide the %pointer and %array declarations.
  1521. ac_cv_prog_lex_yytext_pointer=no
  1522. /bin/echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  1523. ac_save_LIBS="$LIBS"
  1524. LIBS="$LIBS $LEXLIB"
  1525. cat > conftest.$ac_ext <<EOF
  1526. #line 1526 "configure"
  1527. #include "confdefs.h"
  1528. `cat $LEX_OUTPUT_ROOT.c`
  1529. int main() { return 0; }
  1530. int t() {
  1531.  
  1532. ; return 0; }
  1533. EOF
  1534. if eval $ac_link; then
  1535.   rm -rf conftest*
  1536.   ac_cv_prog_lex_yytext_pointer=yes
  1537. fi
  1538. rm -f conftest*
  1539.  
  1540. LIBS="$ac_save_LIBS"
  1541. rm -f "${LEX_OUTPUT_ROOT}.c"
  1542. fi
  1543. /bin/echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&4
  1544. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  1545.   cat >> confdefs.h <<\EOF
  1546. #define YYTEXT_POINTER 1
  1547. EOF
  1548.  
  1549. fi
  1550.  
  1551.  
  1552.  
  1553.  
  1554. /bin/echo $ac_n "checking for sunwindow libraries""... $ac_c" 1>&4
  1555. cat > conftest.$ac_ext <<EOF
  1556. #line 1556 "configure"
  1557. #include "confdefs.h"
  1558. #include "$srcdir/lib/c-auto.h.in"
  1559. #ifdef SUNWIN
  1560.   yes
  1561. #endif
  1562.  
  1563. EOF
  1564. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1565.   egrep "yes" >/dev/null 2>&1; then
  1566.   rm -rf conftest*
  1567.   SUNWIN=yes
  1568. else
  1569.   rm -rf conftest*
  1570.   SUNWIN=no
  1571. fi
  1572. rm -f conftest*
  1573.  
  1574. /bin/echo "$ac_t""$SUNWIN" 1>&4
  1575.  
  1576. /bin/echo $ac_n "checking for xview libraries""... $ac_c" 1>&4
  1577. cat > conftest.$ac_ext <<EOF
  1578. #line 1578 "configure"
  1579. #include "confdefs.h"
  1580. #include "$srcdir/lib/c-auto.h.in"
  1581. #ifdef XVIEWWIN
  1582.   yes
  1583. #endif
  1584.  
  1585. EOF
  1586. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1587.   egrep "yes" >/dev/null 2>&1; then
  1588.   rm -rf conftest*
  1589.   XVIEWWIN=yes
  1590. else
  1591.   rm -rf conftest*
  1592.   XVIEWWIN=no
  1593. fi
  1594. rm -f conftest*
  1595.  
  1596. /bin/echo "$ac_t""$XVIEWWIN" 1>&4
  1597.  
  1598. /bin/echo $ac_n "checking for X11 libraries""... $ac_c" 1>&4
  1599. cat > conftest.$ac_ext <<EOF
  1600. #line 1600 "configure"
  1601. #include "confdefs.h"
  1602. #include "$srcdir/lib/c-auto.h.in"
  1603. #ifdef X11WIN
  1604.   yes
  1605. #endif
  1606.  
  1607. EOF
  1608. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1609.   egrep "yes" >/dev/null 2>&1; then
  1610.   rm -rf conftest*
  1611. #  Force off.  Gets set on AmigaDOS for some reason...
  1612. #  X11WIN=yes
  1613.   X11WIN=no
  1614. else
  1615.   rm -rf conftest*
  1616.   X11WIN=no
  1617. fi
  1618. rm -f conftest*
  1619.  
  1620. /bin/echo "$ac_t""$X11WIN" 1>&4
  1621.  
  1622. /bin/echo $ac_n "checking for X10 libraries""... $ac_c" 1>&4
  1623. cat > conftest.$ac_ext <<EOF
  1624. #line 1622 "configure"
  1625. #include "confdefs.h"
  1626. #include "$srcdir/lib/c-auto.h.in"
  1627. #ifdef X10WIN
  1628.   yes
  1629. #endif
  1630.  
  1631. EOF
  1632. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1633.   egrep "yes" >/dev/null 2>&1; then
  1634.   rm -rf conftest*
  1635.   X10WIN=yes
  1636. else
  1637.   rm -rf conftest*
  1638.   X10WIN=no
  1639. fi
  1640. rm -f conftest*
  1641.  
  1642. /bin/echo "$ac_t""$X10WIN" 1>&4
  1643.  
  1644. if test $XVIEWWIN = yes; then
  1645.   wlibs="-lxview -lolgx -lX11 $wlibs"
  1646.   (cd $srcdir/mf/MFwindow; rm -f sun.c; $LN_S sun-xview.c sun.c)
  1647. fi
  1648. if test $X11WIN = yes; then
  1649.   # If we find X, set shell vars x_includes and x_libraries to the
  1650. # paths, otherwise set no_x=yes.
  1651. # Uses ac_ vars as temps to allow command line to override cache and checks.
  1652. # --without-x overrides everything else, but does not touch the cache.
  1653. /bin/echo $ac_n "checking for X""... $ac_c" 1>&4
  1654.  
  1655. # Check whether --with-x or --without-x was given.
  1656. withval="$with_x"
  1657. if test -n "$withval"; then
  1658.   :
  1659. fi
  1660.  
  1661. if test "x$with_x" = xno; then
  1662.   no_x=yes
  1663. else
  1664.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  1665.     no_x=
  1666.   else
  1667. if eval "test \"`/bin/echo '${'ac_cv_path_x'+set}'`\" = set"; then
  1668.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1669. else
  1670.   # One or both of the vars are not set, and there is no cached value.
  1671. no_x=yes
  1672. rm -fr conftestdir
  1673. if mkdir conftestdir; then
  1674.   cd conftestdir
  1675.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  1676.   cat > Imakefile <<'EOF'
  1677. acfindx:
  1678.     @/bin/echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  1679. EOF
  1680.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  1681.     no_x=
  1682.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1683.     eval `make acfindx 2>/dev/null | grep -v make`
  1684.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  1685.     if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
  1686.     then
  1687.       ac_im_usrlibdir=$ac_im_libdir
  1688.     fi
  1689.     case "$ac_im_incroot" in
  1690.     /gnu/include) ;;
  1691.     *) ac_x_includes="$ac_im_incroot" ;;
  1692.     esac
  1693.     case "$ac_im_usrlibdir" in
  1694.     /gnu/lib | /lib) ;;
  1695.     *) ac_x_libraries="$ac_im_usrlibdir" ;;
  1696.     esac
  1697.   fi
  1698.   cd ..
  1699.   rm -fr conftestdir
  1700. fi
  1701.  
  1702. if test "$no_x" = yes; then
  1703. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  1704. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  1705. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  1706. cat > conftest.$ac_ext <<EOF
  1707. #line 1705 "configure"
  1708. #include "confdefs.h"
  1709. #include <$x_direct_test_include>
  1710. EOF
  1711. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1712. ac_err=`grep -v '^ *+' conftest.out`
  1713. if test -z "$ac_err"; then
  1714.   rm -rf conftest*
  1715.   no_x= ac_x_includes=
  1716. else
  1717.   /bin/echo "$ac_err" >&5
  1718.   rm -rf conftest*
  1719.     for ac_dir in               \
  1720.     /gnu/X11R6/include        \
  1721.     /gnu/X11R5/include        \
  1722.     /gnu/X11R4/include        \
  1723.                               \
  1724.     /gnu/include/X11R6        \
  1725.     /gnu/include/X11R5        \
  1726.     /gnu/include/X11R4        \
  1727.                               \
  1728.     /gnu/local/X11R6/include  \
  1729.     /gnu/local/X11R5/include  \
  1730.     /gnu/local/X11R4/include  \
  1731.                               \
  1732.     /gnu/local/include/X11R6  \
  1733.     /gnu/local/include/X11R5  \
  1734.     /gnu/local/include/X11R4  \
  1735.                               \
  1736.     /gnu/X11/include          \
  1737.     /gnu/include/X11          \
  1738.     /gnu/local/X11/include    \
  1739.     /gnu/local/include/X11    \
  1740.                               \
  1741.     /gnu/X386/include         \
  1742.     /gnu/x386/include         \
  1743.     /gnu/XFree86/include/X11  \
  1744.                               \
  1745.     /gnu/include              \
  1746.     /gnu/local/include        \
  1747.     /gnu/unsupported/include  \
  1748.     /gnu/athena/include       \
  1749.     /gnu/local/x11r5/include  \
  1750.     /gnu/lpp/Xamples/include  \
  1751.                               \
  1752.     /gnu/openwin/include      \
  1753.     /gnu/openwin/share/include \
  1754.     ; \
  1755.   do
  1756.     if test -r "$ac_dir/$x_direct_test_include"; then
  1757.       no_x= ac_x_includes=$ac_dir
  1758.       break
  1759.     fi
  1760.   done
  1761. fi
  1762. rm -f conftest*
  1763.  
  1764. # Check for the libraries.
  1765. # See if we find them without any special options.
  1766. # Don't add to $LIBS permanently.
  1767. ac_save_LIBS="$LIBS"
  1768. LIBS="$LIBS -l$x_direct_test_library"
  1769. cat > conftest.$ac_ext <<EOF
  1770. #line 1768 "configure"
  1771. #include "confdefs.h"
  1772.  
  1773. int main() { return 0; }
  1774. int t() {
  1775. ${x_direct_test_function}()
  1776. ; return 0; }
  1777. EOF
  1778. if eval $ac_link; then
  1779.   rm -rf conftest*
  1780.   LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
  1781. else
  1782.   rm -rf conftest*
  1783.   LIBS="$ac_save_LIBS"
  1784. # First see if replacing the include by lib works.
  1785. for ac_dir in `/bin/echo "$ac_x_includes" | sed s/include/lib/` \
  1786.     /gnu/X11R6/lib        \
  1787.     /gnu/X11R5/lib        \
  1788.     /gnu/X11R4/lib        \
  1789.                           \
  1790.     /gnu/lib/X11R6        \
  1791.     /gnu/lib/X11R5        \
  1792.     /gnu/lib/X11R4        \
  1793.                           \
  1794.     /gnu/local/X11R6/lib  \
  1795.     /gnu/local/X11R5/lib  \
  1796.     /gnu/local/X11R4/lib  \
  1797.                           \
  1798.     /gnu/local/lib/X11R6  \
  1799.     /gnu/local/lib/X11R5  \
  1800.     /gnu/local/lib/X11R4  \
  1801.                           \
  1802.     /gnu/X11/lib          \
  1803.     /gnu/lib/X11          \
  1804.     /gnu/local/X11/lib    \
  1805.     /gnu/local/lib/X11    \
  1806.                           \
  1807.     /gnu/X386/lib         \
  1808.     /gnu/x386/lib         \
  1809.     /gnu/XFree86/lib/X11  \
  1810.                           \
  1811.     /gnu/lib              \
  1812.     /gnu/local/lib        \
  1813.     /gnu/unsupported/lib  \
  1814.     /gnu/athena/lib       \
  1815.     /gnu/local/x11r5/lib  \
  1816.     /gnu/lpp/Xamples/lib  \
  1817.                           \
  1818.     /gnu/openwin/lib      \
  1819.     /gnu/openwin/share/lib \
  1820.     ; \
  1821. do
  1822.   for ac_extension in a so sl; do
  1823.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  1824.       no_x= ac_x_libraries=$ac_dir
  1825.       break 2
  1826.     fi
  1827.   done
  1828. done
  1829. fi
  1830. rm -f conftest*
  1831.  
  1832. fi
  1833. if test "$no_x" = yes; then
  1834.   ac_cv_path_x="no_x=yes"
  1835. else
  1836.   ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  1837. fi
  1838. fi
  1839.   fi
  1840.   eval "$ac_cv_path_x"
  1841. fi # $with_x != no
  1842.  
  1843. if test "$no_x" = yes; then
  1844.   /bin/echo "$ac_t""no" 1>&4
  1845. else
  1846.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  1847.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  1848.   ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  1849.   /bin/echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&4
  1850. fi
  1851.  
  1852.   if test "$no_x" = yes; then 
  1853.   # Not all programs may use this symbol, but it does not hurt to define it.
  1854.   X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
  1855. else
  1856.   if test -n "$x_includes"; then
  1857.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  1858.   fi
  1859.  
  1860.   # It would be nice to have a more robust check for the -R ld option than
  1861.   # just checking for Solaris.
  1862.   # It would also be nice to do this for all -L options, not just this one.
  1863.   if test -n "$x_libraries"; then
  1864.     X_LIBS="$X_LIBS -L$x_libraries"
  1865.     if test "`(uname) 2>/dev/null`" = SunOS &&
  1866.       uname -r | grep '^5' >/dev/null; then
  1867.       X_LIBS="$X_LIBS -R$x_libraries"
  1868.     fi
  1869.   fi
  1870.  
  1871.   # Check for libraries that X11R6 Xt/Xaw programs need.
  1872.  
  1873.   ac_save_LDFLAGS="$LDFLAGS"
  1874.   LDFLAGS="$LDFLAGS -L$x_libraries"
  1875.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  1876.   # check for ICE first), but we must link in the order -lSM -lICE or
  1877.   # we get undefined symbols.  So assume we have SM if we have ICE.
  1878.   # These have to be linked with before -lX11, unlike the other
  1879.   # libraries we check for below, so use a different variable.
  1880.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  1881.   /bin/echo $ac_n "checking for -lICE""... $ac_c" 1>&4
  1882. if eval "test \"`/bin/echo '${'ac_cv_lib_ICE'+set}'`\" = set"; then
  1883.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1884. else
  1885.   ac_save_LIBS="$LIBS"
  1886. LIBS="$LIBS -lICE "
  1887. cat > conftest.$ac_ext <<EOF
  1888. #line 1886 "configure"
  1889. #include "confdefs.h"
  1890.  
  1891. int main() { return 0; }
  1892. int t() {
  1893. IceConnectionNumber()
  1894. ; return 0; }
  1895. EOF
  1896. if eval $ac_link; then
  1897.   rm -rf conftest*
  1898.   eval "ac_cv_lib_ICE=yes"
  1899. else
  1900.   rm -rf conftest*
  1901.   eval "ac_cv_lib_ICE=no"
  1902. fi
  1903. rm -f conftest*
  1904. LIBS="$ac_save_LIBS"
  1905.  
  1906. fi
  1907. if eval "test \"`/bin/echo '$ac_cv_lib_'ICE`\" = yes"; then
  1908.   /bin/echo "$ac_t""yes" 1>&4
  1909.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  1910. else
  1911.   /bin/echo "$ac_t""no" 1>&4
  1912. fi
  1913.  
  1914.   LDFLAGS="$ac_save_LDFLAGS"
  1915.  
  1916.   # Check for system-dependent libraries X programs must link with.
  1917.  
  1918.   if test "$ISC" = yes; then
  1919.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  1920.   else
  1921.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  1922.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  1923.     # the Alpha needs dnet_stub (dnet does not exist).
  1924.     /bin/echo $ac_n "checking for -ldnet""... $ac_c" 1>&4
  1925. if eval "test \"`/bin/echo '${'ac_cv_lib_dnet'+set}'`\" = set"; then
  1926.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1927. else
  1928.   ac_save_LIBS="$LIBS"
  1929. LIBS="$LIBS -ldnet "
  1930. cat > conftest.$ac_ext <<EOF
  1931. #line 1929 "configure"
  1932. #include "confdefs.h"
  1933.  
  1934. int main() { return 0; }
  1935. int t() {
  1936. dnet_ntoa()
  1937. ; return 0; }
  1938. EOF
  1939. if eval $ac_link; then
  1940.   rm -rf conftest*
  1941.   eval "ac_cv_lib_dnet=yes"
  1942. else
  1943.   rm -rf conftest*
  1944.   eval "ac_cv_lib_dnet=no"
  1945. fi
  1946. rm -f conftest*
  1947. LIBS="$ac_save_LIBS"
  1948.  
  1949. fi
  1950. if eval "test \"`/bin/echo '$ac_cv_lib_'dnet`\" = yes"; then
  1951.   /bin/echo "$ac_t""yes" 1>&4
  1952.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  1953. else
  1954.   /bin/echo "$ac_t""no" 1>&4
  1955. fi
  1956.  
  1957.     if test $ac_cv_lib_dnet = no; then
  1958.       /bin/echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&4
  1959. if eval "test \"`/bin/echo '${'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
  1960.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1961. else
  1962.   ac_save_LIBS="$LIBS"
  1963. LIBS="$LIBS -ldnet_stub "
  1964. cat > conftest.$ac_ext <<EOF
  1965. #line 1963 "configure"
  1966. #include "confdefs.h"
  1967.  
  1968. int main() { return 0; }
  1969. int t() {
  1970. dnet_ntoa()
  1971. ; return 0; }
  1972. EOF
  1973. if eval $ac_link; then
  1974.   rm -rf conftest*
  1975.   eval "ac_cv_lib_dnet_stub=yes"
  1976. else
  1977.   rm -rf conftest*
  1978.   eval "ac_cv_lib_dnet_stub=no"
  1979. fi
  1980. rm -f conftest*
  1981. LIBS="$ac_save_LIBS"
  1982.  
  1983. fi
  1984. if eval "test \"`/bin/echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
  1985.   /bin/echo "$ac_t""yes" 1>&4
  1986.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  1987. else
  1988.   /bin/echo "$ac_t""no" 1>&4
  1989. fi
  1990.  
  1991.     fi
  1992.  
  1993.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  1994.     # to get the SysV transport functions.
  1995.     # Not sure which flavor of 386 UNIX this is, but it seems harmless to
  1996.     # check for it.
  1997.     /bin/echo $ac_n "checking for -lnsl""... $ac_c" 1>&4
  1998. if eval "test \"`/bin/echo '${'ac_cv_lib_nsl'+set}'`\" = set"; then
  1999.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2000. else
  2001.   ac_save_LIBS="$LIBS"
  2002. LIBS="$LIBS -lnsl "
  2003. cat > conftest.$ac_ext <<EOF
  2004. #line 2002 "configure"
  2005. #include "confdefs.h"
  2006.  
  2007. int main() { return 0; }
  2008. int t() {
  2009. t_accept()
  2010. ; return 0; }
  2011. EOF
  2012. if eval $ac_link; then
  2013.   rm -rf conftest*
  2014.   eval "ac_cv_lib_nsl=yes"
  2015. else
  2016.   rm -rf conftest*
  2017.   eval "ac_cv_lib_nsl=no"
  2018. fi
  2019. rm -f conftest*
  2020. LIBS="$ac_save_LIBS"
  2021.  
  2022. fi
  2023. if eval "test \"`/bin/echo '$ac_cv_lib_'nsl`\" = yes"; then
  2024.   /bin/echo "$ac_t""yes" 1>&4
  2025.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  2026. else
  2027.   /bin/echo "$ac_t""no" 1>&4
  2028. fi
  2029.  
  2030.  
  2031.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  2032.     # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  2033.     # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
  2034.     if test "`(uname) 2>/dev/null`" != IRIX; then
  2035.       /bin/echo $ac_n "checking for -lsocket""... $ac_c" 1>&4
  2036. if eval "test \"`/bin/echo '${'ac_cv_lib_socket'+set}'`\" = set"; then
  2037.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2038. else
  2039.   ac_save_LIBS="$LIBS"
  2040. LIBS="$LIBS -lsocket "
  2041. cat > conftest.$ac_ext <<EOF
  2042. #line 2040 "configure"
  2043. #include "confdefs.h"
  2044.  
  2045. int main() { return 0; }
  2046. int t() {
  2047. socket()
  2048. ; return 0; }
  2049. EOF
  2050. if eval $ac_link; then
  2051.   rm -rf conftest*
  2052.   eval "ac_cv_lib_socket=yes"
  2053. else
  2054.   rm -rf conftest*
  2055.   eval "ac_cv_lib_socket=no"
  2056. fi
  2057. rm -f conftest*
  2058. LIBS="$ac_save_LIBS"
  2059.  
  2060. fi
  2061. if eval "test \"`/bin/echo '$ac_cv_lib_'socket`\" = yes"; then
  2062.   /bin/echo "$ac_t""yes" 1>&4
  2063.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
  2064. else
  2065.   /bin/echo "$ac_t""no" 1>&4
  2066. fi
  2067.  
  2068.     fi
  2069.   fi
  2070. fi
  2071.  
  2072.   wlibs="-lXt $X_PRE_LIBS -lX11 $wlibs"
  2073.   (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  2074. fi
  2075. if test $X10WIN = yes; then
  2076.   wlibs="-lX $wlibs"
  2077. fi
  2078. if test $SUNWIN = yes; then
  2079.   wlibs="-lsuntool -lsunwindow -lpixrect $wlibs"
  2080.   (cd $srcdir/mf/MFwindow; rm -f sun.c; $LN_S sun-sunview.c sun.c)
  2081. fi
  2082.  
  2083.  
  2084. /bin/echo $ac_n "checking for small TeX""... $ac_c" 1>&4
  2085. cat > conftest.$ac_ext <<EOF
  2086. #line 2084 "configure"
  2087. #include "confdefs.h"
  2088. #include "$srcdir/lib/c-auto.h.in"
  2089. #ifdef SMALLTeX
  2090.   yes
  2091. #endif
  2092.  
  2093. EOF
  2094. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2095.   egrep "yes" >/dev/null 2>&1; then
  2096.   rm -rf conftest*
  2097.   SMALLTeX=yes
  2098. else
  2099.   rm -rf conftest*
  2100.   SMALLTeX=no
  2101. fi
  2102. rm -f conftest*
  2103.  
  2104. /bin/echo "$ac_t""$SMALLTeX" 1>&4
  2105. if test $SMALLTeX = yes; then
  2106.   (cd $srcdir/tex && rm -f ctex.ch && sed -f small.sed <tex.ch >ctex.ch)
  2107.   cat >> confdefs.h <<\EOF
  2108. #define GLUERATIO_TYPE float
  2109. EOF
  2110.  
  2111. fi
  2112.  
  2113. /bin/echo $ac_n "checking for small MF""... $ac_c" 1>&4
  2114. cat > conftest.$ac_ext <<EOF
  2115. #line 2113 "configure"
  2116. #include "confdefs.h"
  2117. #include "$srcdir/lib/c-auto.h.in"
  2118. #ifdef SMALLMF
  2119.   yes
  2120. #endif
  2121.  
  2122. EOF
  2123. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2124.   egrep "yes" >/dev/null 2>&1; then
  2125.   rm -rf conftest*
  2126.   SMALLMF=yes
  2127. else
  2128.   rm -rf conftest*
  2129.   SMALLMF=no
  2130. fi
  2131. rm -f conftest*
  2132.  
  2133. /bin/echo "$ac_t""$SMALLMF" 1>&4
  2134. if test $SMALLMF = yes; then
  2135.   (cd $srcdir/mf && rm -f cmf.ch && sed -f small.sed <mf.ch >cmf.ch)
  2136. fi
  2137.  
  2138. /bin/echo $ac_n "checking for small BibTeX""... $ac_c" 1>&4
  2139. cat > conftest.$ac_ext <<EOF
  2140. #line 2138 "configure"
  2141. #include "confdefs.h"
  2142. #include "$srcdir/lib/c-auto.h.in"
  2143. #ifdef SMALLBibTeX
  2144.   yes
  2145. #endif
  2146.  
  2147. EOF
  2148. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2149.   egrep "yes" >/dev/null 2>&1; then
  2150.   rm -rf conftest*
  2151.   SMALLBibTeX=yes
  2152. else
  2153.   rm -rf conftest*
  2154.   SMALLBibTeX=no
  2155. fi
  2156. rm -f conftest*
  2157.  
  2158. /bin/echo "$ac_t""$SMALLBibTeX" 1>&4
  2159. if test $SMALLBibTeX = yes; then
  2160.   (cd $srcdir/bibtex \
  2161.    && rm -f cbibtex.ch && sed -f small.sed <bibtex.ch >cbibtex.ch)
  2162. fi
  2163.  
  2164. trap '' 1 2 15
  2165. if test -w $cache_file; then
  2166. /bin/echo "updating cache $cache_file"
  2167. cat > $cache_file <<\EOF
  2168. # This file is a shell script that caches the results of configure
  2169. # tests run on this system so they can be shared between configure
  2170. # scripts and configure runs.  It is not useful on other systems.
  2171. # If it contains results you don't want to keep, you may remove or edit it.
  2172. #
  2173. # By default, configure uses ./config.cache as the cache file,
  2174. # creating it if it does not exist already.  You can give configure
  2175. # the --cache-file=FILE option to use a different cache file; that is
  2176. # what configure does when it calls configure scripts in
  2177. # subdirectories, so they share the cache.
  2178. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2179. # config.status only pays attention to the cache file if you give it the
  2180. # --recheck option to rerun configure.
  2181. #
  2182. EOF
  2183. # Ultrix sh set writes to stderr and can't be redirected directly.
  2184. # On AmigaDOS, the {} chars get eaten, so add them back with separate
  2185. # sed commands.
  2186. (set) 2>&1 |
  2187.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" |
  2188.   sed "s@\\\$@\${@" |
  2189.   sed "s@\$@}@" >> $cache_file
  2190. else
  2191. /bin/echo "not updating unwritable cache $cache_file"
  2192. fi
  2193.  
  2194. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  2195.  
  2196. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2197. # Let make expand exec_prefix.
  2198. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2199.  
  2200. # Any assignment to VPATH causes Sun make to only execute
  2201. # the first set of double-colon rules, so remove it if not needed.
  2202. # If there is a colon in the path, we need to keep it.
  2203. if test "x$srcdir" = x.; then
  2204.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2205. fi
  2206.  
  2207. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2208.  
  2209. DEFS=-DHAVE_CONFIG_H
  2210.  
  2211. # Without the "./", some shells look in PATH for config.status.
  2212. : ${CONFIG_STATUS=./config.status}
  2213.  
  2214. /bin/echo creating $CONFIG_STATUS
  2215. rm -f $CONFIG_STATUS
  2216. cat > $CONFIG_STATUS <<EOF
  2217. #!/bin/sh
  2218. # Generated automatically by configure.
  2219. # Run this file to recreate the current configuration.
  2220. # This directory was configured as follows,
  2221. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2222. #
  2223. # $0 $ac_configure_args
  2224. #
  2225. # Compiler output produced by configure, useful for debugging
  2226. # configure, is in ./config.log if it exists.
  2227.  
  2228. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2229. for ac_option
  2230. do
  2231.   case "\$ac_option" in
  2232.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2233.     /bin/echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2234.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2235.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2236.     /bin/echo "$CONFIG_STATUS generated by autoconf version 2.1"
  2237.     exit 0 ;;
  2238.   -help | --help | --hel | --he | --h)
  2239.     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  2240.   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  2241.   esac
  2242. done
  2243.  
  2244. ac_given_srcdir=$srcdir
  2245. ac_given_INSTALL="$INSTALL"
  2246.  
  2247. trap 'rm -fr Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2248. lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2249. tex/Makefile web/Makefile web2c/Makefile lib/c-auto.h conftest*; exit 1' 1 2 15
  2250.  
  2251. # Protect against being on the right side of a sed subst in config.status. 
  2252. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  2253.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  2254. $ac_vpsub
  2255. $extrasub
  2256. s%@CFLAGS@%$CFLAGS%g
  2257. s%@CPPFLAGS@%$CPPFLAGS%g
  2258. s%@CXXFLAGS@%$CXXFLAGS%g
  2259. s%@DEFS@%$DEFS%g
  2260. s%@LDFLAGS@%$LDFLAGS%g
  2261. s%@LIBS@%$LIBS%g
  2262. s%@exec_prefix@%$exec_prefix%g
  2263. s%@prefix@%$prefix%g
  2264. s%@program_transform_name@%$program_transform_name%g
  2265. s%@SET_MAKE@%$SET_MAKE%g
  2266. s%@CC@%$CC%g
  2267. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2268. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2269. s%@RANLIB@%$RANLIB%g
  2270. s%@CPP@%$CPP%g
  2271. s%@YACC@%$YACC%g
  2272. s%@LEX@%$LEX%g
  2273. s%@LEXLIB@%$LEXLIB%g
  2274. s%@LN_S@%$LN_S%g
  2275. s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  2276. s%@X_CFLAGS@%$X_CFLAGS%g
  2277. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  2278. s%@X_LIBS@%$X_LIBS%g
  2279. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  2280. s%@wlibs@%$wlibs%g
  2281.  
  2282. CEOF
  2283. EOF
  2284. cat >> $CONFIG_STATUS <<EOF
  2285.  
  2286. CONFIG_FILES=\${CONFIG_FILES-"Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2287. lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2288. tex/Makefile web/Makefile web2c/Makefile"}
  2289. EOF
  2290. cat >> $CONFIG_STATUS <<\EOF
  2291. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2292.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2293.   case "$ac_file" in
  2294.   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  2295.        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  2296.   *) ac_file_in="${ac_file}.in" ;;
  2297.   esac
  2298.  
  2299.   # Adjust relative srcdir, etc. for subdirectories.
  2300.  
  2301.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2302.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2303.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2304.     # The file is in a subdirectory.
  2305.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2306.     ac_dir_suffix="/$ac_dir"
  2307.     # A "../" for each directory in $ac_dir_suffix.
  2308.     ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2309.   else
  2310.     ac_dir_suffix= ac_dots=
  2311.   fi
  2312.  
  2313.   case "$ac_given_srcdir" in
  2314.   .)  srcdir=.
  2315.       if test -z "$ac_dots"; then top_srcdir=.
  2316.       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  2317.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2318.   *) # Relative path.
  2319.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2320.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2321.   esac
  2322.  
  2323.   case "$ac_given_INSTALL" in
  2324.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2325.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2326.   esac
  2327.   /bin/echo creating "$ac_file"
  2328.   rm -f "$ac_file"
  2329.   configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
  2330.   case "$ac_file" in
  2331.   *Makefile*) ac_comsub="1i\\
  2332. # $configure_input" ;;
  2333.   *) ac_comsub= ;;
  2334.   esac
  2335.   # Replace lines of the form ac_include foo with the contents of foo:
  2336.   # first, from the ac_include lines construct a list of sed
  2337.   # commands to remove them, and include the files; then run sed.
  2338.   # Have to use sed because old (Ultrix, SunOS) awk does not support
  2339.   # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
  2340.   # Use \@...@<cmd> form of sed address because the filename may contain /.
  2341.   # Can't use only one -e and commands {dr foo} because foo has to be last.
  2342.   # Use @e initially instead of -e because GNU /bin/echo has a -e option.
  2343.   # USe `X' to mean a bunch of backslashes; this is for FreeBSD.
  2344.   file_substs=`sed -n \
  2345. "/^ac_include/s%ac_include[     ]*\(.*\)%@e 'X@^&@r \1' -e 'X@^&@d'%p" \
  2346.                $ac_given_srcdir/${ac_file}.in`
  2347.   if test -n "$file_substs"; then
  2348.     # Change @e back to -e and X@^ to \@^.
  2349.     file_subst_cmd="sed `/bin/echo $file_substs \
  2350.                          | sed -e 's/@e/-e/g' -e 's/X@^/\\\\\@^/g'`"
  2351.   else
  2352.     # If no substitutions and hence no sed commands, don't choke.
  2353.     file_subst_cmd=cat
  2354.   fi
  2355.   # cd into the srcdir because the files being included more or less
  2356.   # must be part of the distribution. I can't find any way to do
  2357.   # variable substitution in the sed commands (so the user could have,
  2358.   # e.g., $top_srcdir in their ac_include line).
  2359.   (cd $ac_given_srcdir && eval $file_subst_cmd ${ac_file}.in) \
  2360.   | sed -e "$ac_comsub
  2361. s%@configure_input@%$configure_input%g
  2362. s%@srcdir@%$srcdir%g
  2363. s%@top_srcdir@%$top_srcdir%g
  2364. s%@INSTALL@%$INSTALL%g
  2365. " -f conftest.subs > $ac_file
  2366. fi; done
  2367. rm -f conftest.subs
  2368.  
  2369. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2370. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2371. #
  2372. # ac_d sets the value in "#define NAME VALUE" lines.
  2373. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2374. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2375. ac_dC='\3'
  2376. ac_dD='%g'
  2377. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2378. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2379. ac_uB='\([     ]\)%\1#\2define\3'
  2380. ac_uC=' '
  2381. ac_uD='\4%g'
  2382. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2383. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2384. ac_eB='$%\1#\2define\3'
  2385. ac_eC=' '
  2386. ac_eD='%g'
  2387.  
  2388. CONFIG_HEADERS=${CONFIG_HEADERS-"lib/c-auto.h"}
  2389. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2390.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2391.   case "$ac_file" in
  2392.   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  2393.        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  2394.   *) ac_file_in="${ac_file}.in" ;;
  2395.   esac
  2396.  
  2397.   /bin/echo creating $ac_file
  2398.  
  2399.   rm -f conftest.frag conftest.in conftest.out
  2400.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2401.  
  2402. EOF
  2403.  
  2404. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2405. # the proper values into config.h.in to produce config.h.  And first:
  2406. # Protect against being on the right side of a sed subst in config.status. 
  2407. # Protect against being in an unquoted here document in config.status.
  2408. rm -f conftest.vals
  2409. cat > conftest.hdr <<\EOF
  2410. s/[\\&%]/\\&/g
  2411. s%[\\$`]%\\&%g
  2412. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2413. s%ac_d%ac_u%gp
  2414. s%ac_u%ac_e%gp
  2415. EOF
  2416. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2417. rm -f conftest.hdr
  2418.  
  2419. # This sed command replaces #undef with comments.  This is necessary, for
  2420. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2421. # on some systems where configure will not decide to define it.
  2422. cat >> conftest.vals <<\EOF
  2423. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2424. EOF
  2425.  
  2426. # Break up conftest.vals because some shells have a limit on
  2427. # the size of here documents, and old seds have small limits too.
  2428. # Maximum number of lines to put in a single here document.
  2429. ac_max_here_lines=12
  2430.  
  2431. rm -f conftest.tail
  2432. while :
  2433. do
  2434.   ac_lines=`grep -c . conftest.vals`
  2435.   # grep -c gives empty output for an empty file on some AIX systems.
  2436.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2437.   # Write a limited-size here document to conftest.frag.
  2438.   /bin/echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2439.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2440.   /bin/echo 'CEOF
  2441.   sed -f conftest.frag conftest.in > conftest.out
  2442.   rm -f conftest.in
  2443.   mv conftest.out conftest.in
  2444. ' >> $CONFIG_STATUS
  2445.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2446.   rm -f conftest.vals
  2447.   mv conftest.tail conftest.vals
  2448. done
  2449. rm -f conftest.vals
  2450.  
  2451. cat >> $CONFIG_STATUS <<\EOF
  2452.   rm -f conftest.frag conftest.h
  2453.   /bin/echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2454.   cat conftest.in >> conftest.h
  2455.   rm -f conftest.in
  2456.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2457.     /bin/echo "$ac_file is unchanged"
  2458.     rm -f conftest.h
  2459.   else
  2460.     rm -f $ac_file
  2461.     mv conftest.h $ac_file
  2462.   fi
  2463. fi; done
  2464.  
  2465.  
  2466.  
  2467. exit 0
  2468. EOF
  2469. chmod +x $CONFIG_STATUS
  2470. rm -fr confdefs* $ac_clean_files
  2471. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  2472.  
  2473.