diff options
author | Thierry Crozat | 2017-12-15 01:08:14 +0000 |
---|---|---|
committer | Thierry Crozat | 2017-12-15 01:08:14 +0000 |
commit | 4f1025378f77664404e37ec66f22b2902e611e8b (patch) | |
tree | 47f2f6c65e8dbbfd4f808796376487c54b8cd214 /configure | |
parent | 2926cd4a5071c9f06a2c2258b4a479028a8b8c2e (diff) | |
download | scummvm-rg350-4f1025378f77664404e37ec66f22b2902e611e8b.tar.gz scummvm-rg350-4f1025378f77664404e37ec66f22b2902e611e8b.tar.bz2 scummvm-rg350-4f1025378f77664404e37ec66f22b2902e611e8b.zip |
BUILD: Check if posix_spawn is available in configure
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -212,6 +212,7 @@ _tainted_build=no # The following variables are automatically detected, and should not # be modified otherwise. Consider them read-only. _posix=no +_has_posix_spawn=no _endian=unknown _need_memalign=yes _have_x86=no @@ -3630,6 +3631,17 @@ echo $_posix if test "$_posix" = yes ; then append_var DEFINES "-DPOSIX" add_line_to_config_mk 'POSIX = 1' + + echo_n "Checking if posix_spawn is supported... " + cat > $TMPC << EOF +#include <spawn.h> +int main(void) { return posix_spawn(0, 0, 0, 0, 0, 0); } +EOF + cc_check && _has_posix_spawn=yes + echo $_has_posix_spawn + if test "$_has_posix_spawn" = yes ; then + append_var DEFINES "-DHAS_POSIX_SPAWN" + fi fi # |