Import of pkgsrc-2015Q3
This commit is contained in:
25
security/php-oauth/patches/patch-config.m4
Normal file
25
security/php-oauth/patches/patch-config.m4
Normal file
@@ -0,0 +1,25 @@
|
||||
$NetBSD: patch-config.m4,v 1.1 2015/09/03 06:19:26 fhajny Exp $
|
||||
|
||||
Make sure configure can find our curl.
|
||||
|
||||
--- config.m4.orig 1970-01-01 09:13:08.000000000 +0000
|
||||
+++ config.m4
|
||||
@@ -5,6 +5,9 @@ dnl
|
||||
PHP_ARG_ENABLE(oauth, for oauth support,
|
||||
[ --enable-oauth Include oauth support])
|
||||
|
||||
+PHP_ARG_WITH([curl], [whether to enable cURL engine support],
|
||||
+[ --with-curl[=PATH] Include cURL engine support], $PHP_OAUTH, $PHP_OAUTH)
|
||||
+
|
||||
if test "$PHP_OAUTH" != "no"; then
|
||||
PHP_SUBST(OAUTH_SHARED_LIBADD)
|
||||
|
||||
@@ -12,7 +15,7 @@ if test "$PHP_OAUTH" != "no"; then
|
||||
CFLAGS="$CFLAGS -Wall -g"
|
||||
|
||||
AC_MSG_CHECKING(for cURL in default path)
|
||||
- for i in /usr/local /usr; do
|
||||
+ for i in "$PHP_CURL" /usr/local /usr; do
|
||||
if test -r $i/include/curl/easy.h; then
|
||||
CURL_DIR=$i
|
||||
AC_MSG_RESULT(found in $i)
|
||||
Reference in New Issue
Block a user