]> git.eshelyaron.com Git - emacs.git/commitdiff
(HAVE_XPM): Undo previous change. Check for
authorGerd Moellmann <gerd@gnu.org>
Mon, 10 Jul 2000 20:37:48 +0000 (20:37 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 10 Jul 2000 20:37:48 +0000 (20:37 +0000)
preprocessor define XpmReturnAllocPixels.

configure.in

index 87a353ba0b94222a5291bea18f0c010a2a263189..f91c3da42706181cf39c30c07fb42d9c7e204cc4 100644 (file)
@@ -1766,7 +1766,15 @@ if test "${HAVE_X11}" = "yes"; then
     old_c_flags="${CFLAGS}"
     CFLAGS="${LD_SWITCH_X_SITE}"
     AC_CHECK_HEADER(X11/xpm.h,
-      AC_CHECK_LIB(Xpm, XpmReturnAllocPixels, HAVE_XPM=yes, , -lX11))
+      AC_CHECK_LIB(Xpm, XpmReadFileToPixmap, HAVE_XPM=yes, , -lX11))
+    if test "${HAVE_XPM}" = "yes"; then
+       AC_EGREP_CPP(no_return_alloc_pixels,
+       [#include "X11/xpm.h"
+#ifndef XpmReturnAllocPixels
+no_return_alloc_pixels
+#endif
+       ], HAVE_XPM=no, HAVE_XPM=yes)
+    fi
     CFLAGS="${old_c_flags}"
   fi