diff options
author | Eugene Sandulenko | 2010-10-18 20:02:27 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-18 20:02:27 +0000 |
commit | a33d473535cf480124e76cd19b67816c684a4dd2 (patch) | |
tree | 2a4b3c710197316ec4dc582303145ec77051470c /configure | |
parent | ceae152531a9c2269b8df05f0608915040a121ac (diff) | |
download | scummvm-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-x | configure | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -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 |