DELTA 4906 113 409 SVN„k–"– €–[FC_DEBUG], [ AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug[[=no/some/yes/checks]]], [turn on debugging [default=some]]), [case "${enableval}" in yes) enable_debug=yes ;; some) enable_debug=some ;; checks) enable_debug=checks ;; no) enable_debug=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; esac], [enable_debug=some]) dnl -g is added by AC_PROG_CC if the compiler understands it dnl ========================================================================== dnl Always FC_C_FLAGS([-Wno-tautological-compare -Wno-nonnull-compare], [], [EXTRA_DEBUG_CFLAGS]) if test "x$cxx_works" = "xyes" ; then FC_CXX_FLAGS([-Wno-tautological-compare -Wno-nonnull-compare], [], [EXTRA_DEBUG_CXXFLAGS]) fi dnl ========================================================================== dnl debug level == no if test "x$enable_debug" = "xno"; then AC_DEFINE([NDEBUG], [1], [No debugging support at all]) AC_DEFINE([FREECIV_NDEBUG], [1], [No freeciv specific debugging support at all]) FC_C_FLAGS([-O3 -fomit-frame-pointer], [], [EXTRA_DEBUG_CFLAGS]) if test "x$cxx_works" = "xyes" ; then FC_CXX_FLAGS([-O3 -fomit-frame-pointer -DQT_NO_DEBUG], [], [EXTRA_DEBUG_CXXFLAGS]) fi fi dnl ========================================================================== dnl debug level >= some if test "x$enable_debug" = "xsome" -o "x$enable_debug" = "xyes" -o \ "x$enable_debug" = "xchecks"; then FC_C_FLAGS([-Wall -Wpointer-arith -Wcast-align ], [], [EXTRA_DEBUG_CFLAGS]) if test "x$cxx_works" = "xyes" ; then FC_CXX_FLAGS([-Wall -Wpointer-arith -Wcast-align -DQT_NO_DEBUG], [], [EXTRA_DEBUG_CXXFLAGS]) fi fi dnl ========================================================================== dnl debug level >= yes if test "x$enable_debug" = "xyes" -o "x$enable_debug" = "xchecks"; then AC_DEFINE([FREECIV_DEBUG], [1], [Extra debugging support]) AC_DEFINE([LUA_USE_APICHECK], [1], [Lua Api checks]) FC_C_FLAGS([-Werror -Wmissing-prototypes -Wmissing-declarations \ -Wformat -Wformat-security -Wnested-externs \ -Wshadow], [], [EXTRA_DEBUG_CFLAGS]) if test "x$cxx_works" = "xyes" ; then FC_CXX_FLAGS([-Werror -Wmissing-prototypes -Wmissing-declarations \ -Wformat -Wformat-security], [], [EXTRA_DEBUG_CXXFLAGS]) fi dnl backtrace log callback needs "-rdynamic" in order to work well. FC_LD_FLAGS([-rdynamic -Wl,--no-add-needed], [], [EXTRA_DEBUG_LDFLAGS]) fi dnl ========================================================================== dnl debug level >= checks if test "x$enable_debug" = "xchecks"; then dnl Add additional flags as stated in ./doc/HACKING. FC_C_FLAGS([-Wstrict-prototypes], [], [EXTRA_DEBUG_CFLAGS]) fi ]) ENDREP id: 158.5ck.r34776/2884 type: file pred: 158.5ck.r34765/38212 count: 32 text: 34776 0 2858 2850 cda5afb0fdc0ad535389377ce93cdc03 props: 7252 3420 110 0 2297367bb62237eae251d6a189335c2c cpath: /trunk/m4/debug.m4 copyroot: 15280 /trunk PLAIN K 8 c++11.m4 V 25 file 18ql.5ck.r31753/1025 K 6 c11.m4 V 25 file 17mb.5ck.r32371/1942 K 6 c99.m4 V 24 file 2ez.5ck.r33427/1317 K 10 codeset.m4 V 25 file 4es.5ck.r33136/33802 K 11 compiler.m4 V 23 file 4dr.5ck.r30723/200 K 8 debug.m4 V 24 file 158.5ck.r34776/2884 K 12 expanddir.m4 V 24 file 1v1u.5ck.r29297/956 K 13 fcdb-mysql.m4 V 25 file 6kl.5ck.r25193/13434 K 16 fcdb-postgres.m4 V 23 file 6km.5ck.r29035/112 K 15 fcdb-sqlite3.m4 V 25 file 6kn.5ck.r25193/14225 K 11 features.m4 V 23 file ug2.5ck.r31783/453 K 12 freetype2.m4 V 23 file 2e2.5ck.r30043/160 K 10 gettext.m4 V 26 file 19jq.5ck.r33136/33984 K 15 gettimeofday.m4 V 25 file 16o.5ck.r19659/29370 K 8 gprof.m4 V 23 file 4jy.5ck.r33956/344 K 14 gtk3-client.m4 V 24 file 6zj.5ck.r32655/2851 K 17 gtk3.22-client.m4 V 26 file 1yeo.5xb.r34762/15596 K 15 gtk3x-client.m4 V 25 file 2rup.5ck.r34099/1344 K 8 iconv.m4 V 25 file 12y.5ck.r33136/34167 K 13 intlmacosx.m4 V 26 file 2bbx.5ck.r33136/34401 K 9 lib-ld.m4 V 25 file 4e4.5ck.r31532/76997 K 11 lib-link.m4 V 25 file 4e5.5ck.r31532/77178 K 13 lib-prefix.m4 V 25 file 4e6.5ck.r31532/77361 K 9 locale.m4 V 23 file 2cp.5ck.r25389/467 K 13 magickwand.m4 V 24 file 6nb.5ck.r32310/1146 K 20 mapimg-magickwand.m4 V 23 file 6nc.5ck.r25643/168 K 8 mysql.m4 V 23 file 6ko.5ck.r25662/384 K 6 nls.m4 V 26 file 19js.5ck.r33136/34588 K 12 no-client.m4 V 25 file 2cq.5ck.r15640/16763 K 6 pkg.m4 V 22 file 45j.5ck.r32415/55 K 5 po.m4 V 26 file 19jt.5ck.r33136/34769 K 11 postgres.m4 V 25 file 6kp.5ck.r25193/14829 K 11 progtest.m4 V 26 file 19ju.5ck.r25866/39091 K 12 qt-client.m4 V 23 file 6k7.5ck.r26897/857 K 13 qt5-darwin.m4 V 24 file 1toz.5ck.r32329/982 K 6 qt5.m4 V 23 file tqz.5ck.r29626/750 K 11 readline.m4 V 26 file 133.5ck.r33689/105539 K 14 sdl2-client.m4 V 22 file qkc.5ck.r33871/85 K 7 sdl2.m4 V 25 file qwv.5ck.r31545/27110 K 8 sound.m4 V 25 file 14o.5ck.r34767/21077 K 10 sqlite3.m4 V 22 file 6kq.5ck.r31775/48 K 12 testmatic.m4 V 26 file 20pi.5ck.r32141/19745 K 12 vsnprintf.m4 V 23 file 134.5ck.r33328/535 K 13 web-client.m4 V 24 file n5w.5ck.r31951/6793 K 11 winsock2.m4 V 25 file 2ahd.5ck.r31681/1255 END ENDREP id: 12p.5ck.r34776/5247 type: dir pred: 12p.5ck.r34767/23442 count: 323 text: 34776 3119 2115 0 15705023b6b452d50e8926430968c281 props: 17175 0 94 0 b7d1f67a2107948335edc0c95b3e2bf5 cpath: /trunk/m4 copyroot: 15280 /trunk PLAIN K 9 ABOUT-NLS V 24 file fu.5ck.r33136/31347 K 7 AUTHORS V 24 file 5u.5ck.r22143/14016 K 7 COPYING V 22 file 1h.5ck.r29454/952 K 9 ChangeLog V 26 file 6l.5ck.r34755/9472461 K 7 INSTALL V 21 file 6.5ck.r34770/417 K 11 Makefile.am V 22 file 59.5ck.r34767/828 K 4 NEWS V 24 file 6m.5ck.r25634/30702 K 6 README V 20 file 7.0.r4421/96382 K 2 ai V 22 dir 8.5ck.r34769/11025 K 10 autogen.sh V 23 file 12o.5ck.r34768/471 K 9 bootstrap V 24 dir 2p5.5ck.r34765/18337 K 6 client V 22 dir d.5ck.r34775/12463 K 6 common V 21 dir p.5ck.r34768/6215 K 12 configure.ac V 23 file 149.5ck.r34771/153 K 4 data V 21 dir w.5ck.r34771/4500 K 12 dependencies V 23 dir 2yu.5ck.r34342/3546 K 3 doc V 22 dir k7.5ck.r34770/2765 K 10 fc_version V 25 file 2lo.5en.r34757/38445 K 11 gen_headers V 23 dir 1hsw.5ck.r34605/792 K 3 lua V 24 dir 2c5e.5ck.r31919/4841 K 2 m4 V 23 dir 12p.5ck.r34776/5247 K 7 scripts V 24 dir 2yo.5ck.r34765/41493 K 6 server V 22 dir z.5ck.r34764/24818 K 5 tests V 22 dir 2g9.5ck.r32361/591 K 5 tools V 24 dir 4pj.5js.r34765/42750 K 12 translations V 23 dir t0a.5ck.r34771/7532 K 7 utility V 23 dir 1c.5ck.r34765/49484 K 7 windows V 23 dir 2eu.5x1.r34772/2449 END ENDREP id: 3.5ck.r34776/6641 type: dir pred: 3.5ck.r34775/13864 count: 22415 text: 34776 5470 1158 0 60276f389968556be9dc436580355065 props: 28036 14655 292 0 9e1d5de0253c723466868990c52c129f cpath: /trunk copyroot: 15280 /trunk PLAIN K 8 branches V 19 dir 1.0.r34773/4573 K 4 tags V 19 dir 2.0.r34572/6701 K 5 trunk V 21 dir 3.5ck.r34776/6641 K 7 website V 20 dir 3ge.0.r34597/802 END ENDREP id: 0.0.r34776/7028 type: dir pred: 0.0.r34775/14254 count: 34776 text: 34776 6864 151 0 dd2f74f4bf8a7ad41f1e9b5b2c1d6999 cpath: / copyroot: 0 / 158.5ck.t34775-1 modify true false /trunk/m4/debug.m4 7028 7174