X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/610e4cac35c0d15e5f480d20f07d9955e1c2e1ee..43a65e9777214029046fe7a1427493e6e503a717:/configure.ac diff --git a/configure.ac b/configure.ac index e6affccf..f206b809 100644 --- a/configure.ac +++ b/configure.ac @@ -97,10 +97,14 @@ if test x"$enable_debug" = x"yes"; then test -z "$LDFLAGS" && LDFLAGS=-g fi -dnl Use SunStudio cc on Solaris. -test -d /opt/solarisstudio12.3/bin && PATH=/opt/solarisstudio12.3/bin:$PATH +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([cc clang gcc]) +AC_PROG_CC AM_PROG_CC_C_O AC_CACHE_CHECK([whether compiler supports -Wextra], [nmh_cv_has_wextra],