[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ./ChangeLog macros/gtkglext.m4
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ./ChangeLog macros/gtkglext.m4 |
Date: |
Tue, 23 May 2006 20:33:19 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Branch:
Changes by: Sandro Santilli <address@hidden> 06/05/23 20:33:19
Modified files:
. : ChangeLog
macros : gtkglext.m4
Log message:
* macros/gtkglext.m4: cleanly handled --with-glext-incl switch (make
sure to set the $version variable).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/ChangeLog.diff?tr1=1.372&tr2=1.373&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/macros/gtkglext.m4.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
Patches:
Index: gnash/ChangeLog
diff -u gnash/ChangeLog:1.372 gnash/ChangeLog:1.373
--- gnash/ChangeLog:1.372 Tue May 23 19:32:37 2006
+++ gnash/ChangeLog Tue May 23 20:33:19 2006
@@ -2,7 +2,9 @@
* macros/gtkglext.m4: check for gtkglext no matter
wheter plugin has been requested or not, fixed
- messages during autodetection attempts.
+ messages during autodetection attempts, cleanly
+ handled --with-glext-incl switch (make sure to
+ set the $version variable).
2006-05-23 Patrice Dumas <address@hidden>
Index: gnash/macros/gtkglext.m4
diff -u gnash/macros/gtkglext.m4:1.15 gnash/macros/gtkglext.m4:1.16
--- gnash/macros/gtkglext.m4:1.15 Tue May 23 19:32:37 2006
+++ gnash/macros/gtkglext.m4 Tue May 23 20:33:19 2006
@@ -56,6 +56,8 @@
if test x"${with_glext_incl}" != x ; then
if test -f ${with_glext_incl}/gtk/gtkgl.h ; then
ac_cv_path_glext_incl=`(cd ${with_glext_incl}; pwd)`
+ topdir=`basename ${with_glext_incl}`
+ version=`echo ${topdir} | sed -e 's:gtkglext-::'`
else
AC_MSG_ERROR([${with_glext_incl} directory doesn't contain gtk/gtkgl.h])
fi
@@ -64,7 +66,7 @@
dnl Attempt to find the top level directory, which unfortunately has a
dnl version number attached. At least on Debain based systems, this
dnl doesn't seem to get a directory that is unversioned.
- if test x"${ac_cv_path_glext_incl}" = x ; then
+ if test x"${version}" = x ; then
AC_MSG_CHECKING([for the Gtk GL Extensions Version])
pathlist="${prefix}/include /sw/include /usr/local/include
/usr/X11R6/include /home/latest/include /opt/include /usr/include
/usr/pkg/include .. ../.."
@@ -79,18 +81,19 @@
fi
done
done
+
+ if test x"${topdir}" = x; then
+ AC_MSG_RESULT([none])
+ else
+ AC_MSG_RESULT([${version}])
+ fi
+
fi
- if test x"${topdir}" = x; then
- AC_MSG_RESULT([none])
- else
- AC_MSG_RESULT([${version}])
- fi
dnl If the path hasn't been specified, go look for it.
if test x"${ac_cv_path_glext_incl}" = x; then
- AC_CHECK_HEADERS(gtk/gtkgl.h, [ac_cv_path_glext_incl=""],[
- if test x"${ac_cv_path_glext_incl}" = x; then
+
AC_MSG_CHECKING([for gtk/gtkgl.h])
incllist="${prefix}/include /sw/include /usr/local/include
/usr/X11R6/include /home/latest/include /opt/include /usr/include
/usr/pkg/include .. ../.."
@@ -109,13 +112,12 @@
fi
done
- if test x"${ac_cv_path_glext_incl}"; then
- AC_MSG_RESULT("not found")
+ if test x"${ac_cv_path_glext_incl}" = x; then
+ AC_MSG_RESULT([not found])
else
- AC_MSG_RESULT("found in ${ac_cv_path_glext_incl}")
+ AC_MSG_RESULT([${ac_cv_path_glext_incl}])
fi
- fi])
fi
dnl Look for the library
@@ -125,7 +127,7 @@
if test -f ${with_glext_lib}/libgtkglext-x11-${version}.a -o -f
${with_glext_lib}/libgtkglext-x11-${version}.so; then
ac_cv_path_glext_lib=`(cd ${with_glext_lib}; pwd)`
else
- AC_MSG_ERROR([${with_glext_lib} directory doesn't contain
libgtkglext.])
+ AC_MSG_ERROR([${with_glext_lib} directory doesn't contain
libgtkglext-x11-${version}.[a|so]])
fi
fi
])