Skip to content

Commit 7950c87

Browse files
committed
Autotools: Simplify PHP_ALWAYS_SHARED macro
Instead of defining an empty M4 macro PHP_ALWAYS_SHARED when configuring extensions in php-src using the main configure.ac, the m4_ifdef can be used to conditionally call the macro when it is defined (when using phpize).
1 parent 32210ce commit 7950c87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/php.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,8 @@ no[)]
659659
;;
660660
esac
661661
662-
PHP_ALWAYS_SHARED([$1])
662+
dnl When using phpize, automatically enable and build extension as shared.
663+
m4_ifdef([PHP_ALWAYS_SHARED], [PHP_ALWAYS_SHARED([$1])])
663664
])
664665

665666
dnl

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ dnl Define where extension directories are located in the configure context.
8080
AC_DEFUN([PHP_EXT_BUILDDIR],[$config_m4_dir])dnl
8181
AC_DEFUN([PHP_EXT_DIR],[$config_m4_dir])dnl
8282
AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir/$config_m4_dir])dnl
83-
AC_DEFUN([PHP_ALWAYS_SHARED],[])dnl
8483

8584
dnl Setting up the PHP version based on the information above.
8685
dnl ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)