diff options
author | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2010-06-27 01:14:03 +0300 |
---|---|---|
committer | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2010-07-11 21:40:26 +0300 |
commit | 47c35e5e86a3c99fc39afe2e13a7c92d5247ee1e (patch) | |
tree | a439bf319a252f425dbd58d182bb6f4cb1ecb51a /build/aclocal.cairo.m4 | |
parent | d2f5592e0e0d316cfc40ec676ee6e7f4e2a699fb (diff) |
build: Purge CAIRO_CC_TRY_LINK_FLAG.
Use CAIRO_CC_TRY_FLAG instead in the one place where we used
CAIRO_CC_TRY_LINK_FLAG and make the build system one macro
smaller.
Diffstat (limited to 'build/aclocal.cairo.m4')
-rw-r--r-- | build/aclocal.cairo.m4 | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/build/aclocal.cairo.m4 b/build/aclocal.cairo.m4 index 0b686775b..592e168c8 100644 --- a/build/aclocal.cairo.m4 +++ b/build/aclocal.cairo.m4 @@ -153,27 +153,6 @@ AC_DEFUN([CAIRO_CC_TRY_FLAG], AC_MSG_RESULT([$cairo_cc_flag]) ]) -dnl check compiler/ld flags -AC_DEFUN([CAIRO_CC_TRY_LINK_FLAG], -[dnl - CAIRO_CC_CHECK_WERROR - AC_MSG_CHECKING([whether $CC supports $1]) - - _save_cflags="$CFLAGS" - CFLAGS="$CFLAGS $WERROR $1" - AC_LINK_IFELSE([int main(void){ return 0;} ], - [cairo_cc_flag=yes], - [cairo_cc_flag=no]) - CFLAGS="$_save_cflags" - - if test "x$cairo_cc_flag" = "xyes"; then - ifelse([$2], , :, [$2]) - else - ifelse([$3], , :, [$3]) - fi - AC_MSG_RESULT([$cairo_cc_flag]) -]) - dnl Usage: dnl CAIRO_CHECK_NATIVE_ATOMIC_PRIMITIVES AC_DEFUN([CAIRO_CHECK_NATIVE_ATOMIC_PRIMITIVES], |