diff configure @ 14225:878f3e2a07da

When setting HAVE_PTHREADS, set HAVE_THREADS also to avoid linking problems with lavc (because utils.c defines a stub otherwise)
author reimar
date Thu, 23 Dec 2004 15:18:39 +0000
parents 5b5ebf93ec16
children 8de3c196a783
line wrap: on
line diff
--- a/configure	Thu Dec 23 13:44:50 2004 +0000
+++ b/configure	Thu Dec 23 15:18:39 2004 +0000
@@ -2668,6 +2668,7 @@
 #fi
 #echores "using $_ld_dl_dynamic"
 
+_def_threads='#undef HAVE_THREADS'
 
 echocheck "pthread"
 cat > $TMPC << EOF
@@ -2703,6 +2704,7 @@
   echores "yes (using $_ld_pthread)"
   _pthreads='yes'
   _def_pthreads='#define HAVE_PTHREADS 1'
+  _def_threads='#define HAVE_THREADS 1'
 else
   echores "no"
   _pthreads=''
@@ -6944,6 +6946,9 @@
 /* Define this if your system has pthreads */
 $_def_pthreads
 
+/* Define this if you enabled thread support for libavcodec */
+$_def_threads
+
 /* LIRC (remote control, see www.lirc.org) support: */
 $_def_lirc