comparison configure.in @ 2553:b880fa9b5d8a

[xemacs-hg @ 2005-02-03 17:33:50 by james] Fix the C++ build the rest of the way. See xemacs-patches message with ID <ps4qgteel0.fsf@diannao.ittc.ku.edu>.
author james
date Thu, 03 Feb 2005 17:34:03 +0000
parents 38caebdefb55
children 3d8cce0303fa
comparison
equal deleted inserted replaced
2552:166ed8151e62 2553:b880fa9b5d8a
2101 sol2 ) cflags_warning="-v" ;; 2101 sol2 ) cflags_warning="-v" ;;
2102 esac 2102 esac
2103 elif test "$CC" = "xlc"; then 2103 elif test "$CC" = "xlc"; then
2104 cflags_warning="-qinfo" 2104 cflags_warning="-qinfo"
2105 elif test "$GCC" = "yes"; then 2105 elif test "$GCC" = "yes"; then
2106 cflags_warning="-Wall -Wno-switch -Wmissing-prototypes" 2106 cflags_warning="-Wall -Wno-switch -Wundef"
2107 dnl This is not very useful, as it issues warnings that may appear 2107 dnl This is not very useful, as it issues warnings that may appear
2108 dnl or disappear rather randomly, cannot easily be fixed, and are 2108 dnl or disappear rather randomly, cannot easily be fixed, and are
2109 dnl not a big deal. If you want it, add it yourself. 2109 dnl not a big deal. If you want it, add it yourself.
2110 dnl cflags_warning="$cflags_warning -Winline" 2110 dnl cflags_warning="$cflags_warning -Winline"
2111 2111
2112 dnl Yuck, bad compares have been worth at least 3 crashes! 2112 dnl Yuck, bad compares have been worth at least 3 crashes!
2113 dnl Warnings about char subscripts are pretty pointless, though, 2113 dnl Warnings about char subscripts are pretty pointless, though,
2114 dnl and we use them in various places. 2114 dnl and we use them in various places.
2115 cflags_warning="$cflags_warning -Wsign-compare -Wno-char-subscripts" 2115 cflags_warning="$cflags_warning -Wsign-compare -Wno-char-subscripts"
2116 cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes"
2117 test "$__GCC3" = "yes" && cflags_warning="$cflags_warning -Wpacked" 2116 test "$__GCC3" = "yes" && cflags_warning="$cflags_warning -Wpacked"
2118 dnl glibc is intentionally not `-Wpointer-arith'-clean. 2117 dnl glibc is intentionally not `-Wpointer-arith'-clean.
2119 dnl Ulrich Drepper has rejected patches to fix the glibc header files. 2118 dnl Ulrich Drepper has rejected patches to fix the glibc header files.
2120 test "$have_glibc" != "yes" && \ 2119 test "$have_glibc" != "yes" && \
2121 cflags_warning="$cflags_warning -Wpointer-arith" 2120 cflags_warning="$cflags_warning -Wpointer-arith"
2132 xe_cflags_warning="$cflags_warning -Weffc++" 2131 xe_cflags_warning="$cflags_warning -Weffc++"
2133 elif test "$__GCC3" = "yes"; then 2132 elif test "$__GCC3" = "yes"; then
2134 xe_cflags_warning="$cflags_warning -Wunused-parameter" 2133 xe_cflags_warning="$cflags_warning -Wunused-parameter"
2135 fi 2134 fi
2136 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations" 2135 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations"
2136 cflags_warning="$cflags_warning -Wmissing-prototypes -Wstrict-prototypes"
2137 dnl **** If more gcc/g++ flags are added, from here on must handle 2137 dnl **** If more gcc/g++ flags are added, from here on must handle
2138 dnl **** cflags_warning and xe_cflags_warning in parallel 2138 dnl **** cflags_warning and xe_cflags_warning in parallel
2139 elif test "$__ICC" = "yes"; then 2139 elif test "$__ICC" = "yes"; then
2140 cflags_warning="-Wall -w1 -we147" 2140 cflags_warning="-Wall -w1 -we147"
2141 dnl ### Add optimal cflags_warning support for other compilers HERE! 2141 dnl ### Add optimal cflags_warning support for other compilers HERE!