diff options
author | foobar <sniper@php.net> | 2001-03-13 22:50:02 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-03-13 22:50:02 +0000 |
commit | 256537a7cffc4108ea524409cf66fc0ad0548bdc (patch) | |
tree | ae4d7556feeba8ba02a552c4eab6866f299ff9fc | |
parent | ba553edc06fda944cd370d3b9d5b29fb963ae66b (diff) | |
download | php-git-256537a7cffc4108ea524409cf66fc0ad0548bdc.tar.gz |
cleanup.
-rw-r--r-- | ext/fbsql/config.m4 | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/ext/fbsql/config.m4 b/ext/fbsql/config.m4 index d3e891ed30..01c30a292a 100644 --- a/ext/fbsql/config.m4 +++ b/ext/fbsql/config.m4 @@ -2,40 +2,40 @@ dnl $Id$ PHP_ARG_WITH(fbsql, for FrontBase SQL92 (fbsql) support, [ --with-fbsql[=DIR] Include FrontBase support. DIR is the FrontBase base - directory. .]) + directory.]) if test "$PHP_FBSQL" != "no"; then + AC_DEFINE(HAVE_FBSQL, 1, [Whether you have FrontBase]) PHP_EXTENSION(fbsql,$ext_shared) - 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 + + 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) + + 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 + + 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) + AC_MSG_ERROR(Directory $PHP_FBSQL is not a FrontBase installation directory) fi fi - if test ! -f "$FBSQL_INSTALLATION_DIR/lib/libFBCAccess.a" - then + if test -z "$FBSQL_INSTALLATION_DIR/lib/libFBCAccess.a"; then AC_MSG_ERROR(Could not find $FBSQL_INSTALLATION_DIR/lib/libFBCAccess.a) fi + AC_ADD_LIBRARY_WITH_PATH(FBCAccess, $FBSQL_INSTALLATION_DIR/lib, $FBSQL_INSTALLATION_DIR/lib) AC_ADD_INCLUDE($FBSQL_INSTALLATION_DIR/include) fi |