Monday, March 9, 2015

Autoconf does not work

I have a sample project, call

autoconf
./configure
sudo make  install

worked profectly.

I copy every thing, and create my own project.

meet some issues. autoconf not work properly.

Here are the issues I met:

1:  undefined macro am_init_automake.

run aclocal  first , fix this problme


2:  ./configuration missing  makefile.in.

the makefile.in did not generate properly.

I compare everything with sample project and mine.  finally,  I found there are two files, I did not create correctly.

1 NEWS   file is missing , even it is a empty file.
2 README  file is missing, I put it in parent folder.

When I create these 2 files.

3:  configure.ac
Makefile.am
end of line:
\r\n  should be \n

The third one is important.


automake work's fine.

but it should run script as  below:

aclocal
autoconf
autoreconf -vif
./configure
sudo make  install

No comments:

Post a Comment