diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-03-20 22:28:08 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-03-20 22:28:08 +0100 |
commit | 47262d2e7bc0705d343f5442c0d436438325cf4e (patch) | |
tree | 497869813cdb14b216abb2978cf2116965acb810 /acinclude.m4 | |
parent | b6493007cb5dfd5b259f7687276ae98e996fc927 (diff) | |
download | gmp-47262d2e7bc0705d343f5442c0d436438325cf4e.tar.gz |
* acinclude.m4 (GMP_CHECK_ASM_SHLDL_CL): New macro.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 58c59a815..4191ade5d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -481,6 +481,30 @@ else fi ])dnl +dnl GMP_CHECK_ASM_SHLDL_CL([ACTION-IF-FOUND, [ACTION-IF-NOT-FOUND]]) +AC_DEFUN(GMP_CHECK_ASM_SHLDL_CL, +[AC_REQUIRE([GMP_CHECK_ASM_TEXT]) +AC_CACHE_CHECK([if the assembler takes cl with shldl], + gmp_cv_check_asm_shldl_cl, +[cat > conftest.s <<EOF + $gmp_check_asm_text + shldl %cl, %eax, %ebx +EOF +ac_assemble="$CCAS $CFLAGS conftest.s 1>&AC_FD_CC" +if AC_TRY_EVAL(ac_assemble); then + gmp_cv_check_asm_shldl_cl=yes +else + gmp_cv_check_asm_shldl_cl=no +fi +rm -f conftest* +]) +if test "$gmp_cv_check_asm_shldl_cl" = "yes"; then + ifelse([$1], , :, [$1]) +else + ifelse([$2], , :, [$2]) +fi +])dnl + dnl GMP_PROG_CC_WORKS(CC, CFLAGS, ACTION-IF-WORKS, [ACTION-IF-NOT-WORKS]) dnl Check if CC can compile and link. Perform various target specific tests. dnl FIXME: Require `$target'. |