"Fossies" - the Fresh Open Source Software Archive

Member "rgdbm-2.1.42/configure" (26 Jun 2007, 92231 Bytes) of package /linux/privat/old/rgdbm-2.1.42.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

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