diff --git a/ext/sybase_ct/config.m4 b/ext/sybase_ct/config.m4 index dcceab32e8b..d4ed5f70ac3 100644 --- a/ext/sybase_ct/config.m4 +++ b/ext/sybase_ct/config.m4 @@ -8,7 +8,7 @@ PHP_ARG_WITH(sybase-ct, for Sybase-CT support, if test "$PHP_SYBASE_CT" != "no"; then - if test "$PHP_SYBASE" != "no"; then + if test "$PHP_SYBASE" != "no" && test "$ext_shared" = "no"; then AC_MSG_ERROR([You can not use both --with-sybase and --with-sybase-ct in same build!]) fi