Re: [RFC] adding solaris lib dependencies
Enver ALTIN <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Parkyeri |
| Message-ID | <[email protected]> |
On Wed, 2004-10-06 at 17:35 +0200, Alexander Malysh wrote:
> Hi,
Hi,
> how about attached patch?
Index: configure.in
===================================================================
RCS file: /home/cvs/gateway/configure.in,v
retrieving revision 1.145
diff -a -u -p -r1.145 configure.in
--- configure.in 28 Aug 2004 13:29:10 -0000 1.145
+++ configure.in 6 Oct 2004 15:34:43 -0000
@@ -303,6 +303,8 @@ pthread_rwlock_destroy(&lock);
AC_MSG_RESULT(Cross compiling - assuming suuported) ;
AC_DEFINE(HAVE_PTHREAD_RWLOCK)])
dnl checking for native semaphore support
+dnl Solaris & HP-UX needs librt.
+AC_CHECK_LIB(rt, sem_init)
AC_MSG_CHECKING([for semaphore support])
AC_TRY_RUN([#include <semaphore.h>
int main(void) {
It would be a bit better to be under or over semaphore support checks.
Also, we might want to check the *-hpux-* or, sunos part of uname
output, just to be sure this change doesn't affect other systems which
don't need librt (although autoconf/configure is supposed to handle
that).
--
Enver ALTIN | http://skyblue.gen.tr/
Software developer @ Parkyeri | http://www.parkyeri.com/
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD4DBQBBZBOaZCB2FZvqK0sRAtYkAJiStMGk1htmz/yZRLGb0NxFdu0nAJ0WuaBf 7yIgabatjeZlHJDyXrawbQ== =ppt+ -----END PGP SIGNATURE-----