configure.ac: don't suppress GLib warnings by changing -I to -isystem
This is a kludge which may break system include path order, see https://bugs.musicpd.org/view.php?id=4524
This commit is contained in:
parent
15735552f4
commit
aa5d05eaa4
@ -703,12 +703,6 @@ AC_ARG_ENABLE(glib,
|
|||||||
if test x$enable_glib = xyes; then
|
if test x$enable_glib = xyes; then
|
||||||
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.28 gthread-2.0],,
|
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.28 gthread-2.0],,
|
||||||
[AC_MSG_ERROR([GLib 2.28 is required])])
|
[AC_MSG_ERROR([GLib 2.28 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
|
|
||||||
|
|
||||||
AC_DEFINE(HAVE_GLIB, 1, [Define if GLib is used])
|
AC_DEFINE(HAVE_GLIB, 1, [Define if GLib is used])
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(HAVE_GLIB, test x$enable_glib = xyes)
|
AM_CONDITIONAL(HAVE_GLIB, test x$enable_glib = xyes)
|
||||||
|
Loading…
Reference in New Issue
Block a user