changeset 9970:cc7ea6083774

configure.ac: use pthread flags and libs for tests
author John W. Eaton <jwe@octave.org>
date Fri, 11 Dec 2009 20:58:51 -0500
parents a24a528d98cc
children d0680ace5fcb
files ChangeLog configure.ac
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-11  John W. Eaton  <jwe@octave.org>
+
+	* configure.ac: Add $PTHREAD_LIBS to $LIBS and $PTHREAD_CFLAGS
+	to $CFLAGS for subsequent tests.
+
 2009-12-11  Rik <octave@nomad.inbox5.com>
 
 	* Makefile.am: remove install-extras target and use automake syntax to
--- a/configure.ac
+++ b/configure.ac
@@ -277,6 +277,10 @@
 AC_SUBST(DEPEND_EXTRA_SED_PATTERN)
 
 ACX_PTHREAD
+### Include pthread libs and flags here in case other tests need them.
+### They seem to be required for the OpenGL tests on Debian systems.
+LIBS="$PTHREAD_LIBS $LIBS"
+CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
 AC_PATH_X
 if test "$have_x" = "yes"; then