mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
[build] More spring clean fixes
* Remove the last if...fi with AS_IF
* Put back the regexp for the mingw32 check that commit 0d1c626a
inadvertedly removed
This commit is contained in:
parent
0d1c626a86
commit
733508b80d
49
configure.ac
49
configure.ac
@ -141,27 +141,34 @@ AS_IF([test "x$clutterbackend" = "xeglnative" ||
|
||||
|
||||
# check for upper/lower case libgles_em
|
||||
# The powervr sdk uses lower case.
|
||||
AC_CHECK_LIB(GLES_CM, eglInitialize, HAVE_LIBGLES=yes, HAVE_LIBGLES=no)
|
||||
if test "x$HAVE_LIBGLES" = "xno"
|
||||
then
|
||||
AC_CHECK_LIB(GLESv1_CM, eglInitialize, HAVE_LIBGLES=yes, HAVE_LIBGLES=no)
|
||||
AC_CHECK_LIB(GLES_CM, [eglInitialize],
|
||||
[HAVE_LIBGLES=yes],
|
||||
[HAVE_LIBGLES=no])
|
||||
|
||||
if test "x$HAVE_LIBGLES" = "xno"
|
||||
then
|
||||
AC_CHECK_LIB(gles_cm, eglInitialize, HAVE_LIBGLES=yes, HAVE_LIBGLES=no)
|
||||
AS_IF([test "x$HAVE_LIBGLES" = "xyes"],
|
||||
[GLES_LIBS="-lGLES_CM"],
|
||||
[
|
||||
AC_CHECK_LIB(GLESv1_CM, [eglInitialize],
|
||||
[HAVE_LIBGLES=yes],
|
||||
[HAVE_LIBGLES=no])
|
||||
|
||||
if test "x$HAVE_LIBGLES" = "xno"
|
||||
then
|
||||
AC_MSG_ERROR([GLES library not found and egl backend requested.]);
|
||||
else
|
||||
GLES_LIBS="-lgles_cm"
|
||||
fi
|
||||
else
|
||||
GLES_LIBS="-lGLESv1_CM"
|
||||
fi
|
||||
else
|
||||
GLES_LIBS="-lGLES_CM"
|
||||
fi
|
||||
AS_IF([test "x$HAVE_LIBGLES" = "xyes"],
|
||||
[GLES_LIBS="-lGLESv1_CM"],
|
||||
[
|
||||
AC_CHECK_LIB(gles_cm, [eglInitialize],
|
||||
[HAVE_LIBGLES=yes],
|
||||
[HAVE_LIBGLES=no])
|
||||
|
||||
AS_IF([test "x$HAVE_LIBGLES" = "xyes"],
|
||||
[GLES_LIBS="-lgles_cm"],
|
||||
[
|
||||
AC_MSG_ERROR([GLES library not found and egl backend requested.])
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
],
|
||||
|
||||
[2*],
|
||||
@ -217,11 +224,11 @@ AS_CASE([$clutterbackend],
|
||||
SDL_CFLAGS=`$SDL_CONFIG --cflags`
|
||||
SDL_LIBS=`$SDL_CONFIG --libs`
|
||||
|
||||
# Use -lopengl32 under Windows instead of -lGL
|
||||
AS_CASE([$host],
|
||||
|
||||
[mingw32],
|
||||
[*mingw32*],
|
||||
[
|
||||
# Use -lopengl32 under Windows instead of -lGL
|
||||
SDL_LIBS="$SDL_LIBS -lopengl32"
|
||||
CLUTTER_LT_LDFLAGS="$CLUTTER_LT_LDFLAGS -no-undefined"
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user