freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Installation Problems


From: Behdad Esfahbod
Subject: Re: [ft] Installation Problems
Date: Sat, 17 Jan 2015 11:32:44 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

On 15-01-16 11:01 PM, Werner LEMBERG wrote:
> 
>>> ./configure: line 14023: syntax error near unexpected toke 'FREETYPE,'
>>> ./configure: line 14023: 'PKG_CHECK_MODULES (FREETYPE, freetype2)'
>>
>> The error looks like as if configure script is incorrect;
>> PKG_CHECK_MODULES() is a macro for pkg-config, it should be expanded
>> to appropriate sh-script. I'm afraid that autogen (or something else
>> to generate configure script from its skelton) did not finish
>> correctly. FreeType is not responsible with the trouble, I guess.
> 
> Your analysis is correct, however, it's not that simple in general.
> For example, let's assume a GNU/Linux distribution.  The default
> versions of the autotools are in /usr, and add-on M4 files like
> `pkg.m4' (which contains the PKG_CHECK_MODULES macro) are put into
> /usr/share/aclocal.
> 
> Now imagine that you are going to manually install a new version of
> the autotools, which are then stored in the /usr/local hierarchy.  If
> you now repeat the configuring process, you get exactly the above
> error.  The reason of the problem is that by default the autotools in
> the /usr/local/ hierarchy don't look into /usr/share/aclocal.
> 
> There are different solutions.
> 
>   1. Modify or set the `M4PATH' variable to make M4 find the directory
>      holding your system's `pkg.m4' file.
> 
>   2. Always add a proper `--include' command line option to the
>      autotools.
> 
>   3. Copy the contents of `/usr/share/aclocal' to
>      `/usr/local/share/aclocal'.
> 
> I don't really like any of the solutions, since they require manual
> intervention and are thus error-prone.  For this reason, I've already
> added `pkg.m4' directly to FreeType to avoid any problems while
> configuring FreeType itself.
> 
> Behdad, you've added `pkg.m4' to harfbuzz, probably for identical
> reasons.  What do you think of doing the same for fontconfig?

+fontconfig list.  I think Akira can do that.

-- 
behdad
http://behdad.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]