[prev in list] [next in list] [prev in thread] [next in thread]
List: xine-cvslog
Subject: [xine-cvs] HG: xine-lib: Backport CC_CHECK_LDFLAGS macro from 1.2
From: "=?UTF-8?Q?Diego=20'Flameeyes'=20Petten=C3=B2?=" <flameeyes () gmail ! com>
Date: 2008-05-24 0:20:33
Message-ID: 77e0e9adb0206c505f63.1211587281 () hg ! debian ! org
[Download RAW message or body]
# HG changeset patch
# User Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
# Date 1211587281 -7200
# Node ID 77e0e9adb0206c505f634fd5a5d1496c475e5fe0
# Parent 686ae070079bad93a9a2ce3431b579c129db8531
Backport CC_CHECK_LDFLAGS macro from 1.2 branch.
diff -r 77e0e9adb0206c505f634fd5a5d1496c475e5fe0 -r \
686ae070079bad93a9a2ce3431b579c129db8531 m4/attributes.m4
--- a/m4/attributes.m4 Sat May 24 02:01:21 2008 +0200
+++ b/m4/attributes.m4 Sat May 24 00:34:56 2008 +0200
@@ -56,6 +56,21 @@ AC_DEFUN([CC_CHECK_CFLAGS], [
[$2], [$3])
])
+AC_DEFUN([CC_CHECK_LDFLAGS], [
+ AC_CACHE_CHECK([if $CC supports $1 flag],
+ AS_TR_SH([cc_cv_ldflags_$1]),
+ [ac_save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $1"
+ AC_LINK_IFELSE([int main() { return 1; }],
+ [eval "AS_TR_SH([cc_cv_ldflags_$1])='yes'"],
+ [eval "AS_TR_SH([cc_cv_ldflags_$1])="])
+ LDFLAGS="$ac_save_LDFLAGS"
+ ])
+
+ AS_IF([test x$]AS_TR_SH([cc_cv_ldflags_$1])[ = xyes],
+ [$2], [$3])
+])
+
dnl Check for a -Werror flag or equivalent. -Werror is the GCC
dnl and ICC flag that tells the compiler to treat all the warnings
dnl as fatal. We usually need this option to make sure that some
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic