3 # Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2008 by
4 # David Turner, Robert Wilhelm, and Werner Lemberg.
6 # This file is part of the FreeType project, and may only be used, modified,
7 # and distributed under the terms of the FreeType project license,
8 # LICENSE.TXT. By continuing to use, modify, or distribute this file you
9 # indicate that you have read the license and understand and accept it
13 exec_prefix
=@exec_prefix@
15 includedir
=@includedir@
17 enable_shared
=@build_libtool_libs@
19 hardcode_libdir_flag_spec
='@hardcode_libdir_flag_spec@'
24 Usage: freetype-config [OPTION]...
25 Get FreeType compilation and linking information.
28 --prefix display \`--prefix' value used for building the
30 --prefix=PREFIX override \`--prefix' value with PREFIX
31 --exec-prefix display \`--exec-prefix' value used for building
33 --exec-prefix=EPREFIX override \`--exec-prefix' value with EPREFIX
34 --version display libtool version of the FreeType library
35 --ftversion display FreeType version number
36 --libs display flags for linking with the FreeType library
37 --libtool display library name for linking with libtool
38 --cflags display flags for compiling with the FreeType
44 if test $# -eq 0 ; then
48 while test $# -gt 0 ; do
51 optarg
=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
79 major
=`grep define @prefix@/include/freetype2/freetype/freetype.h \
80 | grep FREETYPE_MAJOR \
81 | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
82 minor
=`grep define @prefix@/include/freetype2/freetype/freetype.h \
83 | grep FREETYPE_MINOR \
84 | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
85 patch=`grep define @prefix@/include/freetype2/freetype/freetype.h \
86 | grep FREETYPE_PATCH \
87 | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
88 echo $major.
$minor.
$patch
107 if test "$local_prefix" = "yes" ; then
108 if test "$exec_prefix_set" != "yes" ; then
113 if test "$echo_prefix" = "yes" ; then
117 if test "$echo_exec_prefix" = "yes" ; then
121 if test "$exec_prefix_set" = "yes" ; then
122 libdir
=$exec_prefix/lib
124 if test "$local_prefix" = "yes" ; then
125 includedir
=$prefix/include
130 if test "$echo_cflags" = "yes" ; then
131 cflags
="-I$includedir/freetype2"
132 if test "$includedir" != "/usr/include" ; then
133 echo $cflags -I$includedir
139 if test "$echo_libs" = "yes" ; then
141 if test "$enable_shared" = "yes" ; then
142 eval "rpath=\"$hardcode_libdir_flag_spec\""
144 libs
="-lfreetype @LIBZ@ @FT2_EXTRA_LIBS@"
145 if test "$libdir" != "/usr/lib" && test "$libdir" != "/usr/lib64"; then
146 echo -L$libdir $rpath $libs
152 if test "$echo_libtool" = "yes" ; then
153 convlib
="libfreetype.la"
154 echo $libdir/$convlib