[Resending.  Sorry if you receive a duplicate.]

While building courier-authlib-0.65.0:

$ ./configure --with-authmysql --without-authsqlite
[...]
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_connect... no
checking for mysql_real_connect... yes
checking for sqlite3_version... no
configure: error: Cannot link with 

Looking at the configure.in, line 638 looks suspicious.  But then we
include errmsg.h and mysql.h unconditionally in authsqlite module.  The
attached naive patch seems to work.  Thoughts?  Thanks.

-- 
Eray Aslan
--- configure.in	2012-10-17 08:50:00.387963153 +0000
+++ configure.in	2012-10-17 08:50:21.121706830 +0000
@@ -635,7 +635,7 @@
 	LIBS="$saveLIBS"
 fi
 
-if test "$doauthmysql" != "yes"
+if test "$doauthsqlite" != "yes"
 then
 	SQLITE_LIBS=""
 	SQLITE_CFLAGS=""
--- authsqlite.h	2012-10-03 19:54:10.000000000 +0300
+++ authsqlite.h	2013-03-01 12:03:16.834315060 +0200
@@ -6,7 +6,9 @@
 #include	<string.h>
 #include	<sys/types.h>
 #include	<sqlite3.h>
+/*
 #include	<errmsg.h>
+*/
 
 struct authsqliteuserinfo {
 	char *username;
--- authsqlitelib.c	2012-10-04 05:48:21.000000000 +0300
+++ authsqlitelib.c	2013-03-01 12:03:00.801437111 +0200
@@ -10,7 +10,9 @@
 #include	<ctype.h>
 #include	<sys/types.h>
 #include	<sys/stat.h>
+/*
 #include	<mysql.h>
+*/
 #include	<time.h>
 
 #include	"authsqlite.h"
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to