]> granicus.if.org Git - php/commitdiff
Now checks that the library really exists even if path is specified as /usr
authorfoobar <sniper@php.net>
Sat, 21 Oct 2000 00:35:10 +0000 (00:35 +0000)
committerfoobar <sniper@php.net>
Sat, 21 Oct 2000 00:35:10 +0000 (00:35 +0000)
PR: 7358

ext/dba/config.m4

index 93315fdb5c5a0e61434db3522d4d15ab4f4018d2..23f4cabe52f90a90ebe5237bd4e0038d07c7d832 100644 (file)
@@ -21,12 +21,11 @@ AC_DEFUN(AC_DBA_STD_ASSIGN,[
 dnl Standard check
 AC_DEFUN(AC_DBA_STD_CHECK,[
   THIS_RESULT="yes"
-  if test "$THIS_PREFIX" != "/usr"; then
-  if test "$THIS_INCLUDE" = "" ; then
+  if test "$THIS_PREFIX" != "/usr" -a "$THIS_INCLUDE" = ""; then
     AC_MSG_ERROR(cannot find necessary header file(s))
-  elif test "$THIS_LIBS" = "" ; then
-    AC_MSG_ERROR(cannot find necessary library)
   fi
+  if test "$THIS_LIBS" = "" ; then
+    AC_MSG_ERROR(cannot find necessary library)
   fi
 ])