diff --exclude='*~' --exclude='.*' -I '$Id:' -urN lighttpd-1.3.13.orig/configure.in lighttpd-1.3.13/configure.in --- lighttpd-1.3.13.orig/configure.in 2005-05-13 04:00:39.000000000 -0400 +++ lighttpd-1.3.13/configure.in 2005-05-13 04:26:00.000000000 -0400 @@ -82,7 +82,7 @@ dnl Checks for database. MYSQL_INCLUDE="" - +USE_MYSQL=no AC_PATH_PROG(MYSQLCONFIG, mysql_config) AC_MSG_CHECKING(for MySQL support) AC_ARG_WITH(mysql, @@ -113,6 +113,7 @@ CPPFLAGS="$old_CPPFLAGS" AC_DEFINE([HAVE_MYSQL], [1], [mysql support]) + USE_MYSQL=yes else AC_MSG_RESULT(no) fi @@ -120,7 +121,7 @@ AC_SUBST(MYSQL_LIBS) AC_SUBST(MYSQL_INCLUDE) - +AM_CONDITIONAL(USE_MYSQL, test x$USE_MYSQL = xyes) AC_MSG_CHECKING(for LDAP support) AC_ARG_WITH(ldap, AC_HELP_STRING([--with-ldap],[enable LDAP support]), diff --exclude='*~' --exclude='.*' -I '$Id:' -urN lighttpd-1.3.13.orig/src/Makefile.am lighttpd-1.3.13/src/Makefile.am --- lighttpd-1.3.13.orig/src/Makefile.am 2005-05-13 04:00:39.000000000 -0400 +++ lighttpd-1.3.13/src/Makefile.am 2005-05-13 04:25:29.000000000 -0400 @@ -68,10 +68,12 @@ common_libadd = endif +if USE_MYSQL lib_LTLIBRARIES += mod_mysql_vhost.la mod_mysql_vhost_la_SOURCES = mod_mysql_vhost.c mod_mysql_vhost_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined mod_mysql_vhost_la_LIBADD = $(MYSQL_LIBS) $(common_libadd) +endif lib_LTLIBRARIES += mod_cgi.la mod_cgi_la_SOURCES = mod_cgi.c