ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure.ac
(Generate patch)

Comparing rxvt-unicode/configure.ac (file contents):
Revision 1.158 by sf-exg, Sun Nov 7 14:13:40 2021 UTC vs.
Revision 1.160 by sf-exg, Wed Nov 24 17:50:20 2021 UTC

24AC_PROG_CXX 24AC_PROG_CXX
25AC_PROG_INSTALL 25AC_PROG_INSTALL
26 26
27AC_USE_SYSTEM_EXTENSIONS 27AC_USE_SYSTEM_EXTENSIONS
28AC_LANG(C++) 28AC_LANG(C++)
29
30if test "$ac_prog_cxx_stdcxx" != cxx11; then
31 AC_MSG_ERROR([the compiler does not support C++11])
32fi
33 29
34LINKER="$CXX" 30LINKER="$CXX"
35dnl check whether we can link with gcc -lsupc++ 31dnl check whether we can link with gcc -lsupc++
36if test x$GCC = xyes && test x$GXX = xyes; then 32if test x$GCC = xyes && test x$GXX = xyes; then
37 dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it 33 dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it
174 support_warnings=yes 170 support_warnings=yes
175 fi]) 171 fi])
176if test x$GXX = xyes; then 172if test x$GXX = xyes; then
177 if test $support_warnings = yes; then 173 if test $support_warnings = yes; then
178 save_CXXFLAGS="$CXXFLAGS" 174 save_CXXFLAGS="$CXXFLAGS"
179 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" 175 for warning in \
176 -Wall \
177 -Wno-parentheses \
178 -Wno-reorder \
179 -Wno-sign-compare \
180 -Wno-unused-value \
181 ; do
182 CXXFLAGS="$CXXFLAGS $warning"
183 done
180 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="$save_CXXFLAGS"]) 184 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="$save_CXXFLAGS"])
181 else 185 else
182 CXXFLAGS="$CXXFLAGS -w" 186 CXXFLAGS="$CXXFLAGS -w"
183 fi 187 fi
184fi 188fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines