| Hi.
    I'm doing a little gaim hacking, and I'm running into strange 
problems with libtool.  I can't seem to fix it myself because I'm an 
autoconf newbie, so I'm posting here.
    Here are the steps I perform:
    0.)  Using the fresh v0.59.9 untarred package, I add 
'AC_CHECK_LIB(mylib, myfunc)' to configure.ac.
    1.)  I run autoconf.
    2.)  I run configure.
    3.)  I run make, and on the very first C file it tries to compile, 
this happens:
make[2]: Entering directory `/home/jdog/gaim-0.59.9/sounds'
gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -I/usr/local/include 
-I/opt/include
-I.. -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H 
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  
-I/usr/include/gdk-pixbuf-1.0 -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  -c 
au2h.c
/bin/sh ../libtool --silent --mode=link gcc  -g -O2 -I/usr/local/include 
-I/opt/include -I.. -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H 
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  
-I/usr/include/gdk-pixbuf-1.0 -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include   
-o au2h  au2h.o  -lnsl
../libtool: line 1: s%^.*/%%: No such file or directory
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
mkdir: cannot create directory `/.libs': Permission denied
make[2]: *** [au2h] Error 1
make[2]: Leaving directory `/home/jdog/gaim-0.59.9/sounds'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jdog/gaim-0.59.9'
make: *** [all-recursive-am] Error 2
[jdog@localhost gaim-0.59.9]$
    I saved the 'libtool' script that I generated and called it 
'libtool.busted', then compared it with the 'libtool' script that gets 
generated when I do not change configure.ac (and I called that one 
'libtool.good').  Here are the differences:
[jdog@localhost jdog]$ diff libtool.good libtool.busted
29,31d28
< # A sed that does not truncate output.
< SED="/bin/sed"
<
33c30
< Xsed="/bin/sed -e s/^X//"
---
 > Xsed="sed -e s/^X//"
[jdog@localhost jdog]$
    This is all done from a Red Hat 8.0 box.  If someone needs more 
details to fix this, I'd be happy to give more.
    Thanks!
    - Joe
 |