> Hi.  I've been trying to Debianize a library I've written, which
> uses autoconf, automake, and libtool to compile the shared library.  When I
> try to do it the straightforward way, debian/rules dies with the following:

You haven't actually said what the straightforward way is....

> make[1]: Entering directory 
> `/home/staff/jamesjb/Devel/accounting/libaccounting-0.1/shared'
> /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.     -O2 
> -fPIC -pipe -c ../int-string-map.c
> ./libtool: ./libtool: No such file or directory
[...]

> Is there an easy way to do this, with libtool or does it require elaborate 
> hacking of debian/rules?  I did edit the Makefile.in to replace ./libtool 
> with 
> $(srcdir)/libtool, but it seems that will not be enough.

Firstly, are you able to configure and compile it when doing so
directly (i.e., not via debian/rules)?

I presume that if you are using automake and autoconf, then you want
to have something like this in debian/rules (assuming you are using
debhelper, which you are, aren't you?!):

build: build-stamp
build-stamp:
        dh_testdir
        CFLAGS='-O2 -g' ./configure --prefix=/usr [...other options]
        make
        touch build-stamp

Is this what you are doing?  If you are using automake, you mustn't
change Makefile.in explicitly, or your changes will be lost.

Perhaps you could post your configure.in, Makefile.am and debian/rules
for perusal if the above doesn't help?  Or give a URL from where they
can be downloaded.

   Julian

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  Julian Gilbey, Dept of Maths, QMW, Univ. of London. [EMAIL PROTECTED]
        Debian GNU/Linux Developer,  see http://www.debian.org/~jdg

Reply via email to