Skip to content

Autotools: Remove PDO dependency related errors #15347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions ext/pdo_dblib/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ PHP_ARG_WITH([pdo-dblib],
[PDO: DBLIB-DB support. DIR is the FreeTDS home directory])])

if test "$PHP_PDO_DBLIB" != "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

if test "$PHP_PDO_DBLIB" = "yes"; then
dnl FreeTDS must be on the default system include/library path.
dnl Only perform a sanity check that this is really the case.
Expand Down
4 changes: 0 additions & 4 deletions ext/pdo_firebird/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ PHP_ARG_WITH([pdo-firebird],
[/opt/firebird]])])

if test "$PHP_PDO_FIREBIRD" != "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_PATH_PROG([FB_CONFIG], [fb_config], [no])

if test -x "$FB_CONFIG" && test "$PHP_PDO_FIREBIRD" = "yes"; then
Expand Down
4 changes: 0 additions & 4 deletions ext/pdo_mysql/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ if test "$PHP_PDO_MYSQL" != "no"; then
AC_MSG_RESULT([$PHP_MYSQL_SOCK])
])

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

dnl Whether to build with the mysqlnd extension or with the MySQL library.
AS_CASE([$PHP_PDO_MYSQL], [yes|mysqlnd], [
PHP_MYSQLND_ENABLED=yes
Expand Down
5 changes: 0 additions & 5 deletions ext/pdo_odbc/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ AC_DEFUN([PHP_PDO_ODBC_CHECK_HEADER],
])

if test "$PHP_PDO_ODBC" != "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

PHP_CHECK_PDO_INCLUDES

AC_MSG_CHECKING([for selected PDO ODBC flavour])
Expand Down
4 changes: 0 additions & 4 deletions ext/pdo_pgsql/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ PHP_ARG_WITH([pdo-pgsql],
the libpq paths.])])

if test "$PHP_PDO_PGSQL" != "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

PHP_SETUP_PGSQL([PDO_PGSQL_SHARED_LIBADD],,, [$PHP_PDO_PGSQL])
PHP_SUBST([PDO_PGSQL_SHARED_LIBADD])

Expand Down
5 changes: 0 additions & 5 deletions ext/pdo_sqlite/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ PHP_ARG_WITH([pdo-sqlite],
[$PHP_PDO])

if test "$PHP_PDO_SQLITE" != "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

PHP_CHECK_PDO_INCLUDES

PHP_SETUP_SQLITE([PDO_SQLITE_SHARED_LIBADD])
Expand Down
Loading