configure
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 163k
Category:

MySQL

Development Platform:

Visual C++

  1. rm -f conftest*
  2. fi
  3. echo "$ac_t""$db_cv_ushort" 1>&6
  4. if test "$db_cv_ushort" = no; then
  5. u_short_decl="typedef unsigned short u_short;"
  6. fi
  7. echo $ac_n "checking for u_int""... $ac_c" 1>&6
  8. echo "configure:2993: checking for u_int" >&5
  9. if eval "test "`echo '$''{'db_cv_uint'+set}'`" = set"; then
  10.   echo $ac_n "(cached) $ac_c" 1>&6
  11. else
  12.   cat > conftest.$ac_ext <<EOF
  13. #line 2998 "configure"
  14. #include "confdefs.h"
  15. #include <sys/types.h>
  16. int main() {
  17. u_int foo;
  18. ; return 0; }
  19. EOF
  20. if { (eval echo configure:3005: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  21.   rm -rf conftest*
  22.   db_cv_uint=yes
  23. else
  24.   echo "configure: failed program was:" >&5
  25.   cat conftest.$ac_ext >&5
  26.   rm -rf conftest*
  27.   db_cv_uint=no
  28. fi
  29. rm -f conftest*
  30. fi
  31. echo "$ac_t""$db_cv_uint" 1>&6
  32. if test "$db_cv_uint" = no; then
  33. u_int_decl="typedef unsigned int u_int;"
  34. fi
  35. echo $ac_n "checking for u_long""... $ac_c" 1>&6
  36. echo "configure:3024: checking for u_long" >&5
  37. if eval "test "`echo '$''{'db_cv_ulong'+set}'`" = set"; then
  38.   echo $ac_n "(cached) $ac_c" 1>&6
  39. else
  40.   cat > conftest.$ac_ext <<EOF
  41. #line 3029 "configure"
  42. #include "confdefs.h"
  43. #include <sys/types.h>
  44. int main() {
  45. u_long foo;
  46. ; return 0; }
  47. EOF
  48. if { (eval echo configure:3036: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  49.   rm -rf conftest*
  50.   db_cv_ulong=yes
  51. else
  52.   echo "configure: failed program was:" >&5
  53.   cat conftest.$ac_ext >&5
  54.   rm -rf conftest*
  55.   db_cv_ulong=no
  56. fi
  57. rm -f conftest*
  58. fi
  59. echo "$ac_t""$db_cv_ulong" 1>&6
  60. if test "$db_cv_ulong" = no; then
  61. u_long_decl="typedef unsigned long u_long;"
  62. fi
  63. echo $ac_n "checking for u_int8_t""... $ac_c" 1>&6
  64. echo "configure:3055: checking for u_int8_t" >&5
  65. if eval "test "`echo '$''{'db_cv_uint8'+set}'`" = set"; then
  66.   echo $ac_n "(cached) $ac_c" 1>&6
  67. else
  68.   cat > conftest.$ac_ext <<EOF
  69. #line 3060 "configure"
  70. #include "confdefs.h"
  71. #include <sys/types.h>
  72. int main() {
  73. u_int8_t foo;
  74. ; return 0; }
  75. EOF
  76. if { (eval echo configure:3067: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  77.   rm -rf conftest*
  78.   db_cv_uint8=yes
  79. else
  80.   echo "configure: failed program was:" >&5
  81.   cat conftest.$ac_ext >&5
  82.   rm -rf conftest*
  83.   if test "$cross_compiling" = yes; then
  84.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  85. else
  86.   cat > conftest.$ac_ext <<EOF
  87. #line 3078 "configure"
  88. #include "confdefs.h"
  89. main(){exit(sizeof(unsigned char) != 1);}
  90. EOF
  91. if { (eval echo configure:3082: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  92. then
  93.   db_cv_uint8="unsigned char"
  94. else
  95.   echo "configure: failed program was:" >&5
  96.   cat conftest.$ac_ext >&5
  97.   rm -fr conftest*
  98.   db_cv_uint8=no
  99. fi
  100. rm -fr conftest*
  101. fi
  102. fi
  103. rm -f conftest*
  104. fi
  105. echo "$ac_t""$db_cv_uint8" 1>&6
  106. if test "$db_cv_uint8" = no; then
  107. { echo "configure: error: No unsigned 8-bit integral type." 1>&2; exit 1; }
  108. fi
  109. if test "$db_cv_uint8" != yes; then
  110. u_int8_decl="typedef $db_cv_uint8 u_int8_t;"
  111. fi
  112. echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
  113. echo "configure:3108: checking for u_int16_t" >&5
  114. if eval "test "`echo '$''{'db_cv_uint16'+set}'`" = set"; then
  115.   echo $ac_n "(cached) $ac_c" 1>&6
  116. else
  117.   cat > conftest.$ac_ext <<EOF
  118. #line 3113 "configure"
  119. #include "confdefs.h"
  120. #include <sys/types.h>
  121. int main() {
  122. u_int16_t foo;
  123. ; return 0; }
  124. EOF
  125. if { (eval echo configure:3120: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  126.   rm -rf conftest*
  127.   db_cv_uint16=yes
  128. else
  129.   echo "configure: failed program was:" >&5
  130.   cat conftest.$ac_ext >&5
  131.   rm -rf conftest*
  132.   if test "$cross_compiling" = yes; then
  133.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  134. else
  135.   cat > conftest.$ac_ext <<EOF
  136. #line 3131 "configure"
  137. #include "confdefs.h"
  138. main(){exit(sizeof(unsigned short) != 2);}
  139. EOF
  140. if { (eval echo configure:3135: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  141. then
  142.   db_cv_uint16="unsigned short"
  143. else
  144.   echo "configure: failed program was:" >&5
  145.   cat conftest.$ac_ext >&5
  146.   rm -fr conftest*
  147.   if test "$cross_compiling" = yes; then
  148.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  149. else
  150.   cat > conftest.$ac_ext <<EOF
  151. #line 3146 "configure"
  152. #include "confdefs.h"
  153. main(){exit(sizeof(unsigned int) != 2);}
  154. EOF
  155. if { (eval echo configure:3150: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  156. then
  157.   db_cv_uint16="unsigned int"
  158. else
  159.   echo "configure: failed program was:" >&5
  160.   cat conftest.$ac_ext >&5
  161.   rm -fr conftest*
  162.   db_cv_uint16=no
  163. fi
  164. rm -fr conftest*
  165. fi
  166. fi
  167. rm -fr conftest*
  168. fi
  169. fi
  170. rm -f conftest*
  171. fi
  172. echo "$ac_t""$db_cv_uint16" 1>&6
  173. if test "$db_cv_uint16" = no; then
  174. { echo "configure: error: No unsigned 16-bit integral type." 1>&2; exit 1; }
  175. fi
  176. if test "$db_cv_uint16" != yes; then
  177. u_int16_decl="typedef $db_cv_uint16 u_int16_t;"
  178. fi
  179. echo $ac_n "checking for int16_t""... $ac_c" 1>&6
  180. echo "configure:3180: checking for int16_t" >&5
  181. if eval "test "`echo '$''{'db_cv_int16'+set}'`" = set"; then
  182.   echo $ac_n "(cached) $ac_c" 1>&6
  183. else
  184.   cat > conftest.$ac_ext <<EOF
  185. #line 3185 "configure"
  186. #include "confdefs.h"
  187. #include <sys/types.h>
  188. int main() {
  189. int16_t foo;
  190. ; return 0; }
  191. EOF
  192. if { (eval echo configure:3192: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  193.   rm -rf conftest*
  194.   db_cv_int16=yes
  195. else
  196.   echo "configure: failed program was:" >&5
  197.   cat conftest.$ac_ext >&5
  198.   rm -rf conftest*
  199.   if test "$cross_compiling" = yes; then
  200.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  201. else
  202.   cat > conftest.$ac_ext <<EOF
  203. #line 3203 "configure"
  204. #include "confdefs.h"
  205. main(){exit(sizeof(short) != 2);}
  206. EOF
  207. if { (eval echo configure:3207: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  208. then
  209.   db_cv_int16="short"
  210. else
  211.   echo "configure: failed program was:" >&5
  212.   cat conftest.$ac_ext >&5
  213.   rm -fr conftest*
  214.   if test "$cross_compiling" = yes; then
  215.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  216. else
  217.   cat > conftest.$ac_ext <<EOF
  218. #line 3218 "configure"
  219. #include "confdefs.h"
  220. main(){exit(sizeof(int) != 2);}
  221. EOF
  222. if { (eval echo configure:3222: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  223. then
  224.   db_cv_int16="int"
  225. else
  226.   echo "configure: failed program was:" >&5
  227.   cat conftest.$ac_ext >&5
  228.   rm -fr conftest*
  229.   db_cv_int16=no
  230. fi
  231. rm -fr conftest*
  232. fi
  233. fi
  234. rm -fr conftest*
  235. fi
  236. fi
  237. rm -f conftest*
  238. fi
  239. echo "$ac_t""$db_cv_int16" 1>&6
  240. if test "$db_cv_int16" = no; then
  241. { echo "configure: error: No signed 16-bit integral type." 1>&2; exit 1; }
  242. fi
  243. if test "$db_cv_int16" != yes; then
  244. int16_decl="typedef $db_cv_int16 int16_t;"
  245. fi
  246. echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
  247. echo "configure:3252: checking for u_int32_t" >&5
  248. if eval "test "`echo '$''{'db_cv_uint32'+set}'`" = set"; then
  249.   echo $ac_n "(cached) $ac_c" 1>&6
  250. else
  251.   cat > conftest.$ac_ext <<EOF
  252. #line 3257 "configure"
  253. #include "confdefs.h"
  254. #include <sys/types.h>
  255. int main() {
  256. u_int32_t foo;
  257. ; return 0; }
  258. EOF
  259. if { (eval echo configure:3264: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  260.   rm -rf conftest*
  261.   db_cv_uint32=yes
  262. else
  263.   echo "configure: failed program was:" >&5
  264.   cat conftest.$ac_ext >&5
  265.   rm -rf conftest*
  266.   if test "$cross_compiling" = yes; then
  267.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  268. else
  269.   cat > conftest.$ac_ext <<EOF
  270. #line 3275 "configure"
  271. #include "confdefs.h"
  272. main(){exit(sizeof(unsigned int) != 4);}
  273. EOF
  274. if { (eval echo configure:3279: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  275. then
  276.   db_cv_uint32="unsigned int"
  277. else
  278.   echo "configure: failed program was:" >&5
  279.   cat conftest.$ac_ext >&5
  280.   rm -fr conftest*
  281.   if test "$cross_compiling" = yes; then
  282.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  283. else
  284.   cat > conftest.$ac_ext <<EOF
  285. #line 3290 "configure"
  286. #include "confdefs.h"
  287. main(){exit(sizeof(unsigned long) != 4);}
  288. EOF
  289. if { (eval echo configure:3294: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  290. then
  291.   db_cv_uint32="unsigned long"
  292. else
  293.   echo "configure: failed program was:" >&5
  294.   cat conftest.$ac_ext >&5
  295.   rm -fr conftest*
  296.   db_cv_uint32=no
  297. fi
  298. rm -fr conftest*
  299. fi
  300. fi
  301. rm -fr conftest*
  302. fi
  303. fi
  304. rm -f conftest*
  305. fi
  306. echo "$ac_t""$db_cv_uint32" 1>&6
  307. if test "$db_cv_uint32" = no; then
  308. { echo "configure: error: No unsigned 32-bit integral type." 1>&2; exit 1; }
  309. fi
  310. if test "$db_cv_uint32" != yes; then
  311. u_int32_decl="typedef $db_cv_uint32 u_int32_t;"
  312. fi
  313. echo $ac_n "checking for int32_t""... $ac_c" 1>&6
  314. echo "configure:3324: checking for int32_t" >&5
  315. if eval "test "`echo '$''{'db_cv_int32'+set}'`" = set"; then
  316.   echo $ac_n "(cached) $ac_c" 1>&6
  317. else
  318.   cat > conftest.$ac_ext <<EOF
  319. #line 3329 "configure"
  320. #include "confdefs.h"
  321. #include <sys/types.h>
  322. int main() {
  323. int32_t foo;
  324. ; return 0; }
  325. EOF
  326. if { (eval echo configure:3336: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  327.   rm -rf conftest*
  328.   db_cv_int32=yes
  329. else
  330.   echo "configure: failed program was:" >&5
  331.   cat conftest.$ac_ext >&5
  332.   rm -rf conftest*
  333.   if test "$cross_compiling" = yes; then
  334.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  335. else
  336.   cat > conftest.$ac_ext <<EOF
  337. #line 3347 "configure"
  338. #include "confdefs.h"
  339. main(){exit(sizeof(int) != 4);}
  340. EOF
  341. if { (eval echo configure:3351: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  342. then
  343.   db_cv_int32="int"
  344. else
  345.   echo "configure: failed program was:" >&5
  346.   cat conftest.$ac_ext >&5
  347.   rm -fr conftest*
  348.   if test "$cross_compiling" = yes; then
  349.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  350. else
  351.   cat > conftest.$ac_ext <<EOF
  352. #line 3362 "configure"
  353. #include "confdefs.h"
  354. main(){exit(sizeof(long) != 4);}
  355. EOF
  356. if { (eval echo configure:3366: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  357. then
  358.   db_cv_int32="long"
  359. else
  360.   echo "configure: failed program was:" >&5
  361.   cat conftest.$ac_ext >&5
  362.   rm -fr conftest*
  363.   db_cv_int32=no
  364. fi
  365. rm -fr conftest*
  366. fi
  367. fi
  368. rm -fr conftest*
  369. fi
  370. fi
  371. rm -f conftest*
  372. fi
  373. echo "$ac_t""$db_cv_int32" 1>&6
  374. if test "$db_cv_int32" = no; then
  375. { echo "configure: error: No signed 32-bit integral type." 1>&2; exit 1; }
  376. fi
  377. if test "$db_cv_int32" != yes; then
  378. int32_decl="typedef $db_cv_int32 int32_t;"
  379. fi
  380. echo $ac_n "checking for largest integral type""... $ac_c" 1>&6
  381. echo "configure:3396: checking for largest integral type" >&5
  382. if eval "test "`echo '$''{'db_cv_align_t'+set}'`" = set"; then
  383.   echo $ac_n "(cached) $ac_c" 1>&6
  384. else
  385.   cat > conftest.$ac_ext <<EOF
  386. #line 3401 "configure"
  387. #include "confdefs.h"
  388. #include <sys/types.h>
  389. int main() {
  390. long long foo;
  391. ; return 0; }
  392. EOF
  393. if { (eval echo configure:3408: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  394.   rm -rf conftest*
  395.   db_cv_align_t="unsigned long long"
  396. else
  397.   echo "configure: failed program was:" >&5
  398.   cat conftest.$ac_ext >&5
  399.   rm -rf conftest*
  400.   db_cv_align_t="unsigned long"
  401. fi
  402. rm -f conftest*
  403. fi
  404. echo "$ac_t""$db_cv_align_t" 1>&6
  405. db_align_t_decl="typedef $db_cv_align_t db_align_t;"
  406. echo $ac_n "checking for integral type equal to pointer size""... $ac_c" 1>&6
  407. echo "configure:3425: checking for integral type equal to pointer size" >&5
  408. if eval "test "`echo '$''{'db_cv_alignp_t'+set}'`" = set"; then
  409.   echo $ac_n "(cached) $ac_c" 1>&6
  410. else
  411.   db_cv_alignp_t=$db_cv_align_t
  412. if test "$cross_compiling" = yes; then
  413.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  414. else
  415.   cat > conftest.$ac_ext <<EOF
  416. #line 3434 "configure"
  417. #include "confdefs.h"
  418. main(){exit(sizeof(unsigned int) != sizeof(char *));}
  419. EOF
  420. if { (eval echo configure:3438: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  421. then
  422.   db_cv_alignp_t="unsigned int"
  423. else
  424.   echo "configure: failed program was:" >&5
  425.   cat conftest.$ac_ext >&5
  426. fi
  427. rm -fr conftest*
  428. fi
  429. if test "$cross_compiling" = yes; then
  430.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  431. else
  432.   cat > conftest.$ac_ext <<EOF
  433. #line 3452 "configure"
  434. #include "confdefs.h"
  435. main(){exit(sizeof(unsigned long) != sizeof(char *));}
  436. EOF
  437. if { (eval echo configure:3456: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  438. then
  439.   db_cv_alignp_t="unsigned long"
  440. else
  441.   echo "configure: failed program was:" >&5
  442.   cat conftest.$ac_ext >&5
  443. fi
  444. rm -fr conftest*
  445. fi
  446. if test "$cross_compiling" = yes; then
  447.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  448. else
  449.   cat > conftest.$ac_ext <<EOF
  450. #line 3470 "configure"
  451. #include "confdefs.h"
  452. main(){exit(sizeof(unsigned long long) != sizeof(char *));}
  453. EOF
  454. if { (eval echo configure:3474: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  455. then
  456.   db_cv_alignp_t="unsigned long long"
  457. else
  458.   echo "configure: failed program was:" >&5
  459.   cat conftest.$ac_ext >&5
  460. fi
  461. rm -fr conftest*
  462. fi
  463. fi
  464. echo "$ac_t""$db_cv_alignp_t" 1>&6
  465. db_alignp_t_decl="typedef $db_cv_alignp_t db_alignp_t;"
  466. ac_header_dirent=no
  467. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  468. do
  469. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  470. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  471. echo "configure:3496: checking for $ac_hdr that defines DIR" >&5
  472. if eval "test "`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`" = set"; then
  473.   echo $ac_n "(cached) $ac_c" 1>&6
  474. else
  475.   cat > conftest.$ac_ext <<EOF
  476. #line 3501 "configure"
  477. #include "confdefs.h"
  478. #include <sys/types.h>
  479. #include <$ac_hdr>
  480. int main() {
  481. DIR *dirp = 0;
  482. ; return 0; }
  483. EOF
  484. if { (eval echo configure:3509: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
  485.   rm -rf conftest*
  486.   eval "ac_cv_header_dirent_$ac_safe=yes"
  487. else
  488.   echo "configure: failed program was:" >&5
  489.   cat conftest.$ac_ext >&5
  490.   rm -rf conftest*
  491.   eval "ac_cv_header_dirent_$ac_safe=no"
  492. fi
  493. rm -f conftest*
  494. fi
  495. if eval "test "`echo '$ac_cv_header_dirent_'$ac_safe`" = yes"; then
  496.   echo "$ac_t""yes" 1>&6
  497.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  498.   cat >> confdefs.h <<EOF
  499. #define $ac_tr_hdr 1
  500. EOF
  501.  ac_header_dirent=$ac_hdr; break
  502. else
  503.   echo "$ac_t""no" 1>&6
  504. fi
  505. done
  506. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  507. if test $ac_header_dirent = dirent.h; then
  508. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  509. echo "configure:3534: checking for opendir in -ldir" >&5
  510. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  511. if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
  512.   echo $ac_n "(cached) $ac_c" 1>&6
  513. else
  514.   ac_save_LIBS="$LIBS"
  515. LIBS="-ldir  $LIBS"
  516. cat > conftest.$ac_ext <<EOF
  517. #line 3542 "configure"
  518. #include "confdefs.h"
  519. /* Override any gcc2 internal prototype to avoid an error.  */
  520. /* We use char because int might match the return type of a gcc2
  521.     builtin and then its argument prototype would still apply.  */
  522. char opendir();
  523. int main() {
  524. opendir()
  525. ; return 0; }
  526. EOF
  527. if { (eval echo configure:3553: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  528.   rm -rf conftest*
  529.   eval "ac_cv_lib_$ac_lib_var=yes"
  530. else
  531.   echo "configure: failed program was:" >&5
  532.   cat conftest.$ac_ext >&5
  533.   rm -rf conftest*
  534.   eval "ac_cv_lib_$ac_lib_var=no"
  535. fi
  536. rm -f conftest*
  537. LIBS="$ac_save_LIBS"
  538. fi
  539. if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
  540.   echo "$ac_t""yes" 1>&6
  541.   LIBS="$LIBS -ldir"
  542. else
  543.   echo "$ac_t""no" 1>&6
  544. fi
  545. else
  546. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  547. echo "configure:3575: checking for opendir in -lx" >&5
  548. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  549. if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
  550.   echo $ac_n "(cached) $ac_c" 1>&6
  551. else
  552.   ac_save_LIBS="$LIBS"
  553. LIBS="-lx  $LIBS"
  554. cat > conftest.$ac_ext <<EOF
  555. #line 3583 "configure"
  556. #include "confdefs.h"
  557. /* Override any gcc2 internal prototype to avoid an error.  */
  558. /* We use char because int might match the return type of a gcc2
  559.     builtin and then its argument prototype would still apply.  */
  560. char opendir();
  561. int main() {
  562. opendir()
  563. ; return 0; }
  564. EOF
  565. if { (eval echo configure:3594: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  566.   rm -rf conftest*
  567.   eval "ac_cv_lib_$ac_lib_var=yes"
  568. else
  569.   echo "configure: failed program was:" >&5
  570.   cat conftest.$ac_ext >&5
  571.   rm -rf conftest*
  572.   eval "ac_cv_lib_$ac_lib_var=no"
  573. fi
  574. rm -f conftest*
  575. LIBS="$ac_save_LIBS"
  576. fi
  577. if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
  578.   echo "$ac_t""yes" 1>&6
  579.   LIBS="$LIBS -lx"
  580. else
  581.   echo "$ac_t""no" 1>&6
  582. fi
  583. fi
  584. for ac_hdr in sys/select.h
  585. do
  586. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  587. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  588. echo "configure:3620: checking for $ac_hdr" >&5
  589. if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
  590.   echo $ac_n "(cached) $ac_c" 1>&6
  591. else
  592.   cat > conftest.$ac_ext <<EOF
  593. #line 3625 "configure"
  594. #include "confdefs.h"
  595. #include <$ac_hdr>
  596. EOF
  597. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  598. { (eval echo configure:3630: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
  599. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
  600. if test -z "$ac_err"; then
  601.   rm -rf conftest*
  602.   eval "ac_cv_header_$ac_safe=yes"
  603. else
  604.   echo "$ac_err" >&5
  605.   echo "configure: failed program was:" >&5
  606.   cat conftest.$ac_ext >&5
  607.   rm -rf conftest*
  608.   eval "ac_cv_header_$ac_safe=no"
  609. fi
  610. rm -f conftest*
  611. fi
  612. if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
  613.   echo "$ac_t""yes" 1>&6
  614.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  615.   cat >> confdefs.h <<EOF
  616. #define $ac_tr_hdr 1
  617. EOF
  618.  
  619. else
  620.   echo "$ac_t""no" 1>&6
  621. fi
  622. done
  623. for ac_hdr in sys/time.h
  624. do
  625. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  626. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  627. echo "configure:3660: checking for $ac_hdr" >&5
  628. if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
  629.   echo $ac_n "(cached) $ac_c" 1>&6
  630. else
  631.   cat > conftest.$ac_ext <<EOF
  632. #line 3665 "configure"
  633. #include "confdefs.h"
  634. #include <$ac_hdr>
  635. EOF
  636. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  637. { (eval echo configure:3670: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
  638. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
  639. if test -z "$ac_err"; then
  640.   rm -rf conftest*
  641.   eval "ac_cv_header_$ac_safe=yes"
  642. else
  643.   echo "$ac_err" >&5
  644.   echo "configure: failed program was:" >&5
  645.   cat conftest.$ac_ext >&5
  646.   rm -rf conftest*
  647.   eval "ac_cv_header_$ac_safe=no"
  648. fi
  649. rm -f conftest*
  650. fi
  651. if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
  652.   echo "$ac_t""yes" 1>&6
  653.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  654.   cat >> confdefs.h <<EOF
  655. #define $ac_tr_hdr 1
  656. EOF
  657.  
  658. else
  659.   echo "$ac_t""no" 1>&6
  660. fi
  661. done
  662. echo $ac_n "checking for mutexes""... $ac_c" 1>&6
  663. echo "configure:3700: checking for mutexes" >&5
  664. if eval "test "`echo '$''{'db_cv_mutex'+set}'`" = set"; then
  665.   echo $ac_n "(cached) $ac_c" 1>&6
  666. else
  667.   db_cv_mutex=no
  668. orig_libs=$LIBS
  669. if test "$db_cv_posixmutexes" = yes; then
  670. db_cv_mutex="posix_only"
  671. fi
  672. if test "$db_cv_uimutexes" = yes; then
  673. db_cv_mutex="ui_only"
  674. fi
  675. if test "$db_cv_mutex" = no; then
  676. if test "$cross_compiling" = yes; then
  677.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  678. else
  679.   cat > conftest.$ac_ext <<EOF
  680. #line 3721 "configure"
  681. #include "confdefs.h"
  682. #include <synch.h>
  683. main(){
  684. static lwp_mutex_t mi = SHAREDMUTEX;
  685. static lwp_cond_t ci = SHAREDCV;
  686. lwp_mutex_t mutex = mi;
  687. lwp_cond_t cond = ci;
  688. exit (
  689. _lwp_mutex_lock(&mutex) ||
  690. _lwp_mutex_unlock(&mutex));
  691. }
  692. EOF
  693. if { (eval echo configure:3735: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  694. then
  695.   db_cv_mutex="Solaris/lwp"
  696. else
  697.   echo "configure: failed program was:" >&5
  698.   cat conftest.$ac_ext >&5
  699. fi
  700. rm -fr conftest*
  701. fi
  702. fi
  703. if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
  704. LIBS="-lthread $LIBS"
  705. if test "$cross_compiling" = yes; then
  706.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  707. else
  708.   cat > conftest.$ac_ext <<EOF
  709. #line 3753 "configure"
  710. #include "confdefs.h"
  711. #include <thread.h>
  712. #include <synch.h>
  713. main(){
  714. mutex_t mutex;
  715. cond_t cond;
  716. int type = USYNC_PROCESS;
  717. exit (
  718. mutex_init(&mutex, type, NULL) ||
  719. cond_init(&cond, type, NULL) ||
  720. mutex_lock(&mutex) ||
  721. mutex_unlock(&mutex));
  722. }
  723. EOF
  724. if { (eval echo configure:3769: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  725. then
  726.   db_cv_mutex="UI/threads/library"
  727. else
  728.   echo "configure: failed program was:" >&5
  729.   cat conftest.$ac_ext >&5
  730. fi
  731. rm -fr conftest*
  732. fi
  733. LIBS="$orig_libs"
  734. fi
  735. if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
  736. if test "$cross_compiling" = yes; then
  737.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  738. else
  739.   cat > conftest.$ac_ext <<EOF
  740. #line 3786 "configure"
  741. #include "confdefs.h"
  742. #include <thread.h>
  743. #include <synch.h>
  744. main(){
  745. mutex_t mutex;
  746. cond_t cond;
  747. int type = USYNC_PROCESS;
  748. exit (
  749. mutex_init(&mutex, type, NULL) ||
  750. cond_init(&cond, type, NULL) ||
  751. mutex_lock(&mutex) ||
  752. mutex_unlock(&mutex));
  753. }
  754. EOF
  755. if { (eval echo configure:3802: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  756. then
  757.   db_cv_mutex="UI/threads"
  758. else
  759.   echo "configure: failed program was:" >&5
  760.   cat conftest.$ac_ext >&5
  761. fi
  762. rm -fr conftest*
  763. fi
  764. fi
  765. if test "$db_cv_mutex" = "ui_only"; then
  766. { echo "configure: error: unable to find UI mutex interfaces" 1>&2; exit 1; }
  767. fi
  768. if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
  769. if test "$cross_compiling" = yes; then
  770.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  771. else
  772.   cat > conftest.$ac_ext <<EOF
  773. #line 3823 "configure"
  774. #include "confdefs.h"
  775. #include <pthread.h>
  776. main(){
  777. pthread_cond_t cond;
  778. pthread_mutex_t mutex;
  779. pthread_condattr_t condattr;
  780. pthread_mutexattr_t mutexattr;
  781. exit (
  782. pthread_condattr_init(&condattr) ||
  783. pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
  784. pthread_mutexattr_init(&mutexattr) ||
  785. pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
  786. pthread_cond_init(&cond, &condattr) ||
  787. pthread_mutex_init(&mutex, &mutexattr) ||
  788. pthread_mutex_lock(&mutex) ||
  789. pthread_mutex_unlock(&mutex) ||
  790. pthread_mutex_destroy(&mutex) ||
  791. pthread_cond_destroy(&cond) ||
  792. pthread_condattr_destroy(&condattr) ||
  793. pthread_mutexattr_destroy(&mutexattr));
  794. }
  795. EOF
  796. if { (eval echo configure:3847: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  797. then
  798.   db_cv_mutex="POSIX/pthreads"
  799. else
  800.   echo "configure: failed program was:" >&5
  801.   cat conftest.$ac_ext >&5
  802. fi
  803. rm -fr conftest*
  804. fi
  805. fi
  806. if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
  807. LIBS="-lpthread $LIBS"
  808. if test "$cross_compiling" = yes; then
  809.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  810. else
  811.   cat > conftest.$ac_ext <<EOF
  812. #line 3864 "configure"
  813. #include "confdefs.h"
  814. #include <pthread.h>
  815. main(){
  816. pthread_cond_t cond;
  817. pthread_mutex_t mutex;
  818. pthread_condattr_t condattr;
  819. pthread_mutexattr_t mutexattr;
  820. exit (
  821. pthread_condattr_init(&condattr) ||
  822. pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
  823. pthread_mutexattr_init(&mutexattr) ||
  824. pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
  825. pthread_cond_init(&cond, &condattr) ||
  826. pthread_mutex_init(&mutex, &mutexattr) ||
  827. pthread_mutex_lock(&mutex) ||
  828. pthread_mutex_unlock(&mutex) ||
  829. pthread_mutex_destroy(&mutex) ||
  830. pthread_cond_destroy(&cond) ||
  831. pthread_condattr_destroy(&condattr) ||
  832. pthread_mutexattr_destroy(&mutexattr));
  833. }
  834. EOF
  835. if { (eval echo configure:3888: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  836. then
  837.   db_cv_mutex="POSIX/pthreads/library"
  838. else
  839.   echo "configure: failed program was:" >&5
  840.   cat conftest.$ac_ext >&5
  841. fi
  842. rm -fr conftest*
  843. fi
  844. LIBS="$orig_libs"
  845. fi
  846. if test "$db_cv_mutex" = "posix_only"; then
  847. { echo "configure: error: unable to find POSIX mutex interfaces" 1>&2; exit 1; }
  848. fi
  849. if test "$db_cv_mutex" = no; then
  850. if test "$cross_compiling" = yes; then
  851.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  852. else
  853.   cat > conftest.$ac_ext <<EOF
  854. #line 3909 "configure"
  855. #include "confdefs.h"
  856. #include <sys/mman.h>
  857. main(){
  858. #if defined(__hppa)
  859. typedef msemaphore tsl_t;
  860. msemaphore x;
  861. msem_init(&x, 0);
  862. msem_lock(&x, 0);
  863. msem_unlock(&x, 0);
  864. exit(0);
  865. #else
  866. exit(1);
  867. #endif
  868. }
  869. EOF
  870. if { (eval echo configure:3926: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  871. then
  872.   db_cv_mutex="HP/msem_init"
  873. else
  874.   echo "configure: failed program was:" >&5
  875.   cat conftest.$ac_ext >&5
  876. fi
  877. rm -fr conftest*
  878. fi
  879. fi
  880. if test "$db_cv_mutex" = no; then
  881. if test "$cross_compiling" = yes; then
  882.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  883. else
  884.   cat > conftest.$ac_ext <<EOF
  885. #line 3943 "configure"
  886. #include "confdefs.h"
  887. #include <sys/types.h>
  888. #include <sys/mman.h>;
  889. main(){
  890. typedef msemaphore tsl_t;
  891. msemaphore x;
  892. msem_init(&x, 0);
  893. msem_lock(&x, 0);
  894. msem_unlock(&x, 0);
  895. exit(0);
  896. }
  897. EOF
  898. if { (eval echo configure:3957: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  899. then
  900.   db_cv_mutex="UNIX/msem_init"
  901. else
  902.   echo "configure: failed program was:" >&5
  903.   cat conftest.$ac_ext >&5
  904. fi
  905. rm -fr conftest*
  906. fi
  907. fi
  908. if test "$db_cv_mutex" = no; then
  909. LIBS="$LIBS -lmproc"
  910. cat > conftest.$ac_ext <<EOF
  911. #line 3972 "configure"
  912. #include "confdefs.h"
  913. #include <ulocks.h>
  914. int main() {
  915. typedef spinlock_t tsl_t;
  916. spinlock_t x; initspin(&x, 1); cspinlock(&x); spinunlock(&x);
  917. ; return 0; }
  918. EOF
  919. if { (eval echo configure:3980: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  920.   rm -rf conftest*
  921.   db_cv_mutex="ReliantUNIX/initspin"
  922. else
  923.   echo "configure: failed program was:" >&5
  924.   cat conftest.$ac_ext >&5
  925. fi
  926. rm -f conftest*
  927. LIBS="$orig_libs"
  928. fi
  929. if test "$db_cv_mutex" = no; then
  930. if test "$cross_compiling" = yes; then
  931.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  932. else
  933.   cat > conftest.$ac_ext <<EOF
  934. #line 3996 "configure"
  935. #include "confdefs.h"
  936. main(){
  937. #if defined(__USLC__)
  938. exit(0);
  939. #endif
  940. exit(1);
  941. }
  942. EOF
  943. if { (eval echo configure:4006: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  944. then
  945.   db_cv_mutex="SCO/x86/cc-assembly"
  946. else
  947.   echo "configure: failed program was:" >&5
  948.   cat conftest.$ac_ext >&5
  949. fi
  950. rm -fr conftest*
  951. fi
  952. fi
  953. if test "$db_cv_mutex" = no; then
  954. cat > conftest.$ac_ext <<EOF
  955. #line 4020 "configure"
  956. #include "confdefs.h"
  957. #include <abi_mutex.h>
  958. int main() {
  959. typedef abilock_t tsl_t;
  960. abilock_t x; init_lock(&x); acquire_lock(&x); release_lock(&x);
  961. ; return 0; }
  962. EOF
  963. if { (eval echo configure:4028: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  964.   rm -rf conftest*
  965.   db_cv_mutex="SGI/init_lock"
  966. else
  967.   echo "configure: failed program was:" >&5
  968.   cat conftest.$ac_ext >&5
  969. fi
  970. rm -f conftest*
  971. fi
  972. if test "$db_cv_mutex" = DOESNT_WORK; then
  973. cat > conftest.$ac_ext <<EOF
  974. #line 4040 "configure"
  975. #include "confdefs.h"
  976. #include <synch.h>
  977. int main() {
  978. typedef sema_t tsl_t;
  979.  sema_t x;
  980.  sema_init(&x, 1, USYNC_PROCESS, NULL); sema_wait(&x); sema_post(&x);
  981. ; return 0; }
  982. EOF
  983. if { (eval echo configure:4049: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  984.   rm -rf conftest*
  985.   db_cv_mutex="UNIX/sema_init"
  986. else
  987.   echo "configure: failed program was:" >&5
  988.   cat conftest.$ac_ext >&5
  989. fi
  990. rm -f conftest*
  991. fi
  992. if test "$db_cv_mutex" = no; then
  993. cat > conftest.$ac_ext <<EOF
  994. #line 4061 "configure"
  995. #include "confdefs.h"
  996. #include <sys/machlock.h>
  997. int main() {
  998. typedef lock_t tsl_t;
  999.  lock_t x;
  1000.  _lock_try(&x); _lock_clear(&x);
  1001. ; return 0; }
  1002. EOF
  1003. if { (eval echo configure:4070: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1004.   rm -rf conftest*
  1005.   db_cv_mutex="Solaris/_lock_try"
  1006. else
  1007.   echo "configure: failed program was:" >&5
  1008.   cat conftest.$ac_ext >&5
  1009. fi
  1010. rm -f conftest*
  1011. fi
  1012. if test "$db_cv_mutex" = no; then
  1013. cat > conftest.$ac_ext <<EOF
  1014. #line 4082 "configure"
  1015. #include "confdefs.h"
  1016. #include <sys/atomic_op.h>
  1017. int main() {
  1018. int x; _check_lock(&x,0,1); _clear_lock(&x,0);
  1019. ; return 0; }
  1020. EOF
  1021. if { (eval echo configure:4089: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1022.   rm -rf conftest*
  1023.   db_cv_mutex="AIX/_check_lock"
  1024. else
  1025.   echo "configure: failed program was:" >&5
  1026.   cat conftest.$ac_ext >&5
  1027. fi
  1028. rm -f conftest*
  1029. fi
  1030. if test "$db_cv_mutex" = DOESNT_WORK; then
  1031. if test "$cross_compiling" = yes; then
  1032.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1033. else
  1034.   cat > conftest.$ac_ext <<EOF
  1035. #line 4104 "configure"
  1036. #include "confdefs.h"
  1037. main(){
  1038. #if defined(__alpha)
  1039. #if defined(__GNUC__)
  1040. exit(0);
  1041. #endif
  1042. #endif
  1043. exit(1);}
  1044. EOF
  1045. if { (eval echo configure:4114: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1046. then
  1047.   db_cv_mutex="ALPHA/gcc-assembly"
  1048. else
  1049.   echo "configure: failed program was:" >&5
  1050.   cat conftest.$ac_ext >&5
  1051. fi
  1052. rm -fr conftest*
  1053. fi
  1054. fi
  1055. if test "$db_cv_mutex" = no; then
  1056. if test "$cross_compiling" = yes; then
  1057.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1058. else
  1059.   cat > conftest.$ac_ext <<EOF
  1060. #line 4131 "configure"
  1061. #include "confdefs.h"
  1062. main(){
  1063. #if defined(__hppa)
  1064. #if defined(__GNUC__)
  1065. exit(0);
  1066. #endif
  1067. #endif
  1068. exit(1);}
  1069. EOF
  1070. if { (eval echo configure:4141: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1071. then
  1072.   db_cv_mutex="HPPA/gcc-assembly"
  1073. else
  1074.   echo "configure: failed program was:" >&5
  1075.   cat conftest.$ac_ext >&5
  1076. fi
  1077. rm -fr conftest*
  1078. fi
  1079. fi
  1080. if test "$db_cv_mutex" = no; then
  1081. if test "$cross_compiling" = yes; then
  1082.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1083. else
  1084.   cat > conftest.$ac_ext <<EOF
  1085. #line 4158 "configure"
  1086. #include "confdefs.h"
  1087. main(){
  1088. #if defined(__powerpc__)
  1089. #if defined(__GNUC__)
  1090. exit(0);
  1091. #endif
  1092. #endif
  1093. exit(1);}
  1094. EOF
  1095. if { (eval echo configure:4168: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1096. then
  1097.   db_cv_mutex="PPC/gcc-assembly"
  1098. else
  1099.   echo "configure: failed program was:" >&5
  1100.   cat conftest.$ac_ext >&5
  1101. fi
  1102. rm -fr conftest*
  1103. fi
  1104. fi
  1105. if test "$db_cv_mutex" = DOESNT_WORK; then
  1106. if test "$cross_compiling" = yes; then
  1107.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1108. else
  1109.   cat > conftest.$ac_ext <<EOF
  1110. #line 4185 "configure"
  1111. #include "confdefs.h"
  1112. main(){
  1113. #if defined(__sparc__)
  1114. #if defined(__GNUC__)
  1115. exit(0);
  1116. #endif
  1117. #endif
  1118. exit(1);
  1119. }
  1120. EOF
  1121. if { (eval echo configure:4196: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1122. then
  1123.   db_cv_mutex="Sparc/gcc-assembly"
  1124. else
  1125.   echo "configure: failed program was:" >&5
  1126.   cat conftest.$ac_ext >&5
  1127. fi
  1128. rm -fr conftest*
  1129. fi
  1130. fi
  1131. if test "$db_cv_mutex" = no; then
  1132. if test "$cross_compiling" = yes; then
  1133.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1134. else
  1135.   cat > conftest.$ac_ext <<EOF
  1136. #line 4213 "configure"
  1137. #include "confdefs.h"
  1138. main(){
  1139. #if (defined(mc68020) || defined(sun3))
  1140. #if defined(__GNUC__)
  1141. exit(0);
  1142. #endif
  1143. #endif
  1144. exit(1);
  1145. }
  1146. EOF
  1147. if { (eval echo configure:4224: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1148. then
  1149.   db_cv_mutex="68K/gcc-assembly"
  1150. else
  1151.   echo "configure: failed program was:" >&5
  1152.   cat conftest.$ac_ext >&5
  1153. fi
  1154. rm -fr conftest*
  1155. fi
  1156. fi
  1157. if test "$db_cv_mutex" = no; then
  1158. if test "$cross_compiling" = yes; then
  1159.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1160. else
  1161.   cat > conftest.$ac_ext <<EOF
  1162. #line 4241 "configure"
  1163. #include "confdefs.h"
  1164. main(){
  1165. #if defined(i386) || defined(__i386__)
  1166. #if defined(__GNUC__)
  1167. exit(0);
  1168. #endif
  1169. #endif
  1170. exit(1);
  1171. }
  1172. EOF
  1173. if { (eval echo configure:4252: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1174. then
  1175.   db_cv_mutex="x86/gcc-assembly"
  1176. else
  1177.   echo "configure: failed program was:" >&5
  1178.   cat conftest.$ac_ext >&5
  1179. fi
  1180. rm -fr conftest*
  1181. fi
  1182. fi
  1183. if test "$db_cv_mutex" = no; then
  1184. if test "$cross_compiling" = yes; then
  1185.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1186. else
  1187.   cat > conftest.$ac_ext <<EOF
  1188. #line 4269 "configure"
  1189. #include "confdefs.h"
  1190. main(){
  1191. #if defined(__ia64)
  1192. #if defined(__GNUC__)
  1193. exit(0);
  1194. #endif
  1195. #endif
  1196. exit(1);
  1197. }
  1198. EOF
  1199. if { (eval echo configure:4280: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1200. then
  1201.   db_cv_mutex="ia64/gcc-assembly"
  1202. else
  1203.   echo "configure: failed program was:" >&5
  1204.   cat conftest.$ac_ext >&5
  1205. fi
  1206. rm -fr conftest*
  1207. fi
  1208. fi
  1209. if test "$db_cv_mutex" = no; then
  1210. if test "$cross_compiling" = yes; then
  1211.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1212. else
  1213.   cat > conftest.$ac_ext <<EOF
  1214. #line 4297 "configure"
  1215. #include "confdefs.h"
  1216. main(){
  1217. #if defined(_UTS)
  1218. exit(0);
  1219. #endif
  1220. exit(1);
  1221. }
  1222. EOF
  1223. if { (eval echo configure:4306: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1224. then
  1225.   db_cv_mutex="UTS/cc-assembly"
  1226. else
  1227.   echo "configure: failed program was:" >&5
  1228.   cat conftest.$ac_ext >&5
  1229. fi
  1230. rm -fr conftest*
  1231. fi
  1232. fi
  1233. fi
  1234. echo "$ac_t""$db_cv_mutex" 1>&6
  1235. if test "$db_cv_mutex" = no; then
  1236. echo "configure: warning: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." 1>&2
  1237. ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
  1238. else
  1239. cat >> confdefs.h <<EOF
  1240. #define HAVE_MUTEX_THREADS 1
  1241. EOF
  1242. fi
  1243. case "$db_cv_mutex" in
  1244. 68K/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1245. cat >> confdefs.h <<EOF
  1246. #define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
  1247. EOF
  1248. ;;
  1249. AIX/_check_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1250. cat >> confdefs.h <<EOF
  1251. #define HAVE_MUTEX_AIX_CHECK_LOCK 1
  1252. EOF
  1253. ;;
  1254. ALPHA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1255. cat >> confdefs.h <<EOF
  1256. #define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
  1257. EOF
  1258. ;;
  1259. HP/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1260. cat >> confdefs.h <<EOF
  1261. #define HAVE_MUTEX_HPPA_MSEM_INIT 1
  1262. EOF
  1263. ;;
  1264. HPPA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1265. cat >> confdefs.h <<EOF
  1266. #define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
  1267. EOF
  1268. ;;
  1269. ia64/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1270. cat >> confdefs.h <<EOF
  1271. #define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
  1272. EOF
  1273. ;;
  1274. POSIX/pthreads) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
  1275. cat >> confdefs.h <<EOF
  1276. #define HAVE_MUTEX_PTHREADS 1
  1277. EOF
  1278. ;;
  1279. POSIX/pthreads/library) LIBS="-lpthread $LIBS"
  1280. ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
  1281. cat >> confdefs.h <<EOF
  1282. #define HAVE_MUTEX_PTHREADS 1
  1283. EOF
  1284. ;;
  1285. PPC/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1286. cat >> confdefs.h <<EOF
  1287. #define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1
  1288. EOF
  1289. ;;
  1290. ReliantUNIX/initspin) LIBS="$LIBS -lmproc"
  1291. ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1292. cat >> confdefs.h <<EOF
  1293. #define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
  1294. EOF
  1295. ;;
  1296. SCO/x86/cc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1297. cat >> confdefs.h <<EOF
  1298. #define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
  1299. EOF
  1300. ;;
  1301. SGI/init_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1302. cat >> confdefs.h <<EOF
  1303. #define HAVE_MUTEX_SGI_INIT_LOCK 1
  1304. EOF
  1305. ;;
  1306. Solaris/_lock_try) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1307. cat >> confdefs.h <<EOF
  1308. #define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
  1309. EOF
  1310. ;;
  1311. Solaris/lwp) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
  1312. cat >> confdefs.h <<EOF
  1313. #define HAVE_MUTEX_SOLARIS_LWP 1
  1314. EOF
  1315. ;;
  1316. Sparc/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1317. cat >> confdefs.h <<EOF
  1318. #define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
  1319. EOF
  1320. ;;
  1321. UI/threads) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
  1322. cat >> confdefs.h <<EOF
  1323. #define HAVE_MUTEX_UI_THREADS 1
  1324. EOF
  1325. ;;
  1326. UI/threads/library) LIBS="-lthread $LIBS"
  1327. ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
  1328. cat >> confdefs.h <<EOF
  1329. #define HAVE_MUTEX_UI_THREADS 1
  1330. EOF
  1331. ;;
  1332. UNIX/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1333. cat >> confdefs.h <<EOF
  1334. #define HAVE_MUTEX_MSEM_INIT 1
  1335. EOF
  1336. ;;
  1337. UNIX/sema_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1338. cat >> confdefs.h <<EOF
  1339. #define HAVE_MUTEX_SEMA_INIT 1
  1340. EOF
  1341. ;;
  1342. UTS/cc-assembly) ADDITIONAL_OBJS="$ADDITIONAL_OBJS uts4.cc${o}"
  1343. cat >> confdefs.h <<EOF
  1344. #define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
  1345. EOF
  1346. ;;
  1347. x86/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
  1348. cat >> confdefs.h <<EOF
  1349. #define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
  1350. EOF
  1351. ;;
  1352. esac
  1353. for ac_func in getcwd getopt memcmp memcpy memmove
  1354. do
  1355. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1356. echo "configure:4447: checking for $ac_func" >&5
  1357. if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
  1358.   echo $ac_n "(cached) $ac_c" 1>&6
  1359. else
  1360.   cat > conftest.$ac_ext <<EOF
  1361. #line 4452 "configure"
  1362. #include "confdefs.h"
  1363. /* System header to define __stub macros and hopefully few prototypes,
  1364.     which can conflict with char $ac_func(); below.  */
  1365. #include <assert.h>
  1366. /* Override any gcc2 internal prototype to avoid an error.  */
  1367. /* We use char because int might match the return type of a gcc2
  1368.     builtin and then its argument prototype would still apply.  */
  1369. char $ac_func();
  1370. int main() {
  1371. /* The GNU C library defines this for functions which it implements
  1372.     to always fail with ENOSYS.  Some functions are actually named
  1373.     something starting with __ and the normal name is an alias.  */
  1374. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1375. choke me
  1376. #else
  1377. $ac_func();
  1378. #endif
  1379. ; return 0; }
  1380. EOF
  1381. if { (eval echo configure:4475: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1382.   rm -rf conftest*
  1383.   eval "ac_cv_func_$ac_func=yes"
  1384. else
  1385.   echo "configure: failed program was:" >&5
  1386.   cat conftest.$ac_ext >&5
  1387.   rm -rf conftest*
  1388.   eval "ac_cv_func_$ac_func=no"
  1389. fi
  1390. rm -f conftest*
  1391. fi
  1392. if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
  1393.   echo "$ac_t""yes" 1>&6
  1394.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1395.   cat >> confdefs.h <<EOF
  1396. #define $ac_tr_func 1
  1397. EOF
  1398.  
  1399. else
  1400.   echo "$ac_t""no" 1>&6
  1401. LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
  1402. fi
  1403. done
  1404. for ac_func in raise snprintf strcasecmp strerror vsnprintf
  1405. do
  1406. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1407. echo "configure:4504: checking for $ac_func" >&5
  1408. if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
  1409.   echo $ac_n "(cached) $ac_c" 1>&6
  1410. else
  1411.   cat > conftest.$ac_ext <<EOF
  1412. #line 4509 "configure"
  1413. #include "confdefs.h"
  1414. /* System header to define __stub macros and hopefully few prototypes,
  1415.     which can conflict with char $ac_func(); below.  */
  1416. #include <assert.h>
  1417. /* Override any gcc2 internal prototype to avoid an error.  */
  1418. /* We use char because int might match the return type of a gcc2
  1419.     builtin and then its argument prototype would still apply.  */
  1420. char $ac_func();
  1421. int main() {
  1422. /* The GNU C library defines this for functions which it implements
  1423.     to always fail with ENOSYS.  Some functions are actually named
  1424.     something starting with __ and the normal name is an alias.  */
  1425. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1426. choke me
  1427. #else
  1428. $ac_func();
  1429. #endif
  1430. ; return 0; }
  1431. EOF
  1432. if { (eval echo configure:4532: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1433.   rm -rf conftest*
  1434.   eval "ac_cv_func_$ac_func=yes"
  1435. else
  1436.   echo "configure: failed program was:" >&5
  1437.   cat conftest.$ac_ext >&5
  1438.   rm -rf conftest*
  1439.   eval "ac_cv_func_$ac_func=no"
  1440. fi
  1441. rm -f conftest*
  1442. fi
  1443. if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
  1444.   echo "$ac_t""yes" 1>&6
  1445.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1446.   cat >> confdefs.h <<EOF
  1447. #define $ac_tr_func 1
  1448. EOF
  1449.  
  1450. else
  1451.   echo "$ac_t""no" 1>&6
  1452. LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
  1453. fi
  1454. done
  1455. tmp="`echo "$LIBOBJS" | sed "s/.o/${o}/g"`"
  1456. LIBOBJS="$tmp"
  1457. for ac_func in getuid pstat_getdynamic sysconf sched_yield strtoul yield
  1458. do
  1459. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1460. echo "configure:4565: checking for $ac_func" >&5
  1461. if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
  1462.   echo $ac_n "(cached) $ac_c" 1>&6
  1463. else
  1464.   cat > conftest.$ac_ext <<EOF
  1465. #line 4570 "configure"
  1466. #include "confdefs.h"
  1467. /* System header to define __stub macros and hopefully few prototypes,
  1468.     which can conflict with char $ac_func(); below.  */
  1469. #include <assert.h>
  1470. /* Override any gcc2 internal prototype to avoid an error.  */
  1471. /* We use char because int might match the return type of a gcc2
  1472.     builtin and then its argument prototype would still apply.  */
  1473. char $ac_func();
  1474. int main() {
  1475. /* The GNU C library defines this for functions which it implements
  1476.     to always fail with ENOSYS.  Some functions are actually named
  1477.     something starting with __ and the normal name is an alias.  */
  1478. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1479. choke me
  1480. #else
  1481. $ac_func();
  1482. #endif
  1483. ; return 0; }
  1484. EOF
  1485. if { (eval echo configure:4593: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1486.   rm -rf conftest*
  1487.   eval "ac_cv_func_$ac_func=yes"
  1488. else
  1489.   echo "configure: failed program was:" >&5
  1490.   cat conftest.$ac_ext >&5
  1491.   rm -rf conftest*
  1492.   eval "ac_cv_func_$ac_func=no"
  1493. fi
  1494. rm -f conftest*
  1495. fi
  1496. if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
  1497.   echo "$ac_t""yes" 1>&6
  1498.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1499.   cat >> confdefs.h <<EOF
  1500. #define $ac_tr_func 1
  1501. EOF
  1502.  
  1503. else
  1504.   echo "$ac_t""no" 1>&6
  1505. fi
  1506. done
  1507. case "$host_os" in
  1508. hpux*)
  1509. echo "configure: warning: pread/pwrite interfaces ignored on $host_os." 1>&2;;
  1510. *) for ac_func in pread pwrite
  1511. do
  1512. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1513. echo "configure:4624: checking for $ac_func" >&5
  1514. if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
  1515.   echo $ac_n "(cached) $ac_c" 1>&6
  1516. else
  1517.   cat > conftest.$ac_ext <<EOF
  1518. #line 4629 "configure"
  1519. #include "confdefs.h"
  1520. /* System header to define __stub macros and hopefully few prototypes,
  1521.     which can conflict with char $ac_func(); below.  */
  1522. #include <assert.h>
  1523. /* Override any gcc2 internal prototype to avoid an error.  */
  1524. /* We use char because int might match the return type of a gcc2
  1525.     builtin and then its argument prototype would still apply.  */
  1526. char $ac_func();
  1527. int main() {
  1528. /* The GNU C library defines this for functions which it implements
  1529.     to always fail with ENOSYS.  Some functions are actually named
  1530.     something starting with __ and the normal name is an alias.  */
  1531. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1532. choke me
  1533. #else
  1534. $ac_func();
  1535. #endif
  1536. ; return 0; }
  1537. EOF
  1538. if { (eval echo configure:4652: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1539.   rm -rf conftest*
  1540.   eval "ac_cv_func_$ac_func=yes"
  1541. else
  1542.   echo "configure: failed program was:" >&5
  1543.   cat conftest.$ac_ext >&5
  1544.   rm -rf conftest*
  1545.   eval "ac_cv_func_$ac_func=no"
  1546. fi
  1547. rm -f conftest*
  1548. fi
  1549. if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
  1550.   echo "$ac_t""yes" 1>&6
  1551.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1552.   cat >> confdefs.h <<EOF
  1553. #define $ac_tr_func 1
  1554. EOF
  1555.  
  1556. else
  1557.   echo "$ac_t""no" 1>&6
  1558. fi
  1559. done
  1560. esac
  1561. echo $ac_n "checking for fcntl/F_SETFD""... $ac_c" 1>&6
  1562. echo "configure:4679: checking for fcntl/F_SETFD" >&5
  1563. if eval "test "`echo '$''{'db_cv_fcntl_f_setfd'+set}'`" = set"; then
  1564.   echo $ac_n "(cached) $ac_c" 1>&6
  1565. else
  1566.   if test "$cross_compiling" = yes; then
  1567.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1568. else
  1569.   cat > conftest.$ac_ext <<EOF
  1570. #line 4687 "configure"
  1571. #include "confdefs.h"
  1572. #include <sys/types.h>
  1573. #include <fcntl.h>
  1574. main(){exit(fcntl(1, F_SETFD, 1) == -1);}
  1575. EOF
  1576. if { (eval echo configure:4694: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1577. then
  1578.   db_cv_fcntl_f_setfd=yes
  1579. else
  1580.   echo "configure: failed program was:" >&5
  1581.   cat conftest.$ac_ext >&5
  1582.   rm -fr conftest*
  1583.   db_cv_fcntl_f_setfd=no
  1584. fi
  1585. rm -fr conftest*
  1586. fi
  1587. fi
  1588. echo "$ac_t""$db_cv_fcntl_f_setfd" 1>&6
  1589. if test "$db_cv_fcntl_f_setfd" = yes; then
  1590. cat >> confdefs.h <<EOF
  1591. #define HAVE_FCNTL_F_SETFD 1
  1592. EOF
  1593. fi
  1594. case "$host_os" in
  1595. aux*) ADDITIONAL_OBJS="getopt${o} $ADDITIONAL_OBJS";;
  1596. esac
  1597. for ac_func in qsort
  1598. do
  1599. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1600. echo "configure:4724: checking for $ac_func" >&5
  1601. if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
  1602.   echo $ac_n "(cached) $ac_c" 1>&6
  1603. else
  1604.   cat > conftest.$ac_ext <<EOF
  1605. #line 4729 "configure"
  1606. #include "confdefs.h"
  1607. /* System header to define __stub macros and hopefully few prototypes,
  1608.     which can conflict with char $ac_func(); below.  */
  1609. #include <assert.h>
  1610. /* Override any gcc2 internal prototype to avoid an error.  */
  1611. /* We use char because int might match the return type of a gcc2
  1612.     builtin and then its argument prototype would still apply.  */
  1613. char $ac_func();
  1614. int main() {
  1615. /* The GNU C library defines this for functions which it implements
  1616.     to always fail with ENOSYS.  Some functions are actually named
  1617.     something starting with __ and the normal name is an alias.  */
  1618. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1619. choke me
  1620. #else
  1621. $ac_func();
  1622. #endif
  1623. ; return 0; }
  1624. EOF
  1625. if { (eval echo configure:4752: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1626.   rm -rf conftest*
  1627.   eval "ac_cv_func_$ac_func=yes"
  1628. else
  1629.   echo "configure: failed program was:" >&5
  1630.   cat conftest.$ac_ext >&5
  1631.   rm -rf conftest*
  1632.   eval "ac_cv_func_$ac_func=no"
  1633. fi
  1634. rm -f conftest*
  1635. fi
  1636. if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
  1637.   echo "$ac_t""yes" 1>&6
  1638.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1639.   cat >> confdefs.h <<EOF
  1640. #define $ac_tr_func 1
  1641. EOF
  1642.  
  1643. else
  1644.   echo "$ac_t""no" 1>&6
  1645. { echo "configure: error: No qsort library function." 1>&2; exit 1; }
  1646. fi
  1647. done
  1648. for ac_func in select
  1649. do
  1650. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1651. echo "configure:4780: checking for $ac_func" >&5
  1652. if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
  1653.   echo $ac_n "(cached) $ac_c" 1>&6
  1654. else
  1655.   cat > conftest.$ac_ext <<EOF
  1656. #line 4785 "configure"
  1657. #include "confdefs.h"
  1658. /* System header to define __stub macros and hopefully few prototypes,
  1659.     which can conflict with char $ac_func(); below.  */
  1660. #include <assert.h>
  1661. /* Override any gcc2 internal prototype to avoid an error.  */
  1662. /* We use char because int might match the return type of a gcc2
  1663.     builtin and then its argument prototype would still apply.  */
  1664. char $ac_func();
  1665. int main() {
  1666. /* The GNU C library defines this for functions which it implements
  1667.     to always fail with ENOSYS.  Some functions are actually named
  1668.     something starting with __ and the normal name is an alias.  */
  1669. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1670. choke me
  1671. #else
  1672. $ac_func();
  1673. #endif
  1674. ; return 0; }
  1675. EOF
  1676. if { (eval echo configure:4808: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1677.   rm -rf conftest*
  1678.   eval "ac_cv_func_$ac_func=yes"
  1679. else
  1680.   echo "configure: failed program was:" >&5
  1681.   cat conftest.$ac_ext >&5
  1682.   rm -rf conftest*
  1683.   eval "ac_cv_func_$ac_func=no"
  1684. fi
  1685. rm -f conftest*
  1686. fi
  1687. if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
  1688.   echo "$ac_t""yes" 1>&6
  1689.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1690.   cat >> confdefs.h <<EOF
  1691. #define $ac_tr_func 1
  1692. EOF
  1693.  
  1694. else
  1695.   echo "$ac_t""no" 1>&6
  1696. { echo "configure: error: No select library function." 1>&2; exit 1; }
  1697. fi
  1698. done
  1699. echo $ac_n "checking for int type sprintf return value""... $ac_c" 1>&6
  1700. echo "configure:4835: checking for int type sprintf return value" >&5
  1701. if eval "test "`echo '$''{'db_cv_sprintf_count'+set}'`" = set"; then
  1702.   echo $ac_n "(cached) $ac_c" 1>&6
  1703. else
  1704.   if test "$cross_compiling" = yes; then
  1705.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1706. else
  1707.   cat > conftest.$ac_ext <<EOF
  1708. #line 4843 "configure"
  1709. #include "confdefs.h"
  1710. main(){char buf[20]; exit(sprintf(buf, "XXX") != 3);}
  1711. EOF
  1712. if { (eval echo configure:4847: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1713. then
  1714.   db_cv_sprintf_count=yes
  1715. else
  1716.   echo "configure: failed program was:" >&5
  1717.   cat conftest.$ac_ext >&5
  1718.   rm -fr conftest*
  1719.   db_cv_sprintf_count=no
  1720. fi
  1721. rm -fr conftest*
  1722. fi
  1723. fi
  1724. echo "$ac_t""$db_cv_sprintf_count" 1>&6
  1725. if test "$db_cv_sprintf_count" = no; then
  1726. cat >> confdefs.h <<EOF
  1727. #define SPRINTF_RET_CHARPNT 1
  1728. EOF
  1729. fi
  1730. if test "$db_cv_bigfile" = no; then
  1731. case "$host_os" in
  1732.         solaris2.8|hpux*)
  1733. if test "$db_cv_cxx" = "yes"; then
  1734. echo "configure: warning: Large file and C++ API support are incompatible on HP-UX" 1>&2
  1735. echo "configure: warning: and Solaris 8; large file support has been turned off." 1>&2
  1736. else
  1737. cat >> confdefs.h <<EOF
  1738. #define HAVE_FILE_OFFSET_BITS 1
  1739. EOF
  1740. fi;;
  1741. aix*|solaris*|linux*)
  1742. cat >> confdefs.h <<EOF
  1743. #define HAVE_FILE_OFFSET_BITS 1
  1744. EOF
  1745. ;;
  1746. esac
  1747. fi
  1748. mmap_ok=no
  1749. case "$host_os" in
  1750. bsdi3*|bsdi4.0)
  1751. echo "configure: warning: mlock(2) interface ignored on BSD/OS 3.X and 4.0." 1>&2
  1752. mmap_ok=yes
  1753. for ac_func in mmap munmap
  1754. do
  1755. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1756. echo "configure:4897: checking for $ac_func" >&5
  1757. if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
  1758.   echo $ac_n "(cached) $ac_c" 1>&6
  1759. else
  1760.   cat > conftest.$ac_ext <<EOF
  1761. #line 4902 "configure"
  1762. #include "confdefs.h"
  1763. /* System header to define __stub macros and hopefully few prototypes,
  1764.     which can conflict with char $ac_func(); below.  */
  1765. #include <assert.h>
  1766. /* Override any gcc2 internal prototype to avoid an error.  */
  1767. /* We use char because int might match the return type of a gcc2
  1768.     builtin and then its argument prototype would still apply.  */
  1769. char $ac_func();
  1770. int main() {
  1771. /* The GNU C library defines this for functions which it implements
  1772.     to always fail with ENOSYS.  Some functions are actually named
  1773.     something starting with __ and the normal name is an alias.  */
  1774. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1775. choke me
  1776. #else
  1777. $ac_func();
  1778. #endif
  1779. ; return 0; }
  1780. EOF
  1781. if { (eval echo configure:4925: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1782.   rm -rf conftest*
  1783.   eval "ac_cv_func_$ac_func=yes"
  1784. else
  1785.   echo "configure: failed program was:" >&5
  1786.   cat conftest.$ac_ext >&5
  1787.   rm -rf conftest*
  1788.   eval "ac_cv_func_$ac_func=no"
  1789. fi
  1790. rm -f conftest*
  1791. fi
  1792. if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
  1793.   echo "$ac_t""yes" 1>&6
  1794.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1795.   cat >> confdefs.h <<EOF
  1796. #define $ac_tr_func 1
  1797. EOF
  1798.  
  1799. else
  1800.   echo "$ac_t""no" 1>&6
  1801. mmap_ok=no
  1802. fi
  1803. done
  1804. ;;
  1805. ultrix*)
  1806. echo "configure: warning: mmap(2) interface ignored on Ultrix." 1>&2;;
  1807. *)
  1808. mmap_ok=yes
  1809. for ac_func in mlock munlock
  1810. do
  1811. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1812. echo "configure:4957: checking for $ac_func" >&5
  1813. if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
  1814.   echo $ac_n "(cached) $ac_c" 1>&6
  1815. else
  1816.   cat > conftest.$ac_ext <<EOF
  1817. #line 4962 "configure"
  1818. #include "confdefs.h"
  1819. /* System header to define __stub macros and hopefully few prototypes,
  1820.     which can conflict with char $ac_func(); below.  */
  1821. #include <assert.h>
  1822. /* Override any gcc2 internal prototype to avoid an error.  */
  1823. /* We use char because int might match the return type of a gcc2
  1824.     builtin and then its argument prototype would still apply.  */
  1825. char $ac_func();
  1826. int main() {
  1827. /* The GNU C library defines this for functions which it implements
  1828.     to always fail with ENOSYS.  Some functions are actually named
  1829.     something starting with __ and the normal name is an alias.  */
  1830. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1831. choke me
  1832. #else
  1833. $ac_func();
  1834. #endif
  1835. ; return 0; }
  1836. EOF
  1837. if { (eval echo configure:4985: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1838.   rm -rf conftest*
  1839.   eval "ac_cv_func_$ac_func=yes"
  1840. else
  1841.   echo "configure: failed program was:" >&5
  1842.   cat conftest.$ac_ext >&5
  1843.   rm -rf conftest*
  1844.   eval "ac_cv_func_$ac_func=no"
  1845. fi
  1846. rm -f conftest*
  1847. fi
  1848. if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
  1849.   echo "$ac_t""yes" 1>&6
  1850.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1851.   cat >> confdefs.h <<EOF
  1852. #define $ac_tr_func 1
  1853. EOF
  1854.  
  1855. else
  1856.   echo "$ac_t""no" 1>&6
  1857. fi
  1858. done
  1859. for ac_func in mmap munmap
  1860. do
  1861. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1862. echo "configure:5012: checking for $ac_func" >&5
  1863. if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
  1864.   echo $ac_n "(cached) $ac_c" 1>&6
  1865. else
  1866.   cat > conftest.$ac_ext <<EOF
  1867. #line 5017 "configure"
  1868. #include "confdefs.h"
  1869. /* System header to define __stub macros and hopefully few prototypes,
  1870.     which can conflict with char $ac_func(); below.  */
  1871. #include <assert.h>
  1872. /* Override any gcc2 internal prototype to avoid an error.  */
  1873. /* We use char because int might match the return type of a gcc2
  1874.     builtin and then its argument prototype would still apply.  */
  1875. char $ac_func();
  1876. int main() {
  1877. /* The GNU C library defines this for functions which it implements
  1878.     to always fail with ENOSYS.  Some functions are actually named
  1879.     something starting with __ and the normal name is an alias.  */
  1880. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1881. choke me
  1882. #else
  1883. $ac_func();
  1884. #endif
  1885. ; return 0; }
  1886. EOF
  1887. if { (eval echo configure:5040: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1888.   rm -rf conftest*
  1889.   eval "ac_cv_func_$ac_func=yes"
  1890. else
  1891.   echo "configure: failed program was:" >&5
  1892.   cat conftest.$ac_ext >&5
  1893.   rm -rf conftest*
  1894.   eval "ac_cv_func_$ac_func=no"
  1895. fi
  1896. rm -f conftest*
  1897. fi
  1898. if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
  1899.   echo "$ac_t""yes" 1>&6
  1900.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1901.   cat >> confdefs.h <<EOF
  1902. #define $ac_tr_func 1
  1903. EOF
  1904.  
  1905. else
  1906.   echo "$ac_t""no" 1>&6
  1907. mmap_ok=no
  1908. fi
  1909. done
  1910. ;;
  1911. esac
  1912. shmget_ok=no
  1913. case "$host_os" in
  1914. sunos*)
  1915. echo "configure: warning: shmget(2) interface ignored on SunOS." 1>&2;;
  1916. *)
  1917. shmget_ok=yes
  1918. for ac_func in shmget
  1919. do
  1920. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1921. echo "configure:5076: checking for $ac_func" >&5
  1922. if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
  1923.   echo $ac_n "(cached) $ac_c" 1>&6
  1924. else
  1925.   cat > conftest.$ac_ext <<EOF
  1926. #line 5081 "configure"
  1927. #include "confdefs.h"
  1928. /* System header to define __stub macros and hopefully few prototypes,
  1929.     which can conflict with char $ac_func(); below.  */
  1930. #include <assert.h>
  1931. /* Override any gcc2 internal prototype to avoid an error.  */
  1932. /* We use char because int might match the return type of a gcc2
  1933.     builtin and then its argument prototype would still apply.  */
  1934. char $ac_func();
  1935. int main() {
  1936. /* The GNU C library defines this for functions which it implements
  1937.     to always fail with ENOSYS.  Some functions are actually named
  1938.     something starting with __ and the normal name is an alias.  */
  1939. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1940. choke me
  1941. #else
  1942. $ac_func();
  1943. #endif
  1944. ; return 0; }
  1945. EOF
  1946. if { (eval echo configure:5104: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1947.   rm -rf conftest*
  1948.   eval "ac_cv_func_$ac_func=yes"
  1949. else
  1950.   echo "configure: failed program was:" >&5
  1951.   cat conftest.$ac_ext >&5
  1952.   rm -rf conftest*
  1953.   eval "ac_cv_func_$ac_func=no"
  1954. fi
  1955. rm -f conftest*
  1956. fi
  1957. if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
  1958.   echo "$ac_t""yes" 1>&6
  1959.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1960.   cat >> confdefs.h <<EOF
  1961. #define $ac_tr_func 1
  1962. EOF
  1963.  
  1964. else
  1965.   echo "$ac_t""no" 1>&6
  1966. shmget_ok=no
  1967. fi
  1968. done
  1969. ;;
  1970. esac
  1971. if test "$mmap_ok" = no -a "$shmget_ok" = no; then
  1972. echo "configure: warning: Neither mmap/munmap(2) or shmget(2) library functions." 1>&2
  1973. fi
  1974. # Extract the first word of "ar", so it can be a program name with args.
  1975. set dummy ar; ac_word=$2
  1976. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1977. echo "configure:5140: checking for $ac_word" >&5
  1978. if eval "test "`echo '$''{'ac_cv_path_db_cv_path_ar'+set}'`" = set"; then
  1979.   echo $ac_n "(cached) $ac_c" 1>&6
  1980. else
  1981.   case "$db_cv_path_ar" in
  1982.   /*)
  1983.   ac_cv_path_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test with a path.
  1984.   ;;
  1985.   ?:/*)  
  1986.   ac_cv_path_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test with a dos path.
  1987.   ;;
  1988.   *)
  1989.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  1990.   ac_dummy="$PATH"
  1991.   for ac_dir in $ac_dummy; do 
  1992.     test -z "$ac_dir" && ac_dir=.
  1993.     if test -f $ac_dir/$ac_word; then
  1994.       ac_cv_path_db_cv_path_ar="$ac_dir/$ac_word"
  1995.       break
  1996.     fi
  1997.   done
  1998.   IFS="$ac_save_ifs"
  1999.   test -z "$ac_cv_path_db_cv_path_ar" && ac_cv_path_db_cv_path_ar="missing_ar"
  2000.   ;;
  2001. esac
  2002. fi
  2003. db_cv_path_ar="$ac_cv_path_db_cv_path_ar"
  2004. if test -n "$db_cv_path_ar"; then
  2005.   echo "$ac_t""$db_cv_path_ar" 1>&6
  2006. else
  2007.   echo "$ac_t""no" 1>&6
  2008. fi
  2009. if test "$db_cv_path_ar" = missing_ar; then
  2010. { echo "configure: error: No ar utility found." 1>&2; exit 1; }
  2011. fi
  2012. # Extract the first word of "chmod", so it can be a program name with args.
  2013. set dummy chmod; ac_word=$2
  2014. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2015. echo "configure:5179: checking for $ac_word" >&5
  2016. if eval "test "`echo '$''{'ac_cv_path_db_cv_path_chmod'+set}'`" = set"; then
  2017.   echo $ac_n "(cached) $ac_c" 1>&6
  2018. else
  2019.   case "$db_cv_path_chmod" in
  2020.   /*)
  2021.   ac_cv_path_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test with a path.
  2022.   ;;
  2023.   ?:/*)  
  2024.   ac_cv_path_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test with a dos path.
  2025.   ;;
  2026.   *)
  2027.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  2028.   ac_dummy="$PATH"
  2029.   for ac_dir in $ac_dummy; do 
  2030.     test -z "$ac_dir" && ac_dir=.
  2031.     if test -f $ac_dir/$ac_word; then
  2032.       ac_cv_path_db_cv_path_chmod="$ac_dir/$ac_word"
  2033.       break
  2034.     fi
  2035.   done
  2036.   IFS="$ac_save_ifs"
  2037.   test -z "$ac_cv_path_db_cv_path_chmod" && ac_cv_path_db_cv_path_chmod="missing_chmod"
  2038.   ;;
  2039. esac
  2040. fi
  2041. db_cv_path_chmod="$ac_cv_path_db_cv_path_chmod"
  2042. if test -n "$db_cv_path_chmod"; then
  2043.   echo "$ac_t""$db_cv_path_chmod" 1>&6
  2044. else
  2045.   echo "$ac_t""no" 1>&6
  2046. fi
  2047. if test "$db_cv_path_chmod" = missing_chmod; then
  2048. { echo "configure: error: No chmod utility found." 1>&2; exit 1; }
  2049. fi
  2050. # Extract the first word of "cp", so it can be a program name with args.
  2051. set dummy cp; ac_word=$2
  2052. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2053. echo "configure:5218: checking for $ac_word" >&5
  2054. if eval "test "`echo '$''{'ac_cv_path_db_cv_path_cp'+set}'`" = set"; then
  2055.   echo $ac_n "(cached) $ac_c" 1>&6
  2056. else
  2057.   case "$db_cv_path_cp" in
  2058.   /*)
  2059.   ac_cv_path_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test with a path.
  2060.   ;;
  2061.   ?:/*)  
  2062.   ac_cv_path_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test with a dos path.
  2063.   ;;
  2064.   *)
  2065.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  2066.   ac_dummy="$PATH"
  2067.   for ac_dir in $ac_dummy; do 
  2068.     test -z "$ac_dir" && ac_dir=.
  2069.     if test -f $ac_dir/$ac_word; then
  2070.       ac_cv_path_db_cv_path_cp="$ac_dir/$ac_word"
  2071.       break
  2072.     fi
  2073.   done
  2074.   IFS="$ac_save_ifs"
  2075.   test -z "$ac_cv_path_db_cv_path_cp" && ac_cv_path_db_cv_path_cp="missing_cp"
  2076.   ;;
  2077. esac
  2078. fi
  2079. db_cv_path_cp="$ac_cv_path_db_cv_path_cp"
  2080. if test -n "$db_cv_path_cp"; then
  2081.   echo "$ac_t""$db_cv_path_cp" 1>&6
  2082. else
  2083.   echo "$ac_t""no" 1>&6
  2084. fi
  2085. if test "$db_cv_path_cp" = missing_cp; then
  2086. { echo "configure: error: No cp utility found." 1>&2; exit 1; }
  2087. fi
  2088. # Extract the first word of "ln", so it can be a program name with args.
  2089. set dummy ln; ac_word=$2
  2090. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2091. echo "configure:5257: checking for $ac_word" >&5
  2092. if eval "test "`echo '$''{'ac_cv_path_db_cv_path_ln'+set}'`" = set"; then
  2093.   echo $ac_n "(cached) $ac_c" 1>&6
  2094. else
  2095.   case "$db_cv_path_ln" in
  2096.   /*)
  2097.   ac_cv_path_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test with a path.
  2098.   ;;
  2099.   ?:/*)  
  2100.   ac_cv_path_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test with a dos path.
  2101.   ;;
  2102.   *)
  2103.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  2104.   ac_dummy="$PATH"
  2105.   for ac_dir in $ac_dummy; do 
  2106.     test -z "$ac_dir" && ac_dir=.
  2107.     if test -f $ac_dir/$ac_word; then
  2108.       ac_cv_path_db_cv_path_ln="$ac_dir/$ac_word"
  2109.       break
  2110.     fi
  2111.   done
  2112.   IFS="$ac_save_ifs"
  2113.   test -z "$ac_cv_path_db_cv_path_ln" && ac_cv_path_db_cv_path_ln="missing_ln"
  2114.   ;;
  2115. esac
  2116. fi
  2117. db_cv_path_ln="$ac_cv_path_db_cv_path_ln"
  2118. if test -n "$db_cv_path_ln"; then
  2119.   echo "$ac_t""$db_cv_path_ln" 1>&6
  2120. else
  2121.   echo "$ac_t""no" 1>&6
  2122. fi
  2123. if test "$db_cv_path_ln" = missing_ln; then
  2124. { echo "configure: error: No ln utility found." 1>&2; exit 1; }
  2125. fi
  2126. # Extract the first word of "mkdir", so it can be a program name with args.
  2127. set dummy mkdir; ac_word=$2
  2128. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2129. echo "configure:5296: checking for $ac_word" >&5
  2130. if eval "test "`echo '$''{'ac_cv_path_db_cv_path_mkdir'+set}'`" = set"; then
  2131.   echo $ac_n "(cached) $ac_c" 1>&6
  2132. else
  2133.   case "$db_cv_path_mkdir" in
  2134.   /*)
  2135.   ac_cv_path_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test with a path.
  2136.   ;;
  2137.   ?:/*)  
  2138.   ac_cv_path_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test with a dos path.
  2139.   ;;
  2140.   *)
  2141.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  2142.   ac_dummy="$PATH"
  2143.   for ac_dir in $ac_dummy; do 
  2144.     test -z "$ac_dir" && ac_dir=.
  2145.     if test -f $ac_dir/$ac_word; then
  2146.       ac_cv_path_db_cv_path_mkdir="$ac_dir/$ac_word"
  2147.       break
  2148.     fi
  2149.   done
  2150.   IFS="$ac_save_ifs"
  2151.   test -z "$ac_cv_path_db_cv_path_mkdir" && ac_cv_path_db_cv_path_mkdir="missing_mkdir"
  2152.   ;;
  2153. esac
  2154. fi
  2155. db_cv_path_mkdir="$ac_cv_path_db_cv_path_mkdir"
  2156. if test -n "$db_cv_path_mkdir"; then
  2157.   echo "$ac_t""$db_cv_path_mkdir" 1>&6
  2158. else
  2159.   echo "$ac_t""no" 1>&6
  2160. fi
  2161. if test "$db_cv_path_mkdir" = missing_mkdir; then
  2162. { echo "configure: error: No mkdir utility found." 1>&2; exit 1; }
  2163. fi
  2164. # Extract the first word of "ranlib", so it can be a program name with args.
  2165. set dummy ranlib; ac_word=$2
  2166. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2167. echo "configure:5335: checking for $ac_word" >&5
  2168. if eval "test "`echo '$''{'ac_cv_path_db_cv_path_ranlib'+set}'`" = set"; then
  2169.   echo $ac_n "(cached) $ac_c" 1>&6
  2170. else
  2171.   case "$db_cv_path_ranlib" in
  2172.   /*)
  2173.   ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a path.
  2174.   ;;
  2175.   ?:/*)  
  2176.   ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a dos path.
  2177.   ;;
  2178.   *)
  2179.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  2180.   ac_dummy="$PATH"
  2181.   for ac_dir in $ac_dummy; do 
  2182.     test -z "$ac_dir" && ac_dir=.
  2183.     if test -f $ac_dir/$ac_word; then
  2184.       ac_cv_path_db_cv_path_ranlib="$ac_dir/$ac_word"
  2185.       break
  2186.     fi
  2187.   done
  2188.   IFS="$ac_save_ifs"
  2189.   test -z "$ac_cv_path_db_cv_path_ranlib" && ac_cv_path_db_cv_path_ranlib="missing_ranlib"
  2190.   ;;
  2191. esac
  2192. fi
  2193. db_cv_path_ranlib="$ac_cv_path_db_cv_path_ranlib"
  2194. if test -n "$db_cv_path_ranlib"; then
  2195.   echo "$ac_t""$db_cv_path_ranlib" 1>&6
  2196. else
  2197.   echo "$ac_t""no" 1>&6
  2198. fi
  2199. # Extract the first word of "rm", so it can be a program name with args.
  2200. set dummy rm; ac_word=$2
  2201. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2202. echo "configure:5371: checking for $ac_word" >&5
  2203. if eval "test "`echo '$''{'ac_cv_path_db_cv_path_rm'+set}'`" = set"; then
  2204.   echo $ac_n "(cached) $ac_c" 1>&6
  2205. else
  2206.   case "$db_cv_path_rm" in
  2207.   /*)
  2208.   ac_cv_path_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test with a path.
  2209.   ;;
  2210.   ?:/*)  
  2211.   ac_cv_path_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test with a dos path.
  2212.   ;;
  2213.   *)
  2214.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  2215.   ac_dummy="$PATH"
  2216.   for ac_dir in $ac_dummy; do 
  2217.     test -z "$ac_dir" && ac_dir=.
  2218.     if test -f $ac_dir/$ac_word; then
  2219.       ac_cv_path_db_cv_path_rm="$ac_dir/$ac_word"
  2220.       break
  2221.     fi
  2222.   done
  2223.   IFS="$ac_save_ifs"
  2224.   test -z "$ac_cv_path_db_cv_path_rm" && ac_cv_path_db_cv_path_rm="missing_rm"
  2225.   ;;
  2226. esac
  2227. fi
  2228. db_cv_path_rm="$ac_cv_path_db_cv_path_rm"
  2229. if test -n "$db_cv_path_rm"; then
  2230.   echo "$ac_t""$db_cv_path_rm" 1>&6
  2231. else
  2232.   echo "$ac_t""no" 1>&6
  2233. fi
  2234. if test "$db_cv_path_rm" = missing_rm; then
  2235. { echo "configure: error: No rm utility found." 1>&2; exit 1; }
  2236. fi
  2237. # Extract the first word of "sh", so it can be a program name with args.
  2238. set dummy sh; ac_word=$2
  2239. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2240. echo "configure:5410: checking for $ac_word" >&5
  2241. if eval "test "`echo '$''{'ac_cv_path_db_cv_path_sh'+set}'`" = set"; then
  2242.   echo $ac_n "(cached) $ac_c" 1>&6
  2243. else
  2244.   case "$db_cv_path_sh" in
  2245.   /*)
  2246.   ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path.
  2247.   ;;
  2248.   ?:/*)  
  2249.   ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a dos path.
  2250.   ;;
  2251.   *)
  2252.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  2253.   ac_dummy="$PATH"
  2254.   for ac_dir in $ac_dummy; do 
  2255.     test -z "$ac_dir" && ac_dir=.
  2256.     if test -f $ac_dir/$ac_word; then
  2257.       ac_cv_path_db_cv_path_sh="$ac_dir/$ac_word"
  2258.       break
  2259.     fi
  2260.   done
  2261.   IFS="$ac_save_ifs"
  2262.   test -z "$ac_cv_path_db_cv_path_sh" && ac_cv_path_db_cv_path_sh="missing_sh"
  2263.   ;;
  2264. esac
  2265. fi
  2266. db_cv_path_sh="$ac_cv_path_db_cv_path_sh"
  2267. if test -n "$db_cv_path_sh"; then
  2268.   echo "$ac_t""$db_cv_path_sh" 1>&6
  2269. else
  2270.   echo "$ac_t""no" 1>&6
  2271. fi
  2272. if test "$db_cv_path_sh" = missing_sh; then
  2273. { echo "configure: error: No sh utility found." 1>&2; exit 1; }
  2274. fi
  2275. # Extract the first word of "strip", so it can be a program name with args.
  2276. set dummy strip; ac_word=$2
  2277. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2278. echo "configure:5449: checking for $ac_word" >&5
  2279. if eval "test "`echo '$''{'ac_cv_path_db_cv_path_strip'+set}'`" = set"; then
  2280.   echo $ac_n "(cached) $ac_c" 1>&6
  2281. else
  2282.   case "$db_cv_path_strip" in
  2283.   /*)
  2284.   ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a path.
  2285.   ;;
  2286.   ?:/*)  
  2287.   ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a dos path.
  2288.   ;;
  2289.   *)
  2290.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  2291.   ac_dummy="$PATH"
  2292.   for ac_dir in $ac_dummy; do 
  2293.     test -z "$ac_dir" && ac_dir=.
  2294.     if test -f $ac_dir/$ac_word; then
  2295.       ac_cv_path_db_cv_path_strip="$ac_dir/$ac_word"
  2296.       break
  2297.     fi
  2298.   done
  2299.   IFS="$ac_save_ifs"
  2300.   test -z "$ac_cv_path_db_cv_path_strip" && ac_cv_path_db_cv_path_strip="missing_strip"
  2301.   ;;
  2302. esac
  2303. fi
  2304. db_cv_path_strip="$ac_cv_path_db_cv_path_strip"
  2305. if test -n "$db_cv_path_strip"; then
  2306.   echo "$ac_t""$db_cv_path_strip" 1>&6
  2307. else
  2308.   echo "$ac_t""no" 1>&6
  2309. fi
  2310. if test "$db_cv_path_strip" = missing_strip; then
  2311. { echo "configure: error: No strip utility found." 1>&2; exit 1; }
  2312. fi
  2313. if test "$db_cv_test" = "yes"; then
  2314. # Extract the first word of "kill", so it can be a program name with args.
  2315. set dummy kill; ac_word=$2
  2316. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2317. echo "configure:5490: checking for $ac_word" >&5
  2318. if eval "test "`echo '$''{'ac_cv_path_db_cv_path_kill'+set}'`" = set"; then
  2319.   echo $ac_n "(cached) $ac_c" 1>&6
  2320. else
  2321.   case "$db_cv_path_kill" in
  2322.   /*)
  2323.   ac_cv_path_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test with a path.
  2324.   ;;
  2325.   ?:/*)  
  2326.   ac_cv_path_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test with a dos path.
  2327.   ;;
  2328.   *)
  2329.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
  2330.   ac_dummy="$PATH"
  2331.   for ac_dir in $ac_dummy; do 
  2332.     test -z "$ac_dir" && ac_dir=.
  2333.     if test -f $ac_dir/$ac_word; then
  2334.       ac_cv_path_db_cv_path_kill="$ac_dir/$ac_word"
  2335.       break
  2336.     fi
  2337.   done
  2338.   IFS="$ac_save_ifs"
  2339.   test -z "$ac_cv_path_db_cv_path_kill" && ac_cv_path_db_cv_path_kill="missing_kill"
  2340.   ;;
  2341. esac
  2342. fi
  2343. db_cv_path_kill="$ac_cv_path_db_cv_path_kill"
  2344. if test -n "$db_cv_path_kill"; then
  2345.   echo "$ac_t""$db_cv_path_kill" 1>&6
  2346. else
  2347.   echo "$ac_t""no" 1>&6
  2348. fi
  2349. if test "$db_cv_path_kill" = missing_kill; then
  2350. { echo "configure: error: No kill utility found." 1>&2; exit 1; }
  2351. fi
  2352. fi
  2353. CREATE_LIST="Makefile
  2354.     include.tcl:../test/include.tcl
  2355.     db.h:../include/db.src
  2356.     db_int.h:../include/db_int.src"
  2357. if test "$db_cv_compat185" = "yes"; then
  2358. CREATE_LIST="${CREATE_LIST} db_185.h:../include/db_185.h"
  2359. fi
  2360. trap '' 1 2 15
  2361. cat > confcache <<EOF
  2362. # This file is a shell script that caches the results of configure
  2363. # tests run on this system so they can be shared between configure
  2364. # scripts and configure runs.  It is not useful on other systems.
  2365. # If it contains results you don't want to keep, you may remove or edit it.
  2366. #
  2367. # By default, configure uses ./config.cache as the cache file,
  2368. # creating it if it does not exist already.  You can give configure
  2369. # the --cache-file=FILE option to use a different cache file; that is
  2370. # what configure does when it calls configure scripts in
  2371. # subdirectories, so they share the cache.
  2372. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2373. # config.status only pays attention to the cache file if you give it the
  2374. # --recheck option to rerun configure.
  2375. #
  2376. EOF
  2377. # The following way of writing the cache mishandles newlines in values,
  2378. # but we know of no workaround that is simple, portable, and efficient.
  2379. # So, don't put newlines in cache variables' values.
  2380. # Ultrix sh set writes to stderr and can't be redirected directly,
  2381. # and sets the high bit in the cache file unless we assign to the vars.
  2382. (set) 2>&1 |
  2383.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2384.   *ac_space= *)
  2385.     # `set' does not quote correctly, so add quotes (double-quote substitution
  2386.     # turns \\ into \, and sed turns \ into ).
  2387.     sed -n 
  2388.       -e "s/'/'\\''/g" 
  2389.       -e "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1='\2'}/p"
  2390.     ;;
  2391.   *)
  2392.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2393.     sed -n -e 's/^([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*)=(.*)/1=${1=2}/p'
  2394.     ;;
  2395.   esac >> confcache
  2396. if cmp -s $cache_file confcache; then
  2397.   :
  2398. else
  2399.   if test -w $cache_file; then
  2400.     echo "updating cache $cache_file"
  2401.     cat confcache > $cache_file
  2402.   else
  2403.     echo "not updating unwritable cache $cache_file"
  2404.   fi
  2405. fi
  2406. rm -f confcache
  2407. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2408. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2409. # Let make expand exec_prefix.
  2410. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2411. # Any assignment to VPATH causes Sun make to only execute
  2412. # the first set of double-colon rules, so remove it if not needed.
  2413. # If there is a colon in the path, we need to keep it.
  2414. if test "x$srcdir" = x.; then
  2415.   ac_vpsub='/^[  ]*VPATH[  ]*=[^:]*$/d'
  2416. fi
  2417. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2418. DEFS=-DHAVE_CONFIG_H
  2419. # Without the "./", some shells look in PATH for config.status.
  2420. : ${CONFIG_STATUS=./config.status}
  2421. echo creating $CONFIG_STATUS
  2422. rm -f $CONFIG_STATUS
  2423. cat > $CONFIG_STATUS <<EOF
  2424. #! /bin/sh
  2425. # Generated automatically by configure.
  2426. # Run this file to recreate the current configuration.
  2427. # This directory was configured as follows,
  2428. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2429. #
  2430. # $0 $ac_configure_args
  2431. #
  2432. # Compiler output produced by configure, useful for debugging
  2433. # configure, is in ./config.log if it exists.
  2434. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2435. for ac_option
  2436. do
  2437.   case "$ac_option" in
  2438.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2439.     echo "running ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2440.     exec ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2441.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2442.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  2443.     exit 0 ;;
  2444.   -help | --help | --hel | --he | --h)
  2445.     echo "$ac_cs_usage"; exit 0 ;;
  2446.   *) echo "$ac_cs_usage"; exit 1 ;;
  2447.   esac
  2448. done
  2449. ac_given_srcdir=$srcdir
  2450. ac_given_INSTALL="$INSTALL"
  2451. trap 'rm -fr `echo "${CREATE_LIST} db_config.h:config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2452. EOF
  2453. cat >> $CONFIG_STATUS <<EOF
  2454. # Protect against being on the right side of a sed subst in config.status.
  2455. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
  2456.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  2457. $ac_vpsub
  2458. $extrasub
  2459. s%@SHELL@%$SHELL%g
  2460. s%@CFLAGS@%$CFLAGS%g
  2461. s%@CPPFLAGS@%$CPPFLAGS%g
  2462. s%@CXXFLAGS@%$CXXFLAGS%g
  2463. s%@FFLAGS@%$FFLAGS%g
  2464. s%@DEFS@%$DEFS%g
  2465. s%@LDFLAGS@%$LDFLAGS%g
  2466. s%@LIBS@%$LIBS%g
  2467. s%@exec_prefix@%$exec_prefix%g
  2468. s%@prefix@%$prefix%g
  2469. s%@program_transform_name@%$program_transform_name%g
  2470. s%@bindir@%$bindir%g
  2471. s%@sbindir@%$sbindir%g
  2472. s%@libexecdir@%$libexecdir%g
  2473. s%@datadir@%$datadir%g
  2474. s%@sysconfdir@%$sysconfdir%g
  2475. s%@sharedstatedir@%$sharedstatedir%g
  2476. s%@localstatedir@%$localstatedir%g
  2477. s%@libdir@%$libdir%g
  2478. s%@includedir@%$includedir%g
  2479. s%@oldincludedir@%$oldincludedir%g
  2480. s%@infodir@%$infodir%g
  2481. s%@mandir@%$mandir%g
  2482. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2483. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  2484. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2485. s%@host@%$host%g
  2486. s%@host_alias@%$host_alias%g
  2487. s%@host_cpu@%$host_cpu%g
  2488. s%@host_vendor@%$host_vendor%g
  2489. s%@host_os@%$host_os%g
  2490. s%@ADDITIONAL_INCS@%$ADDITIONAL_INCS%g
  2491. s%@ADDITIONAL_LANG@%$ADDITIONAL_LANG%g
  2492. s%@ADDITIONAL_LIBS@%$ADDITIONAL_LIBS%g
  2493. s%@ADDITIONAL_OBJS@%$ADDITIONAL_OBJS%g
  2494. s%@ADDITIONAL_PROGS@%$ADDITIONAL_PROGS%g
  2495. s%@CXX@%$CXX%g
  2496. s%@DBS_LIBS@%$DBS_LIBS%g
  2497. s%@DEFAULT_INSTALL@%$DEFAULT_INSTALL%g
  2498. s%@DEFAULT_LIB@%$DEFAULT_LIB%g
  2499. s%@INSTALLER@%$INSTALLER%g
  2500. s%@INSTALL_LIBS@%$INSTALL_LIBS%g
  2501. s%@JAR@%$JAR%g
  2502. s%@JAVAC@%$JAVAC%g
  2503. s%@JAVACFLAGS@%$JAVACFLAGS%g
  2504. s%@LIBDB_ARGS@%$LIBDB_ARGS%g
  2505. s%@LIBJSO_LIBS@%$LIBJSO_LIBS%g
  2506. s%@LIBSO_LIBS@%$LIBSO_LIBS%g
  2507. s%@LIBTOOL@%$LIBTOOL%g
  2508. s%@LIBTSO_LIBS@%$LIBTSO_LIBS%g
  2509. s%@LIBXSO_LIBS@%$LIBXSO_LIBS%g
  2510. s%@MAKEFILE_CC@%$MAKEFILE_CC%g
  2511. s%@MAKEFILE_CCLINK@%$MAKEFILE_CCLINK%g
  2512. s%@MAKEFILE_CXX@%$MAKEFILE_CXX%g
  2513. s%@POSTLINK@%$POSTLINK%g
  2514. s%@RPC_OBJS@%$RPC_OBJS%g
  2515. s%@SOFLAGS@%$SOFLAGS%g
  2516. s%@SOLINK@%$SOLINK%g
  2517. s%@SOSUFFIX@%$SOSUFFIX%g
  2518. s%@o@%$o%g
  2519. s%@DB_VERSION_MAJOR@%$DB_VERSION_MAJOR%g
  2520. s%@DB_VERSION_MINOR@%$DB_VERSION_MINOR%g
  2521. s%@DB_VERSION_PATCH@%$DB_VERSION_PATCH%g
  2522. s%@DB_VERSION_STRING@%$DB_VERSION_STRING%g
  2523. s%@CC@%$CC%g
  2524. s%@CCC@%$CCC%g
  2525. s%@JAVACABS@%$JAVACABS%g
  2526. s%@TCFLAGS@%$TCFLAGS%g
  2527. s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
  2528. s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
  2529. s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
  2530. s%@TCL_TCLSH@%$TCL_TCLSH%g
  2531. s%@CPP@%$CPP%g
  2532. s%@ssize_t_decl@%$ssize_t_decl%g
  2533. s%@u_char_decl@%$u_char_decl%g
  2534. s%@u_short_decl@%$u_short_decl%g
  2535. s%@u_int_decl@%$u_int_decl%g
  2536. s%@u_long_decl@%$u_long_decl%g
  2537. s%@u_int8_decl@%$u_int8_decl%g
  2538. s%@u_int16_decl@%$u_int16_decl%g
  2539. s%@int16_decl@%$int16_decl%g
  2540. s%@u_int32_decl@%$u_int32_decl%g
  2541. s%@int32_decl@%$int32_decl%g
  2542. s%@db_align_t_decl@%$db_align_t_decl%g
  2543. s%@db_alignp_t_decl@%$db_alignp_t_decl%g
  2544. s%@LIBOBJS@%$LIBOBJS%g
  2545. s%@db_cv_path_ar@%$db_cv_path_ar%g
  2546. s%@db_cv_path_chmod@%$db_cv_path_chmod%g
  2547. s%@db_cv_path_cp@%$db_cv_path_cp%g
  2548. s%@db_cv_path_ln@%$db_cv_path_ln%g
  2549. s%@db_cv_path_mkdir@%$db_cv_path_mkdir%g
  2550. s%@db_cv_path_ranlib@%$db_cv_path_ranlib%g
  2551. s%@db_cv_path_rm@%$db_cv_path_rm%g
  2552. s%@db_cv_path_sh@%$db_cv_path_sh%g
  2553. s%@db_cv_path_strip@%$db_cv_path_strip%g
  2554. s%@db_cv_path_kill@%$db_cv_path_kill%g
  2555. CEOF
  2556. EOF
  2557. cat >> $CONFIG_STATUS <<EOF
  2558. # Split the substitutions into bite-sized pieces for seds with
  2559. # small command number limits, like on Digital OSF/1 and HP-UX.
  2560. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2561. ac_file=1 # Number of current file.
  2562. ac_beg=1 # First line for current file.
  2563. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2564. ac_more_lines=:
  2565. ac_sed_cmds=""
  2566. while $ac_more_lines; do
  2567.   if test $ac_beg -gt 1; then
  2568.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2569.   else
  2570.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2571.   fi
  2572.   if test ! -s conftest.s$ac_file; then
  2573.     ac_more_lines=false
  2574.     rm -f conftest.s$ac_file
  2575.   else
  2576.     if test -z "$ac_sed_cmds"; then
  2577.       ac_sed_cmds="sed -f conftest.s$ac_file"
  2578.     else
  2579.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2580.     fi
  2581.     ac_file=`expr $ac_file + 1`
  2582.     ac_beg=$ac_end
  2583.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2584.   fi
  2585. done
  2586. if test -z "$ac_sed_cmds"; then
  2587.   ac_sed_cmds=cat
  2588. fi
  2589. EOF
  2590. cat >> $CONFIG_STATUS <<EOF
  2591. CONFIG_FILES=${CONFIG_FILES-"${CREATE_LIST}"}
  2592. EOF
  2593. cat >> $CONFIG_STATUS <<EOF
  2594. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2595.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2596.   case "$ac_file" in
  2597.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2598.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2599.   *) ac_file_in="${ac_file}.in" ;;
  2600.   esac
  2601.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2602.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2603.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2604.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2605.     # The file is in a subdirectory.
  2606.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2607.     ac_dir_suffix="/`echo $ac_dir|sed 's%^./%%'`"
  2608.     # A "../" for each directory in $ac_dir_suffix.
  2609.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2610.   else
  2611.     ac_dir_suffix= ac_dots=
  2612.   fi
  2613.   case "$ac_given_srcdir" in
  2614.   .)  srcdir=.
  2615.       if test -z "$ac_dots"; then top_srcdir=.
  2616.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2617.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2618.   *) # Relative path.
  2619.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2620.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2621.   esac
  2622.   case "$ac_given_INSTALL" in
  2623.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2624.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2625.   esac
  2626.   echo creating "$ac_file"
  2627.   rm -f "$ac_file"
  2628.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2629.   case "$ac_file" in
  2630.   *Makefile*) ac_comsub="1i\
  2631. # $configure_input" ;;
  2632.   *) ac_comsub= ;;
  2633.   esac
  2634.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2635.   sed -e "$ac_comsub
  2636. s%@configure_input@%$configure_input%g
  2637. s%@srcdir@%$srcdir%g
  2638. s%@top_srcdir@%$top_srcdir%g
  2639. s%@INSTALL@%$INSTALL%g
  2640. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2641. fi; done
  2642. rm -f conftest.s*
  2643. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2644. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2645. #
  2646. # ac_d sets the value in "#define NAME VALUE" lines.
  2647. ac_dA='s%^([  ]*)#([  ]*define[  ][  ]*)'
  2648. ac_dB='([  ][  ]*)[^  ]*%1#2'
  2649. ac_dC='3'
  2650. ac_dD='%g'
  2651. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2652. ac_uA='s%^([  ]*)#([  ]*)undef([  ][  ]*)'
  2653. ac_uB='([  ])%1#2define3'
  2654. ac_uC=' '
  2655. ac_uD='4%g'
  2656. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2657. ac_eA='s%^([  ]*)#([  ]*)undef([  ][  ]*)'
  2658. ac_eB='$%1#2define3'
  2659. ac_eC=' '
  2660. ac_eD='%g'
  2661. if test "${CONFIG_HEADERS+set}" != set; then
  2662. EOF
  2663. cat >> $CONFIG_STATUS <<EOF
  2664.   CONFIG_HEADERS="db_config.h:config.hin"
  2665. EOF
  2666. cat >> $CONFIG_STATUS <<EOF
  2667. fi
  2668. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2669.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2670.   case "$ac_file" in
  2671.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2672.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2673.   *) ac_file_in="${ac_file}.in" ;;
  2674.   esac
  2675.   echo creating $ac_file
  2676.   rm -f conftest.frag conftest.in conftest.out
  2677.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2678.   cat $ac_file_inputs > conftest.in
  2679. EOF
  2680. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2681. # the proper values into config.h.in to produce config.h.  And first:
  2682. # Protect against being on the right side of a sed subst in config.status.
  2683. # Protect against being in an unquoted here document in config.status.
  2684. rm -f conftest.vals
  2685. cat > conftest.hdr <<EOF
  2686. s/[\&%]/\&/g
  2687. s%[\$`]%\&%g
  2688. s%#define ([A-Za-z_][A-Za-z0-9_]*) *(.*)%${ac_dA}1${ac_dB}1${ac_dC}2${ac_dD}%gp
  2689. s%ac_d%ac_u%gp
  2690. s%ac_u%ac_e%gp
  2691. EOF
  2692. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2693. rm -f conftest.hdr
  2694. # This sed command replaces #undef with comments.  This is necessary, for
  2695. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2696. # on some systems where configure will not decide to define it.
  2697. cat >> conftest.vals <<EOF
  2698. s%^[  ]*#[  ]*undef[  ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2699. EOF
  2700. # Break up conftest.vals because some shells have a limit on
  2701. # the size of here documents, and old seds have small limits too.
  2702. rm -f conftest.tail
  2703. while :
  2704. do
  2705.   ac_lines=`grep -c . conftest.vals`
  2706.   # grep -c gives empty output for an empty file on some AIX systems.
  2707.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2708.   # Write a limited-size here document to conftest.frag.
  2709.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2710.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2711.   echo 'CEOF
  2712.   sed -f conftest.frag conftest.in > conftest.out
  2713.   rm -f conftest.in
  2714.   mv conftest.out conftest.in
  2715. ' >> $CONFIG_STATUS
  2716.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2717.   rm -f conftest.vals
  2718.   mv conftest.tail conftest.vals
  2719. done
  2720. rm -f conftest.vals
  2721. cat >> $CONFIG_STATUS <<EOF
  2722.   rm -f conftest.frag conftest.h
  2723.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2724.   cat conftest.in >> conftest.h
  2725.   rm -f conftest.in
  2726.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2727.     echo "$ac_file is unchanged"
  2728.     rm -f conftest.h
  2729.   else
  2730.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2731.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2732.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2733.       # The file is in a subdirectory.
  2734.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2735.     fi
  2736.     rm -f $ac_file
  2737.     mv conftest.h $ac_file
  2738.   fi
  2739. fi; done
  2740. EOF
  2741. cat >> $CONFIG_STATUS <<EOF
  2742. EOF
  2743. cat >> $CONFIG_STATUS <<EOF
  2744. exit 0
  2745. EOF
  2746. chmod +x $CONFIG_STATUS
  2747. rm -fr confdefs* $ac_clean_files
  2748. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1