configure script must finish by calling
AC_OUTPUT. It is the macro that creates the `Makefile's and
optional other files resulting from configuration. The only other
required macro is
AC_INIT (see section Finding
AC_CONFIG_SUBDIRS has been called, this macro also creates the
files named as their arguments.
A typical call to
AC_OUTPUT looks like this:
AC_OUTPUT(Makefile src/Makefile man/Makefile X/Imakefile)
You can override an input file name by appending to file a colon-separated list of input files. Examples:
AC_OUTPUT(Makefile:templates/top.mk lib/Makefile:templates/lib.mk) AC_OUTPUT(Makefile:templates/vars.mk:Makefile.in:templates/rules.mk)
Doing this allows you to keep your file names acceptable to MS-DOS, or to prepend and/or append boilerplate to the file.
If you pass extra-cmds, those commands will be inserted into
`config.status' to be run after all its other processing. If
init-cmds are given, they are inserted just before
extra-cmds, with shell variable, command, and backslash
substitutions performed on them in
configure. You can use
init-cmds to pass variables from
configure to the
AC_OUTPUT_COMMANDS has been called, the
commands given to it are run just before the commands passed to this macro.
configure. This macro may be called multiple times. Here is an unrealistic example:
fubar=27 AC_OUTPUT_COMMANDS([echo this is extra $fubar, and so on.], fubar=$fubar) AC_OUTPUT_COMMANDS([echo this is another, extra, bit], [echo init bit])
If you run
make on subdirectories, you should run it using the
MAKE. Most versions of
MAKE to the name of the
make program plus any options it
was given. (But many do not include in it the values of any variables
set on the command line, so those are not passed on automatically.)
Some old versions of
make do not set this variable. The
following macro allows you to use it even with those versions.
makepredefines the variable
MAKE, define output variable
SET_MAKEto be empty. Otherwise, define
SET_MAKEto contain `MAKE=make'. Calls
To use this macro, place a line like this in each `Makefile.in'
MAKE on other directories:
Go to the first, previous, next, last section, table of contents.