]> git.ipfire.org Git - thirdparty/coreutils.git/commit
build: fix __get_cpuid_count check to catch link failure
authorCarl Edquist <edquist@cs.wisc.edu>
Mon, 10 May 2021 10:22:11 +0000 (05:22 -0500)
committerPádraig Brady <P@draigBrady.com>
Mon, 10 May 2021 12:35:20 +0000 (13:35 +0100)
commitbf483155e506b62a515fda9e92cbc4dd43629e70
tree27d0221d9b967db0dc6087ea2f8c41646885b9fd
parent09bbb2b703d78e2d577cba57b8bb3ad339303835
build: fix __get_cpuid_count check to catch link failure

The test program will compile successfully even if __get_cpuid_count
is not declared.  The error for the missing symbol will only show up
at link time.  Thus, use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE.

* configure.ac (__get_cpuid_count check): Use C_LINK_IFELSE instead
of AC_COMPILE_IFELSE.
(__get_cpuid check): Likewise.
configure.ac