Autoconf SNMP Library checks

Arran Cudbard-Bell A.Cudbard-Bell at sussex.ac.uk
Sun Jul 15 20:19:59 CEST 2007


A.L.M.Buxey at lboro.ac.uk wrote:
> Hi,
>
>   
>> Just wondering if theres any particular reason the configure script 
>> still checks for the ucd snmp libraries,
>> is there some legacy code that will only work with ucd snmp functions?
>> or can the snmp include test be updated to look for the net-snmp headers 
>> (in acinclude.m4) ?
>>     
>
> probabyl related to the fact that FreeRADIUS uses the ucd-snmp method
> and only works with net-snmp if you have ucd-snmp compatability enabled?
>
>   
Yep that would be it,
Damn OSX for not including the ucd headers :\

Ok then possibly

--- configure.in        2007-07-15 19:11:43.000000000 +0100
+++ configure.in.snmppath       2007-07-15 19:10:58.000000000 +0100
@@ -1,4 +1,3 @@
-dnl #############################################################
 dnl #
 dnl #  For information about autoconf, see:
 dnl #
@@ -231,6 +230,10 @@
 [ case "$withval" in
     yes)
         ;;
+    [[\\/$]]* | ?:[[\\/]]* )
+        snmp_include_dir="$withval"
+        ;;
+
     *)
        WITH_SNMP=no
   esac ]

To allow for searching in non-standard locations might be nice.

snmp_include_dir is already used in the snmp include checks, it's just 
not set anywhere ...

Thanks.




More information about the Freeradius-Devel mailing list