aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-09-05 22:58:05 +0000
committerRichard M. Stallman2002-09-05 22:58:05 +0000
commit6d621baba59ed092fe61579cfb491a0f8eeee412 (patch)
tree74f163feaec11b75e4759f8019effaad63e4f7b0
parent790f437cec1cc5002006ca352f6d791328919a40 (diff)
downloademacs-6d621baba59ed092fe61579cfb491a0f8eeee412.tar.gz
emacs-6d621baba59ed092fe61579cfb491a0f8eeee412.zip
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Handle $GCC_LINK_TEST_OPTIONS and $NON_GCC_LINK_TEST_OPTIONS after the AC_PROG_... macros.
-rw-r--r--configure.in30
1 files changed, 20 insertions, 10 deletions
diff --git a/configure.in b/configure.in
index ef93016d717..d7268b1ca84 100644
--- a/configure.in
+++ b/configure.in
@@ -1200,16 +1200,6 @@ then
1200 CC="$CC $NON_GCC_TEST_OPTIONS" 1200 CC="$CC $NON_GCC_TEST_OPTIONS"
1201fi 1201fi
1202 1202
1203if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
1204then
1205 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
1206fi
1207
1208if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
1209then
1210 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
1211fi
1212
1213#### Some other nice autoconf tests. If you add a test here which 1203#### Some other nice autoconf tests. If you add a test here which
1214#### should make an entry in src/config.h, don't forget to add an 1204#### should make an entry in src/config.h, don't forget to add an
1215#### #undef clause to src/config.h.in for autoconf to modify. 1205#### #undef clause to src/config.h.in for autoconf to modify.
@@ -1223,6 +1213,18 @@ if test "x$RANLIB" = x; then
1223 AC_PROG_RANLIB 1213 AC_PROG_RANLIB
1224fi 1214fi
1225 1215
1216dnl Add our options to ac_link now, after it is set up.
1217
1218if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
1219then
1220 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
1221fi
1222
1223if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
1224then
1225 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
1226fi
1227
1226dnl checks for Unix variants 1228dnl checks for Unix variants
1227AC_AIX 1229AC_AIX
1228 1230
@@ -1817,6 +1819,14 @@ if test "${HAVE_X11}" = "yes"; then
1817fi 1819fi
1818 1820
1819if test "${USE_X_TOOLKIT}" = "MOTIF"; then 1821if test "${USE_X_TOOLKIT}" = "MOTIF"; then
1822 AC_CACHE_CHECK(for LessTif where some systems put it,
1823 [AC_TRY_COMPILE([#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>],
1824 [int x = 5;],
1825 emacs_cv_lesstif=yes, emacs_cv_lesstif=no)
1826 if test $emacs_cv_lesstif = yes; then
1827 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
1828 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
1829 fi
1820 AC_CACHE_CHECK(for Motif version 2.1, emacs_cv_motif_version_2_1, 1830 AC_CACHE_CHECK(for Motif version 2.1, emacs_cv_motif_version_2_1,
1821 [AC_TRY_COMPILE([#include <Xm/Xm.h>], 1831 [AC_TRY_COMPILE([#include <Xm/Xm.h>],
1822 [#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 1832 [#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)