diff options
| -rw-r--r-- | configure.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 87a353ba0b9..f91c3da4270 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1766,7 +1766,15 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 1766 | old_c_flags="${CFLAGS}" | 1766 | old_c_flags="${CFLAGS}" |
| 1767 | CFLAGS="${LD_SWITCH_X_SITE}" | 1767 | CFLAGS="${LD_SWITCH_X_SITE}" |
| 1768 | AC_CHECK_HEADER(X11/xpm.h, | 1768 | AC_CHECK_HEADER(X11/xpm.h, |
| 1769 | AC_CHECK_LIB(Xpm, XpmReturnAllocPixels, HAVE_XPM=yes, , -lX11)) | 1769 | AC_CHECK_LIB(Xpm, XpmReadFileToPixmap, HAVE_XPM=yes, , -lX11)) |
| 1770 | if test "${HAVE_XPM}" = "yes"; then | ||
| 1771 | AC_EGREP_CPP(no_return_alloc_pixels, | ||
| 1772 | [#include "X11/xpm.h" | ||
| 1773 | #ifndef XpmReturnAllocPixels | ||
| 1774 | no_return_alloc_pixels | ||
| 1775 | #endif | ||
| 1776 | ], HAVE_XPM=no, HAVE_XPM=yes) | ||
| 1777 | fi | ||
| 1770 | CFLAGS="${old_c_flags}" | 1778 | CFLAGS="${old_c_flags}" |
| 1771 | fi | 1779 | fi |
| 1772 | 1780 | ||