octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #8906] configure check support for c11 and


From: Carnë Draug
Subject: [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11
Date: Sat, 13 Feb 2016 01:33:24 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.6.0

Follow-up Comment #4, patch #8906 (project octave):

A question on design of such macro. Is something like this acceptable?


AX_CXX_COMPILE_STDCXX([11], [ext], [optional])
if test x$ac_success = xyes; then
  ## CXXFLAGS will already have $switch
  XTRA_CXXFLAGS="$XTRA_CXXFLAGS $switch"
fi


I don't really like it because it relies on undocumented internals of the
macro, but it's short, simple, and allow us to retain the existing macro from
the autoconf archive. And maybe it's ok in a macro language.

If not, then I'm not sure how to do it. Such macro needs to try several flags
and I'm not sure how to return which is the right flag to use. I can see that
no existing macro changes XTRA_CXXFLAGS so I'm guessing I shouldn't do it here
either.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8906>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]