fix to determination of G_THREAD_CFLAGS



I think that there's a typo on glib's configure.in. I'm trying to build
from cvs (head).



[mibarra triton glib]$ cvs diff --context=15 -u configure.in
Index: configure.in
===================================================================
RCS file: /cvs/gnome/glib/configure.in,v
retrieving revision 1.299
diff --context=15 -u -r1.299 configure.in
cvs server: conflicting specifications of output style
--- configure.in        26 Aug 2002 19:39:28 -0000      1.299
+++ configure.in        29 Aug 2002 17:25:02 -0000
@@ -1241,31 +1241,31 @@
     # too and could be considered as the canonical way to go. 
     for flag in pthread pthreads; do
       glib_save_CFLAGS="$CFLAGS"
       CFLAGS="$CFLAGS -$flag"
       AC_TRY_RUN([#include <pthread.h> 
                  int check_me = 0;
                  void* func(void* data) {return check_me = 42;}
                  main()
                  { pthread_t t; 
                    void *ret;
                    pthread_create (&t, 0, func, 0);
                    pthread_join (t, &ret);
                    exit (check_me != 42 || ret != 42);
                   }],
                   [G_THREAD_CFLAGS=-$flag
-                   G_THREAD_LIBS=-$flag])
+                   G_THREAD_LIBS=-l$flag])
       CFLAGS="$glib_save_CFLAGS"
     done
   fi
 
   if test x"$G_THREAD_CFLAGS" = x; then
 
     # The canonical -pthread[s] does not work. Try something different.
 
     case $host in
        *-aix*)
                if test x"$GCC" = xyes; then
                        # GCC 3.0 and above needs -pthread. 
                        # Should be coverd by the case above.
                        # GCC 2.x and below needs -mthreads
                        G_THREAD_CFLAGS="-mthreads"             

-- 
Saluditos!



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