1 dnl as-auto-alt.m4 0.0.2
2 dnl autostars m4 macro for supplying alternate autotools versions to configure
3 dnl thomas@apestaart.org
5 dnl AS_AUTOTOOLS_ALTERNATE()
7 dnl supplies --with arguments for autoconf, autoheader, automake, aclocal
9 AC_DEFUN([AS_AUTOTOOLS_ALTERNATE],
11 dnl allow for different autoconf version
13 AC_HELP_STRING([--with-autoconf],
14 [use a different autoconf for regeneration of Makefiles]),
17 AM_MISSING_PROG(AUTOCONF, ${withval})
18 AC_MSG_NOTICE([Using $AUTOCONF as autoconf])
21 dnl allow for different autoheader version
22 AC_ARG_WITH(autoheader,
23 AC_HELP_STRING([--with-autoheader],
24 [use a different autoheader for regeneration of Makefiles]),
27 AM_MISSING_PROG(AUTOHEADER, ${withval})
28 AC_MSG_NOTICE([Using $AUTOHEADER as autoheader])
31 dnl allow for different automake version
33 AC_HELP_STRING([--with-automake],
34 [use a different automake for regeneration of Makefiles]),
37 AM_MISSING_PROG(AUTOMAKE, ${withval})
38 AC_MSG_NOTICE([Using $AUTOMAKE as automake])
41 dnl allow for different aclocal version
43 AC_HELP_STRING([--with-aclocal],
44 [use a different aclocal for regeneration of Makefiles]),
47 AM_MISSING_PROG(ACLOCAL, ${withval})
48 AC_MSG_NOTICE([Using $ACLOCAL as aclocal])