Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autotools: Refactor configure options #524

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 32 additions & 14 deletions config.m4
Original file line number Diff line number Diff line change
@@ -1,17 +1,35 @@
PHP_ARG_WITH(xlswriter, xlswriter support,
[ --with-xlswriter Include xlswriter support], yes)

PHP_ARG_WITH(libxlsxwriter, system libxlsxwriter,
[ --with-libxlsxwriter=DIR Use system libxlsxwriter], no, no)

PHP_ARG_WITH(libxlsxio, system libxlsxio,
[ --with-libxlsxio=DIR Use system libxlsxio], no, no)

PHP_ARG_WITH(openssl, openssl MD5,
[ --with-openssl=DIR Use openssl MD5], no, no)

PHP_ARG_ENABLE(reader, enable xlsx reader support,
[ --enable-reader Enable xlsx reader?], yes, yes)
PHP_ARG_WITH([xlswriter],
[xlswriter support],
[AS_HELP_STRING([--without-xlswriter],
[Disable xlswriter support])],
[yes])

PHP_ARG_WITH([libxlsxwriter],
[system libxlsxwriter],
[AS_HELP_STRING([[--with-libxlsxwriter[=DIR]]],
[Use system libxlsxwriter])],
[no],
[no])

PHP_ARG_WITH([libxlsxio],
[system libxlsxio],
[AS_HELP_STRING([[--with-libxlsxio[=DIR]]],
[Use system libxlsxio])],
[no],
[no])

PHP_ARG_WITH([openssl],
[openssl MD5],
[AS_HELP_STRING([[--with-openssl[=DIR]]],
[Use openssl MD5])],
[no],
[no])

PHP_ARG_ENABLE([reader],
[whether to enable the xlsx reader support],
[AS_HELP_STRING([--disable-reader],
[Disable xlsx reader])],
[yes])

if test "$PHP_XLSWRITER" != "no"; then
xls_writer_sources="
Expand Down
24 changes: 20 additions & 4 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>2024-08-28</date>
<date>2024-09-04</date>
<time>00:00:00</time>
<version>
<release>1.5.6</release>
<api>1.5.6</api>
<release>1.5.7</release>
<api>1.5.7</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="https://github.com/viest/php-ext-excel-export/blob/master/LICENSE">BSD license</license>
<notes>
- Fix: format resource memory leak.
- Fix: insertDate memory leak.
</notes>
<contents>
<dir name="/">
Expand Down Expand Up @@ -318,6 +318,22 @@
<configureoption default="yes" name="enable-reader" prompt="enable reader supports?" />
</extsrcrelease>
<changelog>
<release>
<date>2024-08-28</date>
<time>00:00:00</time>
<version>
<release>1.5.6</release>
<api>1.5.6</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="https://github.com/viest/php-ext-excel-export/blob/master/LICENSE">BSD license</license>
<notes>
- Fix: format resource memory leak.
</notes>
</release>
<release>
<date>2023-05-15</date>
<time>00:00:00</time>
Expand Down
2 changes: 1 addition & 1 deletion php_xlswriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
extern zend_module_entry xlswriter_module_entry;
#define phpext_xlswriter_ptr &xlswriter_module_entry

#define PHP_XLSWRITER_VERSION "1.5.6"
#define PHP_XLSWRITER_VERSION "1.5.7"
#define PHP_XLSWRITER_AUTHOR "Jiexing.Wang ([email protected])"

extern int le_xls_writer;
Expand Down
Loading