Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

some hack with mysql_config #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,14 @@ AC_ARG_WITH(mysql_libraries,
[ --with-mysql-libraries=DIR MySQL library directory],
[with_mysql_libraries="$withval"; with_mysql="yes"],[with_mysql_libraries="no"])

default_directory="/usr /usr/local"
AC_DEFUN(AC_PROG_MYSQL_CONFIG, [AC_CHECK_PROG(MYSQL_CONFIG,mysql_config,yes)])
AC_PROG_MYSQL_CONFIG
if test x"${MYSQL_CONFIG}" == x"yes" ; then
default_directory="/usr /usr/local `mysql_config --variable=pkglibdir`"
else
default_directory="/usr /usr/local"
fi

if test "x$with_mysql" != "xno"; then
if test "x$with_mysql" = "xyes"; then
if test "x$with_mysql_includes" != "xno"; then
Expand Down