mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 04:08:13 +02:00
[configure] Choose a better name for the 'temporary' egl iterator
The problem is that it remains referenced by egl_NONPKGCONFIG_LIBS and so must not be subsequently overwritten, so give it an egl_ prefix.
This commit is contained in:
parent
83c2f44dd9
commit
af6df4af51
1 changed files with 10 additions and 2 deletions
12
configure.ac
12
configure.ac
|
|
@ -313,14 +313,22 @@ CAIRO_ENABLE_FUNCTIONS(egl, EGL, auto, [
|
|||
if test "x$use_egl" = "xyes"; then
|
||||
egl_NONPKGCONFIG_CFLAGS=
|
||||
egl_NONPKGCONFIG_LIBS=
|
||||
for lib in EGL egl13 egl12 egl11; do
|
||||
save_LIBS="$LIBS"
|
||||
other_egl_LIBS=""
|
||||
# Temporary workaround for missing link from egl13
|
||||
AC_CHECK_LIB(csi, csi_stream_attachresource, other_egl_LIBS="-lcsi")
|
||||
LIBS="$other_egl_LIBS $LIBS"
|
||||
for egl_lib in EGL egl13 egl12 egl11; do
|
||||
if test -z "$egl_NONPKGCONFIG_LIBS"; then
|
||||
AC_CHECK_LIB($lib, eglGetError, egl_NONPKGCONFIG_LIBS="-l$lib")
|
||||
AC_CHECK_LIB($egl_lib, eglGetError, egl_NONPKGCONFIG_LIBS="-l$egl_lib")
|
||||
fi
|
||||
done
|
||||
if test -z "$egl_NONPKGCONFIG_LIBS"; then
|
||||
use_egl="no (EGL library not found)"
|
||||
else
|
||||
egl_NONPKGCONFIG_LIBS="$egl_NONPKGCONFIG_LIBS $other_egl_LIBS"
|
||||
fi
|
||||
LIBS="$save_LIBS"
|
||||
fi
|
||||
else
|
||||
use_egl="no (not required by any backend)"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue