summaryrefslogtreecommitdiff
path: root/m4/lcmessage.m4
diff options
context:
space:
mode:
authorAlain Magloire <alainm@rcsm.ee.mcgill.ca>1998-11-08 22:54:40 +0000
committerAlain Magloire <alainm@rcsm.ee.mcgill.ca>1998-11-08 22:54:40 +0000
commitab54d900e8884a90129c629a592dbd9f0cdad36b (patch)
treed3ada05f637dc4125e5607d651ddc92e77a33bd3 /m4/lcmessage.m4
parent8e9318ef30f626a592428c4de92d7f6b96dd6d30 (diff)
downloadgrep-ab54d900e8884a90129c629a592dbd9f0cdad36b.tar.gz
update
use our own instead of default. now don't rely on matcher = argv[0] set explicitly at compilation. * src/grep.c: The Matcher is not set to argv[0] but explicitly by a #define MATCHER at compile time default is "grep".
Diffstat (limited to 'm4/lcmessage.m4')
-rw-r--r--m4/lcmessage.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/m4/lcmessage.m4 b/m4/lcmessage.m4
new file mode 100644
index 00000000..e31bb533
--- /dev/null
+++ b/m4/lcmessage.m4
@@ -0,0 +1,19 @@
+# Check whether LC_MESSAGES is available in <locale.h>.
+# Ulrich Drepper <drepper@cygnus.com>, 1995.
+#
+# This file can be copied and used freely without restrictions. It can
+# be used in projects which are not available under the GNU Public License
+# but which still want to provide support for the GNU gettext functionality.
+# Please note that the actual code is *not* freely available.
+
+# serial 1
+
+AC_DEFUN(AM_LC_MESSAGES,
+ [if test $ac_cv_header_locale_h = yes; then
+ AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
+ [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
+ am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
+ if test $am_cv_val_LC_MESSAGES = yes; then
+ AC_DEFINE(HAVE_LC_MESSAGES)
+ fi
+ fi])