Navigation Menu

Skip to content

Commit

Permalink
mysql built-in build and standalone build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikdttr committed Jun 2, 2009
1 parent 4f71c05 commit 346fcca
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions configure.ac
Expand Up @@ -7,6 +7,21 @@ AC_PROG_CXX
AC_PROG_CPP
AC_PROG_LIBTOOL

standalone_build=

AC_DEFUN([CONFIG_OPTION_PLUGINS],
AC_MSG_CHECKING([standalone build])
AC_ARG_WITH([plugins],,
[
standalone_build="no"
AC_MSG_RESULT([no])
],
[
standalone_build="yes"
AC_MSG_RESULT([yes])
])
)

AC_DEFUN([CONFIG_OPTION_MYSQL],[
AC_MSG_CHECKING([mysql source])
AC_ARG_WITH([mysql],
Expand All @@ -20,7 +35,7 @@ AC_DEFUN([CONFIG_OPTION_MYSQL],[
AC_MSG_ERROR([invalid mysql source directory])
fi
],
[AC_MSG_ERROR([--with-mysql=PATH is required])]
[AC_MSG_ERROR([--with-mysql=PATH is required for standalone build])]
)
])

Expand Down Expand Up @@ -112,7 +127,10 @@ AC_DEFUN([CONFIG_OPTION_GROONGA],[
AC_SUBST([GROONGA_LIBS])
])

CONFIG_OPTION_MYSQL
CONFIG_OPTION_PLUGINS
if test "$standalone_build" = "yes";then
CONFIG_OPTION_MYSQL
fi
CONFIG_OPTION_MECAB
CONFIG_OPTION_GROONGA

Expand Down

0 comments on commit 346fcca

Please sign in to comment.