summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
-rw-r--r--rtaudio-config.in2
2 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6586116..b89fdb0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,6 +44,12 @@ AC_ARG_ENABLE(debug,
# Checks for functions
AC_CHECK_FUNC(gettimeofday, [cppflag="$cppflag -DHAVE_GETTIMEOFDAY"], )
+# Set paths if prefix is defined
+if test x"$prefix" != x; then
+ LIBS="$LIBS -L$prefix/lib"
+ CPPFLAGS="$CPPFLAGS -I$prefix/include"
+fi
+
# For -I and -D flags
CPPFLAGS="$CPPFLAGS $cppflag"
diff --git a/rtaudio-config.in b/rtaudio-config.in
index e7ff828..5f83d51 100644
--- a/rtaudio-config.in
+++ b/rtaudio-config.in
@@ -9,7 +9,7 @@ CXXFLAGS="@CXXFLAGS@"
CPPFLAGS="@CPPFLAGS@"
if (test "x$1" = "x--libs") ; then
- echo "$LIBRARY"
+ echo "$LIBRARY -lrtaudio"
elif (test "x$1" = "x--cxxflags") ; then
echo "$CXXFLAGS"
elif (test "x$1" = "x--cppflags") ; then