summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2014-06-15 21:37:01 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-08-14 23:33:17 -0300
commitde5e6e4d69c5b645ff067caa5d028d713dce6fdc (patch)
treee3eaafdd80a3b76c2edf3aae3abe0184811cd8e9 /configure.ac
parent968701784f460c7bbe62ff1ed458d381c4a466a4 (diff)
backend: Adding alsa skeleton
Supporting alsa's backend on build system. For now pulse dependency is not optional and both module and epulse are linking directly to epulse library.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac51
1 files changed, 45 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index edb739c..3af7e72 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,11 +41,48 @@ PKG_CHECK_MODULES([EFL],
41 enlightenment 41 enlightenment
42 ]) 42 ])
43 43
44PKG_CHECK_MODULES([PULSE], 44have_alsa_pkg="auto"
45 [ 45have_pulseaudio_pkg="auto"
46 libpulse-simple 46
47 libpulse 47if test "x${have_alsa_pkg}" = "xauto" -o "x${have_alsa_pkg}" = "xyes"; then
48 ]) 48 PKG_CHECK_MODULES([ALSA], [alsa],
49 [have_alsa_pkg="yes"],
50 [have_alsa_pkg="no"])
51fi
52
53AC_ARG_ENABLE([alsa],
54 [AC_HELP_STRING([--disable-alsa],
55 [Disable alsa support. @<:@default=enabled@:>@])],
56 [
57 if test "x${enableval}" = "xyes" ; then
58 have_alsa_pkg="yes"
59 else
60 have_alsa_pkg="no"
61 fi
62 ], [
63 have_alsa_pkg="yes"
64 ])
65AM_CONDITIONAL([HAVE_ALSA_PKG], [test "x${have_alsa_pkg}" = "xyes"])
66
67if test "x${have_pulseaudio_pkg}" = "xauto" -o "x${have_pulseaudio_pkg}" = "xyes"; then
68 PKG_CHECK_MODULES([PULSE], [libpulse-simple libpulse],
69 [have_pulseaudio_pkg="yes"],
70 [have_pulseaudio_pkg="no"])
71fi
72
73AC_ARG_ENABLE([pulseaudio],
74 [AC_HELP_STRING([--disable-pulseaudio],
75 [Disable pulseaudio support. @<:@default=enabled@:>@])],
76 [
77 if test "x${enableval}" = "xyes" ; then
78 have_pulseaudio_pkg="yes"
79 else
80 have_pulseaudio_pkg="no"
81 fi
82 ], [
83 have_pulseaudio_pkg="yes"
84 ])
85AM_CONDITIONAL([HAVE_PULSEAUDIO_PKG], [test "x${have_pulseaudio_pkg}" = "xyes"])
49 86
50release=$(pkg-config --variable=release enlightenment) 87release=$(pkg-config --variable=release enlightenment)
51MODULE_ARCH="$host_os-$host_cpu-$release" 88MODULE_ARCH="$host_os-$host_cpu-$release"
@@ -60,7 +97,7 @@ AC_ARG_ENABLE(homedir-install,
60) 97)
61 98
62AC_SUBST(pkgdir) 99AC_SUBST(pkgdir)
63AC_DEFINE_UNQUOTED(BACKENDS_DIR, "$prefix/lib/emix/backends", "Backends dir) 100AC_DEFINE_UNQUOTED(BACKENDS_DIR, "$prefix/lib/emix/", "Backends dir)
64 101
65# Checks for header files. 102# Checks for header files.
66 103
@@ -88,6 +125,8 @@ echo "Configuration Options Summary:"
88echo 125echo
89echo 126echo
90echo " edje_cc..................: ${edje_cc}" 127echo " edje_cc..................: ${edje_cc}"
128echo " pulseaudio ..............: ${have_pulseaudio_pkg}"
129echo " alsa ....................: ${have_alsa_pkg}"
91echo 130echo
92echo "Compilation................: make (or gmake)" 131echo "Compilation................: make (or gmake)"
93echo " CPPFLAGS.................: $CPPFLAGS" 132echo " CPPFLAGS.................: $CPPFLAGS"