aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorsharpe <sharpe@f5534014-38df-0310-8fa8-9805f1628bb7>2003-08-31 22:08:57 +0000
committersharpe <sharpe@f5534014-38df-0310-8fa8-9805f1628bb7>2003-08-31 22:08:57 +0000
commit3519e07cbd4377dc07162c265a91849051c0d218 (patch)
treed06c296401de6f24fc99e5929eaa272ffe6842cf /acinclude.m4
parent1a37f6258b3616d692c01b6711a5e1e81b879f25 (diff)
Add support for building with ucd-snmp on RH9.0. We need to link with
-L/usr/kerberos/lib -ldes425 ... This works on Linux (RH 9.0) but I am not sure about Solaris. Solaris is such a difficult environment to work with compared to Linux or FreeBSD. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8325 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m446
1 files changed, 25 insertions, 21 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index d1378fab0e..f76ad5d35d 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2,7 +2,7 @@ dnl Macros that test for specific features.
dnl This file is part of the Autoconf packaging for Ethereal.
dnl Copyright (C) 1998-2000 by Gerald Combs.
dnl
-dnl $Id: acinclude.m4,v 1.55 2003/08/21 07:13:54 guy Exp $
+dnl $Id: acinclude.m4,v 1.56 2003/08/31 22:08:57 sharpe Exp $
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
@@ -556,26 +556,30 @@ AC_DEFUN(AC_ETHEREAL_UCDSNMP_CHECK,
# Throw away the cached "we didn't find it" answer.
#
unset ac_cv_lib_snmp_sprint_realloc_objid
- AC_CHECK_LIB(snmp, sprint_realloc_objid,
- [
- #
- # Throw away the cached "we found it" answer, so
- # that if we rerun "configure", we don't just blow
- # off this check and blithely assume that we don't
- # need "-lkstat".
- #
- # XXX - autoconf really needs a way to test for
- # a given routine in a given library *and* to test
- # whether additional "-L"/"-R"/whatever flags are
- # needed *before* the "-l" flag for the library
- # and to test whether additional libraries are
- # needed after the library *and* to cache all that
- # information.
- #
- unset ac_cv_lib_snmp_sprint_realloc_objid
- SNMP_LIBS="-lsnmp -lkstat"
- ],,$SOCKET_LIBS $NSL_LIBS $SSL_LIBS -lkstat
- )
+ AC_CHECK_LIB(snmp, sprint_realloc_objid,
+ SNMP_LIBS="-lsnmp -L/usr/kerberos/lib -ldes425",
+ AC_CHECK_LIB(snmp, sprint_realloc_objid,
+ [
+ #
+ # Throw away the cached "we found it" answer, so
+ # that if we rerun "configure", we don't just blow
+ # off this check and blithely assume that we don't
+ # need "-lkstat".
+ #
+ # XXX - autoconf really needs a way to test for
+ # a given routine in a given library *and* to test
+ # whether additional "-L"/"-R"/whatever flags are
+ # needed *before* the "-l" flag for the library
+ # and to test whether additional libraries are
+ # needed after the library *and* to cache all that
+ # information.
+ #
+ unset ac_cv_lib_snmp_sprint_realloc_objid
+ SNMP_LIBS="-lsnmp -lkstat"
+ ],,$SOCKET_LIBS $NSL_LIBS $SSL_LIBS -lkstat
+ ),
+ $SOCKET_LIBS $NSL_LIBS $SSL_LIBS -L/usr/kerberos/lib -ldes425
+ )
], $SOCKET_LIBS $NSL_LIBS $SSL_LIBS
)