using automake and autoconf with C++

hi,
I have written the Makefile.am and autoconf.ac files and am looking to build my project by providing the following commands:
$autoreconf -f -i -m
$./configure
both of the above work fine, but when I give the make command, I get the following error:
1
2
3
4
5
6
7
8
9
make  all-am
make[1]: Entering directory `/home/BA/test'
depbase='echo test.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'';\
	g++ -DHAVE_CONFIG_H -I. -g -O2 -MT test.o -MD -MP -MF $depbase.Tpo -c -o test.o test.cpp &&\
	mv -f $depbase.Tpo $depbase.Po
g++ -g -O2 -o test.exe test.o
make[1]: *** No rule to make target 'autogen.sh', needed by 'all-am'. Stop.
make[1]: Leaving directory `/home/BA/test'
make: *** [all] Error 2

Can anyone please help me with fixing this error. thanks!
Topic archived. No new replies allowed.