diff options
Diffstat (limited to 'm4/unlink.m4')
-rw-r--r-- | m4/unlink.m4 | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/m4/unlink.m4 b/m4/unlink.m4 index 69fd1af..69d8ba5 100644 --- a/m4/unlink.m4 +++ b/m4/unlink.m4 @@ -1,5 +1,5 @@ -# unlink.m4 serial 13 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc. +# unlink.m4 serial 15 +dnl Copyright (C) 2009-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -26,7 +26,7 @@ AC_DEFUN([gl_FUNC_UNLINK], # include <io.h> #endif #include <errno.h> - ]], + ]GL_MDA_DEFINES], [[int result = 0; if (!unlink ("conftest.file/")) result |= 1; @@ -49,8 +49,8 @@ AC_DEFUN([gl_FUNC_UNLINK], *-gnu*) gl_cv_func_unlink_honors_slashes="guessing yes" ;; # Guess no on native Windows. mingw*) gl_cv_func_unlink_honors_slashes="guessing no" ;; - # If we don't know, assume the worst. - *) gl_cv_func_unlink_honors_slashes="guessing no" ;; + # If we don't know, obey --enable-cross-guesses. + *) gl_cv_func_unlink_honors_slashes="$gl_cross_guess_normal" ;; esac ]) rm -f conftest.file conftest.lnk]) @@ -98,6 +98,7 @@ AC_DEFUN([gl_FUNC_UNLINK], # include <direct.h> # include <io.h> #endif + ]GL_MDA_DEFINES[ int main () { int result = 0; @@ -110,8 +111,8 @@ AC_DEFUN([gl_FUNC_UNLINK], ]])], [gl_cv_func_unlink_parent_fails=yes], [gl_cv_func_unlink_parent_fails=no], - [# If we don't know, assume the worst. - gl_cv_func_unlink_parent_fails="guessing no" + [# If we don't know, obey --enable-cross-guesses. + gl_cv_func_unlink_parent_fails="$gl_cross_guess_normal" ]) unset GL_SUBDIR_FOR_UNLINK rm -rf "$tmp" |