のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

MOZ_LOGGINGはどこでセットされる?

gecko/objdir-gonk-debug/mozilla-config.hになるのかな?

configure.in
7046 dnl ========================================================
7047 dnl = Disable runtime logging checks
7048 dnl ========================================================
7049 MOZ_ARG_DISABLE_BOOL(logging,
7050 [  --disable-logging       Disable logging facilities],
7051     NS_DISABLE_LOGGING=1,
7052     NS_DISABLE_LOGGING= )
7053 if test "$NS_DISABLE_LOGGING"; then
7054     AC_DEFINE(NS_DISABLE_LOGGING)
7055 else
7056     AC_DEFINE(MOZ_LOGGING)
7057 fi


configure

# Check whether --enable-logging or --disable-logging was given.
if test "${enable_logging+set}" = set; then
  enableval="$enable_logging"
  if test "$enableval" = "no"; then
    NS_DISABLE_LOGGING=1
  elif test "$enableval" = "yes"; then
    NS_DISABLE_LOGGING=
  else
    { echo "configure: error: Option, logging, does not take an argument ($enableval)." 1>&2; exit 1; }
  fi
fi

if test "$NS_DISABLE_LOGGING"; then
    cat >> confdefs.pytmp <<\EOF
    (''' NS_DISABLE_LOGGING ''', ' 1 ')
EOF
cat >> confdefs.h <<\EOF
#define NS_DISABLE_LOGGING 1
EOF

else
    cat >> confdefs.pytmp <<\EOF
    (''' MOZ_LOGGING ''', ' 1 ')
EOF
cat >> confdefs.h <<\EOF
#define MOZ_LOGGING 1
EOF