Paul McCullagh wrote:
> I am just moving PBXT over to the new plugin directory and have a little
> problem.
> 
> I do the following:
> 
> rm -r autom4te.cache
> config/autorun.sh
> ./configure --help
> 
> But PBXT is not listed as a plugin in the output. Expected would be
> something like this:
> 
> --with-pbxt-plugin
>           Build PBXT Storage Engine

Yup. I would too...

> Neither are any Makefile.in's generated.
> 
> My directory structure looks like this:
> 
> plugin/pbxt
> plugin/pbxt/plug.ini

plugin.ini

> plugin/pbxt/Makefile.am

plugin.am

> plugin/pbxt/src
> plugin/pbxt/src/Makefile.am

hrm. We may need to figure out how to express your organization - I
don't have any support for second level makefiles atm...

> plugin/pbxt/src/*.cc
> plugin/pbxt/src/*.h
> 
> Contents of the build files is pasted below.
> 
> How should things be done?
> 
> Thanks!
> 
> Paul
> 
> 
> plugin/pbxt/plug.ini:
> ---------------------
> [plugin]
> name=pbxt
> title=PBXT Storage Engine
> description=MVCC-based transactional engine
> load_by_default=yes
> libs=plugin/pbxt/src/libpbxt.la
> 
> plugin/pbxt/Makefile.am
> -----------------------
> SUBDIRS = src

try SUBDIRS += plugin/
> 
> EXTRA_DIST = plug.ini

not needed - happens automatically

> 
> plugin/pbxt/src/Makefile.am
> ---------------------------
> # Used to build Makefile.in
> 
> MYSQLDATAdir =          $(localstatedir)
> MYSQLSHAREdir =         $(pkgdatadir)
> MYSQLBASEdir=           $(prefix)
> MYSQLLIBdir=            $(pkglibdir)
> pkgplugindir =          $(pkglibdir)/plugin
> 
> AM_CPPFLAGS = -I$(top_srcdir)
> 
> LIBS =
> 
> LDADD =
> 
> noinst_HEADERS =        bsearch_xt.h cache_xt.h ccutils_xt.h
> database_xt.h \
>                         datadic_xt.h datalog_xt.h filesys_xt.h
> hashtab_xt.h \
>                         ha_pbxt.h heap_xt.h index_xt.h linklist_xt.h \
>                         memory_xt.h myxt_xt.h pthread_xt.h restart_xt.h \
>                         streaming_xt.h sortedlist_xt.h strutil_xt.h \
>                         tabcache_xt.h table_xt.h trace_xt.h thread_xt.h \
>                         util_xt.h xaction_xt.h xactlog_xt.h lock_xt.h \
>                         systab_xt.h ha_xtsys.h discover_xt.h \
>                         pbms.h xt_config.h xt_defs.h xt_errno.h
> EXTRA_LTLIBRARIES =    libpbxt.la
> 
> libpbxt_la_SOURCES =    bsearch_xt.cc cache_xt.cc ccutils_xt.cc
> database_xt.cc \
>                         datadic_xt.cc datalog_xt.cc filesys_xt.cc
> hashtab_xt.cc \
>                         ha_pbxt.cc heap_xt.cc index_xt.cc linklist_xt.cc \
>                         memory_xt.cc myxt_xt.cc pthread_xt.cc
> restart_xt.cc \
>                         streaming_xt.cc sortedlist_xt.cc strutil_xt.cc \
>                         tabcache_xt.cc table_xt.cc trace_xt.cc
> thread_xt.cc \
>                         systab_xt.cc ha_xtsys.cc discover_xt.cc \
>                         util_xt.cc xaction_xt.cc xactlog_xt.cc lock_xt.cc
> 
> libpbxt_la_LDFLAGS =    -module
> 
> # These are the warning Drizzle uses:
> # DRIZZLE_WARNINGS =        -W -Wall -Wextra -pedantic -Wundef
> -Wredundant-decls -Wno-strict-aliasing -Wno-long-long -Wno-unused-parameter
> 
> libpbxt_la_CXXFLAGS =    $(AM_CXXFLAGS) -DMYSQL_DYNAMIC_PLUGIN
> -Wno-overloaded-virtual
> libpbxt_la_CFLAGS =        $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN -std=c99
> 
> EXTRA_LIBRARIES =        libpbxt.a
> noinst_LIBRARIES =         libpbxt.a
> libpbxt_a_SOURCES =        $(libpbxt_la_SOURCES)
> libpbxt_a_CXXFLAGS =    $(AM_CXXFLAGS) -DDRIZZLED -Wno-long-long
> -Wno-overloaded-virtual
> libpbxt_a_CFLAGS =        $(AM_CFLAGS) -DDRIZZLED -std=c99
> 
> EXTRA_DIST =            CMakeLists.txt
> 
> 
> 
> -- 
> Paul McCullagh
> PrimeBase Technologies
> www.primebase.org
> www.blobstreaming.org
> pbxt.blogspot.com
> 
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~drizzle-discuss
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~drizzle-discuss
> More help   : https://help.launchpad.net/ListHelp
> 


_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to