#define HAVE_SQL_EXTENDED_FETCH 1
#define SQL_SUCCEEDED(rc) (((rc)&(~1))==0)
+#elif defined(HAVE_SAPDB) /* SAP DB */
+
+#define ODBC_TYPE "SAP DB"
+#include <WINDOWS.H>
+#include <sql.h>
+#include <sqlext.h>
+#define HAVE_SQL_EXTENDED_FETCH 1
+#define SQL_SUCCEEDED(rc) (((rc)&(~1))==0)
+
#elif defined(HAVE_IODBC) /* iODBC library */
#define ODBC_TYPE "iODBC"
#if defined( HAVE_IBMDB2 ) || defined( HAVE_UNIXODBC )
SQLHANDLE henv;
SQLHANDLE hdbc;
-#elif defined( HAVE_SOLID_35 )
+#elif defined( HAVE_SOLID_35 ) || defined( HAVE_SAPDB )
SQLHENV henv;
SQLHDBC hdbc;
#else
typedef struct odbc_result {
#if defined( HAVE_IBMDB2 ) || defined( HAVE_UNIXODBC )
SQLHANDLE stmt;
-#elif defined( HAVE_SOLID_35 )
+#elif defined( HAVE_SOLID_35 ) || defined( HAVE_SAPDB )
SQLHSTMT stmt;
#else
HSTMT stmt;
#if defined( HAVE_IBMDB2 ) || defined( HAVE_UNIXODBC )
#define ODBC_SQL_ERROR_PARAMS SQLHANDLE henv, SQLHANDLE conn, SQLHANDLE stmt, char *func
-#elif defined( HAVE_SOLID_35 )
+#elif defined( HAVE_SOLID_35 ) || defined( HAVE_SAPDB )
#define ODBC_SQL_ERROR_PARAMS SQLHENV henv, SQLHDBC conn, SQLHSTMT stmt, char *func
#else
#define ODBC_SQL_ERROR_PARAMS HENV henv, HDBC conn, HSTMT stmt, char *func
# unixODBC
if test "$option_value_with_solid" = "no" -a \
- "$option_value_with_empress" = "no"; then
+ "$option_value_with_empress" = "no" -a \
+ "$option_value_with_iodbc" = "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
# ESOOB
if test "$option_value_with_solid" = "no" -a \
- "$option_value_with_empress" = "no"; then
+ "$option_value_with_empress" = "no" -a \
+ "$option_value_with_iodbc" = "no" -a \
+ "$option_value_with_unixODBC" = "no"; then
define_option with-esoob 'Easysoft ODBC-ODBC Bridge support?' yesnodir \
'no /usr/local/easysoft/oob/client ESOOB install' \
' Whether to build PHP with Easysoft ODBC-ODBC Bridge support.\n
# OpenLink
if test "$option_value_with_solid" = "no" -a \
"$option_value_with_empress" = "no" -a \
- "$option_value_with_iodbc" = "no"; then
+ "$option_value_with_iodbc"" = "no" -a \
+ "$option_value_with_unixODBC" = "no" -a \
+ "$option_value_with_esoob" = "no"; then
define_option with-openlink 'OpenLink ODBC support?' yesnodir \
'no /usr/local/openlink OpenLink install' \
' Whether to build PHP with OpenLink ODBC support. See
if test "$option_value_with_solid" = "no" -a \
"$option_value_with_empress" = "no" -a \
"$option_value_with_iodbc" = "no" -a \
+ "$option_value_with_unixODBC" = "no" -a \
+ "$option_value_with_esoob" = "no" -a \
"$option_value_with_openlink" = "no"; then
define_option with-adabas 'Adabas D support?' yesnodir \
'no /usr/local Adabas D install root' \
if test "$option_value_with_solid" = "no" -a \
"$option_value_with_empress" = "no" -a \
"$option_value_with_iodbc" = "no" -a \
+ "$option_value_with_unixODBC" = "no" -a \
+ "$option_value_with_esoob" = "no" -a \
"$option_value_with_openlink" = "no" -a \
"$option_value_with_adabas" = "no"; then
define_option with-velocis 'Velocis support?' yesnodir \
if test "$option_value_with_solid" = "no" -a \
"$option_value_with_empress" = "no" -a \
"$option_value_with_iodbc" = "no" -a \
+ "$option_value_with_unixODBC" = "no" -a \
+ "$option_value_with_esoob" = "no" -a \
"$option_value_with_openlink" = "no" -a \
"$option_value_with_adabas" = "no" -a \
"$option_value_with_velocis" = "no"; then
More information about DBMaker can be found at http://www.casemaker.com/.'
fi
-# Custom ODBC
+# SAP DB
if test "$option_value_with_solid" = "no" -a \
"$option_value_with_empress" = "no" -a \
"$option_value_with_iodbc" = "no" -a \
+ "$option_value_with_unixODBC" = "no" -a \
+ "$option_value_with_esoob" = "no" -a \
"$option_value_with_openlink" = "no" -a \
"$option_value_with_adabas" = "no" -a \
- "$option_value_with_velocis" = "no"; -a \
+ "$option_value_with_velocis" = "no" -a \
"$option_value_with_dbmaker" = "no"; then
+define_option with-sapdb 'SAP DB support?' yesnodir \
+ 'no /usr/local SAP DB install' \
+' Whether to build PHP with SAP DB support. \n
+ More information about SAP DB can be found at http://www.sapdb.org.'
+fi
+
+# Custom ODBC
+if test "$option_value_with_solid" = "no" -a \
+ "$option_value_with_empress" = "no" -a \
+ "$option_value_with_iodbc" = "no" -a \
+ "$option_value_with_unixODBC" = "no" -a \
+ "$option_value_with_esoob" = "no" -a \
+ "$option_value_with_openlink" = "no" -a \
+ "$option_value_with_adabas" = "no" -a \
+ "$option_value_with_velocis" = "no" -a \
+ "$option_value_with_dbmaker" = "no" -a \
+ "$option_value_with_sapdb" = "no"; then
define_option with-custom-odbc 'custom ODBC support?' yesnodir \
'no /usr/local CODBC install' \
' Whether to build PHP with CODBC support. This feature was first
developed for Sybase SQL Anywhere 5.5 on QNX, but may be used for
any unknown ODBC driver on all flavors of UNIX.'
fi
+