Lines 1-78
Link Here
|
1 |
--- configure.orig Tue May 17 18:14:29 2005 |
1 |
--- configure 2009-06-06 15:26:10.000000000 -0700 |
2 |
+++ configure Sun Oct 8 14:47:02 2006 |
2 |
+++ configure.orig 2009-03-29 00:24:33.000000000 -0700 |
3 |
@@ -15057,7 +15057,7 @@ if test "x$bdb_required" = "xyes"; then |
3 |
@@ -30193,7 +30193,7 @@ |
4 |
trybdbdir="" |
4 |
trybdbdir="" |
5 |
dobdbsearch=yes |
5 |
dobdbsearch=yes |
6 |
bdb_search_dirs="/usr/local/include /usr/include" |
6 |
bdb_search_dirs="/usr/local /usr" |
7 |
- search_subdirs="/db4.2 /db42 /db4.1 /db41 /db4 /" |
7 |
- search_subdirs="/ /db4.7 /db47 /db4.6 /db46 /db4.5 /db45 /db4.4 /db44 /db4.3 /db43 /db4.2 /db42 /db4.1 /db41 /db4" |
8 |
+ search_subdirs="/%%DB_NAME%% /db4.2 /db42 /db4.1 /db41 /db4 /" |
8 |
+ search_subdirs="/%%DB_NAME%% / /db4.7 /db47 /db4.6 /db46 /db4.5 /db45 /db4.4 /db44 /db4.3 /db43 /db4.2 /db42 /db4.1 /db41 /db4" |
9 |
|
9 |
|
10 |
DB_MAJOR_REQ=4 |
10 |
DB_MAJOR_REQ=4 |
11 |
DB_MINOR_REQ=1 |
11 |
DB_MINOR_REQ=1 |
12 |
@@ -15198,6 +15198,66 @@ echo "${ECHO_T}yes" >&6 |
12 |
@@ -30286,7 +30286,7 @@ |
13 |
LDFLAGS="-L$bdblibdir $LDFLAGS" |
13 |
atalk_cv_bdb_version=no |
|
|
14 |
maj=$atalk_cv_bdb_MAJOR |
15 |
min=$atalk_cv_bdb_MINOR |
16 |
- atalk_cv_bdb_try_libs="-ldb$maj$min -ldb$maj.$min -ldb-$maj$min -ldb-$maj.$min" |
17 |
+ atalk_cv_bdb_try_libs="%%DB_LIB%% -ldb$maj$min -ldb$maj.$min -ldb-$maj$min -ldb-$maj.$min" |
14 |
|
18 |
|
15 |
atalk_cv_lib_db=no |
19 |
for lib in $atalk_cv_bdb_try_libs ; do |
16 |
+if test $atalk_cv_lib_db = no ; then |
20 |
LIBS="$lib $savedlibs" |
17 |
+ echo "$as_me:$LINENO: checking for Berkeley DB link (%%DB_LIB%%)" >&5 |
|
|
18 |
+echo $ECHO_N "checking for Berkeley DB link (%%DB_LIB%%)... $ECHO_C" >&6 |
19 |
+ atalk_DB_LIB=%%DB_LIB%% |
20 |
+ atalk_LIBS=$LIBS |
21 |
+ LIBS="$atalk_DB_LIB $LIBS" |
22 |
+ |
23 |
+ cat >conftest.$ac_ext <<_ACEOF |
24 |
+#line $LINENO "configure" |
25 |
+/* confdefs.h. */ |
26 |
+_ACEOF |
27 |
+cat confdefs.h >>conftest.$ac_ext |
28 |
+cat >>conftest.$ac_ext <<_ACEOF |
29 |
+/* end confdefs.h. */ |
30 |
+ |
31 |
+#include <db.h> |
32 |
+ |
33 |
+int |
34 |
+main () |
35 |
+{ |
36 |
+ |
37 |
+ char *version; |
38 |
+ int major, minor, patch; |
39 |
+ |
40 |
+ version = db_version( &major, &minor, &patch ); |
41 |
+ return (0); |
42 |
+ |
43 |
+ ; |
44 |
+ return 0; |
45 |
+} |
46 |
+_ACEOF |
47 |
+rm -f conftest.$ac_objext conftest$ac_exeext |
48 |
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
49 |
+ (eval $ac_link) 2>&5 |
50 |
+ ac_status=$? |
51 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
52 |
+ (exit $ac_status); } && |
53 |
+ { ac_try='test -s conftest$ac_exeext' |
54 |
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
55 |
+ (eval $ac_try) 2>&5 |
56 |
+ ac_status=$? |
57 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
58 |
+ (exit $ac_status); }; }; then |
59 |
+ atalk_cv_db_db_lib=yes |
60 |
+else |
61 |
+ echo "$as_me: failed program was:" >&5 |
62 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
63 |
+ |
64 |
+atalk_cv_db_db_lib=no |
65 |
+fi |
66 |
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
67 |
+ |
68 |
+ echo "$as_me:$LINENO: result: $atalk_cv_db_db_lib" >&5 |
69 |
+echo "${ECHO_T}$atalk_cv_db_db_lib" >&6 |
70 |
+ LIBS="$atalk_LIBS" |
71 |
+ if test $atalk_cv_db_db_lib = yes ; then |
72 |
+ atalk_cv_lib_db=%%DB_LIB%% |
73 |
+ fi |
74 |
+fi |
75 |
+ |
76 |
if test $atalk_cv_lib_db = no ; then |
77 |
echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5 |
78 |
echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6 |