Commit 82f20ceb authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Explode in the face of the user if (s)he has a broken glibc

I am fed up with all the blame we got for this for over a year.
parent da41047c
......@@ -503,6 +503,24 @@ AC_LANG_PUSH(C++)
AC_LANG_POP(C++)
fi
dnl
dnl Buggy glibc prevention. Purposedly not cached.
dnl Ubuntu alone has 20 bug numbers for this...
dnl
AC_MSG_CHECKING(for buggy GNU/libc versions)
AC_PREPROC_IFELSE([
#include <limits.h>
#if defined (__GLIBC__) && (__GLIBC__ == 2) \
&& (__GLIBC_MINOR__ >= 5) && (__GLIBC_MINOR__ <= 7)
# error GNU/libc with dcgettext killer bug!
#endif
], [
AC_MSG_RESULT([not present])
], [
AC_MSG_RESULT([found])
AC_MSG_ERROR([Buggy GNU/libc (version 2.5 - 2.7) present. VLC would crash; there is no viable work-around for this. Check with your distribution vendor on how to update the glibc run-time.])
])
dnl Plugin compilation stuff
VLC_LIBRARY_SUFFIX
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment