Commit e503527c64bed0e7f7a0f69a72729884078b2886

Tom Kacvinsky 2000-11-12T02:55:25

Added a --libtool option, which returns the absolute path to the libtool convenience library.

diff --git a/builds/cygwin/freetype-config.in b/builds/cygwin/freetype-config.in
index b32b126..577626d 100644
--- a/builds/cygwin/freetype-config.in
+++ b/builds/cygwin/freetype-config.in
@@ -13,6 +13,7 @@ Options:
  [--exec-prefix[=DIR]]
  [--version]
  [--libs]
+ [--libtool]
  [--cflags]
 EOF
   exit $1
@@ -53,6 +54,9 @@ while test $# -gt 0; do
   --libs)
     echo_libs=yes
     ;;
+  --libtool)
+    echo_libtool=yes
+    ;;
   *)
     usage 1 1>&2
     ;;
@@ -78,5 +82,9 @@ if test "$echo_libs" = "yes"; then
  libs="-lfreetype"
  echo -L@libdir@ $libs
 fi
+if test "$echo_libtool" = "yes"; then
+ convlib="libfreetype.la"
+ echo @libdir@/$convlib
+fi
 
 # EOF
diff --git a/builds/unix/freetype-config.in b/builds/unix/freetype-config.in
index b32b126..577626d 100644
--- a/builds/unix/freetype-config.in
+++ b/builds/unix/freetype-config.in
@@ -13,6 +13,7 @@ Options:
  [--exec-prefix[=DIR]]
  [--version]
  [--libs]
+ [--libtool]
  [--cflags]
 EOF
   exit $1
@@ -53,6 +54,9 @@ while test $# -gt 0; do
   --libs)
     echo_libs=yes
     ;;
+  --libtool)
+    echo_libtool=yes
+    ;;
   *)
     usage 1 1>&2
     ;;
@@ -78,5 +82,9 @@ if test "$echo_libs" = "yes"; then
  libs="-lfreetype"
  echo -L@libdir@ $libs
 fi
+if test "$echo_libtool" = "yes"; then
+ convlib="libfreetype.la"
+ echo @libdir@/$convlib
+fi
 
 # EOF