-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from yitam/sqlsrv-linux
Merging Sqlsrv source code from linux to windows
- Loading branch information
Showing
6 changed files
with
135 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
PHP_ARG_ENABLE(sqlsrv, whether to enable sqlsrv functions, | ||
[ --disable-sqlsrv Disable sqlsrv functions], yes) | ||
|
||
if test "$PHP_SQLSRV" != "no"; then | ||
sqlsrv_src_class="\ | ||
conn.cpp \ | ||
util.cpp \ | ||
init.cpp \ | ||
stmt.cpp \ | ||
" | ||
shared_src_class="\ | ||
shared/core_conn.cpp \ | ||
shared/core_results.cpp \ | ||
shared/core_stream.cpp \ | ||
shared/core_init.cpp \ | ||
shared/core_stmt.cpp \ | ||
shared/core_util.cpp \ | ||
shared/FormattedPrint.cpp \ | ||
shared/localizationimpl.cpp \ | ||
shared/StringFunctions.cpp \ | ||
" | ||
AC_MSG_CHECKING([for SQLSRV headers]) | ||
if test -f $srcdir/ext/sqlsrv/shared/core_sqlsrv.h; then | ||
sqlsrv_inc_path=$srcdir/ext/sqlsrv/shared/ | ||
elif test -f $srcdir/shared/core_sqlsrv.h; then | ||
sqlsrv_inc_path=$srcdir/shared/ | ||
else | ||
AC_MSG_ERROR([Cannot find SQLSRV headers]) | ||
fi | ||
AC_MSG_RESULT($sqlsrv_inc_path) | ||
|
||
CXXFLAGS="$CXXFLAGS -std=c++11" | ||
PHP_REQUIRE_CXX() | ||
PHP_ADD_LIBRARY(stdc++, 1, SQLSRV_SHARED_LIBADD) | ||
PHP_ADD_LIBRARY(odbc, 1, SQLSRV_SHARED_LIBADD) | ||
PHP_SUBST(SQLSRV_SHARED_LIBADD) | ||
AC_DEFINE(HAVE_SQLSRV, 1, [ ]) | ||
PHP_ADD_INCLUDE([$sqlsrv_inc_path]) | ||
PHP_NEW_EXTENSION(sqlsrv, $sqlsrv_src_class $shared_src_class, $ext_shared,,-std=c++11) | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.