Inspired-by: a similar patch for libdrm by Heiko Becker
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
12 files changed:
AC_ARG_VAR([CXX11_CXXFLAGS], [Compiler flag to enable C++11 support (only needed if not
enabled by default and different from -std=c++11)])
AM_PROG_CC_C_O
AC_ARG_VAR([CXX11_CXXFLAGS], [Compiler flag to enable C++11 support (only needed if not
enabled by default and different from -std=c++11)])
AM_PROG_CC_C_O
AM_PROG_AS
AX_CHECK_GNU_MAKE
AC_CHECK_PROGS([PYTHON2], [python2.7 python2 python])
AM_PROG_AS
AX_CHECK_GNU_MAKE
AC_CHECK_PROGS([PYTHON2], [python2.7 python2 python])
pkg = import('pkgconfig')
pkg = import('pkgconfig')
+env_test = environment()
+env_test.set('NM', find_program('nm').path())
+
subdir('include')
subdir('bin')
subdir('src')
subdir('include')
subdir('bin')
subdir('src')
-FUNCS=$(nm -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do
+FUNCS=$($NM -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do
( grep -q "^$func$" || echo $func ) <<EOF
eglBindAPI
eglBindTexImage
( grep -q "^$func$" || echo $func ) <<EOF
eglBindAPI
eglBindTexImage
else
test('egl-symbols-check',
find_program('egl-symbols-check'),
else
test('egl-symbols-check',
find_program('egl-symbols-check'),
if with_tests
test('wayland-egl-symbols-check',
find_program('wayland-egl-symbols-check'),
if with_tests
test('wayland-egl-symbols-check',
find_program('wayland-egl-symbols-check'),
args : libwayland_egl
)
test(
args : libwayland_egl
)
test(
-FUNCS=$(nm -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do
+FUNCS=$($NM -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do
( grep -q "^$func$" || echo $func ) <<EOF
wl_egl_window_resize
wl_egl_window_create
( grep -q "^$func$" || echo $func ) <<EOF
wl_egl_window_resize
wl_egl_window_create
-
-FUNCS=$(nm -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do
+FUNCS=$($NM -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do
( grep -q "^$func$" || echo $func ) <<EOF
gbm_device_get_fd
gbm_device_get_backend_name
( grep -q "^$func$" || echo $func ) <<EOF
gbm_device_get_fd
gbm_device_get_backend_name
test(
'gbm-symbols-check',
find_program('gbm-symbols-check'),
test(
'gbm-symbols-check',
find_program('gbm-symbols-check'),
-FUNCS=$(nm -D --defined-only $LIB | grep -o 'T gl.*' | cut -c 3- | while read func; do
+FUNCS=$($NM -D --defined-only $LIB | grep -o 'T gl.*' | cut -c 3- | while read func; do
( grep -q "^$func$" || echo $func ) <<EOF
glActiveTexture
glAlphaFunc
( grep -q "^$func$" || echo $func ) <<EOF
glActiveTexture
glAlphaFunc
test(
'es1-ABI-check',
find_program('ABI-check'),
test(
'es1-ABI-check',
find_program('ABI-check'),
args : libglesv1_cm
)
endif
args : libglesv1_cm
)
endif
-FUNCS=$(nm -D --defined-only $LIB | grep -o 'T gl.*' | cut -c 3- | while read func; do
+FUNCS=$($NM -D --defined-only $LIB | grep -o 'T gl.*' | cut -c 3- | while read func; do
( grep -q "^$func$" || echo $func ) <<EOF
glActiveShaderProgram
glActiveTexture
( grep -q "^$func$" || echo $func ) <<EOF
glActiveShaderProgram
glActiveTexture
test(
'es2-ABI-check',
find_program('ABI-check'),
test(
'es2-ABI-check',
find_program('ABI-check'),