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

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

[Octave-bug-tracker] [bug #40360] Incorrect test for unordered_map in co


From: anonymous
Subject: [Octave-bug-tracker] [bug #40360] Incorrect test for unordered_map in configure.ac
Date: Thu, 24 Oct 2013 09:58:40 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.71 (KHTML, like Gecko) Version/7.0 Safari/537.71

URL:
  <http://savannah.gnu.org/bugs/?40360>

                 Summary: Incorrect test for unordered_map in configure.ac
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 24 Oct 2013 09:58:39 AM UTC
                Category: Configuration and Build System
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: Dan Gordon
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: Mac OS

    _______________________________________________________

Details:

I ran into problems building Octave using homebrew on mac osx 10.9. The
problem boiled down to the fact that the test for unordered map in
configure.ac omitted the template parameters, and thus the test failed for the
wrong reason. Rather than describing the problem in detail, I'll submit the
following patch for configure.ac, which should hopefully be self explanatory.

Thanks!


--- ../octave-3.6.4.ORIG/configure.ac   2013-10-24 20:16:51.000000000 +1100
+++ configure.ac        2013-10-24 20:43:28.000000000 +1100
@@ -1605,7 +1605,7 @@
     AC_LANG_PROGRAM([
       #include <unordered_map>
     ], [
-      std::unordered_map m;
+      std::unordered_map<char, char> m;
     ])], [], [unordered_map_requires_tr1_namespace=yes])
 elif test "$ac_cv_header_tr1_unordered_map" = "yes"; then
   unordered_map_requires_tr1_namespace=yes





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40360>

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




reply via email to

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