Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mixer

Dir     : e_modules/mixer


Modified Files:
        configure.in Makefile.am 


Log Message:
Added checks for alsa.

===================================================================
RCS file: /cvs/e/e_modules/mixer/configure.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- configure.in        7 Sep 2006 13:46:25 -0000       1.1
+++ configure.in        7 Sep 2006 14:11:09 -0000       1.2
@@ -140,6 +140,25 @@
 AC_SUBST(e_libs)
 AC_SUBST(e_modules)
 
+dnl Check for Alsa
+AC_ARG_ENABLE(alsa, 
+                                                       
AC_HELP_STRING([--enable-alsa], [enable support for alsa(default=autodetect)]),
+                                                       [ 
enable_alsa=$enableval ],
+                                                       [ enable_alsa=default ])
+
+if test "x$enable_alsa" = "xdefault" || test "x$enable_alsa" = "xyes"; then
+       AM_PATH_ALSA(1.0.11,
+               [ SOUND_CFLAGS="$ALSA_CFLAGS -DHAVE_ALSA $SOUND_CFLAGS"
+               SOUND_LDFLAGS="$ALSA_LIBS $SOUND_LDFLAGS" ],
+               [ if test "x$enable_alsa" = "xyes"; then
+                               AC_MSG_WARN([alsa library >= 1.0.11 not found])
+                               NOT_FOUND="$NOT_FOUND alsa,library,>=,1.0.11"
+                       fi ])
+fi  
+
+AC_SUBST(SOUND_CFLAGS)
+AC_SUBST(SOUND_LDFLAGS)
+  
 AC_OUTPUT([
 Makefile
 ],[
===================================================================
RCS file: /cvs/e/e_modules/mixer/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- Makefile.am 7 Sep 2006 13:46:25 -0000       1.1
+++ Makefile.am 7 Sep 2006 14:11:09 -0000       1.2
@@ -20,6 +20,7 @@
 INCLUDES = -I. \
         -I$(top_srcdir) \
         -I$(includedir) \
+        @SOUND_CFLAGS@ \
         @e_cflags@
 
 pkgdir                 = $(datadir)/$(MODULE_ARCH)
@@ -27,7 +28,7 @@
 module_la_SOURCES      = e_mod_main.c \
                       e_mod_main.h
 
-module_la_LIBADD       = @e_libs@
+module_la_LIBADD       = @e_libs@ @SOUND_LDFLAGS@
 module_la_LDFLAGS      = -module -avoid-version
 module_la_DEPENDENCIES = $(top_builddir)/config.h
 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to