[Bug: 21.5-b31] configure does not like my Xaw3d lib

Stephen J. Turnbull stephen at xemacs.org
Wed Oct 12 03:05:53 EDT 2011


Giacomo Boffi writes:

 > the last change to Xaw3d in the debian changelog is from april 2010,
 > so i guess it could be something changed in configure...

I don't know why you haven't run into this before, but the change to
configure was in 2008, and the required function is present in Gentoo
Xaw3d.  So you can blame it on Debian.

 > do i have to install some newer version of athena 3d that's not
 > packaged for debian?

No, it's the newer Debian that's broken.

Could you try this patch to configure.ac, and run autoconf, then
reconfigure?  (Since I don't have an XEmacs build on recent Debian, I
can't test myself, sorry, and the current code Works For Me on Mac OS
X and Gentoo, which doesn't help you. :-/ )

diff -r 44b6923432fa configure.ac
--- a/configure.ac	Tue Sep 13 14:30:04 2011 +0900
+++ b/configure.ac	Wed Oct 12 16:03:32 2011 +0900
@@ -3895,22 +3895,24 @@
     *)		XE_DIE("Unknown Athena widget set \`$with_athena'. This should not happen.") ;;
   esac
 
+  athena_3d_function=Xaw3dComputeBottomShadowRGB
+
   dnl Search for the Athena library...
   if test "$athena_3d" = "no"; then
     AC_CHECK_LIB($athena_variant, XawScrollbarSetThumb,
       [
         dnl Must not be a 3d library...
-        AC_CHECK_LIB($athena_variant, XawSme3dComputeTopShadowRGB,
+        AC_CHECK_LIB($athena_variant, $athena_3d_function,
           [AC_MSG_WARN([Could not find a non-3d Athena widget library.])],
           athena_lib=$athena_variant)
       ],
       AC_MSG_WARN([Could not find an Athena widget library.]))
   else
     dnl The real configuration, need 3d library
-    AC_CHECK_LIB($athena_variant, XawSme3dComputeTopShadowRGB, athena_lib=$athena_variant,
+    AC_CHECK_LIB($athena_variant, $athena_3d_function, athena_lib=$athena_variant,
       dnl OK, couldn't find it with a proper name, try the standard Athena lib
       dnl If that is 3d, presume the user asked for what they have installed.
-      AC_CHECK_LIB(Xaw, XawSme3dComputeTopShadowRGB,
+      AC_CHECK_LIB(Xaw, $athena_3d_function,
         [
           athena_lib=Xaw;
           AC_MSG_WARN([Assuming that libXaw is actually $athena_variant.]);



More information about the XEmacs-Beta mailing list