Skip to content

Commit 1577206

Browse files
author
foobar
committed
MFH
1 parent 8962f15 commit 1577206

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

ext/standard/config.m4

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,23 @@ AC_FLUSH_IO
199199
divert(5)dnl
200200

201201
AC_ARG_WITH(regex,
202-
[ --with-regex=TYPE regex library type: system, apache, php],[
203-
REGEX_TYPE=$withval
202+
[ --with-regex=TYPE regex library type: system, apache, php],
203+
[
204+
case $withval in
205+
system)
206+
REGEX_TYPE=system
207+
;;
208+
apache)
209+
REGEX_TYPE=apache
210+
;;
211+
php)
212+
REGEX_TYPE=php
213+
;;
214+
*)
215+
REGEX_TYPE=php
216+
AC_MSG_WARN(Invalid regex library type. Using default value: php)
217+
;;
218+
esac
204219
],[
205220
REGEX_TYPE=php
206221
])

0 commit comments

Comments
 (0)