From: Vincent B. <be...@lu...> - 2013-08-16 08:55:52
|
❦ 16 août 2013 10:00 CEST, Harlan Stenn <st...@nt...> : >>> I have problem compiling ptpd on latest stable Debian (7.1). >>> >>> Configure says >>> >>> --enable-snmp enable support for SNMP (disabled by default) >>> >>> but it is enabled by default on this system. > > I'll take a look. My belief is that we should, unless --disable-snmp is > specified, enable SNMP iff: > > - net-snmp-config is found > - if the net snmp config file can be found > - possibly some other compile-time checks > > Does that seem OK? I am using the following snippets in my autoconf projects: https://github.com/vincentbernat/lldpd/blob/master/m4/snmp.m4 I call it with: AC_ARG_WITH([snmp], AS_HELP_STRING( [--with-snmp], [Enable the use of SNMP @<:@default=no@:>@] )) if test x"$with_snmp" = x"yes"; then lldp_CHECK_SNMP fi Then in Makefile.am something_CFLAGS += @NETSNMP_CFLAGS@ something_LDADD += @NETSNMP_LIBS@ If you prefer, I can come with a patch. -- Don't over-comment. - The Elements of Programming Style (Kernighan & Plauger) |