ZapTel compileing error Mandriva

Hi!

I have now spent more then 20 hours in last 5 days in trying to get ZapTel up and running.

Tried everything - kb.digium.com/entry/21/7/ , WIKI things, linking directories, pure copy of kernel from current location (/usr/src/linux-2.6.18.6-2mdv to /lib/modules/2.6.18.6-2mdv/build).

On everything but last one it fails with this:

grep: /lib/modules/2.6.18.6-2mdv/build/include/linux/autoconf.h: No such file or directory
make[1]: Entering directory /usr/src/zaptel-1.4.2.1/menuselect' rm -f menuselect gmenuselect *.o make[1]: Leaving directory/usr/src/zaptel-1.4.2.1/menuselect’
rm -f torisatool makefw tor2fw.h radfw.h
rm -f fxotune fxstest sethdlc-new ztcfg ztdiag ztmonitor ztspeed zttest zttool
rm -f *.o ztcfg tzdriver sethdlc sethdlc-new
rm -f libtonezone.so libtonezone.a *.lo
make -C /lib/modules/2.6.18.6-2mdv/build SUBDIRS=/usr/src/zaptel-1.4.2.1 clean
make[1]: Entering directory /lib/modules/2.6.18.6-2mdv/build' make[1]: *** No rule to make targetclean’. Stop.
make[1]: Leaving directory `/lib/modules/2.6.18.6-2mdv/build’
make: *** [clean] Error 2

When I copy whole kernel source to place where it want’s to find it, “make clean” go without error, but “make” fails with LOT of errors:

make[1]: Entering directory /usr/src/zaptel-1.4.2.1/menuselect' make[2]: Entering directory/usr/src/zaptel-1.4.2.1/menuselect’
make[3]: Entering directory /usr/src/zaptel-1.4.2.1/menuselect/mxml' autoconf make[3]: autoconf: Command not found make[3]: *** [config.h] Error 127 make[3]: Leaving directory/usr/src/zaptel-1.4.2.1/menuselect/mxml’
make[2]: *** [mxml/libmxml.a] Error 2
make[2]: Leaving directory /usr/src/zaptel-1.4.2.1/menuselect' make[1]: *** [all] Error 2 make[1]: Leaving directory/usr/src/zaptel-1.4.2.1/menuselect’
make: *** [menuselect/menuselect] Error 2

Any ideas?

On the other hand, when I try to use RPM to install zaptel-tools and dkms-zaptel (version is 1.2.x), first one installs ok, but dkms-zaptel fails.

Any help would be appreciated.