# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../pkgconfig/cross-compile.patch.cross # Copyright (C) 2006 - 2008 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- --- pkg-config-0.23/glib-1.2.10/configure.orig 2008-01-16 23:52:28.000000000 +0100 +++ pkg-config-0.23/glib-1.2.10/configure 2008-02-08 08:59:46.000000000 +0100 @@ -20566,11 +20566,9 @@ 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: error: cross compiling - assume none needed." >&5 +echo "$as_me: error: cross compiling - assume none needed." >&2;} + { (exit 1); }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -20616,7 +20614,7 @@ 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 1); echo 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -23773,7 +23771,7 @@ 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 1); echo 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -23843,7 +23841,7 @@ 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 1); echo 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -23913,7 +23911,7 @@ 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 1); echo 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -26334,7 +26332,7 @@ 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 1); echo 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -26407,7 +26405,7 @@ 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 1); echo 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -28554,7 +28552,7 @@ 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 1); echo 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -28730,11 +28728,12 @@ echo $ECHO_N "checking whether pthread_mutex_trylock is posix like... $ECHO_C" >&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: error: cross compiling - assume yes." >&5 +echo "$as_me: error: cross compiling - assume yes." >&2;} + { (exit 1); }; } +cat >>confdefs.h <<\_ACEOF +#define HAVE_PTHREAD_MUTEX_TRYLOCK_POSIX 1 +_ACEOF else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -28790,11 +28789,12 @@ echo $ECHO_N "checking whether pthread_cond_timedwait is posix like... $ECHO_C" >&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: error: cross compiling - assume yes." >&5 +echo "$as_me: error: cross compiling - assume yes." >&2;} + { (exit 1); }; } +cat >>confdefs.h <<\_ACEOF +#define HAVE_PTHREAD_COND_TIMEDWAIT_POSIX 1 +_ACEOF else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -29062,12 +29062,12 @@ echo "#endif" >>confrun.c done echo "return 0; }" >>confrun.c -if test "$cross_compiling" = yes; then +if test "$cross_compiling" = yesdisabled; 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 1); echo 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */