File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,14 @@ if test "$PHP_CURL" != "no"; then
17
17
break
18
18
fi
19
19
done
20
+ if which dpkg-architecture; then
21
+ AC_MSG_CHECKING ( for cURL in multiarch path )
22
+ CURL_MULTIARCH_INCLUDE=/usr/include/$(dpkg-architecture -qDEB_HOST_MULTIARCH)
23
+ if test -r $CURL_MULTIARCH_INCLUDE/curl/easy.h; then
24
+ CURL_DIR=/usr
25
+ AC_MSG_RESULT ( found in $CURL_MULTIARCH_INCLUDE )
26
+ fi
27
+ fi
20
28
fi
21
29
22
30
if test -z "$CURL_DIR"; then
@@ -45,7 +53,11 @@ if test "$PHP_CURL" != "no"; then
45
53
AC_MSG_ERROR ( cURL version 7.10.5 or later is required to compile php with cURL support )
46
54
fi
47
55
48
- PHP_ADD_INCLUDE($CURL_DIR/include)
56
+ if test -z "$CURL_MULTIARCH_INCLUDE"; then
57
+ PHP_ADD_INCLUDE($CURL_DIR/include)
58
+ else
59
+ PHP_ADD_INCLUDE($CURL_MULTIARCH_INCLUDE)
60
+ fi
49
61
PHP_EVAL_LIBLINE($CURL_LIBS, CURL_SHARED_LIBADD)
50
62
PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/$PHP_LIBDIR, CURL_SHARED_LIBADD)
51
63
You can’t perform that action at this time.
0 commit comments