mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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.
This commit is contained in:
1 parent
09bbb2b703
commit
bf483155e5
1 file changed
+2
-2
+2
-2
@@ -525,7 +525,7 @@ LDFLAGS=$ac_save_LDFLAGS
|
||||
ac_c_werror_flag=$cu_save_c_werror_flag
|
||||
|
||||
AC_MSG_CHECKING([if __get_cpuid available])
|
||||
AC_COMPILE_IFELSE(
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_SOURCE([[
|
||||
#include <cpuid.h>
|
||||
|
||||
@@ -576,7 +576,7 @@ AM_CONDITIONAL([USE_PCLMUL_CRC32],
|
||||
CFLAGS=$ac_save_CFLAGS
|
||||
|
||||
AC_MSG_CHECKING([if __get_cpuid_count exists])
|
||||
AC_COMPILE_IFELSE(
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_SOURCE([[
|
||||
#include <cpuid.h>
|
||||
|
||||
|
||||
Reference in new issue
Block a user