[evolution-patches] Fixing configure.in on the stable branch so Evolution will compile



I submitted this to bugzilla as
   http://bugzilla.ximian.com/show_bug.cgi?id=48967
where Gerardo Marin requested that I post my patch to this list.

CVS HEAD seems to compile fine for me, but the evolution-1-4-branch
wouldn't compile on my laptop (which is running Red Hat 9 + Gnome from
CVS).  I had to make a small change to configure.in in order to allow
the configure tests to complete successfully.  Upon doing so, I was able
to get evolution to build and run succesfully.  Here is the patch:

Index: configure.in
===================================================================
RCS file: /cvs/gnome/evolution/configure.in,v
retrieving revision 1.591.2.7
diff -u -r1.591.2.7 configure.in
--- configure.in	20 Sep 2003 14:33:50 -0000	1.591.2.7
+++ configure.in	26 Sep 2003 22:34:30 -0000
@@ -358,7 +358,7 @@
 	ac_cv_db3_ldadd=""
 
 	for name in db db3 db-3.1; do
-		LIBS="$LIBS_save $with_db3_libs/lib${name}.a"
+		LIBS="$LIBS_save $with_db3_libs/lib${name}.a -lpthread"
 		AC_TRY_LINK([
 			#ifdef HAVE_DB3_DB_H
 			#include <db3/db.h>
@@ -384,7 +384,7 @@
 
 AC_CACHE_CHECK([that db3 library version matches header version], ac_cv_db3_lib_version_match,
 [
-	LIBS="$DB3_LDADD $LIBS"
+	LIBS="$DB3_LDADD $LIBS -lpthread"
 	AC_TRY_RUN([
 		#ifdef HAVE_DB3_DB_H
 		#include <db3/db.h>

I'm a newbie to Gnome programming, so it's entirely possible that I
simply found an ugly workaround, but hopefully the patch is enough for
someone to know how to correct the problem.

Elijah



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