X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1e67081197110cb0593e87871a77eaa8f9e29c9f..43a65e9777214029046fe7a1427493e6e503a717:/configure.ac diff --git a/configure.ac b/configure.ac index 3e37b885..f206b809 100644 --- a/configure.ac +++ b/configure.ac @@ -97,13 +97,14 @@ if test x"$enable_debug" = x"yes"; then test -z "$LDFLAGS" && LDFLAGS=-g fi -dnl Use SunStudio cc on Solaris. -if test -d /opt/solarisstudio12.3/bin; then - 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],