]> granicus.if.org Git - php/commitdiff
Remove extraneous configure flag
authorSara Golemon <pollita@php.net>
Wed, 12 Jul 2017 02:12:56 +0000 (22:12 -0400)
committerSara Golemon <pollita@php.net>
Wed, 12 Jul 2017 02:12:58 +0000 (22:12 -0400)
--with-sodium --with-libsodium[=DIR] is inconsistent with
existing extensions. Unify these into a single
--with-sodium[=DIR] option

ext/sodium/config.m4

index dc7ffe1e8d1b4cc8b0d60611533e672d90b3d01a..f0fef93eb95b0228a9f88aa24a16246cc2bf03ac 100644 (file)
@@ -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