GNU bug report logs - #76556
30.1; configure doesn't find libgmp on macOS

Previous Next

Package: emacs;

Reported by: Philipp <p.stephani2 <at> gmail.com>

Date: Tue, 25 Feb 2025 15:16:02 UTC

Severity: normal

Tags: confirmed

Found in versions 31.0.50, 30.1

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Philipp <p.stephani2 <at> gmail.com>
Cc: 76556 <at> debbugs.gnu.org
Subject: bug#76556: 30.1; configure doesn't find libgmp on macOS
Date: Tue, 25 Feb 2025 19:11:49 +0200
> From: Philipp <p.stephani2 <at> gmail.com>
> Date: Tue, 25 Feb 2025 16:15:20 +0100
> 
> 
> When running configure on macOS with libgmp installed via Homebrew:
> 
> [...]
> checking for gmp.h... no
> checking for gmp/gmp.h... no
> [...]
>   Does Emacs use the GMP library?                         no
> [...]
> 
> I've installed libgmp via Homebrew.  I think to fix this, the configure
> script should either use pkg-config:
> 
> $ pkg-config --cflags --libs gmp
> -I/opt/homebrew/Cellar/gmp/6.3.0/include -L/opt/homebrew/Cellar/gmp/6.3.0/lib -lgmp
> 
> or add /opt/homebrew/include to the include path, and /opt/homebrew/lib
> to the library path.  Using pkg-config seems like the cleaner option.

We could use pkg-config for that, but we must have the falback to the
current code, because some versions of GMP don't install pkg-config
files.  E.g., on my development system I have no gmp.pc in the
pkg-config directory.

Patches welcome.




This bug report was last modified 206 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.