diff --git a/configure.ac b/configure.ac index 3207d1438f3d59792c4af6ef1d8fd6727fa6729e..411c07442a19aad80ae9bb2b4d0125daae0ac1e1 100644 --- a/configure.ac +++ b/configure.ac @@ -105,7 +105,15 @@ case "$host" in asm_path=x86 ;; *sparc*-*-*) - asm_path=sparc + AC_TRY_COMPILE([ +#if defined(__sparcv9) || defined(__arch64__) +#error 64-bit sparc +#endif + ], [], [ + asm_path=sparc + ], [ + asm_path=sparc64 + ]) ;; *) enable_assembler=no @@ -119,7 +127,7 @@ if test "x$enable_assembler" = xyes ; then AC_MSG_NOTICE([Looking for assembler files in $asm_path/.]) found=no for tmp_f in aes.asm aes-encrypt.asm aes-decrypt.asm \ - arcfour-crypt.asm sha1-compress.asm machine.m4; do + arcfour-crypt.asm md5-compress.asm sha1-compress.asm machine.m4; do # echo "Looking for $srcdir/$asm_path/$tmp_f" if test -f "$srcdir/$asm_path/$tmp_f"; then # echo found