bk: 48d057e0ni9VozzTyUCogk1C8JhiLw
+* Clean up build process for ntpsnmpd.
(4.2.5p133) 2008/09/16 Released by Harlan Stenn <stenn@ntp.org>
* Add options processing to ntpsnmpd.
* [Bug 1062] Check net-snmp headers before deciding to build ntpsnmpd.
ntpdate \
ntpdc \
ntpq \
- @NTPSNMPD_DIR@ \
+ ntpsnmpd \
parseutil \
adjtimed \
clockstuff \
save_CPPFLAGS=$CPPFLAGS
CFLAGS=$SNMP_CFLAGS
CPPFLAGS=$SNMP_CPPFLAGS
- AC_CHECK_HEADER([net-snmp/net-snmp-config.h], [NTPSNMPD_DIR=ntpsnmpd],
+ AC_CHECK_HEADER([net-snmp/net-snmp-config.h], [MAKE_NTPSNMPD=ntpsnmpd],
[AC_MSG_WARN([net-snmp-config present but net-snmp headers are not available!])])
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
esac
;;
esac
-AC_SUBST(NTPSNMPD_DIR)
+AC_SUBST(MAKE_NTPSNMPD)
AC_CACHE_CHECK(if we should always slew the time, ac_cv_var_slew_always,
[AC_ARG_ENABLE(slew-always,
AUTOMAKE_OPTIONS=
-sbin_PROGRAMS= ntpsnmpd
+sbin_PROGRAMS= @MAKE_NTPSNMPD@
+EXTRA_PROGRAMS= ntpsnmpd
ntpsnmpd_SOURCES= ntpsnmpd.c ntpSnmpSubagentObject.c \
ntpsnmpd-opts.c ntpsnmpd-opts.h
noinst_HEADERS= ntpSnmpSubagentObject.h