]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 693] fix configure when there is __adtimex and no ntp_*time
authorHarlan Stenn <stenn@ntp.org>
Thu, 7 Sep 2006 05:48:56 +0000 (00:48 -0500)
committerHarlan Stenn <stenn@ntp.org>
Thu, 7 Sep 2006 05:48:56 +0000 (00:48 -0500)
bk: 44ffb2c8jx8R3OSKbQ025Q05m0FlAg

configure.ac

index 5003d72732c2d184736fd72a6161e5ef038e26b0..bf0515b4f9f174d93cb996cf1fa147b2a66b3d8f 100644 (file)
@@ -1802,23 +1802,20 @@ esac
 
 AC_CACHE_CHECK([[availability of ntp_{adj,get}time()]], ac_cv_var_ntp_syscalls,
  [ac_cv_var_ntp_syscalls=no
- case "$ac_cv_func___adjtimex" in
-  yes)
+ case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
+  yesyes*)
     ac_cv_var_ntp_syscalls=libc
     ;;
-  *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
-      yesyes)
-        ac_cv_var_ntp_syscalls=libc
-        ;;
-      *) AC_EGREP_CPP(yes,
+  *yes)
+    ac_cv_var_ntp_syscalls=inline
+    ;;
+  *) AC_EGREP_CPP(yes,
          [#include <sys/syscall.h>
 #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
            yes
 #endif
           ], ac_cv_var_ntp_syscalls=kernel)
-         ;;
-     esac
-     ;;
+    ;;
  esac])
 case "$ac_cv_var_ntp_syscalls" in
  libc)