File: amd64.m4

package info (click to toggle)
emboss 5.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 81,332 kB
  • ctags: 25,201
  • sloc: ansic: 229,873; java: 29,051; sh: 10,636; perl: 8,714; makefile: 1,227; csh: 520; asm: 351; pascal: 237; xml: 94; modula3: 8
file content (26 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 @author: Alan Bleasby.
dnl

AC_DEFUN([CHECK_AMD64],
#
#
#
[AC_MSG_CHECKING([if Linux x86_64])


if test "`uname -a | grep Linux`"; then
  if test "`uname -a | grep x86_64`"; then
    CFLAGS="${CFLAGS} -D__amd64__"
    AC_MSG_RESULT(yes)
  else
    AC_MSG_RESULT(no)
  fi
else
 AC_MSG_RESULT(no)
fi

])