diff options
author | Wez Furlong <wez@php.net> | 2005-06-11 13:27:50 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-06-11 13:27:50 +0000 |
commit | ecce72aa83e0a0ac078599561618c2ab04964a52 (patch) | |
tree | 80e0934b827bdaaaddb16f4d37c88924b0ca3d7a /ext/pdo_odbc | |
parent | 183c8aa287243d878bdd4b3dd8440ed50c75bb80 (diff) | |
download | php-git-ecce72aa83e0a0ac078599561618c2ab04964a52.tar.gz |
become a better config.m4 citizen
Diffstat (limited to 'ext/pdo_odbc')
-rwxr-xr-x | ext/pdo_odbc/config.m4 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/pdo_odbc/config.m4 b/ext/pdo_odbc/config.m4 index db7824a795..9385c8ba1d 100755 --- a/ext/pdo_odbc/config.m4 +++ b/ext/pdo_odbc/config.m4 @@ -30,10 +30,10 @@ AC_DEFUN([PDO_ODBC_CHECK_HEADER],[ if test "$PHP_PDO_ODBC" != "no"; then AC_MSG_CHECKING([for selected PDO ODBC flavour]) - pdo_odbc_flavour=`echo $withval | cut -d, -f1` - pdo_odbc_dir=`echo $withval | cut -d, -f2` + pdo_odbc_flavour=`echo $PHP_PDO_ODBC | cut -d, -f1` + pdo_odbc_dir=`echo $PHP_PDO_ODBC | cut -d, -f2` - if test "$pdo_odbc_dir" = "$withval" ; then + if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then pdo_odbc_dir="" fi @@ -107,6 +107,7 @@ if test "$PHP_PDO_ODBC" != "no"; then PDO_ODBC_LFLAGS="-L$PDO_ODBC_LIBDIR" PDO_ODBC_LIBS="$pdo_odbc_def_lib" + save_old_LDFLAGS="$LDFLAGS" LDFLAGS="$PDO_ODBC_LFLAGS $PDO_ODBC_LIBS -lm -ldl" dnl Check for an ODBC 1.0 function to assert that the libraries work AC_TRY_LINK_FUNC([SQLBindCol],[],[ |