]> granicus.if.org Git - php/commitdiff
fix broken m4, you should have all checking code withing your withval test
authorJason Greene <jason@php.net>
Tue, 13 Mar 2001 22:44:49 +0000 (22:44 +0000)
committerJason Greene <jason@php.net>
Tue, 13 Mar 2001 22:44:49 +0000 (22:44 +0000)
-Jason

ext/fbsql/config.m4

index b3ab2fb8a3bb096d5b8f847dfbe3a8a24ef12ff1..d3e891ed304e36b6e2c743ddd521caf6ee1e0259 100644 (file)
@@ -7,35 +7,35 @@ PHP_ARG_WITH(fbsql, for FrontBase SQL92 (fbsql) support,
 if test "$PHP_FBSQL" != "no"; then
   AC_DEFINE(HAVE_FBSQL, 1, [Whether you have FrontBase])
   PHP_EXTENSION(fbsql,$ext_shared)
-fi
 
-FBSQL_INSTALLATION_DIR=""
-if test "$PHP_FBSQL" = "yes"; then
-  for i in /Local/Library /usr /usr/local /opt /Library
-  do
-     if test -f $i/FrontBase/include/FBCAccess/FBCAccess.h
-     then
-         FBSQL_INSTALLATION_DIR=$i/FrontBase
-         break
-     fi
-  done
-  if test -z "$FBSQL_INSTALLATION_DIR"
-  then
-     AC_MSG_ERROR(Cannot find FrontBase in well know installation directories)
-  fi
-elif  test "$PHP_FBSQL" != "no"; then
-  if test -f $PHP_FBSQL/include/FBCAccess/FBCAccess.h
+
+  FBSQL_INSTALLATION_DIR=""
+  if test "$PHP_FBSQL" = "yes"; then
+    for i in /Local/Library /usr /usr/local /opt /Library
+    do
+       if test -f $i/FrontBase/include/FBCAccess/FBCAccess.h
+       then
+           FBSQL_INSTALLATION_DIR=$i/FrontBase
+           break
+       fi
+    done
+    if test -z "$FBSQL_INSTALLATION_DIR"
+    then
+       AC_MSG_ERROR(Cannot find FrontBase in well know installation directories)
+    fi
+  elif  test "$PHP_FBSQL" != "no"; then
+    if test -f $PHP_FBSQL/include/FBCAccess/FBCAccess.h
+    then
+       FBSQL_INSTALLATION_DIR=$PHP_FBSQL
+    else
+       AC_MSG_ERROR(Directory $PHP_FBSQL is not a FrontBase installation directory)
+    fi
+  fi  
+
+  if test ! -f "$FBSQL_INSTALLATION_DIR/lib/libFBCAccess.a"
   then
-     FBSQL_INSTALLATION_DIR=$PHP_FBSQL
-  else
-     AC_MSG_ERROR(Directory $PHP_FBSQL is not a FrontBase installation directory)
+     AC_MSG_ERROR(Could not find $FBSQL_INSTALLATION_DIR/lib/libFBCAccess.a)
   fi
-fi 
-
-if test ! -f "$FBSQL_INSTALLATION_DIR/lib/libFBCAccess.a"
-then
-   AC_MSG_ERROR(Could not find $FBSQL_INSTALLATION_DIR/lib/libFBCAccess.a)
+  AC_ADD_LIBRARY_WITH_PATH(FBCAccess, $FBSQL_INSTALLATION_DIR/lib, $FBSQL_INSTALLATION_DIR/lib)
+  AC_ADD_INCLUDE($FBSQL_INSTALLATION_DIR/include)
 fi
-AC_ADD_LIBRARY_WITH_PATH(FBCAccess, $FBSQL_INSTALLATION_DIR/lib, $FBSQL_INSTALLATION_DIR/lib)
-AC_ADD_INCLUDE($FBSQL_INSTALLATION_DIR/include)
-