]> diplodocus.org Git - nmh/commitdiff
Try -v with SunStudio cc. Also, try setting CC instead of modifying
authorDavid Levine <levinedl@acm.org>
Tue, 10 Dec 2013 22:16:59 +0000 (16:16 -0600)
committerDavid Levine <levinedl@acm.org>
Tue, 10 Dec 2013 22:16:59 +0000 (16:16 -0600)
AC_PROC_CC to pick up cc on the buildbot Solaris host.

configure.ac

index 127eea2..4b4e42b 100644 (file)
@@ -97,7 +97,14 @@ if test x"$enable_debug" = x"yes"; then
   test -z "$LDFLAGS" && LDFLAGS=-g
 fi
 
   test -z "$LDFLAGS" && LDFLAGS=-g
 fi
 
-AC_PROG_CC([cc clang gcc])
+dnl Use SunStudio cc, with -v, on Solaris if user didn't set CC.
+if test -z "$CC"  -a  -d /opt/solarisstudio12.3/bin; then
+  CC=cc; export CC
+  ${CC} -V
+  CFLAGS="${CFLAGS:+$CFLAGS }-v"
+fi
+
+AC_PROG_CC
 AM_PROG_CC_C_O
 
 AC_CACHE_CHECK([whether compiler supports -Wextra], [nmh_cv_has_wextra],
 AM_PROG_CC_C_O
 
 AC_CACHE_CHECK([whether compiler supports -Wextra], [nmh_cv_has_wextra],