[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

0.3d: configure does not like libdb-3



Hello,

If you want to link heimdal with libdb-3 (with the dash in the name) instead
of the default libdb, then you will need this patch:

Index: cf/db.m4
===================================================================
RCS file: /pkg/maint/cvs/heimdal/cf/db.m4,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- cf/db.m4	2000/09/03 19:54:16	1.1.1.1
+++ cf/db.m4	2000/12/19 01:51:13	1.2
@@ -7,6 +7,8 @@
 [  --without-berkeley-db   if you don't want berkeley db],[
 if test "$withval" = no; then
 	berkeley_db=""
+else
+	berkeley_db="$withval"
 fi
 ])
 if test "$berkeley_db"; then
Index: cf/find-func-no-libs2.m4
===================================================================
RCS file: /pkg/maint/cvs/heimdal/cf/find-func-no-libs2.m4,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- cf/find-func-no-libs2.m4	2000/09/03 19:54:16	1.1.1.1
+++ cf/find-func-no-libs2.m4	2000/12/19 01:51:14	1.2
@@ -51,7 +51,7 @@
 	;;
 	*)
 	eval "ac_cv_func_$1=yes"
-	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
+	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//' | sed 's/-/_/'`=yes"
 	AC_DEFINE_UNQUOTED($ac_tr_func)
 	AC_DEFINE_UNQUOTED($ac_tr_lib)
 	AC_MSG_RESULT([yes, in $ac_res])

Gabor

-- 
Gabor Gombas                                       Eotvos Lorand University
E-mail: gombasg@inf.elte.hu                        Hungary