[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trans-coord/gnun/server/gnun ChangeLog configur...
From: |
Pavel Kharitonov |
Subject: |
trans-coord/gnun/server/gnun ChangeLog configur... |
Date: |
Tue, 15 Nov 2011 16:28:50 +0000 |
CVSROOT: /sources/trans-coord
Module name: trans-coord
Changes by: Pavel Kharitonov <ineiev> 11/11/15 16:28:50
Modified files:
gnun/server/gnun: ChangeLog configure.ac
Log message:
Add some checks for GNUness of `sed'.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.212&r2=1.213
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/configure.ac?cvsroot=trans-coord&r1=1.26&r2=1.27
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.212
retrieving revision 1.213
diff -u -b -r1.212 -r1.213
--- ChangeLog 13 Nov 2011 11:19:02 -0000 1.212
+++ ChangeLog 15 Nov 2011 16:28:49 -0000 1.213
@@ -1,3 +1,7 @@
+2011-11-15 Pavel Kharitonov <address@hidden>
+
+ * configure.ac: Add some checks for GNUness of `sed'.
+
2011-11-13 Pavel Kharitonov <address@hidden>
Add support for localized URLs (in particular, localized
Index: configure.ac
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/configure.ac,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- configure.ac 5 Nov 2011 04:16:20 -0000 1.26
+++ configure.ac 15 Nov 2011 16:28:49 -0000 1.27
@@ -44,6 +44,48 @@
AC_ARG_VAR([SED], [the `sed' program])
AC_PROG_SED
+
+# We really really really depend on GNU sed.
+AC_MSG_CHECKING([whether sed supports --in-place option])
+cat > conftest0.sed <<'EOF'
+lorem ipsum dolor sit amet
+EOF
+sedtest=s/lor/minator/g
+${SED} ${sedtest} < conftest0.sed > conftest.sed
+${SED} --in-place ${sedtest} conftest0.sed
+AS_IF(
+[test $? = 0 && cmp -s conftest0.sed conftest.sed],
+[AC_MSG_RESULT([yes])],
+[AC_MSG_ERROR([
+
+Unlike GNU sed, the `sed' program doesn't support --in-place option.
+])
+])
+
+AC_MSG_CHECKING([whether sed supports the `e' option of the `s' command])
+test="$(echo false | ${SED} 's/.*/true/e')"
+AS_IF([test $? = 0 -a x"${test}" = x],
+[AC_MSG_RESULT([yes])],
+[AC_MSG_ERROR([
+
+Unlike GNU sed, the `sed' program doesn't support the `e' option
+of the `s' command.
+])
+])
+
+AC_MSG_CHECKING([whether sed supports the `q' command with an exit code])
+echo seventeen | ${SED} -n '1 {q 17}' > /dev/null
+result=$?
+echo zero | ${SED} -n '1 {q 0}' > /dev/null
+AS_IF([test ${result} = 17 -a $? = 0],
+[AC_MSG_RESULT([yes])],
+[AC_MSG_ERROR([
+
+Unlike GNU sed, the `sed' program doesn't support the `q' command
+with an exit code.
+])
+])
+
AC_ARG_VAR([GREP], [the `grep' program])
AC_ARG_VAR([EGREP], [the `egrep' program])
AC_PROG_EGREP
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- trans-coord/gnun/server/gnun ChangeLog configur...,
Pavel Kharitonov <=