Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

autogen.sh AC_MSG_ERROR #40

Closed
ghost opened this issue Dec 6, 2012 · 2 comments
Closed

autogen.sh AC_MSG_ERROR #40

ghost opened this issue Dec 6, 2012 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 6, 2012

When I run autogen.sh on Linux Mint

Makefile.am: installing `./INSTALL'
configure.ac:96: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

I fixed the problem by adding "autoreconf -i" as the last line of autogen.sh. I request the developer to add this line in the code.

autoconf
autoreconf -i
@ghost ghost mentioned this issue Dec 6, 2012
jgarzik pushed a commit that referenced this issue Dec 6, 2012
Hopefully fixes #39 and #40
@jgarzik
Copy link
Owner

jgarzik commented Dec 6, 2012

Updated for commit 73d6371

@jgarzik jgarzik closed this as completed Dec 6, 2012
@ghost
Copy link
Author

ghost commented Dec 6, 2012

I think we don't need autogen.sh at all. From the manpage of autoreconf, we know that it runs all the auto* tools in the right order, as many times as needed. So, the following worked for me:

git clone git://github.com/jgarzik/cpuminer.git  && cd cpuminer
autoreconf -i
./configure

Initially autoreconf failed due to missing libcurl-dev package, but after installing it, the above works flawlessly. Some arcane versions of autotools may require to run it twice: autoreconf -i; autoreconf -i but it seems to be harmless to run it twice anyways (it's quick as well).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant