ax_am_macros.m4 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_am_macros.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_AM_MACROS
  8. #
  9. # DESCRIPTION
  10. #
  11. # Adds support for macros that create Make rules. You must manually add
  12. # the following line
  13. #
  14. # @INC_AMINCLUDE@
  15. #
  16. # to your Makefile.in (or Makefile.am if you use Automake) files.
  17. #
  18. # LICENSE
  19. #
  20. # Copyright (c) 2009 Tom Howard <tomhoward@users.sf.net>
  21. #
  22. # Copying and distribution of this file, with or without modification, are
  23. # permitted in any medium without royalty provided the copyright notice
  24. # and this notice are preserved. This file is offered as-is, without any
  25. # warranty.
  26. #serial 11
  27. AC_DEFUN([AX_AM_MACROS],
  28. [
  29. AC_MSG_NOTICE([adding automake macro support])
  30. AMINCLUDE="aminclude.am"
  31. AC_SUBST(AMINCLUDE)
  32. AC_MSG_NOTICE([creating $AMINCLUDE])
  33. AMINCLUDE_TIME=`LC_ALL=C date`
  34. AX_PRINT_TO_FILE([$AMINCLUDE],[[
  35. # generated automatically by configure from AX_AUTOMAKE_MACROS
  36. # on $AMINCLUDE_TIME
  37. ]])
  38. INC_AMINCLUDE="include \$(top_builddir)/$AMINCLUDE"
  39. AC_SUBST(INC_AMINCLUDE)
  40. ])