home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / less-321-src.tgz / tar.out / fsf / less / configure < prev    next >
Text File  |  1996-10-01  |  66KB  |  2,317 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.10 
  5. # Copyright (C) 1992, 93, 94, 95, 96 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. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. guidedir='${prefix}/guide'
  48. psdir='${prefix}/ps'
  49. dvidir='${prefix}/dvi'
  50. mandir='${prefix}/man'
  51.  
  52. # Initialize some other variables.
  53. subdirs=
  54. MFLAGS= MAKEFLAGS=
  55.  
  56. ac_prev=
  57. for ac_option
  58. do
  59.  
  60.   # If the previous option needs an argument, assign it.
  61.   if test -n "$ac_prev"; then
  62.     eval "$ac_prev=\$ac_option"
  63.     ac_prev=
  64.     continue
  65.   fi
  66.  
  67.   case "$ac_option" in
  68.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  69.   *) ac_optarg= ;;
  70.   esac
  71.  
  72.   # Accept the important Cygnus configure options, so we can diagnose typos.
  73.  
  74.   case "$ac_option" in
  75.  
  76.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  77.     ac_prev=bindir ;;
  78.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  79.     bindir="$ac_optarg" ;;
  80.  
  81.   -build | --build | --buil | --bui | --bu)
  82.     ac_prev=build ;;
  83.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  84.     build="$ac_optarg" ;;
  85.  
  86.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  87.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  88.     ac_prev=cache_file ;;
  89.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  90.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  91.     cache_file="$ac_optarg" ;;
  92.  
  93.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  94.     ac_prev=datadir ;;
  95.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  96.   | --da=*)
  97.     datadir="$ac_optarg" ;;
  98.  
  99.   -disable-* | --disable-*)
  100.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  101.     # Reject names that are not valid shell variable names.
  102.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  103.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  104.     fi
  105.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  106.     eval "enable_${ac_feature}=no" ;;
  107.  
  108.   -enable-* | --enable-*)
  109.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  110.     # Reject names that are not valid shell variable names.
  111.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  112.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  113.     fi
  114.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  115.     case "$ac_option" in
  116.       *=*) ;;
  117.       *) ac_optarg=yes ;;
  118.     esac
  119.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  120.  
  121.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  122.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  123.   | --exec | --exe | --ex)
  124.     ac_prev=exec_prefix ;;
  125.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  126.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  127.   | --exec=* | --exe=* | --ex=*)
  128.     exec_prefix="$ac_optarg" ;;
  129.  
  130.   -gas | --gas | --ga | --g)
  131.     # Obsolete; use --with-gas.
  132.     with_gas=yes ;;
  133.  
  134.   -help | --help | --hel | --he)
  135.     # Omit some internal or obsolete options to make the list less imposing.
  136.     # This message is too long to be a string in the A/UX 3.1 sh.
  137.     cat << EOF
  138. Usage: configure [options] [host]
  139. Options: [defaults in brackets after descriptions]
  140. Configuration:
  141.   --cache-file=FILE       cache test results in FILE
  142.   --help                  print this message
  143.   --no-create             do not create output files
  144.   --quiet, --silent       do not print \`checking...' messages
  145.   --version               print the version of autoconf that created configure
  146. Directory and file names:
  147.   --prefix=PREFIX         install architecture-independent files in PREFIX
  148.                           [$ac_default_prefix]
  149.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  150.                           [same as prefix]
  151.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  152.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  153.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  154.   --datadir=DIR           read-only architecture-independent data in DIR
  155.                           [PREFIX/share]
  156.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  157.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  158.                           [PREFIX/com]
  159.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  160.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  161.   --includedir=DIR        C header files in DIR [PREFIX/include]
  162.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  163.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  164.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  165.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  166.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  167.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  168.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  169.   --program-prefix=PREFIX prepend PREFIX to installed program names
  170.   --program-suffix=SUFFIX append SUFFIX to installed program names
  171.   --program-transform-name=PROGRAM
  172.                           run sed PROGRAM on installed program names
  173. EOF
  174.     cat << EOF
  175. Host type:
  176.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  177.   --host=HOST             configure for HOST [guessed]
  178.   --target=TARGET         configure for TARGET [TARGET=HOST]
  179. Features and packages:
  180.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  181.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  182.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  183.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  184.   --x-includes=DIR        X include files are in DIR
  185.   --x-libraries=DIR       X library files are in DIR
  186. EOF
  187.     if test -n "$ac_help"; then
  188.       echo "--enable and --with options recognized:$ac_help"
  189.     fi
  190.     exit 0 ;;
  191.  
  192.   -host | --host | --hos | --ho)
  193.     ac_prev=host ;;
  194.   -host=* | --host=* | --hos=* | --ho=*)
  195.     host="$ac_optarg" ;;
  196.  
  197.   -includedir | --includedir | --includedi | --included | --include \
  198.   | --includ | --inclu | --incl | --inc)
  199.     ac_prev=includedir ;;
  200.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  201.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  202.     includedir="$ac_optarg" ;;
  203.  
  204.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  205.     ac_prev=infodir ;;
  206.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  207.     infodir="$ac_optarg" ;;
  208.  
  209.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  210.    ac_prev=guidedir ;;
  211.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  212.  
  213.  -psdir | --psdir | --psdi | --psd | --ps)
  214.    ac_prev=psdir ;;
  215.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  216.  
  217.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  218.    ac_prev=dvidir ;;
  219.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  220.  
  221.   -libdir | --libdir | --libdi | --libd)
  222.     ac_prev=libdir ;;
  223.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  224.     libdir="$ac_optarg" ;;
  225.  
  226.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  227.   | --libexe | --libex | --libe)
  228.     ac_prev=libexecdir ;;
  229.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  230.   | --libexe=* | --libex=* | --libe=*)
  231.     libexecdir="$ac_optarg" ;;
  232.  
  233.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  234.   | --localstate | --localstat | --localsta | --localst \
  235.   | --locals | --local | --loca | --loc | --lo)
  236.     ac_prev=localstatedir ;;
  237.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  238.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  239.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  240.     localstatedir="$ac_optarg" ;;
  241.  
  242.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  243.     ac_prev=mandir ;;
  244.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  245.     mandir="$ac_optarg" ;;
  246.  
  247.   -nfp | --nfp | --nf)
  248.     # Obsolete; use --without-fp.
  249.     with_fp=no ;;
  250.  
  251.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  252.   | --no-cr | --no-c)
  253.     no_create=yes ;;
  254.  
  255.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  256.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  257.     no_recursion=yes ;;
  258.  
  259.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  260.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  261.   | --oldin | --oldi | --old | --ol | --o)
  262.     ac_prev=oldincludedir ;;
  263.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  264.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  265.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  266.     oldincludedir="$ac_optarg" ;;
  267.  
  268.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  269.     ac_prev=prefix ;;
  270.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  271.     prefix="$ac_optarg" ;;
  272.  
  273.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  274.   | --program-pre | --program-pr | --program-p)
  275.     ac_prev=program_prefix ;;
  276.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  277.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  278.     program_prefix="$ac_optarg" ;;
  279.  
  280.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  281.   | --program-suf | --program-su | --program-s)
  282.     ac_prev=program_suffix ;;
  283.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  284.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  285.     program_suffix="$ac_optarg" ;;
  286.  
  287.   -program-transform-name | --program-transform-name \
  288.   | --program-transform-nam | --program-transform-na \
  289.   | --program-transform-n | --program-transform- \
  290.   | --program-transform | --program-transfor \
  291.   | --program-transfo | --program-transf \
  292.   | --program-trans | --program-tran \
  293.   | --progr-tra | --program-tr | --program-t)
  294.     ac_prev=program_transform_name ;;
  295.   -program-transform-name=* | --program-transform-name=* \
  296.   | --program-transform-nam=* | --program-transform-na=* \
  297.   | --program-transform-n=* | --program-transform-=* \
  298.   | --program-transform=* | --program-transfor=* \
  299.   | --program-transfo=* | --program-transf=* \
  300.   | --program-trans=* | --program-tran=* \
  301.   | --progr-tra=* | --program-tr=* | --program-t=*)
  302.     program_transform_name="$ac_optarg" ;;
  303.  
  304.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  305.   | -silent | --silent | --silen | --sile | --sil)
  306.     silent=yes ;;
  307.  
  308.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  309.     ac_prev=sbindir ;;
  310.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  311.   | --sbi=* | --sb=*)
  312.     sbindir="$ac_optarg" ;;
  313.  
  314.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  315.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  316.   | --sharedst | --shareds | --shared | --share | --shar \
  317.   | --sha | --sh)
  318.     ac_prev=sharedstatedir ;;
  319.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  320.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  321.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  322.   | --sha=* | --sh=*)
  323.     sharedstatedir="$ac_optarg" ;;
  324.  
  325.   -site | --site | --sit)
  326.     ac_prev=site ;;
  327.   -site=* | --site=* | --sit=*)
  328.     site="$ac_optarg" ;;
  329.  
  330.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  331.     ac_prev=srcdir ;;
  332.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  333.     srcdir="$ac_optarg" ;;
  334.  
  335.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  336.   | --syscon | --sysco | --sysc | --sys | --sy)
  337.     ac_prev=sysconfdir ;;
  338.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  339.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  340.     sysconfdir="$ac_optarg" ;;
  341.  
  342.   -target | --target | --targe | --targ | --tar | --ta | --t)
  343.     ac_prev=target ;;
  344.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  345.     target="$ac_optarg" ;;
  346.  
  347.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  348.     verbose=yes ;;
  349.  
  350.   -version | --version | --versio | --versi | --vers)
  351.     echo "configure generated by autoconf version 2.10"
  352.     exit 0 ;;
  353.  
  354.   -with-* | --with-*)
  355.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  356.     # Reject names that are not valid shell variable names.
  357.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  358.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  359.     fi
  360.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  361.     case "$ac_option" in
  362.       *=*) ;;
  363.       *) ac_optarg=yes ;;
  364.     esac
  365.     eval "with_${ac_package}='$ac_optarg'" ;;
  366.  
  367.   -without-* | --without-*)
  368.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  369.     # Reject names that are not valid shell variable names.
  370.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  371.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  372.     fi
  373.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  374.     eval "with_${ac_package}=no" ;;
  375.  
  376.   --x)
  377.     # Obsolete; use --with-x.
  378.     with_x=yes ;;
  379.  
  380.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  381.   | --x-incl | --x-inc | --x-in | --x-i)
  382.     ac_prev=x_includes ;;
  383.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  384.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  385.     x_includes="$ac_optarg" ;;
  386.  
  387.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  388.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  389.     ac_prev=x_libraries ;;
  390.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  391.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  392.     x_libraries="$ac_optarg" ;;
  393.  
  394.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  395.     ;;
  396.  
  397.   *)
  398.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  399.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  400.     fi
  401.     if test "x$nonopt" != xNONE; then
  402.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  403.     fi
  404.     nonopt="$ac_option"
  405.     ;;
  406.  
  407.   esac
  408. done
  409.  
  410. if test -n "$ac_prev"; then
  411.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  412. fi
  413.  
  414. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  415.  
  416. # File descriptor usage:
  417. # 0 standard input
  418. # 1 file creation
  419. # 2 errors and warnings
  420. # 3 some systems may open it to /dev/tty
  421. # 4 used on the Kubota Titan
  422. # 6 checking for... messages and results
  423. # 5 compiler messages saved in config.log
  424. if test "$silent" = yes; then
  425.   exec 6>/dev/null
  426. else
  427.   exec 6>&1
  428. fi
  429. exec 5>./config.log
  430.  
  431. echo "\
  432. This file contains any messages produced by compilers while
  433. running configure, to aid debugging if configure makes a mistake.
  434. " 1>&5
  435.  
  436. # Strip out --no-create and --no-recursion so they do not pile up.
  437. # Also quote any args containing shell metacharacters.
  438. ac_configure_args=
  439. for ac_arg
  440. do
  441.   case "$ac_arg" in
  442.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  443.   | --no-cr | --no-c) ;;
  444.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  445.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  446.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  447.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  448.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  449.   esac
  450. done
  451.  
  452. # NLS nuisances.
  453. # Only set LANG and LC_ALL to C if already set.
  454. # These must not be set unconditionally because not all systems understand
  455. # e.g. LANG=C (notably SCO).
  456. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  457. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  458.  
  459. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  460. rm -rf conftest* confdefs.h
  461. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  462. echo > confdefs.h
  463.  
  464. # A filename unique to this package, relative to the directory that
  465. # configure is in, which we can look for to find out if srcdir is correct.
  466. ac_unique_file=forwback.c
  467.  
  468. # Find the source files, if location was not specified.
  469. if test -z "$srcdir"; then
  470.   ac_srcdir_defaulted=yes
  471.   # Try the directory containing this script, then its parent.
  472.   ac_prog=$0
  473.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  474.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  475.   srcdir=$ac_confdir
  476.   if test ! -r $srcdir/$ac_unique_file; then
  477.     srcdir=..
  478.   fi
  479. else
  480.   ac_srcdir_defaulted=no
  481. fi
  482. if test ! -r $srcdir/$ac_unique_file; then
  483.   if test "$ac_srcdir_defaulted" = yes; then
  484.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  485.   else
  486.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  487.   fi
  488. fi
  489. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  490.  
  491. # Prefer explicitly selected file to automatically selected ones.
  492. if test -z "$CONFIG_SITE"; then
  493.   if test "x$prefix" != xNONE; then
  494.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  495.   else
  496.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  497.   fi
  498. fi
  499. for ac_site_file in $CONFIG_SITE; do
  500.   if test -r "$ac_site_file"; then
  501.     echo "loading site script $ac_site_file"
  502.     . "$ac_site_file"
  503.   fi
  504. done
  505.  
  506. if test -r "$cache_file"; then
  507.   echo "loading cache $cache_file"
  508.   . $cache_file
  509. else
  510.   echo "creating cache $cache_file"
  511.   > $cache_file
  512. fi
  513.  
  514. ac_ext=c
  515. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  516. ac_cpp='$CPP $CPPFLAGS'
  517. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  518. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  519.  
  520. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  521.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  522.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  523.     ac_n= ac_c='
  524. ' ac_t='    '
  525.   else
  526.     ac_n=-n ac_c= ac_t=
  527.   fi
  528. else
  529.   ac_n= ac_c='\c' ac_t=
  530. fi
  531.  
  532.  
  533.  
  534.  
  535. # Extract the first word of "gcc", so it can be a program name with args.
  536. set dummy gcc; ac_word=$2
  537. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  538. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  539.   echo $ac_n "(cached) $ac_c" 1>&6
  540. else
  541.   if test -n "$CC"; then
  542.   ac_cv_prog_CC="$CC" # Let the user override the test.
  543. else
  544.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  545.   for ac_dir in $PATH; do
  546.     test -z "$ac_dir" && ac_dir=.
  547.     if test -f $ac_dir/$ac_word; then
  548.       ac_cv_prog_CC="gcc"
  549.       break
  550.     fi
  551.   done
  552.   IFS="$ac_save_ifs"
  553. fi
  554. fi
  555. CC="$ac_cv_prog_CC"
  556. if test -n "$CC"; then
  557.   echo "$ac_t""$CC" 1>&6
  558. else
  559.   echo "$ac_t""no" 1>&6
  560. fi
  561.  
  562. if test -z "$CC"; then
  563.   # Extract the first word of "cc", so it can be a program name with args.
  564. set dummy cc; ac_word=$2
  565. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  566. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  567.   echo $ac_n "(cached) $ac_c" 1>&6
  568. else
  569.   if test -n "$CC"; then
  570.   ac_cv_prog_CC="$CC" # Let the user override the test.
  571. else
  572.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  573.   ac_prog_rejected=no
  574.   for ac_dir in $PATH; do
  575.     test -z "$ac_dir" && ac_dir=.
  576.     if test -f $ac_dir/$ac_word; then
  577.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  578.         ac_prog_rejected=yes
  579.     continue
  580.       fi
  581.       ac_cv_prog_CC="cc"
  582.       break
  583.     fi
  584.   done
  585.   IFS="$ac_save_ifs"
  586. if test $ac_prog_rejected = yes; then
  587.   # We found a bogon in the path, so make sure we never use it.
  588.   set dummy $ac_cv_prog_CC
  589.   shift
  590.   if test $# -gt 0; then
  591.     # We chose a different compiler from the bogus one.
  592.     # However, it has the same basename, so the bogon will be chosen
  593.     # first if we set CC to just the basename; use the full file name.
  594.     shift
  595.     set dummy "$ac_dir/$ac_word" "$@"
  596.     shift
  597.     ac_cv_prog_CC="$@"
  598.   fi
  599. fi
  600. fi
  601. fi
  602. CC="$ac_cv_prog_CC"
  603. if test -n "$CC"; then
  604.   echo "$ac_t""$CC" 1>&6
  605. else
  606.   echo "$ac_t""no" 1>&6
  607. fi
  608.  
  609.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  610. fi
  611.  
  612. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  613. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  614.   echo $ac_n "(cached) $ac_c" 1>&6
  615. else
  616.   cat > conftest.c <<EOF
  617. #ifdef __GNUC__
  618.   yes;
  619. #endif
  620. EOF
  621. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  622.   ac_cv_prog_gcc=yes
  623. else
  624.   ac_cv_prog_gcc=no
  625. fi
  626. fi
  627.  
  628. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  629. if test $ac_cv_prog_gcc = yes; then
  630.   GCC=yes
  631.   if test "${CFLAGS+set}" != set; then
  632.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  633. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  634.   echo $ac_n "(cached) $ac_c" 1>&6
  635. else
  636.   echo 'void f(){}' > conftest.c
  637. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  638.   ac_cv_prog_gcc_g=yes
  639. else
  640.   ac_cv_prog_gcc_g=no
  641. fi
  642. rm -f conftest*
  643.  
  644. fi
  645.  
  646. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  647.     if test $ac_cv_prog_gcc_g = yes; then
  648.       CFLAGS="-g -O2"
  649.     else
  650.       CFLAGS="-O2"
  651.     fi
  652.   fi
  653. else
  654.   GCC=
  655.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  656. fi
  657.  
  658. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  659. if test -d /etc/conf/kconfig.d &&
  660.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  661. then
  662.   echo "$ac_t""yes" 1>&6
  663.   ISC=yes # If later tests want to check for ISC.
  664.   cat >> confdefs.h <<\EOF
  665. #define _POSIX_SOURCE 1
  666. EOF
  667.  
  668.   if test "$GCC" = yes; then
  669.     CC="$CC -posix"
  670.   else
  671.     CC="$CC -Xp"
  672.   fi
  673. else
  674.   echo "$ac_t""no" 1>&6
  675.   ISC=
  676. fi
  677.  
  678. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  679. # On Suns, sometimes $CPP names a directory.
  680. if test -n "$CPP" && test -d "$CPP"; then
  681.   CPP=
  682. fi
  683. if test -z "$CPP"; then
  684. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  685.   echo $ac_n "(cached) $ac_c" 1>&6
  686. else
  687.     # This must be in double quotes, not single quotes, because CPP may get
  688.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  689.   CPP="${CC-cc} -E"
  690.   # On the NeXT, cc -E runs the code through the compiler's parser,
  691.   # not just through cpp.
  692.   cat > conftest.$ac_ext <<EOF
  693. #line 694 "configure"
  694. #include "confdefs.h"
  695. #include <assert.h>
  696. Syntax Error
  697. EOF
  698. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  699. { (eval echo configure:700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  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="${CC-cc} -E -traditional-cpp"
  707.   cat > conftest.$ac_ext <<EOF
  708. #line 709 "configure"
  709. #include "confdefs.h"
  710. #include <assert.h>
  711. Syntax Error
  712. EOF
  713. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  714. { (eval echo configure:715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  715. ac_err=`grep -v '^ *+' conftest.out`
  716. if test -z "$ac_err"; then
  717.   :
  718. else
  719.   echo "$ac_err" >&5
  720.   rm -rf conftest*
  721.   CPP=/lib/cpp
  722. fi
  723. rm -f conftest*
  724. fi
  725. rm -f conftest*
  726.   ac_cv_prog_CPP="$CPP"
  727. fi
  728.   CPP="$ac_cv_prog_CPP"
  729. else
  730.   ac_cv_prog_CPP="$CPP"
  731. fi
  732. echo "$ac_t""$CPP" 1>&6
  733.  
  734. if test $ac_cv_prog_gcc = yes; then
  735.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  736. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  737.   echo $ac_n "(cached) $ac_c" 1>&6
  738. else
  739.     ac_pattern="Autoconf.*'x'"
  740.   cat > conftest.$ac_ext <<EOF
  741. #line 742 "configure"
  742. #include "confdefs.h"
  743. #include <sgtty.h>
  744. Autoconf TIOCGETP
  745. EOF
  746. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  747.   egrep "$ac_pattern" >/dev/null 2>&1; then
  748.   rm -rf conftest*
  749.   ac_cv_prog_gcc_traditional=yes
  750. else
  751.   rm -rf conftest*
  752.   ac_cv_prog_gcc_traditional=no
  753. fi
  754. rm -f conftest*
  755.  
  756.  
  757.   if test $ac_cv_prog_gcc_traditional = no; then
  758.     cat > conftest.$ac_ext <<EOF
  759. #line 760 "configure"
  760. #include "confdefs.h"
  761. #include <termio.h>
  762. Autoconf TCGETA
  763. EOF
  764. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  765.   egrep "$ac_pattern" >/dev/null 2>&1; then
  766.   rm -rf conftest*
  767.   ac_cv_prog_gcc_traditional=yes
  768. fi
  769. rm -f conftest*
  770.  
  771.   fi
  772. fi
  773.  
  774. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  775.   if test $ac_cv_prog_gcc_traditional = yes; then
  776.     CC="$CC -traditional"
  777.   fi
  778. fi
  779.  
  780. ac_aux_dir=
  781. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  782.   if test -f $ac_dir/install-sh; then
  783.     ac_aux_dir=$ac_dir
  784.     ac_install_sh="$ac_aux_dir/install-sh -c"
  785.     break
  786.   elif test -f $ac_dir/install.sh; then
  787.     ac_aux_dir=$ac_dir
  788.     ac_install_sh="$ac_aux_dir/install.sh -c"
  789.     break
  790.   fi
  791. done
  792. if test -z "$ac_aux_dir"; then
  793.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  794. fi
  795. ac_config_guess=$ac_aux_dir/config.guess
  796. ac_config_sub=$ac_aux_dir/config.sub
  797. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  798.  
  799. # Find a good install program.  We prefer a C program (faster),
  800. # so one script is as good as another.  But avoid the broken or
  801. # incompatible versions:
  802. # SysV /etc/install, /usr/sbin/install
  803. # SunOS /usr/etc/install
  804. # IRIX /sbin/install
  805. # AIX /bin/install
  806. # AmigaOS /c/install
  807. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  808. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  809. # ./install, which can be erroneously created by make from ./install.sh.
  810. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  811. if test -z "$INSTALL"; then
  812. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  813.   echo $ac_n "(cached) $ac_c" 1>&6
  814. else
  815.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  816.   for ac_dir in $PATH; do
  817.     # Account for people who put trailing slashes in PATH elements.
  818.     case "$ac_dir/" in
  819.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  820.     *)
  821.       # OSF1 and SCO ODT 3.0 have their own names for install.
  822.       for ac_prog in ginstall installbsd scoinst install; do
  823.         if test -f $ac_dir/$ac_prog; then
  824.       if test $ac_prog = install &&
  825.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  826.         # AIX install.  It has an incompatible calling convention.
  827.         # OSF/1 installbsd also uses dspmsg, but is usable.
  828.         :
  829.       else
  830.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  831.         break 2
  832.       fi
  833.     fi
  834.       done
  835.       ;;
  836.     esac
  837.   done
  838.   IFS="$ac_save_ifs"
  839.  
  840. fi
  841.   if test "${ac_cv_path_install+set}" = set; then
  842.     INSTALL="$ac_cv_path_install"
  843.   else
  844.     # As a last resort, use the slow shell script.  We don't cache a
  845.     # path for INSTALL within a source directory, because that will
  846.     # break other packages using the cache if that directory is
  847.     # removed, or if the path is relative.
  848.     INSTALL="$ac_install_sh"
  849.   fi
  850. fi
  851. echo "$ac_t""$INSTALL" 1>&6
  852.  
  853. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  854. # It thinks the first close brace ends the variable substitution.
  855. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  856.  
  857. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  858.  
  859.  
  860. TERMLIBS=
  861. echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
  862. ac_lib_var=`echo ncurses'_'initscr | tr './+\055' '__p_'`
  863. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  864.   echo $ac_n "(cached) $ac_c" 1>&6
  865. else
  866.   ac_save_LIBS="$LIBS"
  867. LIBS="-lncurses  $LIBS"
  868. cat > conftest.$ac_ext <<EOF
  869. #line 870 "configure"
  870. #include "confdefs.h"
  871. /* Override any gcc2 internal prototype to avoid an error.  */
  872. /* We use char because int might match the return type of a gcc2
  873.     builtin and then its argument prototype would still apply.  */
  874. char initscr();
  875.  
  876. int main() { t(); return 0; }
  877. int t() {
  878. initscr()
  879. ; return 0; }
  880. EOF
  881. if { (eval echo configure:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  882.   rm -rf conftest*
  883.   eval "ac_cv_lib_$ac_lib_var=yes"
  884. else
  885.   rm -rf conftest*
  886.   eval "ac_cv_lib_$ac_lib_var=no"
  887. fi
  888. rm -f conftest*
  889. LIBS="$ac_save_LIBS"
  890.  
  891. fi
  892. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  893.   echo "$ac_t""yes" 1>&6
  894.   TERMLIBS="$TERMLIBS -lncurses"
  895. else
  896.   echo "$ac_t""no" 1>&6
  897. fi
  898.  
  899. echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  900. ac_lib_var=`echo curses'_'initscr | tr './+\055' '__p_'`
  901. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  902.   echo $ac_n "(cached) $ac_c" 1>&6
  903. else
  904.   ac_save_LIBS="$LIBS"
  905. LIBS="-lcurses  $LIBS"
  906. cat > conftest.$ac_ext <<EOF
  907. #line 908 "configure"
  908. #include "confdefs.h"
  909. /* Override any gcc2 internal prototype to avoid an error.  */
  910. /* We use char because int might match the return type of a gcc2
  911.     builtin and then its argument prototype would still apply.  */
  912. char initscr();
  913.  
  914. int main() { t(); return 0; }
  915. int t() {
  916. initscr()
  917. ; return 0; }
  918. EOF
  919. if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  920.   rm -rf conftest*
  921.   eval "ac_cv_lib_$ac_lib_var=yes"
  922. else
  923.   rm -rf conftest*
  924.   eval "ac_cv_lib_$ac_lib_var=no"
  925. fi
  926. rm -f conftest*
  927. LIBS="$ac_save_LIBS"
  928.  
  929. fi
  930. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  931.   echo "$ac_t""yes" 1>&6
  932.   TERMLIBS="$TERMLIBS -lcurses"
  933. else
  934.   echo "$ac_t""no" 1>&6
  935. fi
  936.  
  937. echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
  938. ac_lib_var=`echo termcap'_'tgetent | tr './+\055' '__p_'`
  939. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  940.   echo $ac_n "(cached) $ac_c" 1>&6
  941. else
  942.   ac_save_LIBS="$LIBS"
  943. LIBS="-ltermcap  $LIBS"
  944. cat > conftest.$ac_ext <<EOF
  945. #line 946 "configure"
  946. #include "confdefs.h"
  947. /* Override any gcc2 internal prototype to avoid an error.  */
  948. /* We use char because int might match the return type of a gcc2
  949.     builtin and then its argument prototype would still apply.  */
  950. char tgetent();
  951.  
  952. int main() { t(); return 0; }
  953. int t() {
  954. tgetent()
  955. ; return 0; }
  956. EOF
  957. if { (eval echo configure:958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  958.   rm -rf conftest*
  959.   eval "ac_cv_lib_$ac_lib_var=yes"
  960. else
  961.   rm -rf conftest*
  962.   eval "ac_cv_lib_$ac_lib_var=no"
  963. fi
  964. rm -f conftest*
  965. LIBS="$ac_save_LIBS"
  966.  
  967. fi
  968. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  969.   echo "$ac_t""yes" 1>&6
  970.   TERMLIBS="$TERMLIBS -ltermcap"
  971. else
  972.   echo "$ac_t""no" 1>&6
  973. fi
  974.  
  975. echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
  976. ac_lib_var=`echo termlib'_'tgetent | tr './+\055' '__p_'`
  977. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  978.   echo $ac_n "(cached) $ac_c" 1>&6
  979. else
  980.   ac_save_LIBS="$LIBS"
  981. LIBS="-ltermlib  $LIBS"
  982. cat > conftest.$ac_ext <<EOF
  983. #line 984 "configure"
  984. #include "confdefs.h"
  985. /* Override any gcc2 internal prototype to avoid an error.  */
  986. /* We use char because int might match the return type of a gcc2
  987.     builtin and then its argument prototype would still apply.  */
  988. char tgetent();
  989.  
  990. int main() { t(); return 0; }
  991. int t() {
  992. tgetent()
  993. ; return 0; }
  994. EOF
  995. if { (eval echo configure:996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  996.   rm -rf conftest*
  997.   eval "ac_cv_lib_$ac_lib_var=yes"
  998. else
  999.   rm -rf conftest*
  1000.   eval "ac_cv_lib_$ac_lib_var=no"
  1001. fi
  1002. rm -f conftest*
  1003. LIBS="$ac_save_LIBS"
  1004.  
  1005. fi
  1006. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1007.   echo "$ac_t""yes" 1>&6
  1008.   have_termlib=yes
  1009. else
  1010.   echo "$ac_t""no" 1>&6
  1011. have_termlib=no
  1012. fi
  1013.  
  1014. echo $ac_n "checking for -lgen""... $ac_c" 1>&6
  1015. ac_lib_var=`echo gen'_'regcmp | tr './+\055' '__p_'`
  1016. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1017.   echo $ac_n "(cached) $ac_c" 1>&6
  1018. else
  1019.   ac_save_LIBS="$LIBS"
  1020. LIBS="-lgen  $LIBS"
  1021. cat > conftest.$ac_ext <<EOF
  1022. #line 1023 "configure"
  1023. #include "confdefs.h"
  1024. /* Override any gcc2 internal prototype to avoid an error.  */
  1025. /* We use char because int might match the return type of a gcc2
  1026.     builtin and then its argument prototype would still apply.  */
  1027. char regcmp();
  1028.  
  1029. int main() { t(); return 0; }
  1030. int t() {
  1031. regcmp()
  1032. ; return 0; }
  1033. EOF
  1034. if { (eval echo configure:1035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1035.   rm -rf conftest*
  1036.   eval "ac_cv_lib_$ac_lib_var=yes"
  1037. else
  1038.   rm -rf conftest*
  1039.   eval "ac_cv_lib_$ac_lib_var=no"
  1040. fi
  1041. rm -f conftest*
  1042. LIBS="$ac_save_LIBS"
  1043.  
  1044. fi
  1045. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1046.   echo "$ac_t""yes" 1>&6
  1047.     ac_tr_lib=HAVE_LIB`echo gen | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1048.   cat >> confdefs.h <<EOF
  1049. #define $ac_tr_lib 1
  1050. EOF
  1051.  
  1052.   LIBS="-lgen $LIBS"
  1053.  
  1054. else
  1055.   echo "$ac_t""no" 1>&6
  1056. fi
  1057.  
  1058. echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  1059. ac_lib_var=`echo intl'_'regcmp | tr './+\055' '__p_'`
  1060. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1061.   echo $ac_n "(cached) $ac_c" 1>&6
  1062. else
  1063.   ac_save_LIBS="$LIBS"
  1064. LIBS="-lintl  $LIBS"
  1065. cat > conftest.$ac_ext <<EOF
  1066. #line 1067 "configure"
  1067. #include "confdefs.h"
  1068. /* Override any gcc2 internal prototype to avoid an error.  */
  1069. /* We use char because int might match the return type of a gcc2
  1070.     builtin and then its argument prototype would still apply.  */
  1071. char regcmp();
  1072.  
  1073. int main() { t(); return 0; }
  1074. int t() {
  1075. regcmp()
  1076. ; return 0; }
  1077. EOF
  1078. if { (eval echo configure:1079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1079.   rm -rf conftest*
  1080.   eval "ac_cv_lib_$ac_lib_var=yes"
  1081. else
  1082.   rm -rf conftest*
  1083.   eval "ac_cv_lib_$ac_lib_var=no"
  1084. fi
  1085. rm -f conftest*
  1086. LIBS="$ac_save_LIBS"
  1087.  
  1088. fi
  1089. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1090.   echo "$ac_t""yes" 1>&6
  1091.     ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1092.   cat >> confdefs.h <<EOF
  1093. #define $ac_tr_lib 1
  1094. EOF
  1095.  
  1096.   LIBS="-lintl $LIBS"
  1097.  
  1098. else
  1099.   echo "$ac_t""no" 1>&6
  1100. fi
  1101.  
  1102. echo $ac_n "checking for -lPW""... $ac_c" 1>&6
  1103. ac_lib_var=`echo PW'_'regcmp | tr './+\055' '__p_'`
  1104. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1105.   echo $ac_n "(cached) $ac_c" 1>&6
  1106. else
  1107.   ac_save_LIBS="$LIBS"
  1108. LIBS="-lPW  $LIBS"
  1109. cat > conftest.$ac_ext <<EOF
  1110. #line 1111 "configure"
  1111. #include "confdefs.h"
  1112. /* Override any gcc2 internal prototype to avoid an error.  */
  1113. /* We use char because int might match the return type of a gcc2
  1114.     builtin and then its argument prototype would still apply.  */
  1115. char regcmp();
  1116.  
  1117. int main() { t(); return 0; }
  1118. int t() {
  1119. regcmp()
  1120. ; return 0; }
  1121. EOF
  1122. if { (eval echo configure:1123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1123.   rm -rf conftest*
  1124.   eval "ac_cv_lib_$ac_lib_var=yes"
  1125. else
  1126.   rm -rf conftest*
  1127.   eval "ac_cv_lib_$ac_lib_var=no"
  1128. fi
  1129. rm -f conftest*
  1130. LIBS="$ac_save_LIBS"
  1131.  
  1132. fi
  1133. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1134.   echo "$ac_t""yes" 1>&6
  1135.     ac_tr_lib=HAVE_LIB`echo PW | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1136.   cat >> confdefs.h <<EOF
  1137. #define $ac_tr_lib 1
  1138. EOF
  1139.  
  1140.   LIBS="-lPW $LIBS"
  1141.  
  1142. else
  1143.   echo "$ac_t""no" 1>&6
  1144. fi
  1145.  
  1146.  
  1147. echo $ac_n "checking for working terminal libraries""... $ac_c" 1>&6
  1148. SAVE_LIBS=$LIBS
  1149. LIBS="$LIBS $TERMLIBS"
  1150. cat > conftest.$ac_ext <<EOF
  1151. #line 1152 "configure"
  1152. #include "confdefs.h"
  1153.  
  1154. int main() { t(); return 0; }
  1155. int t() {
  1156. tgetent(0); tgetflag(0); tgetnum(0); tgetstr(0);
  1157. ; return 0; }
  1158. EOF
  1159. if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1160.   rm -rf conftest*
  1161.   termok=yes
  1162. else
  1163.   rm -rf conftest*
  1164.   termok=no
  1165. fi
  1166. rm -f conftest*
  1167.  
  1168. if test $termok = yes; then
  1169.   echo "$ac_t""using $TERMLIBS" 1>&6
  1170. else
  1171.   LIBS="$SAVE_LIBS"
  1172.   if test $have_termlib = yes; then
  1173.     LIBS="$LIBS -ltermlib"
  1174.     echo "$ac_t""using -ltermlib" 1>&6
  1175.   else
  1176.     echo "$ac_t""TERMINAL LIBRARY BROKEN - configure failed" 1>&6
  1177.     exit 1
  1178.   fi
  1179. fi
  1180.  
  1181. # If we cannot run a trivial program, we must be cross compiling.
  1182. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1183. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1184.   echo $ac_n "(cached) $ac_c" 1>&6
  1185. else
  1186.   if test "$cross_compiling" = yes; then
  1187.   ac_cv_c_cross=yes
  1188. else
  1189. cat > conftest.$ac_ext <<EOF
  1190. #line 1191 "configure"
  1191. #include "confdefs.h"
  1192. main(){return(0);}
  1193. EOF
  1194. { (eval echo configure:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1195. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1196.   ac_cv_c_cross=no
  1197. else
  1198.   ac_cv_c_cross=yes
  1199. fi
  1200. fi
  1201. rm -fr conftest*
  1202. fi
  1203.  
  1204. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1205. cross_compiling=$ac_cv_c_cross
  1206.  
  1207. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1208. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1209.   echo $ac_n "(cached) $ac_c" 1>&6
  1210. else
  1211.   cat > conftest.$ac_ext <<EOF
  1212. #line 1213 "configure"
  1213. #include "confdefs.h"
  1214. #include <stdlib.h>
  1215. #include <stdarg.h>
  1216. #include <string.h>
  1217. #include <float.h>
  1218. EOF
  1219. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1220. { (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1221. ac_err=`grep -v '^ *+' conftest.out`
  1222. if test -z "$ac_err"; then
  1223.   rm -rf conftest*
  1224.   ac_cv_header_stdc=yes
  1225. else
  1226.   echo "$ac_err" >&5
  1227.   rm -rf conftest*
  1228.   ac_cv_header_stdc=no
  1229. fi
  1230. rm -f conftest*
  1231.  
  1232. if test $ac_cv_header_stdc = yes; then
  1233.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1234. cat > conftest.$ac_ext <<EOF
  1235. #line 1236 "configure"
  1236. #include "confdefs.h"
  1237. #include <string.h>
  1238. EOF
  1239. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1240.   egrep "memchr" >/dev/null 2>&1; then
  1241.   :
  1242. else
  1243.   rm -rf conftest*
  1244.   ac_cv_header_stdc=no
  1245. fi
  1246. rm -f conftest*
  1247.  
  1248. fi
  1249.  
  1250. if test $ac_cv_header_stdc = yes; then
  1251.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1252. cat > conftest.$ac_ext <<EOF
  1253. #line 1254 "configure"
  1254. #include "confdefs.h"
  1255. #include <stdlib.h>
  1256. EOF
  1257. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1258.   egrep "free" >/dev/null 2>&1; then
  1259.   :
  1260. else
  1261.   rm -rf conftest*
  1262.   ac_cv_header_stdc=no
  1263. fi
  1264. rm -f conftest*
  1265.  
  1266. fi
  1267.  
  1268. if test $ac_cv_header_stdc = yes; then
  1269.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1270. if test "$cross_compiling" = yes; then
  1271.   :
  1272. else
  1273. cat > conftest.$ac_ext <<EOF
  1274. #line 1275 "configure"
  1275. #include "confdefs.h"
  1276. #include <ctype.h>
  1277. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1278. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1279. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1280. int main () { int i; for (i = 0; i < 256; i++)
  1281. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1282. exit (0); }
  1283.  
  1284. EOF
  1285. { (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1286. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1287.   :
  1288. else
  1289.   ac_cv_header_stdc=no
  1290. fi
  1291. fi
  1292. rm -fr conftest*
  1293. fi
  1294. fi
  1295.  
  1296. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1297. if test $ac_cv_header_stdc = yes; then
  1298.   cat >> confdefs.h <<\EOF
  1299. #define STDC_HEADERS 1
  1300. EOF
  1301.  
  1302. fi
  1303.  
  1304. for ac_hdr in ctype.h errno.h fcntl.h limits.h stdio.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h sys/ptem.h
  1305. do
  1306. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1307. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1308. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1309.   echo $ac_n "(cached) $ac_c" 1>&6
  1310. else
  1311.   cat > conftest.$ac_ext <<EOF
  1312. #line 1313 "configure"
  1313. #include "confdefs.h"
  1314. #include <$ac_hdr>
  1315. EOF
  1316. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1317. { (eval echo configure:1318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1318. ac_err=`grep -v '^ *+' conftest.out`
  1319. if test -z "$ac_err"; then
  1320.   rm -rf conftest*
  1321.   eval "ac_cv_header_$ac_safe=yes"
  1322. else
  1323.   echo "$ac_err" >&5
  1324.   rm -rf conftest*
  1325.   eval "ac_cv_header_$ac_safe=no"
  1326. fi
  1327. rm -f conftest*
  1328. fi
  1329. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1330.   echo "$ac_t""yes" 1>&6
  1331.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1332.   cat >> confdefs.h <<EOF
  1333. #define $ac_tr_hdr 1
  1334. EOF
  1335.  
  1336. else
  1337.   echo "$ac_t""no" 1>&6
  1338. fi
  1339. done
  1340.  
  1341.  
  1342. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  1343. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  1344.   echo $ac_n "(cached) $ac_c" 1>&6
  1345. else
  1346.   cat > conftest.$ac_ext <<EOF
  1347. #line 1348 "configure"
  1348. #include "confdefs.h"
  1349. #include <sys/types.h>
  1350. #if STDC_HEADERS
  1351. #include <stdlib.h>
  1352. #endif
  1353. EOF
  1354. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1355.   egrep "off_t" >/dev/null 2>&1; then
  1356.   rm -rf conftest*
  1357.   ac_cv_type_off_t=yes
  1358. else
  1359.   rm -rf conftest*
  1360.   ac_cv_type_off_t=no
  1361. fi
  1362. rm -f conftest*
  1363.  
  1364. fi
  1365. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  1366. if test $ac_cv_type_off_t = no; then
  1367.   cat >> confdefs.h <<\EOF
  1368. #define off_t long
  1369. EOF
  1370.  
  1371. fi
  1372.  
  1373. echo $ac_n "checking for void""... $ac_c" 1>&6
  1374. cat > conftest.$ac_ext <<EOF
  1375. #line 1376 "configure"
  1376. #include "confdefs.h"
  1377.  
  1378. int main() { return 0; }
  1379. int t() {
  1380. void *foo = 0;
  1381. ; return 0; }
  1382. EOF
  1383. if { (eval echo configure:1384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1384.   rm -rf conftest*
  1385.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1386. #define HAVE_VOID 1
  1387. EOF
  1388.  
  1389. else
  1390.   rm -rf conftest*
  1391.   echo "$ac_t""no" 1>&6
  1392. fi
  1393. rm -f conftest*
  1394.  
  1395. echo $ac_n "checking for const""... $ac_c" 1>&6
  1396. cat > conftest.$ac_ext <<EOF
  1397. #line 1398 "configure"
  1398. #include "confdefs.h"
  1399.  
  1400. int main() { return 0; }
  1401. int t() {
  1402. const int foo = 0;
  1403. ; return 0; }
  1404. EOF
  1405. if { (eval echo configure:1406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1406.   rm -rf conftest*
  1407.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1408. #define HAVE_CONST 1
  1409. EOF
  1410.  
  1411. else
  1412.   rm -rf conftest*
  1413.   echo "$ac_t""no" 1>&6
  1414. fi
  1415. rm -f conftest*
  1416.  
  1417. echo $ac_n "checking for time_t""... $ac_c" 1>&6
  1418. cat > conftest.$ac_ext <<EOF
  1419. #line 1420 "configure"
  1420. #include "confdefs.h"
  1421. #include <time.h>
  1422. int main() { return 0; }
  1423. int t() {
  1424. time_t t = 0;
  1425. ; return 0; }
  1426. EOF
  1427. if { (eval echo configure:1428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1428.   rm -rf conftest*
  1429.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1430. #define HAVE_TIME_T 1
  1431. EOF
  1432.  
  1433. else
  1434.   rm -rf conftest*
  1435.   echo "$ac_t""no" 1>&6
  1436. fi
  1437. rm -f conftest*
  1438.  
  1439.  
  1440. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1441. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1442.   echo $ac_n "(cached) $ac_c" 1>&6
  1443. else
  1444.   cat > conftest.$ac_ext <<EOF
  1445. #line 1446 "configure"
  1446. #include "confdefs.h"
  1447. #include <sys/types.h>
  1448. #include <signal.h>
  1449. #ifdef signal
  1450. #undef signal
  1451. #endif
  1452. #ifdef __cplusplus
  1453. extern "C" void (*signal (int, void (*)(int)))(int);
  1454. #else
  1455. void (*signal ()) ();
  1456. #endif
  1457.  
  1458. int main() { return 0; }
  1459. int t() {
  1460. int i;
  1461. ; return 0; }
  1462. EOF
  1463. if { (eval echo configure:1464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1464.   rm -rf conftest*
  1465.   ac_cv_type_signal=void
  1466. else
  1467.   rm -rf conftest*
  1468.   ac_cv_type_signal=int
  1469. fi
  1470. rm -f conftest*
  1471.  
  1472. fi
  1473.  
  1474. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1475. cat >> confdefs.h <<EOF
  1476. #define RETSIGTYPE $ac_cv_type_signal
  1477. EOF
  1478.  
  1479.  
  1480. for ac_func in _setjmp system sigsetmask memcpy strchr
  1481. do
  1482. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1483. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1484.   echo $ac_n "(cached) $ac_c" 1>&6
  1485. else
  1486.   cat > conftest.$ac_ext <<EOF
  1487. #line 1488 "configure"
  1488. #include "confdefs.h"
  1489. /* System header to define __stub macros and hopefully few prototypes,
  1490.     which can conflict with char $ac_func(); below.  */
  1491. #include <assert.h>
  1492. /* Override any gcc2 internal prototype to avoid an error.  */
  1493. /* We use char because int might match the return type of a gcc2
  1494.     builtin and then its argument prototype would still apply.  */
  1495. char $ac_func();
  1496.  
  1497. int main() { t(); return 0; }
  1498. int t() {
  1499.  
  1500. /* The GNU C library defines this for functions which it implements
  1501.     to always fail with ENOSYS.  Some functions are actually named
  1502.     something starting with __ and the normal name is an alias.  */
  1503. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1504. choke me
  1505. #else
  1506. $ac_func();
  1507. #endif
  1508.  
  1509. ; return 0; }
  1510. EOF
  1511. if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1512.   rm -rf conftest*
  1513.   eval "ac_cv_func_$ac_func=yes"
  1514. else
  1515.   rm -rf conftest*
  1516.   eval "ac_cv_func_$ac_func=no"
  1517. fi
  1518. rm -f conftest*
  1519.  
  1520. fi
  1521. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1522.   echo "$ac_t""yes" 1>&6
  1523.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1524.   cat >> confdefs.h <<EOF
  1525. #define $ac_tr_func 1
  1526. EOF
  1527.  
  1528. else
  1529.   echo "$ac_t""no" 1>&6
  1530. fi
  1531. done
  1532.  
  1533.  
  1534. echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
  1535. if eval "test \"`echo '$''{'ac_cv_func_tcgetattr'+set}'`\" = set"; then
  1536.   echo $ac_n "(cached) $ac_c" 1>&6
  1537. else
  1538.   cat > conftest.$ac_ext <<EOF
  1539. #line 1540 "configure"
  1540. #include "confdefs.h"
  1541. /* System header to define __stub macros and hopefully few prototypes,
  1542.     which can conflict with char tcgetattr(); below.  */
  1543. #include <assert.h>
  1544. /* Override any gcc2 internal prototype to avoid an error.  */
  1545. /* We use char because int might match the return type of a gcc2
  1546.     builtin and then its argument prototype would still apply.  */
  1547. char tcgetattr();
  1548.  
  1549. int main() { t(); return 0; }
  1550. int t() {
  1551.  
  1552. /* The GNU C library defines this for functions which it implements
  1553.     to always fail with ENOSYS.  Some functions are actually named
  1554.     something starting with __ and the normal name is an alias.  */
  1555. #if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
  1556. choke me
  1557. #else
  1558. tcgetattr();
  1559. #endif
  1560.  
  1561. ; return 0; }
  1562. EOF
  1563. if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1564.   rm -rf conftest*
  1565.   eval "ac_cv_func_tcgetattr=yes"
  1566. else
  1567.   rm -rf conftest*
  1568.   eval "ac_cv_func_tcgetattr=no"
  1569. fi
  1570. rm -f conftest*
  1571.  
  1572. fi
  1573. if eval "test \"`echo '$ac_cv_func_'tcgetattr`\" = yes"; then
  1574.   echo "$ac_t""yes" 1>&6
  1575.   cat >> confdefs.h <<\EOF
  1576. #define HAVE_TERMIOS_FUNCS 1
  1577. EOF
  1578.  
  1579. else
  1580.   echo "$ac_t""no" 1>&6
  1581. fi
  1582.  
  1583.  
  1584. echo $ac_n "checking for fileno""... $ac_c" 1>&6
  1585. cat > conftest.$ac_ext <<EOF
  1586. #line 1587 "configure"
  1587. #include "confdefs.h"
  1588.  
  1589. #if HAVE_STDIO_H
  1590. #include <stdio.h>
  1591. #endif
  1592. int main() { t(); return 0; }
  1593. int t() {
  1594. static int x; x = fileno(stdin);
  1595. ; return 0; }
  1596. EOF
  1597. if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1598.   rm -rf conftest*
  1599.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1600. #define HAVE_FILENO 1
  1601. EOF
  1602.  
  1603. else
  1604.   rm -rf conftest*
  1605.   echo "$ac_t""no" 1>&6
  1606. fi
  1607. rm -f conftest*
  1608.  
  1609.  
  1610. echo $ac_n "checking for strerror""... $ac_c" 1>&6
  1611. cat > conftest.$ac_ext <<EOF
  1612. #line 1613 "configure"
  1613. #include "confdefs.h"
  1614.  
  1615. #if HAVE_STDIO_H
  1616. #include <stdio.h>
  1617. #endif
  1618. #if HAVE_STRING_H
  1619. #include <string.h>
  1620. #endif
  1621. #if HAVE_ERRNO_H
  1622. #include <errno.h>
  1623. #endif
  1624. int main() { t(); return 0; }
  1625. int t() {
  1626. static char *x; x = strerror(0);
  1627. ; return 0; }
  1628. EOF
  1629. if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1630.   rm -rf conftest*
  1631.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1632. #define HAVE_STRERROR 1
  1633. EOF
  1634.  
  1635. else
  1636.   rm -rf conftest*
  1637.   echo "$ac_t""no" 1>&6
  1638. fi
  1639. rm -f conftest*
  1640.  
  1641.  
  1642. echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
  1643. cat > conftest.$ac_ext <<EOF
  1644. #line 1645 "configure"
  1645. #include "confdefs.h"
  1646.  
  1647. int main() { t(); return 0; }
  1648. int t() {
  1649. extern char *sys_errlist[]; static char **x; x = sys_errlist;
  1650. ; return 0; }
  1651. EOF
  1652. if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1653.   rm -rf conftest*
  1654.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1655. #define HAVE_SYS_ERRLIST 1
  1656. EOF
  1657.  
  1658. else
  1659.   rm -rf conftest*
  1660.   echo "$ac_t""no" 1>&6
  1661. fi
  1662. rm -f conftest*
  1663.  
  1664.  
  1665. have_errno=no
  1666. echo $ac_n "checking for errno""... $ac_c" 1>&6
  1667. cat > conftest.$ac_ext <<EOF
  1668. #line 1669 "configure"
  1669. #include "confdefs.h"
  1670.  
  1671. #if HAVE_ERRNO_H
  1672. #include <errno.h>
  1673. #endif
  1674. int main() { t(); return 0; }
  1675. int t() {
  1676. static int x; x = errno;
  1677. ; return 0; }
  1678. EOF
  1679. if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1680.   rm -rf conftest*
  1681.   echo "$ac_t""yes - in errno.h" 1>&6; cat >> confdefs.h <<\EOF
  1682. #define HAVE_ERRNO 1
  1683. EOF
  1684.  have_errno=yes
  1685. fi
  1686. rm -f conftest*
  1687.  
  1688. if test $have_errno = no; then
  1689. cat > conftest.$ac_ext <<EOF
  1690. #line 1691 "configure"
  1691. #include "confdefs.h"
  1692.  
  1693. #if HAVE_ERRNO_H
  1694. #include <errno.h>
  1695. #endif
  1696. int main() { t(); return 0; }
  1697. int t() {
  1698. extern int errno; static int x; x = errno;
  1699. ; return 0; }
  1700. EOF
  1701. if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1702.   rm -rf conftest*
  1703.   echo "$ac_t""yes - must define" 1>&6; cat >> confdefs.h <<\EOF
  1704. #define HAVE_ERRNO 1
  1705. EOF
  1706.  cat >> confdefs.h <<\EOF
  1707. #define MUST_DEFINE_ERRNO 1
  1708. EOF
  1709.  
  1710. else
  1711.   rm -rf conftest*
  1712.   echo "$ac_t""no" 1>&6
  1713. fi
  1714. rm -f conftest*
  1715.  
  1716. fi
  1717.  
  1718. echo $ac_n "checking for locale""... $ac_c" 1>&6
  1719. cat > conftest.$ac_ext <<EOF
  1720. #line 1721 "configure"
  1721. #include "confdefs.h"
  1722. #include <locale.h>
  1723. #include <ctype.h>
  1724. int main() { t(); return 0; }
  1725. int t() {
  1726. setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
  1727. ; return 0; }
  1728. EOF
  1729. if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1730.   rm -rf conftest*
  1731.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1732. #define HAVE_LOCALE 1
  1733. EOF
  1734.  
  1735. else
  1736.   rm -rf conftest*
  1737.   echo "$ac_t""no" 1>&6
  1738. fi
  1739. rm -f conftest*
  1740.  
  1741. echo $ac_n "checking for ctype functions""... $ac_c" 1>&6
  1742. cat > conftest.$ac_ext <<EOF
  1743. #line 1744 "configure"
  1744. #include "confdefs.h"
  1745.  
  1746. #if HAVE_CTYPE_H
  1747. #include <ctype.h>
  1748. #endif
  1749. int main() { t(); return 0; }
  1750. int t() {
  1751. static int x; x = isupper(x); x = tolower(x); x = toupper(x);
  1752. ; return 0; }
  1753. EOF
  1754. if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1755.   rm -rf conftest*
  1756.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1757. #define HAVE_UPPER_LOWER 1
  1758. EOF
  1759.  
  1760. else
  1761.   rm -rf conftest*
  1762.   echo "$ac_t""no" 1>&6
  1763. fi
  1764. rm -f conftest*
  1765.  
  1766.  
  1767. have_ospeed=no
  1768. echo $ac_n "checking termcap for ospeed""... $ac_c" 1>&6
  1769. cat > conftest.$ac_ext <<EOF
  1770. #line 1771 "configure"
  1771. #include "confdefs.h"
  1772.  
  1773. #include <sys/types.h>
  1774. #if HAVE_TERMIOS_H
  1775. #include <termios.h>
  1776. #endif
  1777. #if HAVE_TERMCAP_H
  1778. #include <termcap.h>
  1779. #endif
  1780. int main() { t(); return 0; }
  1781. int t() {
  1782. ospeed = 0;
  1783. ; return 0; }
  1784. EOF
  1785. if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1786.   rm -rf conftest*
  1787.   echo "$ac_t""yes - in termcap.h" 1>&6; cat >> confdefs.h <<\EOF
  1788. #define HAVE_OSPEED 1
  1789. EOF
  1790.  have_ospeed=yes
  1791. fi
  1792. rm -f conftest*
  1793.  
  1794. if test $have_ospeed = no; then
  1795. cat > conftest.$ac_ext <<EOF
  1796. #line 1797 "configure"
  1797. #include "confdefs.h"
  1798.  
  1799. int main() { t(); return 0; }
  1800. int t() {
  1801. extern short ospeed; ospeed = 0;
  1802. ; return 0; }
  1803. EOF
  1804. if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1805.   rm -rf conftest*
  1806.   echo "$ac_t""yes - must define" 1>&6; cat >> confdefs.h <<\EOF
  1807. #define HAVE_OSPEED 1
  1808. EOF
  1809.  cat >> confdefs.h <<\EOF
  1810. #define MUST_DEFINE_OSPEED 1
  1811. EOF
  1812.  
  1813. else
  1814.   rm -rf conftest*
  1815.   echo "$ac_t""no" 1>&6
  1816. fi
  1817. rm -f conftest*
  1818.  
  1819. fi
  1820.  
  1821. have_regex=no
  1822. have_posix_regex=unknown
  1823. echo "checking for regular expression library" 1>&6
  1824. if test "$cross_compiling" = yes; then
  1825.   have_posix_regex=unknown
  1826. else
  1827. cat > conftest.$ac_ext <<EOF
  1828. #line 1829 "configure"
  1829. #include "confdefs.h"
  1830.  
  1831. #include <sys/types.h>
  1832. #include <regex.h>
  1833. main() { regex_t r; regmatch_t rm;
  1834. if (regcomp(&r, "abc", 0)) exit(1);
  1835. if (regexec(&r, "xabcy", 1, &rm, 0)) exit(1);
  1836. exit(0); }
  1837. EOF
  1838. { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1839. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1840.   have_posix_regex=yes
  1841. else
  1842.   have_posix_regex=no
  1843. fi
  1844. fi
  1845. rm -fr conftest*
  1846. if test $have_posix_regex = yes; then
  1847.   echo "$ac_t""using POSIX regcomp" 1>&6
  1848.   cat >> confdefs.h <<\EOF
  1849. #define HAVE_POSIX_REGCOMP 1
  1850. EOF
  1851.  
  1852.   have_regex=yes
  1853. elif test $have_posix_regex = unknown; then
  1854.   cat > conftest.$ac_ext <<EOF
  1855. #line 1856 "configure"
  1856. #include "confdefs.h"
  1857.  
  1858. #include <sys/types.h>
  1859. #include <regex.h>
  1860. int main() { t(); return 0; }
  1861. int t() {
  1862. regex_t *r; regfree(r);
  1863. ; return 0; }
  1864. EOF
  1865. if { (eval echo configure:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1866.   rm -rf conftest*
  1867.   echo "$ac_t""using POSIX regcomp" 1>&6
  1868.   cat >> confdefs.h <<\EOF
  1869. #define HAVE_POSIX_REGCOMP 1
  1870. EOF
  1871.  have_regex=yes
  1872. fi
  1873. rm -f conftest*
  1874.  
  1875. fi
  1876. if test $have_regex = no; then
  1877. echo $ac_n "checking for regcmp""... $ac_c" 1>&6
  1878. if eval "test \"`echo '$''{'ac_cv_func_regcmp'+set}'`\" = set"; then
  1879.   echo $ac_n "(cached) $ac_c" 1>&6
  1880. else
  1881.   cat > conftest.$ac_ext <<EOF
  1882. #line 1883 "configure"
  1883. #include "confdefs.h"
  1884. /* System header to define __stub macros and hopefully few prototypes,
  1885.     which can conflict with char regcmp(); below.  */
  1886. #include <assert.h>
  1887. /* Override any gcc2 internal prototype to avoid an error.  */
  1888. /* We use char because int might match the return type of a gcc2
  1889.     builtin and then its argument prototype would still apply.  */
  1890. char regcmp();
  1891.  
  1892. int main() { t(); return 0; }
  1893. int t() {
  1894.  
  1895. /* The GNU C library defines this for functions which it implements
  1896.     to always fail with ENOSYS.  Some functions are actually named
  1897.     something starting with __ and the normal name is an alias.  */
  1898. #if defined (__stub_regcmp) || defined (__stub___regcmp)
  1899. choke me
  1900. #else
  1901. regcmp();
  1902. #endif
  1903.  
  1904. ; return 0; }
  1905. EOF
  1906. if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1907.   rm -rf conftest*
  1908.   eval "ac_cv_func_regcmp=yes"
  1909. else
  1910.   rm -rf conftest*
  1911.   eval "ac_cv_func_regcmp=no"
  1912. fi
  1913. rm -f conftest*
  1914.  
  1915. fi
  1916. if eval "test \"`echo '$ac_cv_func_'regcmp`\" = yes"; then
  1917.   echo "$ac_t""yes" 1>&6
  1918.   echo "$ac_t""using regcmp" 1>&6; cat >> confdefs.h <<\EOF
  1919. #define HAVE_REGCMP 1
  1920. EOF
  1921.  have_regex=yes
  1922. else
  1923.   echo "$ac_t""no" 1>&6
  1924. fi
  1925.  
  1926. fi
  1927. if test $have_regex = no; then
  1928. cat > conftest.$ac_ext <<EOF
  1929. #line 1930 "configure"
  1930. #include "confdefs.h"
  1931.  
  1932. #include "regexp.h"
  1933. int main() { t(); return 0; }
  1934. int t() {
  1935. regcomp("");
  1936. ; return 0; }
  1937. EOF
  1938. if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1939.   rm -rf conftest*
  1940.   echo "$ac_t""using V8 regcomp" 1>&6; cat >> confdefs.h <<\EOF
  1941. #define HAVE_V8_REGCOMP 1
  1942. EOF
  1943.  have_regex=yes
  1944. fi
  1945. rm -f conftest*
  1946.  
  1947. fi
  1948. if test $have_regex = no && test -f ${srcdir}/regex.c; then
  1949. echo "$ac_t""using POSIX regcomp -- local source" 1>&6; cat >> confdefs.h <<\EOF
  1950. #define HAVE_POSIX_REGCOMP 1
  1951. EOF
  1952.  REGEX_O='regex.$(O)'  have_regex=yes
  1953. fi
  1954. if test $have_regex = no && test -f ${srcdir}/regexp.c; then
  1955. echo "$ac_t""using V8 regcomp -- local source" 1>&6; cat >> confdefs.h <<\EOF
  1956. #define HAVE_V8_REGCOMP 1
  1957. EOF
  1958.  REGEX_O='regexp.$(O)'  have_regex=yes
  1959. fi
  1960. if test $have_regex = no; then
  1961. echo "$ac_t""using re_comp" 1>&6; echo $ac_n "checking for re_comp""... $ac_c" 1>&6
  1962. if eval "test \"`echo '$''{'ac_cv_func_re_comp'+set}'`\" = set"; then
  1963.   echo $ac_n "(cached) $ac_c" 1>&6
  1964. else
  1965.   cat > conftest.$ac_ext <<EOF
  1966. #line 1967 "configure"
  1967. #include "confdefs.h"
  1968. /* System header to define __stub macros and hopefully few prototypes,
  1969.     which can conflict with char re_comp(); below.  */
  1970. #include <assert.h>
  1971. /* Override any gcc2 internal prototype to avoid an error.  */
  1972. /* We use char because int might match the return type of a gcc2
  1973.     builtin and then its argument prototype would still apply.  */
  1974. char re_comp();
  1975.  
  1976. int main() { t(); return 0; }
  1977. int t() {
  1978.  
  1979. /* The GNU C library defines this for functions which it implements
  1980.     to always fail with ENOSYS.  Some functions are actually named
  1981.     something starting with __ and the normal name is an alias.  */
  1982. #if defined (__stub_re_comp) || defined (__stub___re_comp)
  1983. choke me
  1984. #else
  1985. re_comp();
  1986. #endif
  1987.  
  1988. ; return 0; }
  1989. EOF
  1990. if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1991.   rm -rf conftest*
  1992.   eval "ac_cv_func_re_comp=yes"
  1993. else
  1994.   rm -rf conftest*
  1995.   eval "ac_cv_func_re_comp=no"
  1996. fi
  1997. rm -f conftest*
  1998.  
  1999. fi
  2000. if eval "test \"`echo '$ac_cv_func_'re_comp`\" = yes"; then
  2001.   echo "$ac_t""yes" 1>&6
  2002.   cat >> confdefs.h <<\EOF
  2003. #define HAVE_RE_COMP 1
  2004. EOF
  2005.  have_regex=yes
  2006. else
  2007.   echo "$ac_t""no" 1>&6
  2008. fi
  2009.  
  2010. fi
  2011. if test $have_regex = no; then
  2012. echo "$ac_t""cannot find regular expression library" 1>&6; cat >> confdefs.h <<\EOF
  2013. #define NO_REGEX 1
  2014. EOF
  2015.  
  2016. fi
  2017.  
  2018. trap '' 1 2 15
  2019. cat > confcache <<\EOF
  2020. # This file is a shell script that caches the results of configure
  2021. # tests run on this system so they can be shared between configure
  2022. # scripts and configure runs.  It is not useful on other systems.
  2023. # If it contains results you don't want to keep, you may remove or edit it.
  2024. #
  2025. # By default, configure uses ./config.cache as the cache file,
  2026. # creating it if it does not exist already.  You can give configure
  2027. # the --cache-file=FILE option to use a different cache file; that is
  2028. # what configure does when it calls configure scripts in
  2029. # subdirectories, so they share the cache.
  2030. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2031. # config.status only pays attention to the cache file if you give it the
  2032. # --recheck option to rerun configure.
  2033. #
  2034. EOF
  2035. # Ultrix sh set writes to stderr and can't be redirected directly,
  2036. # and sets the high bit in the cache file unless we assign to the vars.
  2037. (set) 2>&1 |
  2038.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2039.   >> confcache
  2040. if cmp -s $cache_file confcache; then
  2041.   :
  2042. else
  2043.   if test -w $cache_file; then
  2044.     echo "updating cache $cache_file"
  2045.     cat confcache > $cache_file
  2046.   else
  2047.     echo "not updating unwritable cache $cache_file"
  2048.   fi
  2049. fi
  2050. rm -f confcache
  2051.  
  2052. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2053.  
  2054. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2055. # Let make expand exec_prefix.
  2056. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2057.  
  2058. # Any assignment to VPATH causes Sun make to only execute
  2059. # the first set of double-colon rules, so remove it if not needed.
  2060. # If there is a colon in the path, we need to keep it.
  2061. if test "x$srcdir" = x.; then
  2062.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2063. fi
  2064.  
  2065. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2066.  
  2067. DEFS=-DHAVE_CONFIG_H
  2068.  
  2069. # Without the "./", some shells look in PATH for config.status.
  2070. : ${CONFIG_STATUS=./config.status}
  2071.  
  2072. echo creating $CONFIG_STATUS
  2073. # Some systems, like AmigaOS, won't allow you to remove a script that is
  2074. # being executed, so just move it out of the way instead.
  2075. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2076. cat > $CONFIG_STATUS <<EOF
  2077. #! /bin/sh
  2078. # Generated automatically by configure.
  2079. # Run this file to recreate the current configuration.
  2080. # This directory was configured as follows,
  2081. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2082. #
  2083. # $0 $ac_configure_args
  2084. #
  2085. # Compiler output produced by configure, useful for debugging
  2086. # configure, is in ./config.log if it exists.
  2087.  
  2088. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2089. for ac_option
  2090. do
  2091.   case "\$ac_option" in
  2092.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2093.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2094.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2095.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2096.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2097.     exit 0 ;;
  2098.   -help | --help | --hel | --he | --h)
  2099.     echo "\$ac_cs_usage"; exit 0 ;;
  2100.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2101.   esac
  2102. done
  2103.  
  2104. ac_given_srcdir=$srcdir
  2105. ac_given_INSTALL="$INSTALL"
  2106.  
  2107. trap 'rm -fr `echo "Makefile defines.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2108. EOF
  2109. cat >> $CONFIG_STATUS <<EOF
  2110.  
  2111. # Protect against being on the right side of a sed subst in config.status.
  2112. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2113.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2114. $ac_vpsub
  2115. $extrasub
  2116. s%@CFLAGS@%$CFLAGS%g
  2117. s%@CPPFLAGS@%$CPPFLAGS%g
  2118. s%@CXXFLAGS@%$CXXFLAGS%g
  2119. s%@DEFS@%$DEFS%g
  2120. s%@LDFLAGS@%$LDFLAGS%g
  2121. s%@LIBS@%$LIBS%g
  2122. s%@exec_prefix@%$exec_prefix%g
  2123. s%@prefix@%$prefix%g
  2124. s%@program_transform_name@%$program_transform_name%g
  2125. s%@bindir@%$bindir%g
  2126. s%@sbindir@%$sbindir%g
  2127. s%@libexecdir@%$libexecdir%g
  2128. s%@datadir@%$datadir%g
  2129. s%@sysconfdir@%$sysconfdir%g
  2130. s%@sharedstatedir@%$sharedstatedir%g
  2131. s%@localstatedir@%$localstatedir%g
  2132. s%@libdir@%$libdir%g
  2133. s%@includedir@%$includedir%g
  2134. s%@oldincludedir@%$oldincludedir%g
  2135. s%@infodir@%$infodir%g
  2136. s%@guidedir@%$guidedir%g
  2137. s%@psdir@%$psdir%g
  2138. s%@dvidir@%$dvidir%g
  2139. s%@mandir@%$mandir%g
  2140. s%@CC@%$CC%g
  2141. s%@CPP@%$CPP%g
  2142. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2143. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2144. s%@REGEX_O@%$REGEX_O%g
  2145.  
  2146. CEOF
  2147. EOF
  2148. cat >> $CONFIG_STATUS <<EOF
  2149.  
  2150. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2151. EOF
  2152. cat >> $CONFIG_STATUS <<\EOF
  2153. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2154.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2155.   case "$ac_file" in
  2156.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2157.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2158.   *) ac_file_in="${ac_file}.in" ;;
  2159.   esac
  2160.  
  2161.   # Adjust relative srcdir, etc. for subdirectories.
  2162.  
  2163.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2164.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2165.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2166.     # The file is in a subdirectory.
  2167.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2168.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2169.     # A "../" for each directory in $ac_dir_suffix.
  2170.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2171.   else
  2172.     ac_dir_suffix= ac_dots=
  2173.   fi
  2174.  
  2175.   case "$ac_given_srcdir" in
  2176.   .)  srcdir=.
  2177.       if test -z "$ac_dots"; then top_srcdir=.
  2178.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2179.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2180.   *) # Relative path.
  2181.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2182.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2183.   esac
  2184.  
  2185.   case "$ac_given_INSTALL" in
  2186.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2187.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2188.   esac
  2189.   echo creating "$ac_file"
  2190.   rm -f "$ac_file"
  2191.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2192.   case "$ac_file" in
  2193.   *Makefile*) ac_comsub="1i\\
  2194. # $configure_input" ;;
  2195.   *) ac_comsub= ;;
  2196.   esac
  2197.   sed -e "$ac_comsub
  2198. s%@configure_input@%$configure_input%g
  2199. s%@srcdir@%$srcdir%g
  2200. s%@top_srcdir@%$top_srcdir%g
  2201. s%@INSTALL@%$INSTALL%g
  2202. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2203. fi; done
  2204. rm -f conftest.subs
  2205.  
  2206. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2207. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2208. #
  2209. # ac_d sets the value in "#define NAME VALUE" lines.
  2210. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2211. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2212. ac_dC='\3'
  2213. ac_dD='%g'
  2214. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2215. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2216. ac_uB='\([     ]\)%\1#\2define\3'
  2217. ac_uC=' '
  2218. ac_uD='\4%g'
  2219. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2220. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2221. ac_eB='$%\1#\2define\3'
  2222. ac_eC=' '
  2223. ac_eD='%g'
  2224.  
  2225. CONFIG_HEADERS=${CONFIG_HEADERS-"defines.h"}
  2226. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2227.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2228.   case "$ac_file" in
  2229.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2230.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2231.   *) ac_file_in="${ac_file}.in" ;;
  2232.   esac
  2233.  
  2234.   echo creating $ac_file
  2235.  
  2236.   rm -f conftest.frag conftest.in conftest.out
  2237.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2238.  
  2239. EOF
  2240.  
  2241. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2242. # the proper values into config.h.in to produce config.h.  And first:
  2243. # Protect against being on the right side of a sed subst in config.status.
  2244. # Protect against being in an unquoted here document in config.status.
  2245. rm -f conftest.vals
  2246. cat > conftest.hdr <<\EOF
  2247. s/[\\&%]/\\&/g
  2248. s%[\\$`]%\\&%g
  2249. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2250. s%ac_d%ac_u%gp
  2251. s%ac_u%ac_e%gp
  2252. EOF
  2253. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2254. rm -f conftest.hdr
  2255.  
  2256. # This sed command replaces #undef with comments.  This is necessary, for
  2257. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2258. # on some systems where configure will not decide to define it.
  2259. cat >> conftest.vals <<\EOF
  2260. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2261. EOF
  2262.  
  2263. # Break up conftest.vals because some shells have a limit on
  2264. # the size of here documents, and old seds have small limits too.
  2265. # Maximum number of lines to put in a single here document.
  2266. ac_max_here_lines=12
  2267.  
  2268. rm -f conftest.tail
  2269. while :
  2270. do
  2271.   ac_lines=`grep -c . conftest.vals`
  2272.   # grep -c gives empty output for an empty file on some AIX systems.
  2273.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2274.   # Write a limited-size here document to conftest.frag.
  2275.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2276.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2277.   echo 'CEOF
  2278.   sed -f conftest.frag conftest.in > conftest.out
  2279.   rm -f conftest.in
  2280.   mv conftest.out conftest.in
  2281. ' >> $CONFIG_STATUS
  2282.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2283.   rm -f conftest.vals
  2284.   mv conftest.tail conftest.vals
  2285. done
  2286. rm -f conftest.vals
  2287.  
  2288. cat >> $CONFIG_STATUS <<\EOF
  2289.   rm -f conftest.frag conftest.h
  2290.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2291.   cat conftest.in >> conftest.h
  2292.   rm -f conftest.in
  2293.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2294.     echo "$ac_file is unchanged"
  2295.     rm -f conftest.h
  2296.   else
  2297.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2298.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2299.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2300.       # The file is in a subdirectory.
  2301.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2302.     fi
  2303.     rm -f $ac_file
  2304.     mv conftest.h $ac_file
  2305.   fi
  2306. fi; done
  2307.  
  2308.  
  2309.  
  2310. exit 0
  2311. EOF
  2312. chmod +x $CONFIG_STATUS
  2313. rm -f CONFIG.STATUS.old
  2314. rm -fr confdefs* $ac_clean_files
  2315. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2316.  
  2317.