mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader.git] / thirdparty / freetype-2.3.12 / builds / unix / freetype-config.in
blob0a7a767d6e45afacb3c73cfacfc5fc4796e276dd
1 #! /bin/sh
3 # Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009 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
10 # fully.
12 prefix=@prefix@
13 exec_prefix=@exec_prefix@
14 exec_prefix_set=no
15 includedir=@includedir@
16 libdir=@libdir@
17 enable_shared=@build_libtool_libs@
18 wl=@wl@
19 hardcode_libdir_flag_spec='@hardcode_libdir_flag_spec@'
21 usage()
23 cat <<EOF
24 Usage: freetype-config [OPTION]...
25 Get FreeType compilation and linking information.
27 Options:
28 --prefix display \`--prefix' value used for building the
29 FreeType library
30 --prefix=PREFIX override \`--prefix' value with PREFIX
31 --exec-prefix display \`--exec-prefix' value used for building
32 the FreeType library
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
39 library
40 EOF
41 exit $1
44 if test $# -eq 0 ; then
45 usage 1 1>&2
48 while test $# -gt 0 ; do
49 case "$1" in
50 -*=*)
51 optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
54 optarg=
56 esac
58 case $1 in
59 --prefix=*)
60 prefix=$optarg
61 local_prefix=yes
63 --prefix)
64 echo_prefix=yes
66 --exec-prefix=*)
67 exec_prefix=$optarg
68 exec_prefix_set=yes
69 local_prefix=yes
71 --exec-prefix)
72 echo_exec_prefix=yes
74 --version)
75 echo @ft_version@
76 exit 0
78 --ftversion)
79 echo_ft_version=yes
81 --cflags)
82 echo_cflags=yes
84 --libs)
85 echo_libs=yes
87 --libtool)
88 echo_libtool=yes
91 usage 1 1>&2
93 esac
94 shift
95 done
97 if test "$local_prefix" = "yes" ; then
98 if test "$exec_prefix_set" != "yes" ; then
99 exec_prefix=$prefix
103 if test "$echo_prefix" = "yes" ; then
104 echo ${SYSROOT}$prefix
107 if test "$echo_exec_prefix" = "yes" ; then
108 echo ${SYSROOT}$exec_prefix
111 if test "$exec_prefix_set" = "yes" ; then
112 libdir=$exec_prefix/lib
113 else
114 if test "$local_prefix" = "yes" ; then
115 includedir=$prefix/include
116 libdir=$prefix/lib
120 if test "$echo_ft_version" = "yes" ; then
121 major=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
122 | grep FREETYPE_MAJOR \
123 | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
124 minor=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
125 | grep FREETYPE_MINOR \
126 | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
127 patch=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
128 | grep FREETYPE_PATCH \
129 | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
130 echo $major.$minor.$patch
133 if test "$echo_cflags" = "yes" ; then
134 cflags="-I${SYSROOT}$includedir/freetype2"
135 if test "${SYSROOT}$includedir" != "/usr/include" ; then
136 echo $cflags -I${SYSROOT}$includedir
137 else
138 echo $cflags
142 if test "$echo_libs" = "yes" ; then
143 rpath=
144 if test "$enable_shared" = "yes" ; then
145 eval "rpath=\"$hardcode_libdir_flag_spec\""
147 libs="-lfreetype @LIBZ@ @FT2_EXTRA_LIBS@"
148 if test "${SYSROOT}$libdir" != "/usr/lib" && test "${SYSROOT}$libdir" != "/usr/lib64"; then
149 echo -L${SYSROOT}$libdir $libs
150 else
151 echo $libs
155 if test "$echo_libtool" = "yes" ; then
156 convlib="libfreetype.la"
157 echo ${SYSROOT}$libdir/$convlib
160 # EOF