in configure.ac, mention explicitly that the check for the broken

regexec() is needed for glibc 2.2.3


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2461 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-04-09 14:47:54 +00:00
parent 7accda6dd7
commit a3e5fad059
2 changed files with 4 additions and 2 deletions

View File

@ -100,6 +100,8 @@ CVS code -
well as curses, consolidate the warning and error messages well as curses, consolidate the warning and error messages
dealing with UTF-8 support as much as possible, and add a few dealing with UTF-8 support as much as possible, and add a few
minor consistency fixes. minor consistency fixes.
- Mention explicitly that the check for the broken regexec() is
needed for glibc 2.2.3. (DLR)
- nanorc.sample: - nanorc.sample:
- Fix the description for the whitespace option to mention that - Fix the description for the whitespace option to mention that
only single-column characters are allowed. (DLR) only single-column characters are allowed. (DLR)

View File

@ -42,7 +42,7 @@ dnl Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h getopt.h libintl.h limits.h regex.h termios.h wchar.h wctype.h) AC_CHECK_HEADERS(fcntl.h getopt.h libintl.h limits.h regex.h termios.h wchar.h wctype.h)
AC_CHECK_HEADER(regex.h, AC_CHECK_HEADER(regex.h,
AC_MSG_CHECKING([for broken regexec]) AC_MSG_CHECKING([for broken regexec from glibc 2.2.3])
AC_TRY_RUN([ AC_TRY_RUN([
#include <sys/types.h> #include <sys/types.h>
#include <regex.h> #include <regex.h>
@ -58,7 +58,7 @@ int main(void)
}], }],
AC_MSG_RESULT(no), AC_MSG_RESULT(no),
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
AC_DEFINE(BROKEN_REGEXEC, 1, [Define this if your regexec() function segfaults when passed an empty string under certain conditions.]), AC_DEFINE(BROKEN_REGEXEC, 1, [Define this if your regexec() function segfaults when passed an empty string under certain conditions, as the one from glibc 2.2.3 does.]),
AC_MSG_RESULT([cross-compiling; assuming no]))) AC_MSG_RESULT([cross-compiling; assuming no])))
dnl Checks for options. dnl Checks for options.