aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c1ffe3de7..dc1ec2061 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1214,7 +1214,19 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
fi
- CFLAGS="$CFLAGS $WARN"
+ NEWFLAGS=""
+ for flag in $CPPFLAGS; do
+ case "$flag" in
+ -I*)
+ dnl include path
+ add=`echo $flag | sed 's/^-I/-isystem /g'`
+ NEWFLAGS="$NEWFLAGS $add"
+ ;;
+ esac
+ done
+
+ CFLAGS="$CFLAGS $WARN $NEWFLAGS"
+
fi
dnl strip off optimizer flags
NEWFLAGS=""