1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Use AC_DEFINE_UNQUOTED where variables are used (#14647)

According to Autoconf documentation AC_DEFINE_UNQUOTED should be used,
where shell variables are used in the macro arguments.
https://www.gnu.org/software/autoconf/manual/autoconf-2.72/autoconf.html#index-AC_005fDEFINE_005fUNQUOTED-2

This also adds simple help descriptions to these CPP macros.
This commit is contained in:
Peter Kokot
2024-06-23 23:53:50 +02:00
committed by GitHub
parent fc36d0e849
commit c2f6fa4ee7

View File

@@ -354,7 +354,8 @@ AC_DEFUN([PHP_DBA_DB_CHECK],[
])
fi
if test -n "$THIS_LIBS"; then
AC_DEFINE(DBA_DB$1, 1, [ ])
AC_DEFINE_UNQUOTED([DBA_DB$1], [1],
[Define to 1 if Berkeley DB is compatible with version $1.])
if test -n "$THIS_INCLUDE"; then
AC_DEFINE_UNQUOTED(DB$1_INCLUDE_FILE, "$THIS_INCLUDE", [ ])
fi
@@ -553,7 +554,8 @@ if test "$PHP_DB1" != "no"; then
DB * dbp = dbopen("", 0, 0, DB_HASH, 0);
]])],[
AC_DEFINE_UNQUOTED(DB1_INCLUDE_FILE, "$THIS_INCLUDE", [ ])
AC_DEFINE(DBA_DB1, 1, [ ])
AC_DEFINE([DBA_DB1], [1],
[Define to 1 if Berkeley DB is compatible with version 1.])
THIS_RESULT=yes
],[
THIS_RESULT=no