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