Date: 08/16/99
- Next message: Mats.Bredell <email protected>: "[PHP-DEV] Bug #2071: Compilation error in "functions/sysvshm.c""
- Previous message: Daniel Fosselius: "[PHP-DEV] php or mysql problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Rasmus Lerdorf wrote:
>
> Send it to php-dev <email protected>/net, please.
Here is the patch mentioned below.
>
> On Mon, 16 Aug 1999, Nick Gorham wrote:
>
> > Hi,
> >
> > Not sure if anyone is interested or this is the place to send this, but
> > I have just done the mods to the ext/odbc files to enable them to link
> > against the unixODBC driver manager (http://www.unixodbc.org) If you
> > want I can send some patches (ps there also was a missing * in odbc.c on
> > line 943)
> >
> >
If there are any problems drop me a mail.
-- Nick Gorham, Easysoft, UK.
diff -u ./config.h.stub ../../../odbc/config.h.stub --- ./config.h.stub Tue Apr 20 02:23:32 1999 +++ ../../../odbc/config.h.stub Mon Aug 16 12:20:55 1999 @@ -1,5 +1,6 @@ #define HAVE_SOLID 0 #define HAVE_IODBC 0 +#define HAVE_UNIXODBC 0 #define HAVE_OPENLINK 0 #define HAVE_ADABAS 0 #define HAVE_CODBC 0 diff -u ./config.m4 ../../../odbc/config.m4 --- ./config.m4 Sun Aug 8 17:26:26 1999 +++ ../../../odbc/config.m4 Mon Aug 16 12:23:26 1999 @@ -223,6 +223,32 @@ fi if test -z "$ODBC_TYPE"; then +AC_MSG_CHECKING(for unixODBC support) +AC_ARG_WITH(unixODBC, +[ --with-unixODBC[=DIR] Include unixODBC support. DIR is the unixODBC base + install directory, defaults to /usr/local.], +[ + if test "$withval" = "yes"; then + withval=/usr/local + fi + if test "$withval" != "no"; then + ODBC_INCDIR=$withval/include + ODBC_LIBDIR=$withval/lib + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=-lodbc + ODBC_TYPE=unixODBC + AC_DEFINE(HAVE_UNIXODBC) + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi +],[ + AC_MSG_RESULT(no) +]) +fi + +if test -z "$ODBC_TYPE"; then AC_MSG_CHECKING(for OpenLink ODBC support) AC_ARG_WITH(openlink, [ --with-openlink[=DIR] Include OpenLink ODBC support. DIR is the diff -u ./odbc.c ../../../odbc/odbc.c --- ./odbc.c Mon Aug 9 17:35:47 1999 +++ ../../../odbc/odbc.c Mon Aug 16 13:03:30 1999 @@ -964,7 +964,7 @@ RETURN_FALSE; } #else - pval *arg1, *arr, tmp; + pval *arg1, *arr, *tmp; numArgs = ARG_COUNT(ht); diff -u ./php3_odbc.h ../../../odbc/php3_odbc.h --- ./php3_odbc.h Sun Aug 8 17:26:26 1999 +++ ../../../odbc/php3_odbc.h Mon Aug 16 13:02:56 1999 @@ -77,6 +77,13 @@ #define SQL_LEN_DATA_AT_EXEC_OFFSET (-100) #define SQL_LEN_DATA_AT_EXEC(length) (-(length)+SQL_LEN_DATA_AT_EXEC_OFFSET) +#elif HAVE_UNIXODBC /* unixODBC library */ + +#define ODBC_TYPE "unixODBC" +#include <sql.h> +#include <sqlext.h> +#define HAVE_SQL_EXTENDED_FETCH 1 + #elif HAVE_OPENLINK /* OpenLink ODBC drivers */ #define ODBC_TYPE "Openlink" diff -u ./setup.stub ../../../odbc/setup.stub --- ./setup.stub Mon Apr 19 16:04:11 1999 +++ ../../../odbc/setup.stub Mon Aug 16 12:20:24 1999 @@ -28,11 +28,24 @@ http://users.ids.net/~bjepson/freeODBC/.' fi +# unixODBC +if test "$option_value_with_solid" = "no" -a \ + "$option_value_with_empress" = "no"; then +define_option with-unixODBC 'unixODBC support?' yesnodir \ + 'no /usr/local unixODBC install' \ +' Whether to build PHP with unixODBC support. This feature was first\n + developed for unixODBC Driver Manager, a freely redistributable ODBC\n + driver manager which runs under many flavors of UNIX and conforms to\n + the ODBC 3.5 specification.\n + More info about unixODBC can be found on the unixODBC home page at \n + http://www.unixodbc.org' +fi + # OpenLink if test "$option_value_with_solid" = "no" -a \ "$option_value_with_empress" = "no" -a \ "$option_value_with_iodbc" = "no"; then -define_option with-openlink 'OpenLink ODBC support?' yesnodir \ +:define_option with-openlink 'OpenLink ODBC support?' yesnodir \ 'no /usr/local/openlink OpenLink install' \ ' Whether to build PHP with OpenLink ODBC support. See http://www.openlinksw.com/ for more information.'
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mats.Bredell <email protected>: "[PHP-DEV] Bug #2071: Compilation error in "functions/sysvshm.c""
- Previous message: Daniel Fosselius: "[PHP-DEV] php or mysql problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

