Update for PHP 8.4 and my needs (packaging happens elsewhere)
This commit is contained in:
parent
96df2f4362
commit
89fe566573
11 changed files with 27 additions and 787 deletions
19
config.m4
19
config.m4
|
|
@ -1,16 +1,12 @@
|
|||
dnl $Id$
|
||||
dnl config.m4 for extension pdo_sqlcipher
|
||||
dnl vim:et:sw=2:ts=2:
|
||||
|
||||
PHP_ARG_ENABLE(pdo_sqlcipher, whether to enable pdo_sqlcipher support,
|
||||
[ --enable-pdo_sqlcipher Enable pdo_sqlcipher support])
|
||||
|
||||
if test "$PHP_PDO_SQLCIPHER" != "no"; then
|
||||
|
||||
if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
|
||||
AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([for PDO includes])
|
||||
if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
|
||||
pdo_inc_path=$abs_srcdir/ext
|
||||
|
|
@ -30,13 +26,20 @@ if test "$PHP_PDO_SQLCIPHER" != "no"; then
|
|||
AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
|
||||
fi
|
||||
AC_MSG_RESULT($pdo_inc_path)
|
||||
php_pdo_sqlcipher_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c sqlite3.c"
|
||||
dnl Detect PHP 8.4’s DSN parser unit and compile it if present
|
||||
AC_MSG_CHECKING([for sqlite_sql_parser.c (PHP 8.4 DSN parser)])
|
||||
if test -f "$abs_srcdir/sqlite_sql_parser.c"; then
|
||||
AC_MSG_RESULT([yes])
|
||||
php_pdo_sqlcipher_sources_core="$php_pdo_sqlcipher_sources_core sqlite_sql_parser.c"
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
php_pdo_sqlcipher_sources_core="pdo_sqlcipher.c sqlcipher_driver.c sqlcipher_statement.c sqlcipher3.c"
|
||||
|
||||
PHP_NEW_EXTENSION(pdo_sqlcipher, $php_pdo_sqlcipher_sources_core, $ext_shared,,-I$pdo_inc_path)
|
||||
PHP_NEW_EXTENSION(pdo_sqlite, $php_pdo_sqlcipher_sources_core, $ext_shared,,-I$pdo_inc_path)
|
||||
|
||||
ifdef([PHP_ADD_EXTENSION_DEP],
|
||||
[
|
||||
PHP_ADD_EXTENSION_DEP(pdo_sqlcipher, pdo)
|
||||
PHP_ADD_EXTENSION_DEP(pdo_sqlite, pdo)
|
||||
])
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue