I suggest that we check in this patch into the stable branch.

J'

On Sun, Feb 01, 2009 at 02:03:30PM -0800, Ben Pfaff wrote:

     It is a bug in the configure script.  The plotutils manual
     mentions that -lpng -lz might be necessary, but we don't check
     for it.
     
     Do you want to file a bug report?  It would be helpful.
     
     The plotutils description of how to link against it is awfully
     complicated:
     
            To link your application with GNU `libplot', you would use the
         appropriate `-l' option(s) on the command line when compiling it.  You
         would use
     
              -lplot -lXaw -lXmu -lXt -lXext -lX11 -lpng -lz -lm
     
         or, in recent releases of the X Window System,
     
              -lplot -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lpng -lz -lm
     
         These linking options assume that your version of `libplot' has been
         compiled with PNG support; if not, you would omit the `-lpng -lz'
         options.
     
            As an alternative to the preceding, you may need to use `-lplot -lXm
         -lXt -lXext -lX11 -lpng -lz -lm', `-lplot -lXm -lXt -lXext -lX11 -lpng
         -lz -lm -lc -lgen', or `-lplot -lXm -lXt -lXext -lX11 -lpng -lz -lm -lc
         -lPW', on systems that provide Motif widgets instead of Athena widgets.
         In recent releases of the X Window System, you would insert `-lSM
         -lICE'.  Recent releases of Motif require `-lXp' and possibly `-lXpm'
         as well.)
     
            On some platforms, the directories in which `libplot' or the other
         libraries are stored must be specified on the command line.
         For example, the options `-lXaw -lXmu -lXt -lSM -lICE -lXext -lX11',
         which specify X Window System libraries, may need to be preceded by an
         option like `-L/usr/X11/lib'.
     

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


diff --git a/acinclude.m4 b/acinclude.m4
index 75fcb0d..731fb07 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -51,7 +51,7 @@ AC_DEFUN([PSPP_LIBPLOT],
     # Check whether we can link against libplot if we also link X.
     if test x"$LIBPLOT_LIBS" = x""; then
       AC_PATH_XTRA
-      extra_libs="-lXaw -lXmu -lXt $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS -lm"
+      extra_libs="-lpng -lz -lXaw -lXmu -lXt $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS -lm"
       AC_CHECK_LIB(plot, pl_newpl_r,
       		   [LIBPLOT_LIBS="-lplot $extra_libs"
                     LDFLAGS="$LDFLAGS $X_LIBS"],,

Attachment: signature.asc
Description: Digital signature

_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev

Reply via email to