Mercurial > hg > octave-jordi > gnulib-hg
changeset 1418:2bff629b579f
use $jm_with_regex, now $WITH_REGEX
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 04 Jul 1998 01:46:01 +0000 |
parents | 317224592ba9 |
children | 6b89fe340316 |
files | m4/regex.m4 |
diffstat | 1 files changed, 4 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/regex.m4 +++ b/m4/regex.m4 @@ -6,26 +6,11 @@ [ AC_ARG_WITH(included-regex, [ --without-included-regex don't compile regex], - USE_REGEX=$withval, - USE_REGEX=yes) - - if test "$USE_REGEX" = yes; then - - LIBOBJS="$LIBOBJS regex.o" + jm_with_regex=$withval, + jm_with_regex=yes) - 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) + if test "$jm_with_regex" = yes; then + LIBOBJS="$LIBOBJS regex.o" fi ] )