configure
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:163k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13 
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_default_prefix=/usr/local/BerkeleyDB.@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@
  13. ac_help="$ac_help
  14.   --disable-bigfile       Disable AIX, HP/UX, Solaris big files."
  15. ac_help="$ac_help
  16.   --enable-compat185      Build DB 1.85 compatibility API."
  17. ac_help="$ac_help
  18.   --enable-cxx            Build C++ API."
  19. ac_help="$ac_help
  20.   --enable-debug          Build a debugging version."
  21. ac_help="$ac_help
  22.   --enable-debug_rop      Build a version that logs read operations."
  23. ac_help="$ac_help
  24.   --enable-debug_wop      Build a version that logs write operations."
  25. ac_help="$ac_help
  26.   --enable-diagnostic     Build a version with run-time diagnostics."
  27. ac_help="$ac_help
  28.   --enable-dump185        Build db_dump185(1) to dump 1.85 databases."
  29. ac_help="$ac_help
  30.   --enable-dynamic        Build with dynamic libraries."
  31. ac_help="$ac_help
  32.   --enable-java           Build Java API."
  33. ac_help="$ac_help
  34.   --enable-posixmutexes   Force use of POSIX standard mutexes."
  35. ac_help="$ac_help
  36.   --enable-rpc            Build RPC client/server."
  37. ac_help="$ac_help
  38.   --enable-shared         Build with dynamic libraries."
  39. ac_help="$ac_help
  40.   --enable-tcl            Build Tcl API."
  41. ac_help="$ac_help
  42.   --enable-test           Configure to run the test suite."
  43. ac_help="$ac_help
  44.   --enable-uimutexes      Force use of Unix International mutexes."
  45. ac_help="$ac_help
  46.   --enable-umrw           Mask harmless unitialized memory read/writes."
  47. ac_help="$ac_help
  48.   --with-tcl=DIR          Directory location of tclConfig.sh."
  49. # Initialize some variables set by options.
  50. # The variables have the same names as the options, with
  51. # dashes changed to underlines.
  52. build=NONE
  53. cache_file=./config.cache
  54. exec_prefix=NONE
  55. host=NONE
  56. no_create=
  57. nonopt=NONE
  58. no_recursion=
  59. prefix=NONE
  60. program_prefix=NONE
  61. program_suffix=NONE
  62. program_transform_name=s,x,x,
  63. silent=
  64. site=
  65. srcdir=
  66. target=NONE
  67. verbose=
  68. x_includes=NONE
  69. x_libraries=NONE
  70. bindir='${exec_prefix}/bin'
  71. sbindir='${exec_prefix}/sbin'
  72. libexecdir='${exec_prefix}/libexec'
  73. datadir='${prefix}/share'
  74. sysconfdir='${prefix}/etc'
  75. sharedstatedir='${prefix}/com'
  76. localstatedir='${prefix}/var'
  77. libdir='${exec_prefix}/lib'
  78. includedir='${prefix}/include'
  79. oldincludedir='/usr/include'
  80. infodir='${prefix}/info'
  81. mandir='${prefix}/man'
  82. # Initialize some other variables.
  83. subdirs=
  84. MFLAGS= MAKEFLAGS=
  85. SHELL=${CONFIG_SHELL-/bin/sh}
  86. # Maximum number of lines to put in a shell here document.
  87. ac_max_here_lines=12
  88. ac_prev=
  89. for ac_option
  90. do
  91.   # If the previous option needs an argument, assign it.
  92.   if test -n "$ac_prev"; then
  93.     eval "$ac_prev=$ac_option"
  94.     ac_prev=
  95.     continue
  96.   fi
  97.   case "$ac_option" in
  98.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  99.   *) ac_optarg= ;;
  100.   esac
  101.   # Accept the important Cygnus configure options, so we can diagnose typos.
  102.   case "$ac_option" in
  103.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  104.     ac_prev=bindir ;;
  105.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  106.     bindir="$ac_optarg" ;;
  107.   -build | --build | --buil | --bui | --bu)
  108.     ac_prev=build ;;
  109.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  110.     build="$ac_optarg" ;;
  111.   -cache-file | --cache-file | --cache-fil | --cache-fi 
  112.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  113.     ac_prev=cache_file ;;
  114.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* 
  115.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  116.     cache_file="$ac_optarg" ;;
  117.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  118.     ac_prev=datadir ;;
  119.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* 
  120.   | --da=*)
  121.     datadir="$ac_optarg" ;;
  122.   -disable-* | --disable-*)
  123.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  124.     # Reject names that are not valid shell variable names.
  125.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  126.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  127.     fi
  128.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  129.     eval "enable_${ac_feature}=no" ;;
  130.   -enable-* | --enable-*)
  131.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  132.     # Reject names that are not valid shell variable names.
  133.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  134.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  135.     fi
  136.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  137.     case "$ac_option" in
  138.       *=*) ;;
  139.       *) ac_optarg=yes ;;
  140.     esac
  141.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  142.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi 
  143.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- 
  144.   | --exec | --exe | --ex)
  145.     ac_prev=exec_prefix ;;
  146.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* 
  147.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* 
  148.   | --exec=* | --exe=* | --ex=*)
  149.     exec_prefix="$ac_optarg" ;;
  150.   -gas | --gas | --ga | --g)
  151.     # Obsolete; use --with-gas.
  152.     with_gas=yes ;;
  153.   -help | --help | --hel | --he)
  154.     # Omit some internal or obsolete options to make the list less imposing.
  155.     # This message is too long to be a string in the A/UX 3.1 sh.
  156.     cat << EOF
  157. Usage: configure [options] [host]
  158. Options: [defaults in brackets after descriptions]
  159. Configuration:
  160.   --cache-file=FILE       cache test results in FILE
  161.   --help                  print this message
  162.   --no-create             do not create output files
  163.   --quiet, --silent       do not print `checking...' messages
  164.   --version               print the version of autoconf that created configure
  165. Directory and file names:
  166.   --prefix=PREFIX         install architecture-independent files in PREFIX
  167.                           [$ac_default_prefix]
  168.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  169.                           [same as prefix]
  170.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  171.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  172.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  173.   --datadir=DIR           read-only architecture-independent data in DIR
  174.                           [PREFIX/share]
  175.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  176.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  177.                           [PREFIX/com]
  178.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  179.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  180.   --includedir=DIR        C header files in DIR [PREFIX/include]
  181.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  182.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  183.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  184.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  185.   --program-prefix=PREFIX prepend PREFIX to installed program names
  186.   --program-suffix=SUFFIX append SUFFIX to installed program names
  187.   --program-transform-name=PROGRAM
  188.                           run sed PROGRAM on installed program names
  189. EOF
  190.     cat << EOF
  191. Host type:
  192.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  193.   --host=HOST             configure for HOST [guessed]
  194.   --target=TARGET         configure for TARGET [TARGET=HOST]
  195. Features and packages:
  196.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  197.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  198.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  199.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  200.   --x-includes=DIR        X include files are in DIR
  201.   --x-libraries=DIR       X library files are in DIR
  202. EOF
  203.     if test -n "$ac_help"; then
  204.       echo "--enable and --with options recognized:$ac_help"
  205.     fi
  206.     exit 0 ;;
  207.   -host | --host | --hos | --ho)
  208.     ac_prev=host ;;
  209.   -host=* | --host=* | --hos=* | --ho=*)
  210.     host="$ac_optarg" ;;
  211.   -includedir | --includedir | --includedi | --included | --include 
  212.   | --includ | --inclu | --incl | --inc)
  213.     ac_prev=includedir ;;
  214.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* 
  215.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  216.     includedir="$ac_optarg" ;;
  217.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  218.     ac_prev=infodir ;;
  219.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  220.     infodir="$ac_optarg" ;;
  221.   -libdir | --libdir | --libdi | --libd)
  222.     ac_prev=libdir ;;
  223.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  224.     libdir="$ac_optarg" ;;
  225.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec 
  226.   | --libexe | --libex | --libe)
  227.     ac_prev=libexecdir ;;
  228.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* 
  229.   | --libexe=* | --libex=* | --libe=*)
  230.     libexecdir="$ac_optarg" ;;
  231.   -localstatedir | --localstatedir | --localstatedi | --localstated 
  232.   | --localstate | --localstat | --localsta | --localst 
  233.   | --locals | --local | --loca | --loc | --lo)
  234.     ac_prev=localstatedir ;;
  235.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* 
  236.   | --localstate=* | --localstat=* | --localsta=* | --localst=* 
  237.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  238.     localstatedir="$ac_optarg" ;;
  239.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  240.     ac_prev=mandir ;;
  241.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  242.     mandir="$ac_optarg" ;;
  243.   -nfp | --nfp | --nf)
  244.     # Obsolete; use --without-fp.
  245.     with_fp=no ;;
  246.   -no-create | --no-create | --no-creat | --no-crea | --no-cre 
  247.   | --no-cr | --no-c)
  248.     no_create=yes ;;
  249.   -no-recursion | --no-recursion | --no-recursio | --no-recursi 
  250.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  251.     no_recursion=yes ;;
  252.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded 
  253.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc 
  254.   | --oldin | --oldi | --old | --ol | --o)
  255.     ac_prev=oldincludedir ;;
  256.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* 
  257.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* 
  258.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  259.     oldincludedir="$ac_optarg" ;;
  260.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  261.     ac_prev=prefix ;;
  262.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  263.     prefix="$ac_optarg" ;;
  264.   -program-prefix | --program-prefix | --program-prefi | --program-pref 
  265.   | --program-pre | --program-pr | --program-p)
  266.     ac_prev=program_prefix ;;
  267.   -program-prefix=* | --program-prefix=* | --program-prefi=* 
  268.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  269.     program_prefix="$ac_optarg" ;;
  270.   -program-suffix | --program-suffix | --program-suffi | --program-suff 
  271.   | --program-suf | --program-su | --program-s)
  272.     ac_prev=program_suffix ;;
  273.   -program-suffix=* | --program-suffix=* | --program-suffi=* 
  274.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  275.     program_suffix="$ac_optarg" ;;
  276.   -program-transform-name | --program-transform-name 
  277.   | --program-transform-nam | --program-transform-na 
  278.   | --program-transform-n | --program-transform- 
  279.   | --program-transform | --program-transfor 
  280.   | --program-transfo | --program-transf 
  281.   | --program-trans | --program-tran 
  282.   | --progr-tra | --program-tr | --program-t)
  283.     ac_prev=program_transform_name ;;
  284.   -program-transform-name=* | --program-transform-name=* 
  285.   | --program-transform-nam=* | --program-transform-na=* 
  286.   | --program-transform-n=* | --program-transform-=* 
  287.   | --program-transform=* | --program-transfor=* 
  288.   | --program-transfo=* | --program-transf=* 
  289.   | --program-trans=* | --program-tran=* 
  290.   | --progr-tra=* | --program-tr=* | --program-t=*)
  291.     program_transform_name="$ac_optarg" ;;
  292.   -q | -quiet | --quiet | --quie | --qui | --qu | --q 
  293.   | -silent | --silent | --silen | --sile | --sil)
  294.     silent=yes ;;
  295.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  296.     ac_prev=sbindir ;;
  297.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* 
  298.   | --sbi=* | --sb=*)
  299.     sbindir="$ac_optarg" ;;
  300.   -sharedstatedir | --sharedstatedir | --sharedstatedi 
  301.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta 
  302.   | --sharedst | --shareds | --shared | --share | --shar 
  303.   | --sha | --sh)
  304.     ac_prev=sharedstatedir ;;
  305.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* 
  306.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* 
  307.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* 
  308.   | --sha=* | --sh=*)
  309.     sharedstatedir="$ac_optarg" ;;
  310.   -site | --site | --sit)
  311.     ac_prev=site ;;
  312.   -site=* | --site=* | --sit=*)
  313.     site="$ac_optarg" ;;
  314.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  315.     ac_prev=srcdir ;;
  316.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  317.     srcdir="$ac_optarg" ;;
  318.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf 
  319.   | --syscon | --sysco | --sysc | --sys | --sy)
  320.     ac_prev=sysconfdir ;;
  321.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* 
  322.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  323.     sysconfdir="$ac_optarg" ;;
  324.   -target | --target | --targe | --targ | --tar | --ta | --t)
  325.     ac_prev=target ;;
  326.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  327.     target="$ac_optarg" ;;
  328.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  329.     verbose=yes ;;
  330.   -version | --version | --versio | --versi | --vers)
  331.     echo "configure generated by autoconf version 2.13"
  332.     exit 0 ;;
  333.   -with-* | --with-*)
  334.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  335.     # Reject names that are not valid shell variable names.
  336.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  337.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  338.     fi
  339.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  340.     case "$ac_option" in
  341.       *=*) ;;
  342.       *) ac_optarg=yes ;;
  343.     esac
  344.     eval "with_${ac_package}='$ac_optarg'" ;;
  345.   -without-* | --without-*)
  346.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  347.     # Reject names that are not valid shell variable names.
  348.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  349.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  350.     fi
  351.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  352.     eval "with_${ac_package}=no" ;;
  353.   --x)
  354.     # Obsolete; use --with-x.
  355.     with_x=yes ;;
  356.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu 
  357.   | --x-incl | --x-inc | --x-in | --x-i)
  358.     ac_prev=x_includes ;;
  359.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* 
  360.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  361.     x_includes="$ac_optarg" ;;
  362.   -x-libraries | --x-libraries | --x-librarie | --x-librari 
  363.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  364.     ac_prev=x_libraries ;;
  365.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* 
  366.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  367.     x_libraries="$ac_optarg" ;;
  368.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  369.     ;;
  370.   *)
  371.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  372.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  373.     fi
  374.     if test "x$nonopt" != xNONE; then
  375.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  376.     fi
  377.     nonopt="$ac_option"
  378.     ;;
  379.   esac
  380. done
  381. if test -n "$ac_prev"; then
  382.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  383. fi
  384. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  385. # File descriptor usage:
  386. # 0 standard input
  387. # 1 file creation
  388. # 2 errors and warnings
  389. # 3 some systems may open it to /dev/tty
  390. # 4 used on the Kubota Titan
  391. # 6 checking for... messages and results
  392. # 5 compiler messages saved in config.log
  393. if test "$silent" = yes; then
  394.   exec 6>/dev/null
  395. else
  396.   exec 6>&1
  397. fi
  398. exec 5>./config.log
  399. echo "
  400. This file contains any messages produced by compilers while
  401. running configure, to aid debugging if configure makes a mistake.
  402. " 1>&5
  403. # Strip out --no-create and --no-recursion so they do not pile up.
  404. # Also quote any args containing shell metacharacters.
  405. ac_configure_args=
  406. for ac_arg
  407. do
  408.   case "$ac_arg" in
  409.   -no-create | --no-create | --no-creat | --no-crea | --no-cre 
  410.   | --no-cr | --no-c) ;;
  411.   -no-recursion | --no-recursion | --no-recursio | --no-recursi 
  412.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  413.   *" "*|*" "*|*[[]~#$^&*(){}\|;<>?]*)
  414.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  415.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  416.   esac
  417. done
  418. # NLS nuisances.
  419. # Only set these to C if already set.  These must not be set unconditionally
  420. # because not all systems understand e.g. LANG=C (notably SCO).
  421. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  422. # Non-C LC_CTYPE values break the ctype check.
  423. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  424. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  425. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  426. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  427. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  428. rm -rf conftest* confdefs.h
  429. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  430. echo > confdefs.h
  431. # A filename unique to this package, relative to the directory that
  432. # configure is in, which we can look for to find out if srcdir is correct.
  433. ac_unique_file=../db/db.c
  434. # Find the source files, if location was not specified.
  435. if test -z "$srcdir"; then
  436.   ac_srcdir_defaulted=yes
  437.   # Try the directory containing this script, then its parent.
  438.   ac_prog=$0
  439.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  440.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  441.   srcdir=$ac_confdir
  442.   if test ! -r $srcdir/$ac_unique_file; then
  443.     srcdir=..
  444.   fi
  445. else
  446.   ac_srcdir_defaulted=no
  447. fi
  448. if test ! -r $srcdir/$ac_unique_file; then
  449.   if test "$ac_srcdir_defaulted" = yes; then
  450.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  451.   else
  452.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  453.   fi
  454. fi
  455. srcdir=`echo "${srcdir}" | sed 's%([^/])/*$%1%'`
  456. # Prefer explicitly selected file to automatically selected ones.
  457. if test -z "$CONFIG_SITE"; then
  458.   if test "x$prefix" != xNONE; then
  459.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  460.   else
  461.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  462.   fi
  463. fi
  464. for ac_site_file in $CONFIG_SITE; do
  465.   if test -r "$ac_site_file"; then
  466.     echo "loading site script $ac_site_file"
  467.     . "$ac_site_file"
  468.   fi
  469. done
  470. if test -r "$cache_file"; then
  471.   echo "loading cache $cache_file"
  472.   . $cache_file
  473. else
  474.   echo "creating cache $cache_file"
  475.   > $cache_file
  476. fi
  477. ac_ext=c
  478. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  479. ac_cpp='$CPP $CPPFLAGS'
  480. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  481. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  482. cross_compiling=$ac_cv_prog_cc_cross
  483. ac_exeext=
  484. ac_objext=o
  485. if (echo "testingc"; echo 1,2,3) | grep c >/dev/null; then
  486.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  487.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  488.     ac_n= ac_c='
  489. ' ac_t=' '
  490.   else
  491.     ac_n=-n ac_c= ac_t=
  492.   fi
  493. else
  494.   ac_n= ac_c='c' ac_t=
  495. fi
  496. ac_aux_dir=
  497. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  498.   if test -f $ac_dir/install-sh; then
  499.     ac_aux_dir=$ac_dir
  500.     ac_install_sh="$ac_aux_dir/install-sh -c"
  501.     break
  502.   elif test -f $ac_dir/install.sh; then
  503.     ac_aux_dir=$ac_dir
  504.     ac_install_sh="$ac_aux_dir/install.sh -c"
  505.     break
  506.   fi
  507. done
  508. if test -z "$ac_aux_dir"; then
  509.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  510. fi
  511. ac_config_guess=$ac_aux_dir/config.guess
  512. ac_config_sub=$ac_aux_dir/config.sub
  513. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  514. # Find a good install program.  We prefer a C program (faster),
  515. # so one script is as good as another.  But avoid the broken or
  516. # incompatible versions:
  517. # SysV /etc/install, /usr/sbin/install
  518. # SunOS /usr/etc/install
  519. # IRIX /sbin/install
  520. # AIX /bin/install
  521. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  522. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  523. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  524. # ./install, which can be erroneously created by make from ./install.sh.
  525. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  526. echo "configure:595: checking for a BSD compatible install" >&5
  527. if test -z "$INSTALL"; then
  528. if eval "test "`echo '$''{'ac_cv_path_install'+set}'`" = set"; then
  529.   echo $ac_n "(cached) $ac_c" 1>&6
  530. else
  531.     IFS="${IFS=  }"; ac_save_IFS="$IFS"; IFS=":"
  532.   for ac_dir in $PATH; do
  533.     # Account for people who put trailing slashes in PATH elements.
  534.     case "$ac_dir/" in
  535.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  536.     *)
  537.       # OSF1 and SCO ODT 3.0 have their own names for install.
  538.       # Don't use installbsd from OSF since it installs stuff as root
  539.       # by default.
  540.       for ac_prog in ginstall scoinst install; do
  541.         if test -f $ac_dir/$ac_prog; then
  542.   if test $ac_prog = install &&
  543.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  544.     # AIX install.  It has an incompatible calling convention.
  545.     :
  546.   else
  547.     ac_cv_path_install="$ac_dir/$ac_prog -c"
  548.     break 2
  549.   fi
  550. fi
  551.       done
  552.       ;;
  553.     esac
  554.   done
  555.   IFS="$ac_save_IFS"
  556. fi
  557.   if test "${ac_cv_path_install+set}" = set; then
  558.     INSTALL="$ac_cv_path_install"
  559.   else
  560.     # As a last resort, use the slow shell script.  We don't cache a
  561.     # path for INSTALL within a source directory, because that will
  562.     # break other packages using the cache if that directory is
  563.     # removed, or if the path is relative.
  564.     INSTALL="$ac_install_sh"
  565.   fi
  566. fi
  567. echo "$ac_t""$INSTALL" 1>&6
  568. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  569. # It thinks the first close brace ends the variable substitution.
  570. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  571. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  572. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  573. # Make sure we can run config.sub.
  574. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  575. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  576. fi
  577. echo $ac_n "checking host system type""... $ac_c" 1>&6
  578. echo "configure:654: checking host system type" >&5
  579. host_alias=$host
  580. case "$host_alias" in
  581. NONE)
  582.   case $nonopt in
  583.   NONE)
  584.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  585.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  586.     fi ;;
  587.   *) host_alias=$nonopt ;;
  588.   esac ;;
  589. esac
  590. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  591. host_cpu=`echo $host | sed 's/^([^-]*)-([^-]*)-(.*)$/1/'`
  592. host_vendor=`echo $host | sed 's/^([^-]*)-([^-]*)-(.*)$/2/'`
  593. host_os=`echo $host | sed 's/^([^-]*)-([^-]*)-(.*)$/3/'`
  594. echo "$ac_t""$host" 1>&6
  595. if test "$program_transform_name" = s,x,x,; then
  596.   program_transform_name=
  597. else
  598.   # Double any  or $.  echo might interpret backslashes.
  599.   cat <<EOF_SED > conftestsed
  600. s,\,\\,g; s,$,$$,g
  601. EOF_SED
  602.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  603.   rm -f conftestsed
  604. fi
  605. test "$program_prefix" != NONE &&
  606.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  607. # Use a double $ so make ignores it.
  608. test "$program_suffix" != NONE &&
  609.   program_transform_name="s,$$,${program_suffix},; $program_transform_name"
  610. # sed with no file args requires a program.
  611. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  612. echo $ac_n "checking if building in the top-level directory""... $ac_c" 1>&6
  613. echo "configure:695: checking if building in the top-level directory" >&5
  614.  test -d db_archive  && { echo "configure: error: 
  615. Berkeley DB cannot be built in the top-level distribution directory." 1>&2; exit 1; }
  616. echo "$ac_t""no" 1>&6
  617. o=.o
  618. INSTALLER="$(cp)"
  619. DEFAULT_LIB="$(libdb)"
  620. DEFAULT_INSTALL="install_static"
  621. DB_VERSION_MAJOR=3
  622. DB_VERSION_MINOR=2
  623. DB_VERSION_PATCH=9
  624. DB_VERSION_STRING=""Sleepycat Software: Berkeley DB 3.2.9a: (March 16, 2001)""
  625. echo $ac_n "checking if --disable-bigfile option specified""... $ac_c" 1>&6
  626. echo "configure:756: checking if --disable-bigfile option specified" >&5
  627. # Check whether --enable-bigfile or --disable-bigfile was given.
  628. if test "${enable_bigfile+set}" = set; then
  629.   enableval="$enable_bigfile"
  630.   db_cv_bigfile="yes"
  631. else
  632.   db_cv_bigfile="no"
  633. fi
  634. echo "$ac_t""$db_cv_bigfile" 1>&6
  635. echo $ac_n "checking if --enable-compat185 option specified""... $ac_c" 1>&6
  636. echo "configure:768: checking if --enable-compat185 option specified" >&5
  637. # Check whether --enable-compat185 or --disable-compat185 was given.
  638. if test "${enable_compat185+set}" = set; then
  639.   enableval="$enable_compat185"
  640.   db_cv_compat185="$enable_compat185"
  641. else
  642.   db_cv_compat185="no"
  643. fi
  644. echo "$ac_t""$db_cv_compat185" 1>&6
  645. echo $ac_n "checking if --enable-cxx option specified""... $ac_c" 1>&6
  646. echo "configure:780: checking if --enable-cxx option specified" >&5
  647. # Check whether --enable-cxx or --disable-cxx was given.
  648. if test "${enable_cxx+set}" = set; then
  649.   enableval="$enable_cxx"
  650.   db_cv_cxx="$enable_cxx"
  651. else
  652.   db_cv_cxx="no"
  653. fi
  654. echo "$ac_t""$db_cv_cxx" 1>&6
  655. echo $ac_n "checking if --enable-debug option specified""... $ac_c" 1>&6
  656. echo "configure:792: checking if --enable-debug option specified" >&5
  657. # Check whether --enable-debug or --disable-debug was given.
  658. if test "${enable_debug+set}" = set; then
  659.   enableval="$enable_debug"
  660.   db_cv_debug="$enable_debug"
  661. else
  662.   db_cv_debug="no"
  663. fi
  664. echo "$ac_t""$db_cv_debug" 1>&6
  665. echo $ac_n "checking if --enable-debug_rop option specified""... $ac_c" 1>&6
  666. echo "configure:804: checking if --enable-debug_rop option specified" >&5
  667. # Check whether --enable-debug_rop or --disable-debug_rop was given.
  668. if test "${enable_debug_rop+set}" = set; then
  669.   enableval="$enable_debug_rop"
  670.   db_cv_debug_rop="$enable_debug_rop"
  671. else
  672.   db_cv_debug_rop="no"
  673. fi
  674. echo "$ac_t""$db_cv_debug_rop" 1>&6
  675. echo $ac_n "checking if --enable-debug_wop option specified""... $ac_c" 1>&6
  676. echo "configure:816: checking if --enable-debug_wop option specified" >&5
  677. # Check whether --enable-debug_wop or --disable-debug_wop was given.
  678. if test "${enable_debug_wop+set}" = set; then
  679.   enableval="$enable_debug_wop"
  680.   db_cv_debug_wop="$enable_debug_wop"
  681. else
  682.   db_cv_debug_wop="no"
  683. fi
  684. echo "$ac_t""$db_cv_debug_wop" 1>&6
  685. echo $ac_n "checking if --enable-diagnostic option specified""... $ac_c" 1>&6
  686. echo "configure:828: checking if --enable-diagnostic option specified" >&5
  687. # Check whether --enable-diagnostic or --disable-diagnostic was given.
  688. if test "${enable_diagnostic+set}" = set; then
  689.   enableval="$enable_diagnostic"
  690.   db_cv_diagnostic="$enable_diagnostic"
  691. else
  692.   db_cv_diagnostic="no"
  693. fi
  694. echo "$ac_t""$db_cv_diagnostic" 1>&6
  695. echo $ac_n "checking if --enable-dump185 option specified""... $ac_c" 1>&6
  696. echo "configure:840: checking if --enable-dump185 option specified" >&5
  697. # Check whether --enable-dump185 or --disable-dump185 was given.
  698. if test "${enable_dump185+set}" = set; then
  699.   enableval="$enable_dump185"
  700.   db_cv_dump185="$enable_dump185"
  701. else
  702.   db_cv_dump185="no"
  703. fi
  704. echo "$ac_t""$db_cv_dump185" 1>&6
  705. echo $ac_n "checking if --enable-dynamic option specified""... $ac_c" 1>&6
  706. echo "configure:852: checking if --enable-dynamic option specified" >&5
  707. # Check whether --enable-dynamic or --disable-dynamic was given.
  708. if test "${enable_dynamic+set}" = set; then
  709.   enableval="$enable_dynamic"
  710.   db_cv_dynamic="$enable_dynamic"
  711. else
  712.   db_cv_dynamic="no"
  713. fi
  714. echo "$ac_t""$db_cv_dynamic" 1>&6
  715. echo $ac_n "checking if --enable-java option specified""... $ac_c" 1>&6
  716. echo "configure:864: checking if --enable-java option specified" >&5
  717. # Check whether --enable-java or --disable-java was given.
  718. if test "${enable_java+set}" = set; then
  719.   enableval="$enable_java"
  720.   db_cv_java="$enable_java"
  721. else
  722.   db_cv_java="no"
  723. fi
  724. echo "$ac_t""$db_cv_java" 1>&6
  725. echo $ac_n "checking if --enable-posixmutexes option specified""... $ac_c" 1>&6
  726. echo "configure:876: checking if --enable-posixmutexes option specified" >&5
  727. # Check whether --enable-posixmutexes or --disable-posixmutexes was given.
  728. if test "${enable_posixmutexes+set}" = set; then
  729.   enableval="$enable_posixmutexes"
  730.   db_cv_posixmutexes="$enable_posixmutexes"
  731. else
  732.   db_cv_posixmutexes="no"
  733. fi
  734. echo "$ac_t""$db_cv_posixmutexes" 1>&6
  735. echo $ac_n "checking if --enable-rpc option specified""... $ac_c" 1>&6
  736. echo "configure:888: checking if --enable-rpc option specified" >&5
  737. # Check whether --enable-rpc or --disable-rpc was given.
  738. if test "${enable_rpc+set}" = set; then
  739.   enableval="$enable_rpc"
  740.   db_cv_rpc="$enable_rpc"
  741. else
  742.   db_cv_rpc="no"
  743. fi
  744. echo "$ac_t""$db_cv_rpc" 1>&6
  745. echo $ac_n "checking if --enable-shared option specified""... $ac_c" 1>&6
  746. echo "configure:900: checking if --enable-shared option specified" >&5
  747. # Check whether --enable-shared or --disable-shared was given.
  748. if test "${enable_shared+set}" = set; then
  749.   enableval="$enable_shared"
  750.   db_cv_shared="$enable_shared"
  751. else
  752.   db_cv_shared="no"
  753. fi
  754. echo "$ac_t""$db_cv_shared" 1>&6
  755. if test "$db_cv_shared" != "no"; then
  756. db_cv_dynamic="yes"
  757. fi
  758. echo $ac_n "checking if --enable-tcl option specified""... $ac_c" 1>&6
  759. echo "configure:915: checking if --enable-tcl option specified" >&5
  760. # Check whether --enable-tcl or --disable-tcl was given.
  761. if test "${enable_tcl+set}" = set; then
  762.   enableval="$enable_tcl"
  763.   db_cv_tcl="$enable_tcl"
  764. else
  765.   db_cv_tcl="no"
  766. fi
  767. echo "$ac_t""$db_cv_tcl" 1>&6
  768. echo $ac_n "checking if --enable-test option specified""... $ac_c" 1>&6
  769. echo "configure:927: checking if --enable-test option specified" >&5
  770. # Check whether --enable-test or --disable-test was given.
  771. if test "${enable_test+set}" = set; then
  772.   enableval="$enable_test"
  773.   db_cv_test="$enable_test"
  774. else
  775.   db_cv_test="no"
  776. fi
  777. echo "$ac_t""$db_cv_test" 1>&6
  778. echo $ac_n "checking if --enable-uimutexes option specified""... $ac_c" 1>&6
  779. echo "configure:939: checking if --enable-uimutexes option specified" >&5
  780. # Check whether --enable-uimutexes or --disable-uimutexes was given.
  781. if test "${enable_uimutexes+set}" = set; then
  782.   enableval="$enable_uimutexes"
  783.   db_cv_uimutexes="$enable_uimutexes"
  784. else
  785.   db_cv_uimutexes="no"
  786. fi
  787. echo "$ac_t""$db_cv_uimutexes" 1>&6
  788. echo $ac_n "checking if --enable-umrw option specified""... $ac_c" 1>&6
  789. echo "configure:951: checking if --enable-umrw option specified" >&5
  790. # Check whether --enable-umrw or --disable-umrw was given.
  791. if test "${enable_umrw+set}" = set; then
  792.   enableval="$enable_umrw"
  793.   db_cv_umrw="$enable_umrw"
  794. else
  795.   db_cv_umrw="no"
  796. fi
  797. echo "$ac_t""$db_cv_umrw" 1>&6
  798. echo $ac_n "checking if --with-tcl option specified""... $ac_c" 1>&6
  799. echo "configure:963: checking if --with-tcl option specified" >&5
  800. # Check whether --with-tcl or --without-tcl was given.
  801. if test "${with_tcl+set}" = set; then
  802.   withval="$with_tcl"
  803.   with_tclconfig=${withval}
  804. else
  805.   with_tclconfig="no"
  806. fi
  807. echo "$ac_t""$with_tclconfig" 1>&6
  808. if test "$with_tclconfig" != "no"; then
  809. db_cv_tcl="yes"
  810. fi
  811. # This is to determine what compiler is being used and to set options.
  812. # i.e.  SCO OpenServer 5.0.X and UnixWare 7.X.X
  813. # option, cache_name, variable
  814. # os, option, cache_name, variable
  815. optimize_def="-O"
  816. case "$host_os" in
  817. aix4.*)    optimize_def="-O2"
  818.    CC=${CC-"xlc_r"}
  819.    CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
  820.    LIBTSO_LIBS="$(LIBS)";;
  821. bsdi3*)    CC=${CC-"shlicc2"}
  822.    optimize_def="-O2"
  823.    LIBS="-lipc $LIBS";;
  824. bsdi*)    optimize_def="-O2";;
  825. freebsd*)  optimize_def="-O2"
  826.    CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
  827.            LIBS="-pthread";;
  828. hpux*)    CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
  829. irix*)    optimize_def="-O2"
  830.    CPPFLAGS="-D_SGI_MP_SOURCE $CPPFLAGS";;
  831. linux*)    optimize_def="-O2"
  832.    CFLAGS="-D_GNU_SOURCE"
  833.    CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
  834. mpeix*)    CPPFLAGS="-D_POSIX_SOURCE -D_SOCKET_SOURCE $CPPFLAGS"
  835.    LIBS="-lsocket -lsvipc $LIBS";;
  836. osf*)    CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
  837. *qnx)    cat >> confdefs.h <<EOF
  838. #define HAVE_QNX 1
  839. EOF
  840. ;;
  841. sco3.2v4*) CC=${CC-"cc -belf"}
  842.    LIBS="-lsocket -lnsl_s $LIBS";;
  843. sco3.2v5*) if test "$GCC" != "yes"; then
  844.              CFLAGS="$CFLAGS"
  845.            LD='$(CC) $(CFLAGS)'
  846.      LIBS="-lsocket -lnsl $LIBS"
  847.      CPPFLAGS="-D_THREAD_SAFE -pthread $CPPFLAGS"
  848.              case "$CFLAGS" in
  849.                *-belf*) 
  850.                  
  851.   echo $ac_n "checking -belf""... $ac_c" 1>&6
  852. echo "configure:1024: checking -belf" >&5
  853.   OLD_CFLAGS="$CFLAGS"
  854.   if eval "test "`echo '$''{'db_cv_option_sco_belf_option'+set}'`" = set"; then
  855.   echo $ac_n "(cached) $ac_c" 1>&6
  856. else
  857.   
  858.     CFLAGS="$OLD_CFLAGS -belf"
  859.     if test "$cross_compiling" = yes; then
  860.   db_cv_option_sco_belf_option=no
  861. else
  862.   cat > conftest.$ac_ext <<EOF
  863. #line 1035 "configure"
  864. #include "confdefs.h"
  865. int main(){exit(0);}
  866. EOF
  867. if { (eval echo configure:1039: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  868. then
  869.   db_cv_option_sco_belf_option=yes
  870. else
  871.   echo "configure: failed program was:" >&5
  872.   cat conftest.$ac_ext >&5
  873.   rm -fr conftest*
  874.   db_cv_option_sco_belf_option=no
  875. fi
  876. rm -fr conftest*
  877. fi
  878.   
  879. fi
  880.   CFLAGS="$OLD_CFLAGS"
  881.   
  882.   if test x"$db_cv_option_sco_belf_option" = "xyes" ; then
  883.     CFLAGS="$CFLAGS -belf"
  884.     echo "$ac_t""yes" 1>&6
  885.     
  886.                  case "$LDFLAGS" in
  887.                    *-belf*) ;;
  888.                    *) echo "Adding -belf option to ldflags."
  889.                       LDFLAGS="$LDFLAGS -belf"
  890.                    ;;
  891.                  esac
  892.                  
  893.   else
  894.     echo "$ac_t""no" 1>&6
  895.     
  896.   fi
  897.                ;;
  898.                *)
  899.                  
  900.   echo $ac_n "checking -belf""... $ac_c" 1>&6
  901. echo "configure:1077: checking -belf" >&5
  902.   OLD_CFLAGS="$CFLAGS"
  903.   if eval "test "`echo '$''{'db_cv_option_sco_belf_option'+set}'`" = set"; then
  904.   echo $ac_n "(cached) $ac_c" 1>&6
  905. else
  906.   
  907.     CFLAGS="$OLD_CFLAGS -belf"
  908.     if test "$cross_compiling" = yes; then
  909.   db_cv_option_sco_belf_option=no
  910. else
  911.   cat > conftest.$ac_ext <<EOF
  912. #line 1088 "configure"
  913. #include "confdefs.h"
  914. int main(){exit(0);}
  915. EOF
  916. if { (eval echo configure:1092: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  917. then
  918.   db_cv_option_sco_belf_option=yes
  919. else
  920.   echo "configure: failed program was:" >&5
  921.   cat conftest.$ac_ext >&5
  922.   rm -fr conftest*
  923.   db_cv_option_sco_belf_option=no
  924. fi
  925. rm -fr conftest*
  926. fi
  927.   
  928. fi
  929.   CFLAGS="$OLD_CFLAGS"
  930.   
  931.   if test x"$db_cv_option_sco_belf_option" = "xyes" ; then
  932.     CFLAGS="$CFLAGS -belf"
  933.     echo "$ac_t""yes" 1>&6
  934.     
  935.                  case "$LDFLAGS" in
  936.                    *-belf*) ;;
  937.                    *)
  938.              echo "Adding -belf option to ldflags."
  939.                      LDFLAGS="$LDFLAGS -belf"
  940.                    ;;
  941.                  esac
  942.                  
  943.   else
  944.     echo "$ac_t""no" 1>&6
  945.     
  946.   fi
  947.                ;;
  948.              esac
  949.    else
  950.      CC="gcc"
  951.      LIBS="-lsocket -lnsl $LIBS"
  952.      CPPFLAGS="-D_THREAD_SAFE -pthread $CPPFLAGS"
  953.    fi
  954.  ;;
  955. sysv5uw7*) LIBS="-lsocket -lnsl $LIBS"
  956.     if test "$GCC" != "yes"; then
  957.       # We are using built-in inline function
  958.       CC="cc -belf"
  959.       CXX="CC -belf"
  960.       CFLAGS="$CFLAGS -Kalloca -Kthread"
  961.       CXX="$CXX -DNO_CPLUSPLUS_ALLOCA"
  962.       LIBS="-Kthread -lsocket -lnsl $LIBS"
  963.     else
  964.       CFLAGS="$CFLAGS -Kalloca -pthread"
  965.       CXX="$CXX -DNO_CPLUSPLUS_ALLOCA"
  966.       CPPFLAGS="-D_THREAD_SAFE -pthread $CPPFLAGS"
  967.       LIBS="-pthread -lsocket -lnsl $LIBS"
  968.     fi
  969.   ;;
  970. sco*)    CC=${CC-"cc -belf"}
  971.    LIBS="-lsocket -lnsl $LIBS";;
  972. solaris*)  CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
  973. esac
  974. CFLAGS=${CFLAGS-$optimize_def}
  975. CXXFLAGS=${CXXFLAGS-"$CFLAGS"}
  976. if test "$db_cv_debug" = yes; then
  977. cat >> confdefs.h <<EOF
  978. #define DEBUG 1
  979. EOF
  980. CFLAGS="$CFLAGS -g"
  981. CXXFLAGS="$CXXFLAGS -g"
  982. fi
  983. # Extract the first word of "cc", so it can be a program name with args.
  984. set dummy cc; ac_word=$2
  985. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  986. echo "configure:1170: checking for $ac_word" >&5
  987. if eval "test "`echo '$''{'ac_cv_prog_CC'+set}'`" = set"; then
  988.   echo $ac_n "(cached) $ac_c" 1>&6
  989. else
  990.   if test -n "$CC"; then
  991.   ac_cv_prog_CC="$CC" # Let the user override the test.
  992. else
  993.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  994.   ac_dummy="$PATH"
  995.   for ac_dir in $ac_dummy; do
  996.     test -z "$ac_dir" && ac_dir=.
  997.     if test -f $ac_dir/$ac_word; then
  998.       ac_cv_prog_CC="cc"
  999.       break
  1000.     fi
  1001.   done
  1002.   IFS="$ac_save_ifs"
  1003. fi
  1004. fi
  1005. CC="$ac_cv_prog_CC"
  1006. if test -n "$CC"; then
  1007.   echo "$ac_t""$CC" 1>&6
  1008. else
  1009.   echo "$ac_t""no" 1>&6
  1010. fi
  1011. # Extract the first word of "gcc", so it can be a program name with args.
  1012. set dummy gcc; ac_word=$2
  1013. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1014. echo "configure:1199: checking for $ac_word" >&5
  1015. if eval "test "`echo '$''{'ac_cv_prog_CC'+set}'`" = set"; then
  1016.   echo $ac_n "(cached) $ac_c" 1>&6
  1017. else
  1018.   if test -n "$CC"; then
  1019.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1020. else
  1021.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1022.   ac_dummy="$PATH"
  1023.   for ac_dir in $ac_dummy; do
  1024.     test -z "$ac_dir" && ac_dir=.
  1025.     if test -f $ac_dir/$ac_word; then
  1026.       ac_cv_prog_CC="gcc"
  1027.       break
  1028.     fi
  1029.   done
  1030.   IFS="$ac_save_ifs"
  1031. fi
  1032. fi
  1033. CC="$ac_cv_prog_CC"
  1034. if test -n "$CC"; then
  1035.   echo "$ac_t""$CC" 1>&6
  1036. else
  1037.   echo "$ac_t""no" 1>&6
  1038. fi
  1039. # Extract the first word of "gcc", so it can be a program name with args.
  1040. set dummy gcc; ac_word=$2
  1041. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1042. echo "configure:1228: checking for $ac_word" >&5
  1043. if eval "test "`echo '$''{'ac_cv_prog_CC'+set}'`" = set"; then
  1044.   echo $ac_n "(cached) $ac_c" 1>&6
  1045. else
  1046.   if test -n "$CC"; then
  1047.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1048. else
  1049.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1050.   ac_dummy="$PATH"
  1051.   for ac_dir in $ac_dummy; do
  1052.     test -z "$ac_dir" && ac_dir=.
  1053.     if test -f $ac_dir/$ac_word; then
  1054.       ac_cv_prog_CC="gcc"
  1055.       break
  1056.     fi
  1057.   done
  1058.   IFS="$ac_save_ifs"
  1059. fi
  1060. fi
  1061. CC="$ac_cv_prog_CC"
  1062. if test -n "$CC"; then
  1063.   echo "$ac_t""$CC" 1>&6
  1064. else
  1065.   echo "$ac_t""no" 1>&6
  1066. fi
  1067. if test -z "$CC"; then
  1068.   # Extract the first word of "cc", so it can be a program name with args.
  1069. set dummy cc; ac_word=$2
  1070. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1071. echo "configure:1258: checking for $ac_word" >&5
  1072. if eval "test "`echo '$''{'ac_cv_prog_CC'+set}'`" = set"; then
  1073.   echo $ac_n "(cached) $ac_c" 1>&6
  1074. else
  1075.   if test -n "$CC"; then
  1076.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1077. else
  1078.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1079.   ac_prog_rejected=no
  1080.   ac_dummy="$PATH"
  1081.   for ac_dir in $ac_dummy; do
  1082.     test -z "$ac_dir" && ac_dir=.
  1083.     if test -f $ac_dir/$ac_word; then
  1084.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1085.         ac_prog_rejected=yes
  1086. continue
  1087.       fi
  1088.       ac_cv_prog_CC="cc"
  1089.       break
  1090.     fi
  1091.   done
  1092.   IFS="$ac_save_ifs"
  1093. if test $ac_prog_rejected = yes; then
  1094.   # We found a bogon in the path, so make sure we never use it.
  1095.   set dummy $ac_cv_prog_CC
  1096.   shift
  1097.   if test $# -gt 0; then
  1098.     # We chose a different compiler from the bogus one.
  1099.     # However, it has the same basename, so the bogon will be chosen
  1100.     # first if we set CC to just the basename; use the full file name.
  1101.     shift
  1102.     set dummy "$ac_dir/$ac_word" "$@"
  1103.     shift
  1104.     ac_cv_prog_CC="$@"
  1105.   fi
  1106. fi
  1107. fi
  1108. fi
  1109. CC="$ac_cv_prog_CC"
  1110. if test -n "$CC"; then
  1111.   echo "$ac_t""$CC" 1>&6
  1112. else
  1113.   echo "$ac_t""no" 1>&6
  1114. fi
  1115.   if test -z "$CC"; then
  1116.     case "`uname -s`" in
  1117.     *win32* | *WIN32*)
  1118.       # Extract the first word of "cl", so it can be a program name with args.
  1119. set dummy cl; ac_word=$2
  1120. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1121. echo "configure:1309: checking for $ac_word" >&5
  1122. if eval "test "`echo '$''{'ac_cv_prog_CC'+set}'`" = set"; then
  1123.   echo $ac_n "(cached) $ac_c" 1>&6
  1124. else
  1125.   if test -n "$CC"; then
  1126.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1127. else
  1128.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1129.   ac_dummy="$PATH"
  1130.   for ac_dir in $ac_dummy; do
  1131.     test -z "$ac_dir" && ac_dir=.
  1132.     if test -f $ac_dir/$ac_word; then
  1133.       ac_cv_prog_CC="cl"
  1134.       break
  1135.     fi
  1136.   done
  1137.   IFS="$ac_save_ifs"
  1138. fi
  1139. fi
  1140. CC="$ac_cv_prog_CC"
  1141. if test -n "$CC"; then
  1142.   echo "$ac_t""$CC" 1>&6
  1143. else
  1144.   echo "$ac_t""no" 1>&6
  1145. fi
  1146.  ;;
  1147.     esac
  1148.   fi
  1149.   test -z "$CC" && { echo "configure: error: no acceptable cc found in $PATH" 1>&2; exit 1; }
  1150. fi
  1151. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1152. echo "configure:1341: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1153. ac_ext=c
  1154. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1155. ac_cpp='$CPP $CPPFLAGS'
  1156. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1157. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1158. cross_compiling=$ac_cv_prog_cc_cross
  1159. cat > conftest.$ac_ext << EOF
  1160. #line 1352 "configure"
  1161. #include "confdefs.h"
  1162. main(){return(0);}
  1163. EOF
  1164. if { (eval echo configure:1357: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1165.   ac_cv_prog_cc_works=yes
  1166.   # If we can't run a trivial program, we are probably using a cross compiler.
  1167.   if (./conftest; exit) 2>/dev/null; then
  1168.     ac_cv_prog_cc_cross=no
  1169.   else
  1170.     ac_cv_prog_cc_cross=yes
  1171.   fi
  1172. else
  1173.   echo "configure: failed program was:" >&5
  1174.   cat conftest.$ac_ext >&5
  1175.   ac_cv_prog_cc_works=no
  1176. fi
  1177. rm -fr conftest*
  1178. ac_ext=c
  1179. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1180. ac_cpp='$CPP $CPPFLAGS'
  1181. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1182. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1183. cross_compiling=$ac_cv_prog_cc_cross
  1184. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1185. if test $ac_cv_prog_cc_works = no; then
  1186.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1187. fi
  1188. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1189. echo "configure:1383: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1190. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1191. cross_compiling=$ac_cv_prog_cc_cross
  1192. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1193. echo "configure:1388: checking whether we are using GNU C" >&5
  1194. if eval "test "`echo '$''{'ac_cv_prog_gcc'+set}'`" = set"; then
  1195.   echo $ac_n "(cached) $ac_c" 1>&6
  1196. else
  1197.   cat > conftest.c <<EOF
  1198. #ifdef __GNUC__
  1199.   yes;
  1200. #endif
  1201. EOF
  1202. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1397: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1203.   ac_cv_prog_gcc=yes
  1204. else
  1205.   ac_cv_prog_gcc=no
  1206. fi
  1207. fi
  1208. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1209. if test $ac_cv_prog_gcc = yes; then
  1210.   GCC=yes
  1211. else
  1212.   GCC=
  1213. fi
  1214. ac_test_CFLAGS="${CFLAGS+set}"
  1215. ac_save_CFLAGS="$CFLAGS"
  1216. CFLAGS=
  1217. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1218. echo "configure:1416: checking whether ${CC-cc} accepts -g" >&5
  1219. if eval "test "`echo '$''{'ac_cv_prog_cc_g'+set}'`" = set"; then
  1220.   echo $ac_n "(cached) $ac_c" 1>&6
  1221. else
  1222.   echo 'void f(){}' > conftest.c
  1223. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1224.   ac_cv_prog_cc_g=yes
  1225. else
  1226.   ac_cv_prog_cc_g=no
  1227. fi
  1228. rm -f conftest*
  1229. fi
  1230. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1231. if test "$ac_test_CFLAGS" = set; then
  1232.   CFLAGS="$ac_save_CFLAGS"
  1233. elif test $ac_cv_prog_cc_g = yes; then
  1234.   if test "$GCC" = yes; then
  1235.     CFLAGS="-g -O2"
  1236.   else
  1237.     CFLAGS="-g"
  1238.   fi
  1239. else
  1240.   if test "$GCC" = yes; then
  1241.     CFLAGS="-O2"
  1242.   else
  1243.     CFLAGS=
  1244.   fi
  1245. fi
  1246. MAKEFILE_CC=${CC}
  1247. MAKEFILE_CCLINK="$(CC)"
  1248. MAKEFILE_CXX="nocxx"
  1249. if test "$db_cv_diagnostic" = yes; then
  1250. cat >> confdefs.h <<EOF
  1251. #define DIAGNOSTIC 1
  1252. EOF
  1253. fi
  1254. if test "$db_cv_debug_rop" = yes; then
  1255. cat >> confdefs.h <<EOF
  1256. #define DEBUG_ROP 1
  1257. EOF
  1258. fi
  1259. if test "$db_cv_debug_wop" = yes; then
  1260. cat >> confdefs.h <<EOF
  1261. #define DEBUG_WOP 1
  1262. EOF
  1263. fi
  1264. if test "$db_cv_umrw" = yes; then
  1265. cat >> confdefs.h <<EOF
  1266. #define UMRW 1
  1267. EOF
  1268. fi
  1269. if test "$db_cv_test" = yes; then
  1270. cat >> confdefs.h <<EOF
  1271. #define CONFIG_TEST 1
  1272. EOF
  1273. fi
  1274. if test "$db_cv_cxx" = "yes"; then
  1275. if test "$GCC" != "yes"; then
  1276. case "$host_os" in
  1277. aix*) # Extract the first word of "xlC_r", so it can be a program name with args.
  1278. set dummy xlC_r; ac_word=$2
  1279. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1280. echo "configure:1489: checking for $ac_word" >&5
  1281. if eval "test "`echo '$''{'ac_cv_prog_CCC'+set}'`" = set"; then
  1282.   echo $ac_n "(cached) $ac_c" 1>&6
  1283. else
  1284.   if test -n "$CCC"; then
  1285.   ac_cv_prog_CCC="$CCC" # Let the user override the test.
  1286. else
  1287.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1288.   ac_dummy="$PATH"
  1289.   for ac_dir in $ac_dummy; do
  1290.     test -z "$ac_dir" && ac_dir=.
  1291.     if test -f $ac_dir/$ac_word; then
  1292.       ac_cv_prog_CCC="xlC_r"
  1293.       break
  1294.     fi
  1295.   done
  1296.   IFS="$ac_save_ifs"
  1297. fi
  1298. fi
  1299. CCC="$ac_cv_prog_CCC"
  1300. if test -n "$CCC"; then
  1301.   echo "$ac_t""$CCC" 1>&6
  1302. else
  1303.   echo "$ac_t""no" 1>&6
  1304. fi
  1305. ;;
  1306. hpux*) # Extract the first word of "aCC", so it can be a program name with args.
  1307. set dummy aCC; ac_word=$2
  1308. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1309. echo "configure:1518: checking for $ac_word" >&5
  1310. if eval "test "`echo '$''{'ac_cv_prog_CCC'+set}'`" = set"; then
  1311.   echo $ac_n "(cached) $ac_c" 1>&6
  1312. else
  1313.   if test -n "$CCC"; then
  1314.   ac_cv_prog_CCC="$CCC" # Let the user override the test.
  1315. else
  1316.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1317.   ac_dummy="$PATH"
  1318.   for ac_dir in $ac_dummy; do
  1319.     test -z "$ac_dir" && ac_dir=.
  1320.     if test -f $ac_dir/$ac_word; then
  1321.       ac_cv_prog_CCC="aCC"
  1322.       break
  1323.     fi
  1324.   done
  1325.   IFS="$ac_save_ifs"
  1326. fi
  1327. fi
  1328. CCC="$ac_cv_prog_CCC"
  1329. if test -n "$CCC"; then
  1330.   echo "$ac_t""$CCC" 1>&6
  1331. else
  1332.   echo "$ac_t""no" 1>&6
  1333. fi
  1334. ;;
  1335. osf*) # Extract the first word of "cxx", so it can be a program name with args.
  1336. set dummy cxx; ac_word=$2
  1337. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1338. echo "configure:1547: checking for $ac_word" >&5
  1339. if eval "test "`echo '$''{'ac_cv_prog_CCC'+set}'`" = set"; then
  1340.   echo $ac_n "(cached) $ac_c" 1>&6
  1341. else
  1342.   if test -n "$CCC"; then
  1343.   ac_cv_prog_CCC="$CCC" # Let the user override the test.
  1344. else
  1345.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1346.   ac_dummy="$PATH"
  1347.   for ac_dir in $ac_dummy; do
  1348.     test -z "$ac_dir" && ac_dir=.
  1349.     if test -f $ac_dir/$ac_word; then
  1350.       ac_cv_prog_CCC="cxx"
  1351.       break
  1352.     fi
  1353.   done
  1354.   IFS="$ac_save_ifs"
  1355. fi
  1356. fi
  1357. CCC="$ac_cv_prog_CCC"
  1358. if test -n "$CCC"; then
  1359.   echo "$ac_t""$CCC" 1>&6
  1360. else
  1361.   echo "$ac_t""no" 1>&6
  1362. fi
  1363. ;;
  1364. solaris*) # Extract the first word of "CC", so it can be a program name with args.
  1365. set dummy CC; ac_word=$2
  1366. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1367. echo "configure:1576: checking for $ac_word" >&5
  1368. if eval "test "`echo '$''{'ac_cv_prog_CCC'+set}'`" = set"; then
  1369.   echo $ac_n "(cached) $ac_c" 1>&6
  1370. else
  1371.   if test -n "$CCC"; then
  1372.   ac_cv_prog_CCC="$CCC" # Let the user override the test.
  1373. else
  1374.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1375.   ac_dummy="$PATH"
  1376.   for ac_dir in $ac_dummy; do
  1377.     test -z "$ac_dir" && ac_dir=.
  1378.     if test -f $ac_dir/$ac_word; then
  1379.       ac_cv_prog_CCC="CC"
  1380.       break
  1381.     fi
  1382.   done
  1383.   IFS="$ac_save_ifs"
  1384. fi
  1385. fi
  1386. CCC="$ac_cv_prog_CCC"
  1387. if test -n "$CCC"; then
  1388.   echo "$ac_t""$CCC" 1>&6
  1389. else
  1390.   echo "$ac_t""no" 1>&6
  1391. fi
  1392. ;;
  1393. esac
  1394. fi
  1395. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  1396. do
  1397. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1398. set dummy $ac_prog; ac_word=$2
  1399. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1400. echo "configure:1609: checking for $ac_word" >&5
  1401. if eval "test "`echo '$''{'ac_cv_prog_CXX'+set}'`" = set"; then
  1402.   echo $ac_n "(cached) $ac_c" 1>&6
  1403. else
  1404.   if test -n "$CXX"; then
  1405.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1406. else
  1407.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1408.   ac_dummy="$PATH"
  1409.   for ac_dir in $ac_dummy; do
  1410.     test -z "$ac_dir" && ac_dir=.
  1411.     if test -f $ac_dir/$ac_word; then
  1412.       ac_cv_prog_CXX="$ac_prog"
  1413.       break
  1414.     fi
  1415.   done
  1416.   IFS="$ac_save_ifs"
  1417. fi
  1418. fi
  1419. CXX="$ac_cv_prog_CXX"
  1420. if test -n "$CXX"; then
  1421.   echo "$ac_t""$CXX" 1>&6
  1422. else
  1423.   echo "$ac_t""no" 1>&6
  1424. fi
  1425. test -n "$CXX" && break
  1426. done
  1427. test -n "$CXX" || CXX="gcc"
  1428. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1429. echo "configure:1641: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  1430. ac_ext=C
  1431. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1432. ac_cpp='$CXXCPP $CPPFLAGS'
  1433. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1434. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1435. cross_compiling=$ac_cv_prog_cxx_cross
  1436. cat > conftest.$ac_ext << EOF
  1437. #line 1652 "configure"
  1438. #include "confdefs.h"
  1439. int main(){return(0);}
  1440. EOF
  1441. if { (eval echo configure:1657: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1442.   ac_cv_prog_cxx_works=yes
  1443.   # If we can't run a trivial program, we are probably using a cross compiler.
  1444.   if (./conftest; exit) 2>/dev/null; then
  1445.     ac_cv_prog_cxx_cross=no
  1446.   else
  1447.     ac_cv_prog_cxx_cross=yes
  1448.   fi
  1449. else
  1450.   echo "configure: failed program was:" >&5
  1451.   cat conftest.$ac_ext >&5
  1452.   ac_cv_prog_cxx_works=no
  1453. fi
  1454. rm -fr conftest*
  1455. ac_ext=c
  1456. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1457. ac_cpp='$CPP $CPPFLAGS'
  1458. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1459. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1460. cross_compiling=$ac_cv_prog_cc_cross
  1461. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  1462. if test $ac_cv_prog_cxx_works = no; then
  1463.   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  1464. fi
  1465. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1466. echo "configure:1683: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  1467. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  1468. cross_compiling=$ac_cv_prog_cxx_cross
  1469. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  1470. echo "configure:1688: checking whether we are using GNU C++" >&5
  1471. if eval "test "`echo '$''{'ac_cv_prog_gxx'+set}'`" = set"; then
  1472.   echo $ac_n "(cached) $ac_c" 1>&6
  1473. else
  1474.   cat > conftest.C <<EOF
  1475. #ifdef __GNUC__
  1476.   yes;
  1477. #endif
  1478. EOF
  1479. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1697: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1480.   ac_cv_prog_gxx=yes
  1481. else
  1482.   ac_cv_prog_gxx=no
  1483. fi
  1484. fi
  1485. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  1486. if test $ac_cv_prog_gxx = yes; then
  1487.   GXX=yes
  1488. else
  1489.   GXX=
  1490. fi
  1491. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  1492. ac_save_CXXFLAGS="$CXXFLAGS"
  1493. CXXFLAGS=
  1494. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  1495. echo "configure:1716: checking whether ${CXX-g++} accepts -g" >&5
  1496. if eval "test "`echo '$''{'ac_cv_prog_cxx_g'+set}'`" = set"; then
  1497.   echo $ac_n "(cached) $ac_c" 1>&6
  1498. else
  1499.   echo 'void f(){}' > conftest.cc
  1500. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  1501.   ac_cv_prog_cxx_g=yes
  1502. else
  1503.   ac_cv_prog_cxx_g=no
  1504. fi
  1505. rm -f conftest*
  1506. fi
  1507. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  1508. if test "$ac_test_CXXFLAGS" = set; then
  1509.   CXXFLAGS="$ac_save_CXXFLAGS"
  1510. elif test $ac_cv_prog_cxx_g = yes; then
  1511.   if test "$GXX" = yes; then
  1512.     CXXFLAGS="-g -O2"
  1513.   else
  1514.     CXXFLAGS="-g"
  1515.   fi
  1516. else
  1517.   if test "$GXX" = yes; then
  1518.     CXXFLAGS="-O2"
  1519.   else
  1520.     CXXFLAGS=
  1521.   fi
  1522. fi
  1523. MAKEFILE_CXX=${CXX}
  1524. fi
  1525. if test "$GXX" = "yes"; then
  1526. CXXVERSION=`${MAKEFILE_CXX} --version`
  1527. case ${CXXVERSION} in
  1528. 1.*|2.[01234567].*|*-1.*|*-2.[01234567].* )
  1529. CXXFLAGS="-fhandle-exceptions $CXXFLAGS";;
  1530. * ) CXXFLAGS="-fexceptions $CXXFLAGS";;
  1531. esac
  1532. fi
  1533. export CC CCC
  1534. CCC=CXX
  1535. LIBDB_ARGS="libdb.a"
  1536. LIBTOOL="nolibtool"
  1537. POSTLINK="@true"
  1538. SOSUFFIX="so"
  1539. if test "$db_cv_dynamic" = "yes"; then
  1540. SAVE_CC="${MAKEFILE_CC}"
  1541. SAVE_CXX="${MAKEFILE_CXX}"
  1542. # Configure libtool.
  1543. echo $ac_n "checking libtool configuration""... $ac_c" 1>&6
  1544. echo "configure:1772: checking libtool configuration" >&5
  1545. echo "$ac_t""" 1>&6
  1546. ${CONFIG_SHELL-/bin/sh} $srcdir/ltconfig 
  1547. --no-verify $srcdir/ltmain.sh 
  1548. --output=./libtool $host_os 
  1549. --disable-static 
  1550. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1551. SOSUFFIX=`sed -e '/^library_names_spec=/!d' -e 's/.*.([a-zA-Z0-9_]*).*/1/' ./libtool`
  1552. DEFAULT_LIB="$(libso_target)"
  1553. DEFAULT_INSTALL="install_dynamic"
  1554. LIBDB_ARGS="$(libso_linkname)"
  1555. LIBTOOL="$(SHELL) ./libtool"
  1556. MAKEFILE_CC="$(LIBTOOL) --mode=compile ${SAVE_CC}"
  1557. MAKEFILE_CXX="$(LIBTOOL) --mode=compile ${SAVE_CXX}"
  1558. MAKEFILE_CCLINK="$(LIBTOOL) --mode=link ${SAVE_CC}"
  1559. INSTALLER="$(LIBTOOL) --mode=install cp"
  1560. POSTLINK="$(LIBTOOL) --mode=execute true"
  1561. SOLINK="$(LIBTOOL) --mode=link ${SAVE_CC} -avoid-version"
  1562. SOFLAGS="-rpath $(libdir)"
  1563. o=".lo"
  1564. fi
  1565. if test "$db_cv_cxx" = "yes"; then
  1566. if test "$db_cv_dynamic" = "yes"; then
  1567. ADDITIONAL_LIBS="$ADDITIONAL_LIBS $(libxso_target)"
  1568. DEFAULT_INSTALL="${DEFAULT_INSTALL} install_dynamic_cxx"
  1569. else
  1570. ADDITIONAL_LIBS="$ADDITIONAL_LIBS $(libcxx)"
  1571. DEFAULT_INSTALL="${DEFAULT_INSTALL} install_static_cxx"
  1572. fi
  1573. fi
  1574. if test "$db_cv_java" = "yes"; then
  1575. if test "$db_cv_dynamic" != "yes"; then
  1576. { echo "configure: error: --enable-java requires --enable-dynamic" 1>&2; exit 1; }
  1577. fi
  1578. # Extract the first word of "javac", so it can be a program name with args.
  1579. set dummy javac; ac_word=$2
  1580. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1581. echo "configure:1815: checking for $ac_word" >&5
  1582. if eval "test "`echo '$''{'ac_cv_prog_JAVAC'+set}'`" = set"; then
  1583.   echo $ac_n "(cached) $ac_c" 1>&6
  1584. else
  1585.   if test -n "$JAVAC"; then
  1586.   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
  1587. else
  1588.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1589.   ac_dummy="$PATH"
  1590.   for ac_dir in $ac_dummy; do
  1591.     test -z "$ac_dir" && ac_dir=.
  1592.     if test -f $ac_dir/$ac_word; then
  1593.       ac_cv_prog_JAVAC="javac"
  1594.       break
  1595.     fi
  1596.   done
  1597.   IFS="$ac_save_ifs"
  1598.   test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC="nojavac"
  1599. fi
  1600. fi
  1601. JAVAC="$ac_cv_prog_JAVAC"
  1602. if test -n "$JAVAC"; then
  1603.   echo "$ac_t""$JAVAC" 1>&6
  1604. else
  1605.   echo "$ac_t""no" 1>&6
  1606. fi
  1607. if test "$JAVAC" = "nojavac"; then
  1608. { echo "configure: error: no javac compiler in PATH" 1>&2; exit 1; }
  1609. fi
  1610. # Extract the first word of "jar", so it can be a program name with args.
  1611. set dummy jar; ac_word=$2
  1612. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1613. echo "configure:1848: checking for $ac_word" >&5
  1614. if eval "test "`echo '$''{'ac_cv_prog_JAR'+set}'`" = set"; then
  1615.   echo $ac_n "(cached) $ac_c" 1>&6
  1616. else
  1617.   if test -n "$JAR"; then
  1618.   ac_cv_prog_JAR="$JAR" # Let the user override the test.
  1619. else
  1620.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1621.   ac_dummy="$PATH"
  1622.   for ac_dir in $ac_dummy; do
  1623.     test -z "$ac_dir" && ac_dir=.
  1624.     if test -f $ac_dir/$ac_word; then
  1625.       ac_cv_prog_JAR="jar"
  1626.       break
  1627.     fi
  1628.   done
  1629.   IFS="$ac_save_ifs"
  1630.   test -z "$ac_cv_prog_JAR" && ac_cv_prog_JAR="nojar"
  1631. fi
  1632. fi
  1633. JAR="$ac_cv_prog_JAR"
  1634. if test -n "$JAR"; then
  1635.   echo "$ac_t""$JAR" 1>&6
  1636. else
  1637.   echo "$ac_t""no" 1>&6
  1638. fi
  1639. if test "$JAR" = "nojar"; then
  1640. { echo "configure: error: no jar utility in PATH" 1>&2; exit 1; }
  1641. fi
  1642. # Extract the first word of "javac", so it can be a program name with args.
  1643. set dummy javac; ac_word=$2
  1644. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1645. echo "configure:1881: checking for $ac_word" >&5
  1646. if eval "test "`echo '$''{'ac_cv_path_JAVACABS'+set}'`" = set"; then
  1647.   echo $ac_n "(cached) $ac_c" 1>&6
  1648. else
  1649.   case "$JAVACABS" in
  1650.   /*)
  1651.   ac_cv_path_JAVACABS="$JAVACABS" # Let the user override the test with a path.
  1652.   ;;
  1653.   ?:/*)  
  1654.   ac_cv_path_JAVACABS="$JAVACABS" # Let the user override the test with a dos path.
  1655.   ;;
  1656.   *)
  1657.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1658.   ac_dummy="$PATH"
  1659.   for ac_dir in $ac_dummy; do 
  1660.     test -z "$ac_dir" && ac_dir=.
  1661.     if test -f $ac_dir/$ac_word; then
  1662.       ac_cv_path_JAVACABS="$ac_dir/$ac_word"
  1663.       break
  1664.     fi
  1665.   done
  1666.   IFS="$ac_save_ifs"
  1667.   test -z "$ac_cv_path_JAVACABS" && ac_cv_path_JAVACABS="nojavac"
  1668.   ;;
  1669. esac
  1670. fi
  1671. JAVACABS="$ac_cv_path_JAVACABS"
  1672. if test -n "$JAVACABS"; then
  1673.   echo "$ac_t""$JAVACABS" 1>&6
  1674. else
  1675.   echo "$ac_t""no" 1>&6
  1676. fi
  1677. ADDITIONAL_LIBS="$ADDITIONAL_LIBS $(libjso_target)"
  1678. ADDITIONAL_LANG="$ADDITIONAL_LANG java"
  1679. DEFAULT_INSTALL="${DEFAULT_INSTALL} install_java"
  1680. while ls -ld "$JAVACABS" 2>/dev/null | grep " -> " >/dev/null; do
  1681. echo $ac_n "checking symlink for $JAVACABS""... $ac_c" 1>&6
  1682. echo "configure:1920: checking symlink for $JAVACABS" >&5
  1683. JAVACLINK=`ls -ld $JAVACABS | sed 's/.* -> //'`
  1684. case "$JAVACLINK" in
  1685. /*) JAVACABS="$JAVACLINK";;
  1686. *) JAVACABS=`echo "X$JAVACABS" | sed -e 's/^X//' -e 's:[^/]*$::'`"$JAVACLINK";;
  1687. esac
  1688. echo "$ac_t""$JAVACABS" 1>&6
  1689. done
  1690. JTOPDIR=`echo "$JAVACABS" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
  1691. if test -f "$JTOPDIR/include/jni.h"; then
  1692. CPPFLAGS="$CPPFLAGSS -I$JTOPDIR/include"
  1693. else
  1694. JTOPDIR=`echo "$JTOPDIR" | sed -e 's:/[^/]*$::'`
  1695. if test -f "$JTOPDIR/include/jni.h"; then
  1696. CPPFLAGS="$CPPFLAGS -I$JTOPDIR/include"
  1697. else
  1698. { echo "configure: error: cannot find java include files" 1>&2; exit 1; }
  1699. fi
  1700. fi
  1701. case "$host_os" in
  1702. solaris*) JINCSUBDIRS="solaris";;
  1703. linux*) JINCSUBDIRS="linux genunix";;
  1704. *) JINCSUBDIRS="genunix";;
  1705. esac
  1706. for JINCSUBDIR in $JINCSUBDIRS
  1707. do
  1708. if test -d "$JTOPDIR/include/$JINCSUBDIR"; then
  1709. CPPFLAGS="$CPPFLAGS -I$JTOPDIR/include/$JINCSUBDIR"
  1710. fi
  1711. done
  1712. else
  1713. JAVAC=nojavac
  1714. fi
  1715. if test "$db_cv_rpc" = "yes"; then
  1716. cat >> confdefs.h <<EOF
  1717. #define HAVE_RPC 1
  1718. EOF
  1719. RPC_OBJS="$(RPC_OBJS)"
  1720. ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"
  1721. case "$host_os" in
  1722. hpux*)
  1723. echo $ac_n "checking for svc_run""... $ac_c" 1>&6
  1724. echo "configure:1968: checking for svc_run" >&5
  1725. if eval "test "`echo '$''{'ac_cv_func_svc_run'+set}'`" = set"; then
  1726.   echo $ac_n "(cached) $ac_c" 1>&6
  1727. else
  1728.   cat > conftest.$ac_ext <<EOF
  1729. #line 1973 "configure"
  1730. #include "confdefs.h"
  1731. /* System header to define __stub macros and hopefully few prototypes,
  1732.     which can conflict with char svc_run(); below.  */
  1733. #include <assert.h>
  1734. /* Override any gcc2 internal prototype to avoid an error.  */
  1735. /* We use char because int might match the return type of a gcc2
  1736.     builtin and then its argument prototype would still apply.  */
  1737. char svc_run();
  1738. int main() {
  1739. /* The GNU C library defines this for functions which it implements
  1740.     to always fail with ENOSYS.  Some functions are actually named
  1741.     something starting with __ and the normal name is an alias.  */
  1742. #if defined (__stub_svc_run) || defined (__stub___svc_run)
  1743. choke me
  1744. #else
  1745. svc_run();
  1746. #endif
  1747. ; return 0; }
  1748. EOF
  1749. if { (eval echo configure:1996: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1750.   rm -rf conftest*
  1751.   eval "ac_cv_func_svc_run=yes"
  1752. else
  1753.   echo "configure: failed program was:" >&5
  1754.   cat conftest.$ac_ext >&5
  1755.   rm -rf conftest*
  1756.   eval "ac_cv_func_svc_run=no"
  1757. fi
  1758. rm -f conftest*
  1759. fi
  1760. if eval "test "`echo '$ac_cv_func_'svc_run`" = yes"; then
  1761.   echo "$ac_t""yes" 1>&6
  1762.   :
  1763. else
  1764.   echo "$ac_t""no" 1>&6
  1765. echo $ac_n "checking for svc_run in -lnsl""... $ac_c" 1>&6
  1766. echo "configure:2014: checking for svc_run in -lnsl" >&5
  1767. ac_lib_var=`echo nsl'_'svc_run | sed 'y%./+-%__p_%'`
  1768. if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
  1769.   echo $ac_n "(cached) $ac_c" 1>&6
  1770. else
  1771.   ac_save_LIBS="$LIBS"
  1772. LIBS="-lnsl  $LIBS"
  1773. cat > conftest.$ac_ext <<EOF
  1774. #line 2022 "configure"
  1775. #include "confdefs.h"
  1776. /* Override any gcc2 internal prototype to avoid an error.  */
  1777. /* We use char because int might match the return type of a gcc2
  1778.     builtin and then its argument prototype would still apply.  */
  1779. char svc_run();
  1780. int main() {
  1781. svc_run()
  1782. ; return 0; }
  1783. EOF
  1784. if { (eval echo configure:2033: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1785.   rm -rf conftest*
  1786.   eval "ac_cv_lib_$ac_lib_var=yes"
  1787. else
  1788.   echo "configure: failed program was:" >&5
  1789.   cat conftest.$ac_ext >&5
  1790.   rm -rf conftest*
  1791.   eval "ac_cv_lib_$ac_lib_var=no"
  1792. fi
  1793. rm -f conftest*
  1794. LIBS="$ac_save_LIBS"
  1795. fi
  1796. if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
  1797.   echo "$ac_t""yes" 1>&6
  1798.   LIBS="-lnsl $LIBS"; LIBTSO_LIBS="-lnsl $LIBTSO_LIBS"
  1799. else
  1800.   echo "$ac_t""no" 1>&6
  1801. fi
  1802. fi
  1803. ;;
  1804. solaris*)
  1805. echo $ac_n "checking for svc_run""... $ac_c" 1>&6
  1806. echo "configure:2057: checking for svc_run" >&5
  1807. if eval "test "`echo '$''{'ac_cv_func_svc_run'+set}'`" = set"; then
  1808.   echo $ac_n "(cached) $ac_c" 1>&6
  1809. else
  1810.   cat > conftest.$ac_ext <<EOF
  1811. #line 2062 "configure"
  1812. #include "confdefs.h"
  1813. /* System header to define __stub macros and hopefully few prototypes,
  1814.     which can conflict with char svc_run(); below.  */
  1815. #include <assert.h>
  1816. /* Override any gcc2 internal prototype to avoid an error.  */
  1817. /* We use char because int might match the return type of a gcc2
  1818.     builtin and then its argument prototype would still apply.  */
  1819. char svc_run();
  1820. int main() {
  1821. /* The GNU C library defines this for functions which it implements
  1822.     to always fail with ENOSYS.  Some functions are actually named
  1823.     something starting with __ and the normal name is an alias.  */
  1824. #if defined (__stub_svc_run) || defined (__stub___svc_run)
  1825. choke me
  1826. #else
  1827. svc_run();
  1828. #endif
  1829. ; return 0; }
  1830. EOF
  1831. if { (eval echo configure:2085: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1832.   rm -rf conftest*
  1833.   eval "ac_cv_func_svc_run=yes"
  1834. else
  1835.   echo "configure: failed program was:" >&5
  1836.   cat conftest.$ac_ext >&5
  1837.   rm -rf conftest*
  1838.   eval "ac_cv_func_svc_run=no"
  1839. fi
  1840. rm -f conftest*
  1841. fi
  1842. if eval "test "`echo '$ac_cv_func_'svc_run`" = yes"; then
  1843.   echo "$ac_t""yes" 1>&6
  1844.   :
  1845. else
  1846.   echo "$ac_t""no" 1>&6
  1847. echo $ac_n "checking for svc_run in -lnsl""... $ac_c" 1>&6
  1848. echo "configure:2103: checking for svc_run in -lnsl" >&5
  1849. ac_lib_var=`echo nsl'_'svc_run | sed 'y%./+-%__p_%'`
  1850. if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
  1851.   echo $ac_n "(cached) $ac_c" 1>&6
  1852. else
  1853.   ac_save_LIBS="$LIBS"
  1854. LIBS="-lnsl  $LIBS"
  1855. cat > conftest.$ac_ext <<EOF
  1856. #line 2111 "configure"
  1857. #include "confdefs.h"
  1858. /* Override any gcc2 internal prototype to avoid an error.  */
  1859. /* We use char because int might match the return type of a gcc2
  1860.     builtin and then its argument prototype would still apply.  */
  1861. char svc_run();
  1862. int main() {
  1863. svc_run()
  1864. ; return 0; }
  1865. EOF
  1866. if { (eval echo configure:2122: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1867.   rm -rf conftest*
  1868.   eval "ac_cv_lib_$ac_lib_var=yes"
  1869. else
  1870.   echo "configure: failed program was:" >&5
  1871.   cat conftest.$ac_ext >&5
  1872.   rm -rf conftest*
  1873.   eval "ac_cv_lib_$ac_lib_var=no"
  1874. fi
  1875. rm -f conftest*
  1876. LIBS="$ac_save_LIBS"
  1877. fi
  1878. if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
  1879.   echo "$ac_t""yes" 1>&6
  1880.     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' 
  1881.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1882.   cat >> confdefs.h <<EOF
  1883. #define $ac_tr_lib 1
  1884. EOF
  1885.   LIBS="-lnsl $LIBS"
  1886. else
  1887.   echo "$ac_t""no" 1>&6
  1888. fi
  1889. fi
  1890. ;;
  1891. esac
  1892. fi
  1893. if test "$db_cv_tcl" != no; then
  1894. if test "$db_cv_dynamic" != "yes"; then
  1895. { echo "configure: error: --with-tcl requires --enable-dynamic" 1>&2; exit 1; }
  1896. fi
  1897. if eval "test "`echo '$''{'ac_cv_c_tclconfig'+set}'`" = set"; then
  1898.   echo $ac_n "(cached) $ac_c" 1>&6
  1899. else
  1900.   
  1901.     # First check to see if --with-tclconfig was specified.
  1902.     if test "${with_tclconfig}" != no; then
  1903. if test -f "${with_tclconfig}/tclConfig.sh" ; then
  1904.     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
  1905. else
  1906.     { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
  1907. fi
  1908.     fi
  1909.     # check in a few common install locations
  1910.     if test x"${ac_cv_c_tclconfig}" = x ; then
  1911. for i in `ls -d /usr/local/lib 2>/dev/null` ; do
  1912.     if test -f "$i/tclConfig.sh" ; then
  1913. ac_cv_c_tclconfig=`(cd $i; pwd)`
  1914. break
  1915.     fi
  1916. done
  1917.     fi
  1918. fi
  1919. if test x"${ac_cv_c_tclconfig}" = x ; then
  1920.     TCL_BIN_DIR="# no Tcl configs found"
  1921.     { echo "configure: error: can't find Tcl configuration definitions" 1>&2; exit 1; }
  1922. else
  1923.     TCL_BIN_DIR=${ac_cv_c_tclconfig}
  1924. fi
  1925. echo $ac_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh""... $ac_c" 1>&6
  1926. echo "configure:2200: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
  1927. if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
  1928. echo "$ac_t""loading" 1>&6
  1929. . $TCL_BIN_DIR/tclConfig.sh
  1930. else
  1931. echo "$ac_t""file not found" 1>&6
  1932. fi
  1933. #
  1934. # The eval is required to do the TCL_DBGX substitution in the
  1935. # TCL_LIB_FILE variable
  1936. #
  1937. eval TCL_LIB_FILE="${TCL_LIB_FILE}"
  1938. eval TCL_LIB_FLAG="${TCL_LIB_FLAG}"
  1939. eval "TCL_LIB_SPEC="${TCL_LIB_SPEC}""
  1940. TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"
  1941. if test x"$TCL_PREFIX" != x && test -f "$TCL_PREFIX/include/tcl.h"; then
  1942. TCFLAGS="-I$TCL_PREFIX/include"
  1943. fi
  1944. LIBS="$LIBS $TCL_LIB_SPEC $TCL_LIBS"
  1945. ADDITIONAL_LIBS="$ADDITIONAL_LIBS $(libtso_target)"
  1946. DEFAULT_INSTALL="${DEFAULT_INSTALL} install_tcl"
  1947. fi
  1948. if test "$db_cv_compat185" = "yes"; then
  1949. ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS"
  1950. ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS"
  1951. fi
  1952. if test "$db_cv_dump185" = "yes"; then
  1953. ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS"
  1954. fi
  1955. SCOLIBS=$LIBS
  1956. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  1957. echo "configure:2246: checking for pthread_create in -lpthread" >&5
  1958. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  1959. if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
  1960.   echo $ac_n "(cached) $ac_c" 1>&6
  1961. else
  1962.   ac_save_LIBS="$LIBS"
  1963. LIBS="-lpthread  $LIBS"
  1964. cat > conftest.$ac_ext <<EOF
  1965. #line 2254 "configure"
  1966. #include "confdefs.h"
  1967. /* Override any gcc2 internal prototype to avoid an error.  */
  1968. /* We use char because int might match the return type of a gcc2
  1969.     builtin and then its argument prototype would still apply.  */
  1970. char pthread_create();
  1971. int main() {
  1972. pthread_create()
  1973. ; return 0; }
  1974. EOF
  1975. if { (eval echo configure:2265: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1976.   rm -rf conftest*
  1977.   eval "ac_cv_lib_$ac_lib_var=yes"
  1978. else
  1979.   echo "configure: failed program was:" >&5
  1980.   cat conftest.$ac_ext >&5
  1981.   rm -rf conftest*
  1982.   eval "ac_cv_lib_$ac_lib_var=no"
  1983. fi
  1984. rm -f conftest*
  1985. LIBS="$ac_save_LIBS"
  1986. fi
  1987. if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
  1988.   echo "$ac_t""yes" 1>&6
  1989.   DBS_LIBS=-lpthread
  1990. else
  1991.   echo "$ac_t""no" 1>&6
  1992. fi
  1993. case "$host_os" in
  1994. sysv5uw7*) LIBS=$SCOLIBS;;
  1995. sco3.2v5*) LIBS=$SCOLIBS;;
  1996. esac
  1997. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1998. echo "configure:2291: checking whether byte ordering is bigendian" >&5
  1999. if eval "test "`echo '$''{'ac_cv_c_bigendian'+set}'`" = set"; then
  2000.   echo $ac_n "(cached) $ac_c" 1>&6
  2001. else
  2002.   ac_cv_c_bigendian=unknown
  2003. # See if sys/param.h defines the BYTE_ORDER macro.
  2004. cat > conftest.$ac_ext <<EOF
  2005. #line 2298 "configure"
  2006. #include "confdefs.h"
  2007. #include <sys/types.h>
  2008. #include <sys/param.h>
  2009. int main() {
  2010. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2011.  bogus endian macros
  2012. #endif
  2013. ; return 0; }
  2014. EOF
  2015. if { (eval echo configure:2309: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  2016.   rm -rf conftest*
  2017.   # It does; now see whether it defined to BIG_ENDIAN or not.
  2018. cat > conftest.$ac_ext <<EOF
  2019. #line 2313 "configure"
  2020. #include "confdefs.h"
  2021. #include <sys/types.h>
  2022. #include <sys/param.h>
  2023. int main() {
  2024. #if BYTE_ORDER != BIG_ENDIAN
  2025.  not big endian
  2026. #endif
  2027. ; return 0; }
  2028. EOF
  2029. if { (eval echo configure:2324: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  2030.   rm -rf conftest*
  2031.   ac_cv_c_bigendian=yes
  2032. else
  2033.   echo "configure: failed program was:" >&5
  2034.   cat conftest.$ac_ext >&5
  2035.   rm -rf conftest*
  2036.   ac_cv_c_bigendian=no
  2037. fi
  2038. rm -f conftest*
  2039. else
  2040.   echo "configure: failed program was:" >&5
  2041.   cat conftest.$ac_ext >&5
  2042. fi
  2043. rm -f conftest*
  2044. if test $ac_cv_c_bigendian = unknown; then
  2045. if test "$cross_compiling" = yes; then
  2046.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2047. else
  2048.   cat > conftest.$ac_ext <<EOF
  2049. #line 2344 "configure"
  2050. #include "confdefs.h"
  2051. main () {
  2052.   /* Are we little or big endian?  From Harbison&Steele.  */
  2053.   union
  2054.   {
  2055.     long l;
  2056.     char c[sizeof (long)];
  2057.   } u;
  2058.   u.l = 1;
  2059.   exit (u.c[sizeof (long) - 1] == 1);
  2060. }
  2061. EOF
  2062. if { (eval echo configure:2357: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2063. then
  2064.   ac_cv_c_bigendian=no
  2065. else
  2066.   echo "configure: failed program was:" >&5
  2067.   cat conftest.$ac_ext >&5
  2068.   rm -fr conftest*
  2069.   ac_cv_c_bigendian=yes
  2070. fi
  2071. rm -fr conftest*
  2072. fi
  2073. fi
  2074. fi
  2075. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  2076. if test $ac_cv_c_bigendian = yes; then
  2077.   cat >> confdefs.h <<EOF
  2078. #define WORDS_BIGENDIAN 1
  2079. EOF
  2080. fi
  2081. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2082. echo "configure:2381: checking for working const" >&5
  2083. if eval "test "`echo '$''{'ac_cv_c_const'+set}'`" = set"; then
  2084.   echo $ac_n "(cached) $ac_c" 1>&6
  2085. else
  2086.   cat > conftest.$ac_ext <<EOF
  2087. #line 2386 "configure"
  2088. #include "confdefs.h"
  2089. int main() {
  2090. /* Ultrix mips cc rejects this.  */
  2091. typedef int charset[2]; const charset x;
  2092. /* SunOS 4.1.1 cc rejects this.  */
  2093. char const *const *ccp;
  2094. char **p;
  2095. /* NEC SVR4.0.2 mips cc rejects this.  */
  2096. struct point {int x, y;};
  2097. static struct point const zero = {0,0};
  2098. /* AIX XL C 1.02.0.0 rejects this.
  2099.    It does not let you subtract one const X* pointer from another in an arm
  2100.    of an if-expression whose if-part is not a constant expression */
  2101. const char *g = "string";
  2102. ccp = &g + (g ? g-g : 0);
  2103. /* HPUX 7.0 cc rejects these. */
  2104. ++ccp;
  2105. p = (char**) ccp;
  2106. ccp = (char const *const *) p;
  2107. { /* SCO 3.2v4 cc rejects this.  */
  2108.   char *t;
  2109.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  2110.   *t++ = 0;
  2111. }
  2112. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2113.   int x[] = {25, 17};
  2114.   const int *foo = &x[0];
  2115.   ++foo;
  2116. }
  2117. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2118.   typedef const int *iptr;
  2119.   iptr p = 0;
  2120.   ++p;
  2121. }
  2122. { /* AIX XL C 1.02.0.0 rejects this saying
  2123.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2124.   struct s { int j; const int *ap[3]; };
  2125.   struct s *b; b->j = 5;
  2126. }
  2127. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2128.   const int foo = 10;
  2129. }
  2130. ; return 0; }
  2131. EOF
  2132. if { (eval echo configure:2435: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  2133.   rm -rf conftest*
  2134.   ac_cv_c_const=yes
  2135. else
  2136.   echo "configure: failed program was:" >&5
  2137.   cat conftest.$ac_ext >&5
  2138.   rm -rf conftest*
  2139.   ac_cv_c_const=no
  2140. fi
  2141. rm -f conftest*
  2142. fi
  2143. echo "$ac_t""$ac_cv_c_const" 1>&6
  2144. if test $ac_cv_c_const = no; then
  2145.   cat >> confdefs.h <<EOF
  2146. #define const 
  2147. EOF
  2148. fi
  2149. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2150. echo "configure:2456: checking how to run the C preprocessor" >&5
  2151. # On Suns, sometimes $CPP names a directory.
  2152. if test -n "$CPP" && test -d "$CPP"; then
  2153.   CPP=
  2154. fi
  2155. if test -z "$CPP"; then
  2156. if eval "test "`echo '$''{'ac_cv_prog_CPP'+set}'`" = set"; then
  2157.   echo $ac_n "(cached) $ac_c" 1>&6
  2158. else
  2159.     # This must be in double quotes, not single quotes, because CPP may get
  2160.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  2161.   CPP="${CC-cc} -E"
  2162.   # On the NeXT, cc -E runs the code through the compiler's parser,
  2163.   # not just through cpp.
  2164.   cat > conftest.$ac_ext <<EOF
  2165. #line 2471 "configure"
  2166. #include "confdefs.h"
  2167. #include <assert.h>
  2168. Syntax Error
  2169. EOF
  2170. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2171. { (eval echo configure:2477: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
  2172. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
  2173. if test -z "$ac_err"; then
  2174.   :
  2175. else
  2176.   echo "$ac_err" >&5
  2177.   echo "configure: failed program was:" >&5
  2178.   cat conftest.$ac_ext >&5
  2179.   rm -rf conftest*
  2180.   CPP="${CC-cc} -E -traditional-cpp"
  2181.   cat > conftest.$ac_ext <<EOF
  2182. #line 2488 "configure"
  2183. #include "confdefs.h"
  2184. #include <assert.h>
  2185. Syntax Error
  2186. EOF
  2187. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2188. { (eval echo configure:2494: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
  2189. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
  2190. if test -z "$ac_err"; then
  2191.   :
  2192. else
  2193.   echo "$ac_err" >&5
  2194.   echo "configure: failed program was:" >&5
  2195.   cat conftest.$ac_ext >&5
  2196.   rm -rf conftest*
  2197.   CPP="${CC-cc} -nologo -E"
  2198.   cat > conftest.$ac_ext <<EOF
  2199. #line 2505 "configure"
  2200. #include "confdefs.h"
  2201. #include <assert.h>
  2202. Syntax Error
  2203. EOF
  2204. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2205. { (eval echo configure:2511: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
  2206. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
  2207. if test -z "$ac_err"; then
  2208.   :
  2209. else
  2210.   echo "$ac_err" >&5
  2211.   echo "configure: failed program was:" >&5
  2212.   cat conftest.$ac_ext >&5
  2213.   rm -rf conftest*
  2214.   CPP=/lib/cpp
  2215. fi
  2216. rm -f conftest*
  2217. fi
  2218. rm -f conftest*
  2219. fi
  2220. rm -f conftest*
  2221.   ac_cv_prog_CPP="$CPP"
  2222. fi
  2223.   CPP="$ac_cv_prog_CPP"
  2224. else
  2225.   ac_cv_prog_CPP="$CPP"
  2226. fi
  2227. echo "$ac_t""$CPP" 1>&6
  2228. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  2229. echo "configure:2536: checking whether stat file-mode macros are broken" >&5
  2230. if eval "test "`echo '$''{'ac_cv_header_stat_broken'+set}'`" = set"; then
  2231.   echo $ac_n "(cached) $ac_c" 1>&6
  2232. else
  2233.   cat > conftest.$ac_ext <<EOF
  2234. #line 2541 "configure"
  2235. #include "confdefs.h"
  2236. #include <sys/types.h>
  2237. #include <sys/stat.h>
  2238. #if defined(S_ISBLK) && defined(S_IFDIR)
  2239. # if S_ISBLK (S_IFDIR)
  2240. You lose.
  2241. # endif
  2242. #endif
  2243. #if defined(S_ISBLK) && defined(S_IFCHR)
  2244. # if S_ISBLK (S_IFCHR)
  2245. You lose.
  2246. # endif
  2247. #endif
  2248. #if defined(S_ISLNK) && defined(S_IFREG)
  2249. # if S_ISLNK (S_IFREG)
  2250. You lose.
  2251. # endif
  2252. #endif
  2253. #if defined(S_ISSOCK) && defined(S_IFREG)
  2254. # if S_ISSOCK (S_IFREG)
  2255. You lose.
  2256. # endif
  2257. #endif
  2258. EOF
  2259. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2260.   egrep "You lose" >/dev/null 2>&1; then
  2261.   rm -rf conftest*
  2262.   ac_cv_header_stat_broken=yes
  2263. else
  2264.   rm -rf conftest*
  2265.   ac_cv_header_stat_broken=no
  2266. fi
  2267. rm -f conftest*
  2268. fi
  2269. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  2270. if test $ac_cv_header_stat_broken = yes; then
  2271.   cat >> confdefs.h <<EOF
  2272. #define STAT_MACROS_BROKEN 1
  2273. EOF
  2274. fi
  2275. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2276. echo "configure:2592: checking whether time.h and sys/time.h may both be included" >&5
  2277. if eval "test "`echo '$''{'ac_cv_header_time'+set}'`" = set"; then
  2278.   echo $ac_n "(cached) $ac_c" 1>&6
  2279. else
  2280.   cat > conftest.$ac_ext <<EOF
  2281. #line 2597 "configure"
  2282. #include "confdefs.h"
  2283. #include <sys/types.h>
  2284. #include <sys/time.h>
  2285. #include <time.h>
  2286. int main() {
  2287. struct tm *tp;
  2288. ; return 0; }
  2289. EOF
  2290. if { (eval echo configure:2606: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  2291.   rm -rf conftest*
  2292.   ac_cv_header_time=yes
  2293. else
  2294.   echo "configure: failed program was:" >&5
  2295.   cat conftest.$ac_ext >&5
  2296.   rm -rf conftest*
  2297.   ac_cv_header_time=no
  2298. fi
  2299. rm -f conftest*
  2300. fi
  2301. echo "$ac_t""$ac_cv_header_time" 1>&6
  2302. if test $ac_cv_header_time = yes; then
  2303.   cat >> confdefs.h <<EOF
  2304. #define TIME_WITH_SYS_TIME 1
  2305. EOF
  2306. fi
  2307. echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
  2308. echo "configure:2627: checking for st_blksize in struct stat" >&5
  2309. if eval "test "`echo '$''{'ac_cv_struct_st_blksize'+set}'`" = set"; then
  2310.   echo $ac_n "(cached) $ac_c" 1>&6
  2311. else
  2312.   cat > conftest.$ac_ext <<EOF
  2313. #line 2632 "configure"
  2314. #include "confdefs.h"
  2315. #include <sys/types.h>
  2316. #include <sys/stat.h>
  2317. int main() {
  2318. struct stat s; s.st_blksize;
  2319. ; return 0; }
  2320. EOF
  2321. if { (eval echo configure:2640: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  2322.   rm -rf conftest*
  2323.   ac_cv_struct_st_blksize=yes
  2324. else
  2325.   echo "configure: failed program was:" >&5
  2326.   cat conftest.$ac_ext >&5
  2327.   rm -rf conftest*
  2328.   ac_cv_struct_st_blksize=no
  2329. fi
  2330. rm -f conftest*
  2331. fi
  2332. echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
  2333. if test $ac_cv_struct_st_blksize = yes; then
  2334.   cat >> confdefs.h <<EOF
  2335. #define HAVE_ST_BLKSIZE 1
  2336. EOF
  2337. fi
  2338. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2339. echo "configure:2661: checking for ANSI C header files" >&5
  2340. if eval "test "`echo '$''{'ac_cv_header_stdc'+set}'`" = set"; then
  2341.   echo $ac_n "(cached) $ac_c" 1>&6
  2342. else
  2343.   cat > conftest.$ac_ext <<EOF
  2344. #line 2666 "configure"
  2345. #include "confdefs.h"
  2346. #include <stdlib.h>
  2347. #include <stdarg.h>
  2348. #include <string.h>
  2349. #include <float.h>
  2350. EOF
  2351. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2352. { (eval echo configure:2674: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
  2353. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
  2354. if test -z "$ac_err"; then
  2355.   rm -rf conftest*
  2356.   ac_cv_header_stdc=yes
  2357. else
  2358.   echo "$ac_err" >&5
  2359.   echo "configure: failed program was:" >&5
  2360.   cat conftest.$ac_ext >&5
  2361.   rm -rf conftest*
  2362.   ac_cv_header_stdc=no
  2363. fi
  2364. rm -f conftest*
  2365. if test $ac_cv_header_stdc = yes; then
  2366.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2367. cat > conftest.$ac_ext <<EOF
  2368. #line 2691 "configure"
  2369. #include "confdefs.h"
  2370. #include <string.h>
  2371. EOF
  2372. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2373.   egrep "memchr" >/dev/null 2>&1; then
  2374.   :
  2375. else
  2376.   rm -rf conftest*
  2377.   ac_cv_header_stdc=no
  2378. fi
  2379. rm -f conftest*
  2380. fi
  2381. if test $ac_cv_header_stdc = yes; then
  2382.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2383. cat > conftest.$ac_ext <<EOF
  2384. #line 2709 "configure"
  2385. #include "confdefs.h"
  2386. #include <stdlib.h>
  2387. EOF
  2388. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2389.   egrep "free" >/dev/null 2>&1; then
  2390.   :
  2391. else
  2392.   rm -rf conftest*
  2393.   ac_cv_header_stdc=no
  2394. fi
  2395. rm -f conftest*
  2396. fi
  2397. if test $ac_cv_header_stdc = yes; then
  2398.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2399. if test "$cross_compiling" = yes; then
  2400.   :
  2401. else
  2402.   cat > conftest.$ac_ext <<EOF
  2403. #line 2730 "configure"
  2404. #include "confdefs.h"
  2405. #include <ctype.h>
  2406. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2407. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2408. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2409. int main () { int i; for (i = 0; i < 256; i++)
  2410. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2411. exit (0); }
  2412. EOF
  2413. if { (eval echo configure:2741: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2414. then
  2415.   :
  2416. else
  2417.   echo "configure: failed program was:" >&5
  2418.   cat conftest.$ac_ext >&5
  2419.   rm -fr conftest*
  2420.   ac_cv_header_stdc=no
  2421. fi
  2422. rm -fr conftest*
  2423. fi
  2424. fi
  2425. fi
  2426. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2427. if test $ac_cv_header_stdc = yes; then
  2428.   cat >> confdefs.h <<EOF
  2429. #define STDC_HEADERS 1
  2430. EOF
  2431. fi
  2432. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  2433. echo "configure:2765: checking for mode_t" >&5
  2434. if eval "test "`echo '$''{'ac_cv_type_mode_t'+set}'`" = set"; then
  2435.   echo $ac_n "(cached) $ac_c" 1>&6
  2436. else
  2437.   cat > conftest.$ac_ext <<EOF
  2438. #line 2770 "configure"
  2439. #include "confdefs.h"
  2440. #include <sys/types.h>
  2441. #if STDC_HEADERS
  2442. #include <stdlib.h>
  2443. #include <stddef.h>
  2444. #endif
  2445. EOF
  2446. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2447.   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2448.   rm -rf conftest*
  2449.   ac_cv_type_mode_t=yes
  2450. else
  2451.   rm -rf conftest*
  2452.   ac_cv_type_mode_t=no
  2453. fi
  2454. rm -f conftest*
  2455. fi
  2456. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  2457. if test $ac_cv_type_mode_t = no; then
  2458.   cat >> confdefs.h <<EOF
  2459. #define mode_t int
  2460. EOF
  2461. fi
  2462. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2463. echo "configure:2798: checking for off_t" >&5
  2464. if eval "test "`echo '$''{'ac_cv_type_off_t'+set}'`" = set"; then
  2465.   echo $ac_n "(cached) $ac_c" 1>&6
  2466. else
  2467.   cat > conftest.$ac_ext <<EOF
  2468. #line 2803 "configure"
  2469. #include "confdefs.h"
  2470. #include <sys/types.h>
  2471. #if STDC_HEADERS
  2472. #include <stdlib.h>
  2473. #include <stddef.h>
  2474. #endif
  2475. EOF
  2476. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2477.   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2478.   rm -rf conftest*
  2479.   ac_cv_type_off_t=yes
  2480. else
  2481.   rm -rf conftest*
  2482.   ac_cv_type_off_t=no
  2483. fi
  2484. rm -f conftest*
  2485. fi
  2486. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2487. if test $ac_cv_type_off_t = no; then
  2488.   cat >> confdefs.h <<EOF
  2489. #define off_t long
  2490. EOF
  2491. fi
  2492. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  2493. echo "configure:2831: checking for pid_t" >&5
  2494. if eval "test "`echo '$''{'ac_cv_type_pid_t'+set}'`" = set"; then
  2495.   echo $ac_n "(cached) $ac_c" 1>&6
  2496. else
  2497.   cat > conftest.$ac_ext <<EOF
  2498. #line 2836 "configure"
  2499. #include "confdefs.h"
  2500. #include <sys/types.h>
  2501. #if STDC_HEADERS
  2502. #include <stdlib.h>
  2503. #include <stddef.h>
  2504. #endif
  2505. EOF
  2506. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2507.   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2508.   rm -rf conftest*
  2509.   ac_cv_type_pid_t=yes
  2510. else
  2511.   rm -rf conftest*
  2512.   ac_cv_type_pid_t=no
  2513. fi
  2514. rm -f conftest*
  2515. fi
  2516. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  2517. if test $ac_cv_type_pid_t = no; then
  2518.   cat >> confdefs.h <<EOF
  2519. #define pid_t int
  2520. EOF
  2521. fi
  2522. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  2523. echo "configure:2864: checking for size_t" >&5
  2524. if eval "test "`echo '$''{'ac_cv_type_size_t'+set}'`" = set"; then
  2525.   echo $ac_n "(cached) $ac_c" 1>&6
  2526. else
  2527.   cat > conftest.$ac_ext <<EOF
  2528. #line 2869 "configure"
  2529. #include "confdefs.h"
  2530. #include <sys/types.h>
  2531. #if STDC_HEADERS
  2532. #include <stdlib.h>
  2533. #include <stddef.h>
  2534. #endif
  2535. EOF
  2536. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2537.   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2538.   rm -rf conftest*
  2539.   ac_cv_type_size_t=yes
  2540. else
  2541.   rm -rf conftest*
  2542.   ac_cv_type_size_t=no
  2543. fi
  2544. rm -f conftest*
  2545. fi
  2546. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  2547. if test $ac_cv_type_size_t = no; then
  2548.   cat >> confdefs.h <<EOF
  2549. #define size_t unsigned
  2550. EOF
  2551. fi
  2552. echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
  2553. echo "configure:2900: checking for ssize_t" >&5
  2554. if eval "test "`echo '$''{'db_cv_ssize_t'+set}'`" = set"; then
  2555.   echo $ac_n "(cached) $ac_c" 1>&6
  2556. else
  2557.   cat > conftest.$ac_ext <<EOF
  2558. #line 2905 "configure"
  2559. #include "confdefs.h"
  2560. #include <sys/types.h>
  2561. int main() {
  2562. ssize_t foo;
  2563. ; return 0; }
  2564. EOF
  2565. if { (eval echo configure:2912: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  2566.   rm -rf conftest*
  2567.   db_cv_ssize_t=yes
  2568. else
  2569.   echo "configure: failed program was:" >&5
  2570.   cat conftest.$ac_ext >&5
  2571.   rm -rf conftest*
  2572.   db_cv_ssize_t=no
  2573. fi
  2574. rm -f conftest*
  2575. fi
  2576. echo "$ac_t""$db_cv_ssize_t" 1>&6
  2577. if test "$db_cv_ssize_t" = no; then
  2578. ssize_t_decl="typedef int ssize_t;"
  2579. fi
  2580. echo $ac_n "checking for u_char""... $ac_c" 1>&6
  2581. echo "configure:2931: checking for u_char" >&5
  2582. if eval "test "`echo '$''{'db_cv_uchar'+set}'`" = set"; then
  2583.   echo $ac_n "(cached) $ac_c" 1>&6
  2584. else
  2585.   cat > conftest.$ac_ext <<EOF
  2586. #line 2936 "configure"
  2587. #include "confdefs.h"
  2588. #include <sys/types.h>
  2589. int main() {
  2590. u_char foo;
  2591. ; return 0; }
  2592. EOF
  2593. if { (eval echo configure:2943: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  2594.   rm -rf conftest*
  2595.   db_cv_uchar=yes
  2596. else
  2597.   echo "configure: failed program was:" >&5
  2598.   cat conftest.$ac_ext >&5
  2599.   rm -rf conftest*
  2600.   db_cv_uchar=no
  2601. fi
  2602. rm -f conftest*
  2603. fi
  2604. echo "$ac_t""$db_cv_uchar" 1>&6
  2605. if test "$db_cv_uchar" = no; then
  2606. u_char_decl="typedef unsigned char u_char;"
  2607. fi
  2608. echo $ac_n "checking for u_short""... $ac_c" 1>&6
  2609. echo "configure:2962: checking for u_short" >&5
  2610. if eval "test "`echo '$''{'db_cv_ushort'+set}'`" = set"; then
  2611.   echo $ac_n "(cached) $ac_c" 1>&6
  2612. else
  2613.   cat > conftest.$ac_ext <<EOF
  2614. #line 2967 "configure"
  2615. #include "confdefs.h"
  2616. #include <sys/types.h>
  2617. int main() {
  2618. u_short foo;
  2619. ; return 0; }
  2620. EOF
  2621. if { (eval echo configure:2974: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  2622.   rm -rf conftest*
  2623.   db_cv_ushort=yes
  2624. else
  2625.   echo "configure: failed program was:" >&5
  2626.   cat conftest.$ac_ext >&5
  2627.   rm -rf conftest*
  2628.   db_cv_ushort=no
  2629. fi