00gnulib.m4 1.3 KB

123456789101112131415161718192021222324252627282930
  1. # 00gnulib.m4 serial 2
  2. dnl Copyright (C) 2009 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. dnl This file must be named something that sorts before all other
  7. dnl gnulib-provided .m4 files. It is needed until such time as we can
  8. dnl assume Autoconf 2.64, with its improved AC_DEFUN_ONCE semantics.
  9. # AC_DEFUN_ONCE([NAME], VALUE)
  10. # ----------------------------
  11. # Define NAME to expand to VALUE on the first use (whether by direct
  12. # expansion, or by AC_REQUIRE), and to nothing on all subsequent uses.
  13. # Avoid bugs in AC_REQUIRE in Autoconf 2.63 and earlier. This
  14. # definition is slower than the version in Autoconf 2.64, because it
  15. # can only use interfaces that existed since 2.59; but it achieves the
  16. # same effect. Quoting is necessary to avoid confusing Automake.
  17. m4_version_prereq([2.63.263], [],
  18. [m4_define([AC][_DEFUN_ONCE],
  19. [AC][_DEFUN([$1],
  20. [AC_REQUIRE([_gl_DEFUN_ONCE([$1])],
  21. [m4_indir([_gl_DEFUN_ONCE([$1])])])])]dnl
  22. [AC][_DEFUN([_gl_DEFUN_ONCE([$1])], [$2])])])
  23. # gl_00GNULIB
  24. # -----------
  25. # Witness macro that this file has been included. Needed to force
  26. # Automake to include this file prior to all other gnulib .m4 files.
  27. AC_DEFUN([gl_00GNULIB])