emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/configure.in


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/configure.in
Date: Tue, 07 Dec 2004 03:57:02 -0500

Index: emacs/configure.in
diff -c emacs/configure.in:1.378 emacs/configure.in:1.379
*** emacs/configure.in:1.378    Sat Nov  6 16:29:08 2004
--- emacs/configure.in  Tue Dec  7 08:29:07 2004
***************
*** 1994,1999 ****
--- 1994,2014 ----
      AC_DEFINE(HAVE_GTK_FILE_BOTH, 1,
                [Define to 1 if GTK has both file selection and chooser 
dialog.])
    fi
+ 
+   dnl Check if pthreads are available.  Emacs only needs this when using
+   dnl gtk_file_chooser under Gnome.
+   if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
+     HAVE_GTK_AND_PTHREAD=no
+     AC_CHECK_HEADERS(pthread.h)
+     if test "$ac_cv_header_pthread_h"; then
+       AC_CHECK_LIB(pthread, pthread_self, HAVE_GTK_AND_PTHREAD=yes)
+     fi
+     if test "$HAVE_GTK_AND_PTHREAD" = yes; then
+       GTK_LIBS="$GTK_LIBS -lpthread"
+       AC_DEFINE(HAVE_GTK_AND_PTHREAD, 1,
+                [Define to 1 if you have GTK and pthread (-lpthread).])
+     fi
+   fi
  fi
  
  dnl Do not put whitespace before the #include statements below.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]