]> granicus.if.org Git - php/commitdiff
Bail out the given path does not have the libraries in it.
authorfoobar <sniper@php.net>
Fri, 12 Jul 2002 22:11:54 +0000 (22:11 +0000)
committerfoobar <sniper@php.net>
Fri, 12 Jul 2002 22:11:54 +0000 (22:11 +0000)
ext/imap/config.m4

index a2a0647895bee5e00e2d46b42ac824d7955c7832..6768dedf18011ec2c1bea0acac9dca05d1b3cfbd 100644 (file)
@@ -68,6 +68,12 @@ AC_DEFUN(PHP_IMAP_KRB_CHK, [
   fi
 
   if test "$PHP_KERBEROS" != "no"; then
+    if test ! -f $PHP_KERBEROS/lib/libkrb5.a && test ! -f $PHP_KERBEROS/lib/libkrb5.$SHLIB_SUFFIX_NAME; then
+      AC_MSG_ERROR([Kerberos libraries not found in $PHP_KERBEROS/lib. 
+      
+      Check the path given to --with-kerberos (if no path is given, defaults to /usr/kerberos )
+      ])
+    fi
     AC_DEFINE(HAVE_IMAP_KRB,1,[ ])
     PHP_ADD_LIBPATH($PHP_KERBEROS/lib, IMAP_SHARED_LIBADD)
     PHP_ADD_LIBRARY(gssapi_krb5, 1, IMAP_SHARED_LIBADD)