Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
configure
Package: mysql-3.23.35.tar.gz [view]
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 163k
Category:
MySQL
Development Platform:
Visual C++
- rm -f conftest*
- fi
- echo "$ac_t""$db_cv_ushort" 1>&6
- if test "$db_cv_ushort" = no; then
- u_short_decl="typedef unsigned short u_short;"
- fi
- echo $ac_n "checking for u_int""... $ac_c" 1>&6
- echo "configure:2993: checking for u_int" >&5
- if eval "test "`echo '$''{'db_cv_uint'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2998 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- int main() {
- u_int foo;
- ; return 0; }
- EOF
- if { (eval echo configure:3005: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- db_cv_uint=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- db_cv_uint=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$db_cv_uint" 1>&6
- if test "$db_cv_uint" = no; then
- u_int_decl="typedef unsigned int u_int;"
- fi
- echo $ac_n "checking for u_long""... $ac_c" 1>&6
- echo "configure:3024: checking for u_long" >&5
- if eval "test "`echo '$''{'db_cv_ulong'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3029 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- int main() {
- u_long foo;
- ; return 0; }
- EOF
- if { (eval echo configure:3036: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- db_cv_ulong=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- db_cv_ulong=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$db_cv_ulong" 1>&6
- if test "$db_cv_ulong" = no; then
- u_long_decl="typedef unsigned long u_long;"
- fi
- echo $ac_n "checking for u_int8_t""... $ac_c" 1>&6
- echo "configure:3055: checking for u_int8_t" >&5
- if eval "test "`echo '$''{'db_cv_uint8'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3060 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- int main() {
- u_int8_t foo;
- ; return 0; }
- EOF
- if { (eval echo configure:3067: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- db_cv_uint8=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3078 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(unsigned char) != 1);}
- EOF
- if { (eval echo configure:3082: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_uint8="unsigned char"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- db_cv_uint8=no
- fi
- rm -fr conftest*
- fi
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$db_cv_uint8" 1>&6
- if test "$db_cv_uint8" = no; then
- { echo "configure: error: No unsigned 8-bit integral type." 1>&2; exit 1; }
- fi
- if test "$db_cv_uint8" != yes; then
- u_int8_decl="typedef $db_cv_uint8 u_int8_t;"
- fi
- echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
- echo "configure:3108: checking for u_int16_t" >&5
- if eval "test "`echo '$''{'db_cv_uint16'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3113 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- int main() {
- u_int16_t foo;
- ; return 0; }
- EOF
- if { (eval echo configure:3120: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- db_cv_uint16=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3131 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(unsigned short) != 2);}
- EOF
- if { (eval echo configure:3135: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_uint16="unsigned short"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3146 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(unsigned int) != 2);}
- EOF
- if { (eval echo configure:3150: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_uint16="unsigned int"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- db_cv_uint16=no
- fi
- rm -fr conftest*
- fi
- fi
- rm -fr conftest*
- fi
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$db_cv_uint16" 1>&6
- if test "$db_cv_uint16" = no; then
- { echo "configure: error: No unsigned 16-bit integral type." 1>&2; exit 1; }
- fi
- if test "$db_cv_uint16" != yes; then
- u_int16_decl="typedef $db_cv_uint16 u_int16_t;"
- fi
- echo $ac_n "checking for int16_t""... $ac_c" 1>&6
- echo "configure:3180: checking for int16_t" >&5
- if eval "test "`echo '$''{'db_cv_int16'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3185 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- int main() {
- int16_t foo;
- ; return 0; }
- EOF
- if { (eval echo configure:3192: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- db_cv_int16=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3203 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(short) != 2);}
- EOF
- if { (eval echo configure:3207: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_int16="short"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3218 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(int) != 2);}
- EOF
- if { (eval echo configure:3222: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_int16="int"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- db_cv_int16=no
- fi
- rm -fr conftest*
- fi
- fi
- rm -fr conftest*
- fi
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$db_cv_int16" 1>&6
- if test "$db_cv_int16" = no; then
- { echo "configure: error: No signed 16-bit integral type." 1>&2; exit 1; }
- fi
- if test "$db_cv_int16" != yes; then
- int16_decl="typedef $db_cv_int16 int16_t;"
- fi
- echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
- echo "configure:3252: checking for u_int32_t" >&5
- if eval "test "`echo '$''{'db_cv_uint32'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3257 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- int main() {
- u_int32_t foo;
- ; return 0; }
- EOF
- if { (eval echo configure:3264: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- db_cv_uint32=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3275 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(unsigned int) != 4);}
- EOF
- if { (eval echo configure:3279: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_uint32="unsigned int"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3290 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(unsigned long) != 4);}
- EOF
- if { (eval echo configure:3294: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_uint32="unsigned long"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- db_cv_uint32=no
- fi
- rm -fr conftest*
- fi
- fi
- rm -fr conftest*
- fi
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$db_cv_uint32" 1>&6
- if test "$db_cv_uint32" = no; then
- { echo "configure: error: No unsigned 32-bit integral type." 1>&2; exit 1; }
- fi
- if test "$db_cv_uint32" != yes; then
- u_int32_decl="typedef $db_cv_uint32 u_int32_t;"
- fi
- echo $ac_n "checking for int32_t""... $ac_c" 1>&6
- echo "configure:3324: checking for int32_t" >&5
- if eval "test "`echo '$''{'db_cv_int32'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3329 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- int main() {
- int32_t foo;
- ; return 0; }
- EOF
- if { (eval echo configure:3336: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- db_cv_int32=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3347 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(int) != 4);}
- EOF
- if { (eval echo configure:3351: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_int32="int"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3362 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(long) != 4);}
- EOF
- if { (eval echo configure:3366: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_int32="long"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- db_cv_int32=no
- fi
- rm -fr conftest*
- fi
- fi
- rm -fr conftest*
- fi
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$db_cv_int32" 1>&6
- if test "$db_cv_int32" = no; then
- { echo "configure: error: No signed 32-bit integral type." 1>&2; exit 1; }
- fi
- if test "$db_cv_int32" != yes; then
- int32_decl="typedef $db_cv_int32 int32_t;"
- fi
- echo $ac_n "checking for largest integral type""... $ac_c" 1>&6
- echo "configure:3396: checking for largest integral type" >&5
- if eval "test "`echo '$''{'db_cv_align_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3401 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- int main() {
- long long foo;
- ; return 0; }
- EOF
- if { (eval echo configure:3408: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- db_cv_align_t="unsigned long long"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- db_cv_align_t="unsigned long"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$db_cv_align_t" 1>&6
- db_align_t_decl="typedef $db_cv_align_t db_align_t;"
- echo $ac_n "checking for integral type equal to pointer size""... $ac_c" 1>&6
- echo "configure:3425: checking for integral type equal to pointer size" >&5
- if eval "test "`echo '$''{'db_cv_alignp_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- db_cv_alignp_t=$db_cv_align_t
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3434 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(unsigned int) != sizeof(char *));}
- EOF
- if { (eval echo configure:3438: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_alignp_t="unsigned int"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3452 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(unsigned long) != sizeof(char *));}
- EOF
- if { (eval echo configure:3456: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_alignp_t="unsigned long"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3470 "configure"
- #include "confdefs.h"
- main(){exit(sizeof(unsigned long long) != sizeof(char *));}
- EOF
- if { (eval echo configure:3474: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_alignp_t="unsigned long long"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$db_cv_alignp_t" 1>&6
- db_alignp_t_decl="typedef $db_cv_alignp_t db_alignp_t;"
- ac_header_dirent=no
- for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
- echo "configure:3496: checking for $ac_hdr that defines DIR" >&5
- if eval "test "`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3501 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <$ac_hdr>
- int main() {
- DIR *dirp = 0;
- ; return 0; }
- EOF
- if { (eval echo configure:3509: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- eval "ac_cv_header_dirent_$ac_safe=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_dirent_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_dirent_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
- ac_header_dirent=$ac_hdr; break
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
- if test $ac_header_dirent = dirent.h; then
- echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
- echo "configure:3534: checking for opendir in -ldir" >&5
- ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-ldir $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3542 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char opendir();
- int main() {
- opendir()
- ; return 0; }
- EOF
- if { (eval echo configure:3553: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -ldir"
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
- echo "configure:3575: checking for opendir in -lx" >&5
- ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lx $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3583 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char opendir();
- int main() {
- opendir()
- ; return 0; }
- EOF
- if { (eval echo configure:3594: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -lx"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- for ac_hdr in sys/select.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3620: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3625 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3630: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in sys/time.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3660: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3665 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3670: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- echo $ac_n "checking for mutexes""... $ac_c" 1>&6
- echo "configure:3700: checking for mutexes" >&5
- if eval "test "`echo '$''{'db_cv_mutex'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- db_cv_mutex=no
- orig_libs=$LIBS
- if test "$db_cv_posixmutexes" = yes; then
- db_cv_mutex="posix_only"
- fi
- if test "$db_cv_uimutexes" = yes; then
- db_cv_mutex="ui_only"
- fi
- if test "$db_cv_mutex" = no; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3721 "configure"
- #include "confdefs.h"
- #include <synch.h>
- main(){
- static lwp_mutex_t mi = SHAREDMUTEX;
- static lwp_cond_t ci = SHAREDCV;
- lwp_mutex_t mutex = mi;
- lwp_cond_t cond = ci;
- exit (
- _lwp_mutex_lock(&mutex) ||
- _lwp_mutex_unlock(&mutex));
- }
- EOF
- if { (eval echo configure:3735: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="Solaris/lwp"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
- LIBS="-lthread $LIBS"
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3753 "configure"
- #include "confdefs.h"
- #include <thread.h>
- #include <synch.h>
- main(){
- mutex_t mutex;
- cond_t cond;
- int type = USYNC_PROCESS;
- exit (
- mutex_init(&mutex, type, NULL) ||
- cond_init(&cond, type, NULL) ||
- mutex_lock(&mutex) ||
- mutex_unlock(&mutex));
- }
- EOF
- if { (eval echo configure:3769: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="UI/threads/library"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- LIBS="$orig_libs"
- fi
- if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3786 "configure"
- #include "confdefs.h"
- #include <thread.h>
- #include <synch.h>
- main(){
- mutex_t mutex;
- cond_t cond;
- int type = USYNC_PROCESS;
- exit (
- mutex_init(&mutex, type, NULL) ||
- cond_init(&cond, type, NULL) ||
- mutex_lock(&mutex) ||
- mutex_unlock(&mutex));
- }
- EOF
- if { (eval echo configure:3802: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="UI/threads"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = "ui_only"; then
- { echo "configure: error: unable to find UI mutex interfaces" 1>&2; exit 1; }
- fi
- if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3823 "configure"
- #include "confdefs.h"
- #include <pthread.h>
- main(){
- pthread_cond_t cond;
- pthread_mutex_t mutex;
- pthread_condattr_t condattr;
- pthread_mutexattr_t mutexattr;
- exit (
- pthread_condattr_init(&condattr) ||
- pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
- pthread_mutexattr_init(&mutexattr) ||
- pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
- pthread_cond_init(&cond, &condattr) ||
- pthread_mutex_init(&mutex, &mutexattr) ||
- pthread_mutex_lock(&mutex) ||
- pthread_mutex_unlock(&mutex) ||
- pthread_mutex_destroy(&mutex) ||
- pthread_cond_destroy(&cond) ||
- pthread_condattr_destroy(&condattr) ||
- pthread_mutexattr_destroy(&mutexattr));
- }
- EOF
- if { (eval echo configure:3847: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="POSIX/pthreads"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
- LIBS="-lpthread $LIBS"
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3864 "configure"
- #include "confdefs.h"
- #include <pthread.h>
- main(){
- pthread_cond_t cond;
- pthread_mutex_t mutex;
- pthread_condattr_t condattr;
- pthread_mutexattr_t mutexattr;
- exit (
- pthread_condattr_init(&condattr) ||
- pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
- pthread_mutexattr_init(&mutexattr) ||
- pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
- pthread_cond_init(&cond, &condattr) ||
- pthread_mutex_init(&mutex, &mutexattr) ||
- pthread_mutex_lock(&mutex) ||
- pthread_mutex_unlock(&mutex) ||
- pthread_mutex_destroy(&mutex) ||
- pthread_cond_destroy(&cond) ||
- pthread_condattr_destroy(&condattr) ||
- pthread_mutexattr_destroy(&mutexattr));
- }
- EOF
- if { (eval echo configure:3888: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="POSIX/pthreads/library"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- LIBS="$orig_libs"
- fi
- if test "$db_cv_mutex" = "posix_only"; then
- { echo "configure: error: unable to find POSIX mutex interfaces" 1>&2; exit 1; }
- fi
- if test "$db_cv_mutex" = no; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3909 "configure"
- #include "confdefs.h"
- #include <sys/mman.h>
- main(){
- #if defined(__hppa)
- typedef msemaphore tsl_t;
- msemaphore x;
- msem_init(&x, 0);
- msem_lock(&x, 0);
- msem_unlock(&x, 0);
- exit(0);
- #else
- exit(1);
- #endif
- }
- EOF
- if { (eval echo configure:3926: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="HP/msem_init"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = no; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3943 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/mman.h>;
- main(){
- typedef msemaphore tsl_t;
- msemaphore x;
- msem_init(&x, 0);
- msem_lock(&x, 0);
- msem_unlock(&x, 0);
- exit(0);
- }
- EOF
- if { (eval echo configure:3957: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="UNIX/msem_init"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = no; then
- LIBS="$LIBS -lmproc"
- cat > conftest.$ac_ext <<EOF
- #line 3972 "configure"
- #include "confdefs.h"
- #include <ulocks.h>
- int main() {
- typedef spinlock_t tsl_t;
- spinlock_t x; initspin(&x, 1); cspinlock(&x); spinunlock(&x);
- ; return 0; }
- EOF
- if { (eval echo configure:3980: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- db_cv_mutex="ReliantUNIX/initspin"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- LIBS="$orig_libs"
- fi
- if test "$db_cv_mutex" = no; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3996 "configure"
- #include "confdefs.h"
- main(){
- #if defined(__USLC__)
- exit(0);
- #endif
- exit(1);
- }
- EOF
- if { (eval echo configure:4006: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="SCO/x86/cc-assembly"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = no; then
- cat > conftest.$ac_ext <<EOF
- #line 4020 "configure"
- #include "confdefs.h"
- #include <abi_mutex.h>
- int main() {
- typedef abilock_t tsl_t;
- abilock_t x; init_lock(&x); acquire_lock(&x); release_lock(&x);
- ; return 0; }
- EOF
- if { (eval echo configure:4028: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- db_cv_mutex="SGI/init_lock"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- if test "$db_cv_mutex" = DOESNT_WORK; then
- cat > conftest.$ac_ext <<EOF
- #line 4040 "configure"
- #include "confdefs.h"
- #include <synch.h>
- int main() {
- typedef sema_t tsl_t;
- sema_t x;
- sema_init(&x, 1, USYNC_PROCESS, NULL); sema_wait(&x); sema_post(&x);
- ; return 0; }
- EOF
- if { (eval echo configure:4049: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- db_cv_mutex="UNIX/sema_init"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- if test "$db_cv_mutex" = no; then
- cat > conftest.$ac_ext <<EOF
- #line 4061 "configure"
- #include "confdefs.h"
- #include <sys/machlock.h>
- int main() {
- typedef lock_t tsl_t;
- lock_t x;
- _lock_try(&x); _lock_clear(&x);
- ; return 0; }
- EOF
- if { (eval echo configure:4070: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- db_cv_mutex="Solaris/_lock_try"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- if test "$db_cv_mutex" = no; then
- cat > conftest.$ac_ext <<EOF
- #line 4082 "configure"
- #include "confdefs.h"
- #include <sys/atomic_op.h>
- int main() {
- int x; _check_lock(&x,0,1); _clear_lock(&x,0);
- ; return 0; }
- EOF
- if { (eval echo configure:4089: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- db_cv_mutex="AIX/_check_lock"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- if test "$db_cv_mutex" = DOESNT_WORK; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4104 "configure"
- #include "confdefs.h"
- main(){
- #if defined(__alpha)
- #if defined(__GNUC__)
- exit(0);
- #endif
- #endif
- exit(1);}
- EOF
- if { (eval echo configure:4114: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="ALPHA/gcc-assembly"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = no; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4131 "configure"
- #include "confdefs.h"
- main(){
- #if defined(__hppa)
- #if defined(__GNUC__)
- exit(0);
- #endif
- #endif
- exit(1);}
- EOF
- if { (eval echo configure:4141: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="HPPA/gcc-assembly"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = no; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4158 "configure"
- #include "confdefs.h"
- main(){
- #if defined(__powerpc__)
- #if defined(__GNUC__)
- exit(0);
- #endif
- #endif
- exit(1);}
- EOF
- if { (eval echo configure:4168: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="PPC/gcc-assembly"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = DOESNT_WORK; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4185 "configure"
- #include "confdefs.h"
- main(){
- #if defined(__sparc__)
- #if defined(__GNUC__)
- exit(0);
- #endif
- #endif
- exit(1);
- }
- EOF
- if { (eval echo configure:4196: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="Sparc/gcc-assembly"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = no; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4213 "configure"
- #include "confdefs.h"
- main(){
- #if (defined(mc68020) || defined(sun3))
- #if defined(__GNUC__)
- exit(0);
- #endif
- #endif
- exit(1);
- }
- EOF
- if { (eval echo configure:4224: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="68K/gcc-assembly"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = no; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4241 "configure"
- #include "confdefs.h"
- main(){
- #if defined(i386) || defined(__i386__)
- #if defined(__GNUC__)
- exit(0);
- #endif
- #endif
- exit(1);
- }
- EOF
- if { (eval echo configure:4252: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="x86/gcc-assembly"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = no; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4269 "configure"
- #include "confdefs.h"
- main(){
- #if defined(__ia64)
- #if defined(__GNUC__)
- exit(0);
- #endif
- #endif
- exit(1);
- }
- EOF
- if { (eval echo configure:4280: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="ia64/gcc-assembly"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- if test "$db_cv_mutex" = no; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4297 "configure"
- #include "confdefs.h"
- main(){
- #if defined(_UTS)
- exit(0);
- #endif
- exit(1);
- }
- EOF
- if { (eval echo configure:4306: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_mutex="UTS/cc-assembly"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- fi
- fi
- echo "$ac_t""$db_cv_mutex" 1>&6
- if test "$db_cv_mutex" = no; then
- echo "configure: warning: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." 1>&2
- ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
- else
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_THREADS 1
- EOF
- fi
- case "$db_cv_mutex" in
- 68K/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
- EOF
- ;;
- AIX/_check_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_AIX_CHECK_LOCK 1
- EOF
- ;;
- ALPHA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
- EOF
- ;;
- HP/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_HPPA_MSEM_INIT 1
- EOF
- ;;
- HPPA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
- EOF
- ;;
- ia64/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
- EOF
- ;;
- POSIX/pthreads) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_PTHREADS 1
- EOF
- ;;
- POSIX/pthreads/library) LIBS="-lpthread $LIBS"
- ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_PTHREADS 1
- EOF
- ;;
- PPC/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1
- EOF
- ;;
- ReliantUNIX/initspin) LIBS="$LIBS -lmproc"
- ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
- EOF
- ;;
- SCO/x86/cc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
- EOF
- ;;
- SGI/init_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_SGI_INIT_LOCK 1
- EOF
- ;;
- Solaris/_lock_try) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
- EOF
- ;;
- Solaris/lwp) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_SOLARIS_LWP 1
- EOF
- ;;
- Sparc/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
- EOF
- ;;
- UI/threads) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_UI_THREADS 1
- EOF
- ;;
- UI/threads/library) LIBS="-lthread $LIBS"
- ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_UI_THREADS 1
- EOF
- ;;
- UNIX/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_MSEM_INIT 1
- EOF
- ;;
- UNIX/sema_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_SEMA_INIT 1
- EOF
- ;;
- UTS/cc-assembly) ADDITIONAL_OBJS="$ADDITIONAL_OBJS uts4.cc${o}"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
- EOF
- ;;
- x86/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
- cat >> confdefs.h <<EOF
- #define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
- EOF
- ;;
- esac
- for ac_func in getcwd getopt memcmp memcpy memmove
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4447: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4452 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4475: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
- fi
- done
- for ac_func in raise snprintf strcasecmp strerror vsnprintf
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4504: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4509 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4532: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
- fi
- done
- tmp="`echo "$LIBOBJS" | sed "s/.o/${o}/g"`"
- LIBOBJS="$tmp"
- for ac_func in getuid pstat_getdynamic sysconf sched_yield strtoul yield
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4565: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4570 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4593: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- case "$host_os" in
- hpux*)
- echo "configure: warning: pread/pwrite interfaces ignored on $host_os." 1>&2;;
- *) for ac_func in pread pwrite
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4624: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4629 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4652: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- esac
- echo $ac_n "checking for fcntl/F_SETFD""... $ac_c" 1>&6
- echo "configure:4679: checking for fcntl/F_SETFD" >&5
- if eval "test "`echo '$''{'db_cv_fcntl_f_setfd'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4687 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <fcntl.h>
- main(){exit(fcntl(1, F_SETFD, 1) == -1);}
- EOF
- if { (eval echo configure:4694: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_fcntl_f_setfd=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- db_cv_fcntl_f_setfd=no
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$db_cv_fcntl_f_setfd" 1>&6
- if test "$db_cv_fcntl_f_setfd" = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_FCNTL_F_SETFD 1
- EOF
- fi
- case "$host_os" in
- aux*) ADDITIONAL_OBJS="getopt${o} $ADDITIONAL_OBJS";;
- esac
- for ac_func in qsort
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4724: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4729 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4752: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: No qsort library function." 1>&2; exit 1; }
- fi
- done
- for ac_func in select
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4780: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4785 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4808: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: No select library function." 1>&2; exit 1; }
- fi
- done
- echo $ac_n "checking for int type sprintf return value""... $ac_c" 1>&6
- echo "configure:4835: checking for int type sprintf return value" >&5
- if eval "test "`echo '$''{'db_cv_sprintf_count'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4843 "configure"
- #include "confdefs.h"
- main(){char buf[20]; exit(sprintf(buf, "XXX") != 3);}
- EOF
- if { (eval echo configure:4847: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- db_cv_sprintf_count=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- db_cv_sprintf_count=no
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$db_cv_sprintf_count" 1>&6
- if test "$db_cv_sprintf_count" = no; then
- cat >> confdefs.h <<EOF
- #define SPRINTF_RET_CHARPNT 1
- EOF
- fi
- if test "$db_cv_bigfile" = no; then
- case "$host_os" in
- solaris2.8|hpux*)
- if test "$db_cv_cxx" = "yes"; then
- echo "configure: warning: Large file and C++ API support are incompatible on HP-UX" 1>&2
- echo "configure: warning: and Solaris 8; large file support has been turned off." 1>&2
- else
- cat >> confdefs.h <<EOF
- #define HAVE_FILE_OFFSET_BITS 1
- EOF
- fi;;
- aix*|solaris*|linux*)
- cat >> confdefs.h <<EOF
- #define HAVE_FILE_OFFSET_BITS 1
- EOF
- ;;
- esac
- fi
- mmap_ok=no
- case "$host_os" in
- bsdi3*|bsdi4.0)
- echo "configure: warning: mlock(2) interface ignored on BSD/OS 3.X and 4.0." 1>&2
- mmap_ok=yes
- for ac_func in mmap munmap
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4897: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4902 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4925: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- mmap_ok=no
- fi
- done
- ;;
- ultrix*)
- echo "configure: warning: mmap(2) interface ignored on Ultrix." 1>&2;;
- *)
- mmap_ok=yes
- for ac_func in mlock munlock
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4957: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4962 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4985: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in mmap munmap
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:5012: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5017 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5040: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- mmap_ok=no
- fi
- done
- ;;
- esac
- shmget_ok=no
- case "$host_os" in
- sunos*)
- echo "configure: warning: shmget(2) interface ignored on SunOS." 1>&2;;
- *)
- shmget_ok=yes
- for ac_func in shmget
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:5076: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5081 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5104: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- shmget_ok=no
- fi
- done
- ;;
- esac
- if test "$mmap_ok" = no -a "$shmget_ok" = no; then
- echo "configure: warning: Neither mmap/munmap(2) or shmget(2) library functions." 1>&2
- fi
- # Extract the first word of "ar", so it can be a program name with args.
- set dummy ar; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:5140: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_db_cv_path_ar'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$db_cv_path_ar" in
- /*)
- ac_cv_path_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_db_cv_path_ar="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_db_cv_path_ar" && ac_cv_path_db_cv_path_ar="missing_ar"
- ;;
- esac
- fi
- db_cv_path_ar="$ac_cv_path_db_cv_path_ar"
- if test -n "$db_cv_path_ar"; then
- echo "$ac_t""$db_cv_path_ar" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$db_cv_path_ar" = missing_ar; then
- { echo "configure: error: No ar utility found." 1>&2; exit 1; }
- fi
- # Extract the first word of "chmod", so it can be a program name with args.
- set dummy chmod; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:5179: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_db_cv_path_chmod'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$db_cv_path_chmod" in
- /*)
- ac_cv_path_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_db_cv_path_chmod="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_db_cv_path_chmod" && ac_cv_path_db_cv_path_chmod="missing_chmod"
- ;;
- esac
- fi
- db_cv_path_chmod="$ac_cv_path_db_cv_path_chmod"
- if test -n "$db_cv_path_chmod"; then
- echo "$ac_t""$db_cv_path_chmod" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$db_cv_path_chmod" = missing_chmod; then
- { echo "configure: error: No chmod utility found." 1>&2; exit 1; }
- fi
- # Extract the first word of "cp", so it can be a program name with args.
- set dummy cp; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:5218: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_db_cv_path_cp'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$db_cv_path_cp" in
- /*)
- ac_cv_path_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_db_cv_path_cp="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_db_cv_path_cp" && ac_cv_path_db_cv_path_cp="missing_cp"
- ;;
- esac
- fi
- db_cv_path_cp="$ac_cv_path_db_cv_path_cp"
- if test -n "$db_cv_path_cp"; then
- echo "$ac_t""$db_cv_path_cp" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$db_cv_path_cp" = missing_cp; then
- { echo "configure: error: No cp utility found." 1>&2; exit 1; }
- fi
- # Extract the first word of "ln", so it can be a program name with args.
- set dummy ln; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:5257: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_db_cv_path_ln'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$db_cv_path_ln" in
- /*)
- ac_cv_path_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_db_cv_path_ln="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_db_cv_path_ln" && ac_cv_path_db_cv_path_ln="missing_ln"
- ;;
- esac
- fi
- db_cv_path_ln="$ac_cv_path_db_cv_path_ln"
- if test -n "$db_cv_path_ln"; then
- echo "$ac_t""$db_cv_path_ln" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$db_cv_path_ln" = missing_ln; then
- { echo "configure: error: No ln utility found." 1>&2; exit 1; }
- fi
- # Extract the first word of "mkdir", so it can be a program name with args.
- set dummy mkdir; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:5296: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_db_cv_path_mkdir'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$db_cv_path_mkdir" in
- /*)
- ac_cv_path_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_db_cv_path_mkdir="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_db_cv_path_mkdir" && ac_cv_path_db_cv_path_mkdir="missing_mkdir"
- ;;
- esac
- fi
- db_cv_path_mkdir="$ac_cv_path_db_cv_path_mkdir"
- if test -n "$db_cv_path_mkdir"; then
- echo "$ac_t""$db_cv_path_mkdir" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$db_cv_path_mkdir" = missing_mkdir; then
- { echo "configure: error: No mkdir utility found." 1>&2; exit 1; }
- fi
- # Extract the first word of "ranlib", so it can be a program name with args.
- set dummy ranlib; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:5335: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_db_cv_path_ranlib'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$db_cv_path_ranlib" in
- /*)
- ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_db_cv_path_ranlib="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_db_cv_path_ranlib" && ac_cv_path_db_cv_path_ranlib="missing_ranlib"
- ;;
- esac
- fi
- db_cv_path_ranlib="$ac_cv_path_db_cv_path_ranlib"
- if test -n "$db_cv_path_ranlib"; then
- echo "$ac_t""$db_cv_path_ranlib" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- # Extract the first word of "rm", so it can be a program name with args.
- set dummy rm; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:5371: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_db_cv_path_rm'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$db_cv_path_rm" in
- /*)
- ac_cv_path_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_db_cv_path_rm="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_db_cv_path_rm" && ac_cv_path_db_cv_path_rm="missing_rm"
- ;;
- esac
- fi
- db_cv_path_rm="$ac_cv_path_db_cv_path_rm"
- if test -n "$db_cv_path_rm"; then
- echo "$ac_t""$db_cv_path_rm" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$db_cv_path_rm" = missing_rm; then
- { echo "configure: error: No rm utility found." 1>&2; exit 1; }
- fi
- # Extract the first word of "sh", so it can be a program name with args.
- set dummy sh; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:5410: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_db_cv_path_sh'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$db_cv_path_sh" in
- /*)
- ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_db_cv_path_sh="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_db_cv_path_sh" && ac_cv_path_db_cv_path_sh="missing_sh"
- ;;
- esac
- fi
- db_cv_path_sh="$ac_cv_path_db_cv_path_sh"
- if test -n "$db_cv_path_sh"; then
- echo "$ac_t""$db_cv_path_sh" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$db_cv_path_sh" = missing_sh; then
- { echo "configure: error: No sh utility found." 1>&2; exit 1; }
- fi
- # Extract the first word of "strip", so it can be a program name with args.
- set dummy strip; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:5449: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_db_cv_path_strip'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$db_cv_path_strip" in
- /*)
- ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_db_cv_path_strip="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_db_cv_path_strip" && ac_cv_path_db_cv_path_strip="missing_strip"
- ;;
- esac
- fi
- db_cv_path_strip="$ac_cv_path_db_cv_path_strip"
- if test -n "$db_cv_path_strip"; then
- echo "$ac_t""$db_cv_path_strip" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$db_cv_path_strip" = missing_strip; then
- { echo "configure: error: No strip utility found." 1>&2; exit 1; }
- fi
- if test "$db_cv_test" = "yes"; then
- # Extract the first word of "kill", so it can be a program name with args.
- set dummy kill; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:5490: checking for $ac_word" >&5
- if eval "test "`echo '$''{'ac_cv_path_db_cv_path_kill'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- case "$db_cv_path_kill" in
- /*)
- ac_cv_path_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_db_cv_path_kill="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_db_cv_path_kill" && ac_cv_path_db_cv_path_kill="missing_kill"
- ;;
- esac
- fi
- db_cv_path_kill="$ac_cv_path_db_cv_path_kill"
- if test -n "$db_cv_path_kill"; then
- echo "$ac_t""$db_cv_path_kill" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$db_cv_path_kill" = missing_kill; then
- { echo "configure: error: No kill utility found." 1>&2; exit 1; }
- fi
- fi
- CREATE_LIST="Makefile
- include.tcl:../test/include.tcl
- db.h:../include/db.src
- db_int.h:../include/db_int.src"
- if test "$db_cv_compat185" = "yes"; then
- CREATE_LIST="${CREATE_LIST} db_185.h:../include/db_185.h"
- fi
- trap '' 1 2 15
- cat > confcache <<EOF
- # This file is a shell script that caches the results of configure
- # tests run on this system so they can be shared between configure
- # scripts and configure runs. It is not useful on other systems.
- # If it contains results you don't want to keep, you may remove or edit it.
- #
- # By default, configure uses ./config.cache as the cache file,
- # creating it if it does not exist already. You can give configure
- # the --cache-file=FILE option to use a different cache file; that is
- # what configure does when it calls configure scripts in
- # subdirectories, so they share the cache.
- # Giving --cache-file=/dev/null disables caching, for debugging configure.
- # config.status only pays attention to the cache file if you give it the
- # --recheck option to rerun configure.
- #
- EOF
- # The following way of writing the cache mishandles newlines in values,
- # but we know of no workaround that is simple, portable, and efficient.
- # So, don't put newlines in cache variables' values.
- # Ultrix sh set writes to stderr and can't be redirected directly,
- # and sets the high bit in the cache file unless we assign to the vars.
- (set) 2>&1 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in
- *ac_space= *)
- # `set' does not quote correctly, so add quotes (double-quote substitution
- # turns \\ into \, and sed turns \ into ).
- sed -n
- -e "s/'/'\\''/g"
- -e "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1='\2'}/p"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n -e 's/^([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*)=(.*)/1=${1=2}/p'
- ;;
- esac >> confcache
- if cmp -s $cache_file confcache; then
- :
- else
- if test -w $cache_file; then
- echo "updating cache $cache_file"
- cat confcache > $cache_file
- else
- echo "not updating unwritable cache $cache_file"
- fi
- fi
- rm -f confcache
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- # Any assignment to VPATH causes Sun make to only execute
- # the first set of double-colon rules, so remove it if not needed.
- # If there is a colon in the path, we need to keep it.
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
- fi
- trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
- DEFS=-DHAVE_CONFIG_H
- # Without the "./", some shells look in PATH for config.status.
- : ${CONFIG_STATUS=./config.status}
- echo creating $CONFIG_STATUS
- rm -f $CONFIG_STATUS
- cat > $CONFIG_STATUS <<EOF
- #! /bin/sh
- # Generated automatically by configure.
- # Run this file to recreate the current configuration.
- # This directory was configured as follows,
- # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- #
- # $0 $ac_configure_args
- #
- # Compiler output produced by configure, useful for debugging
- # configure, is in ./config.log if it exists.
- ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- for ac_option
- do
- case "$ac_option" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.13"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "$ac_cs_usage"; exit 0 ;;
- *) echo "$ac_cs_usage"; exit 1 ;;
- esac
- done
- ac_given_srcdir=$srcdir
- ac_given_INSTALL="$INSTALL"
- trap 'rm -fr `echo "${CREATE_LIST} db_config.h:config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
- $ac_vpsub
- $extrasub
- s%@SHELL@%$SHELL%g
- s%@CFLAGS@%$CFLAGS%g
- s%@CPPFLAGS@%$CPPFLAGS%g
- s%@CXXFLAGS@%$CXXFLAGS%g
- s%@FFLAGS@%$FFLAGS%g
- s%@DEFS@%$DEFS%g
- s%@LDFLAGS@%$LDFLAGS%g
- s%@LIBS@%$LIBS%g
- s%@exec_prefix@%$exec_prefix%g
- s%@prefix@%$prefix%g
- s%@program_transform_name@%$program_transform_name%g
- s%@bindir@%$bindir%g
- s%@sbindir@%$sbindir%g
- s%@libexecdir@%$libexecdir%g
- s%@datadir@%$datadir%g
- s%@sysconfdir@%$sysconfdir%g
- s%@sharedstatedir@%$sharedstatedir%g
- s%@localstatedir@%$localstatedir%g
- s%@libdir@%$libdir%g
- s%@includedir@%$includedir%g
- s%@oldincludedir@%$oldincludedir%g
- s%@infodir@%$infodir%g
- s%@mandir@%$mandir%g
- s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
- s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
- s%@INSTALL_DATA@%$INSTALL_DATA%g
- s%@host@%$host%g
- s%@host_alias@%$host_alias%g
- s%@host_cpu@%$host_cpu%g
- s%@host_vendor@%$host_vendor%g
- s%@host_os@%$host_os%g
- s%@ADDITIONAL_INCS@%$ADDITIONAL_INCS%g
- s%@ADDITIONAL_LANG@%$ADDITIONAL_LANG%g
- s%@ADDITIONAL_LIBS@%$ADDITIONAL_LIBS%g
- s%@ADDITIONAL_OBJS@%$ADDITIONAL_OBJS%g
- s%@ADDITIONAL_PROGS@%$ADDITIONAL_PROGS%g
- s%@CXX@%$CXX%g
- s%@DBS_LIBS@%$DBS_LIBS%g
- s%@DEFAULT_INSTALL@%$DEFAULT_INSTALL%g
- s%@DEFAULT_LIB@%$DEFAULT_LIB%g
- s%@INSTALLER@%$INSTALLER%g
- s%@INSTALL_LIBS@%$INSTALL_LIBS%g
- s%@JAR@%$JAR%g
- s%@JAVAC@%$JAVAC%g
- s%@JAVACFLAGS@%$JAVACFLAGS%g
- s%@LIBDB_ARGS@%$LIBDB_ARGS%g
- s%@LIBJSO_LIBS@%$LIBJSO_LIBS%g
- s%@LIBSO_LIBS@%$LIBSO_LIBS%g
- s%@LIBTOOL@%$LIBTOOL%g
- s%@LIBTSO_LIBS@%$LIBTSO_LIBS%g
- s%@LIBXSO_LIBS@%$LIBXSO_LIBS%g
- s%@MAKEFILE_CC@%$MAKEFILE_CC%g
- s%@MAKEFILE_CCLINK@%$MAKEFILE_CCLINK%g
- s%@MAKEFILE_CXX@%$MAKEFILE_CXX%g
- s%@POSTLINK@%$POSTLINK%g
- s%@RPC_OBJS@%$RPC_OBJS%g
- s%@SOFLAGS@%$SOFLAGS%g
- s%@SOLINK@%$SOLINK%g
- s%@SOSUFFIX@%$SOSUFFIX%g
- s%@o@%$o%g
- s%@DB_VERSION_MAJOR@%$DB_VERSION_MAJOR%g
- s%@DB_VERSION_MINOR@%$DB_VERSION_MINOR%g
- s%@DB_VERSION_PATCH@%$DB_VERSION_PATCH%g
- s%@DB_VERSION_STRING@%$DB_VERSION_STRING%g
- s%@CC@%$CC%g
- s%@CCC@%$CCC%g
- s%@JAVACABS@%$JAVACABS%g
- s%@TCFLAGS@%$TCFLAGS%g
- s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
- s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
- s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
- s%@TCL_TCLSH@%$TCL_TCLSH%g
- s%@CPP@%$CPP%g
- s%@ssize_t_decl@%$ssize_t_decl%g
- s%@u_char_decl@%$u_char_decl%g
- s%@u_short_decl@%$u_short_decl%g
- s%@u_int_decl@%$u_int_decl%g
- s%@u_long_decl@%$u_long_decl%g
- s%@u_int8_decl@%$u_int8_decl%g
- s%@u_int16_decl@%$u_int16_decl%g
- s%@int16_decl@%$int16_decl%g
- s%@u_int32_decl@%$u_int32_decl%g
- s%@int32_decl@%$int32_decl%g
- s%@db_align_t_decl@%$db_align_t_decl%g
- s%@db_alignp_t_decl@%$db_alignp_t_decl%g
- s%@LIBOBJS@%$LIBOBJS%g
- s%@db_cv_path_ar@%$db_cv_path_ar%g
- s%@db_cv_path_chmod@%$db_cv_path_chmod%g
- s%@db_cv_path_cp@%$db_cv_path_cp%g
- s%@db_cv_path_ln@%$db_cv_path_ln%g
- s%@db_cv_path_mkdir@%$db_cv_path_mkdir%g
- s%@db_cv_path_ranlib@%$db_cv_path_ranlib%g
- s%@db_cv_path_rm@%$db_cv_path_rm%g
- s%@db_cv_path_sh@%$db_cv_path_sh%g
- s%@db_cv_path_strip@%$db_cv_path_strip%g
- s%@db_cv_path_kill@%$db_cv_path_kill%g
- CEOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
- ac_file=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_cmds # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=""
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
- else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
- fi
- if test ! -s conftest.s$ac_file; then
- ac_more_lines=false
- rm -f conftest.s$ac_file
- else
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
- fi
- ac_file=`expr $ac_file + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_FILES=${CONFIG_FILES-"${CREATE_LIST}"}
- EOF
- cat >> $CONFIG_STATUS <<EOF
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^./%%'`"
- # A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
- echo creating "$ac_file"
- rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\
- # $configure_input" ;;
- *) ac_comsub= ;;
- esac
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
- s%@configure_input@%$configure_input%g
- s%@srcdir@%$srcdir%g
- s%@top_srcdir@%$top_srcdir%g
- s%@INSTALL@%$INSTALL%g
- " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
- fi; done
- rm -f conftest.s*
- # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
- # NAME is the cpp macro being defined and VALUE is the value it is being given.
- #
- # ac_d sets the value in "#define NAME VALUE" lines.
- ac_dA='s%^([ ]*)#([ ]*define[ ][ ]*)'
- ac_dB='([ ][ ]*)[^ ]*%1#2'
- ac_dC='3'
- ac_dD='%g'
- # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
- ac_uA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_uB='([ ])%1#2define3'
- ac_uC=' '
- ac_uD='4%g'
- # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
- ac_eA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_eB='$%1#2define3'
- ac_eC=' '
- ac_eD='%g'
- if test "${CONFIG_HEADERS+set}" != set; then
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="db_config.h:config.hin"
- EOF
- cat >> $CONFIG_STATUS <<EOF
- fi
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- echo creating $ac_file
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
- EOF
- # Transform confdefs.h into a sed script conftest.vals that substitutes
- # the proper values into config.h.in to produce config.h. And first:
- # Protect against being on the right side of a sed subst in config.status.
- # Protect against being in an unquoted here document in config.status.
- rm -f conftest.vals
- cat > conftest.hdr <<EOF
- s/[\&%]/\&/g
- s%[\$`]%\&%g
- s%#define ([A-Za-z_][A-Za-z0-9_]*) *(.*)%${ac_dA}1${ac_dB}1${ac_dC}2${ac_dD}%gp
- s%ac_d%ac_u%gp
- s%ac_u%ac_e%gp
- EOF
- sed -n -f conftest.hdr confdefs.h > conftest.vals
- rm -f conftest.hdr
- # This sed command replaces #undef with comments. This is necessary, for
- # example, in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- cat >> conftest.vals <<EOF
- s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
- EOF
- # Break up conftest.vals because some shells have a limit on
- # the size of here documents, and old seds have small limits too.
- rm -f conftest.tail
- while :
- do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
- echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
- ' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
- done
- rm -f conftest.vals
- cat >> $CONFIG_STATUS <<EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- fi
- rm -f $ac_file
- mv conftest.h $ac_file
- fi
- fi; done
- EOF
- cat >> $CONFIG_STATUS <<EOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- exit 0
- EOF
- chmod +x $CONFIG_STATUS
- rm -fr confdefs* $ac_clean_files
- test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1