Commit 7b7f987a authored by Ole André Vadla Ravnås's avatar Ole André Vadla Ravnås
Browse files

build: Add missing host system checks for Android

parent 01b77666
......@@ -34,7 +34,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
name : 'printf supports the \'F\' directive')
gl_cv_func_printf_directive_f = run_result.compiled() and run_result.returncode() == 0
else
if host_system == 'linux'
if host_system in ['linux', 'android']
gl_cv_func_printf_directive_f = true
elif (host_system.startswith ('freebsd1') or
host_system.startswith ('freebsd2') or
......
......@@ -28,7 +28,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
name : 'printf supports the zero flag correctly')
gl_cv_func_printf_flag_zero = run_result.compiled() and run_result.returncode() == 0
else
if host_system == 'linux'
if host_system in ['linux', 'android']
gl_cv_func_printf_flag_zero = true
elif host_system.startswith ('beos')
gl_cv_func_printf_flag_zero = true
......
......@@ -82,7 +82,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
name : 'printf supports infinite \'double\' arguments')
gl_cv_func_printf_infinite = run_result.compiled() and run_result.returncode() == 0
else
if host_system == 'linux'
if host_system in ['linux', 'android']
gl_cv_func_printf_infinite = true
elif (host_system.startswith ('freebsd1') or
host_system.startswith ('freebsd2') or
......
......@@ -175,7 +175,7 @@ if gl_cv_func_printf_long_double
if host_machine.cpu_family() == 'x86_64'
gl_cv_func_printf_infinite_long_double = false
else
if host_system == 'linux'
if host_system in ['linux', 'android']
gl_cv_func_printf_infinite_long_double = true
elif (host_system.startswith ('freebsd1') or
host_system.startswith ('freebsd2') or
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment