nls.m4 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # nls.m4 serial 2 (gettext-0.14.3)
  2. dnl Copyright (C) 1995-2003, 2005 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
  7. dnl This file can can be used in projects which are not available under
  8. dnl the GNU General Public License or the GNU Library General Public
  9. dnl License but which still want to provide support for the GNU gettext
  10. dnl functionality.
  11. dnl Please note that the actual code of the GNU gettext library is covered
  12. dnl by the GNU Library General Public License, and the rest of the GNU
  13. dnl gettext package package is covered by the GNU General Public License.
  14. dnl They are *not* in the public domain.
  15. dnl Authors:
  16. dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  17. dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  18. AC_PREREQ(2.50)
  19. AC_DEFUN([AM_NLS],
  20. [
  21. AC_MSG_CHECKING([whether NLS is requested])
  22. dnl Default is enabled NLS
  23. AC_ARG_ENABLE(nls,
  24. [ --disable-nls do not use Native Language Support],
  25. USE_NLS=$enableval, USE_NLS=yes)
  26. AC_MSG_RESULT($USE_NLS)
  27. AC_SUBST(USE_NLS)
  28. ])
  29. AC_DEFUN([AM_MKINSTALLDIRS],
  30. [
  31. dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing.
  32. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])])
  33. dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
  34. dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
  35. dnl Try to locate it.
  36. MKINSTALLDIRS=
  37. if test -n "$ac_aux_dir"; then
  38. case "$ac_aux_dir" in
  39. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  40. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  41. esac
  42. fi
  43. if test -z "$MKINSTALLDIRS"; then
  44. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  45. fi
  46. AC_SUBST(MKINSTALLDIRS)
  47. ])