This commit is contained in:
Dan Church
2022-12-19 12:14:31 -06:00
committed by GitHub
5 changed files with 32 additions and 8 deletions

View File

@@ -19,6 +19,7 @@ jobs:
run: autoreconf -i -f run: autoreconf -i -f
- name: Configure - name: Configure
run: ./configure --disable-silent-rules --${{ matrix.glib }} --${{ matrix.iconv }} --with-unixodbc=/usr run: ./configure --disable-silent-rules --${{ matrix.glib }} --${{ matrix.iconv }} --with-unixodbc=/usr
--enable-experimental
env: env:
CC: ${{ matrix.compiler }} CC: ${{ matrix.compiler }}
- name: Make - name: Make
@@ -57,6 +58,7 @@ jobs:
run: autoreconf -i -f run: autoreconf -i -f
- name: Configure - name: Configure
run: ./configure --disable-silent-rules --${{ matrix.glib }} --${{ matrix.iconv }} --with-unixodbc=/usr/local/opt run: ./configure --disable-silent-rules --${{ matrix.glib }} --${{ matrix.iconv }} --with-unixodbc=/usr/local/opt
--enable-experimental
env: env:
CC: ${{ matrix.compiler }} CC: ${{ matrix.compiler }}
YACC: /usr/local/opt/bison/bin/bison YACC: /usr/local/opt/bison/bin/bison
@@ -97,6 +99,7 @@ jobs:
run: autoreconf -i -f run: autoreconf -i -f
- name: Configure - name: Configure
run: ./configure --disable-silent-rules --${{ matrix.glib }} --with-iodbc=/usr/local/opt run: ./configure --disable-silent-rules --${{ matrix.glib }} --with-iodbc=/usr/local/opt
--enable-experimental
env: env:
CC: ${{ matrix.compiler }} CC: ${{ matrix.compiler }}
YACC: /usr/local/opt/bison/bin/bison YACC: /usr/local/opt/bison/bin/bison

View File

@@ -236,6 +236,13 @@ if test "$enable_glib" = "yes"; then
fi fi
AM_CONDITIONAL(FAKE_GLIB, test "x$enable_glib" != "xyes") AM_CONDITIONAL(FAKE_GLIB, test "x$enable_glib" != "xyes")
# Check if building experimental utilities (mdb-import)
AC_ARG_ENABLE(experimental,
AS_HELP_STRING([--enable-experimental], [build experimental programs @<:@default=no@:>@]),
[enable_experimental=$enableval], [enable_experimental=no])
AM_CONDITIONAL(ENABLE_EXPERIMENTAL, test x$enable_experimental = xyes)
AC_SUBST(ENABLE_EXPERIMENTAL)
dnl Set up substitution variables dnl Set up substitution variables
if test "$ac_cv_header_xlocale_h" = "yes"; then if test "$ac_cv_header_xlocale_h" = "yes"; then
HAVE_XLOCALE_H=1 HAVE_XLOCALE_H=1
@@ -329,4 +336,6 @@ if test x$enable_man = xyes; then summary=${bold_green}enabled; else summary=${b
AC_MSG_NOTICE([ man pages : ${summary}${reset}]) AC_MSG_NOTICE([ man pages : ${summary}${reset}])
if test "x$with_bash_completion_dir" != "xno"; then summary=${bold_green}enabled; else summary=${bold_red}disabled; fi if test "x$with_bash_completion_dir" != "xno"; then summary=${bold_green}enabled; else summary=${bold_red}disabled; fi
AC_MSG_NOTICE([ bash-completion : ${summary}${reset}]) AC_MSG_NOTICE([ bash-completion : ${summary}${reset}])
if test "x$enable_experimental" = "xyes"; then summary=${bold_green}enabled; else summary=${bold_red}disabled; fi
AC_MSG_NOTICE([ experimental : ${summary}${reset}])
AC_MSG_NOTICE([]) AC_MSG_NOTICE([])

View File

@@ -5,19 +5,25 @@ PRODUCT = MDBTools
dist_man_MANS = dist_man_MANS =
if ENABLE_MAN if ENABLE_MAN
dist_man_MANS += mdb-tables.1 mdb-ver.1 mdb-export.1 mdb-schema.1 \ dist_man_MANS += mdb-tables.1 mdb-ver.1 mdb-export.1 mdb-schema.1 \
mdb-array.1 mdb-header.1 mdb-hexdump.1 mdb-parsecsv.1 mdb-prop.1 mdb-import.1 \ mdb-array.1 mdb-header.1 mdb-hexdump.1 mdb-parsecsv.1 mdb-prop.1 \
mdb-count.1 mdb-json.1 mdb-queries.1 mdb-count.1 mdb-json.1 mdb-queries.1
if SQL if SQL
dist_man_MANS += mdb-sql.1 dist_man_MANS += mdb-sql.1
endif endif
if ENABLE_EXPERIMENTAL
dist_man_MANS += mdb-import.1
endif
endif endif
CLEANFILES = ${dist_man_MANS} CLEANFILES = ${dist_man_MANS}
EXTRA_DIST = mdb-tables.txt mdb-ver.txt mdb-export.txt mdb-schema.txt \ EXTRA_DIST = mdb-tables.txt mdb-ver.txt mdb-export.txt mdb-schema.txt \
mdb-array.txt mdb-header.txt mdb-hexdump.txt mdb-parsecsv.txt mdb-prop.txt mdb-import.txt \ mdb-array.txt mdb-header.txt mdb-hexdump.txt mdb-parsecsv.txt mdb-prop.txt \
mdb-count.txt mdb-json.txt mdb-queries.txt \ mdb-count.txt mdb-json.txt mdb-queries.txt \
txt2man txt2man
if ENABLE_EXPERIMENTAL
EXTRA_DIST += mdb-import.txt
endif
if SQL if SQL
EXTRA_DIST += mdb-sql.txt EXTRA_DIST += mdb-sql.txt
endif endif
.txt.1: .txt.1:

View File

@@ -1,13 +1,16 @@
AUTOMAKE_OPTIONS = subdir-objects AUTOMAKE_OPTIONS = subdir-objects
SUBDIRS = bash-completion SUBDIRS = bash-completion
bin_PROGRAMS = mdb-export mdb-array mdb-schema mdb-tables mdb-parsecsv mdb-header mdb-ver mdb-prop mdb-count mdb-queries mdb-json bin_PROGRAMS = mdb-export mdb-array mdb-schema mdb-tables mdb-parsecsv mdb-header mdb-ver mdb-prop mdb-count mdb-queries mdb-json
noinst_PROGRAMS = mdb-import prtable prcat prdata prkkd prdump prole updrow prindex noinst_PROGRAMS = prtable prcat prdata prkkd prdump prole updrow prindex
noinst_HEADERS = base64.h noinst_HEADERS = base64.h
LIBS = $(GLIB_LIBS) @LIBS@ LIBS = $(GLIB_LIBS) @LIBS@
DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\" DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\"
AM_CFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS) -Wsign-compare AM_CFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS) -Wsign-compare
LDADD = ../libmdb/libmdb.la LDADD = ../libmdb/libmdb.la
if SQL if ENABLE_EXPERIMENTAL
bin_PROGRAMS += mdb-sql bin_PROGRAMS += mdb-import
mdb_sql_LDADD = ../libmdb/libmdb.la ../sql/libmdbsql.la $(LIBREADLINE) endif
if SQL
bin_PROGRAMS += mdb-sql
mdb_sql_LDADD = ../libmdb/libmdb.la ../sql/libmdbsql.la $(LIBREADLINE)
endif endif

View File

@@ -1,6 +1,9 @@
if ENABLE_BASH_COMPLETION if ENABLE_BASH_COMPLETION
bashcompletiondir = $(BASH_COMPLETION_DIR) bashcompletiondir = $(BASH_COMPLETION_DIR)
dist_bashcompletion_DATA = mdb-count mdb-export mdb-hexdump mdb-import mdb-json mdb-parsecsv mdb-prop mdb-queries mdb-schema mdb-tables mdb-ver dist_bashcompletion_DATA = mdb-count mdb-export mdb-hexdump mdb-json mdb-parsecsv mdb-prop mdb-queries mdb-schema mdb-tables mdb-ver
if ENABLE_EXPERIMENTAL
dist_bashcompletion_DATA += mdb-import
endif
if SQL if SQL
dist_bashcompletion_DATA += mdb-sql dist_bashcompletion_DATA += mdb-sql
endif endif