aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorEugene Sandulenko2010-10-18 20:02:27 +0000
committerEugene Sandulenko2010-10-18 20:02:27 +0000
commita33d473535cf480124e76cd19b67816c684a4dd2 (patch)
tree2a4b3c710197316ec4dc582303145ec77051470c /configure
parentceae152531a9c2269b8df05f0608915040a121ac (diff)
downloadscummvm-rg350-a33d473535cf480124e76cd19b67816c684a4dd2.tar.gz
scummvm-rg350-a33d473535cf480124e76cd19b67816c684a4dd2.tar.bz2
scummvm-rg350-a33d473535cf480124e76cd19b67816c684a4dd2.zip
CONFIGURE: Added va_copy detection for Last Express engine
svn-id: r53583
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure37
1 files changed, 37 insertions, 0 deletions
diff --git a/configure b/configure
index 5053884c51..3936ca48b9 100755
--- a/configure
+++ b/configure
@@ -2635,6 +2635,43 @@ fi
define_in_config_if_yes $_nasm 'USE_NASM'
#
+# Check for va_copy variant
+#
+
+echocheck va_copy availability
+
+_have_va_copy=no
+_have___va_copy=no
+
+cat > $TMPC <<EOF
+#include <stdarg.h>
+va_list ap1,ap2;
+int main(void) { va_copy(ap1,ap2); }
+EOF
+cc_check && _have_va_copy=yes
+
+if test "$_have_va_copy" = yes ; then
+ echo "... yes... va_copy()"
+else
+
+cat > $TMPC <<EOF
+#include <stdarg.h>
+va_list ap1,ap2;
+int main(void) { __va_copy(ap1,ap2); }
+EOF
+cc_check && _have___va_copy=yes
+
+if test "$_have___va_copy" = yes ; then
+ echo "... yes... __va_copy()"
+else
+ echo "... no"
+fi
+fi
+
+define_in_config_h_if_yes $_have_va_copy 'HAVE_VA_COPY'
+define_in_config_h_if_yes $_have___va_copy 'HAVE___VA_COPY'
+
+#
# Enable vkeybd / keymapper
#
if test "$_vkeybd" = yes ; then