AC_CHECK_HEADERS([priv.h])
-
-AC_MSG_CHECKING([if we have solaris privileges])
-
case "$ac_cv_header_priv_h" in
yes)
case "$host" in
[ntp_have_solarisprivs=$enableval]
)
+AC_MSG_CHECKING([if we have solaris privileges])
case "$ntp_have_solarisprivs" in
yes)
[s Disable auto-added -R linker paths]
)]
)
+
ntp_openssl=no
ntp_openssl_from_pkg_config=no
+
with_crypto=${with_crypto:-openssl,libcrypto}
case "$with_crypto" in
yes)
with_crypto=openssl,libcrypto
esac
+
+DNL AC_MSG_NOTICE(['%with_crypto:%{PKG_CONFIG:+notempty}:%{with_openssl_libdir-notgiven}:%{with_openssl_incdir-notgiven}'])
+DNL str="$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}"
+DNL AC_MSG_NOTICE([$str])
+
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
no:*) ;;
*:notempty:notgiven:notgiven)
CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
- LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
+ LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
VER_SUFFIX=o
ntp_openssl=yes
AC_MSG_RESULT([no])
done
esac
+DNL AC_MSG_NOTICE([OpenSSL Phase I checks:])
+DNL AC_MSG_NOTICE([CPPFLAGS_NTP: $CPPFLAGS_NTP])
+DNL AC_MSG_NOTICE([CFLAGS_NTP: $CFLAGS_NTP])
+DNL AC_MSG_NOTICE([LDADD_NTP: $LDADD_NTP])
+DNL AC_MSG_NOTICE([LDFLAGS_NTP: $LDFLAGS_NTP])
case "$with_crypto:$ntp_openssl" in
no:*) ;;
*:no)
;;
esac
+DNL AC_MSG_NOTICE([OpenSSL final checks:])
+DNL AC_MSG_NOTICE([CPPFLAGS_NTP: $CPPFLAGS_NTP])
+DNL AC_MSG_NOTICE([CFLAGS_NTP: $CFLAGS_NTP])
+DNL AC_MSG_NOTICE([LDADD_NTP: $LDADD_NTP])
+DNL AC_MSG_NOTICE([LDFLAGS_NTP: $LDFLAGS_NTP])
+
CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
LIBS="$NTPO_SAVED_LIBS"
AS_UNSET([NTPO_SAVED_CFLAGS])