From fadd1472ea0574fa85ebf88dc23ab32f0b9215d1 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 4 Jun 2001 02:04:46 +0000 Subject: [PATCH] Fix bug: #9713 --- ext/standard/config.m4 | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index 120e19ac140..4f68ecde38d 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -199,8 +199,23 @@ AC_FLUSH_IO divert(5)dnl AC_ARG_WITH(regex, -[ --with-regex=TYPE regex library type: system, apache, php],[ - REGEX_TYPE=$withval +[ --with-regex=TYPE regex library type: system, apache, php], +[ + case $withval in + system) + REGEX_TYPE=system + ;; + apache) + REGEX_TYPE=apache + ;; + php) + REGEX_TYPE=php + ;; + *) + REGEX_TYPE=php + AC_MSG_WARN(Invalid regex library type. Using default value: php) + ;; + esac ],[ REGEX_TYPE=php ])