diff options
author | foobar <sniper@php.net> | 2003-03-11 03:11:36 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-03-11 03:11:36 +0000 |
commit | 9e501d4f37a32c79c7aec57b412a55f6012874dc (patch) | |
tree | f550ba167a2ac93f684ef3f6f87e8d23a6967368 /ext/odbc/config.m4 | |
parent | 65b9a406401188ad4f7cadba35c27ec83a6ebd73 (diff) | |
download | php-git-9e501d4f37a32c79c7aec57b412a55f6012874dc.tar.gz |
- Fixed bug #20715 (odbc could not be compiled as shared extension)
Diffstat (limited to 'ext/odbc/config.m4')
-rw-r--r-- | ext/odbc/config.m4 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/odbc/config.m4 b/ext/odbc/config.m4 index 0c1e154e3d..98934a59dc 100644 --- a/ext/odbc/config.m4 +++ b/ext/odbc/config.m4 @@ -537,11 +537,12 @@ fi if test -n "$ODBC_TYPE"; then if test "$ODBC_TYPE" != "dbmaker"; then - if test "$shared" != "yes"; then - PHP_EVAL_LIBLINE([$ODBC_LFLAGS $ODBC_LIBS], ODBC_SHARED_LIBADD) - fi + ext_shared=$shared + PHP_EVAL_LIBLINE([$ODBC_LFLAGS $ODBC_LIBS], ODBC_SHARED_LIBADD) fi + AC_DEFINE(HAVE_UODBC,1,[ ]) + PHP_SUBST(ODBC_SHARED_LIBADD) PHP_SUBST(ODBC_INCDIR) PHP_SUBST(ODBC_LIBDIR) PHP_SUBST_OLD(ODBC_INCLUDE) @@ -549,5 +550,5 @@ if test -n "$ODBC_TYPE"; then PHP_SUBST_OLD(ODBC_LFLAGS) PHP_SUBST_OLD(ODBC_TYPE) - PHP_NEW_EXTENSION(odbc, php_odbc.c, $shared,, $ODBC_INCLUDE) + PHP_NEW_EXTENSION(odbc, php_odbc.c, $ext_shared,, $ODBC_INCLUDE) fi |