From 72edd0eea01cae8f2ca61b605c08d83f8d34fc4f Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 18 May 2005 06:12:51 +0000 Subject: [PATCH] add cache variable for -lcP test 2005-05-18 Maciej W. Rozycki * configure.ac: Use a cache variable for the libcP test. * configure: Regenerate. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-48 --- ChangeLog | 5 +++++ NEWS | 3 +++ THANKS | 1 + configure.ac | 12 +++++++----- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5ad06fa..217bbdd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-18 Maciej W. Rozycki + + * configure.ac: Use a cache variable for the libcP test. + * configure: Regenerate. + 2005-05-16 Eero Hakkinen * sed/compile.c (snarf_char_class): Fix handling of diff --git a/NEWS b/NEWS index 725240d..b0f3af5 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,8 @@ Sed 4.1.5 +* fix parsing of a negative character class not including a closed bracket, + like [^]] or [^]a-z]. + * output the result of commands a, r, R when a q command is found. ---------------------------------------------------------------------------- diff --git a/THANKS b/THANKS index 97445ec..db42f33 100644 --- a/THANKS +++ b/THANKS @@ -28,6 +28,7 @@ Karl Berry Karl Heuer Kaveh R. Ghazi Kevin Buettner +Maciej W. Rozycki Mark Kettenis Michael De La Rue Michel de Ruiter diff --git a/configure.ac b/configure.ac index ea48c5f..ae91ceb 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ AC_ISC_POSIX AC_SYS_LARGEFILE AC_SYS_LONG_FILE_NAMES -AC_MSG_CHECKING([whether -lcP is needed]) +AC_CACHE_CHECK([whether -lcP is needed], [sed_cv_libcp_needed], [ AC_TRY_RUN([ #include #include @@ -35,11 +35,13 @@ int main() result = fflush (fp) == EOF && errno == 0; fclose (fp); return result; -}], [AC_MSG_RESULT(no)], - [AC_MSG_RESULT(yes) - LIBS="-lcP $LIBS"], - [AC_MSG_RESULT([assuming no]) +}], [sed_cv_libcp_needed=no], + [sed_cv_libcp_needed=yes], + [sed_cv_libcp_needed="assuming no"]) ]) +if test "$sed_cv_libcp_needed" = yes; then + LIBS="-lcP $LIBS" +fi AC_HEADER_DIRENT AC_CHECK_HEADERS(io.h limits.h locale.h stdarg.h alloca.h stddef.h errno.h \