From: Kamil Dudka Date: Mon, 15 Mar 2021 09:27:40 +0000 (+0100) Subject: configure: use well-known file name conftest.c X-Git-Tag: 4.1-pre1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e7690ebec7794bdc9ffb877e4f711254f42c310;p=thirdparty%2Fchrony.git configure: use well-known file name conftest.c ... for configuration checks. Compiler wrappers check for this name in order to skip any instrumentation of the build that is intended for regular source files only. --- diff --git a/configure b/configure index a0f62d7b..729a9d4c 100755 --- a/configure +++ b/configure @@ -33,13 +33,13 @@ test_code () { echo "int main(int argc, char **argv) {" echo "$code" echo "return 0; }" - ) > docheck.c + ) > conftest.c - echo "docheck.c:" >> config.log - cat docheck.c >> config.log - echo $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o docheck docheck.c $ldflags \ + echo "conftest.c:" >> config.log + cat conftest.c >> config.log + echo $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o conftest conftest.c $ldflags \ $MYLDFLAGS >> config.log - $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o docheck docheck.c $ldflags \ + $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o conftest conftest.c $ldflags \ $MYLDFLAGS >> config.log 2>&1 if [ $? -eq 0 ] @@ -50,7 +50,7 @@ test_code () { echo "No" result=1 fi - rm -f docheck.c docheck + rm -f conftest.c conftest echo >> config.log return $result }