+2001-12-18 Bruno Haible <bruno@clisp.org>
+
+ * msgfilter-1: Avoid failure on Solaris, due to broken 'fold' program.
+ * msgfilter-2: Avoid failure on Solaris, due to inferior 'sed' program.
+ * lang-clisp: Avoid spurious stderr output on SunOS4.
+ * lang-librep: Likewise.
+ * lang-pascal: Likewise.
+ * lang-rst: Likewise.
+
2001-12-18 Bruno Haible <bruno@clisp.org>
* gettext-[12], msgcat-[1-7], msgcmp-[12], msgcomm-[1-9],
# Test for presence of clisp version 2.28 or newer.
# Use clisp for the comparison of the version numbers; neither 'expr' nor 'bc'
# can deal with floating-point numbers.
-clisp --version >/dev/null 2>/dev/null \
+(clisp --version) >/dev/null 2>/dev/null \
|| { echo "SKIP: lang-clisp"; rm -fr $tmpfiles; exit 77; }
version=`clisp --version | sed -e 's/^[^0-9]*//'`
case $version in
EOF
# Test for presence of rep.
-rep --version >/dev/null 2>/dev/null \
+(rep --version) >/dev/null 2>/dev/null \
|| { echo "SKIP: lang-librep"; rm -fr $tmpfiles; exit 77; }
LANGUAGE= LC_ALL=fr_FR rep --no-rc --batch prog.jl > prog.out || exit 1
EOF
tmpfiles="$tmpfiles prog.o prog.rst prog"
-ppc386 prog.pp >/dev/null 2>&1 || { echo "SKIP: lang-pascal"; rm -fr $tmpfiles; exit 77; }
+(ppc386 prog.pp) >/dev/null 2>&1 || { echo "SKIP: lang-pascal"; rm -fr $tmpfiles; exit 77; }
tmpfiles="$tmpfiles prog.pot"
: ${XGETTEXT=xgettext}
tmpfiles="$tmpfiles prog.pot"
: ${RSTCONV=rstconv}
-if ${RSTCONV} -o prog.pot -i prog.rst >/dev/null 2>&1; then
+if (${RSTCONV} -o prog.pot -i prog.rst) >/dev/null 2>&1; then
tmpfiles="$tmpfiles prog.ok"
cat <<EOF > prog.ok
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
+# Some fold programs (like SunOS4) don't have an option to wrap at spaces.
+echo abc | fold -b -s -w 20 >/dev/null 2>&1 || { echo "SKIP: msgfilter-1"; rm -fr $tmpfiles; exit 77; }
+
tmpfiles="$tmpfiles mfi-test1.po"
cat <<EOF > mfi-test1.po
# HEADER.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
+# Some sed programs (Solaris etc.) omit the last line if it ended without
+# a newline. We must skip this test when we encounter such a broken sed.
+
+if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
+ # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
+ if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
+ ac_n= ac_c='
+' ac_t=' '
+ else
+ ac_n=-n ac_c= ac_t=
+ fi
+else
+ ac_n= ac_c='\c' ac_t=
+fi
+
+sedoutput=`echo $ac_n "abc$ac_c" | sed -e s/x/x/`
+test -n "$sedoutput" || { echo "SKIP: msgfilter-2"; rm -fr $tmpfiles; exit 77; }
+
tmpfiles="$tmpfiles mfi-test2.po"
cat <<EOF > mfi-test2.po
# HEADER.