--disable-pps Disable PPS API support
--disable-rtc Don't include RTC even on Linux
--disable-linuxcaps Disable Linux capabilities support
+ --enable-forcednsretry Force retry on DNS failure
Fine tuning of the installation directories:
--sysconfdir=DIR chrony.conf location [/etc]
feat_pps=1
try_setsched=0
try_lockmem=0
+feat_forcednsretry=0
for option
do
--disable-linuxcaps)
feat_linuxcaps=0
;;
+ --enable-forcednsretry)
+ feat_forcednsretry=1
+ ;;
--host-system=* )
OPERATINGSYSTEM=`echo $option | sed -e 's/^.*=//;'`
;;
SYSDEFS="${SYSDEFS} -DHAVE_MLOCKALL"
fi
+if [ $feat_forcednsretry = "1" ]
+then
+ EXTRA_DEFS="$EXTRA_DEFS -DFORCE_DNSRETRY=1"
+fi
+
READLINE_COMPILE=""
READLINE_LINK=""
if [ $feat_readline = "1" ]; then
result = getaddrinfo(name, NULL, &hints, &res);
if (result) {
+#ifdef FORCE_DNSRETRY
+ return DNS_TryAgain;
+#else
return result == EAI_AGAIN ? DNS_TryAgain : DNS_Failure;
+#endif
}
for (ai = res; !result && ai != NULL; ai = ai->ai_next) {
return DNS_Success;
}
+#ifdef FORCE_DNSRETRY
+ return DNS_TryAgain;
+#else
return DNS_Failure;
#endif
+
+#endif
}
/* ================================================== */