X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Faclocal.m4;h=5219775413ef48488ecec70ade66f8633f516149;hb=07694efddddede22a2b43d09656e988bd0d962a9;hp=1d2d925bc6df4a71b8377f56d9b7ac078c294f30;hpb=ee8861cb4901d33fef9ad228b55a60ca4950e79c;p=ncurses.git diff --git a/test/aclocal.m4 b/test/aclocal.m4 index 1d2d925b..52197754 100644 --- a/test/aclocal.m4 +++ b/test/aclocal.m4 @@ -27,7 +27,7 @@ dnl sale, use or other dealings in this Software without prior written * dnl authorization. * dnl*************************************************************************** dnl -dnl $Id: aclocal.m4,v 1.185 2020/11/14 15:26:19 tom Exp $ +dnl $Id: aclocal.m4,v 1.186 2020/11/20 23:52:27 tom Exp $ dnl dnl Author: Thomas E. Dickey dnl @@ -568,7 +568,7 @@ if test "$cf_have_curses_lib" = no; then fi ])dnl dnl --------------------------------------------------------------------------- -dnl CF_CLANG_COMPILER version: 4 updated: 2020/10/31 15:46:50 +dnl CF_CLANG_COMPILER version: 5 updated: 2020/11/20 18:52:27 dnl ----------------- dnl Check if the given compiler is really clang. clang's C driver defines dnl __GNUC__ (fooling the configure script into setting $GCC to yes) but does @@ -604,12 +604,15 @@ if test "x$ifelse([$2],,CLANG_COMPILER,[$2])" = "xyes" ; then -Wno-error=implicit-function-declaration do AC_MSG_CHECKING(if option $cf_clang_opt works) + cf_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $cf_clang_opt" AC_TRY_LINK([ #include ],[ printf("hello!\n");],[ cf_clang_optok=yes],[ cf_clang_optok=no]) AC_MSG_RESULT($cf_clang_optok) + CFLAGS="$cf_save_CFLAGS" if test $cf_clang_optok = yes; then CF_VERBOSE(adding option $cf_clang_opt) CF_APPEND_TEXT(CFLAGS,$cf_clang_opt)