@@ -5292,21 +5292,76 @@ fi
5292
5292
fi
5293
5293
fi
5294
5294
5295
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking Strict options for C compiler" >&5
5296
+ printf %s " checking Strict options for C compiler... " >&6 ; }
5297
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking $CC supports -Wno-error=shift-negative-value" >&5
5298
+ printf %s " checking $CC supports -Wno-error=shift-negative-value... " >&6 ; }; echo " int main() { return -1 << 1; }" > conftest-Wno-error=shift-negative-value.c;
5299
+ res=no
5300
+ if $CC -Werror -Wno-error=shift-negative-value -c conftest-Wno-error=shift-negative-value.c > /dev/null 2>&1 ; then cfg_no_shift_negative_value=" -Wno-error=shift-negative-value" ; res=yes; fi ;
5301
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $res " >&5
5302
+ printf " %s\n" " $res " >&6 ; }
5303
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking $CC supports -Wno-sign-compare" >&5
5304
+ printf %s " checking $CC supports -Wno-sign-compare... " >&6 ; }; echo " " > conftest-Wno-sign-compare.c;
5305
+ res=no
5306
+ if $CC -Werror -Wno-sign-compare -c conftest-Wno-sign-compare.c > /dev/null 2>&1 ; then cfg_no_sign_compare=" -Wno-sign-compare" ; res=yes; fi ;
5307
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $res " >&5
5308
+ printf " %s\n" " $res " >&6 ; }
5309
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking $CC supports -Wno-deprecated-non-prototype" >&5
5310
+ printf %s " checking $CC supports -Wno-deprecated-non-prototype... " >&6 ; }; echo " " > conftest-Wno-deprecated-non-prototype.c;
5311
+ res=no
5312
+ if $CC -Werror -Wno-deprecated-non-prototype -c conftest-Wno-deprecated-non-prototype.c > /dev/null 2>&1 ; then cfg_no_deprecated_non_prototype=" -Wno-deprecated-non-prototype" ; res=yes; fi ;
5313
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $res " >&5
5314
+ printf " %s\n" " $res " >&6 ; }
5315
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking $CC supports -Wno-strict-prototypes" >&5
5316
+ printf %s " checking $CC supports -Wno-strict-prototypes... " >&6 ; }; echo " " > conftest-Wno-strict-prototypes.c;
5317
+ res=no
5318
+ if $CC -Werror -Wno-strict-prototypes -c conftest-Wno-strict-prototypes.c > /dev/null 2>&1 ; then cfg_no_strict_prototypes=" -Wno-strict-prototypes" ; res=yes; fi ;
5319
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $res " >&5
5320
+ printf " %s\n" " $res " >&6 ; }
5321
+
5322
+ cfgSTRICTCFLAGS=" -pedantic -std=c99 -Wall -Wextra -Werror -Wno-empty-body -Wno-enum-compare \
5323
+ -Wno-missing-field-initializers -Wno-unused -Wno-unused-parameter \
5324
+ -Wno-error=format -Wno-error=type-limits -Wno-error=strict-aliasing \
5325
+ $cfg_no_sign_compare $cfg_no_shift_negative_value "
5326
+ case " ${CC} " in
5327
+ gcc* )
5328
+ cfgSTRICTCFLAGS=" ${cfgSTRICTCFLAGS} -Wno-error=clobbered"
5329
+ ;;
5330
+ clang* )
5331
+ cfgSTRICTCFLAGS=" ${cfgSTRICTCFLAGS} -fcolor-diagnostics -Wno-error=enum-conversion \
5332
+ -Wno-error=tautological-compare -Wno-parentheses-equality \
5333
+ $cfg_no_deprecated_non_prototype \
5334
+ $cfg_no_strict_prototypes "
5335
+ ;;
5336
+ * )
5337
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : WARNING: Unknown C compiler ${CC} " >&5
5338
+ printf " %s\n" " $as_me : WARNING: Unknown C compiler ${CC} " >&2 ; }
5339
+ cfgSTRICTCFLAGS=" " ;;
5340
+ esac
5341
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: ${CC} " >&5
5342
+ printf " %s\n" " ${CC} " >&6 ; }
5295
5343
{ printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking Options for build library .." >&5
5296
5344
printf %s " checking Options for build library ..... " >&6 ; }
5297
5345
{ printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking $CC supports -Wno-int-conversion" >&5
5298
5346
printf %s " checking $CC supports -Wno-int-conversion... " >&6 ; }; echo " int main() { return 1; }" > conftest-Wno-int-conversion.c;
5299
5347
res=no
5300
5348
if $CC -Werror -Wno-int-conversion -c conftest-Wno-int-conversion.c > /dev/null 2>&1 ; then cfg_no_int_conversion=" -Wno-int-conversion" ; res=yes; fi ;
5301
5349
{ printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $res " >&5
5350
+ printf " %s\n" " $res " >&6 ; }
5351
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking $CC supports -Wno-builtin-declaration-mismatch" >&5
5352
+ printf %s " checking $CC supports -Wno-builtin-declaration-mismatch... " >&6 ; }; echo " int main() { return 1; }" > conftest-Wno-builtin-declaration-mismatch.c;
5353
+ res=no
5354
+ if $CC -Werror -Wno-builtin-declaration-mismatch -c conftest-Wno-builtin-declaration-mismatch.c > /dev/null 2>&1 ; then cfg_no_builtin_mismatch=" -Wno-builtin-declaration-mismatch" ; res=yes; fi ;
5355
+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $res " >&5
5302
5356
printf " %s\n" " $res " >&6 ; }
5303
5357
{ printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking $CC supports -Wno-incompatible-pointer-types" >&5
5304
5358
printf %s " checking $CC supports -Wno-incompatible-pointer-types... " >&6 ; }; echo " int main() { return 1; }" > conftest-Wno-incompatible-pointer-types.c;
5305
5359
res=no
5306
5360
if $CC -Werror -Wno-incompatible-pointer-types -c conftest-Wno-incompatible-pointer-types.c > /dev/null 2>&1 ; then cfg_no_incompatible_pointer_types=" -Wno-incompatible-pointer-types" ; res=yes; fi ;
5307
5361
{ printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $res " >&5
5308
5362
printf " %s\n" " $res " >&6 ; }
5309
- LIB_CC_FLAGS=" ${cfg_no_int_conversion} ${cfg_no_incompatible_pointer_types} "
5363
+ LIB_CC_FLAGS=" ${cfg_no_builtin_mismatch} ${cfg_no_incompatible_pointer_types} ${cfg_no_deprecated_non_prototype} "
5364
+
5310
5365
5311
5366
5312
5367
# Check whether --enable-edit-gloop was given.
@@ -13456,45 +13511,12 @@ CC=$lt_save_CC
13456
13511
13457
13512
13458
13513
# Enable extra warnings and -Werror if supported.
13459
- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking Strict options for C compiler" >&5
13460
- printf %s " checking Strict options for C compiler... " >&6 ; }
13461
- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking $CC supports -Wno-error=shift-negative-value" >&5
13462
- printf %s " checking $CC supports -Wno-error=shift-negative-value... " >&6 ; }; echo " int main() { return -1 << 1; }" > conftest-Wno-error=shift-negative-value.c;
13463
- res=no
13464
- if $CC -Werror -Wno-error=shift-negative-value -c conftest-Wno-error=shift-negative-value.c > /dev/null 2>&1 ; then cfg_no_shift_negative_value=" -Wno-error=shift-negative-value" ; res=yes; fi ;
13465
- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $res " >&5
13466
- printf " %s\n" " $res " >&6 ; }
13467
- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking $CC supports -Wno-sign-compare" >&5
13468
- printf %s " checking $CC supports -Wno-sign-compare... " >&6 ; }; echo " " > conftest-Wno-sign-compare.c;
13469
- res=no
13470
- if $CC -Werror -Wno-sign-compare -c conftest-Wno-sign-compare.c > /dev/null 2>&1 ; then cfg_no_sign_compare=" -Wno-sign-compare" ; res=yes; fi ;
13471
- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $res " >&5
13472
- printf " %s\n" " $res " >&6 ; }
13473
-
13474
- cfgSTRICTCFLAGS=" -pedantic -std=c99 -Wall -Wextra -Werror -Wno-empty-body -Wno-enum-compare \
13475
- -Wno-missing-field-initializers -Wno-unused -Wno-unused-parameter \
13476
- -Wno-error=format -Wno-error=type-limits -Wno-error=strict-aliasing \
13477
- $cfg_no_sign_compare $cfg_no_shift_negative_value "
13478
- case " ${CC} " in
13479
- gcc* )
13480
- cfgSTRICTCFLAGS=" ${cfgSTRICTCFLAGS} -Wno-error=clobbered"
13481
- ;;
13482
- clang* )
13483
- cfgSTRICTCFLAGS=" ${cfgSTRICTCFLAGS} -fcolor-diagnostics -Wno-error=enum-conversion \
13484
- -Wno-error=tautological-compare -Wno-parentheses-equality"
13485
- ;;
13486
- * )
13487
- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : WARNING: Unknown C compiler ${CC} " >&5
13488
- printf " %s\n" " $as_me : WARNING: Unknown C compiler ${CC} " >&2 ; }
13489
- cfgSTRICTCFLAGS=" " ;;
13490
- esac
13491
- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: ${CC} " >&5
13492
- printf " %s\n" " ${CC} " >&6 ; }
13493
13514
{ printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking Determining source for sbrk" >&5
13494
13515
printf %s " checking Determining source for sbrk... " >&6 ; }
13495
13516
cat > conftest_sbrk.c << EOF
13496
13517
#include <unistd.h>
13497
- int main() { sbrk(3); }
13518
+ int main(int argc, char **argv);
13519
+ int main(int argc, char **argv) { sbrk(3); }
13498
13520
EOF
13499
13521
case ${host_os} in
13500
13522
darwin* ) sbrk_opt=_SBRK_NOT_NEEDED;;
0 commit comments