home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / cvs-1.8.7-src.tgz / tar.out / fsf / cvs / configure < prev    next >
Text File  |  1996-10-01  |  92KB  |  3,289 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. ac_help="$ac_help
  15.   --with-krb4=value       set default \$(KRB4) from value"
  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. bindir='${exec_prefix}/bin'
  39. sbindir='${exec_prefix}/sbin'
  40. libexecdir='${exec_prefix}/libexec'
  41. datadir='${prefix}/share'
  42. sysconfdir='${prefix}/etc'
  43. sharedstatedir='${prefix}/com'
  44. localstatedir='${prefix}/var'
  45. libdir='${exec_prefix}/lib'
  46. includedir='${prefix}/include'
  47. oldincludedir='/usr/include'
  48. infodir='${prefix}/info'
  49. guidedir='${prefix}/guide'
  50. psdir='${prefix}/ps'
  51. dvidir='${prefix}/dvi'
  52. mandir='${prefix}/man'
  53.  
  54. # Initialize some other variables.
  55. subdirs=
  56. MFLAGS= MAKEFLAGS=
  57.  
  58. ac_prev=
  59. for ac_option
  60. do
  61.  
  62.   # If the previous option needs an argument, assign it.
  63.   if test -n "$ac_prev"; then
  64.     eval "$ac_prev=\$ac_option"
  65.     ac_prev=
  66.     continue
  67.   fi
  68.  
  69.   case "$ac_option" in
  70.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  71.   *) ac_optarg= ;;
  72.   esac
  73.  
  74.   # Accept the important Cygnus configure options, so we can diagnose typos.
  75.  
  76.   case "$ac_option" in
  77.  
  78.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  79.     ac_prev=bindir ;;
  80.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  81.     bindir="$ac_optarg" ;;
  82.  
  83.   -build | --build | --buil | --bui | --bu)
  84.     ac_prev=build ;;
  85.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  86.     build="$ac_optarg" ;;
  87.  
  88.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  89.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  90.     ac_prev=cache_file ;;
  91.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  92.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  93.     cache_file="$ac_optarg" ;;
  94.  
  95.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  96.     ac_prev=datadir ;;
  97.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  98.   | --da=*)
  99.     datadir="$ac_optarg" ;;
  100.  
  101.   -disable-* | --disable-*)
  102.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  103.     # Reject names that are not valid shell variable names.
  104.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  105.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  106.     fi
  107.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  108.     eval "enable_${ac_feature}=no" ;;
  109.  
  110.   -enable-* | --enable-*)
  111.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  112.     # Reject names that are not valid shell variable names.
  113.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  114.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  115.     fi
  116.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  117.     case "$ac_option" in
  118.       *=*) ;;
  119.       *) ac_optarg=yes ;;
  120.     esac
  121.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  122.  
  123.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  124.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  125.   | --exec | --exe | --ex)
  126.     ac_prev=exec_prefix ;;
  127.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  128.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  129.   | --exec=* | --exe=* | --ex=*)
  130.     exec_prefix="$ac_optarg" ;;
  131.  
  132.   -gas | --gas | --ga | --g)
  133.     # Obsolete; use --with-gas.
  134.     with_gas=yes ;;
  135.  
  136.   -help | --help | --hel | --he)
  137.     # Omit some internal or obsolete options to make the list less imposing.
  138.     # This message is too long to be a string in the A/UX 3.1 sh.
  139.     cat << EOF
  140. Usage: configure [options] [host]
  141. Options: [defaults in brackets after descriptions]
  142. Configuration:
  143.   --cache-file=FILE       cache test results in FILE
  144.   --help                  print this message
  145.   --no-create             do not create output files
  146.   --quiet, --silent       do not print \`checking...' messages
  147.   --version               print the version of autoconf that created configure
  148. Directory and file names:
  149.   --prefix=PREFIX         install architecture-independent files in PREFIX
  150.                           [$ac_default_prefix]
  151.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  152.                           [same as prefix]
  153.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  154.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  155.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  156.   --datadir=DIR           read-only architecture-independent data in DIR
  157.                           [PREFIX/share]
  158.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  159.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  160.                           [PREFIX/com]
  161.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  162.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  163.   --includedir=DIR        C header files in DIR [PREFIX/include]
  164.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  165.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  166.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  167.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  168.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  169.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  170.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  171.   --program-prefix=PREFIX prepend PREFIX to installed program names
  172.   --program-suffix=SUFFIX append SUFFIX to installed program names
  173.   --program-transform-name=PROGRAM
  174.                           run sed PROGRAM on installed program names
  175. EOF
  176.     cat << EOF
  177. Host type:
  178.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  179.   --host=HOST             configure for HOST [guessed]
  180.   --target=TARGET         configure for TARGET [TARGET=HOST]
  181. Features and packages:
  182.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  183.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  184.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  185.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  186.   --x-includes=DIR        X include files are in DIR
  187.   --x-libraries=DIR       X library files are in DIR
  188. EOF
  189.     if test -n "$ac_help"; then
  190.       echo "--enable and --with options recognized:$ac_help"
  191.     fi
  192.     exit 0 ;;
  193.  
  194.   -host | --host | --hos | --ho)
  195.     ac_prev=host ;;
  196.   -host=* | --host=* | --hos=* | --ho=*)
  197.     host="$ac_optarg" ;;
  198.  
  199.   -includedir | --includedir | --includedi | --included | --include \
  200.   | --includ | --inclu | --incl | --inc)
  201.     ac_prev=includedir ;;
  202.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  203.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  204.     includedir="$ac_optarg" ;;
  205.  
  206.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  207.     ac_prev=infodir ;;
  208.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  209.     infodir="$ac_optarg" ;;
  210.  
  211.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  212.    ac_prev=guidedir ;;
  213.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  214.  
  215.  -psdir | --psdir | --psdi | --psd | --ps)
  216.    ac_prev=psdir ;;
  217.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  218.  
  219.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  220.    ac_prev=dvidir ;;
  221.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  222.  
  223.   -libdir | --libdir | --libdi | --libd)
  224.     ac_prev=libdir ;;
  225.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  226.     libdir="$ac_optarg" ;;
  227.  
  228.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  229.   | --libexe | --libex | --libe)
  230.     ac_prev=libexecdir ;;
  231.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  232.   | --libexe=* | --libex=* | --libe=*)
  233.     libexecdir="$ac_optarg" ;;
  234.  
  235.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  236.   | --localstate | --localstat | --localsta | --localst \
  237.   | --locals | --local | --loca | --loc | --lo)
  238.     ac_prev=localstatedir ;;
  239.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  240.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  241.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  242.     localstatedir="$ac_optarg" ;;
  243.  
  244.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  245.     ac_prev=mandir ;;
  246.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  247.     mandir="$ac_optarg" ;;
  248.  
  249.   -nfp | --nfp | --nf)
  250.     # Obsolete; use --without-fp.
  251.     with_fp=no ;;
  252.  
  253.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  254.   | --no-cr | --no-c)
  255.     no_create=yes ;;
  256.  
  257.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  258.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  259.     no_recursion=yes ;;
  260.  
  261.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  262.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  263.   | --oldin | --oldi | --old | --ol | --o)
  264.     ac_prev=oldincludedir ;;
  265.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  266.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  267.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  268.     oldincludedir="$ac_optarg" ;;
  269.  
  270.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  271.     ac_prev=prefix ;;
  272.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  273.     prefix="$ac_optarg" ;;
  274.  
  275.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  276.   | --program-pre | --program-pr | --program-p)
  277.     ac_prev=program_prefix ;;
  278.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  279.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  280.     program_prefix="$ac_optarg" ;;
  281.  
  282.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  283.   | --program-suf | --program-su | --program-s)
  284.     ac_prev=program_suffix ;;
  285.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  286.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  287.     program_suffix="$ac_optarg" ;;
  288.  
  289.   -program-transform-name | --program-transform-name \
  290.   | --program-transform-nam | --program-transform-na \
  291.   | --program-transform-n | --program-transform- \
  292.   | --program-transform | --program-transfor \
  293.   | --program-transfo | --program-transf \
  294.   | --program-trans | --program-tran \
  295.   | --progr-tra | --program-tr | --program-t)
  296.     ac_prev=program_transform_name ;;
  297.   -program-transform-name=* | --program-transform-name=* \
  298.   | --program-transform-nam=* | --program-transform-na=* \
  299.   | --program-transform-n=* | --program-transform-=* \
  300.   | --program-transform=* | --program-transfor=* \
  301.   | --program-transfo=* | --program-transf=* \
  302.   | --program-trans=* | --program-tran=* \
  303.   | --progr-tra=* | --program-tr=* | --program-t=*)
  304.     program_transform_name="$ac_optarg" ;;
  305.  
  306.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  307.   | -silent | --silent | --silen | --sile | --sil)
  308.     silent=yes ;;
  309.  
  310.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  311.     ac_prev=sbindir ;;
  312.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  313.   | --sbi=* | --sb=*)
  314.     sbindir="$ac_optarg" ;;
  315.  
  316.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  317.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  318.   | --sharedst | --shareds | --shared | --share | --shar \
  319.   | --sha | --sh)
  320.     ac_prev=sharedstatedir ;;
  321.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  322.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  323.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  324.   | --sha=* | --sh=*)
  325.     sharedstatedir="$ac_optarg" ;;
  326.  
  327.   -site | --site | --sit)
  328.     ac_prev=site ;;
  329.   -site=* | --site=* | --sit=*)
  330.     site="$ac_optarg" ;;
  331.  
  332.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  333.     ac_prev=srcdir ;;
  334.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  335.     srcdir="$ac_optarg" ;;
  336.  
  337.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  338.   | --syscon | --sysco | --sysc | --sys | --sy)
  339.     ac_prev=sysconfdir ;;
  340.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  341.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  342.     sysconfdir="$ac_optarg" ;;
  343.  
  344.   -target | --target | --targe | --targ | --tar | --ta | --t)
  345.     ac_prev=target ;;
  346.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  347.     target="$ac_optarg" ;;
  348.  
  349.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  350.     verbose=yes ;;
  351.  
  352.   -version | --version | --versio | --versi | --vers)
  353.     echo "configure generated by autoconf version 2.10"
  354.     exit 0 ;;
  355.  
  356.   -with-* | --with-*)
  357.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  358.     # Reject names that are not valid shell variable names.
  359.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  360.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  361.     fi
  362.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  363.     case "$ac_option" in
  364.       *=*) ;;
  365.       *) ac_optarg=yes ;;
  366.     esac
  367.     eval "with_${ac_package}='$ac_optarg'" ;;
  368.  
  369.   -without-* | --without-*)
  370.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  371.     # Reject names that are not valid shell variable names.
  372.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  373.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  374.     fi
  375.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  376.     eval "with_${ac_package}=no" ;;
  377.  
  378.   --x)
  379.     # Obsolete; use --with-x.
  380.     with_x=yes ;;
  381.  
  382.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  383.   | --x-incl | --x-inc | --x-in | --x-i)
  384.     ac_prev=x_includes ;;
  385.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  386.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  387.     x_includes="$ac_optarg" ;;
  388.  
  389.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  390.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  391.     ac_prev=x_libraries ;;
  392.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  393.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  394.     x_libraries="$ac_optarg" ;;
  395.  
  396.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  397.     ;;
  398.  
  399.   *)
  400.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  401.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  402.     fi
  403.     if test "x$nonopt" != xNONE; then
  404.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  405.     fi
  406.     nonopt="$ac_option"
  407.     ;;
  408.  
  409.   esac
  410. done
  411.  
  412. if test -n "$ac_prev"; then
  413.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  414. fi
  415.  
  416. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  417.  
  418. # File descriptor usage:
  419. # 0 standard input
  420. # 1 file creation
  421. # 2 errors and warnings
  422. # 3 some systems may open it to /dev/tty
  423. # 4 used on the Kubota Titan
  424. # 6 checking for... messages and results
  425. # 5 compiler messages saved in config.log
  426. if test "$silent" = yes; then
  427.   exec 6>/dev/null
  428. else
  429.   exec 6>&1
  430. fi
  431. exec 5>./config.log
  432.  
  433. echo "\
  434. This file contains any messages produced by compilers while
  435. running configure, to aid debugging if configure makes a mistake.
  436. " 1>&5
  437.  
  438. # Strip out --no-create and --no-recursion so they do not pile up.
  439. # Also quote any args containing shell metacharacters.
  440. ac_configure_args=
  441. for ac_arg
  442. do
  443.   case "$ac_arg" in
  444.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  445.   | --no-cr | --no-c) ;;
  446.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  447.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  448.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  449.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  450.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  451.   esac
  452. done
  453.  
  454. # NLS nuisances.
  455. # Only set LANG and LC_ALL to C if already set.
  456. # These must not be set unconditionally because not all systems understand
  457. # e.g. LANG=C (notably SCO).
  458. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  459. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  460.  
  461. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  462. rm -rf conftest* confdefs.h
  463. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  464. echo > confdefs.h
  465.  
  466. # A filename unique to this package, relative to the directory that
  467. # configure is in, which we can look for to find out if srcdir is correct.
  468. ac_unique_file=src/cvs.h
  469.  
  470. # Find the source files, if location was not specified.
  471. if test -z "$srcdir"; then
  472.   ac_srcdir_defaulted=yes
  473.   # Try the directory containing this script, then its parent.
  474.   ac_prog=$0
  475.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  476.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  477.   srcdir=$ac_confdir
  478.   if test ! -r $srcdir/$ac_unique_file; then
  479.     srcdir=..
  480.   fi
  481. else
  482.   ac_srcdir_defaulted=no
  483. fi
  484. if test ! -r $srcdir/$ac_unique_file; then
  485.   if test "$ac_srcdir_defaulted" = yes; then
  486.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  487.   else
  488.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  489.   fi
  490. fi
  491. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  492.  
  493. # Prefer explicitly selected file to automatically selected ones.
  494. if test -z "$CONFIG_SITE"; then
  495.   if test "x$prefix" != xNONE; then
  496.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  497.   else
  498.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  499.   fi
  500. fi
  501. for ac_site_file in $CONFIG_SITE; do
  502.   if test -r "$ac_site_file"; then
  503.     echo "loading site script $ac_site_file"
  504.     . "$ac_site_file"
  505.   fi
  506. done
  507.  
  508. if test -r "$cache_file"; then
  509.   echo "loading cache $cache_file"
  510.   . $cache_file
  511. else
  512.   echo "creating cache $cache_file"
  513.   > $cache_file
  514. fi
  515.  
  516. ac_ext=c
  517. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  518. ac_cpp='$CPP $CPPFLAGS'
  519. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  520. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  521.  
  522. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  523.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  524.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  525.     ac_n= ac_c='
  526. ' ac_t='    '
  527.   else
  528.     ac_n=-n ac_c= ac_t=
  529.   fi
  530. else
  531.   ac_n= ac_c='\c' ac_t=
  532. fi
  533.  
  534.  
  535.  
  536.  
  537. # Extract the first word of "gcc", so it can be a program name with args.
  538. set dummy gcc; ac_word=$2
  539. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  540. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  541.   echo $ac_n "(cached) $ac_c" 1>&6
  542. else
  543.   if test -n "$CC"; then
  544.   ac_cv_prog_CC="$CC" # Let the user override the test.
  545. else
  546.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  547.   for ac_dir in $PATH; do
  548.     test -z "$ac_dir" && ac_dir=.
  549.     if test -f $ac_dir/$ac_word; then
  550.       ac_cv_prog_CC="gcc"
  551.       break
  552.     fi
  553.   done
  554.   IFS="$ac_save_ifs"
  555. fi
  556. fi
  557. CC="$ac_cv_prog_CC"
  558. if test -n "$CC"; then
  559.   echo "$ac_t""$CC" 1>&6
  560. else
  561.   echo "$ac_t""no" 1>&6
  562. fi
  563.  
  564. if test -z "$CC"; then
  565.   # Extract the first word of "cc", so it can be a program name with args.
  566. set dummy cc; ac_word=$2
  567. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  568. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  569.   echo $ac_n "(cached) $ac_c" 1>&6
  570. else
  571.   if test -n "$CC"; then
  572.   ac_cv_prog_CC="$CC" # Let the user override the test.
  573. else
  574.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  575.   ac_prog_rejected=no
  576.   for ac_dir in $PATH; do
  577.     test -z "$ac_dir" && ac_dir=.
  578.     if test -f $ac_dir/$ac_word; then
  579.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  580.         ac_prog_rejected=yes
  581.     continue
  582.       fi
  583.       ac_cv_prog_CC="cc"
  584.       break
  585.     fi
  586.   done
  587.   IFS="$ac_save_ifs"
  588. if test $ac_prog_rejected = yes; then
  589.   # We found a bogon in the path, so make sure we never use it.
  590.   set dummy $ac_cv_prog_CC
  591.   shift
  592.   if test $# -gt 0; then
  593.     # We chose a different compiler from the bogus one.
  594.     # However, it has the same basename, so the bogon will be chosen
  595.     # first if we set CC to just the basename; use the full file name.
  596.     shift
  597.     set dummy "$ac_dir/$ac_word" "$@"
  598.     shift
  599.     ac_cv_prog_CC="$@"
  600.   fi
  601. fi
  602. fi
  603. fi
  604. CC="$ac_cv_prog_CC"
  605. if test -n "$CC"; then
  606.   echo "$ac_t""$CC" 1>&6
  607. else
  608.   echo "$ac_t""no" 1>&6
  609. fi
  610.  
  611.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  612. fi
  613.  
  614. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  615. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  616.   echo $ac_n "(cached) $ac_c" 1>&6
  617. else
  618.   cat > conftest.c <<EOF
  619. #ifdef __GNUC__
  620.   yes;
  621. #endif
  622. EOF
  623. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  624.   ac_cv_prog_gcc=yes
  625. else
  626.   ac_cv_prog_gcc=no
  627. fi
  628. fi
  629.  
  630. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  631. if test $ac_cv_prog_gcc = yes; then
  632.   GCC=yes
  633.   if test "${CFLAGS+set}" != set; then
  634.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  635. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  636.   echo $ac_n "(cached) $ac_c" 1>&6
  637. else
  638.   echo 'void f(){}' > conftest.c
  639. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  640.   ac_cv_prog_gcc_g=yes
  641. else
  642.   ac_cv_prog_gcc_g=no
  643. fi
  644. rm -f conftest*
  645.  
  646. fi
  647.  
  648. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  649.     if test $ac_cv_prog_gcc_g = yes; then
  650.       CFLAGS="-g -O2"
  651.     else
  652.       CFLAGS="-O2"
  653.     fi
  654.   fi
  655. else
  656.   GCC=
  657.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  658. fi
  659.  
  660.  
  661. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  662. # On Suns, sometimes $CPP names a directory.
  663. if test -n "$CPP" && test -d "$CPP"; then
  664.   CPP=
  665. fi
  666. if test -z "$CPP"; then
  667. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  668.   echo $ac_n "(cached) $ac_c" 1>&6
  669. else
  670.     # This must be in double quotes, not single quotes, because CPP may get
  671.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  672.   CPP="${CC-cc} -E"
  673.   # On the NeXT, cc -E runs the code through the compiler's parser,
  674.   # not just through cpp.
  675.   cat > conftest.$ac_ext <<EOF
  676. #line 677 "configure"
  677. #include "confdefs.h"
  678. #include <assert.h>
  679. Syntax Error
  680. EOF
  681. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  682. { (eval echo configure:683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  683. ac_err=`grep -v '^ *+' conftest.out`
  684. if test -z "$ac_err"; then
  685.   :
  686. else
  687.   echo "$ac_err" >&5
  688.   rm -rf conftest*
  689.   CPP="${CC-cc} -E -traditional-cpp"
  690.   cat > conftest.$ac_ext <<EOF
  691. #line 692 "configure"
  692. #include "confdefs.h"
  693. #include <assert.h>
  694. Syntax Error
  695. EOF
  696. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  697. { (eval echo configure:698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  698. ac_err=`grep -v '^ *+' conftest.out`
  699. if test -z "$ac_err"; then
  700.   :
  701. else
  702.   echo "$ac_err" >&5
  703.   rm -rf conftest*
  704.   CPP=/lib/cpp
  705. fi
  706. rm -f conftest*
  707. fi
  708. rm -f conftest*
  709.   ac_cv_prog_CPP="$CPP"
  710. fi
  711.   CPP="$ac_cv_prog_CPP"
  712. else
  713.   ac_cv_prog_CPP="$CPP"
  714. fi
  715. echo "$ac_t""$CPP" 1>&6
  716.  
  717. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  718. cat > conftest.$ac_ext <<EOF
  719. #line 720 "configure"
  720. #include "confdefs.h"
  721. #ifdef _AIX
  722.   yes
  723. #endif
  724.  
  725. EOF
  726. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  727.   egrep "yes" >/dev/null 2>&1; then
  728.   rm -rf conftest*
  729.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  730. #define _ALL_SOURCE 1
  731. EOF
  732.  
  733. else
  734.   rm -rf conftest*
  735.   echo "$ac_t""no" 1>&6
  736. fi
  737. rm -f conftest*
  738.  
  739.  
  740. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  741. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  742. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  743.   echo $ac_n "(cached) $ac_c" 1>&6
  744. else
  745.   cat > conftest.$ac_ext <<EOF
  746. #line 747 "configure"
  747. #include "confdefs.h"
  748. #include <minix/config.h>
  749. EOF
  750. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  751. { (eval echo configure:752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  752. ac_err=`grep -v '^ *+' conftest.out`
  753. if test -z "$ac_err"; then
  754.   rm -rf conftest*
  755.   eval "ac_cv_header_$ac_safe=yes"
  756. else
  757.   echo "$ac_err" >&5
  758.   rm -rf conftest*
  759.   eval "ac_cv_header_$ac_safe=no"
  760. fi
  761. rm -f conftest*
  762. fi
  763. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  764.   echo "$ac_t""yes" 1>&6
  765.   MINIX=yes
  766. else
  767.   echo "$ac_t""no" 1>&6
  768. MINIX=
  769. fi
  770.  
  771. if test "$MINIX" = yes; then
  772.   cat >> confdefs.h <<\EOF
  773. #define _POSIX_SOURCE 1
  774. EOF
  775.  
  776.   cat >> confdefs.h <<\EOF
  777. #define _POSIX_1_SOURCE 2
  778. EOF
  779.  
  780.   cat >> confdefs.h <<\EOF
  781. #define _MINIX 1
  782. EOF
  783.  
  784. fi
  785.  
  786. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  787. if test -d /etc/conf/kconfig.d &&
  788.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  789. then
  790.   echo "$ac_t""yes" 1>&6
  791.   ISC=yes # If later tests want to check for ISC.
  792.   cat >> confdefs.h <<\EOF
  793. #define _POSIX_SOURCE 1
  794. EOF
  795.  
  796.   if test "$GCC" = yes; then
  797.     CC="$CC -posix"
  798.   else
  799.     CC="$CC -Xp"
  800.   fi
  801. else
  802.   echo "$ac_t""no" 1>&6
  803.   ISC=
  804. fi
  805.  
  806. if test "$ISC" = yes; then
  807. CFLAGS="$CFLAGS -D_SYSV3"
  808. fi
  809.  
  810. if test "x$prefix" = xNONE; then
  811. echo $ac_n "checking for prefix by ""... $ac_c" 1>&6
  812. # Extract the first word of "cvs", so it can be a program name with args.
  813. set dummy cvs; ac_word=$2
  814. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  815. if eval "test \"`echo '$''{'ac_cv_path_CVS'+set}'`\" = set"; then
  816.   echo $ac_n "(cached) $ac_c" 1>&6
  817. else
  818.   case "$CVS" in
  819.   /*)
  820.   ac_cv_path_CVS="$CVS" # Let the user override the test with a path.
  821.   ;;
  822.   *)
  823.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  824.   for ac_dir in $PATH; do
  825.     test -z "$ac_dir" && ac_dir=.
  826.     if test -f $ac_dir/$ac_word; then
  827.       ac_cv_path_CVS="$ac_dir/$ac_word"
  828.       break
  829.     fi
  830.   done
  831.   IFS="$ac_save_ifs"
  832.   ;;
  833. esac
  834. fi
  835. CVS="$ac_cv_path_CVS"
  836. if test -n "$CVS"; then
  837.   echo "$ac_t""$CVS" 1>&6
  838. else
  839.   echo "$ac_t""no" 1>&6
  840. fi
  841.  
  842.   if test -n "$ac_cv_path_CVS"; then
  843.     prefix=`echo $ac_cv_path_CVS|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
  844.   fi
  845. fi
  846.  
  847.  
  848. # If we cannot run a trivial program, we must be cross compiling.
  849. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  850. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  851.   echo $ac_n "(cached) $ac_c" 1>&6
  852. else
  853.   if test "$cross_compiling" = yes; then
  854.   ac_cv_c_cross=yes
  855. else
  856. cat > conftest.$ac_ext <<EOF
  857. #line 858 "configure"
  858. #include "confdefs.h"
  859. main(){return(0);}
  860. EOF
  861. { (eval echo configure:862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  862. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  863.   ac_cv_c_cross=no
  864. else
  865.   ac_cv_c_cross=yes
  866. fi
  867. fi
  868. rm -fr conftest*
  869. fi
  870.  
  871. echo "$ac_t""$ac_cv_c_cross" 1>&6
  872. cross_compiling=$ac_cv_c_cross
  873.  
  874.  
  875. echo $ac_n "checking for working const""... $ac_c" 1>&6
  876. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  877.   echo $ac_n "(cached) $ac_c" 1>&6
  878. else
  879.   cat > conftest.$ac_ext <<EOF
  880. #line 881 "configure"
  881. #include "confdefs.h"
  882.  
  883. int main() { return 0; }
  884. int t() {
  885.  
  886. /* Ultrix mips cc rejects this.  */
  887. typedef int charset[2]; const charset x;
  888. /* SunOS 4.1.1 cc rejects this.  */
  889. char const *const *ccp;
  890. char **p;
  891. /* NEC SVR4.0.2 mips cc rejects this.  */
  892. struct point {int x, y;};
  893. static struct point const zero = {0,0};
  894. /* AIX XL C 1.02.0.0 rejects this.
  895.    It does not let you subtract one const X* pointer from another in an arm
  896.    of an if-expression whose if-part is not a constant expression */
  897. const char *g = "string";
  898. ccp = &g + (g ? g-g : 0);
  899. /* HPUX 7.0 cc rejects these. */
  900. ++ccp;
  901. p = (char**) ccp;
  902. ccp = (char const *const *) p;
  903. { /* SCO 3.2v4 cc rejects this.  */
  904.   char *t;
  905.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  906.  
  907.   *t++ = 0;
  908. }
  909. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  910.   int x[] = {25, 17};
  911.   const int *foo = &x[0];
  912.   ++foo;
  913. }
  914. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  915.   typedef const int *iptr;
  916.   iptr p = 0;
  917.   ++p;
  918. }
  919. { /* AIX XL C 1.02.0.0 rejects this saying
  920.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  921.   struct s { int j; const int *ap[3]; };
  922.   struct s *b; b->j = 5;
  923. }
  924. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  925.   const int foo = 10;
  926. }
  927.  
  928. ; return 0; }
  929. EOF
  930. if { (eval echo configure:931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  931.   rm -rf conftest*
  932.   ac_cv_c_const=yes
  933. else
  934.   rm -rf conftest*
  935.   ac_cv_c_const=no
  936. fi
  937. rm -f conftest*
  938.  
  939. fi
  940.  
  941. echo "$ac_t""$ac_cv_c_const" 1>&6
  942. if test $ac_cv_c_const = no; then
  943.   cat >> confdefs.h <<\EOF
  944. #define const 
  945. EOF
  946.  
  947. fi
  948.  
  949.  
  950. ac_aux_dir=
  951. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  952.   if test -f $ac_dir/install-sh; then
  953.     ac_aux_dir=$ac_dir
  954.     ac_install_sh="$ac_aux_dir/install-sh -c"
  955.     break
  956.   elif test -f $ac_dir/install.sh; then
  957.     ac_aux_dir=$ac_dir
  958.     ac_install_sh="$ac_aux_dir/install.sh -c"
  959.     break
  960.   fi
  961. done
  962. if test -z "$ac_aux_dir"; then
  963.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  964. fi
  965. ac_config_guess=$ac_aux_dir/config.guess
  966. ac_config_sub=$ac_aux_dir/config.sub
  967. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  968.  
  969. # Find a good install program.  We prefer a C program (faster),
  970. # so one script is as good as another.  But avoid the broken or
  971. # incompatible versions:
  972. # SysV /etc/install, /usr/sbin/install
  973. # SunOS /usr/etc/install
  974. # IRIX /sbin/install
  975. # AIX /bin/install
  976. # AmigaOS /c/install
  977. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  978. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  979. # ./install, which can be erroneously created by make from ./install.sh.
  980. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  981. if test -z "$INSTALL"; then
  982. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  983.   echo $ac_n "(cached) $ac_c" 1>&6
  984. else
  985.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  986.   for ac_dir in $PATH; do
  987.     # Account for people who put trailing slashes in PATH elements.
  988.     case "$ac_dir/" in
  989.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  990.     *)
  991.       # OSF1 and SCO ODT 3.0 have their own names for install.
  992.       for ac_prog in ginstall installbsd scoinst install; do
  993.         if test -f $ac_dir/$ac_prog; then
  994.       if test $ac_prog = install &&
  995.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  996.         # AIX install.  It has an incompatible calling convention.
  997.         # OSF/1 installbsd also uses dspmsg, but is usable.
  998.         :
  999.       else
  1000.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1001.         break 2
  1002.       fi
  1003.     fi
  1004.       done
  1005.       ;;
  1006.     esac
  1007.   done
  1008.   IFS="$ac_save_ifs"
  1009.  
  1010. fi
  1011.   if test "${ac_cv_path_install+set}" = set; then
  1012.     INSTALL="$ac_cv_path_install"
  1013.   else
  1014.     # As a last resort, use the slow shell script.  We don't cache a
  1015.     # path for INSTALL within a source directory, because that will
  1016.     # break other packages using the cache if that directory is
  1017.     # removed, or if the path is relative.
  1018.     INSTALL="$ac_install_sh"
  1019.   fi
  1020. fi
  1021. echo "$ac_t""$INSTALL" 1>&6
  1022.  
  1023. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1024. # It thinks the first close brace ends the variable substitution.
  1025. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1026.  
  1027. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1028.  
  1029.  
  1030. # Make sure we can run config.sub.
  1031. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  1032. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1033. fi
  1034.  
  1035. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1036.  
  1037. host_alias=$host
  1038. case "$host_alias" in
  1039. NONE)
  1040.   case $nonopt in
  1041.   NONE)
  1042.     if host_alias=`$ac_config_guess`; then :
  1043.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1044.     fi ;;
  1045.   *) host_alias=$nonopt ;;
  1046.   esac ;;
  1047. esac
  1048.  
  1049. host=`$ac_config_sub $host_alias`
  1050. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  1051. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  1052. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  1053. echo "$ac_t""$host" 1>&6
  1054.  
  1055. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1056.  
  1057. build_alias=$build
  1058. case "$build_alias" in
  1059. NONE)
  1060.   case $nonopt in
  1061.   NONE) build_alias=$host_alias ;;
  1062.   *) build_alias=$nonopt ;;
  1063.   esac ;;
  1064. esac
  1065.  
  1066. build=`$ac_config_sub $build_alias`
  1067. build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  1068. build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  1069. build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  1070. echo "$ac_t""$build" 1>&6
  1071.  
  1072. if test $host != $build; then
  1073.   ac_tool_prefix=${host_alias}-
  1074. else
  1075.   ac_tool_prefix=
  1076. fi
  1077.  
  1078. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1079. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1080. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1081. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1082.   echo $ac_n "(cached) $ac_c" 1>&6
  1083. else
  1084.   if test -n "$RANLIB"; then
  1085.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1086. else
  1087.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1088.   for ac_dir in $PATH; do
  1089.     test -z "$ac_dir" && ac_dir=.
  1090.     if test -f $ac_dir/$ac_word; then
  1091.       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1092.       break
  1093.     fi
  1094.   done
  1095.   IFS="$ac_save_ifs"
  1096. fi
  1097. fi
  1098. RANLIB="$ac_cv_prog_RANLIB"
  1099. if test -n "$RANLIB"; then
  1100.   echo "$ac_t""$RANLIB" 1>&6
  1101. else
  1102.   echo "$ac_t""no" 1>&6
  1103. fi
  1104.  
  1105.  
  1106. if test -z "$ac_cv_prog_RANLIB"; then
  1107. if test -n "$ac_tool_prefix"; then
  1108.   # Extract the first word of "ranlib", so it can be a program name with args.
  1109. set dummy ranlib; ac_word=$2
  1110. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1111. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1112.   echo $ac_n "(cached) $ac_c" 1>&6
  1113. else
  1114.   if test -n "$RANLIB"; then
  1115.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1116. else
  1117.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1118.   for ac_dir in $PATH; do
  1119.     test -z "$ac_dir" && ac_dir=.
  1120.     if test -f $ac_dir/$ac_word; then
  1121.       ac_cv_prog_RANLIB="ranlib"
  1122.       break
  1123.     fi
  1124.   done
  1125.   IFS="$ac_save_ifs"
  1126.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1127. fi
  1128. fi
  1129. RANLIB="$ac_cv_prog_RANLIB"
  1130. if test -n "$RANLIB"; then
  1131.   echo "$ac_t""$RANLIB" 1>&6
  1132. else
  1133.   echo "$ac_t""no" 1>&6
  1134. fi
  1135.  
  1136. else
  1137.   RANLIB=":"
  1138. fi
  1139. fi
  1140.  
  1141. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  1142. set dummy ${ac_tool_prefix}ar; ac_word=$2
  1143. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1144. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  1145.   echo $ac_n "(cached) $ac_c" 1>&6
  1146. else
  1147.   if test -n "$AR"; then
  1148.   ac_cv_prog_AR="$AR" # Let the user override the test.
  1149. else
  1150.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1151.   for ac_dir in $PATH; do
  1152.     test -z "$ac_dir" && ac_dir=.
  1153.     if test -f $ac_dir/$ac_word; then
  1154.       ac_cv_prog_AR="${ac_tool_prefix}ar"
  1155.       break
  1156.     fi
  1157.   done
  1158.   IFS="$ac_save_ifs"
  1159.   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  1160. fi
  1161. fi
  1162. AR="$ac_cv_prog_AR"
  1163. if test -n "$AR"; then
  1164.   echo "$ac_t""$AR" 1>&6
  1165. else
  1166.   echo "$ac_t""no" 1>&6
  1167. fi
  1168.  
  1169.  
  1170.  
  1171. for ac_prog in 'bison -y' byacc
  1172. do
  1173. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1174. set dummy $ac_prog; ac_word=$2
  1175. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1176. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  1177.   echo $ac_n "(cached) $ac_c" 1>&6
  1178. else
  1179.   if test -n "$YACC"; then
  1180.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1181. else
  1182.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1183.   for ac_dir in $PATH; do
  1184.     test -z "$ac_dir" && ac_dir=.
  1185.     if test -f $ac_dir/$ac_word; then
  1186.       ac_cv_prog_YACC="$ac_prog"
  1187.       break
  1188.     fi
  1189.   done
  1190.   IFS="$ac_save_ifs"
  1191. fi
  1192. fi
  1193. YACC="$ac_cv_prog_YACC"
  1194. if test -n "$YACC"; then
  1195.   echo "$ac_t""$YACC" 1>&6
  1196. else
  1197.   echo "$ac_t""no" 1>&6
  1198. fi
  1199.  
  1200. test -n "$YACC" && break
  1201. done
  1202. test -n "$YACC" || YACC="yacc"
  1203.  
  1204. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1205. set dummy ${MAKE-make}; ac_make=$2
  1206. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1207.   echo $ac_n "(cached) $ac_c" 1>&6
  1208. else
  1209.   cat > conftestmake <<\EOF
  1210. all:
  1211.     @echo 'ac_maketemp="${MAKE}"'
  1212. EOF
  1213. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1214. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1215. if test -n "$ac_maketemp"; then
  1216.   eval ac_cv_prog_make_${ac_make}_set=yes
  1217. else
  1218.   eval ac_cv_prog_make_${ac_make}_set=no
  1219. fi
  1220. rm -f conftestmake
  1221. fi
  1222. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1223.   echo "$ac_t""yes" 1>&6
  1224.   SET_MAKE=
  1225. else
  1226.   echo "$ac_t""no" 1>&6
  1227.   SET_MAKE="MAKE=${MAKE-make}"
  1228. fi
  1229.  
  1230.  
  1231. # Extract the first word of "perl", so it can be a program name with args.
  1232. set dummy perl; ac_word=$2
  1233. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1234. if eval "test \"`echo '$''{'ac_cv_path_perl_path'+set}'`\" = set"; then
  1235.   echo $ac_n "(cached) $ac_c" 1>&6
  1236. else
  1237.   case "$perl_path" in
  1238.   /*)
  1239.   ac_cv_path_perl_path="$perl_path" # Let the user override the test with a path.
  1240.   ;;
  1241.   *)
  1242.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1243.   for ac_dir in $PATH; do
  1244.     test -z "$ac_dir" && ac_dir=.
  1245.     if test -f $ac_dir/$ac_word; then
  1246.       ac_cv_path_perl_path="$ac_dir/$ac_word"
  1247.       break
  1248.     fi
  1249.   done
  1250.   IFS="$ac_save_ifs"
  1251.   test -z "$ac_cv_path_perl_path" && ac_cv_path_perl_path="no"
  1252.   ;;
  1253. esac
  1254. fi
  1255. perl_path="$ac_cv_path_perl_path"
  1256. if test -n "$perl_path"; then
  1257.   echo "$ac_t""$perl_path" 1>&6
  1258. else
  1259.   echo "$ac_t""no" 1>&6
  1260. fi
  1261.  
  1262. # Extract the first word of "csh", so it can be a program name with args.
  1263. set dummy csh; ac_word=$2
  1264. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1265. if eval "test \"`echo '$''{'ac_cv_path_csh_path'+set}'`\" = set"; then
  1266.   echo $ac_n "(cached) $ac_c" 1>&6
  1267. else
  1268.   case "$csh_path" in
  1269.   /*)
  1270.   ac_cv_path_csh_path="$csh_path" # Let the user override the test with a path.
  1271.   ;;
  1272.   *)
  1273.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1274.   for ac_dir in $PATH; do
  1275.     test -z "$ac_dir" && ac_dir=.
  1276.     if test -f $ac_dir/$ac_word; then
  1277.       ac_cv_path_csh_path="$ac_dir/$ac_word"
  1278.       break
  1279.     fi
  1280.   done
  1281.   IFS="$ac_save_ifs"
  1282.   test -z "$ac_cv_path_csh_path" && ac_cv_path_csh_path="no"
  1283.   ;;
  1284. esac
  1285. fi
  1286. csh_path="$ac_cv_path_csh_path"
  1287. if test -n "$csh_path"; then
  1288.   echo "$ac_t""$csh_path" 1>&6
  1289. else
  1290.   echo "$ac_t""no" 1>&6
  1291. fi
  1292.  
  1293.  
  1294. # Pull the hash mark out of the macro call to avoid m4 problems.
  1295. ac_msg="whether #! works in shell scripts"
  1296. echo $ac_n "checking $ac_msg""... $ac_c" 1>&6
  1297. if eval "test \"`echo '$''{'ac_cv_sys_interpreter'+set}'`\" = set"; then
  1298.   echo $ac_n "(cached) $ac_c" 1>&6
  1299. else
  1300.   echo '#! /bin/cat
  1301. exit 69
  1302. ' > conftest
  1303. chmod u+x conftest
  1304. (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
  1305. if test $? -ne 69; then
  1306.    ac_cv_sys_interpreter=yes
  1307. else
  1308.    ac_cv_sys_interpreter=no
  1309. fi
  1310. rm -f conftest
  1311. fi
  1312.  
  1313. echo "$ac_t""$ac_cv_sys_interpreter" 1>&6
  1314.  
  1315. if test X"$ac_cv_sys_interpreter" != X"yes" ; then
  1316.   # silly trick to avoid problems in AC macros...
  1317.   ac_msg='perl scripts using #! may not be invoked properly'
  1318.   echo "configure: warning: $ac_msg" 1>&2
  1319. fi
  1320.  
  1321. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1322. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1323.   echo $ac_n "(cached) $ac_c" 1>&6
  1324. else
  1325.   cat > conftest.$ac_ext <<EOF
  1326. #line 1327 "configure"
  1327. #include "confdefs.h"
  1328. #include <stdlib.h>
  1329. #include <stdarg.h>
  1330. #include <string.h>
  1331. #include <float.h>
  1332. EOF
  1333. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1334. { (eval echo configure:1335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1335. ac_err=`grep -v '^ *+' conftest.out`
  1336. if test -z "$ac_err"; then
  1337.   rm -rf conftest*
  1338.   ac_cv_header_stdc=yes
  1339. else
  1340.   echo "$ac_err" >&5
  1341.   rm -rf conftest*
  1342.   ac_cv_header_stdc=no
  1343. fi
  1344. rm -f conftest*
  1345.  
  1346. if test $ac_cv_header_stdc = yes; then
  1347.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1348. cat > conftest.$ac_ext <<EOF
  1349. #line 1350 "configure"
  1350. #include "confdefs.h"
  1351. #include <string.h>
  1352. EOF
  1353. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1354.   egrep "memchr" >/dev/null 2>&1; then
  1355.   :
  1356. else
  1357.   rm -rf conftest*
  1358.   ac_cv_header_stdc=no
  1359. fi
  1360. rm -f conftest*
  1361.  
  1362. fi
  1363.  
  1364. if test $ac_cv_header_stdc = yes; then
  1365.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1366. cat > conftest.$ac_ext <<EOF
  1367. #line 1368 "configure"
  1368. #include "confdefs.h"
  1369. #include <stdlib.h>
  1370. EOF
  1371. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1372.   egrep "free" >/dev/null 2>&1; then
  1373.   :
  1374. else
  1375.   rm -rf conftest*
  1376.   ac_cv_header_stdc=no
  1377. fi
  1378. rm -f conftest*
  1379.  
  1380. fi
  1381.  
  1382. if test $ac_cv_header_stdc = yes; then
  1383.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1384. if test "$cross_compiling" = yes; then
  1385.   :
  1386. else
  1387. cat > conftest.$ac_ext <<EOF
  1388. #line 1389 "configure"
  1389. #include "confdefs.h"
  1390. #include <ctype.h>
  1391. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1392. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1393. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1394. int main () { int i; for (i = 0; i < 256; i++)
  1395. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1396. exit (0); }
  1397.  
  1398. EOF
  1399. { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1400. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1401.   :
  1402. else
  1403.   ac_cv_header_stdc=no
  1404. fi
  1405. fi
  1406. rm -fr conftest*
  1407. fi
  1408. fi
  1409.  
  1410. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1411. if test $ac_cv_header_stdc = yes; then
  1412.   cat >> confdefs.h <<\EOF
  1413. #define STDC_HEADERS 1
  1414. EOF
  1415.  
  1416. fi
  1417.  
  1418. for ac_hdr in errno.h unistd.h string.h memory.h utime.h fcntl.h ndbm.h \
  1419.                  sys/param.h sys/select.h sys/time.h sys/timeb.h \
  1420.                  io.h direct.h sys/bsdtypes.h sys/resource.h
  1421. do
  1422. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1423. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1424. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1425.   echo $ac_n "(cached) $ac_c" 1>&6
  1426. else
  1427.   cat > conftest.$ac_ext <<EOF
  1428. #line 1429 "configure"
  1429. #include "confdefs.h"
  1430. #include <$ac_hdr>
  1431. EOF
  1432. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1433. { (eval echo configure:1434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1434. ac_err=`grep -v '^ *+' conftest.out`
  1435. if test -z "$ac_err"; then
  1436.   rm -rf conftest*
  1437.   eval "ac_cv_header_$ac_safe=yes"
  1438. else
  1439.   echo "$ac_err" >&5
  1440.   rm -rf conftest*
  1441.   eval "ac_cv_header_$ac_safe=no"
  1442. fi
  1443. rm -f conftest*
  1444. fi
  1445. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1446.   echo "$ac_t""yes" 1>&6
  1447.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1448.   cat >> confdefs.h <<EOF
  1449. #define $ac_tr_hdr 1
  1450. EOF
  1451.  
  1452. else
  1453.   echo "$ac_t""no" 1>&6
  1454. fi
  1455. done
  1456.  
  1457. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1458. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1459.   echo $ac_n "(cached) $ac_c" 1>&6
  1460. else
  1461.   cat > conftest.$ac_ext <<EOF
  1462. #line 1463 "configure"
  1463. #include "confdefs.h"
  1464. #include <sys/types.h>
  1465. #include <sys/wait.h>
  1466. #ifndef WEXITSTATUS
  1467. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1468. #endif
  1469. #ifndef WIFEXITED
  1470. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1471. #endif
  1472. int main() { return 0; }
  1473. int t() {
  1474. int s;
  1475. wait (&s);
  1476. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1477. ; return 0; }
  1478. EOF
  1479. if { (eval echo configure:1480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1480.   rm -rf conftest*
  1481.   ac_cv_header_sys_wait_h=yes
  1482. else
  1483.   rm -rf conftest*
  1484.   ac_cv_header_sys_wait_h=no
  1485. fi
  1486. rm -f conftest*
  1487.  
  1488. fi
  1489.  
  1490. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1491. if test $ac_cv_header_sys_wait_h = yes; then
  1492.   cat >> confdefs.h <<\EOF
  1493. #define HAVE_SYS_WAIT_H 1
  1494. EOF
  1495.  
  1496. fi
  1497.  
  1498. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1499. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1500.   echo $ac_n "(cached) $ac_c" 1>&6
  1501. else
  1502.   cat > conftest.$ac_ext <<EOF
  1503. #line 1504 "configure"
  1504. #include "confdefs.h"
  1505. #include <sys/types.h>
  1506. #include <sys/stat.h>
  1507.  
  1508. #if defined(S_ISBLK) && defined(S_IFDIR)
  1509. # if S_ISBLK (S_IFDIR)
  1510. You lose.
  1511. # endif
  1512. #endif
  1513.  
  1514. #if defined(S_ISBLK) && defined(S_IFCHR)
  1515. # if S_ISBLK (S_IFCHR)
  1516. You lose.
  1517. # endif
  1518. #endif
  1519.  
  1520. #if defined(S_ISLNK) && defined(S_IFREG)
  1521. # if S_ISLNK (S_IFREG)
  1522. You lose.
  1523. # endif
  1524. #endif
  1525.  
  1526. #if defined(S_ISSOCK) && defined(S_IFREG)
  1527. # if S_ISSOCK (S_IFREG)
  1528. You lose.
  1529. # endif
  1530. #endif
  1531.  
  1532. EOF
  1533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1534.   egrep "You lose" >/dev/null 2>&1; then
  1535.   rm -rf conftest*
  1536.   ac_cv_header_stat_broken=yes
  1537. else
  1538.   rm -rf conftest*
  1539.   ac_cv_header_stat_broken=no
  1540. fi
  1541. rm -f conftest*
  1542.  
  1543. fi
  1544.  
  1545. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1546. if test $ac_cv_header_stat_broken = yes; then
  1547.   cat >> confdefs.h <<\EOF
  1548. #define STAT_MACROS_BROKEN 1
  1549. EOF
  1550.  
  1551. fi
  1552.  
  1553. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1554. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1555.   echo $ac_n "(cached) $ac_c" 1>&6
  1556. else
  1557.   cat > conftest.$ac_ext <<EOF
  1558. #line 1559 "configure"
  1559. #include "confdefs.h"
  1560. #include <sys/types.h>
  1561. #include <sys/time.h>
  1562. #include <time.h>
  1563. int main() { return 0; }
  1564. int t() {
  1565. struct tm *tp;
  1566. ; return 0; }
  1567. EOF
  1568. if { (eval echo configure:1569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1569.   rm -rf conftest*
  1570.   ac_cv_header_time=yes
  1571. else
  1572.   rm -rf conftest*
  1573.   ac_cv_header_time=no
  1574. fi
  1575. rm -f conftest*
  1576.  
  1577. fi
  1578.  
  1579. echo "$ac_t""$ac_cv_header_time" 1>&6
  1580. if test $ac_cv_header_time = yes; then
  1581.   cat >> confdefs.h <<\EOF
  1582. #define TIME_WITH_SYS_TIME 1
  1583. EOF
  1584.  
  1585. fi
  1586.  
  1587. ac_header_dirent=no
  1588. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1589. do
  1590. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1591. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1592. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1593.   echo $ac_n "(cached) $ac_c" 1>&6
  1594. else
  1595.   cat > conftest.$ac_ext <<EOF
  1596. #line 1597 "configure"
  1597. #include "confdefs.h"
  1598. #include <sys/types.h>
  1599. #include <$ac_hdr>
  1600. int main() { return 0; }
  1601. int t() {
  1602. DIR *dirp = 0;
  1603. ; return 0; }
  1604. EOF
  1605. if { (eval echo configure:1606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1606.   rm -rf conftest*
  1607.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1608. else
  1609.   rm -rf conftest*
  1610.   eval "ac_cv_header_dirent_$ac_safe=no"
  1611. fi
  1612. rm -f conftest*
  1613.  
  1614. fi
  1615. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1616.   echo "$ac_t""yes" 1>&6
  1617.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1618.   cat >> confdefs.h <<EOF
  1619. #define $ac_tr_hdr 1
  1620. EOF
  1621.  ac_header_dirent=$ac_hdr; break
  1622. else
  1623.   echo "$ac_t""no" 1>&6
  1624. fi
  1625. done
  1626. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1627. if test $ac_header_dirent = dirent.h; then
  1628. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1629. ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  1630. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1631.   echo $ac_n "(cached) $ac_c" 1>&6
  1632. else
  1633.   ac_save_LIBS="$LIBS"
  1634. LIBS="-ldir  $LIBS"
  1635. cat > conftest.$ac_ext <<EOF
  1636. #line 1637 "configure"
  1637. #include "confdefs.h"
  1638. /* Override any gcc2 internal prototype to avoid an error.  */
  1639. /* We use char because int might match the return type of a gcc2
  1640.     builtin and then its argument prototype would still apply.  */
  1641. char opendir();
  1642.  
  1643. int main() { t(); return 0; }
  1644. int t() {
  1645. opendir()
  1646. ; return 0; }
  1647. EOF
  1648. if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1649.   rm -rf conftest*
  1650.   eval "ac_cv_lib_$ac_lib_var=yes"
  1651. else
  1652.   rm -rf conftest*
  1653.   eval "ac_cv_lib_$ac_lib_var=no"
  1654. fi
  1655. rm -f conftest*
  1656. LIBS="$ac_save_LIBS"
  1657.  
  1658. fi
  1659. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1660.   echo "$ac_t""yes" 1>&6
  1661.   LIBS="$LIBS -ldir"
  1662. else
  1663.   echo "$ac_t""no" 1>&6
  1664. fi
  1665.  
  1666. else
  1667. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1668. ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1669. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1670.   echo $ac_n "(cached) $ac_c" 1>&6
  1671. else
  1672.   ac_save_LIBS="$LIBS"
  1673. LIBS="-lx  $LIBS"
  1674. cat > conftest.$ac_ext <<EOF
  1675. #line 1676 "configure"
  1676. #include "confdefs.h"
  1677. /* Override any gcc2 internal prototype to avoid an error.  */
  1678. /* We use char because int might match the return type of a gcc2
  1679.     builtin and then its argument prototype would still apply.  */
  1680. char opendir();
  1681.  
  1682. int main() { t(); return 0; }
  1683. int t() {
  1684. opendir()
  1685. ; return 0; }
  1686. EOF
  1687. if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1688.   rm -rf conftest*
  1689.   eval "ac_cv_lib_$ac_lib_var=yes"
  1690. else
  1691.   rm -rf conftest*
  1692.   eval "ac_cv_lib_$ac_lib_var=no"
  1693. fi
  1694. rm -f conftest*
  1695. LIBS="$ac_save_LIBS"
  1696.  
  1697. fi
  1698. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1699.   echo "$ac_t""yes" 1>&6
  1700.   LIBS="$LIBS -lx"
  1701. else
  1702.   echo "$ac_t""no" 1>&6
  1703. fi
  1704.  
  1705. fi
  1706.  
  1707. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1708. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1709.   echo $ac_n "(cached) $ac_c" 1>&6
  1710. else
  1711.   cat > conftest.$ac_ext <<EOF
  1712. #line 1713 "configure"
  1713. #include "confdefs.h"
  1714. #include <sys/types.h>
  1715. #include <signal.h>
  1716. #ifdef signal
  1717. #undef signal
  1718. #endif
  1719. #ifdef __cplusplus
  1720. extern "C" void (*signal (int, void (*)(int)))(int);
  1721. #else
  1722. void (*signal ()) ();
  1723. #endif
  1724.  
  1725. int main() { return 0; }
  1726. int t() {
  1727. int i;
  1728. ; return 0; }
  1729. EOF
  1730. if { (eval echo configure:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1731.   rm -rf conftest*
  1732.   ac_cv_type_signal=void
  1733. else
  1734.   rm -rf conftest*
  1735.   ac_cv_type_signal=int
  1736. fi
  1737. rm -f conftest*
  1738.  
  1739. fi
  1740.  
  1741. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1742. cat >> confdefs.h <<EOF
  1743. #define RETSIGTYPE $ac_cv_type_signal
  1744. EOF
  1745.  
  1746.  
  1747. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1748. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1749.   echo $ac_n "(cached) $ac_c" 1>&6
  1750. else
  1751.   cat > conftest.$ac_ext <<EOF
  1752. #line 1753 "configure"
  1753. #include "confdefs.h"
  1754. #include <sys/types.h>
  1755. EOF
  1756. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1757.   egrep "uid_t" >/dev/null 2>&1; then
  1758.   rm -rf conftest*
  1759.   ac_cv_type_uid_t=yes
  1760. else
  1761.   rm -rf conftest*
  1762.   ac_cv_type_uid_t=no
  1763. fi
  1764. rm -f conftest*
  1765.  
  1766. fi
  1767.  
  1768. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1769. if test $ac_cv_type_uid_t = no; then
  1770.   cat >> confdefs.h <<\EOF
  1771. #define uid_t int
  1772. EOF
  1773.  
  1774.   cat >> confdefs.h <<\EOF
  1775. #define gid_t int
  1776. EOF
  1777.  
  1778. fi
  1779.  
  1780. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  1781. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  1782.   echo $ac_n "(cached) $ac_c" 1>&6
  1783. else
  1784.   cat > conftest.$ac_ext <<EOF
  1785. #line 1786 "configure"
  1786. #include "confdefs.h"
  1787. #include <sys/types.h>
  1788. #if STDC_HEADERS
  1789. #include <stdlib.h>
  1790. #endif
  1791. EOF
  1792. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1793.   egrep "mode_t" >/dev/null 2>&1; then
  1794.   rm -rf conftest*
  1795.   ac_cv_type_mode_t=yes
  1796. else
  1797.   rm -rf conftest*
  1798.   ac_cv_type_mode_t=no
  1799. fi
  1800. rm -f conftest*
  1801.  
  1802. fi
  1803. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  1804. if test $ac_cv_type_mode_t = no; then
  1805.   cat >> confdefs.h <<\EOF
  1806. #define mode_t int
  1807. EOF
  1808.  
  1809. fi
  1810.  
  1811. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1812. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1813.   echo $ac_n "(cached) $ac_c" 1>&6
  1814. else
  1815.   cat > conftest.$ac_ext <<EOF
  1816. #line 1817 "configure"
  1817. #include "confdefs.h"
  1818. #include <sys/types.h>
  1819. #if STDC_HEADERS
  1820. #include <stdlib.h>
  1821. #endif
  1822. EOF
  1823. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1824.   egrep "size_t" >/dev/null 2>&1; then
  1825.   rm -rf conftest*
  1826.   ac_cv_type_size_t=yes
  1827. else
  1828.   rm -rf conftest*
  1829.   ac_cv_type_size_t=no
  1830. fi
  1831. rm -f conftest*
  1832.  
  1833. fi
  1834. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1835. if test $ac_cv_type_size_t = no; then
  1836.   cat >> confdefs.h <<\EOF
  1837. #define size_t unsigned
  1838. EOF
  1839.  
  1840. fi
  1841.  
  1842. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1843. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1844.   echo $ac_n "(cached) $ac_c" 1>&6
  1845. else
  1846.   cat > conftest.$ac_ext <<EOF
  1847. #line 1848 "configure"
  1848. #include "confdefs.h"
  1849. #include <sys/types.h>
  1850. #if STDC_HEADERS
  1851. #include <stdlib.h>
  1852. #endif
  1853. EOF
  1854. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1855.   egrep "pid_t" >/dev/null 2>&1; then
  1856.   rm -rf conftest*
  1857.   ac_cv_type_pid_t=yes
  1858. else
  1859.   rm -rf conftest*
  1860.   ac_cv_type_pid_t=no
  1861. fi
  1862. rm -f conftest*
  1863.  
  1864. fi
  1865. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1866. if test $ac_cv_type_pid_t = no; then
  1867.   cat >> confdefs.h <<\EOF
  1868. #define pid_t int
  1869. EOF
  1870.  
  1871. fi
  1872.  
  1873. for ac_func in getwd mkdir rename strdup strstr dup2 strerror valloc waitpid vasprintf strtoul
  1874. do
  1875. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1876. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1877.   echo $ac_n "(cached) $ac_c" 1>&6
  1878. else
  1879.   cat > conftest.$ac_ext <<EOF
  1880. #line 1881 "configure"
  1881. #include "confdefs.h"
  1882. /* System header to define __stub macros and hopefully few prototypes,
  1883.     which can conflict with char $ac_func(); below.  */
  1884. #include <assert.h>
  1885. /* Override any gcc2 internal prototype to avoid an error.  */
  1886. /* We use char because int might match the return type of a gcc2
  1887.     builtin and then its argument prototype would still apply.  */
  1888. char $ac_func();
  1889.  
  1890. int main() { t(); return 0; }
  1891. int t() {
  1892.  
  1893. /* The GNU C library defines this for functions which it implements
  1894.     to always fail with ENOSYS.  Some functions are actually named
  1895.     something starting with __ and the normal name is an alias.  */
  1896. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1897. choke me
  1898. #else
  1899. $ac_func();
  1900. #endif
  1901.  
  1902. ; return 0; }
  1903. EOF
  1904. if { (eval echo configure:1905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1905.   rm -rf conftest*
  1906.   eval "ac_cv_func_$ac_func=yes"
  1907. else
  1908.   rm -rf conftest*
  1909.   eval "ac_cv_func_$ac_func=no"
  1910. fi
  1911. rm -f conftest*
  1912.  
  1913. fi
  1914. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1915.   echo "$ac_t""yes" 1>&6
  1916.   :
  1917. else
  1918.   echo "$ac_t""no" 1>&6
  1919. LIBOBJS="$LIBOBJS ${ac_func}.o"
  1920. fi
  1921.  
  1922. done
  1923.  
  1924. for ac_func in fchmod fsync ftime mkfifo putenv setvbuf vfork vprintf ftruncate timezone getpagesize initgroups fchdir sigaction sigprocmask sigvec sigsetmask sigblock getspnam readlink
  1925. do
  1926. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1927. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1928.   echo $ac_n "(cached) $ac_c" 1>&6
  1929. else
  1930.   cat > conftest.$ac_ext <<EOF
  1931. #line 1932 "configure"
  1932. #include "confdefs.h"
  1933. /* System header to define __stub macros and hopefully few prototypes,
  1934.     which can conflict with char $ac_func(); below.  */
  1935. #include <assert.h>
  1936. /* Override any gcc2 internal prototype to avoid an error.  */
  1937. /* We use char because int might match the return type of a gcc2
  1938.     builtin and then its argument prototype would still apply.  */
  1939. char $ac_func();
  1940.  
  1941. int main() { t(); return 0; }
  1942. int t() {
  1943.  
  1944. /* The GNU C library defines this for functions which it implements
  1945.     to always fail with ENOSYS.  Some functions are actually named
  1946.     something starting with __ and the normal name is an alias.  */
  1947. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1948. choke me
  1949. #else
  1950. $ac_func();
  1951. #endif
  1952.  
  1953. ; return 0; }
  1954. EOF
  1955. if { (eval echo configure:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1956.   rm -rf conftest*
  1957.   eval "ac_cv_func_$ac_func=yes"
  1958. else
  1959.   rm -rf conftest*
  1960.   eval "ac_cv_func_$ac_func=no"
  1961. fi
  1962. rm -f conftest*
  1963.  
  1964. fi
  1965. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1966.   echo "$ac_t""yes" 1>&6
  1967.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1968.   cat >> confdefs.h <<EOF
  1969. #define $ac_tr_func 1
  1970. EOF
  1971.  
  1972. else
  1973.   echo "$ac_t""no" 1>&6
  1974. fi
  1975. done
  1976.  
  1977. echo $ac_n "checking for re_exec""... $ac_c" 1>&6
  1978. if eval "test \"`echo '$''{'ac_cv_func_re_exec'+set}'`\" = set"; then
  1979.   echo $ac_n "(cached) $ac_c" 1>&6
  1980. else
  1981.   cat > conftest.$ac_ext <<EOF
  1982. #line 1983 "configure"
  1983. #include "confdefs.h"
  1984. /* System header to define __stub macros and hopefully few prototypes,
  1985.     which can conflict with char re_exec(); below.  */
  1986. #include <assert.h>
  1987. /* Override any gcc2 internal prototype to avoid an error.  */
  1988. /* We use char because int might match the return type of a gcc2
  1989.     builtin and then its argument prototype would still apply.  */
  1990. char re_exec();
  1991.  
  1992. int main() { t(); return 0; }
  1993. int t() {
  1994.  
  1995. /* The GNU C library defines this for functions which it implements
  1996.     to always fail with ENOSYS.  Some functions are actually named
  1997.     something starting with __ and the normal name is an alias.  */
  1998. #if defined (__stub_re_exec) || defined (__stub___re_exec)
  1999. choke me
  2000. #else
  2001. re_exec();
  2002. #endif
  2003.  
  2004. ; return 0; }
  2005. EOF
  2006. if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2007.   rm -rf conftest*
  2008.   eval "ac_cv_func_re_exec=yes"
  2009. else
  2010.   rm -rf conftest*
  2011.   eval "ac_cv_func_re_exec=no"
  2012. fi
  2013. rm -f conftest*
  2014.  
  2015. fi
  2016. if eval "test \"`echo '$ac_cv_func_'re_exec`\" = yes"; then
  2017.   echo "$ac_t""yes" 1>&6
  2018.   :
  2019. else
  2020.   echo "$ac_t""no" 1>&6
  2021. LIBOBJS="$LIBOBJS regex.o"
  2022. fi
  2023.  
  2024. echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
  2025. if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
  2026.   echo $ac_n "(cached) $ac_c" 1>&6
  2027. else
  2028.   rm -f conftestdata; > conftestdata
  2029. # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
  2030. if test "$cross_compiling" = yes; then
  2031.   ac_cv_func_utime_null=no
  2032. else
  2033. cat > conftest.$ac_ext <<EOF
  2034. #line 2035 "configure"
  2035. #include "confdefs.h"
  2036. #include <sys/types.h>
  2037. #include <sys/stat.h>
  2038. main() {
  2039. struct stat s, t;
  2040. exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
  2041. && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
  2042. && t.st_mtime - s.st_mtime < 120));
  2043. }
  2044. EOF
  2045. { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2046. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2047.   ac_cv_func_utime_null=yes
  2048. else
  2049.   ac_cv_func_utime_null=no
  2050. fi
  2051. fi
  2052. rm -fr conftest*
  2053. rm -f core core.* *.core
  2054. fi
  2055.  
  2056. echo "$ac_t""$ac_cv_func_utime_null" 1>&6
  2057. if test $ac_cv_func_utime_null = yes; then
  2058.   cat >> confdefs.h <<\EOF
  2059. #define HAVE_UTIME_NULL 1
  2060. EOF
  2061.  
  2062. fi
  2063.  
  2064. echo $ac_n "checking for long file names""... $ac_c" 1>&6
  2065. if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
  2066.   echo $ac_n "(cached) $ac_c" 1>&6
  2067. else
  2068.   ac_cv_sys_long_file_names=yes
  2069. # Test for long file names in all the places we know might matter:
  2070. #      .        the current directory, where building will happen
  2071. #      /tmp        where it might want to write temporary files
  2072. #      /var/tmp        likewise
  2073. #      /usr/tmp        likewise
  2074. #      $prefix/lib    where we will be installing things
  2075. #      $exec_prefix/lib    likewise
  2076. # eval it to expand exec_prefix.
  2077. for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
  2078.   test -d $ac_dir || continue
  2079.   test -w $ac_dir || continue # It is less confusing to not echo anything here.
  2080.   (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  2081.   (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  2082.   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  2083.   if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
  2084.     ac_cv_sys_long_file_names=no
  2085.     rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  2086.     break
  2087.   fi
  2088.   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  2089. done
  2090. fi
  2091.  
  2092. echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
  2093. if test $ac_cv_sys_long_file_names = yes; then
  2094.   cat >> confdefs.h <<\EOF
  2095. #define HAVE_LONG_FILE_NAMES 1
  2096. EOF
  2097.  
  2098. fi
  2099.  
  2100.  
  2101. echo $ac_n "checking for working fnmatch function""... $ac_c" 1>&6
  2102. if eval "test \"`echo '$''{'ccvs_cv_sys_working_fnmatch'+set}'`\" = set"; then
  2103.   echo $ac_n "(cached) $ac_c" 1>&6
  2104. else
  2105.   if test "$cross_compiling" = yes; then
  2106.   ccvs_cv_sys_working_fnmatch=no
  2107. else
  2108. cat > conftest.$ac_ext <<EOF
  2109. #line 2110 "configure"
  2110. #include "confdefs.h"
  2111.  
  2112. #include <fnmatch.h>
  2113. int
  2114. main ()
  2115. {
  2116.   exit ((fnmatch ("a", "a", FNM_PATHNAME) == 0
  2117.      && fnmatch ("a", "b", FNM_PATHNAME) == FNM_NOMATCH)
  2118.     ? 0 : 1);
  2119. }
  2120. EOF
  2121. { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2122. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2123.   ccvs_cv_sys_working_fnmatch=yes
  2124. else
  2125.   ccvs_cv_sys_working_fnmatch=no
  2126. fi
  2127. fi
  2128. rm -fr conftest*
  2129. fi
  2130.  
  2131. if test $ccvs_cv_sys_working_fnmatch = no; then
  2132.   LIBOBJS="$LIBOBJS fnmatch.o"
  2133. fi
  2134. echo "$ac_t""$ccvs_cv_sys_working_fnmatch" 1>&6
  2135.  
  2136. KRB4=/usr/kerberos
  2137.  
  2138. # Check whether --with-krb4 or --without-krb4 was given.
  2139. if test "${with_krb4+set}" = set; then
  2140.   withval="$with_krb4"
  2141.   KRB4=$withval
  2142. fi
  2143. echo "default place for krb4 is $KRB4"
  2144.  
  2145.  
  2146. echo $ac_n "checking size of long""... $ac_c" 1>&6
  2147. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  2148.   echo $ac_n "(cached) $ac_c" 1>&6
  2149. else
  2150.   if test "$cross_compiling" = yes; then
  2151.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2152. else
  2153. cat > conftest.$ac_ext <<EOF
  2154. #line 2155 "configure"
  2155. #include "confdefs.h"
  2156. #include <stdio.h>
  2157. main()
  2158. {
  2159.   FILE *f=fopen("conftestval", "w");
  2160.   if (!f) exit(1);
  2161.   fprintf(f, "%d\n", sizeof(long));
  2162.   exit(0);
  2163. }
  2164. EOF
  2165. { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2166. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2167.   ac_cv_sizeof_long=`cat conftestval`
  2168. else
  2169.   ac_cv_sizeof_long=0
  2170. fi
  2171. fi
  2172. rm -fr conftest*
  2173. fi
  2174. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  2175. cat >> confdefs.h <<EOF
  2176. #define SIZEOF_LONG $ac_cv_sizeof_long
  2177. EOF
  2178.  
  2179.  
  2180. echo $ac_n "checking size of int""... $ac_c" 1>&6
  2181. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  2182.   echo $ac_n "(cached) $ac_c" 1>&6
  2183. else
  2184.   if test "$cross_compiling" = yes; then
  2185.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2186. else
  2187. cat > conftest.$ac_ext <<EOF
  2188. #line 2189 "configure"
  2189. #include "confdefs.h"
  2190. #include <stdio.h>
  2191. main()
  2192. {
  2193.   FILE *f=fopen("conftestval", "w");
  2194.   if (!f) exit(1);
  2195.   fprintf(f, "%d\n", sizeof(int));
  2196.   exit(0);
  2197. }
  2198. EOF
  2199. { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2200. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2201.   ac_cv_sizeof_int=`cat conftestval`
  2202. else
  2203.   ac_cv_sizeof_int=0
  2204. fi
  2205. fi
  2206. rm -fr conftest*
  2207. fi
  2208. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  2209. cat >> confdefs.h <<EOF
  2210. #define SIZEOF_INT $ac_cv_sizeof_int
  2211. EOF
  2212.  
  2213.  
  2214.  
  2215. krb_h=
  2216. echo $ac_n "checking for krb.h""... $ac_c" 1>&6
  2217. cat > conftest.$ac_ext <<EOF
  2218. #line 2219 "configure"
  2219. #include "confdefs.h"
  2220. #include <krb.h>
  2221. int main() { t(); return 0; }
  2222. int t() {
  2223. int i;
  2224. ; return 0; }
  2225. EOF
  2226. if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2227.   rm -rf conftest*
  2228.   krb_h=yes krb_incdir=
  2229. else
  2230.   rm -rf conftest*
  2231.   if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
  2232.      hold_cflags=$CFLAGS
  2233.      CFLAGS="$CFLAGS -I$KRB4/include"
  2234.      cat > conftest.$ac_ext <<EOF
  2235. #line 2236 "configure"
  2236. #include "confdefs.h"
  2237. #include <krb.h>
  2238. int main() { t(); return 0; }
  2239. int t() {
  2240. int i;
  2241. ; return 0; }
  2242. EOF
  2243. if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2244.   rm -rf conftest*
  2245.   krb_h=yes krb_incdir=$KRB4/include
  2246. fi
  2247. rm -f conftest*
  2248.  
  2249.      CFLAGS=$hold_cflags
  2250.    fi
  2251. fi
  2252. rm -f conftest*
  2253.  
  2254. if test -z "$krb_h"; then
  2255.   cat > conftest.$ac_ext <<EOF
  2256. #line 2257 "configure"
  2257. #include "confdefs.h"
  2258. #include <krb.h>
  2259. int main() { t(); return 0; }
  2260. int t() {
  2261. int i;
  2262. ; return 0; }
  2263. EOF
  2264. if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2265.   rm -rf conftest*
  2266.   krb_h=yes krb_incdir=
  2267. else
  2268.   rm -rf conftest*
  2269.   if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
  2270.        hold_cflags=$CFLAGS
  2271.        CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
  2272.        cat > conftest.$ac_ext <<EOF
  2273. #line 2274 "configure"
  2274. #include "confdefs.h"
  2275. #include <krb.h>
  2276. int main() { t(); return 0; }
  2277. int t() {
  2278. int i;
  2279. ; return 0; }
  2280. EOF
  2281. if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2282.   rm -rf conftest*
  2283.   krb_h=yes krb_incdir=$KRB4/include/kerberosIV
  2284. fi
  2285. rm -f conftest*
  2286.  
  2287.        CFLAGS=$hold_cflags
  2288.      fi
  2289. fi
  2290. rm -f conftest*
  2291.  
  2292. fi
  2293. echo "$ac_t""$krb_h" 1>&6
  2294.  
  2295. if test -n "$krb_h"; then
  2296.   krb_lib=
  2297.   echo $ac_n "checking for -lkrb""... $ac_c" 1>&6
  2298. ac_lib_var=`echo krb'_'printf | tr './+\055' '__p_'`
  2299. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2300.   echo $ac_n "(cached) $ac_c" 1>&6
  2301. else
  2302.   ac_save_LIBS="$LIBS"
  2303. LIBS="-lkrb  $LIBS"
  2304. cat > conftest.$ac_ext <<EOF
  2305. #line 2306 "configure"
  2306. #include "confdefs.h"
  2307. /* Override any gcc2 internal prototype to avoid an error.  */
  2308. /* We use char because int might match the return type of a gcc2
  2309.     builtin and then its argument prototype would still apply.  */
  2310. char printf();
  2311.  
  2312. int main() { t(); return 0; }
  2313. int t() {
  2314. printf()
  2315. ; return 0; }
  2316. EOF
  2317. if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2318.   rm -rf conftest*
  2319.   eval "ac_cv_lib_$ac_lib_var=yes"
  2320. else
  2321.   rm -rf conftest*
  2322.   eval "ac_cv_lib_$ac_lib_var=no"
  2323. fi
  2324. rm -f conftest*
  2325. LIBS="$ac_save_LIBS"
  2326.  
  2327. fi
  2328. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2329.   echo "$ac_t""yes" 1>&6
  2330.   krb_lib=yes krb_libdir=
  2331. else
  2332.   echo "$ac_t""no" 1>&6
  2333. if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
  2334.        krb_lib=yes krb_libdir=$KRB4/lib
  2335.      fi
  2336. fi
  2337.  
  2338.   if test -n "$krb_lib"; then
  2339.     cat >> confdefs.h <<\EOF
  2340. #define HAVE_KERBEROS 1
  2341. EOF
  2342.  
  2343.     test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
  2344.     LIBS="${LIBS} -lkrb"
  2345.     # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
  2346.     # -ldes in the command line.  Don't do it permanently so that we honor
  2347.     # the user's setting for LDFLAGS
  2348.     hold_ldflags=$LDFLAGS
  2349.     test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
  2350.     echo $ac_n "checking for -ldes""... $ac_c" 1>&6
  2351. ac_lib_var=`echo des'_'printf | tr './+\055' '__p_'`
  2352. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2353.   echo $ac_n "(cached) $ac_c" 1>&6
  2354. else
  2355.   ac_save_LIBS="$LIBS"
  2356. LIBS="-ldes  $LIBS"
  2357. cat > conftest.$ac_ext <<EOF
  2358. #line 2359 "configure"
  2359. #include "confdefs.h"
  2360. /* Override any gcc2 internal prototype to avoid an error.  */
  2361. /* We use char because int might match the return type of a gcc2
  2362.     builtin and then its argument prototype would still apply.  */
  2363. char printf();
  2364.  
  2365. int main() { t(); return 0; }
  2366. int t() {
  2367. printf()
  2368. ; return 0; }
  2369. EOF
  2370. if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2371.   rm -rf conftest*
  2372.   eval "ac_cv_lib_$ac_lib_var=yes"
  2373. else
  2374.   rm -rf conftest*
  2375.   eval "ac_cv_lib_$ac_lib_var=no"
  2376. fi
  2377. rm -f conftest*
  2378. LIBS="$ac_save_LIBS"
  2379.  
  2380. fi
  2381. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2382.   echo "$ac_t""yes" 1>&6
  2383.   LIBS="${LIBS} -ldes"
  2384. else
  2385.   echo "$ac_t""no" 1>&6
  2386. fi
  2387.  
  2388.     LDFLAGS=$hold_ldflags
  2389.     if test -n "$krb_incdir"; then
  2390.       includeopt="${includeopt} -I$krb_incdir"
  2391.       
  2392.     fi
  2393.   fi
  2394. fi
  2395. for ac_func in krb_get_err_text
  2396. do
  2397. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2398. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2399.   echo $ac_n "(cached) $ac_c" 1>&6
  2400. else
  2401.   cat > conftest.$ac_ext <<EOF
  2402. #line 2403 "configure"
  2403. #include "confdefs.h"
  2404. /* System header to define __stub macros and hopefully few prototypes,
  2405.     which can conflict with char $ac_func(); below.  */
  2406. #include <assert.h>
  2407. /* Override any gcc2 internal prototype to avoid an error.  */
  2408. /* We use char because int might match the return type of a gcc2
  2409.     builtin and then its argument prototype would still apply.  */
  2410. char $ac_func();
  2411.  
  2412. int main() { t(); return 0; }
  2413. int t() {
  2414.  
  2415. /* The GNU C library defines this for functions which it implements
  2416.     to always fail with ENOSYS.  Some functions are actually named
  2417.     something starting with __ and the normal name is an alias.  */
  2418. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2419. choke me
  2420. #else
  2421. $ac_func();
  2422. #endif
  2423.  
  2424. ; return 0; }
  2425. EOF
  2426. if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2427.   rm -rf conftest*
  2428.   eval "ac_cv_func_$ac_func=yes"
  2429. else
  2430.   rm -rf conftest*
  2431.   eval "ac_cv_func_$ac_func=no"
  2432. fi
  2433. rm -f conftest*
  2434.  
  2435. fi
  2436. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2437.   echo "$ac_t""yes" 1>&6
  2438.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2439.   cat >> confdefs.h <<EOF
  2440. #define $ac_tr_func 1
  2441. EOF
  2442.  
  2443. else
  2444.   echo "$ac_t""no" 1>&6
  2445. fi
  2446. done
  2447.  
  2448. # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
  2449. # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
  2450. # libsocket.so which has a bad implementation of gethostbyname (it
  2451. # only looks in /etc/hosts), so we only look for -lsocket if we need
  2452. # it.
  2453. unset ac_cv_func_connect
  2454. echo $ac_n "checking for connect""... $ac_c" 1>&6
  2455. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  2456.   echo $ac_n "(cached) $ac_c" 1>&6
  2457. else
  2458.   cat > conftest.$ac_ext <<EOF
  2459. #line 2460 "configure"
  2460. #include "confdefs.h"
  2461. /* System header to define __stub macros and hopefully few prototypes,
  2462.     which can conflict with char connect(); below.  */
  2463. #include <assert.h>
  2464. /* Override any gcc2 internal prototype to avoid an error.  */
  2465. /* We use char because int might match the return type of a gcc2
  2466.     builtin and then its argument prototype would still apply.  */
  2467. char connect();
  2468.  
  2469. int main() { t(); return 0; }
  2470. int t() {
  2471.  
  2472. /* The GNU C library defines this for functions which it implements
  2473.     to always fail with ENOSYS.  Some functions are actually named
  2474.     something starting with __ and the normal name is an alias.  */
  2475. #if defined (__stub_connect) || defined (__stub___connect)
  2476. choke me
  2477. #else
  2478. connect();
  2479. #endif
  2480.  
  2481. ; return 0; }
  2482. EOF
  2483. if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2484.   rm -rf conftest*
  2485.   eval "ac_cv_func_connect=yes"
  2486. else
  2487.   rm -rf conftest*
  2488.   eval "ac_cv_func_connect=no"
  2489. fi
  2490. rm -f conftest*
  2491.  
  2492. fi
  2493. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  2494.   echo "$ac_t""yes" 1>&6
  2495.   :
  2496. else
  2497.   echo "$ac_t""no" 1>&6
  2498. case "$LIBS" in
  2499. *-lnsl*) ;;
  2500. *) echo $ac_n "checking for -lnsl_s""... $ac_c" 1>&6
  2501. ac_lib_var=`echo nsl_s'_'printf | tr './+\055' '__p_'`
  2502. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2503.   echo $ac_n "(cached) $ac_c" 1>&6
  2504. else
  2505.   ac_save_LIBS="$LIBS"
  2506. LIBS="-lnsl_s  $LIBS"
  2507. cat > conftest.$ac_ext <<EOF
  2508. #line 2509 "configure"
  2509. #include "confdefs.h"
  2510. /* Override any gcc2 internal prototype to avoid an error.  */
  2511. /* We use char because int might match the return type of a gcc2
  2512.     builtin and then its argument prototype would still apply.  */
  2513. char printf();
  2514.  
  2515. int main() { t(); return 0; }
  2516. int t() {
  2517. printf()
  2518. ; return 0; }
  2519. EOF
  2520. if { (eval echo configure:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2521.   rm -rf conftest*
  2522.   eval "ac_cv_lib_$ac_lib_var=yes"
  2523. else
  2524.   rm -rf conftest*
  2525.   eval "ac_cv_lib_$ac_lib_var=no"
  2526. fi
  2527. rm -f conftest*
  2528. LIBS="$ac_save_LIBS"
  2529.  
  2530. fi
  2531. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2532.   echo "$ac_t""yes" 1>&6
  2533.     ac_tr_lib=HAVE_LIB`echo nsl_s | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2534.   cat >> confdefs.h <<EOF
  2535. #define $ac_tr_lib 1
  2536. EOF
  2537.  
  2538.   LIBS="-lnsl_s $LIBS"
  2539.  
  2540. else
  2541.   echo "$ac_t""no" 1>&6
  2542. fi
  2543.  ;;
  2544. esac
  2545. case "$LIBS" in
  2546. *-lnsl*) ;;
  2547. *) echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  2548. ac_lib_var=`echo nsl'_'printf | tr './+\055' '__p_'`
  2549. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2550.   echo $ac_n "(cached) $ac_c" 1>&6
  2551. else
  2552.   ac_save_LIBS="$LIBS"
  2553. LIBS="-lnsl  $LIBS"
  2554. cat > conftest.$ac_ext <<EOF
  2555. #line 2556 "configure"
  2556. #include "confdefs.h"
  2557. /* Override any gcc2 internal prototype to avoid an error.  */
  2558. /* We use char because int might match the return type of a gcc2
  2559.     builtin and then its argument prototype would still apply.  */
  2560. char printf();
  2561.  
  2562. int main() { t(); return 0; }
  2563. int t() {
  2564. printf()
  2565. ; return 0; }
  2566. EOF
  2567. if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2568.   rm -rf conftest*
  2569.   eval "ac_cv_lib_$ac_lib_var=yes"
  2570. else
  2571.   rm -rf conftest*
  2572.   eval "ac_cv_lib_$ac_lib_var=no"
  2573. fi
  2574. rm -f conftest*
  2575. LIBS="$ac_save_LIBS"
  2576.  
  2577. fi
  2578. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2579.   echo "$ac_t""yes" 1>&6
  2580.     ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2581.   cat >> confdefs.h <<EOF
  2582. #define $ac_tr_lib 1
  2583. EOF
  2584.  
  2585.   LIBS="-lnsl $LIBS"
  2586.  
  2587. else
  2588.   echo "$ac_t""no" 1>&6
  2589. fi
  2590.  ;;
  2591. esac
  2592. case "$LIBS" in
  2593. *-lsocket*) ;;
  2594. *) echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  2595. ac_lib_var=`echo socket'_'connect | tr './+\055' '__p_'`
  2596. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2597.   echo $ac_n "(cached) $ac_c" 1>&6
  2598. else
  2599.   ac_save_LIBS="$LIBS"
  2600. LIBS="-lsocket  $LIBS"
  2601. cat > conftest.$ac_ext <<EOF
  2602. #line 2603 "configure"
  2603. #include "confdefs.h"
  2604. /* Override any gcc2 internal prototype to avoid an error.  */
  2605. /* We use char because int might match the return type of a gcc2
  2606.     builtin and then its argument prototype would still apply.  */
  2607. char connect();
  2608.  
  2609. int main() { t(); return 0; }
  2610. int t() {
  2611. connect()
  2612. ; return 0; }
  2613. EOF
  2614. if { (eval echo configure:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2615.   rm -rf conftest*
  2616.   eval "ac_cv_lib_$ac_lib_var=yes"
  2617. else
  2618.   rm -rf conftest*
  2619.   eval "ac_cv_lib_$ac_lib_var=no"
  2620. fi
  2621. rm -f conftest*
  2622. LIBS="$ac_save_LIBS"
  2623.  
  2624. fi
  2625. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2626.   echo "$ac_t""yes" 1>&6
  2627.     ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2628.   cat >> confdefs.h <<EOF
  2629. #define $ac_tr_lib 1
  2630. EOF
  2631.  
  2632.   LIBS="-lsocket $LIBS"
  2633.  
  2634. else
  2635.   echo "$ac_t""no" 1>&6
  2636. fi
  2637.  ;;
  2638. esac
  2639. case "$LIBS" in
  2640. *-linet*) ;;
  2641. *) echo $ac_n "checking for -linet""... $ac_c" 1>&6
  2642. ac_lib_var=`echo inet'_'connect | tr './+\055' '__p_'`
  2643. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2644.   echo $ac_n "(cached) $ac_c" 1>&6
  2645. else
  2646.   ac_save_LIBS="$LIBS"
  2647. LIBS="-linet  $LIBS"
  2648. cat > conftest.$ac_ext <<EOF
  2649. #line 2650 "configure"
  2650. #include "confdefs.h"
  2651. /* Override any gcc2 internal prototype to avoid an error.  */
  2652. /* We use char because int might match the return type of a gcc2
  2653.     builtin and then its argument prototype would still apply.  */
  2654. char connect();
  2655.  
  2656. int main() { t(); return 0; }
  2657. int t() {
  2658. connect()
  2659. ; return 0; }
  2660. EOF
  2661. if { (eval echo configure:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2662.   rm -rf conftest*
  2663.   eval "ac_cv_lib_$ac_lib_var=yes"
  2664. else
  2665.   rm -rf conftest*
  2666.   eval "ac_cv_lib_$ac_lib_var=no"
  2667. fi
  2668. rm -f conftest*
  2669. LIBS="$ac_save_LIBS"
  2670.  
  2671. fi
  2672. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2673.   echo "$ac_t""yes" 1>&6
  2674.     ac_tr_lib=HAVE_LIB`echo inet | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2675.   cat >> confdefs.h <<EOF
  2676. #define $ac_tr_lib 1
  2677. EOF
  2678.  
  2679.   LIBS="-linet $LIBS"
  2680.  
  2681. else
  2682.   echo "$ac_t""no" 1>&6
  2683. fi
  2684.  ;;
  2685. esac
  2686. unset ac_cv_func_connect
  2687. for ac_func in connect
  2688. do
  2689. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2690. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2691.   echo $ac_n "(cached) $ac_c" 1>&6
  2692. else
  2693.   cat > conftest.$ac_ext <<EOF
  2694. #line 2695 "configure"
  2695. #include "confdefs.h"
  2696. /* System header to define __stub macros and hopefully few prototypes,
  2697.     which can conflict with char $ac_func(); below.  */
  2698. #include <assert.h>
  2699. /* Override any gcc2 internal prototype to avoid an error.  */
  2700. /* We use char because int might match the return type of a gcc2
  2701.     builtin and then its argument prototype would still apply.  */
  2702. char $ac_func();
  2703.  
  2704. int main() { t(); return 0; }
  2705. int t() {
  2706.  
  2707. /* The GNU C library defines this for functions which it implements
  2708.     to always fail with ENOSYS.  Some functions are actually named
  2709.     something starting with __ and the normal name is an alias.  */
  2710. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2711. choke me
  2712. #else
  2713. $ac_func();
  2714. #endif
  2715.  
  2716. ; return 0; }
  2717. EOF
  2718. if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2719.   rm -rf conftest*
  2720.   eval "ac_cv_func_$ac_func=yes"
  2721. else
  2722.   rm -rf conftest*
  2723.   eval "ac_cv_func_$ac_func=no"
  2724. fi
  2725. rm -f conftest*
  2726.  
  2727. fi
  2728. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2729.   echo "$ac_t""yes" 1>&6
  2730.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2731.   cat >> confdefs.h <<EOF
  2732. #define $ac_tr_func 1
  2733. EOF
  2734.  
  2735. else
  2736.   echo "$ac_t""no" 1>&6
  2737. fi
  2738. done
  2739.  
  2740. fi
  2741.  
  2742.  
  2743. echo $ac_n "checking for gethostname""... $ac_c" 1>&6
  2744. if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
  2745.   echo $ac_n "(cached) $ac_c" 1>&6
  2746. else
  2747.   cat > conftest.$ac_ext <<EOF
  2748. #line 2749 "configure"
  2749. #include "confdefs.h"
  2750. /* System header to define __stub macros and hopefully few prototypes,
  2751.     which can conflict with char gethostname(); below.  */
  2752. #include <assert.h>
  2753. /* Override any gcc2 internal prototype to avoid an error.  */
  2754. /* We use char because int might match the return type of a gcc2
  2755.     builtin and then its argument prototype would still apply.  */
  2756. char gethostname();
  2757.  
  2758. int main() { t(); return 0; }
  2759. int t() {
  2760.  
  2761. /* The GNU C library defines this for functions which it implements
  2762.     to always fail with ENOSYS.  Some functions are actually named
  2763.     something starting with __ and the normal name is an alias.  */
  2764. #if defined (__stub_gethostname) || defined (__stub___gethostname)
  2765. choke me
  2766. #else
  2767. gethostname();
  2768. #endif
  2769.  
  2770. ; return 0; }
  2771. EOF
  2772. if { (eval echo configure:2773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2773.   rm -rf conftest*
  2774.   eval "ac_cv_func_gethostname=yes"
  2775. else
  2776.   rm -rf conftest*
  2777.   eval "ac_cv_func_gethostname=no"
  2778. fi
  2779. rm -f conftest*
  2780.  
  2781. fi
  2782. if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
  2783.   echo "$ac_t""yes" 1>&6
  2784.   :
  2785. else
  2786.   echo "$ac_t""no" 1>&6
  2787. LIBOBJS="$LIBOBJS hostname.o"
  2788. fi
  2789.  
  2790.  
  2791. # If we have connect(), we want the full client & server arrangement.
  2792. if test "$ac_cv_func_connect" = yes; then
  2793. cat >> confdefs.h <<\EOF
  2794. #define CLIENT_SUPPORT 1
  2795. EOF
  2796.  
  2797. cat >> confdefs.h <<\EOF
  2798. #define SERVER_SUPPORT 1
  2799. EOF
  2800.  
  2801. # Define AUTH_SERVER_SUPPORT only if we could locate the crypt() function
  2802. unset ac_cv_func_crypt
  2803. echo $ac_n "checking for crypt""... $ac_c" 1>&6
  2804. if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
  2805.   echo $ac_n "(cached) $ac_c" 1>&6
  2806. else
  2807.   cat > conftest.$ac_ext <<EOF
  2808. #line 2809 "configure"
  2809. #include "confdefs.h"
  2810. /* System header to define __stub macros and hopefully few prototypes,
  2811.     which can conflict with char crypt(); below.  */
  2812. #include <assert.h>
  2813. /* Override any gcc2 internal prototype to avoid an error.  */
  2814. /* We use char because int might match the return type of a gcc2
  2815.     builtin and then its argument prototype would still apply.  */
  2816. char crypt();
  2817.  
  2818. int main() { t(); return 0; }
  2819. int t() {
  2820.  
  2821. /* The GNU C library defines this for functions which it implements
  2822.     to always fail with ENOSYS.  Some functions are actually named
  2823.     something starting with __ and the normal name is an alias.  */
  2824. #if defined (__stub_crypt) || defined (__stub___crypt)
  2825. choke me
  2826. #else
  2827. crypt();
  2828. #endif
  2829.  
  2830. ; return 0; }
  2831. EOF
  2832. if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2833.   rm -rf conftest*
  2834.   eval "ac_cv_func_crypt=yes"
  2835. else
  2836.   rm -rf conftest*
  2837.   eval "ac_cv_func_crypt=no"
  2838. fi
  2839. rm -f conftest*
  2840.  
  2841. fi
  2842. if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
  2843.   echo "$ac_t""yes" 1>&6
  2844.   :
  2845. else
  2846.   echo "$ac_t""no" 1>&6
  2847. case "$LIBS" in
  2848. *-lcrypt*) ;;
  2849. *) echo $ac_n "checking for -lcrypt""... $ac_c" 1>&6
  2850. ac_lib_var=`echo crypt'_'crypt | tr './+\055' '__p_'`
  2851. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2852.   echo $ac_n "(cached) $ac_c" 1>&6
  2853. else
  2854.   ac_save_LIBS="$LIBS"
  2855. LIBS="-lcrypt  $LIBS"
  2856. cat > conftest.$ac_ext <<EOF
  2857. #line 2858 "configure"
  2858. #include "confdefs.h"
  2859. /* Override any gcc2 internal prototype to avoid an error.  */
  2860. /* We use char because int might match the return type of a gcc2
  2861.     builtin and then its argument prototype would still apply.  */
  2862. char crypt();
  2863.  
  2864. int main() { t(); return 0; }
  2865. int t() {
  2866. crypt()
  2867. ; return 0; }
  2868. EOF
  2869. if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2870.   rm -rf conftest*
  2871.   eval "ac_cv_lib_$ac_lib_var=yes"
  2872. else
  2873.   rm -rf conftest*
  2874.   eval "ac_cv_lib_$ac_lib_var=no"
  2875. fi
  2876. rm -f conftest*
  2877. LIBS="$ac_save_LIBS"
  2878.  
  2879. fi
  2880. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2881.   echo "$ac_t""yes" 1>&6
  2882.     ac_tr_lib=HAVE_LIB`echo crypt | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2883.   cat >> confdefs.h <<EOF
  2884. #define $ac_tr_lib 1
  2885. EOF
  2886.  
  2887.   LIBS="-lcrypt $LIBS"
  2888.  
  2889. else
  2890.   echo "$ac_t""no" 1>&6
  2891. fi
  2892.  ;;
  2893. esac
  2894. unset ac_cv_func_crypt
  2895. for ac_func in crypt
  2896. do
  2897. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2898. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2899.   echo $ac_n "(cached) $ac_c" 1>&6
  2900. else
  2901.   cat > conftest.$ac_ext <<EOF
  2902. #line 2903 "configure"
  2903. #include "confdefs.h"
  2904. /* System header to define __stub macros and hopefully few prototypes,
  2905.     which can conflict with char $ac_func(); below.  */
  2906. #include <assert.h>
  2907. /* Override any gcc2 internal prototype to avoid an error.  */
  2908. /* We use char because int might match the return type of a gcc2
  2909.     builtin and then its argument prototype would still apply.  */
  2910. char $ac_func();
  2911.  
  2912. int main() { t(); return 0; }
  2913. int t() {
  2914.  
  2915. /* The GNU C library defines this for functions which it implements
  2916.     to always fail with ENOSYS.  Some functions are actually named
  2917.     something starting with __ and the normal name is an alias.  */
  2918. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2919. choke me
  2920. #else
  2921. $ac_func();
  2922. #endif
  2923.  
  2924. ; return 0; }
  2925. EOF
  2926. if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2927.   rm -rf conftest*
  2928.   eval "ac_cv_func_$ac_func=yes"
  2929. else
  2930.   rm -rf conftest*
  2931.   eval "ac_cv_func_$ac_func=no"
  2932. fi
  2933. rm -f conftest*
  2934.  
  2935. fi
  2936. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2937.   echo "$ac_t""yes" 1>&6
  2938.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2939.   cat >> confdefs.h <<EOF
  2940. #define $ac_tr_func 1
  2941. EOF
  2942.  
  2943. else
  2944.   echo "$ac_t""no" 1>&6
  2945. fi
  2946. done
  2947.  
  2948. fi
  2949.  
  2950.   if test "$ac_cv_func_crypt" = yes; then
  2951.   cat >> confdefs.h <<\EOF
  2952. #define AUTH_SERVER_SUPPORT 1
  2953. EOF
  2954.  
  2955.   fi
  2956. fi
  2957.  
  2958. test -f src/options.h && (
  2959.   echo "configure: warning: saving ./src/options.h in ./src/options.h-SAVED" 1>&2
  2960.   echo "configure: warning: You may wish to check that local options have not been lost." 1>&2
  2961.   echo "configure: warning: Do not re-run ./configure or ./config.status until you have...." 1>&2
  2962.   cp ./src/options.h ./src/options.h-SAVED
  2963. )
  2964.  
  2965. trap '' 1 2 15
  2966. cat > confcache <<\EOF
  2967. # This file is a shell script that caches the results of configure
  2968. # tests run on this system so they can be shared between configure
  2969. # scripts and configure runs.  It is not useful on other systems.
  2970. # If it contains results you don't want to keep, you may remove or edit it.
  2971. #
  2972. # By default, configure uses ./config.cache as the cache file,
  2973. # creating it if it does not exist already.  You can give configure
  2974. # the --cache-file=FILE option to use a different cache file; that is
  2975. # what configure does when it calls configure scripts in
  2976. # subdirectories, so they share the cache.
  2977. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2978. # config.status only pays attention to the cache file if you give it the
  2979. # --recheck option to rerun configure.
  2980. #
  2981. EOF
  2982. # Ultrix sh set writes to stderr and can't be redirected directly,
  2983. # and sets the high bit in the cache file unless we assign to the vars.
  2984. (set) 2>&1 |
  2985.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2986.   >> confcache
  2987. if cmp -s $cache_file confcache; then
  2988.   :
  2989. else
  2990.   if test -w $cache_file; then
  2991.     echo "updating cache $cache_file"
  2992.     cat confcache > $cache_file
  2993.   else
  2994.     echo "not updating unwritable cache $cache_file"
  2995.   fi
  2996. fi
  2997. rm -f confcache
  2998.  
  2999. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3000.  
  3001. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3002. # Let make expand exec_prefix.
  3003. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3004.  
  3005. # Any assignment to VPATH causes Sun make to only execute
  3006. # the first set of double-colon rules, so remove it if not needed.
  3007. # If there is a colon in the path, we need to keep it.
  3008. if test "x$srcdir" = x.; then
  3009.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3010. fi
  3011.  
  3012. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3013.  
  3014. DEFS=-DHAVE_CONFIG_H
  3015.  
  3016. # Without the "./", some shells look in PATH for config.status.
  3017. : ${CONFIG_STATUS=./config.status}
  3018.  
  3019. echo creating $CONFIG_STATUS
  3020. # Some systems, like AmigaOS, won't allow you to remove a script that is
  3021. # being executed, so just move it out of the way instead.
  3022. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  3023. cat > $CONFIG_STATUS <<EOF
  3024. #! /bin/sh
  3025. # Generated automatically by configure.
  3026. # Run this file to recreate the current configuration.
  3027. # This directory was configured as follows,
  3028. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3029. #
  3030. # $0 $ac_configure_args
  3031. #
  3032. # Compiler output produced by configure, useful for debugging
  3033. # configure, is in ./config.log if it exists.
  3034.  
  3035. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3036. for ac_option
  3037. do
  3038.   case "\$ac_option" in
  3039.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3040.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3041.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3042.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3043.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  3044.     exit 0 ;;
  3045.   -help | --help | --hel | --he | --h)
  3046.     echo "\$ac_cs_usage"; exit 0 ;;
  3047.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3048.   esac
  3049. done
  3050.  
  3051. ac_given_srcdir=$srcdir
  3052. ac_given_INSTALL="$INSTALL"
  3053.  
  3054. trap 'rm -fr `echo "Makefile lib/Makefile src/Makefile zlib/Makefile doc/Makefile \
  3055.       man/Makefile tools/Makefile tools/pcl-cvs/Makefile \
  3056.       contrib/Makefile contrib/elib/Makefile \
  3057.       windows-NT/Makefile os2/Makefile macintosh/Makefile stamp-h config.h src/options.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3058. EOF
  3059. cat >> $CONFIG_STATUS <<EOF
  3060.  
  3061. # Protect against being on the right side of a sed subst in config.status.
  3062. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3063.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3064. $ac_vpsub
  3065. $extrasub
  3066. s%@CFLAGS@%$CFLAGS%g
  3067. s%@CPPFLAGS@%$CPPFLAGS%g
  3068. s%@CXXFLAGS@%$CXXFLAGS%g
  3069. s%@DEFS@%$DEFS%g
  3070. s%@LDFLAGS@%$LDFLAGS%g
  3071. s%@LIBS@%$LIBS%g
  3072. s%@exec_prefix@%$exec_prefix%g
  3073. s%@prefix@%$prefix%g
  3074. s%@program_transform_name@%$program_transform_name%g
  3075. s%@bindir@%$bindir%g
  3076. s%@sbindir@%$sbindir%g
  3077. s%@libexecdir@%$libexecdir%g
  3078. s%@datadir@%$datadir%g
  3079. s%@sysconfdir@%$sysconfdir%g
  3080. s%@sharedstatedir@%$sharedstatedir%g
  3081. s%@localstatedir@%$localstatedir%g
  3082. s%@libdir@%$libdir%g
  3083. s%@includedir@%$includedir%g
  3084. s%@oldincludedir@%$oldincludedir%g
  3085. s%@infodir@%$infodir%g
  3086. s%@guidedir@%$guidedir%g
  3087. s%@psdir@%$psdir%g
  3088. s%@dvidir@%$dvidir%g
  3089. s%@mandir@%$mandir%g
  3090. s%@CC@%$CC%g
  3091. s%@CPP@%$CPP%g
  3092. s%@CVS@%$CVS%g
  3093. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3094. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3095. s%@host@%$host%g
  3096. s%@host_alias@%$host_alias%g
  3097. s%@host_cpu@%$host_cpu%g
  3098. s%@host_vendor@%$host_vendor%g
  3099. s%@host_os@%$host_os%g
  3100. s%@build@%$build%g
  3101. s%@build_alias@%$build_alias%g
  3102. s%@build_cpu@%$build_cpu%g
  3103. s%@build_vendor@%$build_vendor%g
  3104. s%@build_os@%$build_os%g
  3105. s%@RANLIB@%$RANLIB%g
  3106. s%@AR@%$AR%g
  3107. s%@YACC@%$YACC%g
  3108. s%@SET_MAKE@%$SET_MAKE%g
  3109. s%@perl_path@%$perl_path%g
  3110. s%@csh_path@%$csh_path%g
  3111. s%@LIBOBJS@%$LIBOBJS%g
  3112. s%@KRB4@%$KRB4%g
  3113. s%@includeopt@%$includeopt%g
  3114.  
  3115. CEOF
  3116. EOF
  3117. cat >> $CONFIG_STATUS <<EOF
  3118.  
  3119. CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile src/Makefile zlib/Makefile doc/Makefile \
  3120.       man/Makefile tools/Makefile tools/pcl-cvs/Makefile \
  3121.       contrib/Makefile contrib/elib/Makefile \
  3122.       windows-NT/Makefile os2/Makefile macintosh/Makefile stamp-h"}
  3123. EOF
  3124. cat >> $CONFIG_STATUS <<\EOF
  3125. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3126.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3127.   case "$ac_file" in
  3128.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3129.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3130.   *) ac_file_in="${ac_file}.in" ;;
  3131.   esac
  3132.  
  3133.   # Adjust relative srcdir, etc. for subdirectories.
  3134.  
  3135.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3136.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3137.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3138.     # The file is in a subdirectory.
  3139.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3140.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3141.     # A "../" for each directory in $ac_dir_suffix.
  3142.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3143.   else
  3144.     ac_dir_suffix= ac_dots=
  3145.   fi
  3146.  
  3147.   case "$ac_given_srcdir" in
  3148.   .)  srcdir=.
  3149.       if test -z "$ac_dots"; then top_srcdir=.
  3150.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3151.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3152.   *) # Relative path.
  3153.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3154.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3155.   esac
  3156.  
  3157.   case "$ac_given_INSTALL" in
  3158.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3159.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3160.   esac
  3161.   echo creating "$ac_file"
  3162.   rm -f "$ac_file"
  3163.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3164.   case "$ac_file" in
  3165.   *Makefile*) ac_comsub="1i\\
  3166. # $configure_input" ;;
  3167.   *) ac_comsub= ;;
  3168.   esac
  3169.   sed -e "$ac_comsub
  3170. s%@configure_input@%$configure_input%g
  3171. s%@srcdir@%$srcdir%g
  3172. s%@top_srcdir@%$top_srcdir%g
  3173. s%@INSTALL@%$INSTALL%g
  3174. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3175. fi; done
  3176. rm -f conftest.subs
  3177.  
  3178. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3179. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3180. #
  3181. # ac_d sets the value in "#define NAME VALUE" lines.
  3182. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3183. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3184. ac_dC='\3'
  3185. ac_dD='%g'
  3186. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3187. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3188. ac_uB='\([     ]\)%\1#\2define\3'
  3189. ac_uC=' '
  3190. ac_uD='\4%g'
  3191. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3192. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3193. ac_eB='$%\1#\2define\3'
  3194. ac_eC=' '
  3195. ac_eD='%g'
  3196.  
  3197. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h src/options.h"}
  3198. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3199.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3200.   case "$ac_file" in
  3201.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3202.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3203.   *) ac_file_in="${ac_file}.in" ;;
  3204.   esac
  3205.  
  3206.   echo creating $ac_file
  3207.  
  3208.   rm -f conftest.frag conftest.in conftest.out
  3209.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3210.  
  3211. EOF
  3212.  
  3213. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3214. # the proper values into config.h.in to produce config.h.  And first:
  3215. # Protect against being on the right side of a sed subst in config.status.
  3216. # Protect against being in an unquoted here document in config.status.
  3217. rm -f conftest.vals
  3218. cat > conftest.hdr <<\EOF
  3219. s/[\\&%]/\\&/g
  3220. s%[\\$`]%\\&%g
  3221. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3222. s%ac_d%ac_u%gp
  3223. s%ac_u%ac_e%gp
  3224. EOF
  3225. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3226. rm -f conftest.hdr
  3227.  
  3228. # This sed command replaces #undef with comments.  This is necessary, for
  3229. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3230. # on some systems where configure will not decide to define it.
  3231. cat >> conftest.vals <<\EOF
  3232. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3233. EOF
  3234.  
  3235. # Break up conftest.vals because some shells have a limit on
  3236. # the size of here documents, and old seds have small limits too.
  3237. # Maximum number of lines to put in a single here document.
  3238. ac_max_here_lines=12
  3239.  
  3240. rm -f conftest.tail
  3241. while :
  3242. do
  3243.   ac_lines=`grep -c . conftest.vals`
  3244.   # grep -c gives empty output for an empty file on some AIX systems.
  3245.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3246.   # Write a limited-size here document to conftest.frag.
  3247.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3248.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3249.   echo 'CEOF
  3250.   sed -f conftest.frag conftest.in > conftest.out
  3251.   rm -f conftest.in
  3252.   mv conftest.out conftest.in
  3253. ' >> $CONFIG_STATUS
  3254.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3255.   rm -f conftest.vals
  3256.   mv conftest.tail conftest.vals
  3257. done
  3258. rm -f conftest.vals
  3259.  
  3260. cat >> $CONFIG_STATUS <<\EOF
  3261.   rm -f conftest.frag conftest.h
  3262.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3263.   cat conftest.in >> conftest.h
  3264.   rm -f conftest.in
  3265.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3266.     echo "$ac_file is unchanged"
  3267.     rm -f conftest.h
  3268.   else
  3269.     # Remove last slash and all that follows it.  Not all systems have dirname.
  3270.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3271.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3272.       # The file is in a subdirectory.
  3273.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  3274.     fi
  3275.     rm -f $ac_file
  3276.     mv conftest.h $ac_file
  3277.   fi
  3278. fi; done
  3279.  
  3280.  
  3281.  
  3282. exit 0
  3283. EOF
  3284. chmod +x $CONFIG_STATUS
  3285. rm -f CONFIG.STATUS.old
  3286. rm -fr confdefs* $ac_clean_files
  3287. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3288.  
  3289.