bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#61988: error compiling emacs


From: Po Lu
Subject: bug#61988: error compiling emacs
Date: Wed, 08 Mar 2023 20:55:51 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Ugo Tomei <utomei@tiscali.it> writes:

> hi,
>
> pkg-config/kinetic,now 0.29.2-1ubuntu3 amd64 [installato]
>
> with this patch compile well:
>
> lrwxrwxrwx 1 root root 13 marĀ  8 13:25 /usr/local/bin/emacs -> emacs-30.0.50
>
> attached log and configure.ac
>
> thanks, best regards
>
>
> Il 08/03/23 11:42, Po Lu ha scritto:
>> What if you try this instead?
>>
>> diff --git a/configure.ac b/configure.ac
>> index bc7e61048c3..ac93d003b70 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -2806,6 +2806,25 @@ AC_DEFUN
>>         WEBP_MODULE="libwebpdemux >= $WEBP_REQUIRED"
>>           EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])
>> +
>> +      # WebPGetInfo is sometimes not present inside libwebpdemux, so
>> +      # if it does not link, also check for libwebpdecoder.
>> +
>> +      OLD_CFLAGS=$CFLAGS
>> +      OLD_LIBS=$LIBS
>> +      CFLAGS="$CFLAGS $WEBP_CFLAGS"
>> +      LIBS="$LIBS $WEBP_LIBS"
>> +
>> +      AC_CHECK_FUNC([WebPGetInfo], [],
>> +        [WEBP_MODULE="$WEBP_MODULE libwebpdecoder >= $WEBP_REQUIRED"
>> +     HAVE_WEBP=no
>> +     AS_UNSET([WEBP_LIBS])
>> +     AS_UNSET([WEBP_CFLAGS])
>> +     EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])])
>> +
>> +      CFLAGS=$OLD_CFLAGS
>> +      LIBS=$OLD_LIBS
>> +
>>         AC_SUBST([WEBP_CFLAGS])
>>         AC_SUBST([WEBP_LIBS])
>>      fi
>>
>> I'm not sure what pkg-config is doing here TBH, but it isn't very
>> intuitive.

Thanks.  Eli, if this works for you as well, I will install this on
Emacs 29 now.




reply via email to

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