X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/14eeb3d238efe97034bf544ca42d8286eeceff84..43a65e9777214029046fe7a1427493e6e503a717:/configure.ac diff --git a/configure.ac b/configure.ac index 127eea2e..f206b809 100644 --- a/configure.ac +++ b/configure.ac @@ -97,7 +97,14 @@ if test x"$enable_debug" = x"yes"; then 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=/opt/solarisstudio12.3/bin/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],