1 dnl Copyright © 2012, 2022 Nick Bowler
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.
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.
11 AC_DEFUN([DX_EXPORTED_SH],
12 [AC_REQUIRE([DX_INIT])dnl
13 AC_REQUIRE([AC_PROG_SED])dnl
15 AC_CONFIG_COMMANDS_PRE(
16 [AC_PROVIDE_IFELSE([LT_INIT], , [m4_warn([syntax],
18 Consider adding an invocation of LT_INIT to configure.ac.])])
20 GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
21 AC_SUBST([GLOBAL_SYMBOL_PIPE])])
23 AC_CONFIG_FILES([exported.sh:]DX_BASEDIR[/snippet/exported.sh.in],
24 [chmod +x exported.sh])])