Tue 03 Feb 2009 06:25:14 PM UTC, comment #2:
Sorry,
system info:
iMactel 10.5.6/xcode 3.0/gcc 4.0.1/make 3.81
The version I had installed was 2.3.5 but I just installed 2.3.8
and have the same problem.
When configuring, I used the --includedir option to change the
name of the include directory and it hasn't incorporated it into the
freetype-config utility. It resorts to using the standard 'include'
directory name in the path used to the freetype.h file location.
I examined the freetype-config.in file and the option --ftversion
has been hard-coded with the 'include' directory;
@prefix@/include/freetype2/freetype/freetype.h
When I use configure with --includedir option, the above code
no longer points to the correct location as the name of the 'include'
directory has changed. As it is, this renders the --includedir option
ineffective.
For a quick solution, prefix can be substituted with includedir;
@includedir@/freetype2/freetype/freetype.h
However, additional code maybe needed where the --includedir
option is not set and the use of prefix/include would be appropriate.
With reference to my original post, additional, I assumed that
includedir=$prefix/include
would have been assigned, as the $local_prefix variable had been
assigned the value 'yes' in 'case --exec-prefix'. Which would have also
made me question the --libdir option in a similar context. Unfortunately
my shell scripting skills are limited.
A.
|