dnl @synopsis CHECK_AMD64() dnl dnl This macro tests whether a linux processor is an x86_64 and, if so, dnl sets CFLAGS to contain -D__amd64__ dnl EM64T is also catered for by the above. dnl @author: Alan Bleasby. dnl AC_DEFUN([CHECK_AMD64], # # # [AC_MSG_CHECKING([if Linux x86_64]) case $host_os in linux*) if test "$host_cpu" = "x86_64"; then CFLAGS="${CFLAGS} -D__amd64__" AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) fi ;; *) AC_MSG_RESULT(no) ;; esac ])