Skip to content

Commit c2988bb

Browse files
derickrjmikola
authored andcommitted
PHPC-888: Make sure you can only select "darwin" on macOS
1 parent 0f8598f commit c2988bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/build/autotools/CheckSSL.m4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ AS_IF([test "$PHP_MONGODB_SSL" = "libressl" -o "$PHP_MONGODB_SSL" = "auto"],[
144144
])
145145

146146
AS_IF([test "$PHP_MONGODB_SSL" = "darwin" -o \( "$PHP_MONGODB_SSL" = "auto" -a "$os_darwin" = "yes" \)],[
147+
if test "$os_darwin" = "no"; then
148+
AC_MSG_ERROR([Darwin SSL is only supported on macOS])
149+
fi
147150
dnl PHP_FRAMEWORKS is only used for SAPI builds, so use MONGODB_SHARED_LIBADD for shared builds
148151
if test "$ext_shared" = "yes"; then
149152
MONGODB_SHARED_LIBADD="-framework Security -framework CoreFoundation $MONGODB_SHARED_LIBADD"

0 commit comments

Comments
 (0)