changeset 5320:ada749d7f88c

(*-sun-solaris*): Add special case for Solaris 2.3. (i860-*-sysv4): Renamed from i860-*-sysvr4. (LIBS): Add test for existence of XSetWMProtocols. (solaris): Set NON_GNU_CPP instead of CPP. Set it for all solaris versions. (mips-mips-riscos4*): Set NON_GNU_CC, not CC. (after checking for GCC): If not GCC, and NON_GNU_CPP is set, set CPP. Likewise for NON_GNU_CC and CC. (mips-mips-riscos4*): Assign variable CC. (checking ${with_gcc}): If "no", don't override CC if already set. (CC): Initialize it as empty. (Suns): Set CPP if *-solaris2.3*.
author Richard M. Stallman <rms@gnu.org>
date Fri, 24 Dec 1993 02:26:57 +0000
parents 55ef6a6dc4c2
children 69d64181891b
files configure1.in
diffstat 1 files changed, 31 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure1.in	Fri Dec 24 02:18:42 1993 +0000
+++ b/configure1.in	Fri Dec 24 02:26:57 1993 +0000
@@ -79,6 +79,7 @@
 etcdir='${datadir}/emacs/${version}/etc'
 lockdir='${statedir}/emacs/lock'
 archlibdir='${libdir}/emacs/${version}/${configuration}'
+CC=
 
 # We cannot use this variable in the case statement below, because many
 # /bin/sh's have broken semantics for "case".  Unfortunately, you must
@@ -710,7 +711,7 @@
   ;;
 
   ## Intel 860
-  i860-*-sysvr4* )
+  i860-*-sysv4* )
     machine=i860 opsys=usg5-4
   ;;
 
@@ -760,6 +761,7 @@
   ;;
   mips-mips-riscos4* )
     machine=mips4 opsys=bsd4-3
+    NON_GNU_CC="cc -systype bsd43"
   ;;
   mips-mips-bsd* )
     machine=mips opsys=bsd4-3
@@ -851,7 +853,14 @@
       *-sunos4.0*	  ) opsys=sunos4-0 ;;
       *-sunos4.1.3*	  ) opsys=sunos4-1-3 ;;
       *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
-      *-sunos5* | *-solaris* ) opsys=sol2 ;;
+      *-sunos5.3* | *-solaris2.3* )
+		opsys=sol2-3
+		NON_GNU_CPP=/usr/ccs/lib/cpp
+		;;
+      *-sunos5* | *-solaris* )
+		opsys=sol2
+		NON_GNU_CPP=/usr/ccs/lib/cpp
+		;;
       *			  ) opsys=bsd4-2   ;;
     esac
   ;;
@@ -992,11 +1001,29 @@
 #### Choose a compiler.
 case ${with_gcc} in
   "yes" ) CC="gcc" GCC=1 ;;
-  "no"  ) CC="cc"        ;;
+  "no"  ) CC=${CC:-"cc"} ;;
   * )
     ] AC_PROG_CC [
 esac
 
+#### Some systems specify a CPP to use unless we are using GCC.
+#### Now that we know whether we are using GCC, we can decide whether
+#### to use that one.
+if [ x$NON_GNU_CPP = x ] || [ x$GCC = x1 ]
+then true
+else
+  CPP=$NON_GNU_CPP
+fi
+
+#### Some systems specify a CC to use unless we are using GCC.
+#### Now that we know whether we are using GCC, we can decide whether
+#### to use that one.
+if [ x$NON_GNU_CC = x ] || [ x$GCC = x1 ]
+then true
+else
+  CC=$NON_GNU_CC
+fi
+
 #### Some other nice autoconf tests.  If you add a test here which
 #### should make an entry in src/config.h, don't forget to add an
 #### #undef clause to src/config.h.in for autoconf to modify.
@@ -1239,7 +1266,7 @@
 if test "${HAVE_X11}" = "yes"; then
   DEFS="$C_SWITCH_X_SITE $DEFS"
   LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS"
-  AC_HAVE_FUNCS(XrmSetDatabase XScreenResourceString XScreenNumberOfScreen)
+  AC_HAVE_FUNCS(XrmSetDatabase XScreenResourceString XScreenNumberOfScreen XSetWMProtocols)
 fi
 
 AC_ALLOCA