# Parent configure just created cache from empty,
# flushing would be counterproductive.
ntp_cache_flush=0;
+ ;;
esac
esac
;;
*)
# configure cache version mismatches config.cache version
+ ;;
esac
case "$ntp_cache_flush" in
for c_varname in $c_varname_list
do
- AS_UNSET([$c_varname])
+ dnl AS_UNSET([$c_varname])
+ dnl With Autoconf 2.61 and automake 1.10.3, using AS_UNSET
+ dnl here triggers generation of a syntax error in configure.
+ dnl Once we require a newer Autoconf we can revert to the
+ dnl AS_UNSET code.
+ { eval $c_varname=; unset $c_varname; }
done
AC_MSG_NOTICE([[$cache_file saved by another version, ignored.]])
AC_CHECK_LIB(
[c_r],
[sigwait],
- [have_sigwait=yes],
- []
+ [have_sigwait=yes]
)
esac
case "$have_sigwait" in
;;
*-solaris*)
AC_DEFINE([_POSIX_PTHREAD_SEMANTICS], [1])
- AC_CHECK_FUNC(
- [pthread_setconcurrency],
- [AC_DEFINE([CALL_PTHREAD_SETCONCURRENCY], [1],
- [why not HAVE_P_S?])],
- []
- )
+ AC_CHECK_FUNCS([pthread_setconcurrency])
+ case "$ac_cv_func_pthread_setconcurrency" in
+ yes)
+ AC_DEFINE([CALL_PTHREAD_SETCONCURRENCY], [1],
+ [why not HAVE_P_S?])
+ esac
;;
*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
AC_DEFINE([HAVE_UNIXWARE_SIGWAIT], [1], [deviant sigwait?])
*-solaris2.1[[0-9]])
AC_CACHE_CHECK(
[if extra braces are needed for PTHREAD_ONCE_INIT],
- [ntp_cv_brace_pthread_once_init],
+ [ntp_cv_braces_around_pthread_once_init],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[
]],
[[
static pthread_once_t once_test =
- { PTHREAD_ONCE_INIT };
+ PTHREAD_ONCE_INIT;
]]
)],
- [ntp_cv_brace_pthread_once_init=yes],
- [ntp_cv_brace_pthread_once_init=no]
+ [ntp_cv_braces_around_pthread_once_init=no],
+ [ntp_cv_braces_around_pthread_once_init=yes]
)]
)
- case "$ntp_cv_brace_pthread_once_init" in
+ case "$ntp_cv_braces_around_pthread_once_init" in
yes)
hack_shutup_pthreadonceinit=yes
esac