Lines Matching +full:- +full:wno +full:- +full:sign +full:- +full:conversion
8 # Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
28 dnl -------------------------------------------------
69 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
77 dnl -------------------------------------------------
87 clangver=`$CC -dumpversion`
88 clangvhi=`echo $clangver | cut -d . -f1`
89 clangvlo=`echo $clangver | cut -d . -f2`
91 flags_dbg_all="-g -g0 -g1 -g2 -g3"
92 flags_dbg_all="$flags_dbg_all -ggdb"
93 flags_dbg_all="$flags_dbg_all -gstabs"
94 flags_dbg_all="$flags_dbg_all -gstabs+"
95 flags_dbg_all="$flags_dbg_all -gcoff"
96 flags_dbg_all="$flags_dbg_all -gxcoff"
97 flags_dbg_all="$flags_dbg_all -gdwarf-2"
98 flags_dbg_all="$flags_dbg_all -gvms"
99 flags_dbg_yes="-g"
101 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
102 flags_opt_yes="-Os"
103 flags_opt_off="-O0"
111 dnl -------------------------------------------------
122 flags_dbg_all="-g -g0 -g1 -g2 -g3"
123 flags_dbg_yes="-g2"
125 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
126 flags_opt_yes="-O1"
127 flags_opt_off="-O0"
135 dnl -------------------------------------------------
147 gccver=`$CC -dumpversion`
148 gccvhi=`echo $gccver | cut -d . -f1`
149 gccvlo=`echo $gccver | cut -d . -f2`
151 flags_dbg_all="-g -g0 -g1 -g2 -g3"
152 flags_dbg_all="$flags_dbg_all -ggdb"
153 flags_dbg_all="$flags_dbg_all -gstabs"
154 flags_dbg_all="$flags_dbg_all -gstabs+"
155 flags_dbg_all="$flags_dbg_all -gcoff"
156 flags_dbg_all="$flags_dbg_all -gxcoff"
157 flags_dbg_all="$flags_dbg_all -gdwarf-2"
158 flags_dbg_all="$flags_dbg_all -gvms"
159 flags_dbg_yes="-g"
161 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
162 flags_opt_yes="-O2"
163 flags_opt_off="-O0"
172 dnl -------------------------------------------------
173 dnl Verify if compiler being used is HP-UX C.
176 AC_MSG_CHECKING([if compiler is HP-UX C])
181 flags_dbg_all="-g -s"
182 flags_dbg_yes="-g"
183 flags_dbg_off="-s"
184 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
194 dnl -------------------------------------------------
203 flags_dbg_all="-g -g0 -g1 -g2 -g3"
204 flags_dbg_yes="-g"
206 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
207 flags_opt_all="$flags_opt_all -qnooptimize"
208 flags_opt_all="$flags_opt_all -qoptimize=0"
209 flags_opt_all="$flags_opt_all -qoptimize=1"
210 flags_opt_all="$flags_opt_all -qoptimize=2"
211 flags_opt_all="$flags_opt_all -qoptimize=3"
212 flags_opt_all="$flags_opt_all -qoptimize=4"
213 flags_opt_all="$flags_opt_all -qoptimize=5"
214 flags_opt_yes="-O2"
215 flags_opt_off="-qnooptimize"
224 dnl -------------------------------------------------
237 flags_dbg_all="-g -g0"
238 flags_dbg_yes="-g"
240 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
241 flags_opt_yes="-O2"
242 flags_opt_off="-O0"
245 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
253 flags_dbg_yes="/Zi /Oy-"
254 flags_dbg_off="/debug:none /Oy-"
255 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
266 dnl -------------------------------------------------
275 flags_dbg_all="-g"
276 flags_dbg_yes="-g"
288 dnl -------------------------------------------------
301 flags_dbg_all="-g -g0 -g1 -g2 -g3"
302 flags_dbg_yes="-g"
304 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
305 flags_opt_yes="-O2"
306 flags_opt_off="-O0"
314 dnl -------------------------------------------------
328 flags_dbg_all="-g -g0 -g1 -g2 -g3"
329 flags_dbg_yes="-g"
331 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
332 flags_opt_yes="-O2"
333 flags_opt_off="-O0"
341 dnl -------------------------------------------------
350 flags_dbg_all="-g -s"
351 flags_dbg_yes="-g"
352 flags_dbg_off="-s"
353 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
354 flags_opt_yes="-xO2"
363 dnl -------------------------------------------------
372 flags_dbg_all="-g -b"
373 flags_dbg_yes="-g"
385 dnl -------------------------------------------------
396 flags_dbg_all="-g1 -g1+ -g2 -g3"
397 flags_dbg_yes="-g2"
399 flags_opt_all="-O0 -O1 -O2 -O3"
400 flags_opt_yes="-O2"
401 flags_opt_off="-O0"
418 dnl -------------------------------------------------
434 -I*)
440 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
441 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
449 -I*)
455 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
456 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
464 dnl CURL_COMPILER_WORKS_IFELSE ([ACTION-IF-WORKS], [ACTION-IF-NOT-WORKS])
465 dnl -------------------------------------------------
484 sed 's/^/cc-fail: /' conftest.err >&6
500 sed 's/^/link-fail: /' conftest.err >&6
504 dnl only do runtime verification when not cross-compiling
521 echo "run-fail: test program exited with status $ac_status" >&6
535 dnl -------------------------------------------------
561 dnl warn about compile-time arguments used during link-time, like
562 dnl -O and -g and -pedantic.
563 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
569 tmp_CFLAGS="$tmp_CFLAGS -std1"
571 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
573 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
575 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
586 dnl Disallow run-time dereferencing of null pointers
587 tmp_CFLAGS="$tmp_CFLAGS -z"
596 dnl Ensure that compiler optimizations are always thread-safe.
597 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
602 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
605 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
612 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
618 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
623 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
634 dnl Disallow run-time dereferencing of null pointers
635 tmp_CFLAGS="$tmp_CFLAGS -n"
679 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
702 dnl -------------------------------------------------
756 dnl -------------------------------------------------
838 dnl -------------------------------------------------
859 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
860 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
861 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
862 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
863 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
864 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
865 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
866 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
867 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
868 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
869 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
870 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
871 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
872 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
873 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
874 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
875 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
878 if test "$compiler_num" -ge "101"; then
879 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
888 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
896 dnl Do not enable -pedantic when cross-compiling with a gcc older
899 test "$compiler_num" -ge "300"; then
900 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
904 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
907 if test "$compiler_num" -ge "104"; then
908 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
909 dnl If not cross-compiling with a gcc older than 3.0
911 test "$compiler_num" -ge "300"; then
912 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
917 if test "$compiler_num" -ge "207"; then
918 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
919 dnl If not cross-compiling with a gcc older than 3.0
921 test "$compiler_num" -ge "300"; then
922 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
923 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
928 if test "$compiler_num" -ge "295"; then
929 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
933 if test "$compiler_num" -ge "296"; then
934 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
935 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
936 dnl -Wundef used only if gcc is 2.96 or later since we get
939 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
943 if test "$compiler_num" -ge "297"; then
944 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
948 if test "$compiler_num" -ge "300"; then
949 dnl -Wunreachable-code seems totally unreliable on my gcc 3.3.2 on
950 dnl on i686-Linux as it gives us heaps with false positives.
957 if test "$compiler_num" -ge "303"; then
958 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
962 if test "$compiler_num" -ge "304"; then
963 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
967 if test "$compiler_num" -ge "400"; then
968 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
972 if test "$compiler_num" -ge "402"; then
973 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
977 if test "$compiler_num" -ge "403"; then
978 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
979 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
980 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
981 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
985 if test "$compiler_num" -ge "405"; then
988 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
995 if test "$compiler_num" -ge "300"; then
996 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
998 dnl When cross-compiling with a gcc older than 3.0, disable
1001 if test "$compiler_num" -ge "104"; then
1003 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
1005 if test "$compiler_num" -ge "207"; then
1007 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
1008 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
1031 if test "$compiler_num" -gt "600"; then
1033 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
1034 dnl Perform extra compile-time code checking
1035 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
1037 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
1039 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
1041 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
1042 dnl Enable warnings for 64-bit portability issues
1043 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
1045 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
1047 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
1049 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
1051 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
1053 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
1057 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
1059 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
1060 dnl Value-safe optimizations on floating-point data
1061 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
1063 if test "$compiler_num" -ge "1000"; then
1065 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
1078 dnl Highest warning level is double -A, next is single -A.
1089 dnl Perform stricter semantic and lint-like checks
1090 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
1097 dnl Perform stricter semantic and lint-like checks
1098 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
1101 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
1108 dnl Perform stricter semantic and lint-like checks
1109 tmp_CFLAGS="$tmp_CFLAGS -v"
1117 tmp_CFLAGS="$tmp_CFLAGS -Wall"
1119 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
1121 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
1129 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
1144 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
1167 dnl -------------------------------------------------
1176 if test -z "$_sqz_result"; then
1189 dnl -------------------------------------------------
1191 dnl option, and other additional configure pre-requisites.
1232 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
1236 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
1244 dnl -------------------------------------------------
1266 dnl -------------------------------------------------
1277 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
1291 dnl -------------------------------------------------
1294 dnl result, as a compilation-time condition inside the
1309 typedef char good_t1[sizeof(myfunc().mi) == sizeof(int) ? 1 : -1 ];
1310 typedef char good_t2[sizeof(myfunc().mc) == sizeof(char) ? 1 : -1 ];
1319 sed 's/^/cc-src: /' conftest.$ac_ext >&6
1320 sed 's/^/cc-err: /' conftest.err >&6
1331 typedef char bad_t1[sizeof(myfunc().mi) != sizeof(int) ? 1 : -1 ];
1332 typedef char bad_t2[sizeof(myfunc().mc) != sizeof(char) ? 1 : -1 ];
1353 dnl -------------------------------------------------
1369 dnl All versions of clang support -fvisibility=
1371 tmp_CFLAGS="-fvisibility=hidden"
1376 if test "$compiler_num" -ge "304"; then
1377 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
1379 tmp_CFLAGS="-fvisibility=hidden"
1386 if test "$compiler_num" -ge "900"; then
1387 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
1389 CFLAGS="$CFLAGS -fvisibility=hidden"
1398 tmp_CFLAGS="-fvisibility=hidden"
1406 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
1408 tmp_CFLAGS="-xldscope=hidden"
1435 if test -f conftest.err; then
1437 if test "$?" -eq "0"; then
1444 sed 's/^/cc-src: /' conftest.$ac_ext >&6
1445 sed 's/^/cc-err: /' conftest.err >&6
1461 dnl -------------------------------------------------
1497 dnl -------------------------------------------------
1517 dnl [ACTION-IF-MATCH], [ACTION-IF-NOT-MATCH])
1518 dnl -------------------------------------------------
1534 dnl -------------------------------------------------