diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-22 04:38:07 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-22 04:38:07 +0000 |
commit | 28ef1abc10cfbc2c3d2747c008eb2300858d0426 (patch) | |
tree | 41208fb8f393e6cb6cc8f939623ad47a0db17876 /m4/localename.m4 | |
download | grep-tarball-master.tar.gz |
Diffstat (limited to 'm4/localename.m4')
-rw-r--r-- | m4/localename.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/m4/localename.m4 b/m4/localename.m4 new file mode 100644 index 0000000..fc1d3ea --- /dev/null +++ b/m4/localename.m4 @@ -0,0 +1,17 @@ +# localename.m4 serial 2 +dnl Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_LOCALENAME], +[ + AC_REQUIRE([gt_LC_MESSAGES]) + AC_REQUIRE([gt_INTL_MACOSX]) + AC_CHECK_FUNCS([setlocale uselocale]) + dnl Solaris 12 provides getlocalename_l, while Illumos doesn't have + dnl it nor the equivalent. + if test $ac_cv_func_uselocale = yes; then + AC_CHECK_FUNCS([getlocalename_l]) + fi +]) |