~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_ensure_gcc_version.m4

Split out warnings - start using the pandora build system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_DEFUN([FORCE_MAC_GCC42],
 
1
dnl If the user is on a Mac and didn't ask for a specific compiler
 
2
dnl You're gonna get 4.2.
 
3
AC_DEFUN([PANDORA_MAC_GCC42],
2
4
  [AS_IF([test "$GCC" = "yes"],[
3
 
    dnl If you're on a Mac, and you didn't ask for a specific compiler
4
 
    dnl You're gonna get 4.2.
5
5
    AS_IF([test "$host_vendor" = "apple" -a "x${ac_cv_env_CC_set}" = "x"],[
6
6
      AS_IF([test -f /usr/bin/gcc-4.2],
7
7
        [
13
13
  ])
14
14
])
15
15
 
16
 
AC_DEFUN([CHECK_GCC_VERSION],[
17
 
  AC_REQUIRE([FORCE_MAC_GCC42])
 
16
dnl 
 
17
AC_DEFUN([PANDORA_ENSURE_GCC_VERSION],[
 
18
  AC_REQUIRE([PANDORA_MAC_GCC42])
18
19
  AC_CACHE_CHECK([if GCC is recent enough], [ac_cv_gcc_recent],
19
20
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
20
21
#if !defined(__GNUC__) || (__GNUC__ < 4) || ((__GNUC__ >= 4) && (__GNUC_MINOR__ < 1))