...because the diet libc doesn't support TLS.
Addresses-Sourceforge-Bug: #2000654
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
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
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
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
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