Author: tabish
Date: Mon Nov  5 16:38:04 2007
New Revision: 592205

URL: http://svn.apache.org/viewvc?rev=592205&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Modified:
    activemq/activemq-cpp/trunk/activemqcpp-config.in

Modified: activemq/activemq-cpp/trunk/activemqcpp-config.in
URL: 
http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemqcpp-config.in?rev=592205&r1=592204&r2=592205&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemqcpp-config.in (original)
+++ activemq/activemq-cpp/trunk/activemqcpp-config.in Mon Nov  5 16:38:04 2007
@@ -31,8 +31,9 @@
   --help       display this help and exit.
 
 Compilation support options
-  --cflags     print pre-processor and compiler flags
-  --libs       print library linking information
+  --cflags       print pre-processor and compiler flags
+  --includes  print the include directories for ActiveMQ-CPP Headers.
+  --libs         print library linking information
 
 Install directories ActiveMQ-CPP was configured to
   --prefix[=DIR]
@@ -78,6 +79,9 @@
     --cflags)
       echo_cflags=yes
       ;;
+    --includes)
+      echo_includes=yes
+      ;;
     --libs)
       echo_libs=yes
       ;;
@@ -97,16 +101,18 @@
 fi
 
 if test "$echo_cflags" = "yes"; then
-      if test "$includedir" != "/usr/include" ; then
-            echo -I$includedir
-      fi
+    echo -I$includedir/@[EMAIL PROTECTED]@ACTIVEMQ_API_VERSION@
+fi
+
+if test "$echo_includes" = "yes"; then
+    echo -I$includedir/@[EMAIL PROTECTED]@ACTIVEMQ_API_VERSION@
 fi
 
 if test "$echo_libs" = "yes"; then
-      if test @libdir@ != /usr/lib ; then
-            my_linker_flags="[EMAIL PROTECTED]@"
-      fi
-      echo ${my_linker_flags} -lactivemq-cpp
+    if test @libdir@ != /usr/lib ; then
+          my_linker_flags="[EMAIL PROTECTED]@"
+    fi
+    echo ${my_linker_flags} -lactivemq-cpp
 fi
 
 


Reply via email to