source: box/trunk/infrastructure/m4/ax_config_scripts.m4 @ 543

Revision 543, 484 bytes checked in by martin, 6 years ago (diff)

Fix execute permission on substituted perl scripts

Line 
1dnl @synopsis AX_CONFIG_SCRIPTS(SCRIPT_FILE, ...)
2dnl
3dnl Run AC_CONFIG_FILES on a list of scripts while preserving execute
4dnl permission.
5dnl
6dnl @category Automake
7dnl @author Martin Ebourne <martin@zepler.org>
8dnl @script
9dnl @license AllPermissive
10
11AC_DEFUN([AX_CONFIG_SCRIPTS],[
12  AC_REQUIRE([AC_CONFIG_FILES])dnl
13  m4_foreach([SCRIPT_FILE],
14             m4_quote(m4_split(m4_normalize([$1]))),
15             [AC_CONFIG_FILES(SCRIPT_FILE, m4_quote(chmod +x SCRIPT_FILE))])dnl
16])
Note: See TracBrowser for help on using the repository browser.