diff --git a/Makefile.in b/Makefile.in index cb5e67a..7155394 100644 --- a/Makefile.in +++ b/Makefile.in @@ -165,8 +165,8 @@ am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/ac/ar-lib \ $(top_srcdir)/ac/compile $(top_srcdir)/ac/config.guess \ $(top_srcdir)/ac/config.sub $(top_srcdir)/ac/install-sh \ $(top_srcdir)/ac/ltmain.sh $(top_srcdir)/ac/missing ac/ar-lib \ - ac/compile ac/config.guess ac/config.sub ac/install-sh \ - ac/ltmain.sh ac/missing + ac/compile ac/config.guess ac/config.sub ac/depcomp \ + ac/install-sh ac/ltmain.sh ac/missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) diff --git a/configure b/configure index 89f5ecb..dbf9ba8 100755 --- a/configure +++ b/configure @@ -18190,6 +18190,23 @@ MOO_PROJECT_AUTHOR="${PACKAGE_BUGREPORT}" MOO_PROJECT_URL="${PACKAGE_URL}" +if test `expr " $0" : " '.*"` = 0; then + moo_configure_cmd="'$0'" +else + moo_configure_cmd="$0" +fi + + +cat >>confdefs.h <<_ACEOF +#define MOO_CONFIGURE_ARGS "$ac_configure_args" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define MOO_CONFIGURE_CMD "$moo_configure_cmd" +_ACEOF + + ac_config_files="$ac_config_files Makefile tools/Makefile lib/Makefile mod/Makefile bin/Makefile t/Makefile wasm/Makefile" cat >confcache <<\_ACEOF diff --git a/configure.ac b/configure.ac index 606bcf2..dbb6d23 100644 --- a/configure.ac +++ b/configure.ac @@ -842,6 +842,16 @@ dnl ==== subsititution of some key items ==== AC_SUBST(MOO_PROJECT_AUTHOR, "${PACKAGE_BUGREPORT}") AC_SUBST(MOO_PROJECT_URL, "${PACKAGE_URL}") +dnl === configure arguments +if test `expr " [$]0" : " '.*"` = 0; then + moo_configure_cmd="'[$]0'" +else + moo_configure_cmd="[$]0" +fi + +AC_DEFINE_UNQUOTED(MOO_CONFIGURE_ARGS, ["$ac_configure_args"], [configure arguments]) +AC_DEFINE_UNQUOTED(MOO_CONFIGURE_CMD, ["$moo_configure_cmd"], [configure command]) + AC_CONFIG_FILES([ Makefile tools/Makefile diff --git a/lib/moo-cfg.h.in b/lib/moo-cfg.h.in index 5f62bde..3ff7e4f 100644 --- a/lib/moo-cfg.h.in +++ b/lib/moo-cfg.h.in @@ -339,6 +339,12 @@ /* build release/debug */ #undef MOO_BUILD_RELEASE +/* configure arguments */ +#undef MOO_CONFIGURE_ARGS + +/* configure command */ +#undef MOO_CONFIGURE_CMD + /* enable dynamic module capability */ #undef MOO_ENABLE_DYNAMIC_MODULE diff --git a/mod/Makefile.in b/mod/Makefile.in index d80d393..95aa836 100644 --- a/mod/Makefile.in +++ b/mod/Makefile.in @@ -420,6 +420,7 @@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@