Author: afester
Date: Mon Sep 18 13:06:03 2006
New Revision: 447530

URL: http://svn.apache.org/viewvc?view=rev&rev=447530
Log:
LOGCXX-43: Added configure option --enable-wchar_t to allow manual
disabling of the wchar_t interfaces on systems which do not support
a __STDC_ISO_10646__ wchar_t implementation.

Modified:
    logging/log4cxx/trunk/configure.in

Modified: logging/log4cxx/trunk/configure.in
URL: 
http://svn.apache.org/viewvc/logging/log4cxx/trunk/configure.in?view=diff&rev=447530&r1=447529&r2=447530
==============================================================================
--- logging/log4cxx/trunk/configure.in (original)
+++ logging/log4cxx/trunk/configure.in Mon Sep 18 13:06:03 2006
@@ -324,11 +324,18 @@
 CPPFLAGS="-DLOG4CXX $CPPFLAGS"
 
 #for wchar_t
-AC_MSG_CHECKING([for wchar_t])
-AC_COMPILE_IFELSE(AC_LANG_SOURCE([[
-           #include <string>
-           std::wstring w;]]), [have_wchar_t=yes], [have_wchar_t=no])
-AC_MSG_RESULT($have_wchar_t)
+AC_ARG_ENABLE(wchar_t,
+        AC_HELP_STRING(--enable-wchar_t,
+               [enable wchar_t interfaces (auto)]))
+if test "x$enable_wchar_t" = xno; then
+        have_wchar_t=no
+else
+        AC_MSG_CHECKING([for wchar_t])
+        AC_COMPILE_IFELSE(AC_LANG_SOURCE([[
+                   #include <string>
+                   std::wstring w;]]), [have_wchar_t=yes], [have_wchar_t=no])
+        AC_MSG_RESULT($have_wchar_t)
+fi
 
 if test "$have_wchar_t" = "yes"
 then


Reply via email to