home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / textutils-1.19-src.tgz / tar.out / fsf / textutils / configure < prev    next >
Text File  |  1996-10-01  |  112KB  |  4,094 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.   --enable-maintainer-mode enable make rules and dependencies not useful
  16.                           (and sometimes confusing) to the casual installer"
  17. ac_help="$ac_help
  18.   --with-regex            use older regex in lieu of GNU rx for matching"
  19. ac_help="$ac_help
  20.   --disable-nls           do not use Native Language Support"
  21. ac_help="$ac_help
  22.   --with-included-gettext use the GNU gettext library included here"
  23. ac_help="$ac_help
  24.   --with-catgets          use catgets functions if available"
  25.  
  26. # Initialize some variables set by options.
  27. # The variables have the same names as the options, with
  28. # dashes changed to underlines.
  29. build=NONE
  30. cache_file=./config.cache
  31. exec_prefix=NONE
  32. host=NONE
  33. no_create=
  34. nonopt=NONE
  35. no_recursion=
  36. prefix=NONE
  37. program_prefix=NONE
  38. program_suffix=NONE
  39. program_transform_name=s,x,x,
  40. silent=
  41. site=
  42. srcdir=
  43. target=NONE
  44. verbose=
  45. x_includes=NONE
  46. x_libraries=NONE
  47. bindir='${exec_prefix}/bin'
  48. sbindir='${exec_prefix}/sbin'
  49. libexecdir='${exec_prefix}/libexec'
  50. datadir='${prefix}/share'
  51. sysconfdir='${prefix}/etc'
  52. sharedstatedir='${prefix}/com'
  53. localstatedir='${prefix}/var'
  54. libdir='${exec_prefix}/lib'
  55. includedir='${prefix}/include'
  56. oldincludedir='/usr/include'
  57. infodir='${prefix}/info'
  58. guidedir='${prefix}/guide'
  59. psdir='${prefix}/ps'
  60. dvidir='${prefix}/dvi'
  61. mandir='${prefix}/man'
  62.  
  63. # Initialize some other variables.
  64. subdirs=
  65. MFLAGS= MAKEFLAGS=
  66.  
  67. ac_prev=
  68. for ac_option
  69. do
  70.  
  71.   # If the previous option needs an argument, assign it.
  72.   if test -n "$ac_prev"; then
  73.     eval "$ac_prev=\$ac_option"
  74.     ac_prev=
  75.     continue
  76.   fi
  77.  
  78.   case "$ac_option" in
  79.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  80.   *) ac_optarg= ;;
  81.   esac
  82.  
  83.   # Accept the important Cygnus configure options, so we can diagnose typos.
  84.  
  85.   case "$ac_option" in
  86.  
  87.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  88.     ac_prev=bindir ;;
  89.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  90.     bindir="$ac_optarg" ;;
  91.  
  92.   -build | --build | --buil | --bui | --bu)
  93.     ac_prev=build ;;
  94.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  95.     build="$ac_optarg" ;;
  96.  
  97.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  98.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  99.     ac_prev=cache_file ;;
  100.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  101.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  102.     cache_file="$ac_optarg" ;;
  103.  
  104.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  105.     ac_prev=datadir ;;
  106.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  107.   | --da=*)
  108.     datadir="$ac_optarg" ;;
  109.  
  110.   -disable-* | --disable-*)
  111.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  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.     eval "enable_${ac_feature}=no" ;;
  118.  
  119.   -enable-* | --enable-*)
  120.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  121.     # Reject names that are not valid shell variable names.
  122.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  123.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  124.     fi
  125.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  126.     case "$ac_option" in
  127.       *=*) ;;
  128.       *) ac_optarg=yes ;;
  129.     esac
  130.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  131.  
  132.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  133.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  134.   | --exec | --exe | --ex)
  135.     ac_prev=exec_prefix ;;
  136.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  137.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  138.   | --exec=* | --exe=* | --ex=*)
  139.     exec_prefix="$ac_optarg" ;;
  140.  
  141.   -gas | --gas | --ga | --g)
  142.     # Obsolete; use --with-gas.
  143.     with_gas=yes ;;
  144.  
  145.   -help | --help | --hel | --he)
  146.     # Omit some internal or obsolete options to make the list less imposing.
  147.     # This message is too long to be a string in the A/UX 3.1 sh.
  148.     cat << EOF
  149. Usage: configure [options] [host]
  150. Options: [defaults in brackets after descriptions]
  151. Configuration:
  152.   --cache-file=FILE       cache test results in FILE
  153.   --help                  print this message
  154.   --no-create             do not create output files
  155.   --quiet, --silent       do not print \`checking...' messages
  156.   --version               print the version of autoconf that created configure
  157. Directory and file names:
  158.   --prefix=PREFIX         install architecture-independent files in PREFIX
  159.                           [$ac_default_prefix]
  160.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  161.                           [same as prefix]
  162.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  163.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  164.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  165.   --datadir=DIR           read-only architecture-independent data in DIR
  166.                           [PREFIX/share]
  167.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  168.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  169.                           [PREFIX/com]
  170.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  171.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  172.   --includedir=DIR        C header files in DIR [PREFIX/include]
  173.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  174.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  175.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  176.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  177.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  178.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  179.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  180.   --program-prefix=PREFIX prepend PREFIX to installed program names
  181.   --program-suffix=SUFFIX append SUFFIX to installed program names
  182.   --program-transform-name=PROGRAM
  183.                           run sed PROGRAM on installed program names
  184. EOF
  185.     cat << EOF
  186. Host type:
  187.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  188.   --host=HOST             configure for HOST [guessed]
  189.   --target=TARGET         configure for TARGET [TARGET=HOST]
  190. Features and packages:
  191.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  192.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  193.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  194.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  195.   --x-includes=DIR        X include files are in DIR
  196.   --x-libraries=DIR       X library files are in DIR
  197. EOF
  198.     if test -n "$ac_help"; then
  199.       echo "--enable and --with options recognized:$ac_help"
  200.     fi
  201.     exit 0 ;;
  202.  
  203.   -host | --host | --hos | --ho)
  204.     ac_prev=host ;;
  205.   -host=* | --host=* | --hos=* | --ho=*)
  206.     host="$ac_optarg" ;;
  207.  
  208.   -includedir | --includedir | --includedi | --included | --include \
  209.   | --includ | --inclu | --incl | --inc)
  210.     ac_prev=includedir ;;
  211.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  212.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  213.     includedir="$ac_optarg" ;;
  214.  
  215.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  216.     ac_prev=infodir ;;
  217.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  218.     infodir="$ac_optarg" ;;
  219.  
  220.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  221.    ac_prev=guidedir ;;
  222.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  223.  
  224.  -psdir | --psdir | --psdi | --psd | --ps)
  225.    ac_prev=psdir ;;
  226.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  227.  
  228.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  229.    ac_prev=dvidir ;;
  230.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  231.  
  232.   -libdir | --libdir | --libdi | --libd)
  233.     ac_prev=libdir ;;
  234.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  235.     libdir="$ac_optarg" ;;
  236.  
  237.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  238.   | --libexe | --libex | --libe)
  239.     ac_prev=libexecdir ;;
  240.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  241.   | --libexe=* | --libex=* | --libe=*)
  242.     libexecdir="$ac_optarg" ;;
  243.  
  244.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  245.   | --localstate | --localstat | --localsta | --localst \
  246.   | --locals | --local | --loca | --loc | --lo)
  247.     ac_prev=localstatedir ;;
  248.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  249.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  250.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  251.     localstatedir="$ac_optarg" ;;
  252.  
  253.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  254.     ac_prev=mandir ;;
  255.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  256.     mandir="$ac_optarg" ;;
  257.  
  258.   -nfp | --nfp | --nf)
  259.     # Obsolete; use --without-fp.
  260.     with_fp=no ;;
  261.  
  262.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  263.   | --no-cr | --no-c)
  264.     no_create=yes ;;
  265.  
  266.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  267.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  268.     no_recursion=yes ;;
  269.  
  270.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  271.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  272.   | --oldin | --oldi | --old | --ol | --o)
  273.     ac_prev=oldincludedir ;;
  274.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  275.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  276.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  277.     oldincludedir="$ac_optarg" ;;
  278.  
  279.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  280.     ac_prev=prefix ;;
  281.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  282.     prefix="$ac_optarg" ;;
  283.  
  284.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  285.   | --program-pre | --program-pr | --program-p)
  286.     ac_prev=program_prefix ;;
  287.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  288.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  289.     program_prefix="$ac_optarg" ;;
  290.  
  291.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  292.   | --program-suf | --program-su | --program-s)
  293.     ac_prev=program_suffix ;;
  294.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  295.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  296.     program_suffix="$ac_optarg" ;;
  297.  
  298.   -program-transform-name | --program-transform-name \
  299.   | --program-transform-nam | --program-transform-na \
  300.   | --program-transform-n | --program-transform- \
  301.   | --program-transform | --program-transfor \
  302.   | --program-transfo | --program-transf \
  303.   | --program-trans | --program-tran \
  304.   | --progr-tra | --program-tr | --program-t)
  305.     ac_prev=program_transform_name ;;
  306.   -program-transform-name=* | --program-transform-name=* \
  307.   | --program-transform-nam=* | --program-transform-na=* \
  308.   | --program-transform-n=* | --program-transform-=* \
  309.   | --program-transform=* | --program-transfor=* \
  310.   | --program-transfo=* | --program-transf=* \
  311.   | --program-trans=* | --program-tran=* \
  312.   | --progr-tra=* | --program-tr=* | --program-t=*)
  313.     program_transform_name="$ac_optarg" ;;
  314.  
  315.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  316.   | -silent | --silent | --silen | --sile | --sil)
  317.     silent=yes ;;
  318.  
  319.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  320.     ac_prev=sbindir ;;
  321.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  322.   | --sbi=* | --sb=*)
  323.     sbindir="$ac_optarg" ;;
  324.  
  325.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  326.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  327.   | --sharedst | --shareds | --shared | --share | --shar \
  328.   | --sha | --sh)
  329.     ac_prev=sharedstatedir ;;
  330.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  331.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  332.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  333.   | --sha=* | --sh=*)
  334.     sharedstatedir="$ac_optarg" ;;
  335.  
  336.   -site | --site | --sit)
  337.     ac_prev=site ;;
  338.   -site=* | --site=* | --sit=*)
  339.     site="$ac_optarg" ;;
  340.  
  341.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  342.     ac_prev=srcdir ;;
  343.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  344.     srcdir="$ac_optarg" ;;
  345.  
  346.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  347.   | --syscon | --sysco | --sysc | --sys | --sy)
  348.     ac_prev=sysconfdir ;;
  349.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  350.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  351.     sysconfdir="$ac_optarg" ;;
  352.  
  353.   -target | --target | --targe | --targ | --tar | --ta | --t)
  354.     ac_prev=target ;;
  355.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  356.     target="$ac_optarg" ;;
  357.  
  358.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  359.     verbose=yes ;;
  360.  
  361.   -version | --version | --versio | --versi | --vers)
  362.     echo "configure generated by autoconf version 2.10"
  363.     exit 0 ;;
  364.  
  365.   -with-* | --with-*)
  366.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  367.     # Reject names that are not valid shell variable names.
  368.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  369.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  370.     fi
  371.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  372.     case "$ac_option" in
  373.       *=*) ;;
  374.       *) ac_optarg=yes ;;
  375.     esac
  376.     eval "with_${ac_package}='$ac_optarg'" ;;
  377.  
  378.   -without-* | --without-*)
  379.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  380.     # Reject names that are not valid shell variable names.
  381.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  382.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  383.     fi
  384.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  385.     eval "with_${ac_package}=no" ;;
  386.  
  387.   --x)
  388.     # Obsolete; use --with-x.
  389.     with_x=yes ;;
  390.  
  391.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  392.   | --x-incl | --x-inc | --x-in | --x-i)
  393.     ac_prev=x_includes ;;
  394.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  395.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  396.     x_includes="$ac_optarg" ;;
  397.  
  398.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  399.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  400.     ac_prev=x_libraries ;;
  401.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  402.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  403.     x_libraries="$ac_optarg" ;;
  404.  
  405.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  406.     ;;
  407.  
  408.   *)
  409.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  410.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  411.     fi
  412.     if test "x$nonopt" != xNONE; then
  413.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  414.     fi
  415.     nonopt="$ac_option"
  416.     ;;
  417.  
  418.   esac
  419. done
  420.  
  421. if test -n "$ac_prev"; then
  422.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  423. fi
  424.  
  425. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  426.  
  427. # File descriptor usage:
  428. # 0 standard input
  429. # 1 file creation
  430. # 2 errors and warnings
  431. # 3 some systems may open it to /dev/tty
  432. # 4 used on the Kubota Titan
  433. # 6 checking for... messages and results
  434. # 5 compiler messages saved in config.log
  435. if test "$silent" = yes; then
  436.   exec 6>/dev/null
  437. else
  438.   exec 6>&1
  439. fi
  440. exec 5>./config.log
  441.  
  442. echo "\
  443. This file contains any messages produced by compilers while
  444. running configure, to aid debugging if configure makes a mistake.
  445. " 1>&5
  446.  
  447. # Strip out --no-create and --no-recursion so they do not pile up.
  448. # Also quote any args containing shell metacharacters.
  449. ac_configure_args=
  450. for ac_arg
  451. do
  452.   case "$ac_arg" in
  453.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  454.   | --no-cr | --no-c) ;;
  455.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  456.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  457.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  458.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  459.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  460.   esac
  461. done
  462.  
  463. # NLS nuisances.
  464. # Only set LANG and LC_ALL to C if already set.
  465. # These must not be set unconditionally because not all systems understand
  466. # e.g. LANG=C (notably SCO).
  467. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  468. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  469.  
  470. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  471. rm -rf conftest* confdefs.h
  472. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  473. echo > confdefs.h
  474.  
  475. # A filename unique to this package, relative to the directory that
  476. # configure is in, which we can look for to find out if srcdir is correct.
  477. ac_unique_file=src/fold.c
  478.  
  479. # Find the source files, if location was not specified.
  480. if test -z "$srcdir"; then
  481.   ac_srcdir_defaulted=yes
  482.   # Try the directory containing this script, then its parent.
  483.   ac_prog=$0
  484.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  485.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  486.   srcdir=$ac_confdir
  487.   if test ! -r $srcdir/$ac_unique_file; then
  488.     srcdir=..
  489.   fi
  490. else
  491.   ac_srcdir_defaulted=no
  492. fi
  493. if test ! -r $srcdir/$ac_unique_file; then
  494.   if test "$ac_srcdir_defaulted" = yes; then
  495.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  496.   else
  497.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  498.   fi
  499. fi
  500. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  501.  
  502. # Prefer explicitly selected file to automatically selected ones.
  503. if test -z "$CONFIG_SITE"; then
  504.   if test "x$prefix" != xNONE; then
  505.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  506.   else
  507.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  508.   fi
  509. fi
  510. for ac_site_file in $CONFIG_SITE; do
  511.   if test -r "$ac_site_file"; then
  512.     echo "loading site script $ac_site_file"
  513.     . "$ac_site_file"
  514.   fi
  515. done
  516.  
  517. if test -r "$cache_file"; then
  518.   echo "loading cache $cache_file"
  519.   . $cache_file
  520. else
  521.   echo "creating cache $cache_file"
  522.   > $cache_file
  523. fi
  524.  
  525. ac_ext=c
  526. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  527. ac_cpp='$CPP $CPPFLAGS'
  528. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  529. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  530.  
  531. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  532.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  533.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  534.     ac_n= ac_c='
  535. ' ac_t='    '
  536.   else
  537.     ac_n=-n ac_c= ac_t=
  538.   fi
  539. else
  540.   ac_n= ac_c='\c' ac_t=
  541. fi
  542.  
  543.  
  544.  
  545. if test "$program_transform_name" = s,x,x,; then
  546.   program_transform_name=
  547. else
  548.   # Double any \ or $.  echo might interpret backslashes.
  549.   cat <<\EOF_SED > conftestsed
  550. s,\\,\\\\,g; s,\$,$$,g
  551. EOF_SED
  552.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  553.   rm -f conftestsed
  554. fi
  555. test "$program_prefix" != NONE &&
  556.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  557. # Use a double $ so make ignores it.
  558. test "$program_suffix" != NONE &&
  559.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  560.  
  561. # sed with no file args requires a program.
  562. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  563.  
  564.  
  565. PACKAGE=textutils
  566. VERSION=1.19
  567. PACKAGE_VERSION="GNU $PACKAGE-$VERSION"
  568. cat >> confdefs.h <<EOF
  569. #define PACKAGE "$PACKAGE"
  570. EOF
  571.  
  572. cat >> confdefs.h <<EOF
  573. #define VERSION "$VERSION"
  574. EOF
  575.  
  576. cat >> confdefs.h <<EOF
  577. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  578. EOF
  579.  
  580.  
  581.  
  582.  
  583.  
  584. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  585.     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  586. if test "${enable_maintainer_mode+set}" = set; then
  587.   enableval="$enable_maintainer_mode"
  588.   USE_MAINTAINER_MODE=$enableval
  589. else
  590.   USE_MAINTAINER_MODE=no
  591. fi
  592.  
  593.   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  594.   if test $USE_MAINTAINER_MODE = yes; then
  595.     MAINT=
  596.   else
  597.     MAINT='#M#'
  598.   fi
  599.   
  600.  
  601.  
  602. ALL_LINGUAS="de fr ko nl"
  603.  
  604. case $VERSION in
  605.   *[a-z]) README_ALPHA=README-alpha;;
  606.   *) README_ALPHA=;;
  607. esac
  608.  
  609.  
  610. # Extract the first word of "gcc", so it can be a program name with args.
  611. set dummy gcc; ac_word=$2
  612. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  613. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  614.   echo $ac_n "(cached) $ac_c" 1>&6
  615. else
  616.   if test -n "$CC"; then
  617.   ac_cv_prog_CC="$CC" # Let the user override the test.
  618. else
  619.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  620.   for ac_dir in $PATH; do
  621.     test -z "$ac_dir" && ac_dir=.
  622.     if test -f $ac_dir/$ac_word; then
  623.       ac_cv_prog_CC="gcc"
  624.       break
  625.     fi
  626.   done
  627.   IFS="$ac_save_ifs"
  628. fi
  629. fi
  630. CC="$ac_cv_prog_CC"
  631. if test -n "$CC"; then
  632.   echo "$ac_t""$CC" 1>&6
  633. else
  634.   echo "$ac_t""no" 1>&6
  635. fi
  636.  
  637. if test -z "$CC"; then
  638.   # Extract the first word of "cc", so it can be a program name with args.
  639. set dummy cc; ac_word=$2
  640. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  641. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  642.   echo $ac_n "(cached) $ac_c" 1>&6
  643. else
  644.   if test -n "$CC"; then
  645.   ac_cv_prog_CC="$CC" # Let the user override the test.
  646. else
  647.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  648.   ac_prog_rejected=no
  649.   for ac_dir in $PATH; do
  650.     test -z "$ac_dir" && ac_dir=.
  651.     if test -f $ac_dir/$ac_word; then
  652.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  653.         ac_prog_rejected=yes
  654.     continue
  655.       fi
  656.       ac_cv_prog_CC="cc"
  657.       break
  658.     fi
  659.   done
  660.   IFS="$ac_save_ifs"
  661. if test $ac_prog_rejected = yes; then
  662.   # We found a bogon in the path, so make sure we never use it.
  663.   set dummy $ac_cv_prog_CC
  664.   shift
  665.   if test $# -gt 0; then
  666.     # We chose a different compiler from the bogus one.
  667.     # However, it has the same basename, so the bogon will be chosen
  668.     # first if we set CC to just the basename; use the full file name.
  669.     shift
  670.     set dummy "$ac_dir/$ac_word" "$@"
  671.     shift
  672.     ac_cv_prog_CC="$@"
  673.   fi
  674. fi
  675. fi
  676. fi
  677. CC="$ac_cv_prog_CC"
  678. if test -n "$CC"; then
  679.   echo "$ac_t""$CC" 1>&6
  680. else
  681.   echo "$ac_t""no" 1>&6
  682. fi
  683.  
  684.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  685. fi
  686.  
  687. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  688. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  689.   echo $ac_n "(cached) $ac_c" 1>&6
  690. else
  691.   cat > conftest.c <<EOF
  692. #ifdef __GNUC__
  693.   yes;
  694. #endif
  695. EOF
  696. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  697.   ac_cv_prog_gcc=yes
  698. else
  699.   ac_cv_prog_gcc=no
  700. fi
  701. fi
  702.  
  703. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  704. if test $ac_cv_prog_gcc = yes; then
  705.   GCC=yes
  706.   if test "${CFLAGS+set}" != set; then
  707.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  708. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  709.   echo $ac_n "(cached) $ac_c" 1>&6
  710. else
  711.   echo 'void f(){}' > conftest.c
  712. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  713.   ac_cv_prog_gcc_g=yes
  714. else
  715.   ac_cv_prog_gcc_g=no
  716. fi
  717. rm -f conftest*
  718.  
  719. fi
  720.  
  721. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  722.     if test $ac_cv_prog_gcc_g = yes; then
  723.       CFLAGS="-g -O2"
  724.     else
  725.       CFLAGS="-O2"
  726.     fi
  727.   fi
  728. else
  729.   GCC=
  730.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  731. fi
  732.  
  733. ac_aux_dir=
  734. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  735.   if test -f $ac_dir/install-sh; then
  736.     ac_aux_dir=$ac_dir
  737.     ac_install_sh="$ac_aux_dir/install-sh -c"
  738.     break
  739.   elif test -f $ac_dir/install.sh; then
  740.     ac_aux_dir=$ac_dir
  741.     ac_install_sh="$ac_aux_dir/install.sh -c"
  742.     break
  743.   fi
  744. done
  745. if test -z "$ac_aux_dir"; then
  746.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  747. fi
  748. ac_config_guess=$ac_aux_dir/config.guess
  749. ac_config_sub=$ac_aux_dir/config.sub
  750. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  751.  
  752. # Find a good install program.  We prefer a C program (faster),
  753. # so one script is as good as another.  But avoid the broken or
  754. # incompatible versions:
  755. # SysV /etc/install, /usr/sbin/install
  756. # SunOS /usr/etc/install
  757. # IRIX /sbin/install
  758. # AIX /bin/install
  759. # AmigaOS /c/install
  760. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  761. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  762. # ./install, which can be erroneously created by make from ./install.sh.
  763. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  764. if test -z "$INSTALL"; then
  765. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  766.   echo $ac_n "(cached) $ac_c" 1>&6
  767. else
  768.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  769.   for ac_dir in $PATH; do
  770.     # Account for people who put trailing slashes in PATH elements.
  771.     case "$ac_dir/" in
  772.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  773.     *)
  774.       # OSF1 and SCO ODT 3.0 have their own names for install.
  775.       for ac_prog in ginstall installbsd scoinst install; do
  776.         if test -f $ac_dir/$ac_prog; then
  777.       if test $ac_prog = install &&
  778.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  779.         # AIX install.  It has an incompatible calling convention.
  780.         # OSF/1 installbsd also uses dspmsg, but is usable.
  781.         :
  782.       else
  783.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  784.         break 2
  785.       fi
  786.     fi
  787.       done
  788.       ;;
  789.     esac
  790.   done
  791.   IFS="$ac_save_ifs"
  792.  
  793. fi
  794.   if test "${ac_cv_path_install+set}" = set; then
  795.     INSTALL="$ac_cv_path_install"
  796.   else
  797.     # As a last resort, use the slow shell script.  We don't cache a
  798.     # path for INSTALL within a source directory, because that will
  799.     # break other packages using the cache if that directory is
  800.     # removed, or if the path is relative.
  801.     INSTALL="$ac_install_sh"
  802.   fi
  803. fi
  804. echo "$ac_t""$INSTALL" 1>&6
  805.  
  806. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  807. # It thinks the first close brace ends the variable substitution.
  808. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  809.  
  810. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  811.  
  812. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  813. set dummy ${MAKE-make}; ac_make=$2
  814. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  815.   echo $ac_n "(cached) $ac_c" 1>&6
  816. else
  817.   cat > conftestmake <<\EOF
  818. all:
  819.     @echo 'ac_maketemp="${MAKE}"'
  820. EOF
  821. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  822. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  823. if test -n "$ac_maketemp"; then
  824.   eval ac_cv_prog_make_${ac_make}_set=yes
  825. else
  826.   eval ac_cv_prog_make_${ac_make}_set=no
  827. fi
  828. rm -f conftestmake
  829. fi
  830. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  831.   echo "$ac_t""yes" 1>&6
  832.   SET_MAKE=
  833. else
  834.   echo "$ac_t""no" 1>&6
  835.   SET_MAKE="MAKE=${MAKE-make}"
  836. fi
  837.  
  838. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  839. # On Suns, sometimes $CPP names a directory.
  840. if test -n "$CPP" && test -d "$CPP"; then
  841.   CPP=
  842. fi
  843. if test -z "$CPP"; then
  844. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  845.   echo $ac_n "(cached) $ac_c" 1>&6
  846. else
  847.     # This must be in double quotes, not single quotes, because CPP may get
  848.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  849.   CPP="${CC-cc} -E"
  850.   # On the NeXT, cc -E runs the code through the compiler's parser,
  851.   # not just through cpp.
  852.   cat > conftest.$ac_ext <<EOF
  853. #line 854 "configure"
  854. #include "confdefs.h"
  855. #include <assert.h>
  856. Syntax Error
  857. EOF
  858. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  859. { (eval echo configure:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  860. ac_err=`grep -v '^ *+' conftest.out`
  861. if test -z "$ac_err"; then
  862.   :
  863. else
  864.   echo "$ac_err" >&5
  865.   rm -rf conftest*
  866.   CPP="${CC-cc} -E -traditional-cpp"
  867.   cat > conftest.$ac_ext <<EOF
  868. #line 869 "configure"
  869. #include "confdefs.h"
  870. #include <assert.h>
  871. Syntax Error
  872. EOF
  873. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  874. { (eval echo configure:875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  875. ac_err=`grep -v '^ *+' conftest.out`
  876. if test -z "$ac_err"; then
  877.   :
  878. else
  879.   echo "$ac_err" >&5
  880.   rm -rf conftest*
  881.   CPP=/lib/cpp
  882. fi
  883. rm -f conftest*
  884. fi
  885. rm -f conftest*
  886.   ac_cv_prog_CPP="$CPP"
  887. fi
  888.   CPP="$ac_cv_prog_CPP"
  889. else
  890.   ac_cv_prog_CPP="$CPP"
  891. fi
  892. echo "$ac_t""$CPP" 1>&6
  893.  
  894. if test $ac_cv_prog_gcc = yes; then
  895.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  896. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  897.   echo $ac_n "(cached) $ac_c" 1>&6
  898. else
  899.     ac_pattern="Autoconf.*'x'"
  900.   cat > conftest.$ac_ext <<EOF
  901. #line 902 "configure"
  902. #include "confdefs.h"
  903. #include <sgtty.h>
  904. Autoconf TIOCGETP
  905. EOF
  906. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  907.   egrep "$ac_pattern" >/dev/null 2>&1; then
  908.   rm -rf conftest*
  909.   ac_cv_prog_gcc_traditional=yes
  910. else
  911.   rm -rf conftest*
  912.   ac_cv_prog_gcc_traditional=no
  913. fi
  914. rm -f conftest*
  915.  
  916.  
  917.   if test $ac_cv_prog_gcc_traditional = no; then
  918.     cat > conftest.$ac_ext <<EOF
  919. #line 920 "configure"
  920. #include "confdefs.h"
  921. #include <termio.h>
  922. Autoconf TCGETA
  923. EOF
  924. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  925.   egrep "$ac_pattern" >/dev/null 2>&1; then
  926.   rm -rf conftest*
  927.   ac_cv_prog_gcc_traditional=yes
  928. fi
  929. rm -f conftest*
  930.  
  931.   fi
  932. fi
  933.  
  934. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  935.   if test $ac_cv_prog_gcc_traditional = yes; then
  936.     CC="$CC -traditional"
  937.   fi
  938. fi
  939.  
  940. # Extract the first word of "ranlib", so it can be a program name with args.
  941. set dummy ranlib; ac_word=$2
  942. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  943. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  944.   echo $ac_n "(cached) $ac_c" 1>&6
  945. else
  946.   if test -n "$RANLIB"; then
  947.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  948. else
  949.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  950.   for ac_dir in $PATH; do
  951.     test -z "$ac_dir" && ac_dir=.
  952.     if test -f $ac_dir/$ac_word; then
  953.       ac_cv_prog_RANLIB="ranlib"
  954.       break
  955.     fi
  956.   done
  957.   IFS="$ac_save_ifs"
  958.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  959. fi
  960. fi
  961. RANLIB="$ac_cv_prog_RANLIB"
  962. if test -n "$RANLIB"; then
  963.   echo "$ac_t""$RANLIB" 1>&6
  964. else
  965.   echo "$ac_t""no" 1>&6
  966. fi
  967.  
  968. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  969. cat > conftest.$ac_ext <<EOF
  970. #line 971 "configure"
  971. #include "confdefs.h"
  972. #ifdef _AIX
  973.   yes
  974. #endif
  975.  
  976. EOF
  977. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  978.   egrep "yes" >/dev/null 2>&1; then
  979.   rm -rf conftest*
  980.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  981. #define _ALL_SOURCE 1
  982. EOF
  983.  
  984. else
  985.   rm -rf conftest*
  986.   echo "$ac_t""no" 1>&6
  987. fi
  988. rm -f conftest*
  989.  
  990.  
  991. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  992. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  993. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  994.   echo $ac_n "(cached) $ac_c" 1>&6
  995. else
  996.   cat > conftest.$ac_ext <<EOF
  997. #line 998 "configure"
  998. #include "confdefs.h"
  999. #include <minix/config.h>
  1000. EOF
  1001. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1002. { (eval echo configure:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1003. ac_err=`grep -v '^ *+' conftest.out`
  1004. if test -z "$ac_err"; then
  1005.   rm -rf conftest*
  1006.   eval "ac_cv_header_$ac_safe=yes"
  1007. else
  1008.   echo "$ac_err" >&5
  1009.   rm -rf conftest*
  1010.   eval "ac_cv_header_$ac_safe=no"
  1011. fi
  1012. rm -f conftest*
  1013. fi
  1014. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1015.   echo "$ac_t""yes" 1>&6
  1016.   MINIX=yes
  1017. else
  1018.   echo "$ac_t""no" 1>&6
  1019. MINIX=
  1020. fi
  1021.  
  1022. if test "$MINIX" = yes; then
  1023.   cat >> confdefs.h <<\EOF
  1024. #define _POSIX_SOURCE 1
  1025. EOF
  1026.  
  1027.   cat >> confdefs.h <<\EOF
  1028. #define _POSIX_1_SOURCE 2
  1029. EOF
  1030.  
  1031.   cat >> confdefs.h <<\EOF
  1032. #define _MINIX 1
  1033. EOF
  1034.  
  1035. fi
  1036.  
  1037. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1038. if test -d /etc/conf/kconfig.d &&
  1039.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1040. then
  1041.   echo "$ac_t""yes" 1>&6
  1042.   ISC=yes # If later tests want to check for ISC.
  1043.   cat >> confdefs.h <<\EOF
  1044. #define _POSIX_SOURCE 1
  1045. EOF
  1046.  
  1047.   if test "$GCC" = yes; then
  1048.     CC="$CC -posix"
  1049.   else
  1050.     CC="$CC -Xp"
  1051.   fi
  1052. else
  1053.   echo "$ac_t""no" 1>&6
  1054.   ISC=
  1055. fi
  1056.  
  1057.  
  1058. echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
  1059. # Check whether --with-regex or --without-regex was given.
  1060. if test "${with_regex+set}" = set; then
  1061.   withval="$with_regex"
  1062.   if test "$withval" = yes; then
  1063.   ac_with_regex=1
  1064.   echo "$ac_t""regex" 1>&6
  1065.   cat >> confdefs.h <<\EOF
  1066. #define WITH_REGEX 1
  1067. EOF
  1068.  
  1069.   REGEXOBJ=regex.o
  1070. fi
  1071. fi
  1072.  
  1073. if test -z "$ac_with_regex"; then
  1074.   echo "$ac_t""rx" 1>&6
  1075.   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
  1076. if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
  1077.   echo $ac_n "(cached) $ac_c" 1>&6
  1078. else
  1079.   cat > conftest.$ac_ext <<EOF
  1080. #line 1081 "configure"
  1081. #include "confdefs.h"
  1082. /* System header to define __stub macros and hopefully few prototypes,
  1083.     which can conflict with char re_rx_search(); below.  */
  1084. #include <assert.h>
  1085. /* Override any gcc2 internal prototype to avoid an error.  */
  1086. /* We use char because int might match the return type of a gcc2
  1087.     builtin and then its argument prototype would still apply.  */
  1088. char re_rx_search();
  1089.  
  1090. int main() { t(); return 0; }
  1091. int t() {
  1092.  
  1093. /* The GNU C library defines this for functions which it implements
  1094.     to always fail with ENOSYS.  Some functions are actually named
  1095.     something starting with __ and the normal name is an alias.  */
  1096. #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
  1097. choke me
  1098. #else
  1099. re_rx_search();
  1100. #endif
  1101.  
  1102. ; return 0; }
  1103. EOF
  1104. if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1105.   rm -rf conftest*
  1106.   eval "ac_cv_func_re_rx_search=yes"
  1107. else
  1108.   rm -rf conftest*
  1109.   eval "ac_cv_func_re_rx_search=no"
  1110. fi
  1111. rm -f conftest*
  1112.  
  1113. fi
  1114. if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
  1115.   echo "$ac_t""yes" 1>&6
  1116.   :
  1117. else
  1118.   echo "$ac_t""no" 1>&6
  1119. REGEXOBJ=rx.o
  1120. fi
  1121.  
  1122. fi
  1123.  
  1124.  
  1125. for ac_hdr in limits.h string.h memory.h fcntl.h float.h unistd.h values.h
  1126. do
  1127. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1128. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1129. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1130.   echo $ac_n "(cached) $ac_c" 1>&6
  1131. else
  1132.   cat > conftest.$ac_ext <<EOF
  1133. #line 1134 "configure"
  1134. #include "confdefs.h"
  1135. #include <$ac_hdr>
  1136. EOF
  1137. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1138. { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1139. ac_err=`grep -v '^ *+' conftest.out`
  1140. if test -z "$ac_err"; then
  1141.   rm -rf conftest*
  1142.   eval "ac_cv_header_$ac_safe=yes"
  1143. else
  1144.   echo "$ac_err" >&5
  1145.   rm -rf conftest*
  1146.   eval "ac_cv_header_$ac_safe=no"
  1147. fi
  1148. rm -f conftest*
  1149. fi
  1150. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1151.   echo "$ac_t""yes" 1>&6
  1152.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1153.   cat >> confdefs.h <<EOF
  1154. #define $ac_tr_hdr 1
  1155. EOF
  1156.  
  1157. else
  1158.   echo "$ac_t""no" 1>&6
  1159. fi
  1160. done
  1161.  
  1162. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1163. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1164.   echo $ac_n "(cached) $ac_c" 1>&6
  1165. else
  1166.   cat > conftest.$ac_ext <<EOF
  1167. #line 1168 "configure"
  1168. #include "confdefs.h"
  1169. #include <sys/types.h>
  1170. #include <sys/stat.h>
  1171.  
  1172. #if defined(S_ISBLK) && defined(S_IFDIR)
  1173. # if S_ISBLK (S_IFDIR)
  1174. You lose.
  1175. # endif
  1176. #endif
  1177.  
  1178. #if defined(S_ISBLK) && defined(S_IFCHR)
  1179. # if S_ISBLK (S_IFCHR)
  1180. You lose.
  1181. # endif
  1182. #endif
  1183.  
  1184. #if defined(S_ISLNK) && defined(S_IFREG)
  1185. # if S_ISLNK (S_IFREG)
  1186. You lose.
  1187. # endif
  1188. #endif
  1189.  
  1190. #if defined(S_ISSOCK) && defined(S_IFREG)
  1191. # if S_ISSOCK (S_IFREG)
  1192. You lose.
  1193. # endif
  1194. #endif
  1195.  
  1196. EOF
  1197. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1198.   egrep "You lose" >/dev/null 2>&1; then
  1199.   rm -rf conftest*
  1200.   ac_cv_header_stat_broken=yes
  1201. else
  1202.   rm -rf conftest*
  1203.   ac_cv_header_stat_broken=no
  1204. fi
  1205. rm -f conftest*
  1206.  
  1207. fi
  1208.  
  1209. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1210. if test $ac_cv_header_stat_broken = yes; then
  1211.   cat >> confdefs.h <<\EOF
  1212. #define STAT_MACROS_BROKEN 1
  1213. EOF
  1214.  
  1215. fi
  1216.  
  1217. # If we cannot run a trivial program, we must be cross compiling.
  1218. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1219. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1220.   echo $ac_n "(cached) $ac_c" 1>&6
  1221. else
  1222.   if test "$cross_compiling" = yes; then
  1223.   ac_cv_c_cross=yes
  1224. else
  1225. cat > conftest.$ac_ext <<EOF
  1226. #line 1227 "configure"
  1227. #include "confdefs.h"
  1228. main(){return(0);}
  1229. EOF
  1230. { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1231. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1232.   ac_cv_c_cross=no
  1233. else
  1234.   ac_cv_c_cross=yes
  1235. fi
  1236. fi
  1237. rm -fr conftest*
  1238. fi
  1239.  
  1240. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1241. cross_compiling=$ac_cv_c_cross
  1242.  
  1243. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1244. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1245.   echo $ac_n "(cached) $ac_c" 1>&6
  1246. else
  1247.   cat > conftest.$ac_ext <<EOF
  1248. #line 1249 "configure"
  1249. #include "confdefs.h"
  1250. #include <stdlib.h>
  1251. #include <stdarg.h>
  1252. #include <string.h>
  1253. #include <float.h>
  1254. EOF
  1255. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1256. { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1257. ac_err=`grep -v '^ *+' conftest.out`
  1258. if test -z "$ac_err"; then
  1259.   rm -rf conftest*
  1260.   ac_cv_header_stdc=yes
  1261. else
  1262.   echo "$ac_err" >&5
  1263.   rm -rf conftest*
  1264.   ac_cv_header_stdc=no
  1265. fi
  1266. rm -f conftest*
  1267.  
  1268. if test $ac_cv_header_stdc = yes; then
  1269.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1270. cat > conftest.$ac_ext <<EOF
  1271. #line 1272 "configure"
  1272. #include "confdefs.h"
  1273. #include <string.h>
  1274. EOF
  1275. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1276.   egrep "memchr" >/dev/null 2>&1; then
  1277.   :
  1278. else
  1279.   rm -rf conftest*
  1280.   ac_cv_header_stdc=no
  1281. fi
  1282. rm -f conftest*
  1283.  
  1284. fi
  1285.  
  1286. if test $ac_cv_header_stdc = yes; then
  1287.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1288. cat > conftest.$ac_ext <<EOF
  1289. #line 1290 "configure"
  1290. #include "confdefs.h"
  1291. #include <stdlib.h>
  1292. EOF
  1293. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1294.   egrep "free" >/dev/null 2>&1; then
  1295.   :
  1296. else
  1297.   rm -rf conftest*
  1298.   ac_cv_header_stdc=no
  1299. fi
  1300. rm -f conftest*
  1301.  
  1302. fi
  1303.  
  1304. if test $ac_cv_header_stdc = yes; then
  1305.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1306. if test "$cross_compiling" = yes; then
  1307.   :
  1308. else
  1309. cat > conftest.$ac_ext <<EOF
  1310. #line 1311 "configure"
  1311. #include "confdefs.h"
  1312. #include <ctype.h>
  1313. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1314. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1315. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1316. int main () { int i; for (i = 0; i < 256; i++)
  1317. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1318. exit (0); }
  1319.  
  1320. EOF
  1321. { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1322. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1323.   :
  1324. else
  1325.   ac_cv_header_stdc=no
  1326. fi
  1327. fi
  1328. rm -fr conftest*
  1329. fi
  1330. fi
  1331.  
  1332. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1333. if test $ac_cv_header_stdc = yes; then
  1334.   cat >> confdefs.h <<\EOF
  1335. #define STDC_HEADERS 1
  1336. EOF
  1337.  
  1338. fi
  1339.  
  1340.  
  1341. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  1342. if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  1343.   echo $ac_n "(cached) $ac_c" 1>&6
  1344. else
  1345.   ac_cv_prog_cc_stdc=no
  1346. ac_save_CFLAGS="$CFLAGS"
  1347. # Don't try gcc -ansi; that turns off useful extensions and
  1348. # breaks some systems' header files.
  1349. # AIX            -qlanglvl=ansi
  1350. # Ultrix and OSF/1    -std1
  1351. # HP-UX            -Aa -D_HPUX_SOURCE
  1352. # SVR4            -Xc -D__EXTENSIONS__
  1353. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1354. do
  1355.   CFLAGS="$ac_save_CFLAGS $ac_arg"
  1356.   cat > conftest.$ac_ext <<EOF
  1357. #line 1358 "configure"
  1358. #include "confdefs.h"
  1359. #if !defined(__STDC__) || __STDC__ != 1
  1360. choke me
  1361. #endif
  1362.  
  1363. int main() { return 0; }
  1364. int t() {
  1365. /* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
  1366. #include <sys/types.h>
  1367. #include <sys/stat.h>
  1368. int test (int i, double x);
  1369. struct s1 {int (*f) (int a);};
  1370. struct s2 {int (*f) (double a);};
  1371. ; return 0; }
  1372. EOF
  1373. if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1374.   rm -rf conftest*
  1375.   ac_cv_prog_cc_stdc="$ac_arg"; break
  1376. fi
  1377. rm -f conftest*
  1378.  
  1379. done
  1380. CFLAGS="$ac_save_CFLAGS"
  1381.  
  1382. fi
  1383.  
  1384. echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
  1385. case "x$ac_cv_prog_cc_stdc" in
  1386.   x|xno) ;;
  1387.   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  1388. esac
  1389.  
  1390.  
  1391. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  1392. if test "$ac_cv_prog_cc_stdc" != no; then
  1393.   echo "$ac_t""yes" 1>&6
  1394.   cat >> confdefs.h <<\EOF
  1395. #define PROTOTYPES 1
  1396. EOF
  1397.  
  1398.   U= ANSI2KNR=
  1399. else
  1400.   echo "$ac_t""no" 1>&6
  1401.   U=_ ANSI2KNR=./ansi2knr
  1402. fi
  1403.  
  1404.  
  1405. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1406. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1407.   echo $ac_n "(cached) $ac_c" 1>&6
  1408. else
  1409.   ac_cv_c_bigendian=unknown
  1410. # See if sys/param.h defines the BYTE_ORDER macro.
  1411. cat > conftest.$ac_ext <<EOF
  1412. #line 1413 "configure"
  1413. #include "confdefs.h"
  1414. #include <sys/types.h>
  1415. #include <sys/param.h>
  1416. int main() { return 0; }
  1417. int t() {
  1418.  
  1419. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1420.  bogus endian macros
  1421. #endif
  1422. ; return 0; }
  1423. EOF
  1424. if { (eval echo configure:1425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1425.   rm -rf conftest*
  1426.   # It does; now see whether it defined to BIG_ENDIAN or not.
  1427. cat > conftest.$ac_ext <<EOF
  1428. #line 1429 "configure"
  1429. #include "confdefs.h"
  1430. #include <sys/types.h>
  1431. #include <sys/param.h>
  1432. int main() { return 0; }
  1433. int t() {
  1434.  
  1435. #if BYTE_ORDER != BIG_ENDIAN
  1436.  not big endian
  1437. #endif
  1438. ; return 0; }
  1439. EOF
  1440. if { (eval echo configure:1441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1441.   rm -rf conftest*
  1442.   ac_cv_c_bigendian=yes
  1443. else
  1444.   rm -rf conftest*
  1445.   ac_cv_c_bigendian=no
  1446. fi
  1447. rm -f conftest*
  1448.  
  1449. fi
  1450. rm -f conftest*
  1451.  
  1452. if test $ac_cv_c_bigendian = unknown; then
  1453. if test "$cross_compiling" = yes; then
  1454.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1455. else
  1456. cat > conftest.$ac_ext <<EOF
  1457. #line 1458 "configure"
  1458. #include "confdefs.h"
  1459. main () {
  1460.   /* Are we little or big endian?  From Harbison&Steele.  */
  1461.   union
  1462.   {
  1463.     long l;
  1464.     char c[sizeof (long)];
  1465.   } u;
  1466.   u.l = 1;
  1467.   exit (u.c[sizeof (long) - 1] == 1);
  1468. }
  1469. EOF
  1470. { (eval echo configure:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1471. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1472.   ac_cv_c_bigendian=no
  1473. else
  1474.   ac_cv_c_bigendian=yes
  1475. fi
  1476. fi
  1477. rm -fr conftest*
  1478. fi
  1479. fi
  1480.  
  1481. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  1482. if test $ac_cv_c_bigendian = yes; then
  1483.   cat >> confdefs.h <<\EOF
  1484. #define WORDS_BIGENDIAN 1
  1485. EOF
  1486.  
  1487. fi
  1488.  
  1489. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1490. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1491.   echo $ac_n "(cached) $ac_c" 1>&6
  1492. else
  1493.   cat > conftest.$ac_ext <<EOF
  1494. #line 1495 "configure"
  1495. #include "confdefs.h"
  1496.  
  1497. int main() { return 0; }
  1498. int t() {
  1499.  
  1500. /* Ultrix mips cc rejects this.  */
  1501. typedef int charset[2]; const charset x;
  1502. /* SunOS 4.1.1 cc rejects this.  */
  1503. char const *const *ccp;
  1504. char **p;
  1505. /* NEC SVR4.0.2 mips cc rejects this.  */
  1506. struct point {int x, y;};
  1507. static struct point const zero = {0,0};
  1508. /* AIX XL C 1.02.0.0 rejects this.
  1509.    It does not let you subtract one const X* pointer from another in an arm
  1510.    of an if-expression whose if-part is not a constant expression */
  1511. const char *g = "string";
  1512. ccp = &g + (g ? g-g : 0);
  1513. /* HPUX 7.0 cc rejects these. */
  1514. ++ccp;
  1515. p = (char**) ccp;
  1516. ccp = (char const *const *) p;
  1517. { /* SCO 3.2v4 cc rejects this.  */
  1518.   char *t;
  1519.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1520.  
  1521.   *t++ = 0;
  1522. }
  1523. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1524.   int x[] = {25, 17};
  1525.   const int *foo = &x[0];
  1526.   ++foo;
  1527. }
  1528. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1529.   typedef const int *iptr;
  1530.   iptr p = 0;
  1531.   ++p;
  1532. }
  1533. { /* AIX XL C 1.02.0.0 rejects this saying
  1534.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1535.   struct s { int j; const int *ap[3]; };
  1536.   struct s *b; b->j = 5;
  1537. }
  1538. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1539.   const int foo = 10;
  1540. }
  1541.  
  1542. ; return 0; }
  1543. EOF
  1544. if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1545.   rm -rf conftest*
  1546.   ac_cv_c_const=yes
  1547. else
  1548.   rm -rf conftest*
  1549.   ac_cv_c_const=no
  1550. fi
  1551. rm -f conftest*
  1552.  
  1553. fi
  1554.  
  1555. echo "$ac_t""$ac_cv_c_const" 1>&6
  1556. if test $ac_cv_c_const = no; then
  1557.   cat >> confdefs.h <<\EOF
  1558. #define const 
  1559. EOF
  1560.  
  1561. fi
  1562.  
  1563. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1564. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1565.   echo $ac_n "(cached) $ac_c" 1>&6
  1566. else
  1567.   ac_cv_c_inline=no
  1568. for ac_kw in inline __inline__ __inline; do
  1569.   cat > conftest.$ac_ext <<EOF
  1570. #line 1571 "configure"
  1571. #include "confdefs.h"
  1572.  
  1573. int main() { return 0; }
  1574. int t() {
  1575. } $ac_kw foo() {
  1576. ; return 0; }
  1577. EOF
  1578. if { (eval echo configure:1579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1579.   rm -rf conftest*
  1580.   ac_cv_c_inline=$ac_kw; break
  1581. fi
  1582. rm -f conftest*
  1583.  
  1584. done
  1585.  
  1586. fi
  1587.  
  1588. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1589. case "$ac_cv_c_inline" in
  1590.   inline | yes) ;;
  1591.   no) cat >> confdefs.h <<\EOF
  1592. #define inline 
  1593. EOF
  1594.  ;;
  1595.   *)  cat >> confdefs.h <<EOF
  1596. #define inline $ac_cv_c_inline
  1597. EOF
  1598.  ;;
  1599. esac
  1600.  
  1601. echo $ac_n "checking for long double""... $ac_c" 1>&6
  1602. if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
  1603.   echo $ac_n "(cached) $ac_c" 1>&6
  1604. else
  1605.   if test "$GCC" = yes; then
  1606.   ac_cv_c_long_double=yes
  1607. else
  1608. if test "$cross_compiling" = yes; then
  1609.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1610. else
  1611. cat > conftest.$ac_ext <<EOF
  1612. #line 1613 "configure"
  1613. #include "confdefs.h"
  1614. int main() {
  1615. /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
  1616. long double foo = 0.0;
  1617. /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
  1618. exit(sizeof(long double) < sizeof(double)); }
  1619. EOF
  1620. { (eval echo configure:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1621. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1622.   ac_cv_c_long_double=yes
  1623. else
  1624.   ac_cv_c_long_double=no
  1625. fi
  1626. fi
  1627. rm -fr conftest*
  1628. fi
  1629. fi
  1630.  
  1631. echo "$ac_t""$ac_cv_c_long_double" 1>&6
  1632. if test $ac_cv_c_long_double = yes; then
  1633.   cat >> confdefs.h <<\EOF
  1634. #define HAVE_LONG_DOUBLE 1
  1635. EOF
  1636.  
  1637. fi
  1638.  
  1639.  
  1640. ac_header_dirent=no
  1641. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1642. do
  1643. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1644. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1645. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1646.   echo $ac_n "(cached) $ac_c" 1>&6
  1647. else
  1648.   cat > conftest.$ac_ext <<EOF
  1649. #line 1650 "configure"
  1650. #include "confdefs.h"
  1651. #include <sys/types.h>
  1652. #include <$ac_hdr>
  1653. int main() { return 0; }
  1654. int t() {
  1655. DIR *dirp = 0;
  1656. ; return 0; }
  1657. EOF
  1658. if { (eval echo configure:1659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1659.   rm -rf conftest*
  1660.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1661. else
  1662.   rm -rf conftest*
  1663.   eval "ac_cv_header_dirent_$ac_safe=no"
  1664. fi
  1665. rm -f conftest*
  1666.  
  1667. fi
  1668. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1669.   echo "$ac_t""yes" 1>&6
  1670.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1671.   cat >> confdefs.h <<EOF
  1672. #define $ac_tr_hdr 1
  1673. EOF
  1674.  ac_header_dirent=$ac_hdr; break
  1675. else
  1676.   echo "$ac_t""no" 1>&6
  1677. fi
  1678. done
  1679. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1680. if test $ac_header_dirent = dirent.h; then
  1681. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1682. ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  1683. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1684.   echo $ac_n "(cached) $ac_c" 1>&6
  1685. else
  1686.   ac_save_LIBS="$LIBS"
  1687. LIBS="-ldir  $LIBS"
  1688. cat > conftest.$ac_ext <<EOF
  1689. #line 1690 "configure"
  1690. #include "confdefs.h"
  1691. /* Override any gcc2 internal prototype to avoid an error.  */
  1692. /* We use char because int might match the return type of a gcc2
  1693.     builtin and then its argument prototype would still apply.  */
  1694. char opendir();
  1695.  
  1696. int main() { t(); return 0; }
  1697. int t() {
  1698. opendir()
  1699. ; return 0; }
  1700. EOF
  1701. if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1702.   rm -rf conftest*
  1703.   eval "ac_cv_lib_$ac_lib_var=yes"
  1704. else
  1705.   rm -rf conftest*
  1706.   eval "ac_cv_lib_$ac_lib_var=no"
  1707. fi
  1708. rm -f conftest*
  1709. LIBS="$ac_save_LIBS"
  1710.  
  1711. fi
  1712. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1713.   echo "$ac_t""yes" 1>&6
  1714.   LIBS="$LIBS -ldir"
  1715. else
  1716.   echo "$ac_t""no" 1>&6
  1717. fi
  1718.  
  1719. else
  1720. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1721. ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1722. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1723.   echo $ac_n "(cached) $ac_c" 1>&6
  1724. else
  1725.   ac_save_LIBS="$LIBS"
  1726. LIBS="-lx  $LIBS"
  1727. cat > conftest.$ac_ext <<EOF
  1728. #line 1729 "configure"
  1729. #include "confdefs.h"
  1730. /* Override any gcc2 internal prototype to avoid an error.  */
  1731. /* We use char because int might match the return type of a gcc2
  1732.     builtin and then its argument prototype would still apply.  */
  1733. char opendir();
  1734.  
  1735. int main() { t(); return 0; }
  1736. int t() {
  1737. opendir()
  1738. ; return 0; }
  1739. EOF
  1740. if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1741.   rm -rf conftest*
  1742.   eval "ac_cv_lib_$ac_lib_var=yes"
  1743. else
  1744.   rm -rf conftest*
  1745.   eval "ac_cv_lib_$ac_lib_var=no"
  1746. fi
  1747. rm -f conftest*
  1748. LIBS="$ac_save_LIBS"
  1749.  
  1750. fi
  1751. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1752.   echo "$ac_t""yes" 1>&6
  1753.   LIBS="$LIBS -lx"
  1754. else
  1755.   echo "$ac_t""no" 1>&6
  1756. fi
  1757.  
  1758. fi
  1759.  
  1760. echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
  1761. if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
  1762.   echo $ac_n "(cached) $ac_c" 1>&6
  1763. else
  1764.   cat > conftest.$ac_ext <<EOF
  1765. #line 1766 "configure"
  1766. #include "confdefs.h"
  1767. #include <sys/types.h>
  1768. #include <sys/stat.h>
  1769. int main() { return 0; }
  1770. int t() {
  1771. struct stat s; s.st_blksize;
  1772. ; return 0; }
  1773. EOF
  1774. if { (eval echo configure:1775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1775.   rm -rf conftest*
  1776.   ac_cv_struct_st_blksize=yes
  1777. else
  1778.   rm -rf conftest*
  1779.   ac_cv_struct_st_blksize=no
  1780. fi
  1781. rm -f conftest*
  1782.  
  1783. fi
  1784.  
  1785. echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
  1786. if test $ac_cv_struct_st_blksize = yes; then
  1787.   cat >> confdefs.h <<\EOF
  1788. #define HAVE_ST_BLKSIZE 1
  1789. EOF
  1790.  
  1791. fi
  1792.  
  1793. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  1794. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  1795.   echo $ac_n "(cached) $ac_c" 1>&6
  1796. else
  1797.   cat > conftest.$ac_ext <<EOF
  1798. #line 1799 "configure"
  1799. #include "confdefs.h"
  1800. #include <sys/types.h>
  1801. #if STDC_HEADERS
  1802. #include <stdlib.h>
  1803. #endif
  1804. EOF
  1805. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1806.   egrep "off_t" >/dev/null 2>&1; then
  1807.   rm -rf conftest*
  1808.   ac_cv_type_off_t=yes
  1809. else
  1810.   rm -rf conftest*
  1811.   ac_cv_type_off_t=no
  1812. fi
  1813. rm -f conftest*
  1814.  
  1815. fi
  1816. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  1817. if test $ac_cv_type_off_t = no; then
  1818.   cat >> confdefs.h <<\EOF
  1819. #define off_t long
  1820. EOF
  1821.  
  1822. fi
  1823.  
  1824. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1825. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1826.   echo $ac_n "(cached) $ac_c" 1>&6
  1827. else
  1828.   cat > conftest.$ac_ext <<EOF
  1829. #line 1830 "configure"
  1830. #include "confdefs.h"
  1831. #include <sys/types.h>
  1832. #include <signal.h>
  1833. #ifdef signal
  1834. #undef signal
  1835. #endif
  1836. #ifdef __cplusplus
  1837. extern "C" void (*signal (int, void (*)(int)))(int);
  1838. #else
  1839. void (*signal ()) ();
  1840. #endif
  1841.  
  1842. int main() { return 0; }
  1843. int t() {
  1844. int i;
  1845. ; return 0; }
  1846. EOF
  1847. if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1848.   rm -rf conftest*
  1849.   ac_cv_type_signal=void
  1850. else
  1851.   rm -rf conftest*
  1852.   ac_cv_type_signal=int
  1853. fi
  1854. rm -f conftest*
  1855.  
  1856. fi
  1857.  
  1858. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1859. cat >> confdefs.h <<EOF
  1860. #define RETSIGTYPE $ac_cv_type_signal
  1861. EOF
  1862.  
  1863.  
  1864. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1865. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1866.   echo $ac_n "(cached) $ac_c" 1>&6
  1867. else
  1868.   cat > conftest.$ac_ext <<EOF
  1869. #line 1870 "configure"
  1870. #include "confdefs.h"
  1871. #include <sys/types.h>
  1872. #if STDC_HEADERS
  1873. #include <stdlib.h>
  1874. #endif
  1875. EOF
  1876. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1877.   egrep "size_t" >/dev/null 2>&1; then
  1878.   rm -rf conftest*
  1879.   ac_cv_type_size_t=yes
  1880. else
  1881.   rm -rf conftest*
  1882.   ac_cv_type_size_t=no
  1883. fi
  1884. rm -f conftest*
  1885.  
  1886. fi
  1887. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1888. if test $ac_cv_type_size_t = no; then
  1889.   cat >> confdefs.h <<\EOF
  1890. #define size_t unsigned
  1891. EOF
  1892.  
  1893. fi
  1894.  
  1895.  
  1896. for ac_func in getdelim strerror isascii strchr strrchr
  1897. do
  1898. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1899. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1900.   echo $ac_n "(cached) $ac_c" 1>&6
  1901. else
  1902.   cat > conftest.$ac_ext <<EOF
  1903. #line 1904 "configure"
  1904. #include "confdefs.h"
  1905. /* System header to define __stub macros and hopefully few prototypes,
  1906.     which can conflict with char $ac_func(); below.  */
  1907. #include <assert.h>
  1908. /* Override any gcc2 internal prototype to avoid an error.  */
  1909. /* We use char because int might match the return type of a gcc2
  1910.     builtin and then its argument prototype would still apply.  */
  1911. char $ac_func();
  1912.  
  1913. int main() { t(); return 0; }
  1914. int t() {
  1915.  
  1916. /* The GNU C library defines this for functions which it implements
  1917.     to always fail with ENOSYS.  Some functions are actually named
  1918.     something starting with __ and the normal name is an alias.  */
  1919. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1920. choke me
  1921. #else
  1922. $ac_func();
  1923. #endif
  1924.  
  1925. ; return 0; }
  1926. EOF
  1927. if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1928.   rm -rf conftest*
  1929.   eval "ac_cv_func_$ac_func=yes"
  1930. else
  1931.   rm -rf conftest*
  1932.   eval "ac_cv_func_$ac_func=no"
  1933. fi
  1934. rm -f conftest*
  1935.  
  1936. fi
  1937. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1938.   echo "$ac_t""yes" 1>&6
  1939.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1940.   cat >> confdefs.h <<EOF
  1941. #define $ac_tr_func 1
  1942. EOF
  1943.  
  1944. else
  1945.   echo "$ac_t""no" 1>&6
  1946. fi
  1947. done
  1948.  
  1949. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1950. # for constant arguments.  Useless!
  1951. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1952. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1953.   echo $ac_n "(cached) $ac_c" 1>&6
  1954. else
  1955.   cat > conftest.$ac_ext <<EOF
  1956. #line 1957 "configure"
  1957. #include "confdefs.h"
  1958. #include <alloca.h>
  1959. int main() { t(); return 0; }
  1960. int t() {
  1961. char *p = alloca(2 * sizeof(int));
  1962. ; return 0; }
  1963. EOF
  1964. if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1965.   rm -rf conftest*
  1966.   ac_cv_header_alloca_h=yes
  1967. else
  1968.   rm -rf conftest*
  1969.   ac_cv_header_alloca_h=no
  1970. fi
  1971. rm -f conftest*
  1972.  
  1973. fi
  1974.  
  1975. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1976. if test $ac_cv_header_alloca_h = yes; then
  1977.   cat >> confdefs.h <<\EOF
  1978. #define HAVE_ALLOCA_H 1
  1979. EOF
  1980.  
  1981. fi
  1982.  
  1983. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1984. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1985.   echo $ac_n "(cached) $ac_c" 1>&6
  1986. else
  1987.   cat > conftest.$ac_ext <<EOF
  1988. #line 1989 "configure"
  1989. #include "confdefs.h"
  1990.  
  1991. #ifdef __GNUC__
  1992. # define alloca __builtin_alloca
  1993. #else
  1994. # if HAVE_ALLOCA_H
  1995. #  include <alloca.h>
  1996. # else
  1997. #  ifdef _AIX
  1998.  #pragma alloca
  1999. #  else
  2000. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  2001. char *alloca ();
  2002. #   endif
  2003. #  endif
  2004. # endif
  2005. #endif
  2006.  
  2007. int main() { t(); return 0; }
  2008. int t() {
  2009. char *p = (char *) alloca(1);
  2010. ; return 0; }
  2011. EOF
  2012. if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2013.   rm -rf conftest*
  2014.   ac_cv_func_alloca=yes
  2015. else
  2016.   rm -rf conftest*
  2017.   ac_cv_func_alloca=no
  2018. fi
  2019. rm -f conftest*
  2020.  
  2021. fi
  2022.  
  2023. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  2024. if test $ac_cv_func_alloca = yes; then
  2025.   cat >> confdefs.h <<\EOF
  2026. #define HAVE_ALLOCA 1
  2027. EOF
  2028.  
  2029. fi
  2030.  
  2031. if test $ac_cv_func_alloca = no; then
  2032.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2033.   # that cause trouble.  Some versions do not even contain alloca or
  2034.   # contain a buggy version.  If you still want to use their alloca,
  2035.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2036.   ALLOCA=alloca.o
  2037.   cat >> confdefs.h <<\EOF
  2038. #define C_ALLOCA 1
  2039. EOF
  2040.  
  2041.  
  2042. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2043. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2044.   echo $ac_n "(cached) $ac_c" 1>&6
  2045. else
  2046.   cat > conftest.$ac_ext <<EOF
  2047. #line 2048 "configure"
  2048. #include "confdefs.h"
  2049. #if defined(CRAY) && ! defined(CRAY2)
  2050. webecray
  2051. #else
  2052. wenotbecray
  2053. #endif
  2054.  
  2055. EOF
  2056. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2057.   egrep "webecray" >/dev/null 2>&1; then
  2058.   rm -rf conftest*
  2059.   ac_cv_os_cray=yes
  2060. else
  2061.   rm -rf conftest*
  2062.   ac_cv_os_cray=no
  2063. fi
  2064. rm -f conftest*
  2065.  
  2066. fi
  2067.  
  2068. echo "$ac_t""$ac_cv_os_cray" 1>&6
  2069. if test $ac_cv_os_cray = yes; then
  2070. for ac_func in _getb67 GETB67 getb67; do
  2071.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2072. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2073.   echo $ac_n "(cached) $ac_c" 1>&6
  2074. else
  2075.   cat > conftest.$ac_ext <<EOF
  2076. #line 2077 "configure"
  2077. #include "confdefs.h"
  2078. /* System header to define __stub macros and hopefully few prototypes,
  2079.     which can conflict with char $ac_func(); below.  */
  2080. #include <assert.h>
  2081. /* Override any gcc2 internal prototype to avoid an error.  */
  2082. /* We use char because int might match the return type of a gcc2
  2083.     builtin and then its argument prototype would still apply.  */
  2084. char $ac_func();
  2085.  
  2086. int main() { t(); return 0; }
  2087. int t() {
  2088.  
  2089. /* The GNU C library defines this for functions which it implements
  2090.     to always fail with ENOSYS.  Some functions are actually named
  2091.     something starting with __ and the normal name is an alias.  */
  2092. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2093. choke me
  2094. #else
  2095. $ac_func();
  2096. #endif
  2097.  
  2098. ; return 0; }
  2099. EOF
  2100. if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2101.   rm -rf conftest*
  2102.   eval "ac_cv_func_$ac_func=yes"
  2103. else
  2104.   rm -rf conftest*
  2105.   eval "ac_cv_func_$ac_func=no"
  2106. fi
  2107. rm -f conftest*
  2108.  
  2109. fi
  2110. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2111.   echo "$ac_t""yes" 1>&6
  2112.   cat >> confdefs.h <<EOF
  2113. #define CRAY_STACKSEG_END $ac_func
  2114. EOF
  2115.  
  2116.   break
  2117. else
  2118.   echo "$ac_t""no" 1>&6
  2119. fi
  2120.  
  2121. done
  2122. fi
  2123.  
  2124. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2125. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2126.   echo $ac_n "(cached) $ac_c" 1>&6
  2127. else
  2128.   if test "$cross_compiling" = yes; then
  2129.   ac_cv_c_stack_direction=0
  2130. else
  2131. cat > conftest.$ac_ext <<EOF
  2132. #line 2133 "configure"
  2133. #include "confdefs.h"
  2134. find_stack_direction ()
  2135. {
  2136.   static char *addr = 0;
  2137.   auto char dummy;
  2138.   if (addr == 0)
  2139.     {
  2140.       addr = &dummy;
  2141.       return find_stack_direction ();
  2142.     }
  2143.   else
  2144.     return (&dummy > addr) ? 1 : -1;
  2145. }
  2146. main ()
  2147. {
  2148.   exit (find_stack_direction() < 0);
  2149. }
  2150. EOF
  2151. { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2152. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2153.   ac_cv_c_stack_direction=1
  2154. else
  2155.   ac_cv_c_stack_direction=-1
  2156. fi
  2157. fi
  2158. rm -fr conftest*
  2159. fi
  2160.  
  2161. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2162. cat >> confdefs.h <<EOF
  2163. #define STACK_DIRECTION $ac_cv_c_stack_direction
  2164. EOF
  2165.  
  2166. fi
  2167.  
  2168. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  2169. if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
  2170.   echo $ac_n "(cached) $ac_c" 1>&6
  2171. else
  2172.   if test "$cross_compiling" = yes; then
  2173.   ac_cv_func_memcmp=no
  2174. else
  2175. cat > conftest.$ac_ext <<EOF
  2176. #line 2177 "configure"
  2177. #include "confdefs.h"
  2178.  
  2179. main()
  2180. {
  2181.   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  2182.   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  2183. }
  2184.  
  2185. EOF
  2186. { (eval echo configure:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2187. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2188.   ac_cv_func_memcmp=yes
  2189. else
  2190.   ac_cv_func_memcmp=no
  2191. fi
  2192. fi
  2193. rm -fr conftest*
  2194. fi
  2195.  
  2196. echo "$ac_t""$ac_cv_func_memcmp" 1>&6
  2197. test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
  2198.  
  2199. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2200. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2201.   echo $ac_n "(cached) $ac_c" 1>&6
  2202. else
  2203.   cat > conftest.$ac_ext <<EOF
  2204. #line 2205 "configure"
  2205. #include "confdefs.h"
  2206. /* System header to define __stub macros and hopefully few prototypes,
  2207.     which can conflict with char vprintf(); below.  */
  2208. #include <assert.h>
  2209. /* Override any gcc2 internal prototype to avoid an error.  */
  2210. /* We use char because int might match the return type of a gcc2
  2211.     builtin and then its argument prototype would still apply.  */
  2212. char vprintf();
  2213.  
  2214. int main() { t(); return 0; }
  2215. int t() {
  2216.  
  2217. /* The GNU C library defines this for functions which it implements
  2218.     to always fail with ENOSYS.  Some functions are actually named
  2219.     something starting with __ and the normal name is an alias.  */
  2220. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2221. choke me
  2222. #else
  2223. vprintf();
  2224. #endif
  2225.  
  2226. ; return 0; }
  2227. EOF
  2228. if { (eval echo configure:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2229.   rm -rf conftest*
  2230.   eval "ac_cv_func_vprintf=yes"
  2231. else
  2232.   rm -rf conftest*
  2233.   eval "ac_cv_func_vprintf=no"
  2234. fi
  2235. rm -f conftest*
  2236.  
  2237. fi
  2238. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2239.   echo "$ac_t""yes" 1>&6
  2240.   cat >> confdefs.h <<\EOF
  2241. #define HAVE_VPRINTF 1
  2242. EOF
  2243.  
  2244. else
  2245.   echo "$ac_t""no" 1>&6
  2246. fi
  2247.  
  2248. if test "$ac_cv_func_vprintf" != yes; then
  2249. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2250. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2251.   echo $ac_n "(cached) $ac_c" 1>&6
  2252. else
  2253.   cat > conftest.$ac_ext <<EOF
  2254. #line 2255 "configure"
  2255. #include "confdefs.h"
  2256. /* System header to define __stub macros and hopefully few prototypes,
  2257.     which can conflict with char _doprnt(); below.  */
  2258. #include <assert.h>
  2259. /* Override any gcc2 internal prototype to avoid an error.  */
  2260. /* We use char because int might match the return type of a gcc2
  2261.     builtin and then its argument prototype would still apply.  */
  2262. char _doprnt();
  2263.  
  2264. int main() { t(); return 0; }
  2265. int t() {
  2266.  
  2267. /* The GNU C library defines this for functions which it implements
  2268.     to always fail with ENOSYS.  Some functions are actually named
  2269.     something starting with __ and the normal name is an alias.  */
  2270. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2271. choke me
  2272. #else
  2273. _doprnt();
  2274. #endif
  2275.  
  2276. ; return 0; }
  2277. EOF
  2278. if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2279.   rm -rf conftest*
  2280.   eval "ac_cv_func__doprnt=yes"
  2281. else
  2282.   rm -rf conftest*
  2283.   eval "ac_cv_func__doprnt=no"
  2284. fi
  2285. rm -f conftest*
  2286.  
  2287. fi
  2288. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2289.   echo "$ac_t""yes" 1>&6
  2290.   cat >> confdefs.h <<\EOF
  2291. #define HAVE_DOPRNT 1
  2292. EOF
  2293.  
  2294. else
  2295.   echo "$ac_t""no" 1>&6
  2296. fi
  2297.  
  2298. fi
  2299.  
  2300. echo $ac_n "checking for working strtod""... $ac_c" 1>&6
  2301. if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
  2302.   echo $ac_n "(cached) $ac_c" 1>&6
  2303. else
  2304.   if test "$cross_compiling" = yes; then
  2305.   ac_cv_func_strtod=no
  2306. else
  2307. cat > conftest.$ac_ext <<EOF
  2308. #line 2309 "configure"
  2309. #include "confdefs.h"
  2310.  
  2311. double strtod ();
  2312. int
  2313. main()
  2314. {
  2315.   {
  2316.     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
  2317.     char *string = " +69";
  2318.     char *term;
  2319.     double value;
  2320.     value = strtod (string, &term);
  2321.     if (value != 69 || term != (string + 4))
  2322.       exit (1);
  2323.   }
  2324.  
  2325.   {
  2326.     /* Under Solaris 2.4, strtod returns the wrong value for the
  2327.        terminating character under some conditions.  */
  2328.     char *string = "NaN";
  2329.     char *term;
  2330.     strtod (string, &term);
  2331.     if (term != string && *(term - 1) == 0)
  2332.       exit (1);
  2333.   }
  2334.   exit (0);
  2335. }
  2336.  
  2337. EOF
  2338. { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2339. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2340.   ac_cv_func_strtod=yes
  2341. else
  2342.   ac_cv_func_strtod=no
  2343. fi
  2344. fi
  2345. rm -fr conftest*
  2346. fi
  2347.  
  2348. echo "$ac_t""$ac_cv_func_strtod" 1>&6
  2349. test $ac_cv_func_strtod = no && LIBOBJS="$LIBOBJS strtod.o"
  2350. if test $ac_cv_func_strtod = no; then
  2351.   for ac_func in pow
  2352. do
  2353. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2354. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2355.   echo $ac_n "(cached) $ac_c" 1>&6
  2356. else
  2357.   cat > conftest.$ac_ext <<EOF
  2358. #line 2359 "configure"
  2359. #include "confdefs.h"
  2360. /* System header to define __stub macros and hopefully few prototypes,
  2361.     which can conflict with char $ac_func(); below.  */
  2362. #include <assert.h>
  2363. /* Override any gcc2 internal prototype to avoid an error.  */
  2364. /* We use char because int might match the return type of a gcc2
  2365.     builtin and then its argument prototype would still apply.  */
  2366. char $ac_func();
  2367.  
  2368. int main() { t(); return 0; }
  2369. int t() {
  2370.  
  2371. /* The GNU C library defines this for functions which it implements
  2372.     to always fail with ENOSYS.  Some functions are actually named
  2373.     something starting with __ and the normal name is an alias.  */
  2374. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2375. choke me
  2376. #else
  2377. $ac_func();
  2378. #endif
  2379.  
  2380. ; return 0; }
  2381. EOF
  2382. if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2383.   rm -rf conftest*
  2384.   eval "ac_cv_func_$ac_func=yes"
  2385. else
  2386.   rm -rf conftest*
  2387.   eval "ac_cv_func_$ac_func=no"
  2388. fi
  2389. rm -f conftest*
  2390.  
  2391. fi
  2392. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2393.   echo "$ac_t""yes" 1>&6
  2394.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2395.   cat >> confdefs.h <<EOF
  2396. #define $ac_tr_func 1
  2397. EOF
  2398.  
  2399. else
  2400.   echo "$ac_t""no" 1>&6
  2401. fi
  2402. done
  2403.  
  2404.   if test $ac_cv_func_pow = no; then
  2405.     echo $ac_n "checking for -lm""... $ac_c" 1>&6
  2406. ac_lib_var=`echo m'_'pow | tr './+\055' '__p_'`
  2407. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2408.   echo $ac_n "(cached) $ac_c" 1>&6
  2409. else
  2410.   ac_save_LIBS="$LIBS"
  2411. LIBS="-lm  $LIBS"
  2412. cat > conftest.$ac_ext <<EOF
  2413. #line 2414 "configure"
  2414. #include "confdefs.h"
  2415. /* Override any gcc2 internal prototype to avoid an error.  */
  2416. /* We use char because int might match the return type of a gcc2
  2417.     builtin and then its argument prototype would still apply.  */
  2418. char pow();
  2419.  
  2420. int main() { t(); return 0; }
  2421. int t() {
  2422. pow()
  2423. ; return 0; }
  2424. EOF
  2425. if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2426.   rm -rf conftest*
  2427.   eval "ac_cv_lib_$ac_lib_var=yes"
  2428. else
  2429.   rm -rf conftest*
  2430.   eval "ac_cv_lib_$ac_lib_var=no"
  2431. fi
  2432. rm -f conftest*
  2433. LIBS="$ac_save_LIBS"
  2434.  
  2435. fi
  2436. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2437.   echo "$ac_t""yes" 1>&6
  2438.     ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2439.   cat >> confdefs.h <<EOF
  2440. #define $ac_tr_lib 1
  2441. EOF
  2442.  
  2443.   LIBS="-lm $LIBS"
  2444.  
  2445. else
  2446.   echo "$ac_t""no" 1>&6
  2447. fi
  2448.  
  2449.   fi
  2450. fi
  2451.  
  2452. for ac_func in memcpy memmove memset stpcpy strtoul
  2453. do
  2454. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2455. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 $ac_func(); 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 $ac_func();
  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_$ac_func) || defined (__stub___$ac_func)
  2476. choke me
  2477. #else
  2478. $ac_func();
  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_$ac_func=yes"
  2486. else
  2487.   rm -rf conftest*
  2488.   eval "ac_cv_func_$ac_func=no"
  2489. fi
  2490. rm -f conftest*
  2491.  
  2492. fi
  2493. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2494.   echo "$ac_t""yes" 1>&6
  2495.   :
  2496. else
  2497.   echo "$ac_t""no" 1>&6
  2498. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2499. fi
  2500.  
  2501. done
  2502.  
  2503. echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
  2504. if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
  2505.   echo $ac_n "(cached) $ac_c" 1>&6
  2506. else
  2507.   cat > conftest.$ac_ext <<EOF
  2508. #line 2509 "configure"
  2509. #include "confdefs.h"
  2510. /* System header to define __stub macros and hopefully few prototypes,
  2511.     which can conflict with char getopt_long(); below.  */
  2512. #include <assert.h>
  2513. /* Override any gcc2 internal prototype to avoid an error.  */
  2514. /* We use char because int might match the return type of a gcc2
  2515.     builtin and then its argument prototype would still apply.  */
  2516. char getopt_long();
  2517.  
  2518. int main() { t(); return 0; }
  2519. int t() {
  2520.  
  2521. /* The GNU C library defines this for functions which it implements
  2522.     to always fail with ENOSYS.  Some functions are actually named
  2523.     something starting with __ and the normal name is an alias.  */
  2524. #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
  2525. choke me
  2526. #else
  2527. getopt_long();
  2528. #endif
  2529.  
  2530. ; return 0; }
  2531. EOF
  2532. if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2533.   rm -rf conftest*
  2534.   eval "ac_cv_func_getopt_long=yes"
  2535. else
  2536.   rm -rf conftest*
  2537.   eval "ac_cv_func_getopt_long=no"
  2538. fi
  2539. rm -f conftest*
  2540.  
  2541. fi
  2542. if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
  2543.   echo "$ac_t""yes" 1>&6
  2544.   :
  2545. else
  2546.   echo "$ac_t""no" 1>&6
  2547. LIBOBJS="$LIBOBJS getopt1.o getopt.o"
  2548. fi
  2549.  
  2550.  
  2551.  
  2552. for ac_func in valloc getpagesize
  2553. do
  2554. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2555. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2556.   echo $ac_n "(cached) $ac_c" 1>&6
  2557. else
  2558.   cat > conftest.$ac_ext <<EOF
  2559. #line 2560 "configure"
  2560. #include "confdefs.h"
  2561. /* System header to define __stub macros and hopefully few prototypes,
  2562.     which can conflict with char $ac_func(); below.  */
  2563. #include <assert.h>
  2564. /* Override any gcc2 internal prototype to avoid an error.  */
  2565. /* We use char because int might match the return type of a gcc2
  2566.     builtin and then its argument prototype would still apply.  */
  2567. char $ac_func();
  2568.  
  2569. int main() { t(); return 0; }
  2570. int t() {
  2571.  
  2572. /* The GNU C library defines this for functions which it implements
  2573.     to always fail with ENOSYS.  Some functions are actually named
  2574.     something starting with __ and the normal name is an alias.  */
  2575. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2576. choke me
  2577. #else
  2578. $ac_func();
  2579. #endif
  2580.  
  2581. ; return 0; }
  2582. EOF
  2583. if { (eval echo configure:2584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2584.   rm -rf conftest*
  2585.   eval "ac_cv_func_$ac_func=yes"
  2586. else
  2587.   rm -rf conftest*
  2588.   eval "ac_cv_func_$ac_func=no"
  2589. fi
  2590. rm -f conftest*
  2591.  
  2592. fi
  2593. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2594.   echo "$ac_t""yes" 1>&6
  2595.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2596.   cat >> confdefs.h <<EOF
  2597. #define $ac_tr_func 1
  2598. EOF
  2599.  
  2600. else
  2601.   echo "$ac_t""no" 1>&6
  2602. fi
  2603. done
  2604.  
  2605. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  2606. if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
  2607.   echo $ac_n "(cached) $ac_c" 1>&6
  2608. else
  2609.   if test "$cross_compiling" = yes; then
  2610.   ac_cv_func_mmap=no
  2611. else
  2612. cat > conftest.$ac_ext <<EOF
  2613. #line 2614 "configure"
  2614. #include "confdefs.h"
  2615.  
  2616. /* Thanks to Mike Haertel and Jim Avera for this test. */
  2617. #include <sys/types.h>
  2618. #include <fcntl.h>
  2619. #include <sys/mman.h>
  2620.  
  2621. #ifndef HAVE_GETPAGESIZE
  2622. # include <sys/param.h>
  2623. # ifdef EXEC_PAGESIZE
  2624. #  define getpagesize() EXEC_PAGESIZE
  2625. # else
  2626. #  ifdef NBPG
  2627. #   define getpagesize() NBPG * CLSIZE
  2628. #   ifndef CLSIZE
  2629. #    define CLSIZE 1
  2630. #   endif
  2631. #  else
  2632. #   ifdef NBPC
  2633. #    define getpagesize() NBPC
  2634. #   else
  2635. #    define getpagesize() PAGESIZE /* SVR4 */
  2636. #   endif
  2637. #  endif
  2638. # endif
  2639. #endif
  2640.  
  2641. #ifndef HAVE_VALLOC
  2642. # define valloc malloc
  2643. #endif
  2644.  
  2645. #ifdef __cplusplus
  2646. extern "C" { void *valloc(unsigned), *malloc(unsigned); }
  2647. #else
  2648. char *valloc(), *malloc();
  2649. #endif
  2650.  
  2651. int
  2652. main()
  2653. {
  2654.   char *buf1, *buf2, *buf3;
  2655.   int i = getpagesize(), j;
  2656.   int i2 = i * 2;
  2657.   int fd;
  2658.  
  2659.   buf1 = (char *)valloc(i2);
  2660.   buf2 = (char *)valloc(i);
  2661.   buf3 = (char *)malloc(i2);
  2662.   for (j = 0; j < i2; ++j)
  2663.     *(buf1 + j) = rand();
  2664.   fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
  2665.   write(fd, buf1, i2);
  2666.   mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
  2667.   for (j = 0; j < i; ++j)
  2668.     if (*(buf1 + j) != *(buf2 + j))
  2669.       exit(1);
  2670.   lseek(fd, (long)i, 0);
  2671.   read(fd, buf2, i); /* read into mapped memory -- file should not change */
  2672.   /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
  2673.   lseek(fd, (long)0, 0);
  2674.   read(fd, buf3, i2);
  2675.   for (j = 0; j < i2; ++j)
  2676.     if (*(buf1 + j) != *(buf3 + j))
  2677.       exit(1);
  2678.   exit(0);
  2679. }
  2680.  
  2681. EOF
  2682. { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2683. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2684.   ac_cv_func_mmap=yes
  2685. else
  2686.   ac_cv_func_mmap=no
  2687. fi
  2688. fi
  2689. rm -fr conftest*
  2690. fi
  2691.  
  2692. echo "$ac_t""$ac_cv_func_mmap" 1>&6
  2693. if test $ac_cv_func_mmap = yes; then
  2694.   cat >> confdefs.h <<\EOF
  2695. #define HAVE_MMAP 1
  2696. EOF
  2697.  
  2698. fi
  2699.  
  2700.                               
  2701.    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
  2702. unistd.h values.h
  2703. do
  2704. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2705. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2706. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2707.   echo $ac_n "(cached) $ac_c" 1>&6
  2708. else
  2709.   cat > conftest.$ac_ext <<EOF
  2710. #line 2711 "configure"
  2711. #include "confdefs.h"
  2712. #include <$ac_hdr>
  2713. EOF
  2714. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2715. { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2716. ac_err=`grep -v '^ *+' conftest.out`
  2717. if test -z "$ac_err"; then
  2718.   rm -rf conftest*
  2719.   eval "ac_cv_header_$ac_safe=yes"
  2720. else
  2721.   echo "$ac_err" >&5
  2722.   rm -rf conftest*
  2723.   eval "ac_cv_header_$ac_safe=no"
  2724. fi
  2725. rm -f conftest*
  2726. fi
  2727. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2728.   echo "$ac_t""yes" 1>&6
  2729.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2730.   cat >> confdefs.h <<EOF
  2731. #define $ac_tr_hdr 1
  2732. EOF
  2733.  
  2734. else
  2735.   echo "$ac_t""no" 1>&6
  2736. fi
  2737. done
  2738.  
  2739.    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
  2740. __argz_count __argz_stringify __argz_next
  2741. do
  2742. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2743. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2744.   echo $ac_n "(cached) $ac_c" 1>&6
  2745. else
  2746.   cat > conftest.$ac_ext <<EOF
  2747. #line 2748 "configure"
  2748. #include "confdefs.h"
  2749. /* System header to define __stub macros and hopefully few prototypes,
  2750.     which can conflict with char $ac_func(); below.  */
  2751. #include <assert.h>
  2752. /* Override any gcc2 internal prototype to avoid an error.  */
  2753. /* We use char because int might match the return type of a gcc2
  2754.     builtin and then its argument prototype would still apply.  */
  2755. char $ac_func();
  2756.  
  2757. int main() { t(); return 0; }
  2758. int t() {
  2759.  
  2760. /* The GNU C library defines this for functions which it implements
  2761.     to always fail with ENOSYS.  Some functions are actually named
  2762.     something starting with __ and the normal name is an alias.  */
  2763. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2764. choke me
  2765. #else
  2766. $ac_func();
  2767. #endif
  2768.  
  2769. ; return 0; }
  2770. EOF
  2771. if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2772.   rm -rf conftest*
  2773.   eval "ac_cv_func_$ac_func=yes"
  2774. else
  2775.   rm -rf conftest*
  2776.   eval "ac_cv_func_$ac_func=no"
  2777. fi
  2778. rm -f conftest*
  2779.  
  2780. fi
  2781. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2782.   echo "$ac_t""yes" 1>&6
  2783.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2784.   cat >> confdefs.h <<EOF
  2785. #define $ac_tr_func 1
  2786. EOF
  2787.  
  2788. else
  2789.   echo "$ac_t""no" 1>&6
  2790. fi
  2791. done
  2792.  
  2793.  
  2794.    if test "${ac_cv_func_stpcpy+set}" != "set"; then
  2795.      for ac_func in stpcpy
  2796. do
  2797. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2798. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2799.   echo $ac_n "(cached) $ac_c" 1>&6
  2800. else
  2801.   cat > conftest.$ac_ext <<EOF
  2802. #line 2803 "configure"
  2803. #include "confdefs.h"
  2804. /* System header to define __stub macros and hopefully few prototypes,
  2805.     which can conflict with char $ac_func(); below.  */
  2806. #include <assert.h>
  2807. /* Override any gcc2 internal prototype to avoid an error.  */
  2808. /* We use char because int might match the return type of a gcc2
  2809.     builtin and then its argument prototype would still apply.  */
  2810. char $ac_func();
  2811.  
  2812. int main() { t(); return 0; }
  2813. int t() {
  2814.  
  2815. /* The GNU C library defines this for functions which it implements
  2816.     to always fail with ENOSYS.  Some functions are actually named
  2817.     something starting with __ and the normal name is an alias.  */
  2818. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2819. choke me
  2820. #else
  2821. $ac_func();
  2822. #endif
  2823.  
  2824. ; return 0; }
  2825. EOF
  2826. if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2827.   rm -rf conftest*
  2828.   eval "ac_cv_func_$ac_func=yes"
  2829. else
  2830.   rm -rf conftest*
  2831.   eval "ac_cv_func_$ac_func=no"
  2832. fi
  2833. rm -f conftest*
  2834.  
  2835. fi
  2836. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2837.   echo "$ac_t""yes" 1>&6
  2838.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2839.   cat >> confdefs.h <<EOF
  2840. #define $ac_tr_func 1
  2841. EOF
  2842.  
  2843. else
  2844.   echo "$ac_t""no" 1>&6
  2845. fi
  2846. done
  2847.  
  2848.    fi
  2849.    if test "${ac_cv_func_stpcpy}" = "yes"; then
  2850.      cat >> confdefs.h <<\EOF
  2851. #define HAVE_STPCPY 1
  2852. EOF
  2853.  
  2854.    fi
  2855.  
  2856.    if test $ac_cv_header_locale_h = yes; then
  2857.     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  2858. if eval "test \"`echo '$''{'ud_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  2859.   echo $ac_n "(cached) $ac_c" 1>&6
  2860. else
  2861.   cat > conftest.$ac_ext <<EOF
  2862. #line 2863 "configure"
  2863. #include "confdefs.h"
  2864. #include <locale.h>
  2865. int main() { t(); return 0; }
  2866. int t() {
  2867. return LC_MESSAGES
  2868. ; return 0; }
  2869. EOF
  2870. if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2871.   rm -rf conftest*
  2872.   ud_cv_val_LC_MESSAGES=yes
  2873. else
  2874.   rm -rf conftest*
  2875.   ud_cv_val_LC_MESSAGES=no
  2876. fi
  2877. rm -f conftest*
  2878.  
  2879. fi
  2880.  
  2881. echo "$ac_t""$ud_cv_val_LC_MESSAGES" 1>&6
  2882.     if test $ud_cv_val_LC_MESSAGES = yes; then
  2883.       cat >> confdefs.h <<\EOF
  2884. #define HAVE_LC_MESSAGES 1
  2885. EOF
  2886.  
  2887.     fi
  2888.   fi
  2889.    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  2890.         # Check whether --enable-nls or --disable-nls was given.
  2891. if test "${enable_nls+set}" = set; then
  2892.   enableval="$enable_nls"
  2893.   USE_NLS=$enableval
  2894. else
  2895.   USE_NLS=yes
  2896. fi
  2897.  
  2898.     echo "$ac_t""$USE_NLS" 1>&6
  2899.     
  2900.  
  2901.     USE_INCLUDED_LIBINTL=no
  2902.  
  2903.         if test "$USE_NLS" = "yes"; then
  2904.       cat >> confdefs.h <<\EOF
  2905. #define ENABLE_NLS 1
  2906. EOF
  2907.  
  2908.       echo $ac_n "checking for explicitly using GNU gettext""... $ac_c" 1>&6
  2909.       # Check whether --with-included-gettext or --without-included-gettext was given.
  2910. if test "${with_included_gettext+set}" = set; then
  2911.   withval="$with_included_gettext"
  2912.   nls_cv_force_use_gnu_gettext=$withval
  2913. else
  2914.   nls_cv_force_use_gnu_gettext=no
  2915. fi
  2916.  
  2917.       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
  2918.  
  2919.       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  2920.       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  2921.                                 nls_cv_header_intl=
  2922.     nls_cv_header_libgt=
  2923.     CATOBJEXT=NONE
  2924.  
  2925.     ac_safe=`echo "libintl.h" | tr './\055' '___'`
  2926. echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
  2927. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2928.   echo $ac_n "(cached) $ac_c" 1>&6
  2929. else
  2930.   cat > conftest.$ac_ext <<EOF
  2931. #line 2932 "configure"
  2932. #include "confdefs.h"
  2933. #include <libintl.h>
  2934. EOF
  2935. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2936. { (eval echo configure:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2937. ac_err=`grep -v '^ *+' conftest.out`
  2938. if test -z "$ac_err"; then
  2939.   rm -rf conftest*
  2940.   eval "ac_cv_header_$ac_safe=yes"
  2941. else
  2942.   echo "$ac_err" >&5
  2943.   rm -rf conftest*
  2944.   eval "ac_cv_header_$ac_safe=no"
  2945. fi
  2946. rm -f conftest*
  2947. fi
  2948. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2949.   echo "$ac_t""yes" 1>&6
  2950.   echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  2951. ac_lib_var=`echo intl'_'bindtextdomain | tr './+\055' '__p_'`
  2952. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2953.   echo $ac_n "(cached) $ac_c" 1>&6
  2954. else
  2955.   ac_save_LIBS="$LIBS"
  2956. LIBS="-lintl  $LIBS"
  2957. cat > conftest.$ac_ext <<EOF
  2958. #line 2959 "configure"
  2959. #include "confdefs.h"
  2960. /* Override any gcc2 internal prototype to avoid an error.  */
  2961. /* We use char because int might match the return type of a gcc2
  2962.     builtin and then its argument prototype would still apply.  */
  2963. char bindtextdomain();
  2964.  
  2965. int main() { t(); return 0; }
  2966. int t() {
  2967. bindtextdomain()
  2968. ; return 0; }
  2969. EOF
  2970. if { (eval echo configure:2971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2971.   rm -rf conftest*
  2972.   eval "ac_cv_lib_$ac_lib_var=yes"
  2973. else
  2974.   rm -rf conftest*
  2975.   eval "ac_cv_lib_$ac_lib_var=no"
  2976. fi
  2977. rm -f conftest*
  2978. LIBS="$ac_save_LIBS"
  2979.  
  2980. fi
  2981. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2982.   echo "$ac_t""yes" 1>&6
  2983.     ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2984.   cat >> confdefs.h <<EOF
  2985. #define $ac_tr_lib 1
  2986. EOF
  2987.  
  2988.   LIBS="-lintl $LIBS"
  2989.  
  2990. else
  2991.   echo "$ac_t""no" 1>&6
  2992. fi
  2993.  
  2994.        echo $ac_n "checking for gettext""... $ac_c" 1>&6
  2995. if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
  2996.   echo $ac_n "(cached) $ac_c" 1>&6
  2997. else
  2998.   cat > conftest.$ac_ext <<EOF
  2999. #line 3000 "configure"
  3000. #include "confdefs.h"
  3001. /* System header to define __stub macros and hopefully few prototypes,
  3002.     which can conflict with char gettext(); below.  */
  3003. #include <assert.h>
  3004. /* Override any gcc2 internal prototype to avoid an error.  */
  3005. /* We use char because int might match the return type of a gcc2
  3006.     builtin and then its argument prototype would still apply.  */
  3007. char gettext();
  3008.  
  3009. int main() { t(); return 0; }
  3010. int t() {
  3011.  
  3012. /* The GNU C library defines this for functions which it implements
  3013.     to always fail with ENOSYS.  Some functions are actually named
  3014.     something starting with __ and the normal name is an alias.  */
  3015. #if defined (__stub_gettext) || defined (__stub___gettext)
  3016. choke me
  3017. #else
  3018. gettext();
  3019. #endif
  3020.  
  3021. ; return 0; }
  3022. EOF
  3023. if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3024.   rm -rf conftest*
  3025.   eval "ac_cv_func_gettext=yes"
  3026. else
  3027.   rm -rf conftest*
  3028.   eval "ac_cv_func_gettext=no"
  3029. fi
  3030. rm -f conftest*
  3031.  
  3032. fi
  3033. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  3034.   echo "$ac_t""yes" 1>&6
  3035.   cat >> confdefs.h <<\EOF
  3036. #define HAVE_GETTEXT 1
  3037. EOF
  3038.  
  3039.           # Extract the first word of "msgfmt", so it can be a program name with args.
  3040. set dummy msgfmt; ac_word=$2
  3041. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3042. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3043.   echo $ac_n "(cached) $ac_c" 1>&6
  3044. else
  3045.   case "$MSGFMT" in
  3046.   /*)
  3047.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3048.   ;;
  3049.   *)
  3050.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3051.   for ac_dir in $PATH; do
  3052.     test -z "$ac_dir" && ac_dir=.
  3053.     if test -f $ac_dir/$ac_word; then
  3054.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3055.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3056.     break
  3057.       fi
  3058.     fi
  3059.   done
  3060.   IFS="$ac_save_ifs"
  3061.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  3062.   ;;
  3063. esac
  3064. fi
  3065. MSGFMT="$ac_cv_path_MSGFMT"
  3066. if test -n "$MSGFMT"; then
  3067.   echo "$ac_t""$MSGFMT" 1>&6
  3068. else
  3069.   echo "$ac_t""no" 1>&6
  3070. fi
  3071.           if test "$MSGFMT" != "no"; then
  3072.         for ac_func in dcgettext
  3073. do
  3074. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3075. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3076.   echo $ac_n "(cached) $ac_c" 1>&6
  3077. else
  3078.   cat > conftest.$ac_ext <<EOF
  3079. #line 3080 "configure"
  3080. #include "confdefs.h"
  3081. /* System header to define __stub macros and hopefully few prototypes,
  3082.     which can conflict with char $ac_func(); below.  */
  3083. #include <assert.h>
  3084. /* Override any gcc2 internal prototype to avoid an error.  */
  3085. /* We use char because int might match the return type of a gcc2
  3086.     builtin and then its argument prototype would still apply.  */
  3087. char $ac_func();
  3088.  
  3089. int main() { t(); return 0; }
  3090. int t() {
  3091.  
  3092. /* The GNU C library defines this for functions which it implements
  3093.     to always fail with ENOSYS.  Some functions are actually named
  3094.     something starting with __ and the normal name is an alias.  */
  3095. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3096. choke me
  3097. #else
  3098. $ac_func();
  3099. #endif
  3100.  
  3101. ; return 0; }
  3102. EOF
  3103. if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3104.   rm -rf conftest*
  3105.   eval "ac_cv_func_$ac_func=yes"
  3106. else
  3107.   rm -rf conftest*
  3108.   eval "ac_cv_func_$ac_func=no"
  3109. fi
  3110. rm -f conftest*
  3111.  
  3112. fi
  3113. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3114.   echo "$ac_t""yes" 1>&6
  3115.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3116.   cat >> confdefs.h <<EOF
  3117. #define $ac_tr_func 1
  3118. EOF
  3119.  
  3120. else
  3121.   echo "$ac_t""no" 1>&6
  3122. fi
  3123. done
  3124.  
  3125.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3126. set dummy gmsgfmt; ac_word=$2
  3127. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3128. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3129.   echo $ac_n "(cached) $ac_c" 1>&6
  3130. else
  3131.   case "$GMSGFMT" in
  3132.   /*)
  3133.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3134.   ;;
  3135.   *)
  3136.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3137.   for ac_dir in $PATH; do
  3138.     test -z "$ac_dir" && ac_dir=.
  3139.     if test -f $ac_dir/$ac_word; then
  3140.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3141.       break
  3142.     fi
  3143.   done
  3144.   IFS="$ac_save_ifs"
  3145.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3146.   ;;
  3147. esac
  3148. fi
  3149. GMSGFMT="$ac_cv_path_GMSGFMT"
  3150. if test -n "$GMSGFMT"; then
  3151.   echo "$ac_t""$GMSGFMT" 1>&6
  3152. else
  3153.   echo "$ac_t""no" 1>&6
  3154. fi
  3155.  
  3156.         # Extract the first word of "xgettext", so it can be a program name with args.
  3157. set dummy xgettext; ac_word=$2
  3158. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3159. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3160.   echo $ac_n "(cached) $ac_c" 1>&6
  3161. else
  3162.   case "$XGETTEXT" in
  3163.   /*)
  3164.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3165.   ;;
  3166.   *)
  3167.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3168.   for ac_dir in $PATH; do
  3169.     test -z "$ac_dir" && ac_dir=.
  3170.     if test -f $ac_dir/$ac_word; then
  3171.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3172.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3173.     break
  3174.       fi
  3175.     fi
  3176.   done
  3177.   IFS="$ac_save_ifs"
  3178.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3179.   ;;
  3180. esac
  3181. fi
  3182. XGETTEXT="$ac_cv_path_XGETTEXT"
  3183. if test -n "$XGETTEXT"; then
  3184.   echo "$ac_t""$XGETTEXT" 1>&6
  3185. else
  3186.   echo "$ac_t""no" 1>&6
  3187. fi
  3188.  
  3189.         cat > conftest.$ac_ext <<EOF
  3190. #line 3191 "configure"
  3191. #include "confdefs.h"
  3192.  
  3193. int main() { t(); return 0; }
  3194. int t() {
  3195. extern int _nl_msg_cat_cntr;
  3196.                    return _nl_msg_cat_cntr
  3197. ; return 0; }
  3198. EOF
  3199. if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3200.   rm -rf conftest*
  3201.   CATOBJEXT=.gmo
  3202.            DATADIRNAME=share
  3203. else
  3204.   rm -rf conftest*
  3205.   CATOBJEXT=.mo
  3206.            DATADIRNAME=lib
  3207. fi
  3208. rm -f conftest*
  3209.  
  3210.         INSTOBJEXT=.mo
  3211.           fi
  3212. else
  3213.   echo "$ac_t""no" 1>&6
  3214. fi
  3215.  
  3216. else
  3217.   echo "$ac_t""no" 1>&6
  3218. fi
  3219.  
  3220.  
  3221.         if test "$CATOBJEXT" = "NONE"; then
  3222.       echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
  3223.       # Check whether --with-catgets or --without-catgets was given.
  3224. if test "${with_catgets+set}" = set; then
  3225.   withval="$with_catgets"
  3226.   nls_cv_use_catgets=$withval
  3227. else
  3228.   nls_cv_use_catgets=no
  3229. fi
  3230.  
  3231.       echo "$ac_t""$nls_cv_use_catgets" 1>&6
  3232.  
  3233.       if test "$nls_cv_use_catgets" = "yes"; then
  3234.                 echo $ac_n "checking for -li""... $ac_c" 1>&6
  3235. ac_lib_var=`echo i'_'main | tr './+\055' '__p_'`
  3236. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3237.   echo $ac_n "(cached) $ac_c" 1>&6
  3238. else
  3239.   ac_save_LIBS="$LIBS"
  3240. LIBS="-li  $LIBS"
  3241. cat > conftest.$ac_ext <<EOF
  3242. #line 3243 "configure"
  3243. #include "confdefs.h"
  3244.  
  3245. int main() { t(); return 0; }
  3246. int t() {
  3247. main()
  3248. ; return 0; }
  3249. EOF
  3250. if { (eval echo configure:3251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3251.   rm -rf conftest*
  3252.   eval "ac_cv_lib_$ac_lib_var=yes"
  3253. else
  3254.   rm -rf conftest*
  3255.   eval "ac_cv_lib_$ac_lib_var=no"
  3256. fi
  3257. rm -f conftest*
  3258. LIBS="$ac_save_LIBS"
  3259.  
  3260. fi
  3261. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3262.   echo "$ac_t""yes" 1>&6
  3263.     ac_tr_lib=HAVE_LIB`echo i | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  3264.   cat >> confdefs.h <<EOF
  3265. #define $ac_tr_lib 1
  3266. EOF
  3267.  
  3268.   LIBS="-li $LIBS"
  3269.  
  3270. else
  3271.   echo "$ac_t""no" 1>&6
  3272. fi
  3273.  
  3274.         echo $ac_n "checking for catgets""... $ac_c" 1>&6
  3275. if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
  3276.   echo $ac_n "(cached) $ac_c" 1>&6
  3277. else
  3278.   cat > conftest.$ac_ext <<EOF
  3279. #line 3280 "configure"
  3280. #include "confdefs.h"
  3281. /* System header to define __stub macros and hopefully few prototypes,
  3282.     which can conflict with char catgets(); below.  */
  3283. #include <assert.h>
  3284. /* Override any gcc2 internal prototype to avoid an error.  */
  3285. /* We use char because int might match the return type of a gcc2
  3286.     builtin and then its argument prototype would still apply.  */
  3287. char catgets();
  3288.  
  3289. int main() { t(); return 0; }
  3290. int t() {
  3291.  
  3292. /* The GNU C library defines this for functions which it implements
  3293.     to always fail with ENOSYS.  Some functions are actually named
  3294.     something starting with __ and the normal name is an alias.  */
  3295. #if defined (__stub_catgets) || defined (__stub___catgets)
  3296. choke me
  3297. #else
  3298. catgets();
  3299. #endif
  3300.  
  3301. ; return 0; }
  3302. EOF
  3303. if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3304.   rm -rf conftest*
  3305.   eval "ac_cv_func_catgets=yes"
  3306. else
  3307.   rm -rf conftest*
  3308.   eval "ac_cv_func_catgets=no"
  3309. fi
  3310. rm -f conftest*
  3311.  
  3312. fi
  3313. if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
  3314.   echo "$ac_t""yes" 1>&6
  3315.   cat >> confdefs.h <<\EOF
  3316. #define HAVE_CATGETS 1
  3317. EOF
  3318.  
  3319.            INTLOBJS="\$(CATOBJS)"
  3320.            # Extract the first word of "gencat", so it can be a program name with args.
  3321. set dummy gencat; ac_word=$2
  3322. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3323. if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  3324.   echo $ac_n "(cached) $ac_c" 1>&6
  3325. else
  3326.   case "$GENCAT" in
  3327.   /*)
  3328.   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  3329.   ;;
  3330.   *)
  3331.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3332.   for ac_dir in $PATH; do
  3333.     test -z "$ac_dir" && ac_dir=.
  3334.     if test -f $ac_dir/$ac_word; then
  3335.       ac_cv_path_GENCAT="$ac_dir/$ac_word"
  3336.       break
  3337.     fi
  3338.   done
  3339.   IFS="$ac_save_ifs"
  3340.   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  3341.   ;;
  3342. esac
  3343. fi
  3344. GENCAT="$ac_cv_path_GENCAT"
  3345. if test -n "$GENCAT"; then
  3346.   echo "$ac_t""$GENCAT" 1>&6
  3347. else
  3348.   echo "$ac_t""no" 1>&6
  3349. fi
  3350.            if test "$GENCAT" != "no"; then
  3351.          # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3352. set dummy gmsgfmt; ac_word=$2
  3353. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3354. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3355.   echo $ac_n "(cached) $ac_c" 1>&6
  3356. else
  3357.   case "$GMSGFMT" in
  3358.   /*)
  3359.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3360.   ;;
  3361.   *)
  3362.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3363.   for ac_dir in $PATH; do
  3364.     test -z "$ac_dir" && ac_dir=.
  3365.     if test -f $ac_dir/$ac_word; then
  3366.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3367.       break
  3368.     fi
  3369.   done
  3370.   IFS="$ac_save_ifs"
  3371.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  3372.   ;;
  3373. esac
  3374. fi
  3375. GMSGFMT="$ac_cv_path_GMSGFMT"
  3376. if test -n "$GMSGFMT"; then
  3377.   echo "$ac_t""$GMSGFMT" 1>&6
  3378. else
  3379.   echo "$ac_t""no" 1>&6
  3380. fi
  3381.  
  3382.          if test "$GMSGFMT" = "no"; then
  3383.            # Extract the first word of "msgfmt", so it can be a program name with args.
  3384. set dummy msgfmt; ac_word=$2
  3385. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3386. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3387.   echo $ac_n "(cached) $ac_c" 1>&6
  3388. else
  3389.   case "$GMSGFMT" in
  3390.   /*)
  3391.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3392.   ;;
  3393.   *)
  3394.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3395.   for ac_dir in $PATH; do
  3396.     test -z "$ac_dir" && ac_dir=.
  3397.     if test -f $ac_dir/$ac_word; then
  3398.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3399.     ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3400.     break
  3401.       fi
  3402.     fi
  3403.   done
  3404.   IFS="$ac_save_ifs"
  3405.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  3406.   ;;
  3407. esac
  3408. fi
  3409. GMSGFMT="$ac_cv_path_GMSGFMT"
  3410. if test -n "$GMSGFMT"; then
  3411.   echo "$ac_t""$GMSGFMT" 1>&6
  3412. else
  3413.   echo "$ac_t""no" 1>&6
  3414. fi
  3415.  
  3416.          fi
  3417.          # Extract the first word of "xgettext", so it can be a program name with args.
  3418. set dummy xgettext; ac_word=$2
  3419. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3420. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3421.   echo $ac_n "(cached) $ac_c" 1>&6
  3422. else
  3423.   case "$XGETTEXT" in
  3424.   /*)
  3425.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3426.   ;;
  3427.   *)
  3428.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3429.   for ac_dir in $PATH; do
  3430.     test -z "$ac_dir" && ac_dir=.
  3431.     if test -f $ac_dir/$ac_word; then
  3432.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3433.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3434.     break
  3435.       fi
  3436.     fi
  3437.   done
  3438.   IFS="$ac_save_ifs"
  3439.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3440.   ;;
  3441. esac
  3442. fi
  3443. XGETTEXT="$ac_cv_path_XGETTEXT"
  3444. if test -n "$XGETTEXT"; then
  3445.   echo "$ac_t""$XGETTEXT" 1>&6
  3446. else
  3447.   echo "$ac_t""no" 1>&6
  3448. fi
  3449.  
  3450.          USE_INCLUDED_LIBINTL=yes
  3451.          CATOBJEXT=.cat
  3452.          INSTOBJEXT=.cat
  3453.          DATADIRNAME=lib
  3454.          INTLDEPS="../intl/libintl.a"
  3455.          INTLLIBS=$INTLDEPS
  3456.          LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3457.          nls_cv_header_intl=intl/libintl.h
  3458.          nls_cv_header_libgt=intl/libgettext.h
  3459.            fi
  3460. else
  3461.   echo "$ac_t""no" 1>&6
  3462. fi
  3463.  
  3464.       fi
  3465.         fi
  3466.  
  3467.         if test "$CATOBJEXT" = "NONE"; then
  3468.                   nls_cv_use_gnu_gettext=yes
  3469.         fi
  3470.       fi
  3471.  
  3472.       if test "$nls_cv_use_gnu_gettext" = "yes"; then
  3473.                 INTLOBJS="\$(GETTOBJS)"
  3474.         # Extract the first word of "msgfmt", so it can be a program name with args.
  3475. set dummy msgfmt; ac_word=$2
  3476. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3477. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3478.   echo $ac_n "(cached) $ac_c" 1>&6
  3479. else
  3480.   case "$MSGFMT" in
  3481.   /*)
  3482.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3483.   ;;
  3484.   *)
  3485.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3486.   for ac_dir in $PATH; do
  3487.     test -z "$ac_dir" && ac_dir=.
  3488.     if test -f $ac_dir/$ac_word; then
  3489.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3490.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3491.     break
  3492.       fi
  3493.     fi
  3494.   done
  3495.   IFS="$ac_save_ifs"
  3496.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  3497.   ;;
  3498. esac
  3499. fi
  3500. MSGFMT="$ac_cv_path_MSGFMT"
  3501. if test -n "$MSGFMT"; then
  3502.   echo "$ac_t""$MSGFMT" 1>&6
  3503. else
  3504.   echo "$ac_t""no" 1>&6
  3505. fi
  3506.  
  3507.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3508. set dummy gmsgfmt; ac_word=$2
  3509. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3510. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3511.   echo $ac_n "(cached) $ac_c" 1>&6
  3512. else
  3513.   case "$GMSGFMT" in
  3514.   /*)
  3515.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3516.   ;;
  3517.   *)
  3518.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3519.   for ac_dir in $PATH; do
  3520.     test -z "$ac_dir" && ac_dir=.
  3521.     if test -f $ac_dir/$ac_word; then
  3522.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3523.       break
  3524.     fi
  3525.   done
  3526.   IFS="$ac_save_ifs"
  3527.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3528.   ;;
  3529. esac
  3530. fi
  3531. GMSGFMT="$ac_cv_path_GMSGFMT"
  3532. if test -n "$GMSGFMT"; then
  3533.   echo "$ac_t""$GMSGFMT" 1>&6
  3534. else
  3535.   echo "$ac_t""no" 1>&6
  3536. fi
  3537.  
  3538.         # Extract the first word of "xgettext", so it can be a program name with args.
  3539. set dummy xgettext; ac_word=$2
  3540. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3541. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3542.   echo $ac_n "(cached) $ac_c" 1>&6
  3543. else
  3544.   case "$XGETTEXT" in
  3545.   /*)
  3546.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3547.   ;;
  3548.   *)
  3549.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3550.   for ac_dir in $PATH; do
  3551.     test -z "$ac_dir" && ac_dir=.
  3552.     if test -f $ac_dir/$ac_word; then
  3553.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3554.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3555.     break
  3556.       fi
  3557.     fi
  3558.   done
  3559.   IFS="$ac_save_ifs"
  3560.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3561.   ;;
  3562. esac
  3563. fi
  3564. XGETTEXT="$ac_cv_path_XGETTEXT"
  3565. if test -n "$XGETTEXT"; then
  3566.   echo "$ac_t""$XGETTEXT" 1>&6
  3567. else
  3568.   echo "$ac_t""no" 1>&6
  3569. fi
  3570.  
  3571.         
  3572.     USE_INCLUDED_LIBINTL=yes
  3573.         CATOBJEXT=.gmo
  3574.         INSTOBJEXT=.mo
  3575.         DATADIRNAME=share
  3576.     INTLDEPS="../intl/libintl.a"
  3577.     INTLLIBS=$INTLDEPS
  3578.     LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3579.         nls_cv_header_intl=intl/libintl.h
  3580.         nls_cv_header_libgt=intl/libgettext.h
  3581.       fi
  3582.  
  3583.             if test "$XGETTEXT" != ":"; then
  3584.             if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  3585.       : ;
  3586.     else
  3587.       echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
  3588.       XGETTEXT=":"
  3589.     fi
  3590.       fi
  3591.  
  3592.       # We need to process the po/ directory.
  3593.       POSUB=po
  3594.     else
  3595.       DATADIRNAME=share
  3596.       nls_cv_header_intl=intl/libintl.h
  3597.       nls_cv_header_libgt=intl/libgettext.h
  3598.     fi
  3599.  
  3600.     # If this is used in GNU gettext we have to set USE_NLS to `yes'
  3601.     # because some of the sources are only built for this goal.
  3602.     if test "$PACKAGE" = gettext; then
  3603.       USE_NLS=yes
  3604.       USE_INCLUDED_LIBINTL=yes
  3605.     fi
  3606.  
  3607.                 for lang in $ALL_LINGUAS; do
  3608.       GMOFILES="$GMOFILES $lang.gmo"
  3609.       POFILES="$POFILES $lang.po"
  3610.     done
  3611.  
  3612.         
  3613.     
  3614.     
  3615.     
  3616.     
  3617.     
  3618.     
  3619.     
  3620.     
  3621.     
  3622.     
  3623.   
  3624.  
  3625.    if test "x$CATOBJEXT" != "x"; then
  3626.      if test "x$ALL_LINGUAS" = "x"; then
  3627.        LINGUAS=
  3628.      else
  3629.        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
  3630.        NEW_LINGUAS=
  3631.        for lang in ${LINGUAS=$ALL_LINGUAS}; do
  3632.          case "$ALL_LINGUAS" in
  3633.           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
  3634.          esac
  3635.        done
  3636.        LINGUAS=$NEW_LINGUAS
  3637.        echo "$ac_t""$LINGUAS" 1>&6
  3638.      fi
  3639.  
  3640.           if test -n "$LINGUAS"; then
  3641.        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  3642.      fi
  3643.    fi
  3644.  
  3645.             test -d intl || mkdir intl
  3646.    if test "$CATOBJEXT" = ".cat"; then
  3647.      ac_safe=`echo "linux/version.h" | tr './\055' '___'`
  3648. echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
  3649. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3650.   echo $ac_n "(cached) $ac_c" 1>&6
  3651. else
  3652.   cat > conftest.$ac_ext <<EOF
  3653. #line 3654 "configure"
  3654. #include "confdefs.h"
  3655. #include <linux/version.h>
  3656. EOF
  3657. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3658. { (eval echo configure:3659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3659. ac_err=`grep -v '^ *+' conftest.out`
  3660. if test -z "$ac_err"; then
  3661.   rm -rf conftest*
  3662.   eval "ac_cv_header_$ac_safe=yes"
  3663. else
  3664.   echo "$ac_err" >&5
  3665.   rm -rf conftest*
  3666.   eval "ac_cv_header_$ac_safe=no"
  3667. fi
  3668. rm -f conftest*
  3669. fi
  3670. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3671.   echo "$ac_t""yes" 1>&6
  3672.   msgformat=linux
  3673. else
  3674.   echo "$ac_t""no" 1>&6
  3675. msgformat=xopen
  3676. fi
  3677.  
  3678.  
  3679.                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
  3680.    fi
  3681.       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
  3682.      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
  3683.  
  3684.             if test "$PACKAGE" = "gettext"; then
  3685.      GT_NO="#NO#"
  3686.      GT_YES=
  3687.    else
  3688.      GT_NO=
  3689.      GT_YES="#YES#"
  3690.    fi
  3691.    
  3692.    
  3693.  
  3694.             MKINSTALLDIRS=
  3695.    if test $ac_aux_dir; then
  3696.      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  3697.    fi
  3698.    if test -z $MKINSTALLDIRS; then
  3699.      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  3700.    fi
  3701.    
  3702.  
  3703.          test -d po || mkdir po
  3704.    if test "x$srcdir" != "x."; then
  3705.      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  3706.        posrcprefix="$srcdir/"
  3707.      else
  3708.        posrcprefix="../$srcdir/"
  3709.      fi
  3710.    else
  3711.      posrcprefix="../"
  3712.    fi
  3713.    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,    $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  3714.     < $srcdir/po/POTFILES.in > po/POTFILES
  3715.   
  3716.  
  3717.  
  3718. trap '' 1 2 15
  3719. cat > confcache <<\EOF
  3720. # This file is a shell script that caches the results of configure
  3721. # tests run on this system so they can be shared between configure
  3722. # scripts and configure runs.  It is not useful on other systems.
  3723. # If it contains results you don't want to keep, you may remove or edit it.
  3724. #
  3725. # By default, configure uses ./config.cache as the cache file,
  3726. # creating it if it does not exist already.  You can give configure
  3727. # the --cache-file=FILE option to use a different cache file; that is
  3728. # what configure does when it calls configure scripts in
  3729. # subdirectories, so they share the cache.
  3730. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3731. # config.status only pays attention to the cache file if you give it the
  3732. # --recheck option to rerun configure.
  3733. #
  3734. EOF
  3735. # Ultrix sh set writes to stderr and can't be redirected directly,
  3736. # and sets the high bit in the cache file unless we assign to the vars.
  3737. (set) 2>&1 |
  3738.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  3739.   >> confcache
  3740. if cmp -s $cache_file confcache; then
  3741.   :
  3742. else
  3743.   if test -w $cache_file; then
  3744.     echo "updating cache $cache_file"
  3745.     cat confcache > $cache_file
  3746.   else
  3747.     echo "not updating unwritable cache $cache_file"
  3748.   fi
  3749. fi
  3750. rm -f confcache
  3751.  
  3752. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3753.  
  3754. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3755. # Let make expand exec_prefix.
  3756. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3757.  
  3758. # Any assignment to VPATH causes Sun make to only execute
  3759. # the first set of double-colon rules, so remove it if not needed.
  3760. # If there is a colon in the path, we need to keep it.
  3761. if test "x$srcdir" = x.; then
  3762.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3763. fi
  3764.  
  3765. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3766.  
  3767. DEFS=-DHAVE_CONFIG_H
  3768.  
  3769. # Without the "./", some shells look in PATH for config.status.
  3770. : ${CONFIG_STATUS=./config.status}
  3771.  
  3772. echo creating $CONFIG_STATUS
  3773. # Some systems, like AmigaOS, won't allow you to remove a script that is
  3774. # being executed, so just move it out of the way instead.
  3775. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  3776. cat > $CONFIG_STATUS <<EOF
  3777. #! /bin/sh
  3778. # Generated automatically by configure.
  3779. # Run this file to recreate the current configuration.
  3780. # This directory was configured as follows,
  3781. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3782. #
  3783. # $0 $ac_configure_args
  3784. #
  3785. # Compiler output produced by configure, useful for debugging
  3786. # configure, is in ./config.log if it exists.
  3787.  
  3788. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3789. for ac_option
  3790. do
  3791.   case "\$ac_option" in
  3792.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3793.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3794.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3795.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3796.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  3797.     exit 0 ;;
  3798.   -help | --help | --hel | --he | --h)
  3799.     echo "\$ac_cs_usage"; exit 0 ;;
  3800.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3801.   esac
  3802. done
  3803.  
  3804. ac_given_srcdir=$srcdir
  3805. ac_given_INSTALL="$INSTALL"
  3806.  
  3807. trap 'rm -fr `echo "Makefile doc/Makefile intl/Makefile lib/Makefile \
  3808. man/Makefile po/Makefile.in src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3809. EOF
  3810. cat >> $CONFIG_STATUS <<EOF
  3811.  
  3812. # Protect against being on the right side of a sed subst in config.status.
  3813. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3814.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3815. $ac_vpsub
  3816. $extrasub
  3817. s%@CFLAGS@%$CFLAGS%g
  3818. s%@CPPFLAGS@%$CPPFLAGS%g
  3819. s%@CXXFLAGS@%$CXXFLAGS%g
  3820. s%@DEFS@%$DEFS%g
  3821. s%@LDFLAGS@%$LDFLAGS%g
  3822. s%@LIBS@%$LIBS%g
  3823. s%@exec_prefix@%$exec_prefix%g
  3824. s%@prefix@%$prefix%g
  3825. s%@program_transform_name@%$program_transform_name%g
  3826. s%@bindir@%$bindir%g
  3827. s%@sbindir@%$sbindir%g
  3828. s%@libexecdir@%$libexecdir%g
  3829. s%@datadir@%$datadir%g
  3830. s%@sysconfdir@%$sysconfdir%g
  3831. s%@sharedstatedir@%$sharedstatedir%g
  3832. s%@localstatedir@%$localstatedir%g
  3833. s%@libdir@%$libdir%g
  3834. s%@includedir@%$includedir%g
  3835. s%@oldincludedir@%$oldincludedir%g
  3836. s%@infodir@%$infodir%g
  3837. s%@guidedir@%$guidedir%g
  3838. s%@psdir@%$psdir%g
  3839. s%@dvidir@%$dvidir%g
  3840. s%@mandir@%$mandir%g
  3841. s%@PACKAGE@%$PACKAGE%g
  3842. s%@VERSION@%$VERSION%g
  3843. s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
  3844. s%@MAINT@%$MAINT%g
  3845. s%@README_ALPHA@%$README_ALPHA%g
  3846. s%@CC@%$CC%g
  3847. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3848. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3849. s%@SET_MAKE@%$SET_MAKE%g
  3850. s%@CPP@%$CPP%g
  3851. s%@RANLIB@%$RANLIB%g
  3852. s%@REGEXOBJ@%$REGEXOBJ%g
  3853. s%@U@%$U%g
  3854. s%@ANSI2KNR@%$ANSI2KNR%g
  3855. s%@ALLOCA@%$ALLOCA%g
  3856. s%@LIBOBJS@%$LIBOBJS%g
  3857. s%@USE_NLS@%$USE_NLS%g
  3858. s%@MSGFMT@%$MSGFMT%g
  3859. s%@GMSGFMT@%$GMSGFMT%g
  3860. s%@XGETTEXT@%$XGETTEXT%g
  3861. s%@GENCAT@%$GENCAT%g
  3862. s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
  3863. s%@CATALOGS@%$CATALOGS%g
  3864. s%@CATOBJEXT@%$CATOBJEXT%g
  3865. s%@DATADIRNAME@%$DATADIRNAME%g
  3866. s%@GMOFILES@%$GMOFILES%g
  3867. s%@INSTOBJEXT@%$INSTOBJEXT%g
  3868. s%@INTLDEPS@%$INTLDEPS%g
  3869. s%@INTLLIBS@%$INTLLIBS%g
  3870. s%@INTLOBJS@%$INTLOBJS%g
  3871. s%@POFILES@%$POFILES%g
  3872. s%@POSUB@%$POSUB%g
  3873. s%@GT_NO@%$GT_NO%g
  3874. s%@GT_YES@%$GT_YES%g
  3875. s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
  3876.  
  3877. CEOF
  3878. EOF
  3879. cat >> $CONFIG_STATUS <<EOF
  3880.  
  3881. CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile intl/Makefile lib/Makefile \
  3882. man/Makefile po/Makefile.in src/Makefile"}
  3883. EOF
  3884. cat >> $CONFIG_STATUS <<\EOF
  3885. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3886.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3887.   case "$ac_file" in
  3888.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3889.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3890.   *) ac_file_in="${ac_file}.in" ;;
  3891.   esac
  3892.  
  3893.   # Adjust relative srcdir, etc. for subdirectories.
  3894.  
  3895.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3896.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3897.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3898.     # The file is in a subdirectory.
  3899.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3900.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3901.     # A "../" for each directory in $ac_dir_suffix.
  3902.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3903.   else
  3904.     ac_dir_suffix= ac_dots=
  3905.   fi
  3906.  
  3907.   case "$ac_given_srcdir" in
  3908.   .)  srcdir=.
  3909.       if test -z "$ac_dots"; then top_srcdir=.
  3910.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3911.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3912.   *) # Relative path.
  3913.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3914.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3915.   esac
  3916.  
  3917.   case "$ac_given_INSTALL" in
  3918.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3919.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3920.   esac
  3921.   echo creating "$ac_file"
  3922.   rm -f "$ac_file"
  3923.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3924.   case "$ac_file" in
  3925.   *Makefile*) ac_comsub="1i\\
  3926. # $configure_input" ;;
  3927.   *) ac_comsub= ;;
  3928.   esac
  3929.   sed -e "$ac_comsub
  3930. s%@configure_input@%$configure_input%g
  3931. s%@srcdir@%$srcdir%g
  3932. s%@top_srcdir@%$top_srcdir%g
  3933. s%@INSTALL@%$INSTALL%g
  3934. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3935. fi; done
  3936. rm -f conftest.subs
  3937.  
  3938. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3939. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3940. #
  3941. # ac_d sets the value in "#define NAME VALUE" lines.
  3942. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3943. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3944. ac_dC='\3'
  3945. ac_dD='%g'
  3946. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3947. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3948. ac_uB='\([     ]\)%\1#\2define\3'
  3949. ac_uC=' '
  3950. ac_uD='\4%g'
  3951. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3952. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3953. ac_eB='$%\1#\2define\3'
  3954. ac_eC=' '
  3955. ac_eD='%g'
  3956.  
  3957. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  3958. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3959.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3960.   case "$ac_file" in
  3961.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3962.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3963.   *) ac_file_in="${ac_file}.in" ;;
  3964.   esac
  3965.  
  3966.   echo creating $ac_file
  3967.  
  3968.   rm -f conftest.frag conftest.in conftest.out
  3969.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3970.  
  3971. EOF
  3972.  
  3973. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3974. # the proper values into config.h.in to produce config.h.  And first:
  3975. # Protect against being on the right side of a sed subst in config.status.
  3976. # Protect against being in an unquoted here document in config.status.
  3977. rm -f conftest.vals
  3978. cat > conftest.hdr <<\EOF
  3979. s/[\\&%]/\\&/g
  3980. s%[\\$`]%\\&%g
  3981. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3982. s%ac_d%ac_u%gp
  3983. s%ac_u%ac_e%gp
  3984. EOF
  3985. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3986. rm -f conftest.hdr
  3987.  
  3988. # This sed command replaces #undef with comments.  This is necessary, for
  3989. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3990. # on some systems where configure will not decide to define it.
  3991. cat >> conftest.vals <<\EOF
  3992. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3993. EOF
  3994.  
  3995. # Break up conftest.vals because some shells have a limit on
  3996. # the size of here documents, and old seds have small limits too.
  3997. # Maximum number of lines to put in a single here document.
  3998. ac_max_here_lines=12
  3999.  
  4000. rm -f conftest.tail
  4001. while :
  4002. do
  4003.   ac_lines=`grep -c . conftest.vals`
  4004.   # grep -c gives empty output for an empty file on some AIX systems.
  4005.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4006.   # Write a limited-size here document to conftest.frag.
  4007.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  4008.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  4009.   echo 'CEOF
  4010.   sed -f conftest.frag conftest.in > conftest.out
  4011.   rm -f conftest.in
  4012.   mv conftest.out conftest.in
  4013. ' >> $CONFIG_STATUS
  4014.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  4015.   rm -f conftest.vals
  4016.   mv conftest.tail conftest.vals
  4017. done
  4018. rm -f conftest.vals
  4019.  
  4020. cat >> $CONFIG_STATUS <<\EOF
  4021.   rm -f conftest.frag conftest.h
  4022.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  4023.   cat conftest.in >> conftest.h
  4024.   rm -f conftest.in
  4025.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  4026.     echo "$ac_file is unchanged"
  4027.     rm -f conftest.h
  4028.   else
  4029.     # Remove last slash and all that follows it.  Not all systems have dirname.
  4030.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4031.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4032.       # The file is in a subdirectory.
  4033.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  4034.     fi
  4035.     rm -f $ac_file
  4036.     mv conftest.h $ac_file
  4037.   fi
  4038. fi; done
  4039.  
  4040. EOF
  4041.  
  4042. cat >> $CONFIG_STATUS <<EOF
  4043. ac_sources="$nls_cv_header_libgt"
  4044. ac_dests="$nls_cv_header_intl"
  4045. EOF
  4046.  
  4047. cat >> $CONFIG_STATUS <<\EOF
  4048. srcdir=$ac_given_srcdir
  4049. while test -n "$ac_sources"; do
  4050.   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  4051.   set $ac_sources; ac_source=$1; shift; ac_sources=$*
  4052.  
  4053.   echo "linking $srcdir/$ac_source to $ac_dest"
  4054.  
  4055.   if test ! -r $srcdir/$ac_source; then
  4056.     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  4057.   fi
  4058.   rm -f $ac_dest
  4059.  
  4060.   # Make relative symlinks.
  4061.   # Remove last slash and all that follows it.  Not all systems have dirname.
  4062.   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  4063.   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  4064.     # The dest file is in a subdirectory.
  4065.     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  4066.     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  4067.     # A "../" for each directory in $ac_dest_dir_suffix.
  4068.     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  4069.   else
  4070.     ac_dest_dir_suffix= ac_dots=
  4071.   fi
  4072.  
  4073.   case "$srcdir" in
  4074.   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  4075.   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  4076.   esac
  4077.  
  4078.   # Make a symlink if possible; otherwise try a hard link.
  4079.   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  4080.     ln $srcdir/$ac_source $ac_dest; then :
  4081.   else
  4082.     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  4083.   fi
  4084. done
  4085.  
  4086. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile; test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  4087. exit 0
  4088. EOF
  4089. chmod +x $CONFIG_STATUS
  4090. rm -f CONFIG.STATUS.old
  4091. rm -fr confdefs* $ac_clean_files
  4092. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  4093.  
  4094.