]> git.draconx.ca Git - dxcommon.git/blob - m4/exported.m4
Fix DX_EXPORTED_SH to AC_SUBST required variables.
[dxcommon.git] / m4 / exported.m4
1 dnl Copyright © 2012 Nick Bowler
2 dnl
3 dnl Generate the exported.sh script used to determine the exported symbols of
4 dnl a (libtool) object file.  This is required by the glconfig Automake
5 dnl fragment, but will be called automatically in that case.
6 dnl
7 dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
8 dnl This is free software: you are free to do what the fuck you want to.
9 dnl There is NO WARRANTY, to the extent permitted by law.
10
11 AC_DEFUN([DX_EXPORTED_SH], [dnl
12 AC_REQUIRE([DX_INIT])
13
14 AC_CONFIG_COMMANDS_PRE([dnl
15         AC_PROVIDE_IFELSE([LT_INIT], , [m4_warn([syntax],
16 [$0 requires libtool.
17 Consider adding an invocation of LT_INIT to configure.ac.])])
18
19         GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
20         AC_SUBST([GLOBAL_SYMBOL_PIPE])
21 ])
22
23 AC_CONFIG_FILES([exported.sh:]DX_BASEDIR[/snippet/exported.sh.in],
24         [chmod +x exported.sh])
25 ])