From 6bd710afa36ca18289ee2ba4225919c44c1aee42 Mon Sep 17 00:00:00 2001
From: Michele Locati <michele@locati.it>
Date: Mon, 23 Dec 2019 09:45:57 +0100
Subject: [PATCH] Fix ldap on Alpine

Test: ldap
---
 install-php-extensions | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/install-php-extensions b/install-php-extensions
index 3062bab..4b3fbe6 100755
--- a/install-php-extensions
+++ b/install-php-extensions
@@ -765,7 +765,11 @@ installBundledModule() {
 			esac
 			;;
 		ldap)
-			docker-php-ext-configure ldap --with-libdir=lib/$(gcc -dumpmachine)
+			case "$(getDistro)" in
+				debian)
+					docker-php-ext-configure ldap --with-libdir=lib/$(gcc -dumpmachine)
+					;;
+			esac
 			;;
 		mssql | pdo_dblib)
 			case "$1" in