ruby-changes:31303
From: nobu <ko1@a...>
Date: Tue, 22 Oct 2013 12:11:26 +0900 (JST)
Subject: [ruby-changes:31303] nobu:r43382 (trunk): configure.in: check CFLAGS and LDFLAGS
nobu 2013-10-22 12:11:20 +0900 (Tue, 22 Oct 2013) New Revision: 43382 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43382 Log: configure.in: check CFLAGS and LDFLAGS * configure.in: check if the given CFLAGS and LDFLAGS are working, and bail out early if not. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 43381) +++ configure.in (revision 43382) @@ -645,6 +645,25 @@ else https://github.com/ruby/ruby/blob/trunk/configure.in#L645 unset ac_c_werror_flag fi]) +RUBY_WERROR_FLAG([ + AC_MSG_CHECKING([whether CFLAGS is valid]) + AC_TRY_COMPILE([], [], + [AC_MSG_RESULT(yes)], + [ + AC_MSG_RESULT(no) + AC_MSG_ERROR([something wrong with CFLAGS="$CFLAGS"]) + ] + ) + AC_MSG_CHECKING([whether LDFLAGS is valid]) + AC_TRY_LINK([], [], + [AC_MSG_RESULT(yes)], + [ + AC_MSG_RESULT(no) + AC_MSG_ERROR([something wrong with LDFLAGS="$LDFLAGS"]) + ] + ) +]) + AC_DEFUN(RUBY_TRY_CFLAGS, [ AC_MSG_CHECKING([whether ]$1[ is accepted as CFLAGS]) RUBY_WERROR_FLAG([ Index: ChangeLog =================================================================== --- ChangeLog (revision 43381) +++ ChangeLog (revision 43382) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Oct 22 12:11:16 2013 Nobuyoshi Nakada <nobu@r...> + + * configure.in: check if the given CFLAGS and LDFLAGS are working, and + bail out early if not. + Tue Oct 22 00:06:57 2013 Nobuyoshi Nakada <nobu@r...> * file.c (rb_file_exists_p): warn deprecated name. [Bug #9041] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/