From 3a4df957937575eb4c8d0ae30f0126c4ed30055c Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 11 May 2019 02:26:29 +0200 Subject: [PATCH] Simplify ext/mbstring/libmbfl/config.h creation - The config.h.in is part of the standalone libmbfl library and it is forked and bundled. --- ext/mbstring/config.m4 | 22 ++++---------- ext/mbstring/libmbfl/config.h.in | 52 -------------------------------- 2 files changed, 6 insertions(+), 68 deletions(-) delete mode 100644 ext/mbstring/libmbfl/config.h.in diff --git a/ext/mbstring/config.m4 b/ext/mbstring/config.m4 index 0cc9c2f9cc..893f75b4cb 100644 --- a/ext/mbstring/config.m4 +++ b/ext/mbstring/config.m4 @@ -16,10 +16,6 @@ AC_DEFUN([PHP_MBSTRING_ADD_INCLUDE], [ PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES $1" ]) -AC_DEFUN([PHP_MBSTRING_ADD_CONFIG_HEADER], [ - PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS $1" -]) - AC_DEFUN([PHP_MBSTRING_ADD_CFLAG], [ PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS $1" ]) @@ -41,21 +37,16 @@ AC_DEFUN([PHP_MBSTRING_EXTENSION], [ PHP_ADD_INCLUDE([$ext_builddir/$dir]) done - if test "$ext_shared" = "no"; then - out="php_config.h" - else - if test -f "$ext_builddir/config.h.in"; then - out="$abs_builddir/config.h" - else - out="php_config.h" - fi + out="php_config.h" + + if test "$ext_shared" != "no" && test -f "$ext_builddir/config.h.in"; then + out="$abs_builddir/config.h" fi - for cfg in $PHP_MBSTRING_EXTRA_CONFIG_HEADERS; do - cat > $ext_builddir/$cfg < $ext_builddir/libmbfl/config.h < header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if your system has a GNU libc compatible `malloc' function, and - to 0 otherwise. */ -#undef HAVE_MALLOC - -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if your system has a GNU libc compatible `realloc' function, - and to 0 otherwise. */ -#undef HAVE_REALLOC - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the `strcasecmp' function. */ -#undef HAVE_STRCASECMP - -/* Define to 1 if you have the `strchr' function. */ -#undef HAVE_STRCHR - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ -#undef LT_OBJDIR - -/* Define to rpl_malloc if the replacement function should be used. */ -#undef malloc - -/* Define to rpl_realloc if the replacement function should be used. */ -#undef realloc - -/* Define to `unsigned int' if does not define. */ -#undef size_t -- 2.40.0