[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You execute arbitrary commands either before, during and after
`config.status' is run. The three following macros accumulate the
commands to run when they are called multiple times.
AC_CONFIG_COMMANDS
replaces the obsolete macro
AC_OUTPUT_COMMANDS
, see 15.4 Obsolete Macros, for details.
configure
. Associate the commands to the tag. Since
typically the cmds create a file, tag should naturally be
the name of that file. This macro is one of the instantiating macros,
see 4.4 Taking Configuration Actions.
Here is an unrealistic example:
fubar=42 AC_CONFIG_COMMANDS(fubar, [echo this is extra $fubar, and so on.], [fubar=$fubar]) |
Here is a better one:
AC_CONFIG_COMMANDS(time-stamp, [date >time-stamp]) |
configure
:
AC_CONFIG_COMMANDS_PRE( [LTLIBOBJS=`echo $LIBOBJS | sed 's/\.o/\.lo/g'` AC_SUBST(LTLIBOBJS)]) |