Sha256: 9366030cbd6c0bce88887b0b762a4a19e8b5444421449211c6852d7a473618ab

Contents?: true

Size: 1.32 KB

Versions: 27

Compression:

Stored size: 1.32 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 If the user is on a Mac and didn't ask for a specific compiler
dnl You're gonna get 4.2.
AC_DEFUN([PANDORA_MAC_GCC42],
  [AS_IF([test "$GCC" = "yes"],[
    AS_IF([test "$host_vendor" = "apple" -a "x${ac_cv_env_CC_set}" = "x"],[
      AS_IF([test -f /usr/bin/gcc-4.2],
        [
          CPP="/usr/bin/gcc-4.2 -E"
          CC=/usr/bin/gcc-4.2
          CXX=/usr/bin/g++-4.2
        ])
    ])
  ])
])

dnl 
AC_DEFUN([PANDORA_ENSURE_GCC_VERSION],[
  AC_REQUIRE([PANDORA_MAC_GCC42])
  AC_CACHE_CHECK([if GCC is recent enough], [ac_cv_gcc_recent],
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#if !defined(__GNUC__) || (__GNUC__ < 4) || ((__GNUC__ >= 4) && (__GNUC_MINOR__ < 1))
# error GCC is Too Old!
#endif
      ]])],
      [ac_cv_gcc_recent=yes],
      [ac_cv_gcc_recent=no])])
  AS_IF([test "$ac_cv_gcc_recent" = "no" -a "$host_vendor" = "apple"],
    AC_MSG_ERROR([Your version of GCC is too old. At least version 4.2 is required on OSX. You may need to install a version of XCode >= 3.1.2]))
  AS_IF([test "$ac_cv_gcc_recent" = "no"],
    AC_MSG_ERROR([Your version of GCC is too old. At least version 4.1 is required]))
])

Version data entries

27 entries across 27 versions & 4 rubygems

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