Sha256: 3e9494da49fd52937f14781b24a08d39fc38267a1714d4a179ed8ee311177710

Contents?: true

Size: 1.83 KB

Versions: 27

Compression:

Stored size: 1.83 KB

Contents

dnl  Copyright (C) 2009 Sun Microsystems
dnl This file is free software; Sun Microsystems
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

dnl ---------------------------------------------------------------------------
dnl Macro: PANDORA_64BIT
dnl ---------------------------------------------------------------------------
AC_DEFUN([PANDORA_64BIT],[
  AC_BEFORE([$0], [AC_LIB_PREFIX])


  AC_ARG_ENABLE([64bit],[
    AS_HELP_STRING([--disable-64bit],
      [Build 64 bit binary @<:@default=on@:>@])],
             [ac_enable_64bit="$enableval"],
             [ac_enable_64bit="yes"])

  AC_CHECK_PROGS(ISAINFO, [isainfo], [no])
  AS_IF([test "x$ISAINFO" != "xno"],
        [isainfo_b=`${ISAINFO} -b`],
        [isainfo_b="x"])

  AS_IF([test "$isainfo_b" != "x"],[

    isainfo_k=`${ISAINFO} -k` 
    DTRACEFLAGS="${DTRACEFLAGS} -${isainfo_k}"

    AS_IF([test "x${ac_cv_env_CPPFLAGS_set}" = "x"],[
      CPPFLAGS="-I/usr/local ${CPPFLAGS}"
    ])

    AS_IF([test "x${ac_cv_env_LDFLAGS_set}" = "x"],[
      LDFLAGS="-L/usr/local/lib/${isainfo_k} ${LDFLAGS}"
    ])

    AS_IF([test "x$ac_enable_64bit" = "xyes"],[
      AS_IF([test "x$libdir" = "x\${exec_prefix}/lib"],[
       dnl The user hasn't overridden the default libdir, so we'll 
       dnl the dir suffix to match solaris 32/64-bit policy
       libdir="${libdir}/${isainfo_k}"
      ])

      CPPFLAGS="-m64 ${CPPFLAGS}"
      LDFLAGS="-m64 ${LDFLAGS}"
      AS_IF([test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes"],[
        AM_CFLAGS="-xmemalign=8s ${AM_CFLAGS}"
        AM_CXXFLAGS="-xmemalign=8s ${AM_CXXFLAGS}"
      ])
    ])
  ])
])
dnl ---------------------------------------------------------------------------
dnl End Macro: PANDORA_64BIT
dnl ---------------------------------------------------------------------------

Version data entries

27 entries across 27 versions & 4 rubygems

Version Path
vinted-memcached-1.8.5 vendor/libmemcached-0.32/m4/pandora_64bit.m4
vinted-memcached-1.8.4 ext/libmemcached-0.32/m4/pandora_64bit.m4
vinted-memcached-1.8.3 ext/libmemcached-0.32/m4/pandora_64bit.m4
vinted-memcached-1.8.2 ext/libmemcached-0.32/m4/pandora_64bit.m4
vinted-memcached-1.8.0 ext/libmemcached-0.32/m4/pandora_64bit.m4
dalli_memcached-1.8.0 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.8.0 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.7.2 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.7.0 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.6.1 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.6.0 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.5.1 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.5.0 ext/libmemcached-0.32/m4/pandora_64bit.m4
boourns-memcached-1.4.6 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.4.6 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.4.5 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.4.3 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.4.2 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.4.1 ext/libmemcached-0.32/m4/pandora_64bit.m4
memcached-1.3.7 ext/libmemcached-0.32/m4/pandora_64bit.m4