Richard Broersma Jr wrote:
I misread this little snippet from the apcupsd manual and thought I was looking for CFLAGS: Perhaps "LDFLAGS" were what I was actually looking for?
     CFLAGS="-g -O2" LDFLAGS="-g" ./configure \
       --enable-usb \
       --with-upstype=usb \
       --with-upscable=usb \
       --prefix=/usr \
       --sbindir=/sbin \
       --with-cgi-bin=/var/www/cgi-bin \
       --enable-cgi \
       --with-css-dir=/var/www/docs/css \
       --with-log-dir=/etc/apcupsd \
       --enable-pthreads \
       --enable-powerflute
...
...
     --with-serial-dev=<your-SNMP-device> \
     --with-upstype=snmp \
     --with-upscable=smart \
     --enable-pthreads \
     --enable-snmp

Neither. These are all options passed to the configure script - in this case, CFLAGS and LDFLAGS are set as environment variables for it (since they're specified prior to the actual ./configure call). Configure options are set by the ebuild in Gentoo, so you could conceivably look through the ebuild for the option you need, to see if it's controlled by a USE flag.

However, there is a far faster and easier solution: a quick 'emerge --pretend --verbose apcupsd' (long options shown here for readability: the actual line I typed was 'emerge -pv apcupsd') shows me that one of the USE flags supported by apcupsd is 'snmp', which from the name I would deduce controls SNMP support. To enable SNMP in apcupsd, simply either add snmp to your USE in make.conf, or create an appropriate package.use entry.
--
gentoo-user@gentoo.org mailing list

Reply via email to