source: trunk/src/binutils/intl/aclocal.m4@ 2052

Last change on this file since 2052 was 10, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 12.4 KB
Line 
1dnl aclocal.m4 generated automatically by aclocal 1.3
2
3dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
4dnl This Makefile.in is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11dnl PARTICULAR PURPOSE.
12
13# Like AC_CONFIG_HEADER, but automatically create stamp file.
14
15AC_DEFUN(AM_CONFIG_HEADER,
16[AC_PREREQ([2.12])
17AC_CONFIG_HEADER([$1])
18dnl When config.status generates a header, we must update the stamp-h file.
19dnl This file resides in the same directory as the config header
20dnl that is generated. We must strip everything past the first ":",
21dnl and everything past the last "/".
22AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
23ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
24<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
25<<am_indx=1
26for am_file in <<$1>>; do
27 case " <<$>>CONFIG_HEADERS " in
28 *" <<$>>am_file "*<<)>>
29 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
30 ;;
31 esac
32 am_indx=`expr "<<$>>am_indx" + 1`
33done<<>>dnl>>)
34changequote([,]))])
35
36
37# serial 1
38
39AC_DEFUN(AM_PROG_INSTALL,
40[AC_REQUIRE([AC_PROG_INSTALL])
41test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
42AC_SUBST(INSTALL_SCRIPT)dnl
43])
44
45# This file is derived from `gettext.m4'. The difference is that the
46# included macros assume Cygnus-style source and build trees.
47
48# Macro to add for using GNU gettext.
49# Ulrich Drepper <[email protected]>, 1995.
50#
51# This file file be copied and used freely without restrictions. It can
52# be used in projects which are not available under the GNU Public License
53# but which still want to provide support for the GNU gettext functionality.
54# Please note that the actual code is *not* freely available.
55
56# serial 3
57
58AC_DEFUN(CY_WITH_NLS,
59 [AC_MSG_CHECKING([whether NLS is requested])
60 dnl Default is enabled NLS
61 AC_ARG_ENABLE(nls,
62 [ --disable-nls do not use Native Language Support],
63 USE_NLS=$enableval, USE_NLS=yes)
64 AC_MSG_RESULT($USE_NLS)
65 AC_SUBST(USE_NLS)
66
67 USE_INCLUDED_LIBINTL=no
68
69 dnl If we use NLS figure out what method
70 if test "$USE_NLS" = "yes"; then
71 AC_DEFINE(ENABLE_NLS)
72 AC_MSG_CHECKING([whether included gettext is requested])
73 AC_ARG_WITH(included-gettext,
74 [ --with-included-gettext use the GNU gettext library included here],
75 nls_cv_force_use_gnu_gettext=$withval,
76 nls_cv_force_use_gnu_gettext=no)
77 AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
78
79 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
80 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
81 dnl User does not insist on using GNU NLS library. Figure out what
82 dnl to use. If gettext or catgets are available (in this order) we
83 dnl use this. Else we have to fall back to GNU NLS library.
84 dnl catgets is only used if permitted by option --with-catgets.
85 nls_cv_header_intl=
86 nls_cv_header_libgt=
87 CATOBJEXT=NONE
88
89 AC_CHECK_HEADER(libintl.h,
90 [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
91 [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],