Navigation Menu

Skip to content

Commit

Permalink
Support relative --with-mysql-source-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 29, 2012
1 parent e5a655e commit 74b910a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions configure.ac
Expand Up @@ -102,6 +102,14 @@ AC_DEFUN([CONFIG_OPTION_MYSQL],[
[
ac_mysql_source_dir="$withval"
if test -f "$ac_mysql_source_dir/sql/handler.h"; then
case "$ac_mysql_source_dir" in
/*)
:
;;
*)
ac_mysql_source_dir="\$(top_builddir)/$ac_mysql_source_dir"
;;
esac
MYSQL_INC="-I$ac_mysql_source_dir/sql"
MYSQL_INC="$MYSQL_INC -I$ac_mysql_source_dir/include"
MYSQL_INC="$MYSQL_INC -I$ac_mysql_source_dir/regex"
Expand Down

0 comments on commit 74b910a

Please sign in to comment.