]> git.draconx.ca Git - dxcommon.git/commitdiff
Fix DX_EXPORTED_SH to AC_SUBST required variables.
authorNick Bowler <nbowler@elliptictech.com>
Wed, 5 Dec 2012 23:22:44 +0000 (18:22 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 5 Dec 2012 23:22:44 +0000 (18:22 -0500)
The exported.sh support wasn't really usable as-is since it was relying
on a symbol defined by cdecl99's configure.ac.  Bring that configuration
into the common macro.

m4/exported.m4

index d4a613b9c2171db134381235596f223c5f94afa1..7bb6e9e5821e3753abd901adea89284e436c7fea 100644 (file)
@@ -11,6 +11,15 @@ dnl There is NO WARRANTY, to the extent permitted by law.
 AC_DEFUN([DX_EXPORTED_SH], [dnl
 AC_REQUIRE([DX_INIT])
 
+AC_CONFIG_COMMANDS_PRE([dnl
+       AC_PROVIDE_IFELSE([LT_INIT], , [m4_warn([syntax],
+[$0 requires libtool.
+Consider adding an invocation of LT_INIT to configure.ac.])])
+
+       GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
+       AC_SUBST([GLOBAL_SYMBOL_PIPE])
+])
+
 AC_CONFIG_FILES([exported.sh:]DX_BASEDIR[/snippet/exported.sh.in],
        [chmod +x exported.sh])
 ])