Add ALSA include directories to fix compile on some systems.
[rtaudio-cdist.git] / rtaudio-config.in
index c689a989e615ecc97ded0df5ea32abd15aab0acf..5f83d512f830da4614e59e0969047b9d05888399 100644 (file)
@@ -1,16 +1,19 @@
 #! /bin/sh
 if (test "x$#" != "x1") ; then
-  echo "Usage: $0 [--libs | --cxxflags]"
+  echo "Usage: $0 [--libs | --cxxflags | --cppflags]"
   exit;
 fi
 
-LIBRARY="@LIBS@ @frameworks@"
-CFLAGS="@audio_apis@"
+LIBRARY="@LIBS@"
+CXXFLAGS="@CXXFLAGS@"
+CPPFLAGS="@CPPFLAGS@"
 
-if (test "x$1" == "x--libs") ; then
-  echo "$LIBRARY"
-elif (test "x$1" == "x--CFLAGS") ; then
-  echo "$CFLAGS"
+if (test "x$1" = "x--libs") ; then
+  echo "$LIBRARY -lrtaudio"
+elif (test "x$1" = "x--cxxflags") ; then
+  echo "$CXXFLAGS"
+elif (test "x$1" = "x--cppflags") ; then
+  echo "$CPPFLAGS"
 else
   echo "Unknown option: $1"
 fi