X-Git-Url: http://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/2e5b48374d80959256e535bc1973f032158bde9e..c3b7ff6af1fa247b4df631d924f8b79fc6f6fc90:/m4/exported.m4 diff --git a/m4/exported.m4 b/m4/exported.m4 index d4a613b..6ac9217 100644 --- a/m4/exported.m4 +++ b/m4/exported.m4 @@ -1,4 +1,4 @@ -dnl Copyright © 2012 Nick Bowler +dnl Copyright © 2012, 2022 Nick Bowler dnl dnl Generate the exported.sh script used to determine the exported symbols of dnl a (libtool) object file. This is required by the glconfig Automake @@ -8,9 +8,17 @@ dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2. dnl This is free software: you are free to do what the fuck you want to. dnl There is NO WARRANTY, to the extent permitted by law. -AC_DEFUN([DX_EXPORTED_SH], [dnl -AC_REQUIRE([DX_INIT]) +AC_DEFUN([DX_EXPORTED_SH], +[AC_REQUIRE([DX_INIT])dnl +AC_REQUIRE([AC_PROG_SED])dnl + +AC_CONFIG_COMMANDS_PRE( +[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]) -]) + [chmod +x exported.sh])])