|
|
@ -2,7 +2,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: package/.../pkgconfig/glib-configure.patch.cross |
|
|
|
# Copyright (C) 2008 The OpenSDE Project |
|
|
|
# Copyright (C) 2008 - 2010 The OpenSDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
# |
|
|
@ -17,71 +17,60 @@ |
|
|
|
Sadly not all the tests that don't run while cross compiling can be answered |
|
|
|
using config.cache |
|
|
|
|
|
|
|
--- ./glib-1.2.10/configure.orig 2008-02-21 18:53:14.000000000 +0000 |
|
|
|
+++ ./glib-1.2.10/configure 2008-02-21 20:59:07.000000000 +0000 |
|
|
|
@@ -20566,11 +20566,8 @@ |
|
|
|
--- ./glib-1.2.10/configure.orig 2010-07-12 14:34:25.124557422 +0200 |
|
|
|
+++ ./glib-1.2.10/configure 2010-07-12 16:08:12.096505328 +0200 |
|
|
|
@@ -12191,10 +12191,8 @@ |
|
|
|
glib_save_LIBS=$LIBS |
|
|
|
LIBS="$LIBS -lm" |
|
|
|
if test "$cross_compiling" = yes; then |
|
|
|
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." >&5 |
|
|
|
-echo "$as_me: error: cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." >&2;} |
|
|
|
- { (exit 1); exit 1; }; } |
|
|
|
+ { echo "$as_me:$LINENO: result: assuming none" >&5 |
|
|
|
+echo "${ECHO_T}assuming none" >&6; } |
|
|
|
if test "$cross_compiling" = yes; then : |
|
|
|
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
|
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
|
-as_fn_error "cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." "$LINENO" 5; } |
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming none" >&5 |
|
|
|
+$as_echo "none needed" >&6; } |
|
|
|
else |
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
/* confdefs.h. */ |
|
|
|
@@ -28730,11 +28727,11 @@ |
|
|
|
echo $ECHO_N "checking whether pthread_mutex_trylock is posix like... $ECHO_C" >&6; } |
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
|
/* end confdefs.h. */ |
|
|
|
@@ -14728,10 +14726,8 @@ |
|
|
|
$as_echo_n "checking whether pthread_mutex_trylock is posix like... " >&6; } |
|
|
|
# DCE Threads return 1 as success, posix 0. what a mess. |
|
|
|
if test "$cross_compiling" = yes; then |
|
|
|
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." >&5 |
|
|
|
-echo "$as_me: error: cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." >&2;} |
|
|
|
- { (exit 1); exit 1; }; } |
|
|
|
+{ echo "$as_me:$LINENO: result: assuming yes" >&5 |
|
|
|
+echo "${ECHO_T}assuming yes" >&6; } |
|
|
|
+ cat >>confdefs.h <<\_ACEOF |
|
|
|
+#define HAVE_PTHREAD_MUTEX_TRYLOCK_POSIX 1 |
|
|
|
+_ACEOF |
|
|
|
if test "$cross_compiling" = yes; then : |
|
|
|
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
|
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
|
-as_fn_error "cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." "$LINENO" 5; } |
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming yes" >&5 |
|
|
|
+$as_echo "assuming yes" >&6; } |
|
|
|
else |
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
/* confdefs.h. */ |
|
|
|
@@ -28790,11 +28787,11 @@ |
|
|
|
echo $ECHO_N "checking whether pthread_cond_timedwait is posix like... $ECHO_C" >&6; } |
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
|
/* end confdefs.h. */ |
|
|
|
@@ -14757,10 +14753,8 @@ |
|
|
|
$as_echo_n "checking whether pthread_cond_timedwait is posix like... " >&6; } |
|
|
|
# DCE Threads return -1 as failure, posix ETIMEDOUT. |
|
|
|
if test "$cross_compiling" = yes; then |
|
|
|
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." >&5 |
|
|
|
-echo "$as_me: error: cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." >&2;} |
|
|
|
- { (exit 1); exit 1; }; } |
|
|
|
+{ echo "$as_me:$LINENO: result: assuming yes" >&5 |
|
|
|
+echo "${ECHO_T}assuming yes" >&6; } |
|
|
|
+ cat >>confdefs.h <<\_ACEOF |
|
|
|
+#define HAVE_PTHREAD_COND_TIMEDWAIT_POSIX 1 |
|
|
|
+_ACEOF |
|
|
|
if test "$cross_compiling" = yes; then : |
|
|
|
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
|
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
|
-as_fn_error "cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." "$LINENO" 5; } |
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming yes" >&5 |
|
|
|
+$as_echo "assuming yes" >&6; } |
|
|
|
else |
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
/* confdefs.h. */ |
|
|
|
@@ -29063,11 +29060,12 @@ |
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
|
/* end confdefs.h. */ |
|
|
|
@@ -14942,10 +14936,11 @@ |
|
|
|
done |
|
|
|
echo "return 0; }" >>confrun.c |
|
|
|
if test "$cross_compiling" = yes; then |
|
|
|
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." >&5 |
|
|
|
-echo "$as_me: error: cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." >&2;} |
|
|
|
- { (exit 1); exit 1; }; } |
|
|
|
+rm -f $glib_sysdefso |
|
|
|
if test "$cross_compiling" = yes; then : |
|
|
|
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
|
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
|
-as_fn_error "cannot run test program while cross compiling |
|
|
|
-See \`config.log' for more details." "$LINENO" 5; } |
|
|
|
+for glib_sysdef_input in POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32 ; do |
|
|
|
+ echo "#define GLIB_SYSDEF_${glib_sysdef_input/:/=}" >> $glib_sysdefso |
|
|
|
+done |
|
|
|
+ { echo "$as_me:$LINENO: result: assuming defaults" >&5 |
|
|
|
+echo "${ECHO_T}assuming defaults" >&6; } |
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming defaults" >&5 |
|
|
|
+$as_echo "assuming defaults" >&6; } |
|
|
|
else |
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
/* confdefs.h. */ |
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
|
/* end confdefs.h. */ |