[Tritonn-commit 71] [svn] [81] Fixed configure.in as properly.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 1月 18日 (金) 18:12:45 JST


Revision: 81
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=tritonn&view=rev&rev=81
Author:   mir
Date:     2008-01-18 18:12:45 +0900 (Fri, 18 Jan 2008)

Log Message:
-----------
Fixed configure.in as properly.

Now we can build tritonn engine from svn as following:

libtoolize -c -f
aclocal-1.9
autoheader
automake-1.9 -c -a -i
autoconf
./configure --with-mysql=XXX --libdir=XXX
make
make install

Modified Paths:
--------------
    trunk/configure.in

Modified: trunk/configure.in
===================================================================
--- trunk/configure.in	2008-01-18 09:08:59 UTC (rev 80)
+++ trunk/configure.in	2008-01-18 09:12:45 UTC (rev 81)
@@ -1,7 +1,6 @@
 dnl For Tritonn MySQL Engine
 AC_INIT(src/ha_tritonn.cc)
-AC_CONFIG_AUX_DIR(config)
-dnl AM_CONFIG_HEADER(src/skeleton_config.h)
+AM_CONFIG_HEADER(src/tritonn_config.h)
 AM_INIT_AUTOMAKE("tritonn_engine", 0.0.1)
 
 AC_PROG_CC
@@ -12,10 +11,24 @@
 LIBTOOL="$LIBTOOL --preserve-dup-deps"
 AC_SUBST(LIBTOOL)dnl
 
-sinclude(config/ac_mysql.m4)
-sinclude(config/ac_system.m4)
-sinclude(config/dtrace.m4)
-
+AC_DEFUN([MYSQL_SRC_TEST], [
+  AC_MSG_CHECKING(for mysql source code)
+  AC_ARG_WITH(mysql,
+  [[  --with-mysql[=mysql src directory]      
+                        Source requir to build engine.]],
+  [
+    if test -d "$withval/sql"; then
+      MYSQL_SRC="$i/mysql_config"
+    fi
+    
+    AC_DEFINE([MYSQL_SRC], [1], [Source directory for MySQL])
+    MYSQL_INC="-I$withval/sql -I$withval/include -I$withval/regex -I$withval"
+    AC_MSG_RESULT(["$withval"])
+  ],
+  [
+    AC_MSG_ERROR(["no mysql source provided"])
+  ])
+])
 MYSQL_SRC_TEST
 AC_SUBST(MYSQL_INC)
 




Tritonn-commit メーリングリストの案内
Back to archive index