http://ftp.x.org/contrib/applications/xscreensaver-2.17.tar.gz
[xscreensaver] / configure.in
index e614456efd23100439ace27201bd87ad8f69a640..7071cacae60b09bac17761805914ea4148d6ff79 100644 (file)
@@ -18,6 +18,10 @@ if test -z "$GCC"; then
       AC_MSG_RESULT(AIX: adding -qlanglvl=ansi -qhalt=e)
       CC="$CC -qlanglvl=ansi -qhalt=e"
     ;;
+
+# NOTE:   for Digital, need to add -std1 to get ANSI, but I'm not sure
+#         yet what $host pattern we should be testing for...
+
     *)
       AC_MSG_RESULT(no idea)
     ;;
@@ -730,6 +734,19 @@ if test $have_lesstif = yes ; then
 fi
 
 
+# Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
+# Extension".   Why this extension isn't in -lXext with all the others,
+# I have no idea.
+#
+have_xp_ext=no
+if test $have_motif = yes ; then
+   have_xp_ext=no
+   AC_CHECK_X_LIB(Xp, XpQueryExtension,
+                 [have_xp_ext=yes; SAVER_LIBS="$SAVER_LIBS -lXp"],
+                 [], -lX11 -lXext -lm)
+fi
+
+
 # check for XPM header.
 #
 have_xpm=no