diff options
author | szengel <szengel@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-10-24 21:32:21 +0000 |
---|---|---|
committer | szengel <szengel@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-10-24 21:32:21 +0000 |
commit | d8ff28a5ec970c88f718b1aab49eb4ee759d4eb6 (patch) | |
tree | dcd410bd5a0fe4fe9e04f42c0f6d7e3db0111ec1 /configure.ac | |
parent | 066a21a5435a24cada558b6737a2067d6e934c21 (diff) |
libmysqlclient linking for /usr/lib64 (fedora 17)
git-svn-id: https://gnunet.org/svn/gnunet@24523 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 3caaf253a2..0e5fbb75e0 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])]) |