summaryrefslogtreecommitdiffstats
path: root/grpc-openssl.patch
blob: 8cb1f5e0c737b0efe5bb08a2a25251ed38a7051b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- ./config.m4.old	2024-08-13 12:14:53.273367368 +0200
+++ ./config.m4	2024-08-13 12:20:46.644703516 +0200
@@ -2,7 +2,15 @@
 [  --enable-grpc           Enable grpc support])
 
 if test "$PHP_GRPC" != "no"; then
-  dnl Write more examples of tests here...
+  PHP_ARG_WITH(openssl-dir, for OpenSSL installation prefix,
+  [  --with-openssl-dir[=DIR]  Event: openssl installation prefix], yes, no)
+  PHP_SETUP_OPENSSL(GRPC_SHARED_LIBADD,
+  [
+  ], [
+    AC_MSG_ERROR([OpenSSL libraries not found.
+      Check whether openssl is on your PKG_CONFIG_PATH and the output in config.log)
+    ])
+  ])
 
   dnl # --with-grpc -> add include path
   PHP_ADD_INCLUDE(PHP_EXT_SRCDIR()/include)