X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=config.m4;h=56635fa7d2c40afe69de3cf0d03cd819d4d800cb;hb=6864dd48391d1e98959ac13d5a0914693b4f1d0f;hp=2c7af0b58cbe2d0fec1d7534000c0f0da53b6370;hpb=3a7e1819ee316d4b3076e9a1cfd9d68f66101021;p=m6w6%2Fext-psi diff --git a/config.m4 b/config.m4 index 2c7af0b..56635fa 100644 --- a/config.m4 +++ b/config.m4 @@ -59,7 +59,21 @@ if test "$PHP_PSI" != no; then [ --with-psi-libffi=DIR PSI: path to libffi], [ ], [ ]) AC_HEADER_ASSERT dnl # adds --disable-assert to define NDEBUG - + + dnl we cannot use AC_USE_SYSTEM_EXTENSIONS here, because we're way too late + dnl in the game, and we're currently only targeting _GNU_SOURCE for now + AC_MSG_CHECKING([for _GNU_SOURCE]) + AC_EGREP_CPP([gnu_source_not_defined], [ + #ifndef _GNU_SOURCE + gnu_source_not_defined + #endif + ], [ + AC_MSG_RESULT([needs define]) + AC_DEFINE([_GNU_SOURCE], [], [ ]) + ], [ + AC_MSG_RESULT([already defined]) + ]) + psi_save_LIBS=$LIBS LIBS=