[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-cvslog
Subject:    [xine-cvs] CVS: xine-lib configure.ac,1.274,1.275
From:       Conrad Parker <conrad () users ! sourceforge ! net>
Date:       2004-08-30 12:33:09
Message-ID: E1C1lLR-00050l-Tw () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/xine/xine-lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18486

Modified Files:
	configure.ac 
Log Message:
add support for speex headers in new location (eg. <speex/speex.h>) for
libspeex-1.1.x:
	- Retain compatability for <speex.h> etc. from libspeex-1.0.x
	- Also try speex via pkg-config, and fall back to old AM_PATH_SPEEX


Index: configure.ac
===================================================================
RCS file: /cvsroot/xine/xine-lib/configure.ac,v
retrieving revision 1.274
retrieving revision 1.275
diff -u -r1.274 -r1.275
--- configure.ac	30 Aug 2004 00:55:18 -0000	1.274
+++ configure.ac	30 Aug 2004 12:33:07 -0000	1.275
@@ -918,11 +918,26 @@
 dnl Ogg/Speex libs.
 dnl ---------------------------------------------
 
-AM_PATH_OGG(
-           [ AM_PATH_SPEEX(AC_DEFINE(HAVE_SPEEX,1,[Define this if you have speex]),
-                           AC_MSG_RESULT([*** All OGG/SPEEX dependent parts will be \
                disabled ***]))
-          ],
-           AC_MSG_RESULT([*** All of OGG/Speex dependent parts will be disabled \
***])) +PKG_CHECK_MODULES(SPEEX, speex, no_speex="no", no_speex="yes")
+
+if test "x$no_speex" = "xyes" ; then
+  AM_PATH_OGG([ AM_PATH_SPEEX(no_speex="no")])
+fi
+
+if test "x$no_speex" = "xyes" ; then
+  AC_MSG_RESULT([*** All OGG/SPEEX dependent parts will be disabled ***])
+else
+  AC_DEFINE(HAVE_SPEEX,1,[Define this if you have speex])
+
+  dnl Test whether Speex headers are eg. <speex.h> or <speex/speex.h>
+  dnl Speex headers were moved in mid-2004; 1.0.x has backwards compatible headers, \
1.1.x does not +  AC_CHECK_HEADER([speex/speex.h],
+                  AC_DEFINE(HAVE_SPEEX_SUBDIR, [1], [Define to 1 if speex headers \
are eg. <speex/speex.h>]) +  )
+
+  AC_SUBST(SPEEX_CFLAGS)
+  AC_SUBST(SPEEX_LIBS)
+fi
 AM_CONDITIONAL(HAVE_SPEEX, [test x"$no_ogg" != "xyes" -a x"$no_speex" != "xyes"])
 
 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic