null+****@clear*****
null+****@clear*****
2012年 7月 24日 (火) 16:50:47 JST
Kouhei Sutou 2012-07-24 16:50:47 +0900 (Tue, 24 Jul 2012) New Revision: 2955392070930b90b2ced1073550c0abb3428bf0 https://github.com/groonga/groonga/commit/2955392070930b90b2ced1073550c0abb3428bf0 Log: Add --with-debug configure option for developers Modified files: configure.ac groonga-httpd-conf.sh.in vendor/nginx/configure Modified: configure.ac (+14 -0) =================================================================== --- configure.ac 2012-07-24 16:43:23 +0900 (8fed021) +++ configure.ac 2012-07-24 16:50:47 +0900 (2de3fac) @@ -292,6 +292,20 @@ if test "$solaris" = "yes"; then [Define to 1 for singal.h with _XPG4_2 if you are on Solaris.]) fi +# For debug +AC_ARG_WITH(debug, + [AS_HELP_STRING([--with-debug], + [use debug flags (default=no)])], + grn_debug="$withval", + grn_debug="no") +if test "x$grn_debug" != "xno"; then + grn_debug="yes" + if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -O0 -ggdb3" + CXXFLAGS="$CXXFLAGS -O0 -ggdb3" + fi +fi + # AIO AC_ARG_ENABLE(aio, [AS_HELP_STRING([--enable-aio], Modified: groonga-httpd-conf.sh.in (+1 -0) =================================================================== --- groonga-httpd-conf.sh.in 2012-07-24 16:43:23 +0900 (b9702fe) +++ groonga-httpd-conf.sh.in 2012-07-24 16:50:47 +0900 (6073c04) @@ -14,3 +14,4 @@ export GROONGA_HTTPD_BIN_PATH="${sbindir}/groonga-httpd" export GROONGA_HTTPD_CONF_PATH="${pkgsysconfdir}/httpd/groonga-httpd.conf" export GROONGA_HTTPD_ERROR_LOG_PATH="${localstatedir}/log/groonga/httpd/error.log" export GROONGA_HTTPD_HTTP_LOG_PATH="${localstatedir}/log/groonga/httpd/access.log" +export GROONGA_HTTPD_DEBUG="@grn_debug@" Modified: vendor/nginx/configure (+7 -1) =================================================================== --- vendor/nginx/configure 2012-07-24 16:43:23 +0900 (4fc42be) +++ vendor/nginx/configure 2012-07-24 16:50:47 +0900 (2216bac) @@ -28,6 +28,11 @@ if [ "$absolute_source_directory/vendor/nginx" != "`pwd`" ]; then cp -rp "$absolute_source_directory/vendor/nginx-${nginx_version}" ../ fi +configure_args="" +if [ "$GROONGA_HTTPD_DEBUG" = "yes" ]; then + configure_args="$configure_args --with-debug" +fi + cd "../nginx-${nginx_version}" ./configure \ @@ -37,4 +42,5 @@ cd "../nginx-${nginx_version}" --error-log-path="${GROONGA_HTTPD_ERROR_LOG_PATH}" \ --http-log-path="${GROONGA_HTTPD_HTTP_LOG_PATH}" \ --add-module="${GROONGA_HTTPD_MODULE_PATH}" \ - --without-http_rewrite_module + --without-http_rewrite_module \ + ${configure_args} -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Download