62 |
AC_MSG_CHECKING([whether x86 architecture]) |
AC_MSG_CHECKING([whether x86 architecture]) |
63 |
def_arch_x86=0 |
def_arch_x86=0 |
64 |
case $target_cpu in |
case $target_cpu in |
65 |
"i386" | "i486" | "i586" | "i686" | "i786") |
"i386" | "i486" | "i586" | "i686" | "i786" | "x86_64") |
66 |
echo "yes" |
echo "yes" |
67 |
def_arch_x86=1;; |
def_arch_x86=1;; |
68 |
*) |
*) |
74 |
# (only if the user did not provide one) |
# (only if the user did not provide one) |
75 |
CXX_CPU_SWITCH= |
CXX_CPU_SWITCH= |
76 |
if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then |
if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then |
77 |
if test "$def_arch_x86" = 1; then |
if test "$def_arch_x86" = 1 -a "$target_cpu" != "x86_64"; then |
78 |
CXX_CPU_SWITCH="-march=$target_cpu" |
CXX_CPU_SWITCH="-march=$target_cpu" |
79 |
elif test "$target_cpu" = "ppc"; then |
elif test "$target_cpu" = "ppc"; then |
80 |
CXX_CPU_SWITCH="-arch=$target_cpu" |
CXX_CPU_SWITCH="-arch=$target_cpu" |