You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2012/12/20 05:47:40 UTC
svn commit: r1424297 -
/subversion/branches/tweak-build-take-two/build/ac-macros/svn-macros.m4
Author: brane
Date: Thu Dec 20 04:47:40 2012
New Revision: 1424297
URL: http://svn.apache.org/viewvc?rev=1424297&view=rev
Log:
[On the tweak-build-take-two branch]
Remove unused and superceded autoconf function.
* build/ac-macros/svn-macros.m4 (SVN_MAYBE_ADD_TO_CFLAGS): Removed.
It was not used anywhere and is replaced by the more specific
SVN_CFLAGS_ADD_IFELSE and SVN_CXXFLAGS_ADD_IFELSE.
Modified:
subversion/branches/tweak-build-take-two/build/ac-macros/svn-macros.m4
Modified: subversion/branches/tweak-build-take-two/build/ac-macros/svn-macros.m4
URL: http://svn.apache.org/viewvc/subversion/branches/tweak-build-take-two/build/ac-macros/svn-macros.m4?rev=1424297&r1=1424296&r2=1424297&view=diff
==============================================================================
--- subversion/branches/tweak-build-take-two/build/ac-macros/svn-macros.m4 (original)
+++ subversion/branches/tweak-build-take-two/build/ac-macros/svn-macros.m4 Thu Dec 20 04:47:40 2012
@@ -141,37 +141,6 @@ done
$1="${svn_cur}"
])
-dnl SVN_MAYBE_ADD_TO_CFLAGS(option)
-dnl
-dnl Attempt to compile a trivial C program to test if the option passed
-dnl is valid. If it is, then add it to CFLAGS. with the passed in option
-dnl and see if it was successfully compiled.
-dnl
-dnl This macro is usually used for stricter syntax checking flags.
-dnl Therefore we include certain headers which may in turn include system
-dnl headers, as system headers on some platforms may fail strictness checks
-dnl we wish to use on other platforms.
-
-AC_DEFUN(SVN_MAYBE_ADD_TO_CFLAGS,
-[
- option="$1"
- svn_maybe_add_to_cflags_saved_flags="$CFLAGS"
- CFLAGS="$CFLAGS $option"
- AC_MSG_CHECKING([if $CC accepts $option])
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
- [[#include <apr_portable.h>]],
- [[]])],
- [svn_maybe_add_to_cflags_ok="yes"],
- [svn_maybe_add_to_cflags_ok="no"]
- )
- if test "$svn_maybe_add_to_cflags_ok" = "yes"; then
- AC_MSG_RESULT([yes, will use it])
- else
- AC_MSG_RESULT([no])
- CFLAGS="$svn_maybe_add_to_cflags_saved_flags"
- fi
-])
-
dnl SVN_STRIP_FLAG(FLAG_VAR_NAME, FLAG)
dnl
dnl Remove FLAG from the variable FLAG_VAR_NAME, if it exists. This macro