]> granicus.if.org Git - gc/commitdiff
Refine configure messages when checking for compiler option support
authorIvan Maidanski <ivmai@mail.ru>
Tue, 14 Mar 2017 22:45:16 +0000 (01:45 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 14 Mar 2017 22:45:16 +0000 (01:45 +0300)
* configure.ac (AC_MSG_CHECKING): Refine message when checking for
a compiler option support (replace "gcc" with "compiler").

configure.ac

index 4c678820543ca05cc3b0b34ca9f91d72445bd8ad..6e96dae9ff889e11739db46ce25dbf481859dae9 100644 (file)
@@ -403,14 +403,14 @@ esac
 
 if test "$GCC" = yes; then
   # Output all warnings.
-  AC_MSG_CHECKING(for gcc -Wextra)
+  AC_MSG_CHECKING([whether compiler supports -Wextra])
   old_CFLAGS="$CFLAGS"
   CFLAGS="-Wextra $CFLAGS"
   AC_TRY_COMPILE([],[], [ac_cv_cc_wextra=yes], [ac_cv_cc_wextra=no])
   CFLAGS="$old_CFLAGS"
   AC_MSG_RESULT($ac_cv_cc_wextra)
   AS_IF([test "$ac_cv_cc_wextra" = yes], [WEXTRA="-Wextra"], [WEXTRA="-W"])
-  AC_MSG_CHECKING(for gcc -Wpedantic)
+  AC_MSG_CHECKING([whether compiler supports -Wpedantic])
   CFLAGS="-Wpedantic -Wno-long-long $CFLAGS"
   AC_TRY_COMPILE([],[
     extern int quiet;
@@ -442,7 +442,7 @@ AM_CONDITIONAL([ASM_WITH_CPP_UNSUPPORTED],
 
 if test "$GCC" = yes; then
   # Disable aliasing optimization unless forced to.
-  AC_MSG_CHECKING([whether gcc supports -fno-strict-aliasing])
+  AC_MSG_CHECKING([whether compiler supports -fno-strict-aliasing])
   ac_cv_fno_strict_aliasing=no
   for cflag in $CFLAGS; do
     case "$cflag" in
@@ -574,7 +574,7 @@ if test "${enable_shared}" = yes; then
     AC_DEFINE(GC_DLL)
     if test "$GCC" = yes; then
       # Pass -fvisibility=hidden option if supported
-      AC_MSG_CHECKING([whether gcc supports -fvisibility])
+      AC_MSG_CHECKING([whether compiler supports -fvisibility])
       old_CFLAGS="$CFLAGS"
       CFLAGS="-Werror -fvisibility=hidden $CFLAGS"
       AC_TRY_COMPILE([],[], [ac_cv_fvisibility_hidden=yes],