Ticket #7833: patch-configure

File patch-configure, 953 bytes (added by vincent-opdarw@…, 19 years ago)

New patch-configure file for glib2

Line 
1--- configure.bak       2006-03-21 14:43:07.000000000 +0100
2+++ configure   2006-03-21 14:43:28.000000000 +0100
3@@ -33996,9 +33996,6 @@
4   aix*)
5     glib_gmodule_suffix='a'
6     ;;
7-  darwin*)
8-    glib_gmodule_suffix='dylib'
9-    ;;
10   *)
11     glib_gmodule_suffix='so'
12     ;;
13@@ -34367,9 +34364,9 @@
14          # skip cygwin and darwin -pthread or -pthreads test
15          ;;
16       *)
17-        for flag in pthread pthreads mt; do
18+        for flag in '-pthread' '-pthreads' ''; do
19           glib_save_CFLAGS="$CFLAGS"
20-          CFLAGS="$CFLAGS -$flag"
21+          CFLAGS="$CFLAGS $flag"
22           if test "$cross_compiling" = yes; then
23   cat >conftest.$ac_ext <<_ACEOF
24 
25@@ -34458,8 +34455,8 @@
26 fi
27           CFLAGS="$glib_save_CFLAGS"
28           if test $glib_flag_works = yes ; then
29-             G_THREAD_CFLAGS=-$flag
30-            G_THREAD_LIBS=-$flag
31+             G_THREAD_CFLAGS=$flag
32+            G_THREAD_LIBS=$flag
33           fi
34         done
35          ;;