]> git.gsnw.org Git - fping.git/commitdiff
Change obsolete macro from AC_CANONICAL_SYSTEM to AC_CANONICAL_TARGET
authorGerman Service Network <support@gsnw.de>
Fri, 15 Sep 2023 19:20:14 +0000 (21:20 +0200)
committerDavid Schweikert <david@schweikert.ch>
Thu, 2 Nov 2023 07:00:33 +0000 (08:00 +0100)
configure.ac

index fcc0787c99df608caba5ddac7c10f31a81765bd5..cfe702f9c171b38f72114c2f2789d35e61f82d09 100644 (file)
@@ -8,11 +8,11 @@ AC_INIT([fping],[5.1])
 m4_ifdef([AC_AUTOCONF_VERSION],[AC_USE_SYSTEM_EXTENSIONS], [AC_GNU_SOURCE])
 
 # Detect Operatingsystem
-AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
 only_clock_realtime=no
 
-case "${host_os}" in
-  darwin*)
+case "${target}" in
+  *darwin*)
     only_clock_realtime=yes
     ;;
   *freebsd*)
@@ -67,7 +67,6 @@ AC_ARG_ENABLE([safe-limits],
 AS_IF([test "x$enable_safe_limits" = "xyes"], [
    AC_DEFINE(FPING_SAFE_LIMITS, [1], [safe limits should be enforced])])
 
-AC_CANONICAL_TARGET
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 AM_MAINTAINER_MODE