[Sumover-dev] [svn commit] r4856 - vic/branches/mpeg4

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Sun May 30 09:24:16 BST 2010


Author: douglask
Date: Sun May 30 09:24:16 2010
New Revision: 4856

Modified:
   vic/branches/mpeg4/configure
   vic/branches/mpeg4/configure.in

Log:
Added test for dlsym function in libdl (as needed by Fedora 13)


Modified: vic/branches/mpeg4/configure
==============================================================================
--- vic/branches/mpeg4/configure	(original)
+++ vic/branches/mpeg4/configure	Sun May 30 09:24:16 2010
@@ -5294,6 +5294,47 @@
 $as_echo "found ${ac_cv_c_decklinkapidispatch}/DeckLinkAPIDispatch.cpp" >&6; }
 	V_INCLUDE="$V_INCLUDE -I\"${ac_cv_c_decklinkapidispatch}\""
 	V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-decklink.o"
+
+	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
+$as_echo_n "checking for dlsym in -ldl... " >&6; }
+if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlsym ();
+int
+main ()
+{
+return dlsym ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_dl_dlsym=yes
+else
+  ac_cv_lib_dl_dlsym=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
+$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
+if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
+  V_LIB="$V_LIB -ldl"
+fi
+
 fi
 
 if test -r /usr/lib/libvl.so ; then

Modified: vic/branches/mpeg4/configure.in
==============================================================================
--- vic/branches/mpeg4/configure.in	(original)
+++ vic/branches/mpeg4/configure.in	Sun May 30 09:24:16 2010
@@ -244,6 +244,8 @@
 	AC_MSG_RESULT([found ${ac_cv_c_decklinkapidispatch}/DeckLinkAPIDispatch.cpp])
 	V_INCLUDE="$V_INCLUDE -I\"${ac_cv_c_decklinkapidispatch}\""
 	V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-decklink.o"
+
+	AC_CHECK_LIB(dl, dlsym, [V_LIB="$V_LIB -ldl"])
 fi
 
 if test -r /usr/lib/libvl.so ; then



More information about the Sumover-dev mailing list