logic error/missing include in glib/configure.in



hi,

The attached patch appears to fix the build of the glib-2-6 branch for
me.

regards,
Mathieu
-- 
Mathieu Lacage <lacage inria fr>
? a.out-20752.func-dump
? a.out-30008.func-dump
? a.out-3164.func-dump
? a.out-5228.func-dump
? patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/glib/ChangeLog,v
retrieving revision 1.1839.2.9
diff -u -r1.1839.2.9 ChangeLog
--- ChangeLog	22 Jan 2005 22:16:10 -0000	1.1839.2.9
+++ ChangeLog	24 Jan 2005 12:11:11 -0000
@@ -1,3 +1,9 @@
+2005-01-24 Mathieu Lacage <lacage inria fr>
+
+	* configure.in: exit () requires #include <stdlib.h>.
+	The for loop which tries various thread options of the compiler
+	should break as soon as a working match is found.
+
 2005-01-22  Tor Lillqvist  <tml novell com>
 
 	* glib/gdate.c (g_date_set_time): Don't g_assert that localtime()
Index: configure.in
===================================================================
RCS file: /cvs/gnome/glib/configure.in,v
retrieving revision 1.428.2.1
diff -u -r1.428.2.1 configure.in
--- configure.in	19 Jan 2005 02:04:32 -0000	1.428.2.1
+++ configure.in	24 Jan 2005 12:11:12 -0000
@@ -1462,6 +1462,7 @@
 dnl
 m4_define([glib_thread_test],[
 #include <pthread.h> 
+#include <stdlib.h>
 int check_me = 0;
 void* func(void* data) {check_me = 42; return &check_me;}
 int main()
@@ -1509,6 +1510,7 @@
           if test $glib_flag_works = yes ; then
              G_THREAD_CFLAGS=-$flag
 	     G_THREAD_LIBS=-$flag
+	     break
           fi
         done
          ;;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]