]> Savannah Git Hosting - gnulib.git/commitdiff
fchmodat: Fix cross-compilation guess.
authorBruno Haible <bruno@clisp.org>
Wed, 7 Aug 2024 10:21:05 +0000 (12:21 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 16:19:51 +0000 (18:19 +0200)
* m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Tolerate Linux version number
in $host_os.

ChangeLog
m4/fchmodat.m4

index 9d917c6de3b71d409ee3c0989126324c7a143ead..304a8a2d2cec0151dff2bf1bdfa8653a7a3ea27d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-08-07  Bruno Haible  <bruno@clisp.org>
+
+       fchmodat: Fix cross-compilation guess.
+       * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Tolerate Linux version number
+       in $host_os.
+
 2024-08-06  Bruno Haible  <bruno@clisp.org>
 
        windows-mutex, windows-timedmutex: Follow pthread_mutex_trylock spec.
index e71ee8e8ef695e1fa2240e29293e5e6195f6e121..99dcf58aa7a2b338227ed50e22242ca5e4cc748c 100644 (file)
@@ -1,5 +1,5 @@
 # fchmodat.m4
-# serial 8
+# serial 9
 dnl Copyright (C) 2004-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -70,12 +70,12 @@ AC_DEFUN([gl_FUNC_FCHMODAT],
           esac
          ],
          [case "$host_os" in
-                                  # Guess no on Linux with glibc and Cygwin.
-            linux-gnu* | cygwin*) gl_cv_func_fchmodat_works="guessing no" ;;
-                                  # Guess 'nearly' on AIX.
-            aix*)                 gl_cv_func_fchmodat_works="guessing nearly" ;;
-                                  # If we don't know, obey --enable-cross-guesses.
-            *)                    gl_cv_func_fchmodat_works="$gl_cross_guess_normal" ;;
+                                   # Guess no on Linux with glibc and Cygwin.
+            linux*-gnu* | cygwin*) gl_cv_func_fchmodat_works="guessing no" ;;
+                                   # Guess 'nearly' on AIX.
+            aix*)                  gl_cv_func_fchmodat_works="guessing nearly" ;;
+                                   # If we don't know, obey --enable-cross-guesses.
+            *)                     gl_cv_func_fchmodat_works="$gl_cross_guess_normal" ;;
           esac
          ])
        rm -f conftest.fchmodat])