Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No ./configure in github - need to run autoconf? #130

Closed
tseemann opened this issue Mar 9, 2015 · 10 comments
Closed

No ./configure in github - need to run autoconf? #130

tseemann opened this issue Mar 9, 2015 · 10 comments

Comments

@tseemann
Copy link

tseemann commented Mar 9, 2015

The INSTALL says to run ./configure but there is no script. There was no autogen.sh either, so I ran autoconf and it did create the configure script with a few warnings (Ubuntu 12 server):

% autoconf
configure.ac:3: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:10: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:21: error: possibly undefined macro: AM_PATH_PYTHON
configure.ac:23: error: possibly undefined macro: AC_MSG_WARN
@AidanDelaney
Copy link
Contributor

Yes. You should run "autoreconf -i". The source is distributed in maintainer mode, rather than developer mode. We probably should have an autogen.sh or, at least, fix the documentation.

AidanDelaney added a commit to AidanDelaney/gubbins that referenced this issue Apr 20, 2015
  - documentation should make it clear to run autoreconf before configure.
@tseemann
Copy link
Author

Thanks @AidanDelaney . Not sure I'll ever fully understand autotools!

@martinghunt
Copy link
Contributor

Just an extra comment on this using Ubuntu, in case others run into the same problem. The second error above:

configure.ac:10: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

means that libtool needs to be installed:

apt-get install libtool

@summerban
Copy link

sorry,this method doesn't work for me ,i had tried all the method above

@andrewjpage
Copy link
Contributor

Which of the supported installation methods did you use?
https://github.com/sanger-pathogens/gubbins/blob/master/INSTALL.md

@shardator
Copy link

Please fix this, and put configure in the source tree. Impossible to run autoconf w/o errors.

@NaughtyCatRun
Copy link

@AidanDelaney Thanks, It works for me. But first, it throw the error below:
configure.ac:119: error: Autoconf version 2.64 or higher is required

So, I upgrade autoconfig to 2.69, then everything is OK

@DuGu9Nue
Copy link

someone can help me...
configure.ac:178: error: possibly undefined macro: AC_CONFIG_MACRO_DIRS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.

@nickjcroucher
Copy link
Owner

This problem suggests you need to install pkg-config, based on DanBloomberg/leptonica#334.

@chegJH
Copy link

chegJH commented Apr 14, 2022

For someone ends here by googling

      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

Try this first apt install pkg-config m4 libtool automake autoconf

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

No branches or pull requests

10 participants