From 30fab6eaf9eb61c65b3b46987442be058cbd7823 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Tue, 3 May 2016 02:50:01 -0500 Subject: [PATCH] Close: https://bugs.php.net/bug.php?id=69785 --- config.m4 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/config.m4 b/config.m4 index ee878a1..396e771 100644 --- a/config.m4 +++ b/config.m4 @@ -1,5 +1,15 @@ dnl $Id$ dnl config.m4 for extension gnupg +AC_CANONICAL_HOST +case $host_os in + *BSD*) + GNUPG_DL="" + ;; + *) + GNUPG_DL="-ldl" + ;; +esac + PHP_ARG_WITH(gnupg, for gnupg support, [ --with-gnupg[=dir] Include gnupg support]) @@ -36,7 +46,7 @@ if test "$PHP_GNUPG" != "no"; then ],[ AC_MSG_ERROR([wrong gpgme lib version or lib not found]) ],[ - -L$GNUPG_DIR/lib -lm -ldl + -L$GNUPG_DIR/lib -lm $GNUPG_DL ]) PHP_SUBST(GNUPG_SHARED_LIBADD)