configure can't find library on some platforms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have 2 libraries, mylib1 and mylib2.  mylib1 has no depencies.  mylib2
depends on mylib1.

I am using aclocal, autoheader, autoconf, automake, and libtoolize to build
these libraries.

I build mylib1 and do a make install.  Then, I do a configure in mylib2 and
on some platforms it can't find main in mylib1.

Platforms that work:
FC4, OS X 10.4

Platforms that don't work:
RHEL3, MSYS, CYGWIN

Right now I'm trying to make it work on RHEL3.  mylib1 was put in
/usr/local/lib.  I added /usr/local/lib/to /etc/ld.so.conf and ran "sudo
ldconfig -v" and verified that it saw my library (I've also rebooted).
Also, if I type gcc -lmylib1 it sees it (gcc -lblahblahlibrary gives an
error about blahblahlibrary not found, and that's not what gcc -lmylib1
errors with).  So I know my library is in a place where at least some parts
of the system are looking.

Basically, mylib2's configure.ac is pretty straightforward with:

AC_CHEC_LIB(mylib2, main, , AC_MSG_ERROR(mylib2 required))

I don't know what else to try.

--Zac
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux