aboutsummaryrefslogtreecommitdiffstats
path: root/extension/m4/progtest.m4
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-03-11 20:35:16 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-03-11 20:35:16 +0200
commit07f64759d541a033e79b232c4a186f4414ec811c (patch)
tree067613d8f9e80755fbb69c078c53b625a96fd308 /extension/m4/progtest.m4
parent28b143c3a489e2699834812214eeaa6347ac1c01 (diff)
downloadegawk-07f64759d541a033e79b232c4a186f4414ec811c.tar.gz
egawk-07f64759d541a033e79b232c4a186f4414ec811c.tar.bz2
egawk-07f64759d541a033e79b232c4a186f4414ec811c.zip
Make extension directory fully gettextized. Fixes autoreconf problems.
Diffstat (limited to 'extension/m4/progtest.m4')
-rw-r--r--extension/m4/progtest.m425
1 files changed, 12 insertions, 13 deletions
diff --git a/extension/m4/progtest.m4 b/extension/m4/progtest.m4
index 2d804ac9..0921e1e5 100644
--- a/extension/m4/progtest.m4
+++ b/extension/m4/progtest.m4
@@ -1,16 +1,16 @@
-# progtest.m4 serial 6 (gettext-0.18)
-dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, Inc.
+# progtest.m4 serial 7 (gettext-0.18.2)
+dnl Copyright (C) 1996-2003, 2005, 2008-2015 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.
dnl
-dnl This file can can be used in projects which are not available under
+dnl This file can be used in projects which are not available under
dnl the GNU General Public License or the GNU Library General Public
dnl License but which still want to provide support for the GNU gettext
dnl functionality.
dnl Please note that the actual code of the GNU gettext library is covered
dnl by the GNU Library General Public License, and the rest of the GNU
-dnl gettext package package is covered by the GNU General Public License.
+dnl gettext package is covered by the GNU General Public License.
dnl They are *not* in the public domain.
dnl Authors:
@@ -27,15 +27,14 @@ AC_DEFUN([AM_PATH_PROG_WITH_TEST],
# Prepare PATH_SEPARATOR.
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
- echo "#! /bin/sh" >conf$$.sh
- echo "exit 0" >>conf$$.sh
- chmod +x conf$$.sh
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -f conf$$.sh
+ # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
+ # contains only /bin. Note that ksh looks also at the FPATH variable,
+ # so we have to set that as well for the test.
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
+ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
+ || PATH_SEPARATOR=';'
+ }
fi
# Find out how to test for executable files. Don't use a zero-byte file,