#! /bin/sh
-# From configure.in Id: configure.in 60470 2009-05-02 12:52:54Z VZ .
+# From configure.in Id: configure.in 60979 2009-06-10 14:56:18Z VZ .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
#
--disable-rpath disable use of rpath for uninstalled builds
--enable-objc_uniquifying enable Objective-C class name uniquifying
--disable-visibility disable use of ELF symbols visibility even if supported
+ --disable-tls disable use of compiler TLS support
--enable-intl use internationalization system
--enable-xlocale use x-locale support (requires wxLocale)
--enable-config use wxConfig (and derived) classes
_ACEOF
DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
- DEFAULT_STD_FLAG=no
- ;;
- powerpc-apple-macos* )
- USE_UNIX=0
- ac_cv_c_bigendian=yes
- DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
- DEFAULT_STD_FLAG=no
;;
*-*-beos* )
DEFAULT_wxUSE_UNICODE_UTF8=auto
DEFAULT_wxUSE_OPENGL=auto
DEFAULT_wxUSE_MEDIACTRL=auto
+DEFAULT_wxUSE_COMPILER_TLS=auto
DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
echo "${ECHO_T}$result" >&6; }
+ enablestring=disable
+ defaultval=
+ if test -z "$defaultval"; then
+ if test x"$enablestring" = xdisable; then
+ defaultval=yes
+ else
+ defaultval=no
+ fi
+ fi
+
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
+ # Check whether --enable-tls was given.
+if test "${enable_tls+set}" = set; then
+ enableval=$enable_tls;
+ if test "$enableval" = yes; then
+ wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
+ else
+ wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
+ fi
+
+else
+
+ wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
+
+fi
+
+
+ eval "$wx_cv_use_tls"
+
+ if test x"$enablestring" = xdisable; then
+ if test $wxUSE_COMPILER_TLS = yes; then
+ result=no
+ else
+ result=yes
+ fi
+ else
+ result=$wxUSE_COMPILER_TLS
+ fi
+
+ { echo "$as_me:$LINENO: result: $result" >&5
+echo "${ECHO_T}$result" >&6; }
+
+
enablestring=
fi
fi
- { echo "$as_me:$LINENO: checking for __thread keyword" >&5
+ if test "$wxUSE_COMPILER_TLS" = "auto"; then
+ if test "$USE_NETBSD" = 1; then
+ { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
+echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
+ wxUSE_COMPILER_TLS=no
+ else
+ wxUSE_COMPILER_TLS=yes
+ fi
+ fi
+
+ if test "$wxUSE_COMPILER_TLS" = "yes"; then
+ { echo "$as_me:$LINENO: checking for __thread keyword" >&5
echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
if test "${wx_cv_cc___thread+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- cat >conftest.$ac_ext <<_ACEOF
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
main ()
{
- static __thread int n = 0;
- static __thread int *p = 0;
+ static __thread int n = 0;
+ static __thread int *p = 0;
;
return 0;
{ echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
- if test "$wx_cv_cc___thread" = "yes"; then
+ if test "$wx_cv_cc___thread" = "yes"; then
GXX_VERSION=""
- if test -n "$ax_cv_gxx_version"; then
- { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
+ if test -n "$ax_cv_gxx_version"; then
+ { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
- case "$ax_cv_gxx_version" in
- 1.* | 2.* | 3.* )
- { echo "$as_me:$LINENO: result: no, it's broken" >&5
+ case "$ax_cv_gxx_version" in
+ 1.* | 2.* | 3.* )
+ { echo "$as_me:$LINENO: result: no, it's broken" >&5
echo "${ECHO_T}no, it's broken" >&6; }
- wx_cv_cc___thread=no
- ;;
- *)
- { echo "$as_me:$LINENO: result: yes, it works" >&5
+ wx_cv_cc___thread=no
+ ;;
+ *)
+ { echo "$as_me:$LINENO: result: yes, it works" >&5
echo "${ECHO_T}yes, it works" >&6; }
- ;;
- esac
+ ;;
+ esac
+ fi
fi
- fi
- if test "$wx_cv_cc___thread" = "yes"; then
- cat >>confdefs.h <<\_ACEOF
+ if test "$wx_cv_cc___thread" = "yes"; then
+ cat >>confdefs.h <<\_ACEOF
#define HAVE___THREAD_KEYWORD 1
_ACEOF
- fi
+ fi
+ fi
fi
else