OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
3.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../pkgconfig/glib-configure.patch.cross
  5. # Copyright (C) 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Sadly not all the tests that don't run while cross compiling can be answered
  17. using config.cache
  18. --- ./glib-1.2.10/configure.orig 2008-02-21 18:53:14.000000000 +0000
  19. +++ ./glib-1.2.10/configure 2008-02-21 20:59:07.000000000 +0000
  20. @@ -20566,11 +20566,8 @@
  21. glib_save_LIBS=$LIBS
  22. LIBS="$LIBS -lm"
  23. if test "$cross_compiling" = yes; then
  24. - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  25. -See \`config.log' for more details." >&5
  26. -echo "$as_me: error: cannot run test program while cross compiling
  27. -See \`config.log' for more details." >&2;}
  28. - { (exit 1); exit 1; }; }
  29. + { echo "$as_me:$LINENO: result: assuming none" >&5
  30. +echo "${ECHO_T}assuming none" >&6; }
  31. else
  32. cat >conftest.$ac_ext <<_ACEOF
  33. /* confdefs.h. */
  34. @@ -28730,11 +28727,11 @@
  35. echo $ECHO_N "checking whether pthread_mutex_trylock is posix like... $ECHO_C" >&6; }
  36. # DCE Threads return 1 as success, posix 0. what a mess.
  37. if test "$cross_compiling" = yes; then
  38. - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  39. -See \`config.log' for more details." >&5
  40. -echo "$as_me: error: cannot run test program while cross compiling
  41. -See \`config.log' for more details." >&2;}
  42. - { (exit 1); exit 1; }; }
  43. +{ echo "$as_me:$LINENO: result: assuming yes" >&5
  44. +echo "${ECHO_T}assuming yes" >&6; }
  45. + cat >>confdefs.h <<\_ACEOF
  46. +#define HAVE_PTHREAD_MUTEX_TRYLOCK_POSIX 1
  47. +_ACEOF
  48. else
  49. cat >conftest.$ac_ext <<_ACEOF
  50. /* confdefs.h. */
  51. @@ -28790,11 +28787,11 @@
  52. echo $ECHO_N "checking whether pthread_cond_timedwait is posix like... $ECHO_C" >&6; }
  53. # DCE Threads return -1 as failure, posix ETIMEDOUT.
  54. if test "$cross_compiling" = yes; then
  55. - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  56. -See \`config.log' for more details." >&5
  57. -echo "$as_me: error: cannot run test program while cross compiling
  58. -See \`config.log' for more details." >&2;}
  59. - { (exit 1); exit 1; }; }
  60. +{ echo "$as_me:$LINENO: result: assuming yes" >&5
  61. +echo "${ECHO_T}assuming yes" >&6; }
  62. + cat >>confdefs.h <<\_ACEOF
  63. +#define HAVE_PTHREAD_COND_TIMEDWAIT_POSIX 1
  64. +_ACEOF
  65. else
  66. cat >conftest.$ac_ext <<_ACEOF
  67. /* confdefs.h. */
  68. @@ -29063,11 +29060,12 @@
  69. done
  70. echo "return 0; }" >>confrun.c
  71. if test "$cross_compiling" = yes; then
  72. - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  73. -See \`config.log' for more details." >&5
  74. -echo "$as_me: error: cannot run test program while cross compiling
  75. -See \`config.log' for more details." >&2;}
  76. - { (exit 1); exit 1; }; }
  77. +rm -f $glib_sysdefso
  78. +for glib_sysdef_input in POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32 ; do
  79. + echo "#define GLIB_SYSDEF_${glib_sysdef_input/:/=}" >> $glib_sysdefso
  80. +done
  81. + { echo "$as_me:$LINENO: result: assuming defaults" >&5
  82. +echo "${ECHO_T}assuming defaults" >&6; }
  83. else
  84. cat >conftest.$ac_ext <<_ACEOF
  85. /* confdefs.h. */