X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=Ada95%2Faclocal.m4;h=24bf486c5c384658d9797be074fbfba73841fa34;hp=c80b7c88dbab756030e313fadcb91945f518696c;hb=07694efddddede22a2b43d09656e988bd0d962a9;hpb=ee8861cb4901d33fef9ad228b55a60ca4950e79c diff --git a/Ada95/aclocal.m4 b/Ada95/aclocal.m4 index c80b7c88..24bf486c 100644 --- a/Ada95/aclocal.m4 +++ b/Ada95/aclocal.m4 @@ -29,7 +29,7 @@ dnl*************************************************************************** dnl dnl Author: Thomas E. Dickey dnl -dnl $Id: aclocal.m4,v 1.164 2020/11/14 15:25:46 tom Exp $ +dnl $Id: aclocal.m4,v 1.165 2020/11/20 23:52:27 tom Exp $ dnl Macros used in NCURSES Ada95 auto-configuration script. dnl dnl These macros are maintained separately from NCURSES. The copyright on @@ -719,7 +719,7 @@ case $cf_cv_gnat_version in esac ]) 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 @@ -755,12 +755,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)