summaryrefslogtreecommitdiffstats
path: root/patches/dbus-1.0.0/generic/dbus-0.94-abstract-sockets.diff
blob: c9cce3c56f5e790480c0e95ff0da6ff2841a52fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# Submitted-By: Robert Schwebel, 2006-10-19
# Committed-By: Robert Schwebel
#
# Error:
#
# checking abstract socket namespace... configure: error: cannot run test program while cross compiling
#
# Description:
#
# configure tries to check for abstract sockets, even if it was
# explicitly specified on the command line. This breaks cross
# compilation.
#
# State:
#
# unknown
#

diff -urN dbus-0.94/configure.in dbus-0.94-ptx/configure.in
--- dbus-0.94/configure.in	2006-10-14 19:27:49.000000000 +0200
+++ dbus-0.94-ptx/configure.in	2006-10-19 11:40:18.000000000 +0200
@@ -650,6 +650,7 @@
 
 #### Abstract sockets
 
+if test x$enable_abstract_sockets = xauto; then
 AC_MSG_CHECKING(abstract socket namespace)
 AC_LANG_PUSH(C)
 AC_RUN_IFELSE([AC_LANG_PROGRAM(
@@ -692,11 +693,10 @@
               [have_abstract_sockets=no])
 AC_LANG_POP(C)
 AC_MSG_RESULT($have_abstract_sockets)
+fi
 
 if test x$enable_abstract_sockets = xyes; then
-    if test x$have_abstract_sockets = xno; then
-	AC_MSG_ERROR([Abstract sockets explicitly required, and support not detected.])
-    fi
+   have_abstract_sockets=yes;
 fi
 
 if test x$enable_abstract_sockets = xno; then