Rewrite find_cxx_header config configure.ac
commit596183a1eed0699be96bdcd495ab1b497370afda
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 2 Nov 2022 14:55:57 +0000 (2 11:55 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 7 Nov 2022 13:40:17 +0000 (7 10:40 -0300)
treebdf392139f9162cf9bb0c572248d139920d79307
parentd1d0162e50afe7fa1e2fc4a901eb411db48acd7b
Rewrite find_cxx_header config configure.ac

With clang if the main file is <stdin>, the first non-main-file
dependency is not listed in the -MP output.  Although it was fixed
on clang-16 [1], this change adds portability for older version.

[1] https://github.com/llvm/llvm-project/commit/ff9576f74514b836e1ba0268409a2ecb919d7118

Reviewed-by: Fangrui Song <maskray@google.com>
configure
configure.ac