summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-01-24 00:24:27 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2011-01-24 00:28:55 +0100
commitd842aebec31fd21fe0803cb9504ded698f6c1457 (patch)
tree3ce41681eb081cf8a5337dd90beade4d2767fa83
parent7492a27a7873120d28e4cabf3abad28204ff8844 (diff)
downloadlibsigrokdecode-d842aebec31fd21fe0803cb9504ded698f6c1457.tar.gz
libsigrokdecode-d842aebec31fd21fe0803cb9504ded698f6c1457.zip
configure.ac: Fix firmware/decoders dir variables.
FIRMWARE_DIR and DECODERS_DIR as defined in config.h need some magic applied to resolve the $prefix/$data variable to an absolute path.
-rw-r--r--Makefile.am3
-rw-r--r--decode.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index e6d0710..6556df8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,8 +24,7 @@ lib_LTLIBRARIES = libsigrokdecode.la
libsigrokdecode_la_SOURCES = decode.c
-libsigrokdecode_la_CPPFLAGS = $(CPPFLAGS_PYTHON) \
- -DDECODERS_DIR='"$(DECODERS_DIR)"'
+libsigrokdecode_la_CPPFLAGS = $(CPPFLAGS_PYTHON)
libsigrokdecode_la_LDFLAGS = $(SIGROKDECODE_LT_LDFLAGS) \
$(LDFLAGS_PYTHON)
diff --git a/decode.c b/decode.c
index da8624a..6acbd10 100644
--- a/decode.c
+++ b/decode.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <dirent.h>
+#include <config.h>
/* Re-define some string functions for Python >= 3.0. */
#if PY_VERSION_HEX >= 0x03000000