Permalink
Browse files

Autotools: make GP_CHECK_CFLAGS() public

  • Loading branch information...
1 parent 2f239b0 commit 5b109eed55e521d030f3a6961547ad95689a21c5 @b4n b4n committed Apr 13, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 build/cflags.m4
View
6 build/cflags.m4
@@ -1,6 +1,6 @@
-dnl _GP_CHECK_CFLAG_(FLAG, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
+dnl GP_CHECK_CFLAG(FLAG, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
dnl Checks whether the C compiler understands FLAG
-AC_DEFUN([_GP_CHECK_CFLAG_],
+AC_DEFUN([GP_CHECK_CFLAG],
[
gp_check_cflag_CFLAGS="$CFLAGS"
CFLAGS="$1"
@@ -38,7 +38,7 @@ AC_DEFUN([GP_CHECK_CFLAGS],
-Wundef \
-Wwrite-strings
do
- _GP_CHECK_CFLAG_([$flag], [GP_CFLAGS="${GP_CFLAGS} $flag"])
+ GP_CHECK_CFLAG([$flag], [GP_CFLAGS="${GP_CFLAGS} $flag"])
done
])
AC_SUBST([GP_CFLAGS])

0 comments on commit 5b109ee

Please sign in to comment.