Links ¶
configure.ac
¶
- Written in m4sh (m4 + shell)
- Program initialization:
AC_INIT
macro—needs name, version, maintainer - Initialize automake:
AM_INIT_AUTOMAKE
- Make sure that C-compiler exists:
AC_PROG_CC
- Build
Makefile
fromMakefile.in
, replaces@PACKAGE_VERSION@
-type variables:AC_CONFIG_FILES([Makefile])
- Output the script:
AC_OUTPUT
Makefile.am
¶
- The
./configure
script (created byconfigure.ac
), expects to findMakefile.in
Makefile.in
is long and dumb (just like./configure
), so we make aMakefile.am
automake
generatesMakefile.in
foreign
AUTOMAKEOPTIONS tells that the layout is "non standard"
Put it all together: ¶
- create m4 environment:
aclocal
autoconf
does:configure.ac
→configure
automake --add-missing
does:Makefile.am
→Makefile.in
autoreconf --install
: autoreconf runs autoconf, autoheader, aclocal, automake, libtoolize, and autopoint
Add a comment (Comment Policy)