]> granicus.if.org Git - php/commitdiff
Prevent using both --with-sybase and --with-sybase-ct in same build
authorfoobar <sniper@php.net>
Thu, 13 Mar 2003 17:27:28 +0000 (17:27 +0000)
committerfoobar <sniper@php.net>
Thu, 13 Mar 2003 17:27:28 +0000 (17:27 +0000)
ext/sybase_ct/config.m4

index eb8f529ca5c40bcf318a7271b20640649fdc2b2b..8663d64dded2e90356c090983b1a6c0233b3b9d9 100644 (file)
@@ -6,6 +6,10 @@ PHP_ARG_WITH(sybase-ct, for Sybase-CT support,
 [  --with-sybase-ct[=DIR]  Include Sybase-CT support.  DIR is the Sybase home
                           directory. Defaults to /home/sybase.])
 
+if test "$PHP_SYBASE" != "no"; then
+  AC_MSG_ERROR([You can not use both --with-sybase and --with-sybase-ct in same build!])
+fi
+
 if test "$PHP_SYBASE_CT" != "no"; then
   AC_DEFINE(HAVE_SYBASE_CT,1,[ ])
   PHP_NEW_EXTENSION(sybase_ct, php_sybase_ct.c, $ext_shared)