]> git.tue.mpg.de Git - paraslash.git/commitdiff
configure.ac: Fix mysql configuration
authorAndre <maan@p133.(none)>
Wed, 10 May 2006 23:03:48 +0000 (01:03 +0200)
committerAndre <maan@p133.(none)>
Wed, 10 May 2006 23:03:48 +0000 (01:03 +0200)
The --enable_mysql_libs option had two cut-and-paste bugs.

configure.ac

index b404da7fd5f0f817001a26e7fb47c7e9029b1c23..a28d4114486c0cc476e77a165929bdeb57ea581a 100644 (file)
@@ -170,7 +170,7 @@ if test -n "$enable_mysql_headers"; then
 fi
 AC_ARG_ENABLE(mysql_libs, [AC_HELP_STRING(--enable-mysql-libs=dir,
        [look for libmysqlclient also in dir])])
-if test -n "$enable_mysql_headers"; then
+if test -n "$enable_mysql_libs"; then
        mysql_libs="-L$enable_mysql_libs"
        LDFLAGS="$LDFLAGS $mysql_libs"
 fi
@@ -184,6 +184,7 @@ if test "$have_mysql" = "yes"; then
        server_ldflags="$server_ldflags $mysql_libs -lmysqlclient"
        server_errlist_objs="$server_errlist_objs mysql_selector"
        AC_SUBST(mysql_cppflags)
+       AC_SUBST(mysql_libs)
        AC_DEFINE(HAVE_MYSQL, 1, [define to 1 to turn on mysql support])
 else
        AC_MSG_WARN([cannot build mysql-based audio file selector])