diff --git a/configure b/configure index 535973e7ee..517fc98a9a 100755 --- a/configure +++ b/configure @@ -7416,6 +7416,9 @@ fi CXXFLAGS="-I.. $CFLAGS -D__STDC_LIMIT_MACROS" +cat > $TMPC << EOF +int main() { return 0; } +EOF if cc_check -Wdeclaration-after-statement ; then CFLAGS="-Wdeclaration-after-statement $CFLAGS" fi