summaryrefslogtreecommitdiff
path: root/m4/regex.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-07-04 01:46:01 +0000
committerJim Meyering <jim@meyering.net>1998-07-04 01:46:01 +0000
commite9a5c7551ce512177843563bf4e3090a8089fd11 (patch)
treeee0ae3c90c1acc406426f1485c2fcf713f8e7809 /m4/regex.m4
parentadfde624394b229879af0f0f2e5fa2b8ce51967d (diff)
downloadcoreutils-e9a5c7551ce512177843563bf4e3090a8089fd11.tar.xz
use $jm_with_regex, now $WITH_REGEX
Diffstat (limited to 'm4/regex.m4')
-rw-r--r--m4/regex.m421
1 files changed, 3 insertions, 18 deletions
diff --git a/m4/regex.m4 b/m4/regex.m4
index bf4d19489..0d55c4496 100644
--- a/m4/regex.m4
+++ b/m4/regex.m4
@@ -6,26 +6,11 @@ AC_DEFUN(jm_WITH_REGEX,
[
AC_ARG_WITH(included-regex,
[ --without-included-regex don't compile regex],
- USE_REGEX=$withval,
- USE_REGEX=yes)
-
- if test "$USE_REGEX" = yes; then
+ jm_with_regex=$withval,
+ jm_with_regex=yes)
+ if test "$jm_with_regex" = yes; then
LIBOBJS="$LIBOBJS regex.o"
-
- else
- if test x = y; then
- # This code is deliberately never run via ./configure.
- # FIXME: this is a hack to make autoheader put the corresponding
- # HAVE_* undef for this symbol in config.h.in. This saves me the
- # trouble of having to maintain the #undef in acconfig.h manually.
- AC_CHECK_FUNCS(LIBC_REGEX)
- fi
- # Defining it this way (rather than via AC_DEFINE) short-circuits the
- # autoheader check -- autoheader doesn't know it's already been taken
- # care of by the hack above.
- ac_kludge=HAVE_LIBC_REGEX
- AC_DEFINE_UNQUOTED($ac_kludge)
fi
]
)