]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Use Frank Kardel's suggestion to collapse 3 cases to 1 for NetBSD
authorDave Hart <hart@ntp.org>
Sat, 7 Nov 2009 23:44:10 +0000 (23:44 +0000)
committerDave Hart <hart@ntp.org>
Sat, 7 Nov 2009 23:44:10 +0000 (23:44 +0000)
  USE_FSETOWNCTTY test.

bk: 4af6064aThPbK-jHCtJy5FW-bLg_cA

configure.ac

index a0fb8efdbb21746d3a4f35547180cb19b998b7eb..62047f187a434236599c2f8bfda6299779f2a670 100644 (file)
@@ -1748,15 +1748,10 @@ AC_CACHE_CHECK(
            ans=yes
            ;;
        # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
-       # while later versions will fail the ioctl(TIOCSCTTY, 0) call
-       # and so must not have USE_FSETOWNCTTY.
-        *-*-netbsdaout3.[0-8]*|*-*-netbsdaout[0-2].*|*-*-netbsdaout3.99.[0-7])
-           ans=yes
-           ;;
-        *-*-netbsdecoff3.[0-8]*|*-*-netbsdecoff[0-2].*|*-*-netbsdecoff3.99.[0-7])
-           ans=yes
-           ;;
-        *-*-netbsdelf3.[0-8]*|*-*-netbsdelf[0-2].*|*-*-netbsdelf3.99.[0-7])
+       # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
+       # some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
+       # in $host may be followed by "aout", "ecoff", or "elf".
+        *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
            ans=yes
            ;;
         *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])