diff --git a/configure b/configure index 996d1984..2ea6a7db 100755 --- a/configure +++ b/configure @@ -3975,8 +3975,16 @@ if test "$GCC" = yes; then CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes" # Check for link-time optimization support for f in -flto=auto -ffat-lto-objects; do - echo -n "Checking if C compiler supports $f... " - if $CC -E $f /dev/null > /dev/null 2>&1 ; then echo "yes"; CFLAGS="$CFLAGS $f"; else echo "no"; fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $f" >&5 +$as_echo_n "checking whether $CC supports $f... " >&6; } + if $CC -E $f /dev/null > /dev/null 2>&1 ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CFLAGS="$CFLAGS $f" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi done fi diff --git a/configure.in b/configure.in index 2e289dd2..f45ac4eb 100644 --- a/configure.in +++ b/configure.in @@ -48,8 +48,13 @@ if test "$GCC" = yes; then CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes" # Check for link-time optimization support for f in -flto=auto -ffat-lto-objects; do - echo -n "Checking if C compiler supports $f... " - if $CC -E $f /dev/null > /dev/null 2>&1 ; then echo "yes"; CFLAGS="$CFLAGS $f"; else echo "no"; fi + AC_MSG_CHECKING([whether $CC supports $f]) + if $CC -E $f /dev/null > /dev/null 2>&1 ; then + AC_MSG_RESULT([yes]) + CFLAGS="$CFLAGS $f" + else + AC_MSG_RESULT([no]) + fi done fi