configure.ac: suppress warnings in the GLib headers

Replace -I with -isystem in GLIB_CFLAGS.
This commit is contained in:
Max Kellermann 2011-12-13 20:12:49 +01:00
parent 533e4fcdad
commit 2685b53b30

View File

@ -432,6 +432,11 @@ dnl ---------------------------------------------------------------------------
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.12 gthread-2.0],,
[AC_MSG_ERROR([GLib 2.12 is required])])
if test x$GCC = xyes; then
# suppress warnings in the GLib headers
GLIB_CFLAGS=`echo $GLIB_CFLAGS |sed -e 's,-I/,-isystem /,g'`
fi
dnl ---------------------------------------------------------------------------
dnl Protocol Options
dnl ---------------------------------------------------------------------------