summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-06-10 11:18:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-06-10 11:18:21 +0200
commitdaaaaf7dcd3982c80031bda141822a469fd5cc6f (patch)
tree26fd8d5423ad5298aadc796e946c60dc642b153a /m4
parent5d4c41587dde658c9bfcb1638e0373608163bec2 (diff)
More systematic *_CFLAGS s/-I/-isystem/
...to avoid compiler warnings in external headers. Change-Id: Ibd7fcb0400bfd8ffa49cc8db77956e443551ebb3
Diffstat (limited to 'm4')
-rw-r--r--m4/libo_externals.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/libo_externals.m4 b/m4/libo_externals.m4
index 329abc7f2fd9..c17292d93f49 100644
--- a/m4/libo_externals.m4
+++ b/m4/libo_externals.m4
@@ -16,6 +16,7 @@ if test "$with_system_$1" = "yes"; then
AC_MSG_RESULT([external])
SYSTEM_$2=YES
PKG_CHECK_MODULES([$2], [$3])
+ $2_CFLAGS=$(printf '%s' "${$2_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
else
AC_MSG_RESULT([internal])
SYSTEM_$2=NO