LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   I need some help using autotools- autoconf etc. (https://www.linuxquestions.org/questions/programming-9/i-need-some-help-using-autotools-autoconf-etc-650143/)

ih8censorship 06-18-2008 02:18 PM

I need some help using autotools- autoconf etc.
 
I've been trying to set up my project to use autotools and i can't seem to figure it out. I have my original makefile here which works to compile and link on my machine, and i have my attempt at using autotools I think the problem is all the examples i'm seeing are for simple projects, but i did succeed this morning in checking for various boost library and C++ features. I'm still having trouble creating a configure file that actually generates a makefile that comes even close to working. Anyone have an idea what i'm doing wrong here?

iwasapenguin 06-22-2008 02:41 AM

...Do you really need autotools?
type info make at the command line and dabble in a little lite shell scripting and you should have something very effective.

knudfl 06-25-2008 01:50 PM

From LX'er about autotools :
1) http://www.freesoftwaremagazine.com/..._gnu_autotools
2) http://www.freesoftwaremagazine.com/...with_autotools
3) http://www.freesoftwaremagazine.com/..._with_autoconf
And I made a test on your files 6 days ago, from my notes :
Quote:

In fact your setup is "almost" working. From the files I can see
I will start with 'aclocal' then 'automake'

'automake' will ask for some missing files and a directory "config".
'mkdir config' + some empty textfiles will do.
(config/depcomp install-sh missing) and
(src/config.h.in)
Might be different with your autotools version.

Then run 'automake' again and it will generate 'autogen.sh' as
required in 'Makefile.in'.
Then run './autogen.sh' to produce 'configure' : 3845 lines (my result)

Then it should be possible to get './configure' to write a Makefile.
It doesn't, there are some errors :
configure: line 2443: AC_CXX_EXCEPTIONS: command not found
configure: line 2444: AC_CXX_BOOL: command not found
configure: line 2445: AC_CXX_HAVE_STL: command not found
configure: line 2446: AC_CXX_HAVE_STD: command not found

By your method (autoconf) you just have another "set" of errors.
May be not very useful, just another "identifier" to find where it went wrong.

Rgds


All times are GMT -5. The time now is 09:52 AM.