mirror of
https://github.com/php/php-src.git
synced 2024-12-22 00:10:16 +08:00
1b969a74d0
- HAVE_NET_SNMP removed viacab643f615
- HAVE_CRYPTO_AEAD_AES256GCMad120c5ae9
- Remove HAVE_FREETDS and HAVE_LIBDNET_STUB (not used in current extension; copy paste from other removed extensions) Closes GH-4448
14 lines
474 B
JavaScript
14 lines
474 B
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_WITH("sodium", "for libsodium support", "no");
|
|
|
|
if (PHP_SODIUM != "no") {
|
|
if (CHECK_LIB("libsodium.lib", "sodium", PHP_SODIUM) && CHECK_HEADER_ADD_INCLUDE("sodium.h", "CFLAGS_SODIUM")) {
|
|
EXTENSION("sodium", "libsodium.c sodium_pwhash.c");
|
|
AC_DEFINE('HAVE_LIBSODIUMLIB', 1 , 'Have the Sodium library');
|
|
PHP_INSTALL_HEADERS("ext/sodium/", "php_libsodium.h");
|
|
} else {
|
|
WARNING("libsodium not enabled; libraries and headers not found");
|
|
}
|
|
}
|