[xiph-commits] r17993 - in trunk/theora: . examples

tterribe at svn.xiph.org tterribe at svn.xiph.org
Fri May 20 14:04:42 PDT 2011


Author: tterribe
Date: 2011-05-20 14:04:42 -0700 (Fri, 20 May 2011)
New Revision: 17993

Modified:
   trunk/theora/configure.ac
   trunk/theora/examples/Makefile.am
Log:
Only link libcompat with dump_video.

It's the only example that needs it.
Patch by 0brad0.
Fixes #1587.


Modified: trunk/theora/configure.ac
===================================================================
--- trunk/theora/configure.ac	2011-05-20 20:57:21 UTC (rev 17992)
+++ trunk/theora/configure.ac	2011-05-20 21:04:42 UTC (rev 17993)
@@ -549,7 +549,8 @@
 dnl --------------------------------------------------
 
 dnl OpenBSD needs -lcompat for ftime() used by dump_video.c
-AC_SEARCH_LIBS([ftime], [compat])
+AC_CHECK_LIB([compat], [ftime], [COMPAT_LIBS='-lcompat'])
+AC_SUBST(COMPAT_LIBS)
 
 dnl substitute the included getopt if the system doesn't support long options
 AC_CHECK_FUNC(getopt_long,

Modified: trunk/theora/examples/Makefile.am
===================================================================
--- trunk/theora/examples/Makefile.am	2011-05-20 20:57:21 UTC (rev 17992)
+++ trunk/theora/examples/Makefile.am	2011-05-20 21:04:42 UTC (rev 17993)
@@ -15,7 +15,7 @@
 
 dump_video_SOURCES = dump_video.c
 EXTRA_dump_video_SOURCES = getopt.c getopt1.c getopt.h
-dump_video_LDADD = $(GETOPT_OBJS) $(LDADDDEC)
+dump_video_LDADD = $(GETOPT_OBJS) $(LDADDDEC) $(COMPAT_LIBS)
 
 dump_psnr_SOURCES = dump_psnr.c
 EXTRA_dump_psnr_SOURCES = getopt.c getopt1.c getopt.h



More information about the commits mailing list