Skip to content

Commit 94ec5c2

Browse files
author
Moriyoshi Koizumi
committed
- Let it work safely
1 parent bebddbd commit 94ec5c2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ext/mbstring/config.m4

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ AC_DEFUN([PHP_MBSTRING_EXTENSION], [
3434
PHP_ADD_BUILD_DIR([$ext_builddir/$dir])
3535
done
3636
37-
if test "$ext_shared" = "no" -o ! -e "$ext_builddir/config.h.in"; then
37+
if test "$ext_shared" = "no"; then
3838
out="php_config.h"
3939
else
40-
out="$abs_builddir/config.h"
40+
if test -e "$ext_builddir/config.h.in"; then
41+
out="$abs_builddir/config.h"
42+
else
43+
out="php_config.h"
44+
fi
4145
fi
4246
4347
for cfg in $PHP_MBSTRING_EXTRA_CONFIG_HEADERS; do

0 commit comments

Comments
 (0)