configure: convert HAVE_BROKEN_SIZE_MAX to meson
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ccd250aa2d
commit
e46bd55d9c
17
configure
vendored
17
configure
vendored
@ -2375,20 +2375,6 @@ if test "$softmmu" = "no"; then
|
|||||||
audio_drv_list=""
|
audio_drv_list=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##########################################
|
|
||||||
# Some versions of Mac OS X incorrectly define SIZE_MAX
|
|
||||||
cat > $TMPC << EOF
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
int main(int argc, char *argv[]) {
|
|
||||||
return printf("%zu", SIZE_MAX);
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
have_broken_size_max=no
|
|
||||||
if ! compile_object -Werror ; then
|
|
||||||
have_broken_size_max=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# L2TPV3 probe
|
# L2TPV3 probe
|
||||||
|
|
||||||
@ -5360,9 +5346,6 @@ if test "$gdbus_codegen" != "" ; then
|
|||||||
echo "GDBUS_CODEGEN=$gdbus_codegen" >> $config_host_mak
|
echo "GDBUS_CODEGEN=$gdbus_codegen" >> $config_host_mak
|
||||||
fi
|
fi
|
||||||
echo "CONFIG_TLS_PRIORITY=\"$tls_priority\"" >> $config_host_mak
|
echo "CONFIG_TLS_PRIORITY=\"$tls_priority\"" >> $config_host_mak
|
||||||
if test "$have_broken_size_max" = "yes" ; then
|
|
||||||
echo "HAVE_BROKEN_SIZE_MAX=y" >> $config_host_mak
|
|
||||||
fi
|
|
||||||
if test "$have_openpty" = "yes" ; then
|
if test "$have_openpty" = "yes" ; then
|
||||||
echo "HAVE_OPENPTY=y" >> $config_host_mak
|
echo "HAVE_OPENPTY=y" >> $config_host_mak
|
||||||
fi
|
fi
|
||||||
|
@ -1268,6 +1268,15 @@ config_host_data.set('HAVE_SYS_KCOV_H', cc.has_header('sys/kcov.h'))
|
|||||||
config_host_data.set('CONFIG_PREADV', cc.has_function('preadv', prefix: '#include <sys/uio.h>'))
|
config_host_data.set('CONFIG_PREADV', cc.has_function('preadv', prefix: '#include <sys/uio.h>'))
|
||||||
config_host_data.set('HAVE_SYSTEM_FUNCTION', cc.has_function('system', prefix: '#include <stdlib.h>'))
|
config_host_data.set('HAVE_SYSTEM_FUNCTION', cc.has_function('system', prefix: '#include <stdlib.h>'))
|
||||||
|
|
||||||
|
# Some versions of Mac OS X incorrectly define SIZE_MAX
|
||||||
|
config_host_data.set('HAVE_BROKEN_SIZE_MAX', not cc.compiles('''
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
int main(int argc, char *argv[]) {
|
||||||
|
return printf("%zu", SIZE_MAX);
|
||||||
|
}''', args: ['-Werror']))
|
||||||
|
|
||||||
|
|
||||||
ignored = ['CONFIG_QEMU_INTERP_PREFIX'] # actually per-target
|
ignored = ['CONFIG_QEMU_INTERP_PREFIX'] # actually per-target
|
||||||
arrays = ['CONFIG_AUDIO_DRIVERS', 'CONFIG_BDRV_RW_WHITELIST', 'CONFIG_BDRV_RO_WHITELIST']
|
arrays = ['CONFIG_AUDIO_DRIVERS', 'CONFIG_BDRV_RW_WHITELIST', 'CONFIG_BDRV_RO_WHITELIST']
|
||||||
strings = ['HOST_DSOSUF', 'CONFIG_IASL']
|
strings = ['HOST_DSOSUF', 'CONFIG_IASL']
|
||||||
|
Loading…
Reference in New Issue
Block a user