New package mesa-demos 8.0.1, which includes xdemos glxinfo and
glxgears, builds after MesaLib 7.10. GLEW is required to configure
but not needed, in fact, for xdemos. To build glxgears and glxinfo,
one can remove all glew-related checks from the configure script
and leave only one target src/xdemos/Makefile (see the patch).
Then run
patch -Np1 -i ../mesa-demos-8.0.1-xdemos-1ak.patch
./configure --prefix=/usr
make -C src/xdemos glxgears glxinfo
cp -v src/xdemos/{glxgears,glxinfo} /usr/bin/
/Alex.
--- mesa-demos-8.0.1.orig/configure 2010-07-13 18:53:29.000000000 +0000
+++ mesa-demos-8.0.1/configure 2011-01-18 10:36:43.000000000 +0000
@@ -786,8 +786,6 @@
EGL_CFLAGS
GLU_LIBS
GLU_CFLAGS
-GLEW_LIBS
-GLEW_CFLAGS
GL_LIBS
GL_CFLAGS
PKG_CONFIG
@@ -935,8 +933,6 @@
PKG_CONFIG
GL_CFLAGS
GL_LIBS
-GLEW_CFLAGS
-GLEW_LIBS
GLU_CFLAGS
GLU_LIBS
EGL_CFLAGS
@@ -15572,190 +15568,9 @@
fi
-GLEW_CFLAGS=""
-GLEW_LIBS="-lGLEW"
-pkg_failed=no
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLEW" >&5
-$as_echo_n "checking for GLEW... " >&6; }
-
-if test -n "$GLEW_CFLAGS"; then
- pkg_cv_GLEW_CFLAGS="$GLEW_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists
--print-errors \"glew\""; } >&5
- ($PKG_CONFIG --exists --print-errors "glew") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GLEW_CFLAGS=`$PKG_CONFIG --cflags "glew" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- else
- pkg_failed=untried
-fi
-if test -n "$GLEW_LIBS"; then
- pkg_cv_GLEW_LIBS="$GLEW_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists
--print-errors \"glew\""; } >&5
- ($PKG_CONFIG --exists --print-errors "glew") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GLEW_LIBS=`$PKG_CONFIG --libs "glew" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- else
- pkg_failed=untried
-fi
-
-
-
-if test $pkg_failed = yes; then
-
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi
- if test $_pkg_short_errors_supported = yes; then
- GLEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors
"glew" 2>&1`
- else
- GLEW_PKG_ERRORS=`$PKG_CONFIG --print-errors "glew" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$GLEW_PKG_ERRORS" >&5
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-
- ac_fn_c_check_header_mongrel "$LINENO" "GL/glew.h"
"ac_cv_header_GL_glew_h" "$ac_includes_default"
-if test "x$ac_cv_header_GL_glew_h" = x""yes; then :
-
-else
- as_fn_error "GLEW required" "$LINENO" 5
-fi
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for
glewInit in -lGLEW" >&5
-$as_echo_n "checking for glewInit in -lGLEW... " >&6; }
-if test "${ac_cv_lib_GLEW_glewInit+set}" = set; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lGLEW $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char glewInit ();
-int
-main ()
-{
-return glewInit ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_GLEW_glewInit=yes
-else
- ac_cv_lib_GLEW_glewInit=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLEW_glewInit" >&5
-$as_echo "$ac_cv_lib_GLEW_glewInit" >&6; }
-if test "x$ac_cv_lib_GLEW_glewInit" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBGLEW 1
-_ACEOF
-
- LIBS="-lGLEW $LIBS"
-
-else
- as_fn_error "GLEW required" "$LINENO" 5
-fi
-elif test $pkg_failed = untried; then
-
- ac_fn_c_check_header_mongrel "$LINENO" "GL/glew.h"
"ac_cv_header_GL_glew_h" "$ac_includes_default"
-if test "x$ac_cv_header_GL_glew_h" = x""yes; then :
-
-else
- as_fn_error "GLEW required" "$LINENO" 5
-fi
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for
glewInit in -lGLEW" >&5
-$as_echo_n "checking for glewInit in -lGLEW... " >&6; }
-if test "${ac_cv_lib_GLEW_glewInit+set}" = set; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lGLEW $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char glewInit ();
-int
-main ()
-{
-return glewInit ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_GLEW_glewInit=yes
-else
- ac_cv_lib_GLEW_glewInit=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLEW_glewInit" >&5
-$as_echo "$ac_cv_lib_GLEW_glewInit" >&6; }
-if test "x$ac_cv_lib_GLEW_glewInit" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBGLEW 1
-_ACEOF
-
- LIBS="-lGLEW $LIBS"
-
-else
- as_fn_error "GLEW required" "$LINENO" 5
-fi
-
-
-else
- GLEW_CFLAGS=$pkg_cv_GLEW_CFLAGS
- GLEW_LIBS=$pkg_cv_GLEW_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- :
-fi
-DEMO_CFLAGS="$DEMO_CFLAGS $GLEW_CFLAGS"
-DEMO_LIBS="$DEMO_LIBS $GLEW_LIBS"
-
# LIBS was set by AC_CHECK_LIB above
LIBS=""
@@ -16485,7 +16300,7 @@
fi
-ac_config_files="$ac_config_files Makefile src/Makefile src/demos/Makefile
src/egl/Makefile src/egl/eglut/Makefile src/egl/opengl/Makefile
src/egl/opengles1/Makefile src/egl/opengles2/Makefile src/egl/openvg/Makefile
src/egl/openvg/trivial/Makefile src/fp/Makefile src/fpglsl/Makefile
src/glsl/Makefile src/gs/Makefile src/images/Makefile src/objviewer/Makefile
src/osdemos/Makefile src/perf/Makefile src/rbug/Makefile src/redbook/Makefile
src/samples/Makefile src/slang/Makefile src/tests/Makefile src/tools/Makefile
src/tools/trace/Makefile src/trivial/Makefile src/util/Makefile src/vp/Makefile
src/vpglsl/Makefile src/wgl/Makefile src/xdemos/Makefile"
+ac_config_files="src/xdemos/Makefile"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page