as-auto-alt.m4 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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
  4. dnl
  5. dnl AS_AUTOTOOLS_ALTERNATE()
  6. dnl
  7. dnl supplies --with arguments for autoconf, autoheader, automake, aclocal
  8. AC_DEFUN([AS_AUTOTOOLS_ALTERNATE],
  9. [
  10. dnl allow for different autoconf version
  11. AC_ARG_WITH(autoconf,
  12. AC_HELP_STRING([--with-autoconf],
  13. [use a different autoconf for regeneration of Makefiles]),
  14. [
  15. unset AUTOCONF
  16. AM_MISSING_PROG(AUTOCONF, ${withval})
  17. AC_MSG_NOTICE([Using $AUTOCONF as autoconf])
  18. ])
  19. dnl allow for different autoheader version
  20. AC_ARG_WITH(autoheader,
  21. AC_HELP_STRING([--with-autoheader],
  22. [use a different autoheader for regeneration of Makefiles]),
  23. [
  24. unset AUTOHEADER
  25. AM_MISSING_PROG(AUTOHEADER, ${withval})
  26. AC_MSG_NOTICE([Using $AUTOHEADER as autoheader])
  27. ])
  28. dnl allow for different automake version
  29. AC_ARG_WITH(automake,
  30. AC_HELP_STRING([--with-automake],
  31. [use a different automake for regeneration of Makefiles]),
  32. [
  33. unset AUTOMAKE
  34. AM_MISSING_PROG(AUTOMAKE, ${withval})
  35. AC_MSG_NOTICE([Using $AUTOMAKE as automake])
  36. ])
  37. dnl allow for different aclocal version
  38. AC_ARG_WITH(aclocal,
  39. AC_HELP_STRING([--with-aclocal],
  40. [use a different aclocal for regeneration of Makefiles]),
  41. [
  42. unset ACLOCAL
  43. AM_MISSING_PROG(ACLOCAL, ${withval})
  44. AC_MSG_NOTICE([Using $ACLOCAL as aclocal])
  45. ])
  46. ])