Skip to content

Commit eb7b11c

Browse files
author
Dan Kalowsky
committed
Making --with-openlink work the same as --with-iodbc for it's eventual
disappearing act. # As requested by the Openlink Software people
1 parent 7dcb3cd commit eb7b11c

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

ext/odbc/config.m4

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -441,21 +441,25 @@ AC_MSG_CHECKING(for OpenLink ODBC support)
441441
AC_ARG_WITH(openlink,
442442
[ --with-openlink[=DIR] Include OpenLink ODBC support. DIR is the
443443
OpenLink base install directory, defaults to
444-
/usr/local/openlink.],
444+
/usr/local. This is the same as iODBC.],
445445
[
446446
PHP_WITH_SHARED
447447
if test "$withval" = "yes"; then
448-
withval=/usr/local/openlink
448+
withval=/usr/local
449449
fi
450450
if test "$withval" != "no"; then
451-
ODBC_INCDIR=$withval/odbcsdk/include
452-
ODBC_LIBDIR=$withval/odbcsdk/lib
453-
ODBC_LFLAGS=-L$ODBC_LIBDIR
454-
ODBC_INCLUDE=-I$ODBC_INCDIR
451+
PHP_ADD_LIBRARY_WITH_PATH(iodbc, $withval/lib)
452+
PHP_ADD_INCLUDE($withval/include, 1)
453+
ODBC_TYPE=iodbc
454+
ODBC_INCLUDE=-I$withval/include
455+
ODBC_LFLAGS=-L$withval/lib
455456
ODBC_LIBS=-liodbc
456-
ODBC_TYPE=openlink
457-
AC_DEFINE(HAVE_OPENLINK,1,[ ])
457+
AC_DEFINE(HAVE_IODBC,1,[ ])
458458
AC_MSG_RESULT(yes)
459+
echo "****************************************************************"
460+
echo " --with-openlink will not be valid in future releases. Please "
461+
echo " update your configure script to use --with-iodbc instead. "
462+
echo "****************************************************************"
459463
else
460464
AC_MSG_RESULT(no)
461465
fi

0 commit comments

Comments
 (0)