nls.m4 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # nls.m4 serial 1 (gettext-0.12)
  2. dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
  3. dnl This file is free software, distributed under the terms of the GNU
  4. dnl General Public License. As a special exception to the GNU General
  5. dnl Public License, this file may be distributed as part of a program
  6. dnl that contains a configuration script generated by Autoconf, under
  7. dnl the same distribution terms as the rest of that program.
  8. dnl
  9. dnl This file can can be used in projects which are not available under
  10. dnl the GNU General Public License or the GNU Library General Public
  11. dnl License but which still want to provide support for the GNU gettext
  12. dnl functionality.
  13. dnl Please note that the actual code of the GNU gettext library is covered
  14. dnl by the GNU Library General Public License, and the rest of the GNU
  15. dnl gettext package package is covered by the GNU General Public License.
  16. dnl They are *not* in the public domain.
  17. dnl Authors:
  18. dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  19. dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  20. AC_DEFUN([AM_NLS],
  21. [
  22. AC_MSG_CHECKING([whether NLS is requested])
  23. dnl Default is enabled NLS
  24. AC_ARG_ENABLE(nls,
  25. [ --disable-nls do not use Native Language Support],
  26. USE_NLS=$enableval, USE_NLS=yes)
  27. AC_MSG_RESULT($USE_NLS)
  28. AC_SUBST(USE_NLS)
  29. ])
  30. AC_DEFUN([AM_MKINSTALLDIRS],
  31. [
  32. dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
  33. dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
  34. dnl Try to locate it.
  35. MKINSTALLDIRS=
  36. if test -n "$ac_aux_dir"; then
  37. case "$ac_aux_dir" in
  38. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  39. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  40. esac
  41. fi
  42. if test -z "$MKINSTALLDIRS"; then
  43. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  44. fi
  45. AC_SUBST(MKINSTALLDIRS)
  46. ])