File: ac_c_compile_flags.m4

package info (click to toggle)
zsync 0.6.2-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,396 kB
  • ctags: 1,052
  • sloc: ansic: 9,015; sh: 3,800; makefile: 42
file content (15 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
AC_DEFUN([X_C_COMPILE_FLAGS],[
NEW_CFLAGS="$CFLAGS"
for ac_flag in $1
do
 AC_MSG_CHECKING(whether compiler supports $ac_flag)
 CFLAGS="$NEW_CFLAGS $ac_flag"
 AC_TRY_COMPILE(,[
  void f() {};
 ],[
  NEW_CFLAGS="$CFLAGS"
  AC_MSG_RESULT(yes)
 ],AC_MSG_RESULT(no))
done
CFLAGS="$NEW_CFLAGS"
])