Skip to content

Commit 0b684e5

Browse files
cmb69remicollet
authored andcommitted
Add config.w32 to allow building on Windows (#4)
1 parent d6be44b commit 0b684e5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

config.w32

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ARG_ENABLE("xpass", "Enable xpass support", "no");
2+
3+
if (PHP_XPASS != "no") {
4+
if (CHECK_LIB("crypt.lib", "xpass", PHP_XPASS)
5+
&& CHECK_HEADER_ADD_INCLUDE("crypt.h", "CLFAGS_XPASS", PHP_XPASS)
6+
&& CHECK_LIB("bcrypt.lib", "xpass", PHP_XPASS)) {
7+
AC_DEFINE("HAVE_XPASS", 1, "Have xpass support");
8+
EXTENSION("xpass", "xpass.c");
9+
AC_DEFINE("HAVE_CRYPT_YESCRYPT", 1, "Have yescrypt hash support");
10+
AC_DEFINE("HAVE_CRYPT_SHA512", 1, "Have sha512 hash support");
11+
} else {
12+
WARNING("xpass not enabled; libraries and headers not found");
13+
}
14+
}

0 commit comments

Comments
 (0)