diff options
author | Jaroslav Kysela <perex@perex.cz> | 2007-08-31 15:22:26 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-08-31 15:22:26 +0200 |
commit | dcdf8c2a00b06139960e59fb85b444e8d7f556f9 (patch) | |
tree | 8c6c1ef2dd2b9fe914dac299959168b564ed7cf2 /modules | |
parent | 77603ff798e8683334cd7772689591137c798802 (diff) | |
download | alsa-lib-dcdf8c2a00b06139960e59fb85b444e8d7f556f9.tar.gz |
improved python detection and added --with-pythonincdir for configure.in
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mixer/simple/Makefile.am | 2 | ||||
-rw-r--r-- | modules/mixer/simple/python.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/mixer/simple/Makefile.am b/modules/mixer/simple/Makefile.am index d287c7e5..38f106c0 100644 --- a/modules/mixer/simple/Makefile.am +++ b/modules/mixer/simple/Makefile.am @@ -1,5 +1,6 @@ pkglibdir = @ALSA_PLUGIN_DIR@/smixer pythonlibs = @PYTHON_LIBS@ +pythonincdir = @PYTHON_INCDIR@ AM_CFLAGS = -g -O2 -W -Wall @@ -30,5 +31,6 @@ smixer_hda_la_LIBADD = ../../../src/libasound.la if BUILD_PYTHON smixer_python_la_SOURCES = python.c smixer_python_la_LDFLAGS = -module -avoid-version $(pythonlibs) +smixer_python_la_CFLAGS = -I$(pythonincdir) smixer_python_la_LIBADD = ../../../src/libasound.la endif diff --git a/modules/mixer/simple/python.c b/modules/mixer/simple/python.c index ce9c8fd4..6bfe7386 100644 --- a/modules/mixer/simple/python.c +++ b/modules/mixer/simple/python.c @@ -19,11 +19,11 @@ * */ +#include "Python.h" #include <stddef.h> #include "config.h" #include "asoundlib.h" #include "mixer_abst.h" -#include <python/Python.h> struct python_priv { int py_initialized; |