# HG changeset patch # User John W. Eaton # Date 1260583131 18000 # Node ID cc7ea60837746fe3b7abf590101361fb80b8bf5a # Parent a24a528d98cc40eda6aa91f0cf8aa0a56b978688 configure.ac: use pthread flags and libs for tests diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-12-11 John W. Eaton + + * configure.ac: Add $PTHREAD_LIBS to $LIBS and $PTHREAD_CFLAGS + to $CFLAGS for subsequent tests. + 2009-12-11 Rik * Makefile.am: remove install-extras target and use automake syntax to diff --git a/configure.ac b/configure.ac --- 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