Fix from Trond for deprecation
[m6w6/libmemcached] / m4 / 64bit.m4
1 dnl ---------------------------------------------------------------------------
2 dnl Macro: ENABLE_64BIT
3 dnl ---------------------------------------------------------------------------
4 AC_DEFUN([ENABLE_64BIT],[
5
6 AC_CHECK_PROGS(ISAINFO, [isainfo], [no])
7 AS_IF([test "x$ISAINFO" != "xno"],
8 [isainfo_b=`${ISAINFO} -b`],
9 [isainfo_b="x"])
10
11 AS_IF([test "$isainfo_b" != "x"],
12 [AC_ARG_ENABLE([64bit],
13 [AS_HELP_STRING([--disable-64bit],
14 [Build 64 bit binary @<:@default=on@:>@])],
15 [ac_enable_64bit="$enableval"],
16 [ac_enable_64bit="yes"])])
17
18 AS_IF([test "x$ac_enable_64bit" = "xyes"],[
19 if test "x$libdir" = "x\${exec_prefix}/lib" ; then
20 # The user hasn't overridden the default libdir, so we'll
21 # the dir suffix to match solaris 32/64-bit policy
22 isainfo_k=`${ISAINFO} -k`
23 libdir="${libdir}/${isainfo_k}"
24 fi
25 CFLAGS="-m64 $CFLAGS"
26 CXXFLAGS="-m64 $CXXFLAGS"
27 if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes"
28 then
29 CFLAGS="-xmemalign=8s $CFLAGS"
30 CXXFLAGS="-xmemalign=8s $CXXFLAGS"
31 fi
32 ])
33 ])
34 dnl ---------------------------------------------------------------------------
35 dnl End Macro: ENABLE_64BIT
36 dnl ---------------------------------------------------------------------------