Cpuminer: configure.ac:96: error: possibly undefined macro: AC_MSG_ERROR

Created on 23 Jun 2011  ·  7Comments  ·  Source: jgarzik/cpuminer

Most helpful comment

If you are having this problem on Ubuntu, you probably need to install libcurl4-gnutls-dev. You can use the following on the command line:
sudo apt-get install libcurl4-gnutls-dev

All 7 comments

FAQ: This is an OS problem, not a cpuminer problem.

To me it looks like a bug in configure.ac: in line 95/96 it is trying to tell that there's no libcurl library found, but it fails. It should at least notify the user somehow.

If you are having this problem on Ubuntu, you probably need to install libcurl4-gnutls-dev. You can use the following on the command line:
sudo apt-get install libcurl4-gnutls-dev

Thx @robertoldham !

on Fedora
sudo yum install libcurl-devel

Compile cpuminer to run on Mac OS 10.7 or later (and possibly other OSes).

Due to some autoconf macro weirdness, the configuration ends up assuming libcurl is in a very specific location. So we just need to tell it where to find our curl installation.

Edit the configure.ac file and comment out these two lines by placing a ‘#” in front of each (make sure you are running at least 7.15.2 of curl since we are bypassing this problematic check):

LIBCURL_CHECK_CONFIG(, 7.15.2, ,

AC_MSG_ERROR([Missing required libcurl >= 7.15.2]))

(See http://curl.haxx.se/mail/lib-2012-09/0110.html for more details.)

Then add the following four lines right afterwards (replacing supplied paths with those for your curl installation):

LIBCURL="/usr/local/opt/curl/lib/libcurl.dylib"
LIBCURL_CPPFLAGS="-I/usr/local/opt/curl/include"

AC_SUBST(LIBCURL)
AC_SUBST(LIBCURL_CPPFLAGS)

Now proceed as per the README.

Even simpler:

https://developer.apple.com/library/mac/documentation/porting/conceptual/portingunix/compiling/compiling.html

“If you get errors about missing AC_ macros, you may need to download a copy of libraries on which your tool depends and copy their .m4 autoconf configuration files into /usr/share/autoconf. Alternately, you can add the macros to the file acinclude.m4 in your project’s main directory and autoconf should automatically pick up those macros.”

So just add the libcurl.m4 file containing the LIBCURL_CHECK_CONFIG macro to the cpuminer project directory and rename the file to “acinclude.m4” and proceed as per the README.

https://source.jasig.org/cas-clients/mod_auth_cas/tags/mod_auth_cas-1.0.9.1/libcurl.m4

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidboy picture davidboy  ·  7Comments

max13fr picture max13fr  ·  44Comments

sorinv picture sorinv  ·  138Comments

behlendorf picture behlendorf  ·  12Comments

davidboy picture davidboy  ·  7Comments