diff options
author | Antony Dovgal <tony2001@php.net> | 2005-01-18 21:16:32 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2005-01-18 21:16:32 +0000 |
commit | 84fe72612ed75ce8fa2075123c6600d872e4fa74 (patch) | |
tree | 8e352cff32f7a22b570219839541d4ee087dc465 /ext/odbc | |
parent | 023c1bccb3d7ccdbc8e670e392fa450866c35027 (diff) | |
download | php-git-84fe72612ed75ce8fa2075123c6600d872e4fa74.tar.gz |
add checks for libs & headers required by IBM DB2
Diffstat (limited to 'ext/odbc')
-rw-r--r-- | ext/odbc/config.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/odbc/config.m4 b/ext/odbc/config.m4 index 7e0f320477..9bb72284f8 100644 --- a/ext/odbc/config.m4 +++ b/ext/odbc/config.m4 @@ -194,6 +194,15 @@ AC_ARG_WITH(ibm-db2, ODBC_INCDIR=$withval/include ODBC_LIBDIR=$withval/$PHP_LIBDIR fi + + if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then + AC_MSG_ERROR([IBM DB2 header files not found]) + fi + + if ! test -f "$ODBC_LIBDIR/libdb2.so"; then + AC_MSG_ERROR([IBM DB2 required libraries not found]) + fi + ODBC_INCLUDE=-I$ODBC_INCDIR ODBC_LFLAGS=-L$ODBC_LIBDIR ODBC_TYPE=db2 |