[AC21.5] Fix configure check for Xaw3d

Stephen J. Turnbull turnbull at sk.tsukuba.ac.jp
Fri Apr 4 13:36:55 EDT 2008


APPROVE COMMIT 21.5

Already in 21.4.

Thanks to Mike F, Andreas, and Aidan for the patch and comments, and
Martin for the ChangeLog.

2003-01-27  Martin Buchholz  <martin at xemacs.org>

	Thanks to Mike Fabian and Andreas Schwab for posting a patch
	to the mainline, and to Aidan Kehoe for finding this ChangeLog.
	-- stephen

	* configure.ac (athena_3d):
	AC_CHECK_LIB must always take a function as
	argument, never a global variable.  Some linkers can tell the
	difference.  So change:
	threeDClassRec ==> Xaw3dComputeBottomShadowRGB

Mike FABIAN writes:

--- configure.ac
+++ configure.ac
@@ -4236,17 +4236,17 @@ if test "$with_x11" = "yes" -a "$detect_
     AC_CHECK_LIB($athena_variant, XawScrollbarSetThumb,
       [
         dnl Must not be a 3d library...
-        AC_CHECK_LIB($athena_variant, threeDClassRec,
+        AC_CHECK_LIB($athena_variant, XawSme3dComputeTopShadowRGB,
           [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, threeDClassRec, athena_lib=$athena_variant,
+    AC_CHECK_LIB($athena_variant, XawSme3dComputeTopShadowRGB, 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, threeDClassRec,
+      AC_CHECK_LIB(Xaw, XawSme3dComputeTopShadowRGB,
         [
           athena_lib=Xaw;
           AC_MSG_WARN([Assuming that libXaw is actually $athena_variant.]);



More information about the XEmacs-Beta mailing list