summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-06-17 12:29:46 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-06-17 12:29:46 +0200
commit71c86fd9b7103008bce3bdd9ae011db08dd64c10 (patch)
tree1996e534e3b6be1e16036e4a3437f5bbff6af863
parentbc589d30c18a0517804c1306869e77f67d0da3ec (diff)
downloadxine-lib-71c86fd9b7103008bce3bdd9ae011db08dd64c10.tar.gz
xine-lib-71c86fd9b7103008bce3bdd9ae011db08dd64c10.tar.bz2
Don't use C++ for socklen_t tests.
I think socklen_t was being tested with C++ to improve the warnings, but as we don't need a C++ compiler, it's not a good idea to use it. Also, with libtool 2.2 the C++ compiler is not tested by default anymore, so the macro would simply fail. On GNU/Linux and FreeBSD the test should work just as fine as it is. If you have problems on any other operating systems, please report and we'll see to fix it.
-rw-r--r--m4/_xine.m42
1 files changed, 0 insertions, 2 deletions
diff --git a/m4/_xine.m4 b/m4/_xine.m4
index 930703bbb..3ebbb028d 100644
--- a/m4/_xine.m4
+++ b/m4/_xine.m4
@@ -542,7 +542,6 @@ _ACEOF
dnl Check for the type of the third argument of getsockname
AC_DEFUN([AC_CHECK_SOCKLEN_T], [
AC_MSG_CHECKING(for socklen_t)
- AC_LANG_PUSH(C++)
AC_CACHE_VAL(ac_cv_socklen_t, [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
@@ -558,7 +557,6 @@ getsockname(0,(struct sockaddr*)0, &a);]])],
[ac_cv_socklen_t=int],[ac_cv_socklen_t=size_t])
fi
])
- AC_LANG_POP([C++])
AC_MSG_RESULT($ac_cv_socklen_t)
if test "$ac_cv_socklen_t" != "socklen_t"; then