X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=configure.ad;h=c99faef62d772ccaec7564652532ca580826285b;hp=8ee9d61b87f5e4e494e6f19de149346b9fd56ebb;hb=90e14dc985628e0b0f86e604d511039d302dc956;hpb=4d9d43c25aaa28158a95fb20949c4bf02ab6b3a4 diff --git a/configure.ad b/configure.ad index 8ee9d61b..c99faef6 100644 --- a/configure.ad +++ b/configure.ad @@ -361,13 +361,21 @@ have_assembler=false if test x$want_asm = xtrue; then AC_PATH_PROG([NASM], [nasm], [no]) if test "x$NASM" != "xno"; then - SILC_ASSEMBLER="$NASM -O2 -felf" + if test x$cpu_x86_64 = xtrue; then + SILC_ASSEMBLER="$NASM -O2 -felf64" + else + SILC_ASSEMBLER="$NASM -O2 -felf" + fi have_assembler=true fi AC_PATH_PROG([YASM], [yasm], [no]) if test "x$YASM" != "xno"; then - SILC_ASSEMBLER="$YASM -Xgnu -felf" + if test x$cpu_x86_64 = xtrue; then + SILC_ASSEMBLER="$YASM -Xgnu -felf64" + else + SILC_ASSEMBLER="$YASM -Xgnu -felf" + fi have_assembler=true fi fi