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