When faced with a global catastrophic disaster will the whole of humanity "tech-up, or die trying"?
Let's face it - we all want to survive, and when faced with an extinction level event, are we capable of going to any lengths to survive? The answer to this question and others like it may very well be YES. The old saying that "the needs of the few outweigh the needs of the many" may never be more applicable then when we are faced with an E.L.E (extinction level event).
The premise is simple: humanity faces a scenario that could force us to overlook all ethical and philosophical considerations, and force us into the creation of highly advanced technologies in an effort to prolong our existence on this planet. Technologies that would normally require massive amount of funding and resource allocation suddenly become top priority: everything from AGI to self-replicating nanobots could be created with little considerations outside the "save us" imperative.
Now that you understand the premise of the argument, lets look into a couple of movies that required humanity to band all of it's technology together in an effort to avoid a cataclysm.
To wrap this up, yes! - saving the earth will take priority under such scenarios, but one can only wonder if such events could be used to shape and mold us into someone's idea of a particularly "desired" future... After all, we are operating under the assumption that the singularity is our own doing!