summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2024-12-11 08:08:37 +0100
committerRemi Collet <remi@php.net>2024-12-11 08:44:50 +0100
commit0b684e5be64069710ab5cd606f4f79e06e4c7363 (patch)
treefad7f19264cd8af891781058c7035dab24943390
parentd6be44b925f4145b7702d8985735997e3d22dc4f (diff)
Add config.w32 to allow building on Windows (#4)
-rw-r--r--config.w3214
1 files changed, 14 insertions, 0 deletions
diff --git a/config.w32 b/config.w32
new file mode 100644
index 0000000..5f8b6cf
--- /dev/null
+++ b/config.w32
@@ -0,0 +1,14 @@
+ARG_ENABLE("xpass", "Enable xpass support", "no");
+
+if (PHP_XPASS != "no") {
+ if (CHECK_LIB("crypt.lib", "xpass", PHP_XPASS)
+ && CHECK_HEADER_ADD_INCLUDE("crypt.h", "CLFAGS_XPASS", PHP_XPASS)
+ && CHECK_LIB("bcrypt.lib", "xpass", PHP_XPASS)) {
+ AC_DEFINE("HAVE_XPASS", 1, "Have xpass support");
+ EXTENSION("xpass", "xpass.c");
+ AC_DEFINE("HAVE_CRYPT_YESCRYPT", 1, "Have yescrypt hash support");
+ AC_DEFINE("HAVE_CRYPT_SHA512", 1, "Have sha512 hash support");
+ } else {
+ WARNING("xpass not enabled; libraries and headers not found");
+ }
+}