]>
Commit | Line | Data |
---|---|---|
0b04990a | 1 | dnl # |
70835c5b BB |
2 | dnl # Set the target cpu architecture. This allows the |
3 | dnl # following syntax to be used in a Makefile.am. | |
4 | dnl # | |
70835c5b BB |
5 | dnl # if TARGET_CPU_POWERPC |
6 | dnl # ... | |
7 | dnl # else | |
8 | dnl # ... | |
9 | dnl # endif | |
0b04990a TC |
10 | dnl # |
11 | AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_ARCH], [ | |
70835c5b BB |
12 | case $target_cpu in |
13 | i?86) | |
14 | TARGET_CPU=i386 | |
15 | ;; | |
9f0a21e6 | 16 | amd64|x86_64) |
70835c5b | 17 | TARGET_CPU=x86_64 |
0b04990a | 18 | ;; |
70835c5b BB |
19 | powerpc*) |
20 | TARGET_CPU=powerpc | |
21 | ;; | |
22 | aarch64*) | |
23 | TARGET_CPU=aarch64 | |
24 | ;; | |
25 | sparc64) | |
26 | TARGET_CPU=sparc64 | |
0b04990a | 27 | ;; |
bd0955cd AZ |
28 | *) |
29 | TARGET_CPU=$target_cpu | |
30 | ;; | |
0b04990a TC |
31 | esac |
32 | ||
985c33b1 | 33 | AM_CONDITIONAL([TARGET_CPU_AARCH64], test $TARGET_CPU = aarch64) |
70835c5b BB |
34 | AM_CONDITIONAL([TARGET_CPU_X86_64], test $TARGET_CPU = x86_64) |
35 | AM_CONDITIONAL([TARGET_CPU_POWERPC], test $TARGET_CPU = powerpc) | |
985c33b1 | 36 | AM_CONDITIONAL([TARGET_CPU_SPARC64], test $TARGET_CPU = sparc64) |
0b04990a | 37 | ]) |