"Fossies" - the Fresh Open Source Software Archive 
Member "zsync-0.6.2/autotools/ac_c_compile_flags.m4" (16 Sep 2010, 291 Bytes) of package /linux/privat/old/zsync-0.6.2.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 AC_DEFUN([X_C_COMPILE_FLAGS],[
2 NEW_CFLAGS="$CFLAGS"
3 for ac_flag in $1
4 do
5 AC_MSG_CHECKING(whether compiler supports $ac_flag)
6 CFLAGS="$NEW_CFLAGS $ac_flag"
7 AC_TRY_COMPILE(,[
8 void f() {};
9 ],[
10 NEW_CFLAGS="$CFLAGS"
11 AC_MSG_RESULT(yes)
12 ],AC_MSG_RESULT(no))
13 done
14 CFLAGS="$NEW_CFLAGS"
15 ])