Skip to content

Commit 76c143f

Browse files
committed
config.m4 default bundled md5
1 parent cd7e384 commit 76c143f

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

config.m4

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ PHP_ARG_WITH(libxlsxwriter, system libxlsxwriter,
77
PHP_ARG_WITH(libxlsxio, system libxlsxio,
88
[ --with-libxlsxio=DIR Use system libxlsxio], no, no)
99

10-
PHP_ARG_WITH(openssl_md5, openssl MD5,
11-
[ --with-openssl-md5=DIR Use openssl MD5], no, no)
12-
13-
PHP_ARG_WITH(bundled_md5, bundled MD5,
14-
[ --with-bundled-md5 Use bundled MD5], yes, yes)
10+
PHP_ARG_WITH(openssl, openssl MD5,
11+
[ --with-openssl=DIR Use openssl MD5], no, no)
1512

1613
PHP_ARG_ENABLE(reader, enable xlsx reader support,
1714
[ --enable-reader Enable xlsx reader?], yes, yes)
@@ -88,9 +85,9 @@ if test "$PHP_XLSWRITER" != "no"; then
8885

8986
AC_MSG_CHECKING([Check libxlsxwriter library])
9087

91-
if test "$PHP_OPENSSL_MD5" != "no"; then
88+
if test "$PHP_OPENSSL" != "no"; then
9289
AC_MSG_RESULT([use the openssl md5 library])
93-
for i in $PHP_OPENSSL_MD5 /usr/local /usr /usr/local/opt; do
90+
for i in $PHP_OPENSSL /usr/local /usr /usr/local/opt; do
9491
if test -r $i/include/openssl/md5.h; then
9592
OPENSSL_DIR=$i
9693
AC_MSG_RESULT([found in $i])
@@ -114,11 +111,7 @@ if test "$PHP_XLSWRITER" != "no"; then
114111

115112
AC_DEFINE(USE_OPENSSL_MD5, 1, [ use openssl md5 ])
116113
fi
117-
118-
PHP_BUNDLED_MD5=no
119-
fi
120-
121-
if test "$PHP_BUNDLED_MD5" != "no"; then
114+
else
122115
AC_MSG_RESULT([use the bundled md5 library])
123116
xls_writer_sources="$xls_writer_sources $md5_sources"
124117
fi

0 commit comments

Comments
 (0)