diff options
author | Dan Kalowsky <kalowsky@php.net> | 2001-07-06 14:30:34 +0000 |
---|---|---|
committer | Dan Kalowsky <kalowsky@php.net> | 2001-07-06 14:30:34 +0000 |
commit | eb7b11ce2e18c6bac58a1dc1eb294d6222f0de61 (patch) | |
tree | 3ceea0b6ec70eb73de141204bd220064aec9c932 | |
parent | 7dcb3cdfbd855a1f64f6c348e769c40e1cadf2ad (diff) | |
download | php-git-eb7b11ce2e18c6bac58a1dc1eb294d6222f0de61.tar.gz |
Making --with-openlink work the same as --with-iodbc for it's eventual
disappearing act.
# As requested by the Openlink Software people
-rw-r--r-- | ext/odbc/config.m4 | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/ext/odbc/config.m4 b/ext/odbc/config.m4 index cb85553a3a..aa2ea74b55 100644 --- a/ext/odbc/config.m4 +++ b/ext/odbc/config.m4 @@ -441,21 +441,25 @@ AC_MSG_CHECKING(for OpenLink ODBC support) AC_ARG_WITH(openlink, [ --with-openlink[=DIR] Include OpenLink ODBC support. DIR is the OpenLink base install directory, defaults to - /usr/local/openlink.], + /usr/local. This is the same as iODBC.], [ PHP_WITH_SHARED if test "$withval" = "yes"; then - withval=/usr/local/openlink + withval=/usr/local fi if test "$withval" != "no"; then - ODBC_INCDIR=$withval/odbcsdk/include - ODBC_LIBDIR=$withval/odbcsdk/lib - ODBC_LFLAGS=-L$ODBC_LIBDIR - ODBC_INCLUDE=-I$ODBC_INCDIR + PHP_ADD_LIBRARY_WITH_PATH(iodbc, $withval/lib) + PHP_ADD_INCLUDE($withval/include, 1) + ODBC_TYPE=iodbc + ODBC_INCLUDE=-I$withval/include + ODBC_LFLAGS=-L$withval/lib ODBC_LIBS=-liodbc - ODBC_TYPE=openlink - AC_DEFINE(HAVE_OPENLINK,1,[ ]) + AC_DEFINE(HAVE_IODBC,1,[ ]) AC_MSG_RESULT(yes) + echo "****************************************************************" + echo " --with-openlink will not be valid in future releases. Please " + echo " update your configure script to use --with-iodbc instead. " + echo "****************************************************************" else AC_MSG_RESULT(no) fi |