[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Still problems with zmailer 2.99.35 and autoconf under redhat




Hi,

zmailer 2.99.35 configure still doesn't work with redhat 3.0.3. 
it seems it wants to use -ldbm together with ndbm.h. On my linux
system (and I think on most linux systems) berkeley ndbm ist 
called libdb (not libdbm!).

checking for gdbm.h... yes
checking for ndbm.h... yes
checking for sdbm.h... no
checking for db.h... yes
checking for dbm.h... no
Located  gdbm_open()  routine at gdbm library
configure: error: No <ndbm.h>, but tried to link-test dbm_open() ??

Maybe it should use gdbm when there is some error with ndbm.
I tried to do a patch for it in configure.in but it produces
a configure that doesn't work.. I suspect it is a autoconf
instalation problem here so I included it:

--- configure.in-orig	Fri Aug  9 10:48:38 1996
+++ configure.in	Fri Aug  9 11:12:11 1996
@@ -397,7 +397,16 @@
 	    LIBNDBM="-ldbm"
 	    t_found_at="dbm library"
 	  else
-	    AC_MSG_ERROR([No <ndbm.h>, but tried to link-test dbm_open() ??])
+		LIBS="$t_oldLibs -ldb"
+		AC_TRY_LINK([], [dbm_open();], ac_cv_lib_dbm_dbm_open=yes,
+					       ac_cv_lib_dbm_dbm_open=no)
+		if test "$ac_cv_lib_dbm_dbm_open" = yes; then
+			LIBNDBM="-ldb"
+			t_found_at="db library"
+		else
+	# hmm, a warning would be better..
+	    AC_MSG_ERROR([<ndbm.h> found but no -ldb or -ldbm?])
+		fi
 	  fi
 	  LIBS="$t_oldLibs"
 	else


-Andi

--
|andi@mlm.extern.lrz-muenchen.de     Nonsense is better than no sense at all.
|                                        -NoMeansNo,0-1=2