[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Errors with simple example
From: |
Eddy Ilg |
Subject: |
Errors with simple example |
Date: |
Tue, 25 Dec 2001 11:20:23 +0100 |
User-agent: |
Mutt/1.3.16i |
Hi,
I am just getting started with the GNU autotools and I can't get my simple
example to work.
Here is what I am stuck with:
'hello.c'
#include <stdio.h>
int main()
{
printf("Howdy world!\n");
}
'Makefile.am'
bin_PROGRAMS = hello
hello_SOURCES = hello.c
'configure.in'
AC_INIT(hello.c)
AC_INIT_AUTOMAKE(hello,0.1)
AC_PROG_CC
AC_PROG_INSTALL
AC_OUTPUT(Makefile)
To build Makefiles I run:
% automake
% autoconf
% ./configure
creating cache ./config.cache
./configure: line 524: syntax error near unexpected token
`AM_INIT_AUTOMAKE(hello,0.1)'
./configure: line 524: `AM_INIT_AUTOMAKE(hello,0.1)'
This 'AM_INIT...' line really exists in the ./configure script. I don't believe
it should be there, since I haven't found it in other configure scripts.
Can anyone help me? Is there a bug in the autotools? The example I took from
'Developing Software with GNU' by Eleftherios Gkioulekas.
Thanks
Eddy
- Errors with simple example,
Eddy Ilg <=