summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMaximilian Szengel <gnunet@maxsz.de>2012-10-24 21:32:21 +0000
committerMaximilian Szengel <gnunet@maxsz.de>2012-10-24 21:32:21 +0000
commita50d02eb13b2e9885aa8451fe11eeab9ac2126a6 (patch)
treedcd410bd5a0fe4fe9e04f42c0f6d7e3db0111ec1 /configure.ac
parente58e6a7ff78981fb4d592587a30e0a94b873a912 (diff)
libmysqlclient linking for /usr/lib64 (fedora 17)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 3caaf253a..0e5fbb75e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -598,10 +598,15 @@ AC_ARG_WITH(mysql,
fi
],
[AC_MSG_RESULT([--with-mysql not specified])
- LDFLAGS="-L/usr/lib/mysql $LDFLAGS $ZLIBS"
+ if test -d "/usr/lib64/mysql"; then
+ MYSQL_LIBDIR="/usr/lib64/mysql"
+ elif test -d "/usr/lib/mysql"; then
+ MYSQL_LIBDIR="/usr/lib/mysql"
+ fi
+ LDFLAGS="-L$MYSQL_LIBDIR $LDFLAGS $ZLIBS"
AC_CHECK_LIB(mysqlclient, mysql_init,
[AC_CHECK_HEADERS(mysql/mysql.h,
- MYSQL_LDFLAGS="-L/usr/lib/mysql"
+ MYSQL_LDFLAGS="-L$MYSQL_LIBDIR"
mysql=true
, [], [$CYGWIN_MYSQL_MAGIC])])