Ethereal-cvs: Re: [ethereal-cvs] cvs commit: ethereal packet-snmp.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Wed, 27 Oct 1999 14:26:16 -0700 (PDT)
> Odd. The FreeBSD package should put the headers in 
> /usr/local/include/ucd-snmp/ and the lib should be 
> /usr/local/lib/libsnmp.so.X

Hmm.  I now seem to remember that the "AC_ETHEREAL_UCDSNMP_CHECK" macro
(in "acinclude.m4") apparently failed to look in "/usr/local/include"
for a "ucd-snmp" directory and header files therein, which might've been
the problem I saw.

It checks "$ucdsnmp_user_dir" and "$prefix"; "$ucdsnmp_user_dir" is the
directory specified by a "--with-ucdsnmp=" flag, and "$prefix" would, in
theory, be the directory specified by a "-prefix=" flag, defaulting to
"/usr/include", except that it's not set until fairly late in
"configure" as generated by "autoconf" - i.e., by "AC_OUTPUT".

It should probably work around this by doing the same

	test "x$prefix" = xNONE && prefix=$ac_default_prefix

stuff that "configure.in" does to set "DATAFILE_DIR".