Fix a build issue again when no regex functions available
Reported by Jon TURNEY
This commit is contained in:
parent
9fa7b7c8f2
commit
22dc546090
|
@ -138,11 +138,9 @@ AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr strtol
|
||||||
#
|
#
|
||||||
# regex
|
# regex
|
||||||
#
|
#
|
||||||
use_regex=0
|
|
||||||
if test "x$ac_cv_func_regcomp" = "xyes" -a "x$ac_cv_func_regerror" = "xyes" -a "x$ac_cv_func_regexec" = "xyes" -a "x$ac_cv_func_regfree"; then
|
if test "x$ac_cv_func_regcomp" = "xyes" -a "x$ac_cv_func_regerror" = "xyes" -a "x$ac_cv_func_regexec" = "xyes" -a "x$ac_cv_func_regfree"; then
|
||||||
use_regex=1
|
AC_DEFINE(USE_REGEX,,[Use regex])
|
||||||
fi
|
fi
|
||||||
AC_DEFINE_UNQUOTED(USE_REGEX,$use_regex,[Use regex.])
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Checks for iconv
|
# Checks for iconv
|
||||||
|
|
|
@ -306,7 +306,7 @@ _FcStrRegexCmp (const FcChar8 *s, const FcChar8 *regex, int cflags, int eflags)
|
||||||
return ret == 0 ? FcTrue : FcFalse;
|
return ret == 0 ? FcTrue : FcFalse;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
# define _FcStrRegexCmp(_s_, _regex_) (FcFalse)
|
# define _FcStrRegexCmp(_s_, _regex_, _cflags_, _eflags_) (FcFalse)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FcBool
|
FcBool
|
||||||
|
|
Loading…
Reference in New Issue