gnulib-common.m4 880 B

12345678910111213141516171819202122
  1. # gnulib-common.m4 serial 2
  2. dnl Copyright (C) 2007 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. # gl_MODULE_INDICATOR([modulename])
  7. # defines a C macro indicating the presence of the given module.
  8. AC_DEFUN([gl_MODULE_INDICATOR],
  9. [
  10. AC_DEFINE([GNULIB_]translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1],
  11. [Define to 1 when using the gnulib module ]$1[.])
  12. ])
  13. # AC_PROG_MKDIR_P
  14. # is a backport of autoconf-2.60's AC_PROG_MKDIR_P.
  15. # Remove this macro when we can assume autoconf >= 2.60.
  16. m4_ifdef([AC_PROG_MKDIR_P], [], [
  17. AC_DEFUN([AC_PROG_MKDIR_P],
  18. [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
  19. MKDIR_P='$(mkdir_p)'
  20. AC_SUBST([MKDIR_P])])])