]> skyeroc.xyz Git - dgamelaunch/commitdiff
use $CC -xM for dependencies on solaris, if you are using cc
authorJoshua Kwan <joshk@triplehelix.org>
Mon, 21 Jun 2004 00:59:51 +0000 (00:59 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Mon, 21 Jun 2004 00:59:51 +0000 (00:59 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@319 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

Changelog
configure.ac

index 6db8cfaabe7ab48b0aeee61adb5222343a77d179..17b745f1f637bdfd429105db43c17a0d4a1d0e55 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -5,6 +5,7 @@
         * Fix dgl-create-chroot's copying of terminfo - the terminfo dir
           might be full of symlinks, so dereference them by passing -L to
           cp. It's SUSv3, honest!
+        * Now compiles with Tiny C Compiler.
 
 1.4.5 (2004/06/14)
        * Reset offset if necessary to show at least one game to avoid things
index 67068242fbf1b3dcab6a8847ed8acb5b278ac196..468a29a8b770e07d83832d5998af4302c474173a 100644 (file)
@@ -22,10 +22,25 @@ case "$(uname -s)" in
   ;;
 esac
 
+AC_MSG_CHECKING([for Solaris cc])
+case "`$CC -V 2>&1`" in
+  *Sun*WorkShop* | *Forte*Developer*)
+    AC_MSG_RESULT(yes)
+    suncc=yes
+  ;;
+  *)
+    AC_MSG_RESULT(no)
+  ;;
+esac
+
 if test "$ac_cv_c_compiler_gnu" = yes; then
   CFLAGS="$CFLAGS -Wall -Wno-unused"
   MKDEP="$CC -MM"
   MKDEP_DIRECT="> .depend"
+elif test "$suncc" = yes; then
+  MKDEP="$CC -xM"
+  # -xM is noisy
+  MKDEP_DIRECT="> .depend 2>/dev/null"
 else
   AC_CHECK_PROG(MKDEP, mkdep, mkdep,)
   if test -z "$MKDEP"; then