com php-src: Remove extraneous configure flag: ext/sodium/config.m4
| From: | Sara Golemon | Date: | Wed, 12 Jul 2017 02:12:58 +0000 |
| Subject: | com php-src: Remove extraneous configure flag: ext/sodium/config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98522@lists.php.net to get a copy of this message | ||
Commit: bf0f769d589f9533acd99541a437b2c0216e8065
Author: Sara Golemon <pollita@php.net> Tue, 11 Jul 2017 22:12:56 -0400
Parents: d1ee66655b9df3ad7f8cfc08790964b6b90558e5
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bf0f769d589f9533acd99541a437b2c0216e8065
Log:
Remove extraneous configure flag
--with-sodium --with-libsodium[=DIR] is inconsistent with
existing extensions. Unify these into a single
--with-sodium[=DIR] option
Changed paths:
M ext/sodium/config.m4
Diff:
diff --git a/ext/sodium/config.m4 b/ext/sodium/config.m4
index dc7ffe1..f0fef93 100644
--- a/ext/sodium/config.m4
+++ b/ext/sodium/config.m4
@@ -1,11 +1,8 @@
dnl $Id$
dnl config.m4 for extension sodium
-PHP_ARG_WITH(libsodium, for libsodium library location,
-[ --with-libsodium[[=DIR]] libsodium library location, else rely on pkg-config])
-
PHP_ARG_WITH(sodium, for sodium support,
-[ --with-sodium Include sodium support])
+[ --with-sodium[=DIR] Include sodium support])
if test "$PHP_SODIUM" != "no"; then
SEARCH_PATH="/usr/local /usr" # you might want to change this
@@ -15,9 +12,9 @@ if test "$PHP_SODIUM" != "no"; then
AC_MSG_CHECKING([for libsodium])
dnl user provided location
- if test -r $PHP_LIBSODIUM/$SEARCH_FOR; then # path given as parameter
- LIBSODIUM_DIR=$PHP_LIBSODIUM
- AC_MSG_RESULT([found in $PHP_LIBSODIUM])
+ if test -r $PHP_SODIUM/$SEARCH_FOR; then # path given as parameter
+ LIBSODIUM_DIR=$PHP_SODIUM
+ AC_MSG_RESULT([found in $PHP_SODIUM])
dnl pkg-config output
elif test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libsodium; then