]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Don't use thread local storage if using diet libc
authorTheodore Ts'o <tytso@mit.edu>
Thu, 10 Jul 2008 14:21:42 +0000 (10:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 10 Jul 2008 14:21:42 +0000 (10:21 -0400)
...because the diet libc doesn't support TLS.

Addresses-Sourceforge-Bug: #2000654

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
configure
configure.in

index 898225899e1852c6b43ab09ba0defad66882dd8e..39d1ca8ef6c648ee039680b8a0d7a011b7444151 100755 (executable)
--- a/configure
+++ b/configure
@@ -2004,10 +2004,12 @@ IFS=$ac_save_IFS
 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
 
+WITH_DIET_LIBC=
 
 # Check whether --with-diet-libc was given.
 if test "${with_diet_libc+set}" = set; then
   withval=$with_diet_libc; CC="diet cc -nostdinc"
+WITH_DIET_LIBC=yes
 { echo "$as_me:$LINENO: result: CC=$CC" >&5
 echo "${ECHO_T}CC=$CC" >&6; }
 fi
@@ -4349,8 +4351,14 @@ else
 fi
 
 else
-  try_tls="yes"
-echo "Try using thread local support by default"
+  if test -n "$WITH_DIET_LIBC"
+then
+       try_tls=""
+       echo "Diet libc does not support thread local support"
+else
+       try_tls="yes"
+       echo "Try using thread local support by default"
+fi
 
 fi
 
index c16893e69af8101b495ec6fcf20f23c5703530b5..f8a7edff68dbbdc51d526598ed950b35a7d7c049 100644 (file)
@@ -65,9 +65,11 @@ AC_CANONICAL_HOST
 dnl
 dnl Use diet libc
 dnl 
+WITH_DIET_LIBC=
 AC_ARG_WITH([diet-libc],
 [  --with-diet-libc        use diet libc],
 CC="diet cc -nostdinc"
+WITH_DIET_LIBC=yes
 AC_MSG_RESULT(CC=$CC))dnl
 dnl
 dnl set $(CC) from --with-cc=value
@@ -529,8 +531,14 @@ else
        echo "Enabling thread local support"
 fi]
 ,
-try_tls="yes"
-echo "Try using thread local support by default"
+if test -n "$WITH_DIET_LIBC"
+then
+       try_tls=""
+       echo "Diet libc does not support thread local support"
+else
+       try_tls="yes"
+       echo "Try using thread local support by default"
+fi
 )
 if test "$try_tls" = "yes"
 then