- if test "$ac_cv_glibc" = yes; then
- # Without this run-test, on older glibc2 systems we'd end up
- # using the buggy system regex.
- AC_CACHE_CHECK([for working re_compile_pattern],
- jm_cv_func_working_re_compile_pattern,
- AC_TRY_RUN(
- changequote(<<, >>)dnl
- <<
+ # However, if the system regex support is good enough that it passes the
+ # the following run test, then default to *not* using the included regex.c.
+ # If cross compiling, assume the test would fail and use the included
+ # regex.c. The failing regular expression is from `Spencer ere test #75'
+ # in grep-2.3.
+ AC_CACHE_CHECK([for working re_compile_pattern],
+ jm_cv_func_working_re_compile_pattern,
+ AC_TRY_RUN(
+ changequote(<<, >>)dnl
+ <<