aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorThierry Crozat2017-12-15 01:08:14 +0000
committerThierry Crozat2017-12-15 01:08:14 +0000
commit4f1025378f77664404e37ec66f22b2902e611e8b (patch)
tree47f2f6c65e8dbbfd4f808796376487c54b8cd214 /configure
parent2926cd4a5071c9f06a2c2258b4a479028a8b8c2e (diff)
downloadscummvm-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-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 4ff90e05ee..4e551641ab 100755
--- a/configure
+++ b/configure
@@ -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
#