configure: add pthread to the configure check for openh264
authorStefan Sauer <ensonic@users.sf.net>
Mon, 20 Oct 2014 09:22:54 +0000 (11:22 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Mon, 20 Oct 2014 09:22:54 +0000 (11:22 +0200)
configure.ac

index af0435a..76c430c 100644 (file)
@@ -2573,8 +2573,11 @@ dnl *** openh264 ***
 translit(dnm, m, l) AM_CONDITIONAL(USE_OPENH264, true)
 AG_GST_CHECK_FEATURE(OPENH264, [openh264 library], openh264, [
   HAVE_OPENH264="yes"
+  saved_LIBS="$LIBS"
+  LIBS="-lpthread $LIBS"
   AG_GST_CHECK_LIBHEADER(OPENH264, openh264, WelsSnprintf, ,wels/codec_api.h,
     OPENH264_LIBS="-lopenh264", HAVE_OPENH264="no")
+  LIBS=$saved_LIBS
   AC_SUBST(OPENH264_LIBS)
 ])