summaryrefslogtreecommitdiff
path: root/infrastructure/m4/ax_config_scripts.m4
blob: 8f5436ae283fe8cf1142ba15f961349e78f2129d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
dnl @synopsis AX_CONFIG_SCRIPTS(SCRIPT_FILE, ...)
dnl
dnl Run AC_CONFIG_FILES on a list of scripts while preserving execute
dnl permission.
dnl
dnl @category Automake
dnl @author Martin Ebourne <martin@zepler.org>
dnl @script
dnl @license AllPermissive

AC_DEFUN([AX_CONFIG_SCRIPTS],[
  AC_REQUIRE([AC_CONFIG_FILES])dnl
  m4_foreach([SCRIPT_FILE],
             m4_quote(m4_split(m4_normalize([$1]))),
             [AC_CONFIG_FILES(SCRIPT_FILE, m4_quote(chmod +x SCRIPT_FILE))])dnl
])