[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
improve clang support (32)
From: |
Bruno Haible |
Subject: |
improve clang support (32) |
Date: |
Sat, 15 Aug 2020 19:00:08 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; ) |
With MSVC/clang, I'm seeing this configure output:
checking whether realpath works... mkdir: cannot create directory
'conftest.d': File exists
no
The .d files contain dependency information, apparently generated by clang.
So, we need to clean up before starting the test.
2020-08-15 Bruno Haible <bruno@clisp.org>
canonicalize: Fix a problem of the autoconf test on MSVC/clang.
* m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
from dependency analysis first.
diff --git a/m4/canonicalize.m4 b/m4/canonicalize.m4
index de64cf7..14ea3e1 100644
--- a/m4/canonicalize.m4
+++ b/m4/canonicalize.m4
@@ -1,4 +1,4 @@
-# canonicalize.m4 serial 32
+# canonicalize.m4 serial 33
dnl Copyright (C) 2003-2007, 2009-2020 Free Software Foundation, Inc.
@@ -79,6 +79,7 @@ AC_DEFUN([gl_FUNC_REALPATH_WORKS],
AC_CHECK_FUNCS_ONCE([realpath])
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_CACHE_CHECK([whether realpath works], [gl_cv_func_realpath_works], [
+ rm -rf conftest.a conftest.d
touch conftest.a
mkdir conftest.d
AC_RUN_IFELSE([
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- improve clang support (32),
Bruno Haible <=