diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-01-15 05:11:07 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-01-15 05:11:07 +0000 |
commit | 795ac15299863fe47fc587f71d3c0a8a0e6db14d (patch) | |
tree | 1d828fff6c8d38a611224830ef873669162a7f69 /configure.in | |
parent | 2b8a4456ef40add18a72da36fcf07faf22c03b2f (diff) | |
download | emacs-795ac15299863fe47fc587f71d3c0a8a0e6db14d.tar.gz |
(HAVE_XMU): Check for libXmu.a only if using toolkit
and use -lXt to link it.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.in b/configure.in index de3383a9cb9..bbeee3efaac 100644 --- a/configure.in +++ b/configure.in @@ -1258,7 +1258,6 @@ if test "${HAVE_X11}" = "yes"; then AC_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \ XScreenNumberOfScreen XSetWMProtocols) - AC_CHECK_LIB(Xmu, XmuConvertStandardSelection) fi if test "${window_system}" = "x11"; then @@ -1296,6 +1295,13 @@ fail; ], [AC_MSG_RESULT(6) AC_DEFINE(HAVE_X11XTR6)], [AC_MSG_RESULT(not 6)]) + +dnl If using toolkit, check whether libXmu.a exists. +dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link. + OLDLIBS="$LIBS" + LIBS="-lXt $LIBS" + AC_CHECK_LIB(Xmu, XmuConvertStandardSelection) + LIBS=$"OLDLIBS" fi # If netdb.h doesn't declare h_errno, we must declare it by hand. |