Skip to content

Commit

Permalink
Rebuild configure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed May 5, 2013
1 parent 0623001 commit 54fa809
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions configure
Expand Up @@ -24282,22 +24282,18 @@ if test "${with_mysql+set}" = set; then :
withval=$with_mysql;
if test "$withval" != "no"; then
if test "$withval" = "yes"; then
#
# This code is very broken on older systems
#
# MYSQL_CONFIG=`which mysql_config 2>/dev/null`
# if test "x${MYSQL_CONFIG}" != x; then
# MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
# ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
# if test $? = 0 ; then
# MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
# MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
# else
# MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
# MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
# fi
# elif test -f /usr/local/mysql/include/mysql/mysql.h; then
if test -f /usr/local/mysql/include/mysql/mysql.h; then
MYSQL_CONFIG=`which mysql_config 2>/dev/null`
if test "x${MYSQL_CONFIG}" != x; then
MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
if test $? = 0 ; then
MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
else
MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
fi
elif test -f /usr/local/mysql/include/mysql/mysql.h; then
MYSQL_INCDIR=/usr/local/mysql/include/mysql
if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
-o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
Expand Down

0 comments on commit 54fa809

Please sign in to comment.