From 3476264e2183ff5db6bd16cda2941b96e679888f Mon Sep 17 00:00:00 2001 From: dellaert Date: Fri, 24 Jan 2014 16:06:48 -0500 Subject: [PATCH 01/40] Added test scaffold and prototype --- .cproject | 356 ++++++++++++----------- gtsam/navigation/GPSFactor.h | 139 +++++++++ gtsam/navigation/tests/testGPSFactor.cpp | 41 +++ 3 files changed, 367 insertions(+), 169 deletions(-) create mode 100644 gtsam/navigation/GPSFactor.h create mode 100644 gtsam/navigation/tests/testGPSFactor.cpp diff --git a/.cproject b/.cproject index 280ac750d..3cddd9134 100644 --- a/.cproject +++ b/.cproject @@ -365,38 +365,6 @@ true true - - make - -j2 - all - true - true - true - - - make - -j2 - testNonlinearConstraint.run - true - true - true - - - make - -j2 - testLieConfig.run - true - true - true - - - make - -j2 - testConstraintOptimizer.run - true - true - true - make -j5 @@ -493,6 +461,38 @@ true true + + make + -j2 + all + true + true + true + + + make + -j2 + testNonlinearConstraint.run + true + true + true + + + make + -j2 + testLieConfig.run + true + true + true + + + make + -j2 + testConstraintOptimizer.run + true + true + true + make -j2 @@ -567,6 +567,7 @@ make + tests/testBayesTree.run true false @@ -574,6 +575,7 @@ make + testBinaryBayesNet.run true false @@ -621,6 +623,7 @@ make + testSymbolicBayesNet.run true false @@ -628,6 +631,7 @@ make + tests/testSymbolicFactor.run true false @@ -635,6 +639,7 @@ make + testSymbolicFactorGraph.run true false @@ -650,19 +655,12 @@ make + tests/testBayesTree true false true - - make - -j2 - testVSLAMGraph - true - true - true - make -j2 @@ -745,7 +743,6 @@ make - testSimulated2DOriented.run true false @@ -785,7 +782,6 @@ make - testSimulated2D.run true false @@ -793,7 +789,6 @@ make - testSimulated3D.run true false @@ -807,6 +802,14 @@ true true + + make + -j2 + testVSLAMGraph + true + true + true + make -j2 @@ -846,6 +849,21 @@ false true + + make + -j2 + check + true + true + true + + + make + tests/testGaussianISAM2 + true + false + true + make -j5 @@ -984,6 +1002,7 @@ make + testGraph.run true false @@ -991,6 +1010,7 @@ make + testJunctionTree.run true false @@ -998,6 +1018,7 @@ make + testSymbolicBayesNetB.run true false @@ -1059,22 +1080,6 @@ true true - - make - -j2 - check - true - true - true - - - make - - tests/testGaussianISAM2 - true - false - true - make -j2 @@ -1443,14 +1448,6 @@ true true - - make - -j2 - testGaussianFactor.run - true - true - true - make -j2 @@ -1531,66 +1528,10 @@ true true - + make -j2 - check - true - true - true - - - make - -j2 - testClusterTree.run - true - true - true - - - make - -j2 - testJunctionTree.run - true - true - true - - - make - -j2 - tests/testEliminationTree.run - true - true - true - - - make - -j2 - tests/testSymbolicFactor.run - true - true - true - - - make - -j2 - tests/testVariableSlots.run - true - true - true - - - make - -j2 - tests/testConditional.run - true - true - true - - - make - -j2 - tests/testSymbolicFactorGraph.run + testGaussianFactor.run true true true @@ -1691,6 +1632,86 @@ true true + + make + -j2 + check + true + true + true + + + make + -j2 + testClusterTree.run + true + true + true + + + make + -j2 + testJunctionTree.run + true + true + true + + + make + -j2 + tests/testEliminationTree.run + true + true + true + + + make + -j2 + tests/testSymbolicFactor.run + true + true + true + + + make + -j2 + tests/testVariableSlots.run + true + true + true + + + make + -j2 + tests/testConditional.run + true + true + true + + + make + -j2 + tests/testSymbolicFactorGraph.run + true + true + true + + + make + -j2 + all + true + true + true + + + make + -j2 + clean + true + true + true + make -j5 @@ -1755,22 +1776,6 @@ true true - - make - -j2 - all - true - true - true - - - make - -j2 - clean - true - true - true - make -j2 @@ -2212,6 +2217,7 @@ cpack + -G DEB true false @@ -2219,6 +2225,7 @@ cpack + -G RPM true false @@ -2226,6 +2233,7 @@ cpack + -G TGZ true false @@ -2233,6 +2241,7 @@ cpack + --config CPackSourceConfig.cmake true false @@ -2398,6 +2407,14 @@ true true + + make + -j5 + testGPSFactor.run + true + true + true + make -j4 @@ -2406,6 +2423,30 @@ true true + + make + -j2 + check + true + true + true + + + make + -j2 + tests/testSPQRUtil.run + true + true + true + + + make + -j2 + clean + true + true + true + make -j5 @@ -2446,26 +2487,18 @@ true true - + make -j2 - check + tests/testPose2.run true true true - + make -j2 - tests/testSPQRUtil.run - true - true - true - - - make - -j2 - clean + tests/testPose3.run true true true @@ -2560,27 +2593,12 @@ make + testErrors.run true false true - - make - -j2 - tests/testPose2.run - true - true - true - - - make - -j2 - tests/testPose3.run - true - true - true - diff --git a/gtsam/navigation/GPSFactor.h b/gtsam/navigation/GPSFactor.h new file mode 100644 index 000000000..e5d7655fe --- /dev/null +++ b/gtsam/navigation/GPSFactor.h @@ -0,0 +1,139 @@ +/* ---------------------------------------------------------------------------- + + * GTSAM Copyright 2010, Georgia Tech Research Corporation, + * Atlanta, Georgia 30332-0415 + * All Rights Reserved + * Authors: Frank Dellaert, et al. (see THANKS for the full author list) + + * See LICENSE for the license information + + * -------------------------------------------------------------------------- */ + +/** + * @file GPSFactor.h + * @author Frank Dellaert + * @brief Header file for GPS factor + * @date January 22, 2014 + **/ +#pragma once + +#include +#include + +namespace gtsam { + +/// Geodetic coordinates +class Geodetic { +private: + double latitude_, longitude_, altitude_; + Geodetic(double latitude, double longitude, double altitude); +public: + Point3 toNED(const Geodetic& originNED) const { + return Point3(); + } +}; + + +/** + * Prior on position in a local North-East-Down (NED) navigation frame + * @addtogroup Navigation + */ +class GPSFactor: public NoiseModelFactor1 { + +private: + + typedef NoiseModelFactor1 Base; + + Point3 nT_; ///< Position measurement in NED + +public: + + /// shorthand for a smart pointer to a factor + typedef boost::shared_ptr shared_ptr; + + /// Typedef to this class + typedef GPSFactor This; + + /** default constructor - only use for serialization */ + GPSFactor() { + } + + virtual ~GPSFactor() { + } + + /** + * Constructor from a measurement already in local NED + * @param key of the Pose3 variable that will be constrained + * @param gpsInNED measurement already in NED coordinates + * @param model Gaussian noise model + */ + GPSFactor(Key key, const Point3& gpsInNED, const SharedNoiseModel& model) : + Base(model, key), nT_(gpsInNED) { + } + + /** + * Constructor that converts geodetic to local NED + * @param key of the Pose3 variable that will be constrained + * @param gps measurement + * @param originNED the origin of the NED frame + * @param model Gaussian noise model + */ + GPSFactor(Key key, const Geodetic& gps, const Geodetic& originNED, + const SharedNoiseModel& model) : + Base(model, key), nT_(gps.toNED(originNED)) { + } + + /// @return a deep copy of this factor + virtual gtsam::NonlinearFactor::shared_ptr clone() const { + return boost::static_pointer_cast( + gtsam::NonlinearFactor::shared_ptr(new This(*this))); + } + + /** implement functions needed for Testable */ + + /** print */ + virtual void print(const std::string& s, const KeyFormatter& keyFormatter = + DefaultKeyFormatter) const { + std::cout << s << "GPSFactor on " << keyFormatter(this->key()) << "\n"; + nT_.print(" prior mean: "); + this->noiseModel_->print(" noise model: "); + } + + /** equals */ + virtual bool equals(const NonlinearFactor& expected, + double tol = 1e-9) const { + const This* e = dynamic_cast(&expected); + return e != NULL && Base::equals(*e, tol) && this->nT_.equals(e->nT_, tol); + } + + /** implement functions needed to derive from Factor */ + + /** vector of errors */ + Vector evaluateError(const Pose3& p, + boost::optional H = boost::none) const { + if (H) { + H->resize(3, 6); + *H << zeros(3, 3) << eye(3); // TODO make static + } + // manifold equivalent of h(x)-z -> log(z,h(x)) + return nT_.localCoordinates(p.translation()); + } + + const Point3 & measurementInNED() const { + return nT_; + } + +private: + + /** Serialization function */ + friend class boost::serialization::access; + template + void serialize(ARCHIVE & ar, const unsigned int version) { + ar + & boost::serialization::make_nvp("NoiseModelFactor1", + boost::serialization::base_object(*this)); + ar & BOOST_SERIALIZATION_NVP(nT_); + } +}; + +} /// namespace gtsam diff --git a/gtsam/navigation/tests/testGPSFactor.cpp b/gtsam/navigation/tests/testGPSFactor.cpp new file mode 100644 index 000000000..ea8e54aef --- /dev/null +++ b/gtsam/navigation/tests/testGPSFactor.cpp @@ -0,0 +1,41 @@ +/* ---------------------------------------------------------------------------- + + * GTSAM Copyright 2010, Georgia Tech Research Corporation, + * Atlanta, Georgia 30332-0415 + * All Rights Reserved + * Authors: Frank Dellaert, et al. (see THANKS for the full author list) + + * See LICENSE for the license information + + * -------------------------------------------------------------------------- */ + +/** + * @file testGPSFactor.cpp + * @brief Unit test for GPSFactor + * @author Frank Dellaert + * @date January 22, 2014 + */ + +#include +#include +#include + +using namespace std; +using namespace gtsam; + +// ************************************************************************* +TEST( GPSFactor, Constructors ) { + Key key(1); + SharedNoiseModel model = noiseModel::Isotropic::Sigma(3, 0.25); + Point3 gpsInNED; + GPSFactor::Geodetic gps, originNED; + GPSFactor factor1(key, gpsInNED, model); + GPSFactor factor2(key, gps, originNED, model); +} + +// ************************************************************************* +int main() { + TestResult tr; + return TestRegistry::runAllTests(tr); +} +// ************************************************************************* From 8e96f6a0d426fd70f4bb4a963dd789e6e3c3c5fe Mon Sep 17 00:00:00 2001 From: dellaert Date: Fri, 24 Jan 2014 16:18:08 -0500 Subject: [PATCH 02/40] Checked in proposed change to *any* cartesian frame --- gtsam/navigation/GPSFactor.h | 39 +++++------------------- gtsam/navigation/tests/testGPSFactor.cpp | 3 +- 2 files changed, 9 insertions(+), 33 deletions(-) diff --git a/gtsam/navigation/GPSFactor.h b/gtsam/navigation/GPSFactor.h index e5d7655fe..0aaa440fa 100644 --- a/gtsam/navigation/GPSFactor.h +++ b/gtsam/navigation/GPSFactor.h @@ -22,20 +22,8 @@ namespace gtsam { -/// Geodetic coordinates -class Geodetic { -private: - double latitude_, longitude_, altitude_; - Geodetic(double latitude, double longitude, double altitude); -public: - Point3 toNED(const Geodetic& originNED) const { - return Point3(); - } -}; - - /** - * Prior on position in a local North-East-Down (NED) navigation frame + * Prior on position in a local North-East-Down () navigation frame * @addtogroup Navigation */ class GPSFactor: public NoiseModelFactor1 { @@ -44,7 +32,7 @@ private: typedef NoiseModelFactor1 Base; - Point3 nT_; ///< Position measurement in NED + Point3 nT_; ///< Position measurement in public: @@ -62,25 +50,14 @@ public: } /** - * Constructor from a measurement already in local NED + * @brief Constructor from a measurement in a Cartesian frame. + * Use GeographicLib to convert from geographic (latitude and longitude) coordinates * @param key of the Pose3 variable that will be constrained - * @param gpsInNED measurement already in NED coordinates + * @param gpsIn measurement already in coordinates * @param model Gaussian noise model */ - GPSFactor(Key key, const Point3& gpsInNED, const SharedNoiseModel& model) : - Base(model, key), nT_(gpsInNED) { - } - - /** - * Constructor that converts geodetic to local NED - * @param key of the Pose3 variable that will be constrained - * @param gps measurement - * @param originNED the origin of the NED frame - * @param model Gaussian noise model - */ - GPSFactor(Key key, const Geodetic& gps, const Geodetic& originNED, - const SharedNoiseModel& model) : - Base(model, key), nT_(gps.toNED(originNED)) { + GPSFactor(Key key, const Point3& gpsIn, const SharedNoiseModel& model) : + Base(model, key), nT_(gpsIn) { } /// @return a deep copy of this factor @@ -119,7 +96,7 @@ public: return nT_.localCoordinates(p.translation()); } - const Point3 & measurementInNED() const { + const Point3 & measurementIn() const { return nT_; } diff --git a/gtsam/navigation/tests/testGPSFactor.cpp b/gtsam/navigation/tests/testGPSFactor.cpp index ea8e54aef..8c0711887 100644 --- a/gtsam/navigation/tests/testGPSFactor.cpp +++ b/gtsam/navigation/tests/testGPSFactor.cpp @@ -27,10 +27,9 @@ using namespace gtsam; TEST( GPSFactor, Constructors ) { Key key(1); SharedNoiseModel model = noiseModel::Isotropic::Sigma(3, 0.25); + // TODO: convert from GPS to NED Point3 gpsInNED; - GPSFactor::Geodetic gps, originNED; GPSFactor factor1(key, gpsInNED, model); - GPSFactor factor2(key, gps, originNED, model); } // ************************************************************************* From ddaf473e28f90fe837a38a193a597a9497a76f78 Mon Sep 17 00:00:00 2001 From: dellaert Date: Sat, 25 Jan 2014 15:38:59 -0500 Subject: [PATCH 03/40] Added GeographicLib in 3rdparty --- gtsam/3rdparty/CMakeLists.txt | 2 + gtsam/3rdparty/GeographicLib/00README.txt | 143 + gtsam/3rdparty/GeographicLib/AUTHORS | 6 + gtsam/3rdparty/GeographicLib/CMakeLists.txt | 489 + gtsam/3rdparty/GeographicLib/INSTALL | 3 + gtsam/3rdparty/GeographicLib/LICENSE.txt | 23 + gtsam/3rdparty/GeographicLib/Makefile | 1 + gtsam/3rdparty/GeographicLib/Makefile.am | 51 + gtsam/3rdparty/GeographicLib/Makefile.in | 832 + gtsam/3rdparty/GeographicLib/Makefile.mk | 51 + gtsam/3rdparty/GeographicLib/NEWS | 886 + gtsam/3rdparty/GeographicLib/aclocal.m4 | 1018 + .../GeographicLib/cmake/CMakeLists.txt | 52 + .../cmake/FindGeographicLib.cmake | 31 + .../3rdparty/GeographicLib/cmake/Makefile.am | 14 + .../3rdparty/GeographicLib/cmake/Makefile.in | 415 + .../3rdparty/GeographicLib/cmake/Makefile.mk | 13 + .../cmake/project-config-version.cmake.in | 54 + .../cmake/project-config.cmake.in | 82 + gtsam/3rdparty/GeographicLib/config.guess | 1530 ++ gtsam/3rdparty/GeographicLib/config.sub | 1782 ++ gtsam/3rdparty/GeographicLib/configure | 18780 ++++++++++++++++ gtsam/3rdparty/GeographicLib/configure.ac | 96 + gtsam/3rdparty/GeographicLib/depcomp | 707 + .../3rdparty/GeographicLib/doc/CMakeLists.txt | 83 + .../GeographicLib/doc/GeographicLib.dox | 5545 +++++ gtsam/3rdparty/GeographicLib/doc/Makefile.am | 160 + gtsam/3rdparty/GeographicLib/doc/Makefile.in | 561 + gtsam/3rdparty/GeographicLib/doc/Makefile.mk | 30 + .../GeographicLib/doc/NETGeographicLib.dox | 241 + .../GeographicLib/doc/NETGeographicLib1.png | Bin 0 -> 17226 bytes .../GeographicLib/doc/NETGeographicLib2.png | Bin 0 -> 15067 bytes .../GeographicLib/doc/NETGeographicLib3.png | Bin 0 -> 31495 bytes .../3rdparty/GeographicLib/doc/doxyfile-c.in | 1810 ++ .../GeographicLib/doc/doxyfile-for.in | 1810 ++ .../GeographicLib/doc/doxyfile-net.in | 1811 ++ gtsam/3rdparty/GeographicLib/doc/doxyfile.in | 1812 ++ .../doc/gauss-krueger-convergence-scale.png | Bin 0 -> 31802 bytes .../GeographicLib/doc/gauss-krueger-error.png | Bin 0 -> 35661 bytes .../doc/gauss-krueger-graticule-a.png | Bin 0 -> 31702 bytes .../doc/gauss-krueger-graticule.png | Bin 0 -> 33208 bytes .../doc/gauss-schreiber-graticule-a.png | Bin 0 -> 31698 bytes .../3rdparty/GeographicLib/doc/geodesic-c.dox | 118 + .../GeographicLib/doc/geodesic-for.dox | 100 + .../GeographicLib/doc/geodseries30.html | 1717 ++ .../3rdparty/GeographicLib/doc/index.html.in | 24 + .../GeographicLib/doc/meridian-measures.png | Bin 0 -> 7994 bytes .../doc/scripts/GeographicLib/DMS.js | 364 + .../doc/scripts/GeographicLib/Geodesic.js | 1019 + .../doc/scripts/GeographicLib/GeodesicLine.js | 294 + .../doc/scripts/GeographicLib/Interface.js | 257 + .../doc/scripts/GeographicLib/Math.js | 172 + .../doc/scripts/GeographicLib/PolygonArea.js | 241 + .../GeographicLib/doc/scripts/geod-calc.html | 471 + .../doc/scripts/geod-google-instructions.html | 118 + .../doc/scripts/geod-google.html | 221 + .../doc/thompson-tm-graticule-a.png | Bin 0 -> 27085 bytes .../doc/thompson-tm-graticule.png | Bin 0 -> 34398 bytes .../GeographicLib/doc/tmseries30.html | 1046 + .../GeographicLib/doc/utilities.html.in | 24 + .../dotnet/NETGeographicLib/Accumulator.cpp | 99 + .../dotnet/NETGeographicLib/Accumulator.h | 116 + .../NETGeographicLib/AlbersEqualArea.cpp | 186 + .../dotnet/NETGeographicLib/AlbersEqualArea.h | 269 + .../dotnet/NETGeographicLib/AssemblyInfo.cpp | 43 + .../NETGeographicLib/AzimuthalEquidistant.cpp | 110 + .../NETGeographicLib/AzimuthalEquidistant.h | 161 + .../dotnet/NETGeographicLib/CMakeLists.txt | 42 + .../NETGeographicLib/CassiniSoldner.cpp | 134 + .../dotnet/NETGeographicLib/CassiniSoldner.h | 201 + .../NETGeographicLib/CircularEngine.cpp | 83 + .../dotnet/NETGeographicLib/CircularEngine.h | 142 + .../dotnet/NETGeographicLib/DMS.cpp | 130 + .../dotnet/NETGeographicLib/DMS.h | 326 + .../dotnet/NETGeographicLib/Ellipsoid.cpp | 270 + .../dotnet/NETGeographicLib/Ellipsoid.h | 521 + .../NETGeographicLib/EllipticFunction.cpp | 311 + .../NETGeographicLib/EllipticFunction.h | 698 + .../dotnet/NETGeographicLib/GeoCoords.cpp | 243 + .../dotnet/NETGeographicLib/GeoCoords.h | 474 + .../dotnet/NETGeographicLib/Geocentric.cpp | 151 + .../dotnet/NETGeographicLib/Geocentric.h | 227 + .../dotnet/NETGeographicLib/Geodesic.cpp | 483 + .../dotnet/NETGeographicLib/Geodesic.h | 688 + .../dotnet/NETGeographicLib/GeodesicExact.cpp | 489 + .../dotnet/NETGeographicLib/GeodesicExact.h | 603 + .../dotnet/NETGeographicLib/GeodesicLine.cpp | 350 + .../dotnet/NETGeographicLib/GeodesicLine.h | 471 + .../NETGeographicLib/GeodesicLineExact.cpp | 354 + .../NETGeographicLib/GeodesicLineExact.h | 448 + .../dotnet/NETGeographicLib/Geohash.cpp | 84 + .../dotnet/NETGeographicLib/Geohash.h | 139 + .../dotnet/NETGeographicLib/Geoid.cpp | 215 + .../dotnet/NETGeographicLib/Geoid.h | 379 + .../dotnet/NETGeographicLib/Gnomonic.cpp | 116 + .../dotnet/NETGeographicLib/Gnomonic.h | 219 + .../dotnet/NETGeographicLib/GravityCircle.cpp | 178 + .../dotnet/NETGeographicLib/GravityCircle.h | 256 + .../dotnet/NETGeographicLib/GravityModel.cpp | 266 + .../dotnet/NETGeographicLib/GravityModel.h | 513 + .../LambertConformalConic.cpp | 183 + .../NETGeographicLib/LambertConformalConic.h | 263 + .../NETGeographicLib/LocalCartesian.cpp | 180 + .../dotnet/NETGeographicLib/LocalCartesian.h | 250 + .../dotnet/NETGeographicLib/MGRS.cpp | 83 + .../dotnet/NETGeographicLib/MGRS.h | 235 + .../NETGeographicLib/MagneticCircle.cpp | 114 + .../dotnet/NETGeographicLib/MagneticCircle.h | 147 + .../dotnet/NETGeographicLib/MagneticModel.cpp | 234 + .../dotnet/NETGeographicLib/MagneticModel.h | 365 + .../NETGeographicLib/NETGeographicLib.cpp | 49 + .../NETGeographicLib/NETGeographicLib.h | 256 + .../dotnet/NETGeographicLib/NormalGravity.cpp | 174 + .../dotnet/NETGeographicLib/NormalGravity.h | 319 + .../dotnet/NETGeographicLib/OSGB.cpp | 134 + .../dotnet/NETGeographicLib/OSGB.h | 200 + .../NETGeographicLib/PolarStereographic.cpp | 138 + .../NETGeographicLib/PolarStereographic.h | 175 + .../dotnet/NETGeographicLib/PolygonArea.cpp | 128 + .../dotnet/NETGeographicLib/PolygonArea.h | 215 + .../dotnet/NETGeographicLib/ReadMe.txt | 38 + .../SphericalCoefficients.cpp | 30 + .../NETGeographicLib/SphericalCoefficients.h | 140 + .../NETGeographicLib/SphericalHarmonic.cpp | 127 + .../NETGeographicLib/SphericalHarmonic.h | 271 + .../NETGeographicLib/SphericalHarmonic1.cpp | 168 + .../NETGeographicLib/SphericalHarmonic1.h | 226 + .../NETGeographicLib/SphericalHarmonic2.cpp | 186 + .../NETGeographicLib/SphericalHarmonic2.h | 251 + .../NETGeographicLib/TransverseMercator.cpp | 123 + .../NETGeographicLib/TransverseMercator.h | 188 + .../TransverseMercatorExact.cpp | 128 + .../TransverseMercatorExact.h | 236 + .../dotnet/NETGeographicLib/UTMUPS.cpp | 215 + .../dotnet/NETGeographicLib/UTMUPS.h | 398 + .../dotnet/NETGeographicLib/stdafx.cpp | 5 + .../dotnet/NETGeographicLib/stdafx.h | 5 + .../dotnet/Projections/AccumPanel.Designer.cs | 193 + .../dotnet/Projections/AccumPanel.cs | 84 + .../dotnet/Projections/AccumPanel.resx | 120 + .../Projections/AlbersPanel.Designer.cs | 551 + .../dotnet/Projections/AlbersPanel.cs | 570 + .../dotnet/Projections/AlbersPanel.resx | 123 + .../Projections/EllipsoidPanel.Designer.cs | 493 + .../dotnet/Projections/EllipsoidPanel.cs | 117 + .../dotnet/Projections/EllipsoidPanel.resx | 123 + .../Projections/EllipticPanel.Designer.cs | 529 + .../dotnet/Projections/EllipticPanel.cs | 136 + .../dotnet/Projections/EllipticPanel.resx | 123 + .../dotnet/Projections/Form1.Designer.cs | 266 + .../GeographicLib/dotnet/Projections/Form1.cs | 49 + .../dotnet/Projections/Form1.resx | 120 + .../Projections/GeocentricPanel.Designer.cs | 426 + .../dotnet/Projections/GeocentricPanel.cs | 150 + .../dotnet/Projections/GeocentricPanel.resx | 126 + .../Projections/GeodesicPanel.Designer.cs | 484 + .../dotnet/Projections/GeodesicPanel.cs | 633 + .../dotnet/Projections/GeodesicPanel.resx | 123 + .../dotnet/Projections/GeoidPanel.Designer.cs | 441 + .../dotnet/Projections/GeoidPanel.cs | 170 + .../dotnet/Projections/GeoidPanel.resx | 123 + .../Projections/GravityPanel.Designer.cs | 382 + .../dotnet/Projections/GravityPanel.cs | 188 + .../dotnet/Projections/GravityPanel.resx | 123 + .../LocalCartesianPanel.Designer.cs | 520 + .../dotnet/Projections/LocalCartesianPanel.cs | 173 + .../Projections/LocalCartesianPanel.resx | 123 + .../Projections/MagneticPanel.Designer.cs | 411 + .../dotnet/Projections/MagneticPanel.cs | 145 + .../dotnet/Projections/MagneticPanel.resx | 123 + .../dotnet/Projections/MiscPanel.Designer.cs | 212 + .../dotnet/Projections/MiscPanel.cs | 118 + .../dotnet/Projections/MiscPanel.resx | 123 + .../Projections/PolarStereoPanel.Designer.cs | 349 + .../dotnet/Projections/PolarStereoPanel.cs | 130 + .../dotnet/Projections/PolarStereoPanel.resx | 126 + .../dotnet/Projections/PolyPanel.Designer.cs | 389 + .../dotnet/Projections/PolyPanel.cs | 129 + .../dotnet/Projections/PolyPanel.resx | 120 + .../dotnet/Projections/Program.cs | 31 + .../dotnet/Projections/Projections.csproj | 256 + .../Projections/ProjectionsPanel.Designer.cs | 388 + .../dotnet/Projections/ProjectionsPanel.cs | 250 + .../dotnet/Projections/ProjectionsPanel.resx | 123 + .../Projections/Properties/AssemblyInfo.cs | 36 + .../Properties/Resources.Designer.cs | 71 + .../Projections/Properties/Resources.resx | 117 + .../Properties/Settings.Designer.cs | 30 + .../Projections/Properties/Settings.settings | 7 + .../SphericalHarmonicsPanel.Designer.cs | 390 + .../Projections/SphericalHarmonicsPanel.cs | 199 + .../Projections/SphericalHarmonicsPanel.resx | 123 + .../Projections/TypeIIIProjPanel.Designer.cs | 336 + .../dotnet/Projections/TypeIIIProjPanel.cs | 157 + .../dotnet/Projections/TypeIIIProjPanel.resx | 120 + .../dotnet/examples/CS/example-Accumulator.cs | 25 + .../examples/CS/example-AlbersEqualArea.cs | 39 + .../CS/example-AzimuthalEquidistant.cs | 34 + .../examples/CS/example-CassiniSoldner.cs | 34 + .../examples/CS/example-CircularEngine.cs | 30 + .../dotnet/examples/CS/example-DMS.cs | 28 + .../dotnet/examples/CS/example-Ellipsoid.cs | 29 + .../examples/CS/example-EllipticFunction.cs | 39 + .../dotnet/examples/CS/example-GeoCoords.cs | 26 + .../dotnet/examples/CS/example-Geocentric.cs | 37 + .../dotnet/examples/CS/example-Geodesic.cs | 36 + .../examples/CS/example-GeodesicExact.cs | 36 + .../examples/CS/example-GeodesicLine.cs | 50 + .../examples/CS/example-GeodesicLineExact.cs | 46 + .../dotnet/examples/CS/example-Geohash.cs | 37 + .../dotnet/examples/CS/example-Geoid.cs | 25 + .../dotnet/examples/CS/example-Gnomonic.cs | 34 + .../examples/CS/example-GravityCircle.cs | 40 + .../examples/CS/example-GravityModel.cs | 22 + .../CS/example-LambertConformalConic.cs | 48 + .../examples/CS/example-LocalCartesian.cs | 34 + .../dotnet/examples/CS/example-MGRS.cs | 40 + .../examples/CS/example-MagneticCircle.cs | 40 + .../examples/CS/example-MagneticModel.cs | 24 + .../examples/CS/example-NormalGravity.cs | 22 + .../dotnet/examples/CS/example-OSGB.cs | 39 + .../examples/CS/example-PolarStereographic.cs | 33 + .../dotnet/examples/CS/example-PolygonArea.cs | 26 + .../examples/CS/example-SphericalHarmonic.cs | 26 + .../examples/CS/example-SphericalHarmonic1.cs | 28 + .../examples/CS/example-SphericalHarmonic2.cs | 35 + .../examples/CS/example-TransverseMercator.cs | 33 + .../CS/example-TransverseMercatorExact.cs | 33 + .../dotnet/examples/CS/example-UTMUPS.cs | 39 + .../dotnet/examples/ManagedCPP/CMakeLists.txt | 39 + .../ManagedCPP/example-Accumulator.cpp | 21 + .../ManagedCPP/example-AlbersEqualArea.cpp | 35 + .../example-AzimuthalEquidistant.cpp | 30 + .../ManagedCPP/example-CassiniSoldner.cpp | 30 + .../ManagedCPP/example-CircularEngine.cpp | 26 + .../examples/ManagedCPP/example-DMS.cpp | 24 + .../examples/ManagedCPP/example-Ellipsoid.cpp | 25 + .../ManagedCPP/example-EllipticFunction.cpp | 35 + .../examples/ManagedCPP/example-GeoCoords.cpp | 22 + .../ManagedCPP/example-Geocentric.cpp | 33 + .../ManagedCPP/example-Geodesic-small.cpp | 14 + .../examples/ManagedCPP/example-Geodesic.cpp | 32 + .../ManagedCPP/example-GeodesicExact.cpp | 32 + .../ManagedCPP/example-GeodesicLine.cpp | 43 + .../ManagedCPP/example-GeodesicLineExact.cpp | 43 + .../examples/ManagedCPP/example-Geohash.cpp | 33 + .../examples/ManagedCPP/example-Geoid.cpp | 21 + .../examples/ManagedCPP/example-Gnomonic.cpp | 30 + .../ManagedCPP/example-GravityCircle.cpp | 36 + .../ManagedCPP/example-GravityModel.cpp | 18 + .../example-LambertConformalConic.cpp | 44 + .../ManagedCPP/example-LocalCartesian.cpp | 30 + .../examples/ManagedCPP/example-MGRS.cpp | 36 + .../ManagedCPP/example-MagneticCircle.cpp | 36 + .../ManagedCPP/example-MagneticModel.cpp | 20 + .../ManagedCPP/example-NormalGravity.cpp | 18 + .../examples/ManagedCPP/example-OSGB.cpp | 35 + .../ManagedCPP/example-PolarStereographic.cpp | 29 + .../ManagedCPP/example-PolygonArea.cpp | 22 + .../ManagedCPP/example-SphericalHarmonic.cpp | 22 + .../ManagedCPP/example-SphericalHarmonic1.cpp | 24 + .../ManagedCPP/example-SphericalHarmonic2.cpp | 30 + .../ManagedCPP/example-TransverseMercator.cpp | 29 + .../example-TransverseMercatorExact.cpp | 29 + .../examples/ManagedCPP/example-UTMUPS.cpp | 35 + .../dotnet/examples/VB/example-Accumulator.vb | 18 + .../examples/VB/example-AlbersEqualArea.vb | 26 + .../VB/example-AzimuthalEquidistant.vb | 22 + .../examples/VB/example-CassiniSoldner.vb | 22 + .../examples/VB/example-CircularEngine.vb | 23 + .../dotnet/examples/VB/example-DMS.vb | 18 + .../dotnet/examples/VB/example-Ellipsoid.vb | 22 + .../examples/VB/example-EllipticFunction.vb | 32 + .../dotnet/examples/VB/example-GeoCoords.vb | 19 + .../dotnet/examples/VB/example-Geocentric.vb | 25 + .../dotnet/examples/VB/example-Geodesic.vb | 23 + .../examples/VB/example-GeodesicExact.vb | 23 + .../examples/VB/example-GeodesicLine.vb | 34 + .../examples/VB/example-GeodesicLineExact.vb | 34 + .../dotnet/examples/VB/example-Geohash.vb | 25 + .../dotnet/examples/VB/example-Geoid.vb | 17 + .../dotnet/examples/VB/example-Gnomonic.vb | 22 + .../examples/VB/example-GravityCircle.vb | 29 + .../examples/VB/example-GravityModel.vb | 15 + .../VB/example-LambertConformalConic.vb | 35 + .../examples/VB/example-LocalCartesian.vb | 22 + .../dotnet/examples/VB/example-MGRS.vb | 26 + .../examples/VB/example-MagneticCircle.vb | 29 + .../examples/VB/example-MagneticModel.vb | 17 + .../examples/VB/example-NormalGravity.vb | 15 + .../dotnet/examples/VB/example-OSGB.vb | 25 + .../examples/VB/example-PolarStereographic.vb | 21 + .../dotnet/examples/VB/example-PolygonArea.vb | 19 + .../examples/VB/example-SphericalHarmonic.vb | 19 + .../examples/VB/example-SphericalHarmonic1.vb | 21 + .../examples/VB/example-SphericalHarmonic2.vb | 26 + .../examples/VB/example-TransverseMercator.vb | 21 + .../VB/example-TransverseMercatorExact.vb | 21 + .../dotnet/examples/VB/example-UTMUPS.vb | 25 + .../GeographicLib/examples/CMakeLists.txt | 53 + .../GeographicLib/examples/GeoidToGTX.cpp | 103 + .../GeographicLib/examples/Makefile.am | 49 + .../GeographicLib/examples/Makefile.in | 451 + .../examples/example-Accumulator.cpp | 25 + .../examples/example-AlbersEqualArea.cpp | 40 + .../examples/example-AzimuthalEquidistant.cpp | 37 + .../examples/example-CassiniSoldner.cpp | 37 + .../examples/example-CircularEngine.cpp | 35 + .../examples/example-Constants.cpp | 21 + .../GeographicLib/examples/example-DMS.cpp | 29 + .../examples/example-Ellipsoid.cpp | 26 + .../examples/example-EllipticFunction.cpp | 42 + .../examples/example-GeoCoords.cpp | 28 + .../examples/example-Geocentric.cpp | 37 + .../examples/example-Geodesic-small.cpp | 19 + .../examples/example-Geodesic.cpp | 37 + .../examples/example-GeodesicExact.cpp | 37 + .../examples/example-GeodesicLine.cpp | 54 + .../examples/example-GeodesicLineExact.cpp | 54 + .../examples/example-GeographicErr.cpp | 17 + .../examples/example-Geohash.cpp | 42 + .../GeographicLib/examples/example-Geoid.cpp | 26 + .../examples/example-Gnomonic.cpp | 37 + .../examples/example-GravityCircle.cpp | 42 + .../examples/example-GravityModel.cpp | 23 + .../example-LambertConformalConic.cpp | 49 + .../examples/example-LocalCartesian.cpp | 38 + .../GeographicLib/examples/example-MGRS.cpp | 43 + .../examples/example-MagneticCircle.cpp | 42 + .../examples/example-MagneticModel.cpp | 25 + .../GeographicLib/examples/example-Math.cpp | 19 + .../examples/example-NormalGravity.cpp | 27 + .../GeographicLib/examples/example-OSGB.cpp | 45 + .../examples/example-PolarStereographic.cpp | 39 + .../examples/example-PolygonArea.cpp | 30 + .../examples/example-SphericalEngine.cpp | 33 + .../examples/example-SphericalHarmonic.cpp | 30 + .../examples/example-SphericalHarmonic1.cpp | 34 + .../examples/example-SphericalHarmonic2.cpp | 38 + .../examples/example-TransverseMercator.cpp | 38 + .../example-TransverseMercatorExact.cpp | 39 + .../GeographicLib/examples/example-UTMUPS.cpp | 43 + .../examples/example-Utility.cpp | 22 + .../include/GeographicLib/Accumulator.hpp | 172 + .../include/GeographicLib/AlbersEqualArea.hpp | 330 + .../GeographicLib/AzimuthalEquidistant.hpp | 152 + .../include/GeographicLib/CMakeLists.txt | 6 + .../include/GeographicLib/CassiniSoldner.hpp | 239 + .../include/GeographicLib/CircularEngine.hpp | 204 + .../include/GeographicLib/Config-ac.h.in | 107 + .../include/GeographicLib/Config.h | 12 + .../include/GeographicLib/Config.h.in | 25 + .../include/GeographicLib/Constants.hpp | 323 + .../include/GeographicLib/DMS.hpp | 368 + .../include/GeographicLib/Ellipsoid.hpp | 537 + .../GeographicLib/EllipticFunction.hpp | 709 + .../include/GeographicLib/GeoCoords.hpp | 541 + .../include/GeographicLib/Geocentric.hpp | 275 + .../include/GeographicLib/Geodesic.hpp | 895 + .../include/GeographicLib/GeodesicExact.hpp | 783 + .../include/GeographicLib/GeodesicLine.hpp | 598 + .../GeographicLib/GeodesicLineExact.hpp | 573 + .../include/GeographicLib/Geohash.hpp | 179 + .../include/GeographicLib/Geoid.hpp | 510 + .../include/GeographicLib/Gnomonic.hpp | 222 + .../include/GeographicLib/GravityCircle.hpp | 301 + .../include/GeographicLib/GravityModel.hpp | 519 + .../GeographicLib/LambertConformalConic.hpp | 332 + .../include/GeographicLib/LocalCartesian.hpp | 249 + .../include/GeographicLib/MGRS.hpp | 329 + .../include/GeographicLib/MagneticCircle.hpp | 156 + .../include/GeographicLib/MagneticModel.hpp | 343 + .../include/GeographicLib/Math.hpp | 528 + .../include/GeographicLib/NormalGravity.hpp | 313 + .../include/GeographicLib/OSGB.hpp | 247 + .../GeographicLib/PolarStereographic.hpp | 174 + .../include/GeographicLib/PolygonArea.hpp | 247 + .../include/GeographicLib/SphericalEngine.hpp | 372 + .../GeographicLib/SphericalHarmonic.hpp | 350 + .../GeographicLib/SphericalHarmonic1.hpp | 283 + .../GeographicLib/SphericalHarmonic2.hpp | 316 + .../GeographicLib/TransverseMercator.hpp | 212 + .../GeographicLib/TransverseMercatorExact.hpp | 278 + .../include/GeographicLib/UTMUPS.hpp | 415 + .../include/GeographicLib/Utility.hpp | 521 + .../GeographicLib/include/Makefile.am | 50 + .../GeographicLib/include/Makefile.in | 569 + .../GeographicLib/include/Makefile.mk | 57 + gtsam/3rdparty/GeographicLib/install-sh | 527 + gtsam/3rdparty/GeographicLib/java/README.txt | 21 + .../GeographicLib/java/direct/pom.xml | 87 + .../java/direct/src/main/java/Direct.java | 27 + .../GeographicLib/java/inverse/pom.xml | 87 + .../java/inverse/src/main/java/Inverse.java | 27 + .../GeographicLib/java/planimeter/pom.xml | 87 + .../planimeter/src/main/java/Planimeter.java | 28 + gtsam/3rdparty/GeographicLib/java/pom.xml | 90 + .../net/sf/geographiclib/Accumulator.java | 113 + .../java/net/sf/geographiclib/Constants.java | 26 + .../java/net/sf/geographiclib/GeoMath.java | 191 + .../java/net/sf/geographiclib/Geodesic.java | 1563 ++ .../net/sf/geographiclib/GeodesicData.java | 78 + .../net/sf/geographiclib/GeodesicLine.java | 632 + .../net/sf/geographiclib/GeodesicMask.java | 77 + .../net/sf/geographiclib/GeographicErr.java | 24 + .../main/java/net/sf/geographiclib/Pair.java | 32 + .../net/sf/geographiclib/PolygonArea.java | 383 + .../net/sf/geographiclib/PolygonResult.java | 39 + .../net/sf/geographiclib/package-info.java | 182 + .../GeographicLib/legacy/C/00README.txt | 27 + .../GeographicLib/legacy/C/CMakeLists.txt | 25 + .../3rdparty/GeographicLib/legacy/C/direct.c | 32 + .../GeographicLib/legacy/C/geodesic.c | 1770 ++ .../GeographicLib/legacy/C/geodesic.h | 745 + .../3rdparty/GeographicLib/legacy/C/inverse.c | 32 + .../GeographicLib/legacy/C/planimeter.c | 37 + .../GeographicLib/legacy/Fortran/00README.txt | 27 + .../legacy/Fortran/CMakeLists.txt | 18 + .../legacy/Fortran/geoddirect.for | 35 + .../GeographicLib/legacy/Fortran/geodesic.for | 2000 ++ .../GeographicLib/legacy/Fortran/geodesic.inc | 35 + .../legacy/Fortran/geodinverse.for | 33 + .../legacy/Fortran/planimeter.for | 36 + gtsam/3rdparty/GeographicLib/ltmain.sh | 9655 ++++++++ gtsam/3rdparty/GeographicLib/m4/libtool.m4 | 7986 +++++++ gtsam/3rdparty/GeographicLib/m4/ltoptions.m4 | 384 + gtsam/3rdparty/GeographicLib/m4/ltsugar.m4 | 123 + gtsam/3rdparty/GeographicLib/m4/ltversion.m4 | 23 + .../3rdparty/GeographicLib/m4/lt~obsolete.m4 | 98 + .../3rdparty/GeographicLib/man/CMakeLists.txt | 94 + .../3rdparty/GeographicLib/man/CartConvert.1 | 235 + .../GeographicLib/man/CartConvert.1.html | 124 + .../GeographicLib/man/CartConvert.pod | 124 + .../GeographicLib/man/CartConvert.usage | 113 + gtsam/3rdparty/GeographicLib/man/ConicProj.1 | 257 + .../GeographicLib/man/ConicProj.1.html | 144 + .../3rdparty/GeographicLib/man/ConicProj.pod | 149 + .../GeographicLib/man/ConicProj.usage | 130 + gtsam/3rdparty/GeographicLib/man/GeoConvert.1 | 438 + .../GeographicLib/man/GeoConvert.1.html | 326 + .../3rdparty/GeographicLib/man/GeoConvert.pod | 339 + .../GeographicLib/man/GeoConvert.usage | 282 + gtsam/3rdparty/GeographicLib/man/GeodSolve.1 | 427 + .../GeographicLib/man/GeodSolve.1.html | 288 + .../3rdparty/GeographicLib/man/GeodSolve.pod | 342 + .../GeographicLib/man/GeodSolve.usage | 285 + .../3rdparty/GeographicLib/man/GeodesicProj.1 | 251 + .../GeographicLib/man/GeodesicProj.1.html | 140 + .../GeographicLib/man/GeodesicProj.pod | 143 + .../GeographicLib/man/GeodesicProj.usage | 127 + gtsam/3rdparty/GeographicLib/man/GeoidEval.1 | 395 + .../GeographicLib/man/GeoidEval.1.html | 286 + .../3rdparty/GeographicLib/man/GeoidEval.pod | 307 + .../GeographicLib/man/GeoidEval.usage | 260 + gtsam/3rdparty/GeographicLib/man/Gravity.1 | 330 + .../3rdparty/GeographicLib/man/Gravity.1.html | 209 + gtsam/3rdparty/GeographicLib/man/Gravity.pod | 232 + .../3rdparty/GeographicLib/man/Gravity.usage | 195 + .../GeographicLib/man/MagneticField.1 | 343 + .../GeographicLib/man/MagneticField.1.html | 230 + .../GeographicLib/man/MagneticField.pod | 243 + .../GeographicLib/man/MagneticField.usage | 206 + gtsam/3rdparty/GeographicLib/man/Makefile.am | 149 + gtsam/3rdparty/GeographicLib/man/Makefile.in | 640 + gtsam/3rdparty/GeographicLib/man/Makefile.mk | 28 + gtsam/3rdparty/GeographicLib/man/Planimeter.1 | 285 + .../GeographicLib/man/Planimeter.1.html | 161 + .../3rdparty/GeographicLib/man/Planimeter.pod | 173 + .../GeographicLib/man/Planimeter.usage | 163 + .../man/TransverseMercatorProj.1 | 262 + .../man/TransverseMercatorProj.1.html | 150 + .../man/TransverseMercatorProj.pod | 156 + .../man/TransverseMercatorProj.usage | 136 + .../GeographicLib/man/dummy.1.html.in | 23 + gtsam/3rdparty/GeographicLib/man/dummy.1.in | 12 + .../3rdparty/GeographicLib/man/dummy.usage.in | 8 + gtsam/3rdparty/GeographicLib/man/makeusage.sh | 37 + .../GeographicLib/matlab/CMakeLists.txt | 89 + .../3rdparty/GeographicLib/matlab/Makefile.am | 95 + .../3rdparty/GeographicLib/matlab/Makefile.in | 495 + .../3rdparty/GeographicLib/matlab/Makefile.mk | 32 + .../GeographicLib/matlab/cassini_fwd.m | 92 + .../GeographicLib/matlab/cassini_inv.m | 46 + .../GeographicLib/matlab/defaultellipsoid.m | 16 + .../3rdparty/GeographicLib/matlab/ecc2flat.m | 10 + .../GeographicLib/matlab/eqdazim_fwd.m | 61 + .../GeographicLib/matlab/eqdazim_inv.m | 59 + .../3rdparty/GeographicLib/matlab/flat2ecc.m | 9 + .../matlab/geocentricforward.cpp | 92 + .../GeographicLib/matlab/geocentricforward.m | 36 + .../matlab/geocentricreverse.cpp | 86 + .../GeographicLib/matlab/geocentricreverse.m | 37 + .../3rdparty/GeographicLib/matlab/geodarea.m | 129 + .../GeographicLib/matlab/geoddistance.m | 515 + gtsam/3rdparty/GeographicLib/matlab/geoddoc.m | 198 + .../GeographicLib/matlab/geodesicdirect.cpp | 103 + .../GeographicLib/matlab/geodesicdirect.m | 51 + .../GeographicLib/matlab/geodesicinverse.cpp | 102 + .../GeographicLib/matlab/geodesicinverse.m | 51 + .../GeographicLib/matlab/geodesicline.cpp | 112 + .../GeographicLib/matlab/geodesicline.m | 54 + .../3rdparty/GeographicLib/matlab/geodproj.m | 139 + .../GeographicLib/matlab/geodreckon.m | 250 + .../matlab/geographiclibinterface.m | 79 + .../GeographicLib/matlab/geoidheight.cpp | 108 + .../GeographicLib/matlab/geoidheight.m | 38 + .../GeographicLib/matlab/gnomonic_fwd.m | 70 + .../GeographicLib/matlab/gnomonic_inv.m | 98 + .../matlab/localcartesianforward.cpp | 107 + .../matlab/localcartesianforward.m | 41 + .../matlab/localcartesianreverse.cpp | 101 + .../matlab/localcartesianreverse.m | 41 + .../GeographicLib/matlab/mgrsforward.cpp | 82 + .../GeographicLib/matlab/mgrsforward.m | 31 + .../GeographicLib/matlab/mgrsreverse.cpp | 76 + .../GeographicLib/matlab/mgrsreverse.m | 36 + .../GeographicLib/matlab/polygonarea.cpp | 88 + .../GeographicLib/matlab/polygonarea.m | 47 + .../GeographicLib/matlab/private/A1m1f.m | 10 + .../GeographicLib/matlab/private/A2m1f.m | 10 + .../GeographicLib/matlab/private/A3coeff.m | 15 + .../GeographicLib/matlab/private/A3f.m | 12 + .../GeographicLib/matlab/private/AngDiff.m | 13 + .../matlab/private/AngNormalize.m | 9 + .../matlab/private/AngNormalize2.m | 8 + .../GeographicLib/matlab/private/AngRound.m | 11 + .../GeographicLib/matlab/private/C1f.m | 22 + .../GeographicLib/matlab/private/C1pf.m | 22 + .../GeographicLib/matlab/private/C2f.m | 22 + .../GeographicLib/matlab/private/C3coeff.m | 25 + .../GeographicLib/matlab/private/C3f.m | 25 + .../GeographicLib/matlab/private/C4coeff.m | 32 + .../GeographicLib/matlab/private/C4f.m | 26 + .../GeographicLib/matlab/private/SinCosNorm.m | 10 + .../matlab/private/SinCosSeries.m | 35 + .../GeographicLib/matlab/private/atanhee.m | 15 + .../GeographicLib/matlab/private/cbrt.m | 9 + .../GeographicLib/matlab/private/cvmgt.m | 23 + .../GeographicLib/matlab/private/sumx.m | 14 + .../GeographicLib/matlab/private/swap.m | 8 + .../GeographicLib/matlab/tranmerc_fwd.m | 170 + .../GeographicLib/matlab/tranmerc_inv.m | 185 + gtsam/3rdparty/GeographicLib/matlab/utm_fwd.m | 50 + gtsam/3rdparty/GeographicLib/matlab/utm_inv.m | 51 + .../GeographicLib/matlab/utmupsforward.cpp | 94 + .../GeographicLib/matlab/utmupsforward.m | 40 + .../GeographicLib/matlab/utmupsreverse.cpp | 77 + .../GeographicLib/matlab/utmupsreverse.m | 33 + .../3rdparty/GeographicLib/maxima/Makefile.mk | 11 + .../3rdparty/GeographicLib/maxima/ellint.mac | 281 + gtsam/3rdparty/GeographicLib/maxima/geod.mac | 584 + .../GeographicLib/maxima/geodesic.mac | 1195 + gtsam/3rdparty/GeographicLib/maxima/tm.mac | 399 + .../GeographicLib/maxima/tmseries.mac | 211 + gtsam/3rdparty/GeographicLib/missing | 330 + .../3rdparty/GeographicLib/python/MANIFEST.in | 1 + .../3rdparty/GeographicLib/python/Makefile.am | 31 + .../3rdparty/GeographicLib/python/Makefile.in | 432 + .../3rdparty/GeographicLib/python/Makefile.mk | 23 + .../3rdparty/GeographicLib/python/README.txt | 12 + .../python/geographiclib/CMakeLists.txt | 21 + .../python/geographiclib/__init__.py | 1 + .../python/geographiclib/accumulator.py | 81 + .../python/geographiclib/constants.py | 22 + .../python/geographiclib/geodesic.py | 1186 + .../geographiclib/geodesiccapability.py | 38 + .../python/geographiclib/geodesicline.py | 380 + .../python/geographiclib/geomath.py | 121 + .../python/geographiclib/polygonarea.py | 231 + gtsam/3rdparty/GeographicLib/python/setup.py | 37 + .../GeographicLib/src/Accumulator.cpp | 23 + .../GeographicLib/src/AlbersEqualArea.cpp | 434 + .../src/AzimuthalEquidistant.cpp | 41 + .../3rdparty/GeographicLib/src/CMakeLists.txt | 85 + .../GeographicLib/src/CassiniSoldner.cpp | 91 + .../GeographicLib/src/CircularEngine.cpp | 96 + gtsam/3rdparty/GeographicLib/src/DMS.cpp | 342 + .../3rdparty/GeographicLib/src/Ellipsoid.cpp | 123 + .../GeographicLib/src/EllipticFunction.cpp | 524 + .../3rdparty/GeographicLib/src/GeoCoords.cpp | 170 + .../3rdparty/GeographicLib/src/Geocentric.cpp | 176 + gtsam/3rdparty/GeographicLib/src/Geodesic.cpp | 1505 ++ .../GeographicLib/src/GeodesicExact.cpp | 7954 +++++++ .../GeographicLib/src/GeodesicLine.cpp | 289 + .../GeographicLib/src/GeodesicLineExact.cpp | 252 + .../3rdparty/GeographicLib/src/Geographic.pro | 75 + gtsam/3rdparty/GeographicLib/src/Geohash.cpp | 99 + gtsam/3rdparty/GeographicLib/src/Geoid.cpp | 541 + gtsam/3rdparty/GeographicLib/src/Gnomonic.cpp | 80 + .../GeographicLib/src/GravityCircle.cpp | 129 + .../GeographicLib/src/GravityModel.cpp | 359 + .../src/LambertConformalConic.cpp | 474 + .../GeographicLib/src/LocalCartesian.cpp | 65 + gtsam/3rdparty/GeographicLib/src/MGRS.cpp | 383 + .../GeographicLib/src/MagneticCircle.cpp | 49 + .../GeographicLib/src/MagneticModel.cpp | 252 + gtsam/3rdparty/GeographicLib/src/Makefile.am | 96 + gtsam/3rdparty/GeographicLib/src/Makefile.in | 731 + gtsam/3rdparty/GeographicLib/src/Makefile.mk | 136 + .../GeographicLib/src/NormalGravity.cpp | 234 + gtsam/3rdparty/GeographicLib/src/OSGB.cpp | 158 + .../GeographicLib/src/PolarStereographic.cpp | 133 + .../GeographicLib/src/PolygonArea.cpp | 189 + .../GeographicLib/src/SphericalEngine.cpp | 481 + .../GeographicLib/src/TransverseMercator.cpp | 560 + .../src/TransverseMercatorExact.cpp | 491 + gtsam/3rdparty/GeographicLib/src/UTMUPS.cpp | 303 + gtsam/3rdparty/GeographicLib/src/Utility.cpp | 42 + .../GeographicLib/tools/CMakeLists.txt | 301 + .../GeographicLib/tools/CartConvert.cpp | 207 + .../GeographicLib/tools/ConicProj.cpp | 247 + .../GeographicLib/tools/GeoConvert.cpp | 233 + .../GeographicLib/tools/GeodSolve.cpp | 335 + .../GeographicLib/tools/GeodesicProj.cpp | 227 + .../GeographicLib/tools/GeoidEval.cpp | 301 + .../3rdparty/GeographicLib/tools/Gravity.cpp | 319 + .../GeographicLib/tools/MagneticField.cpp | 349 + .../3rdparty/GeographicLib/tools/Makefile.am | 153 + .../3rdparty/GeographicLib/tools/Makefile.in | 882 + .../3rdparty/GeographicLib/tools/Makefile.mk | 95 + .../GeographicLib/tools/Planimeter.cpp | 198 + .../tools/TransverseMercatorProj.cpp | 236 + .../tools/geographiclib-get-geoids.sh | 205 + .../tools/geographiclib-get-gravity.sh | 178 + .../tools/geographiclib-get-magnetic.sh | 175 + .../windows/CartConvert-vc10.vcxproj | 163 + .../windows/CartConvert-vc8.vcproj | 340 + .../windows/CartConvert-vc9.vcproj | 351 + .../windows/ConicProj-vc10.vcxproj | 163 + .../windows/ConicProj-vc8.vcproj | 340 + .../windows/ConicProj-vc9.vcproj | 351 + .../windows/GeoConvert-vc10.vcxproj | 163 + .../windows/GeoConvert-vc8.vcproj | 340 + .../windows/GeoConvert-vc9.vcproj | 351 + .../windows/GeodSolve-vc10.vcxproj | 163 + .../windows/GeodSolve-vc8.vcproj | 340 + .../windows/GeodSolve-vc9.vcproj | 351 + .../windows/GeodesicProj-vc10.vcxproj | 163 + .../windows/GeodesicProj-vc8.vcproj | 340 + .../windows/GeodesicProj-vc9.vcproj | 351 + .../windows/Geographic-vc10.vcxproj | 221 + .../windows/Geographic-vc8.vcproj | 567 + .../windows/Geographic-vc9.vcproj | 570 + .../windows/GeographicLib-vc10.sln | 208 + .../windows/GeographicLib-vc8.sln | 164 + .../windows/GeographicLib-vc9.sln | 164 + .../windows/GeoidEval-vc10.vcxproj | 163 + .../windows/GeoidEval-vc8.vcproj | 340 + .../windows/GeoidEval-vc9.vcproj | 351 + .../windows/Gravity-vc10.vcxproj | 163 + .../GeographicLib/windows/Gravity-vc8.vcproj | 340 + .../GeographicLib/windows/Gravity-vc9.vcproj | 351 + .../windows/MagneticField-vc10.vcxproj | 163 + .../windows/MagneticField-vc8.vcproj | 340 + .../windows/MagneticField-vc9.vcproj | 351 + .../windows/NETGeographic-vc10.vcxproj | 237 + .../windows/Planimeter-vc10.vcxproj | 163 + .../windows/Planimeter-vc8.vcproj | 340 + .../windows/Planimeter-vc9.vcproj | 351 + .../TransverseMercatorProj-vc10.vcxproj | 163 + .../windows/TransverseMercatorProj-vc8.vcproj | 340 + .../windows/TransverseMercatorProj-vc9.vcproj | 351 + 662 files changed, 179623 insertions(+) create mode 100644 gtsam/3rdparty/GeographicLib/00README.txt create mode 100644 gtsam/3rdparty/GeographicLib/AUTHORS create mode 100644 gtsam/3rdparty/GeographicLib/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/INSTALL create mode 100644 gtsam/3rdparty/GeographicLib/LICENSE.txt create mode 100644 gtsam/3rdparty/GeographicLib/Makefile create mode 100644 gtsam/3rdparty/GeographicLib/Makefile.am create mode 100644 gtsam/3rdparty/GeographicLib/Makefile.in create mode 100644 gtsam/3rdparty/GeographicLib/Makefile.mk create mode 100644 gtsam/3rdparty/GeographicLib/NEWS create mode 100644 gtsam/3rdparty/GeographicLib/aclocal.m4 create mode 100644 gtsam/3rdparty/GeographicLib/cmake/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/cmake/FindGeographicLib.cmake create mode 100644 gtsam/3rdparty/GeographicLib/cmake/Makefile.am create mode 100644 gtsam/3rdparty/GeographicLib/cmake/Makefile.in create mode 100644 gtsam/3rdparty/GeographicLib/cmake/Makefile.mk create mode 100644 gtsam/3rdparty/GeographicLib/cmake/project-config-version.cmake.in create mode 100644 gtsam/3rdparty/GeographicLib/cmake/project-config.cmake.in create mode 100755 gtsam/3rdparty/GeographicLib/config.guess create mode 100755 gtsam/3rdparty/GeographicLib/config.sub create mode 100755 gtsam/3rdparty/GeographicLib/configure create mode 100644 gtsam/3rdparty/GeographicLib/configure.ac create mode 100755 gtsam/3rdparty/GeographicLib/depcomp create mode 100644 gtsam/3rdparty/GeographicLib/doc/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/doc/GeographicLib.dox create mode 100644 gtsam/3rdparty/GeographicLib/doc/Makefile.am create mode 100644 gtsam/3rdparty/GeographicLib/doc/Makefile.in create mode 100644 gtsam/3rdparty/GeographicLib/doc/Makefile.mk create mode 100644 gtsam/3rdparty/GeographicLib/doc/NETGeographicLib.dox create mode 100644 gtsam/3rdparty/GeographicLib/doc/NETGeographicLib1.png create mode 100644 gtsam/3rdparty/GeographicLib/doc/NETGeographicLib2.png create mode 100644 gtsam/3rdparty/GeographicLib/doc/NETGeographicLib3.png create mode 100644 gtsam/3rdparty/GeographicLib/doc/doxyfile-c.in create mode 100644 gtsam/3rdparty/GeographicLib/doc/doxyfile-for.in create mode 100644 gtsam/3rdparty/GeographicLib/doc/doxyfile-net.in create mode 100644 gtsam/3rdparty/GeographicLib/doc/doxyfile.in create mode 100644 gtsam/3rdparty/GeographicLib/doc/gauss-krueger-convergence-scale.png create mode 100644 gtsam/3rdparty/GeographicLib/doc/gauss-krueger-error.png create mode 100644 gtsam/3rdparty/GeographicLib/doc/gauss-krueger-graticule-a.png create mode 100644 gtsam/3rdparty/GeographicLib/doc/gauss-krueger-graticule.png create mode 100644 gtsam/3rdparty/GeographicLib/doc/gauss-schreiber-graticule-a.png create mode 100644 gtsam/3rdparty/GeographicLib/doc/geodesic-c.dox create mode 100644 gtsam/3rdparty/GeographicLib/doc/geodesic-for.dox create mode 100644 gtsam/3rdparty/GeographicLib/doc/geodseries30.html create mode 100644 gtsam/3rdparty/GeographicLib/doc/index.html.in create mode 100644 gtsam/3rdparty/GeographicLib/doc/meridian-measures.png create mode 100644 gtsam/3rdparty/GeographicLib/doc/scripts/GeographicLib/DMS.js create mode 100644 gtsam/3rdparty/GeographicLib/doc/scripts/GeographicLib/Geodesic.js create mode 100644 gtsam/3rdparty/GeographicLib/doc/scripts/GeographicLib/GeodesicLine.js create mode 100644 gtsam/3rdparty/GeographicLib/doc/scripts/GeographicLib/Interface.js create mode 100644 gtsam/3rdparty/GeographicLib/doc/scripts/GeographicLib/Math.js create mode 100644 gtsam/3rdparty/GeographicLib/doc/scripts/GeographicLib/PolygonArea.js create mode 100644 gtsam/3rdparty/GeographicLib/doc/scripts/geod-calc.html create mode 100644 gtsam/3rdparty/GeographicLib/doc/scripts/geod-google-instructions.html create mode 100644 gtsam/3rdparty/GeographicLib/doc/scripts/geod-google.html create mode 100644 gtsam/3rdparty/GeographicLib/doc/thompson-tm-graticule-a.png create mode 100644 gtsam/3rdparty/GeographicLib/doc/thompson-tm-graticule.png create mode 100644 gtsam/3rdparty/GeographicLib/doc/tmseries30.html create mode 100644 gtsam/3rdparty/GeographicLib/doc/utilities.html.in create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Accumulator.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Accumulator.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/AlbersEqualArea.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/AlbersEqualArea.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/AssemblyInfo.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/AzimuthalEquidistant.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/AzimuthalEquidistant.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/CassiniSoldner.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/CassiniSoldner.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/CircularEngine.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/CircularEngine.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/DMS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/DMS.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Ellipsoid.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Ellipsoid.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/EllipticFunction.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/EllipticFunction.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GeoCoords.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GeoCoords.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Geocentric.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Geocentric.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Geodesic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Geodesic.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GeodesicExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GeodesicExact.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GeodesicLine.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GeodesicLine.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GeodesicLineExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GeodesicLineExact.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Geohash.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Geohash.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Geoid.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Geoid.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Gnomonic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/Gnomonic.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GravityCircle.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GravityCircle.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GravityModel.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/GravityModel.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/LambertConformalConic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/LambertConformalConic.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/LocalCartesian.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/LocalCartesian.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/MGRS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/MGRS.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/MagneticCircle.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/MagneticCircle.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/MagneticModel.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/MagneticModel.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/NETGeographicLib.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/NETGeographicLib.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/NormalGravity.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/NormalGravity.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/OSGB.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/OSGB.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/PolarStereographic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/PolarStereographic.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/PolygonArea.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/PolygonArea.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/ReadMe.txt create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/SphericalCoefficients.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/SphericalCoefficients.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/SphericalHarmonic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/SphericalHarmonic.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/SphericalHarmonic1.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/SphericalHarmonic1.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/SphericalHarmonic2.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/SphericalHarmonic2.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/TransverseMercator.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/TransverseMercator.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/TransverseMercatorExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/TransverseMercatorExact.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/UTMUPS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/UTMUPS.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/stdafx.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/stdafx.h create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/AccumPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/AccumPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/AccumPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/AlbersPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/AlbersPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/AlbersPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/EllipsoidPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/EllipsoidPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/EllipsoidPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/EllipticPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/EllipticPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/EllipticPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/Form1.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/Form1.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/Form1.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GeocentricPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GeocentricPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GeocentricPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GeodesicPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GeodesicPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GeodesicPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GeoidPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GeoidPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GeoidPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GravityPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GravityPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/GravityPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/LocalCartesianPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/LocalCartesianPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/LocalCartesianPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/MagneticPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/MagneticPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/MagneticPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/MiscPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/MiscPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/MiscPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/PolarStereoPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/PolarStereoPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/PolarStereoPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/PolyPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/PolyPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/PolyPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/Program.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/Projections.csproj create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/ProjectionsPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/ProjectionsPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/ProjectionsPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/Properties/AssemblyInfo.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/Properties/Resources.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/Properties/Resources.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/Properties/Settings.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/Properties/Settings.settings create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/SphericalHarmonicsPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/SphericalHarmonicsPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/SphericalHarmonicsPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/TypeIIIProjPanel.Designer.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/TypeIIIProjPanel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/Projections/TypeIIIProjPanel.resx create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-Accumulator.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-AlbersEqualArea.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-AzimuthalEquidistant.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-CassiniSoldner.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-CircularEngine.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-DMS.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-Ellipsoid.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-EllipticFunction.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-GeoCoords.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-Geocentric.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-Geodesic.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-GeodesicExact.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-GeodesicLine.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-GeodesicLineExact.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-Geohash.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-Geoid.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-Gnomonic.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-GravityCircle.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-GravityModel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-LambertConformalConic.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-LocalCartesian.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-MGRS.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-MagneticCircle.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-MagneticModel.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-NormalGravity.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-OSGB.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-PolarStereographic.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-PolygonArea.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-SphericalHarmonic.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-SphericalHarmonic1.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-SphericalHarmonic2.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-TransverseMercator.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-TransverseMercatorExact.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/CS/example-UTMUPS.cs create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-Accumulator.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-AlbersEqualArea.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-AzimuthalEquidistant.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-CassiniSoldner.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-CircularEngine.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-DMS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-Ellipsoid.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-EllipticFunction.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-GeoCoords.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-Geocentric.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-Geodesic-small.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-Geodesic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-GeodesicExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-GeodesicLine.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-GeodesicLineExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-Geohash.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-Geoid.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-Gnomonic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-GravityCircle.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-GravityModel.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-LambertConformalConic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-LocalCartesian.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-MGRS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-MagneticCircle.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-MagneticModel.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-NormalGravity.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-OSGB.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-PolarStereographic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-PolygonArea.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-SphericalHarmonic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-SphericalHarmonic1.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-SphericalHarmonic2.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-TransverseMercator.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-TransverseMercatorExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/ManagedCPP/example-UTMUPS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-Accumulator.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-AlbersEqualArea.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-AzimuthalEquidistant.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-CassiniSoldner.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-CircularEngine.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-DMS.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-Ellipsoid.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-EllipticFunction.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-GeoCoords.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-Geocentric.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-Geodesic.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-GeodesicExact.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-GeodesicLine.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-GeodesicLineExact.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-Geohash.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-Geoid.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-Gnomonic.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-GravityCircle.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-GravityModel.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-LambertConformalConic.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-LocalCartesian.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-MGRS.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-MagneticCircle.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-MagneticModel.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-NormalGravity.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-OSGB.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-PolarStereographic.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-PolygonArea.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-SphericalHarmonic.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-SphericalHarmonic1.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-SphericalHarmonic2.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-TransverseMercator.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-TransverseMercatorExact.vb create mode 100644 gtsam/3rdparty/GeographicLib/dotnet/examples/VB/example-UTMUPS.vb create mode 100644 gtsam/3rdparty/GeographicLib/examples/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/examples/GeoidToGTX.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/Makefile.am create mode 100644 gtsam/3rdparty/GeographicLib/examples/Makefile.in create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-Accumulator.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-AlbersEqualArea.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-AzimuthalEquidistant.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-CassiniSoldner.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-CircularEngine.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-Constants.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-DMS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-Ellipsoid.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-EllipticFunction.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-GeoCoords.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-Geocentric.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-Geodesic-small.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-Geodesic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-GeodesicExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-GeodesicLine.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-GeodesicLineExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-GeographicErr.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-Geohash.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-Geoid.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-Gnomonic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-GravityCircle.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-GravityModel.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-LambertConformalConic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-LocalCartesian.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-MGRS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-MagneticCircle.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-MagneticModel.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-Math.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-NormalGravity.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-OSGB.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-PolarStereographic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-PolygonArea.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-SphericalEngine.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-SphericalHarmonic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-SphericalHarmonic1.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-SphericalHarmonic2.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-TransverseMercator.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-TransverseMercatorExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-UTMUPS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/examples/example-Utility.cpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Accumulator.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/AlbersEqualArea.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/AzimuthalEquidistant.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/CassiniSoldner.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/CircularEngine.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Config-ac.h.in create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Config.h create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Config.h.in create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Constants.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/DMS.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Ellipsoid.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/EllipticFunction.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/GeoCoords.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Geocentric.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Geodesic.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/GeodesicExact.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/GeodesicLine.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/GeodesicLineExact.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Geohash.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Geoid.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Gnomonic.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/GravityCircle.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/GravityModel.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/LambertConformalConic.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/LocalCartesian.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/MGRS.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/MagneticCircle.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/MagneticModel.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Math.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/NormalGravity.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/OSGB.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/PolarStereographic.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/PolygonArea.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/SphericalEngine.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/SphericalHarmonic.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/SphericalHarmonic1.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/SphericalHarmonic2.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/TransverseMercator.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/TransverseMercatorExact.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/UTMUPS.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/GeographicLib/Utility.hpp create mode 100644 gtsam/3rdparty/GeographicLib/include/Makefile.am create mode 100644 gtsam/3rdparty/GeographicLib/include/Makefile.in create mode 100644 gtsam/3rdparty/GeographicLib/include/Makefile.mk create mode 100755 gtsam/3rdparty/GeographicLib/install-sh create mode 100644 gtsam/3rdparty/GeographicLib/java/README.txt create mode 100644 gtsam/3rdparty/GeographicLib/java/direct/pom.xml create mode 100644 gtsam/3rdparty/GeographicLib/java/direct/src/main/java/Direct.java create mode 100644 gtsam/3rdparty/GeographicLib/java/inverse/pom.xml create mode 100644 gtsam/3rdparty/GeographicLib/java/inverse/src/main/java/Inverse.java create mode 100644 gtsam/3rdparty/GeographicLib/java/planimeter/pom.xml create mode 100644 gtsam/3rdparty/GeographicLib/java/planimeter/src/main/java/Planimeter.java create mode 100644 gtsam/3rdparty/GeographicLib/java/pom.xml create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/Accumulator.java create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/Constants.java create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/GeoMath.java create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/Geodesic.java create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/GeodesicData.java create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/GeodesicLine.java create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/GeodesicMask.java create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/GeographicErr.java create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/Pair.java create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/PolygonArea.java create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/PolygonResult.java create mode 100644 gtsam/3rdparty/GeographicLib/java/src/main/java/net/sf/geographiclib/package-info.java create mode 100644 gtsam/3rdparty/GeographicLib/legacy/C/00README.txt create mode 100644 gtsam/3rdparty/GeographicLib/legacy/C/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/legacy/C/direct.c create mode 100644 gtsam/3rdparty/GeographicLib/legacy/C/geodesic.c create mode 100644 gtsam/3rdparty/GeographicLib/legacy/C/geodesic.h create mode 100644 gtsam/3rdparty/GeographicLib/legacy/C/inverse.c create mode 100644 gtsam/3rdparty/GeographicLib/legacy/C/planimeter.c create mode 100644 gtsam/3rdparty/GeographicLib/legacy/Fortran/00README.txt create mode 100644 gtsam/3rdparty/GeographicLib/legacy/Fortran/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/legacy/Fortran/geoddirect.for create mode 100644 gtsam/3rdparty/GeographicLib/legacy/Fortran/geodesic.for create mode 100644 gtsam/3rdparty/GeographicLib/legacy/Fortran/geodesic.inc create mode 100644 gtsam/3rdparty/GeographicLib/legacy/Fortran/geodinverse.for create mode 100644 gtsam/3rdparty/GeographicLib/legacy/Fortran/planimeter.for create mode 100644 gtsam/3rdparty/GeographicLib/ltmain.sh create mode 100644 gtsam/3rdparty/GeographicLib/m4/libtool.m4 create mode 100644 gtsam/3rdparty/GeographicLib/m4/ltoptions.m4 create mode 100644 gtsam/3rdparty/GeographicLib/m4/ltsugar.m4 create mode 100644 gtsam/3rdparty/GeographicLib/m4/ltversion.m4 create mode 100644 gtsam/3rdparty/GeographicLib/m4/lt~obsolete.m4 create mode 100644 gtsam/3rdparty/GeographicLib/man/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/man/CartConvert.1 create mode 100644 gtsam/3rdparty/GeographicLib/man/CartConvert.1.html create mode 100644 gtsam/3rdparty/GeographicLib/man/CartConvert.pod create mode 100644 gtsam/3rdparty/GeographicLib/man/CartConvert.usage create mode 100644 gtsam/3rdparty/GeographicLib/man/ConicProj.1 create mode 100644 gtsam/3rdparty/GeographicLib/man/ConicProj.1.html create mode 100644 gtsam/3rdparty/GeographicLib/man/ConicProj.pod create mode 100644 gtsam/3rdparty/GeographicLib/man/ConicProj.usage create mode 100644 gtsam/3rdparty/GeographicLib/man/GeoConvert.1 create mode 100644 gtsam/3rdparty/GeographicLib/man/GeoConvert.1.html create mode 100644 gtsam/3rdparty/GeographicLib/man/GeoConvert.pod create mode 100644 gtsam/3rdparty/GeographicLib/man/GeoConvert.usage create mode 100644 gtsam/3rdparty/GeographicLib/man/GeodSolve.1 create mode 100644 gtsam/3rdparty/GeographicLib/man/GeodSolve.1.html create mode 100644 gtsam/3rdparty/GeographicLib/man/GeodSolve.pod create mode 100644 gtsam/3rdparty/GeographicLib/man/GeodSolve.usage create mode 100644 gtsam/3rdparty/GeographicLib/man/GeodesicProj.1 create mode 100644 gtsam/3rdparty/GeographicLib/man/GeodesicProj.1.html create mode 100644 gtsam/3rdparty/GeographicLib/man/GeodesicProj.pod create mode 100644 gtsam/3rdparty/GeographicLib/man/GeodesicProj.usage create mode 100644 gtsam/3rdparty/GeographicLib/man/GeoidEval.1 create mode 100644 gtsam/3rdparty/GeographicLib/man/GeoidEval.1.html create mode 100644 gtsam/3rdparty/GeographicLib/man/GeoidEval.pod create mode 100644 gtsam/3rdparty/GeographicLib/man/GeoidEval.usage create mode 100644 gtsam/3rdparty/GeographicLib/man/Gravity.1 create mode 100644 gtsam/3rdparty/GeographicLib/man/Gravity.1.html create mode 100644 gtsam/3rdparty/GeographicLib/man/Gravity.pod create mode 100644 gtsam/3rdparty/GeographicLib/man/Gravity.usage create mode 100644 gtsam/3rdparty/GeographicLib/man/MagneticField.1 create mode 100644 gtsam/3rdparty/GeographicLib/man/MagneticField.1.html create mode 100644 gtsam/3rdparty/GeographicLib/man/MagneticField.pod create mode 100644 gtsam/3rdparty/GeographicLib/man/MagneticField.usage create mode 100644 gtsam/3rdparty/GeographicLib/man/Makefile.am create mode 100644 gtsam/3rdparty/GeographicLib/man/Makefile.in create mode 100644 gtsam/3rdparty/GeographicLib/man/Makefile.mk create mode 100644 gtsam/3rdparty/GeographicLib/man/Planimeter.1 create mode 100644 gtsam/3rdparty/GeographicLib/man/Planimeter.1.html create mode 100644 gtsam/3rdparty/GeographicLib/man/Planimeter.pod create mode 100644 gtsam/3rdparty/GeographicLib/man/Planimeter.usage create mode 100644 gtsam/3rdparty/GeographicLib/man/TransverseMercatorProj.1 create mode 100644 gtsam/3rdparty/GeographicLib/man/TransverseMercatorProj.1.html create mode 100644 gtsam/3rdparty/GeographicLib/man/TransverseMercatorProj.pod create mode 100644 gtsam/3rdparty/GeographicLib/man/TransverseMercatorProj.usage create mode 100644 gtsam/3rdparty/GeographicLib/man/dummy.1.html.in create mode 100644 gtsam/3rdparty/GeographicLib/man/dummy.1.in create mode 100644 gtsam/3rdparty/GeographicLib/man/dummy.usage.in create mode 100644 gtsam/3rdparty/GeographicLib/man/makeusage.sh create mode 100644 gtsam/3rdparty/GeographicLib/matlab/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/matlab/Makefile.am create mode 100644 gtsam/3rdparty/GeographicLib/matlab/Makefile.in create mode 100644 gtsam/3rdparty/GeographicLib/matlab/Makefile.mk create mode 100644 gtsam/3rdparty/GeographicLib/matlab/cassini_fwd.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/cassini_inv.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/defaultellipsoid.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/ecc2flat.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/eqdazim_fwd.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/eqdazim_inv.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/flat2ecc.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geocentricforward.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geocentricforward.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geocentricreverse.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geocentricreverse.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geodarea.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geoddistance.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geoddoc.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geodesicdirect.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geodesicdirect.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geodesicinverse.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geodesicinverse.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geodesicline.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geodesicline.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geodproj.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geodreckon.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geographiclibinterface.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geoidheight.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/geoidheight.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/gnomonic_fwd.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/gnomonic_inv.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/localcartesianforward.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/localcartesianforward.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/localcartesianreverse.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/localcartesianreverse.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/mgrsforward.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/mgrsforward.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/mgrsreverse.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/mgrsreverse.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/polygonarea.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/polygonarea.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/A1m1f.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/A2m1f.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/A3coeff.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/A3f.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/AngDiff.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/AngNormalize.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/AngNormalize2.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/AngRound.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/C1f.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/C1pf.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/C2f.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/C3coeff.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/C3f.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/C4coeff.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/C4f.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/SinCosNorm.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/SinCosSeries.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/atanhee.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/cbrt.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/cvmgt.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/sumx.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/private/swap.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/tranmerc_fwd.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/tranmerc_inv.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/utm_fwd.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/utm_inv.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/utmupsforward.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/utmupsforward.m create mode 100644 gtsam/3rdparty/GeographicLib/matlab/utmupsreverse.cpp create mode 100644 gtsam/3rdparty/GeographicLib/matlab/utmupsreverse.m create mode 100644 gtsam/3rdparty/GeographicLib/maxima/Makefile.mk create mode 100644 gtsam/3rdparty/GeographicLib/maxima/ellint.mac create mode 100644 gtsam/3rdparty/GeographicLib/maxima/geod.mac create mode 100644 gtsam/3rdparty/GeographicLib/maxima/geodesic.mac create mode 100644 gtsam/3rdparty/GeographicLib/maxima/tm.mac create mode 100644 gtsam/3rdparty/GeographicLib/maxima/tmseries.mac create mode 100755 gtsam/3rdparty/GeographicLib/missing create mode 100644 gtsam/3rdparty/GeographicLib/python/MANIFEST.in create mode 100644 gtsam/3rdparty/GeographicLib/python/Makefile.am create mode 100644 gtsam/3rdparty/GeographicLib/python/Makefile.in create mode 100644 gtsam/3rdparty/GeographicLib/python/Makefile.mk create mode 100644 gtsam/3rdparty/GeographicLib/python/README.txt create mode 100644 gtsam/3rdparty/GeographicLib/python/geographiclib/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/python/geographiclib/__init__.py create mode 100644 gtsam/3rdparty/GeographicLib/python/geographiclib/accumulator.py create mode 100644 gtsam/3rdparty/GeographicLib/python/geographiclib/constants.py create mode 100644 gtsam/3rdparty/GeographicLib/python/geographiclib/geodesic.py create mode 100644 gtsam/3rdparty/GeographicLib/python/geographiclib/geodesiccapability.py create mode 100644 gtsam/3rdparty/GeographicLib/python/geographiclib/geodesicline.py create mode 100644 gtsam/3rdparty/GeographicLib/python/geographiclib/geomath.py create mode 100644 gtsam/3rdparty/GeographicLib/python/geographiclib/polygonarea.py create mode 100644 gtsam/3rdparty/GeographicLib/python/setup.py create mode 100644 gtsam/3rdparty/GeographicLib/src/Accumulator.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/AlbersEqualArea.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/AzimuthalEquidistant.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/src/CassiniSoldner.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/CircularEngine.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/DMS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/Ellipsoid.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/EllipticFunction.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/GeoCoords.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/Geocentric.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/Geodesic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/GeodesicExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/GeodesicLine.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/GeodesicLineExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/Geographic.pro create mode 100644 gtsam/3rdparty/GeographicLib/src/Geohash.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/Geoid.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/Gnomonic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/GravityCircle.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/GravityModel.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/LambertConformalConic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/LocalCartesian.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/MGRS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/MagneticCircle.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/MagneticModel.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/Makefile.am create mode 100644 gtsam/3rdparty/GeographicLib/src/Makefile.in create mode 100644 gtsam/3rdparty/GeographicLib/src/Makefile.mk create mode 100644 gtsam/3rdparty/GeographicLib/src/NormalGravity.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/OSGB.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/PolarStereographic.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/PolygonArea.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/SphericalEngine.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/TransverseMercator.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/TransverseMercatorExact.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/UTMUPS.cpp create mode 100644 gtsam/3rdparty/GeographicLib/src/Utility.cpp create mode 100644 gtsam/3rdparty/GeographicLib/tools/CMakeLists.txt create mode 100644 gtsam/3rdparty/GeographicLib/tools/CartConvert.cpp create mode 100644 gtsam/3rdparty/GeographicLib/tools/ConicProj.cpp create mode 100644 gtsam/3rdparty/GeographicLib/tools/GeoConvert.cpp create mode 100644 gtsam/3rdparty/GeographicLib/tools/GeodSolve.cpp create mode 100644 gtsam/3rdparty/GeographicLib/tools/GeodesicProj.cpp create mode 100644 gtsam/3rdparty/GeographicLib/tools/GeoidEval.cpp create mode 100644 gtsam/3rdparty/GeographicLib/tools/Gravity.cpp create mode 100644 gtsam/3rdparty/GeographicLib/tools/MagneticField.cpp create mode 100644 gtsam/3rdparty/GeographicLib/tools/Makefile.am create mode 100644 gtsam/3rdparty/GeographicLib/tools/Makefile.in create mode 100644 gtsam/3rdparty/GeographicLib/tools/Makefile.mk create mode 100644 gtsam/3rdparty/GeographicLib/tools/Planimeter.cpp create mode 100644 gtsam/3rdparty/GeographicLib/tools/TransverseMercatorProj.cpp create mode 100644 gtsam/3rdparty/GeographicLib/tools/geographiclib-get-geoids.sh create mode 100644 gtsam/3rdparty/GeographicLib/tools/geographiclib-get-gravity.sh create mode 100644 gtsam/3rdparty/GeographicLib/tools/geographiclib-get-magnetic.sh create mode 100644 gtsam/3rdparty/GeographicLib/windows/CartConvert-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/CartConvert-vc8.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/CartConvert-vc9.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/ConicProj-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/ConicProj-vc8.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/ConicProj-vc9.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeoConvert-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeoConvert-vc8.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeoConvert-vc9.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeodSolve-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeodSolve-vc8.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeodSolve-vc9.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeodesicProj-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeodesicProj-vc8.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeodesicProj-vc9.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/Geographic-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/Geographic-vc8.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/Geographic-vc9.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeographicLib-vc10.sln create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeographicLib-vc8.sln create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeographicLib-vc9.sln create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeoidEval-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeoidEval-vc8.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/GeoidEval-vc9.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/Gravity-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/Gravity-vc8.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/Gravity-vc9.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/MagneticField-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/MagneticField-vc8.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/MagneticField-vc9.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/NETGeographic-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/Planimeter-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/Planimeter-vc8.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/Planimeter-vc9.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/TransverseMercatorProj-vc10.vcxproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/TransverseMercatorProj-vc8.vcproj create mode 100644 gtsam/3rdparty/GeographicLib/windows/TransverseMercatorProj-vc9.vcproj diff --git a/gtsam/3rdparty/CMakeLists.txt b/gtsam/3rdparty/CMakeLists.txt index 3fb5cf185..799ea46c7 100644 --- a/gtsam/3rdparty/CMakeLists.txt +++ b/gtsam/3rdparty/CMakeLists.txt @@ -24,3 +24,5 @@ if(NOT GTSAM_USE_SYSTEM_EIGEN) DESTINATION include/gtsam/3rdparty/Eigen FILES_MATCHING PATTERN "*.h") endif() + +add_subdirectory(GeographicLib) diff --git a/gtsam/3rdparty/GeographicLib/00README.txt b/gtsam/3rdparty/GeographicLib/00README.txt new file mode 100644 index 000000000..47ef4b8fb --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/00README.txt @@ -0,0 +1,143 @@ +A library for geographic projections. + +Written by Charles Karney and licensed under +the MIT/X11 License. For more information, see + + http://geographiclib.sourceforge.net/ + +Files + + 00README.txt -- this file + AUTHORS -- the authors of the library + LICENSE.txt -- the MIT/X11 License + INSTALL -- brief installation instructions + NEWS -- a history of changes + + include/GeographicLib/ and src/ + Config.h.in, Config.h -- system dependent configuration + Constants.hpp -- WGS84 constants + Math.hpp -- math routines + Utility.hpp -- I/O and date routines + Accumulator.[ch]pp -- quad precision adder + PolarStereographic.[ch]pp -- polar stereographic projection + TransverseMercator.[ch]pp -- transverse Mercator projection + UTMUPS.[ch]pp -- UTM and UPS + MGRS.[ch]pp -- MGRS + TransverseMercatorExact.[ch]pp -- exact TM projection + EllipticFunction.[ch]pp -- elliptic functions + GeoCoords.[ch]pp -- hold geographic location + DMS.[ch]pp -- handle degrees minutes seconds + Geocentric.[ch]pp -- geocentric coordinates + LocalCartesian.[ch]pp -- local cartesian coordinates + Geodesic.[ch]pp -- geodesic calculations + GeodesicLine.[ch]pp -- calculations on a single geodesic + PolygonArea.[ch]pp -- polygon area + AzimuthalEquidistant.[ch]pp -- azimuthal equidistant projection + Gnomonic.[ch]pp -- gnomonic projection + CassiniSoldner.[ch]pp -- Cassini-Soldner equidistant projection + Geoid.[ch]pp -- geoid heights + Gravity{Model,Circle}.[ch]pp -- gravity models + Magnetic{Model,Circle}.[ch]pp -- geomagentic models + {Spherical,Circular}Engine.[ch]pp -- spherical harmonic sums + SphericalHarmonic{,1,2}.hpp -- frontend for spherical harmonics + LambertConformalConic.[ch]pp -- Lambert conformal conic projection + AlbersEqualArea.[ch]pp -- Albers equal area projection + Gnomonic.[ch]pp -- Ellipsoidal gnomonic projection + OSGB.[ch]pp -- Ordnance Survey grid system + Geohash.[ch]pp -- conversions for geohashes + Ellipsoid.[ch]pp -- ellipsoid properties + + examples/ + example-*.cpp -- simple usage examples for all the classes + GeoidToGTX.cpp -- a parallelization example + + tools/ + GeoConvert.cpp -- geographic conversion utility + TransverseMercatorTest.cpp -- TM tester + GeodSolve.cpp -- geodesic utility + CartConvert.cpp -- convert to geocentric and local cartesian + EquidistantTest.cpp -- exercise AzimuthalEquidistant and CassiniSoldner + GeoidEval.cpp -- evaluate geoid heights + Gravity.cpp -- evaluate gravity + MagneticField.cpp -- evaluate magnetic field + Planimeter.cpp -- computer polygon areas + geographiclib-get-geoids -- download geoid datasets + geographiclib-get-magnetic -- download geomagnetic models + + windows/ + GeographicLib-vc9.sln -- MS Studio 2008 solution + Geographic-vc9.vcproj -- project for library + GeoConvert-vc9.vcproj -- project for GeoConvert + TransverseMercatorTest-vc9.vcproj -- project for TransverseMercatorTest + Geod-vc9.vcproj -- project for Geod + Planimeter-vc9.vcproj -- project for Planimeter + CartConvert-vc9.vcproj -- project for CartConvert + EquidistantTest-vc9.vcproj -- project for EquidistantTest + GeoidEval-vc9.vcproj -- project for GeoidEval + Gravity-vc9.vcproj -- project for Gravity + MagneticField-vc9.vcproj -- project for MagneticField + also files for MS Studio 2005 (with vc8) + also files for MS Studio 2010 (with vc10) + NETGeographic-vc10.vcxproj -- project for .NET wrapper + + maxima/ + tm.mac -- Maxima code for high precision TM + ellint.mac -- Maxima code for elliptic functions needed by tm.mac + tmseries.mac -- Maxima code for series approximations for TM + geod.mac -- Maxima code for series approximations for Geodesic + geodesic.mac -- Maxima code for geodesic problems + + matlab/ + geographiclibinterface.m -- Matlab code to compile Matlab interfaces + utmupsforward.{cpp,m} -- Matlab code to convert geographic to UTM/UPS + utmupsreverse.{cpp,m} -- Matlab code to convert UTM/UPS to geographic + mgrsforward.{cpp,m} -- Matlab code to convert UTM/UPS to MGRS + mgrsreverse.{cpp,m} -- Matlab code to convert MGRS to UTM/UPS + geodesicdirect.{cpp,m} -- Matlab code for the direct geodesic problem + geodesicinverse.{cpp,m} -- Matlab code for the inverse geodesic problem + geodesicline.{cpp,m} -- Matlab code for geodesic lines + geoidheight.{cpp,m} -- Matlab code to look up geoid heights + polygonarea.{cpp,m} -- Matlab code for polygon areas + geoddoc.m -- documentation for native Matlab geodesic routines + geodreckon.m -- native Matlab implementation of direct geodesic problem + geoddistance.m -- native Matlab implementation of inverse geodesic problem + geodarea.m -- native Matlab implementation of polygon area + defaultellipsoid.m, ecc2flat.m, flat2ecc.m -- auxiliary functions + geodproj.m -- documentation for geodesic projections + *_{fwd,inv}.m -- native Matlab implementation of geodesic projections + private/*.m -- internal functions for geodesic routines + + doc/ + doxyfile.in -- Doxygen config file + Geographic.dox -- main page of Doxygen documentation + geodseries30.html -- geodesic series to 30th order + tmseries30.html -- transverse Mercator series to 30th order + html/* -- directory with built documentation + scripts/*.html -- demonstrations of the JavaScript interface + scripts/GeographicLib/*.js -- JavaScript implementation of geodesics + + man/ + *.pod -- plain old documentation + *.1 -- man pages in nroff format + *.1.html -- man pages in html format + *.usage -- documentation for incorporation into executables + + python/GeographicLib/*.py -- Python implementation of geodesic routines + + java/.../*.java -- Java implementation of geodesic routines + + dotnet/NETGeographicLib/*.{cpp,h} -- .NET wrapper for GeographicLib + dotnet/examples/CS/*.cs -- simple C# examples for each class + dotnet/examples/ManagedCPP/*.cpp -- Managed C++ examples for each class + dotnet/examples/VB/*.vb -- simple Visual Basic examples for each class + dotnet/Projection/* -- a more complex C# application + + legacy/C/* -- C implementation of geodesic routines + legacy/Fortran/* -- Fortran implementation of geodesic routines + + Makefile.mk -- Unix/Linux makefiles + configure -- autoconf configuration script + CMakeLists.txt -- cmake configuration files + cmake/ + FindGeographicLib.cmake -- cmake find script + *.cmake.in -- cmake config templates diff --git a/gtsam/3rdparty/GeographicLib/AUTHORS b/gtsam/3rdparty/GeographicLib/AUTHORS new file mode 100644 index 000000000..01c69972b --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/AUTHORS @@ -0,0 +1,6 @@ +Charles Karney +Francesco Paolo Lovergine (autoconfiscation) +Mathieu Peyréga (help with gravity models) +Andrew MacIntyre (python/setup.py) +Skip Breidbach (maven support for Java) +Scott Heiman (.NET wrappers + C# examples) diff --git a/gtsam/3rdparty/GeographicLib/CMakeLists.txt b/gtsam/3rdparty/GeographicLib/CMakeLists.txt new file mode 100644 index 000000000..f90893d23 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/CMakeLists.txt @@ -0,0 +1,489 @@ +project (GeographicLib) + +# Version information +set (PROJECT_VERSION_MAJOR 1) +set (PROJECT_VERSION_MINOR 34) +set (PROJECT_VERSION_PATCH 0) +set (PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}") +if (PROJECT_VERSION_PATCH GREATER 0) + set (PROJECT_VERSION "${PROJECT_VERSION}.${PROJECT_VERSION_PATCH}") +endif () + +set (CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) +set (CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR}) +set (CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH}) + +# The library version tracks the numbering given by libtool in the +# autoconf set up. +set (LIBVERSION 10) +set (LIBVERSIONFULL 10.1.1) +string (TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER) +string (TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPER) + +cmake_minimum_required (VERSION 2.8.4) # This version was released 2011-02-16 + +# User-settable variables + +# (1) COMMON_INSTALL_PATH governs the installation convention. If it +# is on ON (the Linux default), the installation is to a common +# directory, e.g., /usr/local. If it is OFF (the Windows default), +# the installation directory contains the package name, e.g., +# c:/pkg/GeographicLib-1.22. The installation directories for the +# documentation, cmake configuration, python and matlab interfaces all +# depend on the variable with deeper paths relative to +# CMAKE_INSTALL_PREFIX being used when it's ON. + +if (WIN32) + option (COMMON_INSTALL_PATH "Use a common installation path for packages" OFF) +else () + option (COMMON_INSTALL_PATH "Use a common installation path for packages" ON) +endif () + +# The use of PACKAGE_PATH and INSTALL_PATH is now DEPRECATED. +# (2) PACKAGE_PATH and INSTALL_PATH govern the find_package search +# path and the installation directory. (find_package is not used by +# GeographicLib since it doesn't depend on other packages. However +# PACKAGE_PATH is used here for uniformity with other packages which +# adopt the same conventions.) +# +# If PACKAGE_PATH is defined, it is prepended to CMAKE_PREFIX_PATH. +# +# If INSTALL_PATH is not specified but PACKAGE_PATH is, then +# INSTALL_PATH is set to +# ${PACKAGE_PATH}, if COMMON_INSTALL_PATH is ON; +# ${PACKAGE_PATH}/${PROJECT_NAME}-${PROJECT_VERSION}, otherwise. +# +# If INSTALL_PATH is now defined, then set CMAKE_INSTALL_PREFIX to +# INSTALL_PATH. +# +# Typically, only PACKAGE_PATH needs to be specified, e.g., +# cmake -D PACKAGE_PATH=/opt .. (on Linux) +# => CMAKE_PREFIX_PATH=/opt CMAKE_INSTALL_PREFIX=/opt +# cmake -D PACKAGE_PATH=C:/pkg .. (on Windows) +# => CMAKE_PREFIX_PATH=C:/pkg CMAKE_INSTALL_PREFIX=C:/pkg/GeographicLib-1.22 + +if (PACKAGE_PATH) + set (CMAKE_PREFIX_PATH ${PACKAGE_PATH} ${CMAKE_PREFIX_PATH}) + message (STATUS "CMAKE_PREFIX_PATH set to ${CMAKE_PREFIX_PATH}") +endif () + +if (NOT INSTALL_PATH AND PACKAGE_PATH) + if (COMMON_INSTALL_PATH) + set (INSTALL_PATH ${PACKAGE_PATH} CACHE PATH "Installation directory" FORCE) + else () + set (INSTALL_PATH ${PACKAGE_PATH}/${PROJECT_NAME}-${PROJECT_VERSION} + CACHE PATH "Installation directory" FORCE) + endif () +endif () +if (INSTALL_PATH) + file (TO_CMAKE_PATH ${INSTALL_PATH} CMAKE_INSTALL_PREFIX) + message (STATUS "CMAKE_INSTALL_PREFIX set to ${CMAKE_INSTALL_PREFIX}") +endif () + +# (3) Where to look for data files. Various classes look in the geoids, +# gravity, magnetic, subdirectories of ${GEOGRAPHICLIB_DATA}. +if (WIN32) + # The binary installers for the data files for Windows are created + # with Inno Setup which uses {commonappdata}. On most Windows + # systems this is + # "C:/Documents and Settings/All Users/Application Data", while on + # newer systems (Windows 7), it is C:/ProgramData. However the + # longer name "works" on all Windows systems. + set (GEOGRAPHICLIB_DATA + "C:/Documents and Settings/All Users/Application Data/GeographicLib" + CACHE PATH "Location for data for GeographicLib") +else () + set (GEOGRAPHICLIB_DATA + "/usr/local/share/GeographicLib" + CACHE PATH "Location for data for GeographicLib") +endif () + +# (4) Build which libraries? Possible values are SHARED, STATIC, BOTH. +if (MSVC) + set (GEOGRAPHICLIB_LIB_TYPE STATIC CACHE STRING + "Types of library generated: SHARED, STATIC (default), or BOTH") +else () + set (GEOGRAPHICLIB_LIB_TYPE SHARED CACHE STRING + "Types of library generated: SHARED (default), STATIC, or BOTH") +endif () +set_property (CACHE GEOGRAPHICLIB_LIB_TYPE + PROPERTY STRINGS "SHARED" "STATIC" "BOTH") + +if (GEOGRAPHICLIB_LIB_TYPE STREQUAL "BOTH") + set (GEOGRAPHICLIB_SHARED_LIB ON) + set (GEOGRAPHICLIB_STATIC_LIB ON) + set (GEOGRAPHICLIB_LIB_TYPE_VAL 2) +elseif (GEOGRAPHICLIB_LIB_TYPE STREQUAL "SHARED") + set (GEOGRAPHICLIB_SHARED_LIB ON) + set (GEOGRAPHICLIB_STATIC_LIB OFF) + set (GEOGRAPHICLIB_LIB_TYPE_VAL 1) +elseif (GEOGRAPHICLIB_LIB_TYPE STREQUAL "STATIC") + set (GEOGRAPHICLIB_SHARED_LIB OFF) + set (GEOGRAPHICLIB_STATIC_LIB ON) + set (GEOGRAPHICLIB_LIB_TYPE_VAL 0) +else () + message (FATAL_ERROR + "Bad value of GEOGRAPHICLIB_LIB_TYPE, \"${GEOGRAPHICLIB_LIB_TYPE}\" " + "(should be SHARED, STATIC or BOTH)") +endif () + +if (GEOGRAPHICLIB_STATIC_LIB) + set (PROJECT_STATIC_LIBRARIES GeographicLib_STATIC) + set (PROJECT_STATIC_DEFINITIONS -DGEOGRAPHICLIB_SHARED_LIB=0) +else () + set (PROJECT_STATIC_LIBRARIES) + set (PROJECT_STATIC_DEFINITIONS) +endif () + +if (GEOGRAPHICLIB_SHARED_LIB) + set (PROJECT_SHARED_LIBRARIES GeographicLib) + set (PROJECT_LIBRARIES ${PROJECT_SHARED_LIBRARIES}) + set (PROJECT_SHARED_DEFINITIONS -DGEOGRAPHICLIB_SHARED_LIB=1) + set (PROJECT_DEFINITIONS ${PROJECT_SHARED_DEFINITIONS}) +else () + set (PROJECT_SHARED_LIBRARIES) + set (PROJECT_LIBRARIES ${PROJECT_STATIC_LIBRARIES}) + set (PROJECT_SHARED_DEFINITIONS) + set (PROJECT_DEFINITIONS ${PROJECT_STATIC_DEFINITIONS}) +endif () + +# (5) Compile the Matlab interfaces? Skip Matlab compilation if OFF +set (MATLAB_COMPILER OFF CACHE STRING + "Compiler for matlab/octave interface: mex or mkoctfile or OFF") +set_property (CACHE MATLAB_COMPILER PROPERTY STRINGS "mex" "mkoctfile" OFF) + +# (6) Create the documentation? This depends on whether doxygen can be +# found. If this is OFF, then links will be provided to the online +# documentation on Sourceforge. +option (GEOGRAPHICLIB_DOCUMENTATION + "Use doxygen to create the documentation" OFF) + +# (7) Build .NET wrapper library NETGeographicLib. This only applies to +# Windows. Default is OFF, because, currently, most people don't use +# this interface. +option (BUILD_NETGEOGRAPHICLIB "Build NETGeographicLib library" OFF) + +# (8) Set the default "real" precision. This should probably be left +# at 2 (double). +set (GEOGRAPHICLIB_PRECISION 2 CACHE STRING + "Default real precision: 1 = float, 2 = double, 3 = long double") +set_property (CACHE GEOGRAPHICLIB_PRECISION PROPERTY STRINGS 1 2 3) + +# (9) When making a binary package, should we include the debug version +# of the library? This applies to MSVC only, because that's the +# platform where debug and release compilations do not inter-operate. +# It requires building as follows: +# cmake --build . --config Debug --target ALL_BUILD +# cmake --build . --config Release --target ALL_BUILD +# cmake --build . --config Release --target PACKAGE +option (PACKAGE_DEBUG_LIBS + "Include debug versions of library in binary package" OFF) + +set (LIBNAME Geographic) +if (MSVC OR CMAKE_CONFIGURATION_TYPES) + # For multi-config systems and for Visual Studio, the debug version of + # the library is called Geographic_d. + set (CMAKE_DEBUG_POSTFIX _d) +endif () + +if (NOT MSVC) + # Set the run time path for shared libraries for non-Windows machines. + # (1) include link path for external packages (not needed with + # GeographicLib because there are no external packages). + set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + # (2) include installed path for GeographicLib. + if (NOT APPLE) + # Use relative path so that package is relocatable + set (CMAKE_INSTALL_RPATH "\$ORIGIN/../lib${LIB_SUFFIX}") + else () + # Need absolute path with MacOSx + set (CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}") + endif () +endif () + +if (NOT CYGWIN) + # cygwin has a long double but the support for ::cbrtl etc is missing + include (CheckTypeSize) + check_type_size ("long double" LONG_DOUBLE BUILTIN_TYPES_ONLY) +endif () +include (TestBigEndian) +test_big_endian (WORDS_BIGENDIAN) + +# Create a Config.h to expose system information to the compiler +configure_file ( + include/GeographicLib/Config.h.in + include/GeographicLib/Config.h ) + +# The documentation depends on doxygen. Need version 1.8.1.2 or later +# for support of greek letters and math symbols. +if (GEOGRAPHICLIB_DOCUMENTATION) + set (DOXYGEN_SKIP_DOT ON) + find_package (Doxygen 1.8.1.2) + if (DOXYGEN_FOUND) + execute_process (COMMAND ${DOXYGEN_EXECUTABLE} --version + OUTPUT_VARIABLE DOXYGEN_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) + if (DOXYGEN_VERSION VERSION_LESS 1.4.0) + set (DOXYGEN_FOUND FALSE) + message (STATUS "Doxygen version found, ${DOXYGEN_VERSION}, is too old") + endif () + endif () +endif () + +# The man pages are written as pod files and converted to nroff format, +# C++ code, and html. Because this require tools that may not be +# available on an end-user's system, the creation of the final +# documentation is therefore only done in "MAINTAINER" mode. The +# maintainer runs "make distrib-all" which installs the transformed +# documentation files into the source tree. +if (NOT WIN32 AND NOT APPLE) + find_program (HAVE_POD2MAN pod2man) + find_program (HAVE_POD2HTML pod2html) + find_program (HAVE_COL col) +endif () +if (HAVE_POD2MAN AND HAVE_POD2HTML AND HAVE_COL) + set (MAINTAINER ON) +else () + set (MAINTAINER OFF) +endif () +if (MAINTAINER) + add_custom_target (distrib-all) + add_dependencies (distrib-all distrib-man) +endif () + +# Look for the tool to compile the Matlab interfaces. +if (MATLAB_COMPILER) + if (WIN32) + set (MATLAB_COMPILER_EXT ".bat") + else () + set (MATLAB_COMPILER_EXT "") + endif () + find_program (MEX "${MATLAB_COMPILER}${MATLAB_COMPILER_EXT}") + if (MATLAB_COMPILER MATCHES "mex") + get_filename_component (MATLABDIR "${MEX}" REALPATH) + get_filename_component (MATLABDIR "${MATLABDIR}" PATH) + find_program (MEXEXTPROG "mexext${MATLAB_COMPILER_EXT}" + PATHS "${MATLABDIR}") + execute_process (COMMAND "${MEXEXTPROG}" + OUTPUT_VARIABLE MEXEXT OUTPUT_STRIP_TRAILING_WHITESPACE) + set (MEXOPTIONS "-largeArrayDims") + else () + set (MEXEXT "mex") + set (MEXOPTIONS "--mex") + endif () + if (NOT MSVC) + # mex files are shared objects => require static lib to be built with + # position independent code + set (CMAKE_POSITION_INDEPENDENT_CODE ON) + endif () + if (NOT MEX) + message (WARNING + "Cannot find Matlab compiler ${MATLAB_COMPILER}${MATLAB_COMPILER_EXT}") + elseif (NOT MEXEXT) + set (MEX OFF) + message (WARNING "Cannot determine extension for Matlab compiled code") + endif () +endif () + +# Set a default build type for single-configuration cmake generators if +# no build type is set. +if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) + set (CMAKE_BUILD_TYPE Release) +endif () + +# Make the compiler more picky. +if (MSVC) + string (REGEX REPLACE "/W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4") +else () + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") + # check for C++11 support + include (CheckCXXCompilerFlag) + set (CXX11FLAG "-std=c++11") + check_cxx_compiler_flag (${CXX11FLAG} CXX11TEST1) + if (NOT CXX11TEST1) + set (CXX11FLAG "-std=c++0x") + check_cxx_compiler_flag (${CXX11FLAG} CXX11TEST2) + if (NOT CXX11TEST2) + unset (CXX11FLAG) + endif () + endif () + if (CXX11FLAG) + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX11FLAG}") + endif () +endif () + +if (APPLE) + if (CMAKE_SYSTEM_PROCESSOR MATCHES "i.86" OR + CMAKE_SYSTEM_PROCESSOR MATCHES "amd64" OR + CMAKE_SYSTEM_PROCESSOR MATCHES "x86") + set (CMAKE_OSX_ARCHITECTURES "i386 -arch x86_64") + endif () +endif () + +# The list of tools (to be installed into, e.g., /usr/local/bin) +set (TOOLS CartConvert ConicProj GeodesicProj GeoConvert GeodSolve + GeoidEval Gravity MagneticField Planimeter TransverseMercatorProj) +# The list of scripts (to be installed into, e.g., /usr/local/sbin) +set (SCRIPTS + geographiclib-get-geoids geographiclib-get-gravity geographiclib-get-magnetic) + +set_property (GLOBAL PROPERTY USE_FOLDERS ON) + +# Set the include directories. Look in ${PROJECT_BINARY_DIR}/include +# first because that's where Config.h will be +include_directories ("${PROJECT_BINARY_DIR}/include" include) + +# The list of subdirectories to process +add_subdirectory (src) +add_subdirectory (include/GeographicLib) +add_subdirectory (tools) +add_subdirectory (man) +add_subdirectory (doc) +add_subdirectory (matlab) +add_subdirectory (python/geographiclib) +if (GEOGRAPHICLIB_PRECISION EQUAL 2) + # The examples assume double precision + add_subdirectory (examples) +endif () +if (BUILD_NETGEOGRAPHICLIB) + set (NETGEOGRAPHICLIB_LIBRARIES NETGeographicLib) + set (NETLIBNAME NETGeographic) + add_subdirectory (dotnet/NETGeographicLib) + if (GEOGRAPHICLIB_PRECISION EQUAL 2) + add_subdirectory (dotnet/examples/ManagedCPP) + endif () +endif () +add_subdirectory (cmake) +if (EXISTS ${PROJECT_SOURCE_DIR}/tests/CMakeLists.txt) + add_subdirectory (tests) +endif () + +# Packaging support; we deal with +# (1) a source distribution: cmake make a tar.gz file and the zip file +# is created from this. Only the maintainer can do this, because of +# the need to generate additional documentation files. +# (2) a binary distribution: code is included for Linux, Apple, and +# Windows, but only the Windows distribution has been exercised. + +# Need to ensure that system dlls get included in a binary distribution +if (NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS) + # Visual Studio Express does include redistributable components so + # squelch the warning. + set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON) +endif () +set (CMAKE_INSTALL_DEBUG_LIBRARIES ON) +include (InstallRequiredSystemLibraries) + +# The configuration of CPack is via variable that need to be set before +# the include (CPack). +set (CPACK_PACKAGE_CONTACT charles@karney.com) +set (CPACK_PACKAGE_VENDOR "GeographicLib") +set (CPACK_PACKAGE_DESCRIPTION_SUMMARY + "GeographicLib library, utilities, and documentation") +# The list of files to be excluded from the source distribution. +set (CPACK_SOURCE_IGNORE_FILES + "#" + "~\$" + "/\\\\.git" + "${PROJECT_SOURCE_DIR}/BUILD" + "${PROJECT_SOURCE_DIR}/(tests|testdata|cgi-bin|.*\\\\.cache)/" + "${PROJECT_SOURCE_DIR}/(distrib|.*-distrib|.*-installer|geodesic-papers)/" + "${PROJECT_SOURCE_DIR}/[^/]*\\\\.(html|kmz|pdf|xml)\$" + "${PROJECT_SOURCE_DIR}/(autogen|biblio|js-compress)\\\\.sh\$" + "${PROJECT_SOURCE_DIR}/(geodesic-biblio.txt|makefile-admin|[^/]*\\\\.png)\$" + "${PROJECT_SOURCE_DIR}/matlab/matlab-.*blurb.txt\$" ) +set (CPACK_SOURCE_GENERATOR TGZ) + +set (CPACK_RESOURCE_FILE_LICENSE ${PROJECT_SOURCE_DIR}/LICENSE.txt) +set (CPACK_PACKAGE_INSTALL_DIRECTORY "${PROJECT_NAME}-${PROJECT_VERSION}") +set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}") + +if (WIN32) + # The Windows binary packager is NSIS. Set the necessary variables + # for this. + set (CPACK_NSIS_CONTACT "charles@karney.com") + set (CPACK_NSIS_URL_INFO_ABOUT "http://geographiclib.sf.net") + set (CPACK_NSIS_HELP_LINK "mailto:charles@karney.com") + if (CMAKE_SIZEOF_VOID_P EQUAL 8) + # Hardcode the prefix for Visual Studio 10 + set (CPACK_NSIS_INSTALL_ROOT "C:\\\\pkg-vc10-x64") + set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}-win64") + set (CPACK_NSIS_PACKAGE_NAME "${PROJECT_NAME} x64 ${PROJECT_VERSION}") + set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY + "${PROJECT_NAME}-x64-${PROJECT_VERSION}") + else () + # Hardcode the prefix for Visual Studio 10 + set (CPACK_NSIS_INSTALL_ROOT "C:\\\\pkg-vc10") + set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}-win32") + set (CPACK_NSIS_PACKAGE_NAME "${PROJECT_NAME} ${PROJECT_VERSION}") + set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY + "${PROJECT_NAME}-${PROJECT_VERSION}") + endif () + set (CPACK_NSIS_DISPLAY_NAME ${CPACK_NSIS_PACKAGE_NAME}) + set (CPACK_NSIS_MENU_LINKS + "http://geographiclib.sf.net/${PROJECT_VERSION}/index.html" + "Library documentation" + "http://geographiclib.sf.net/${PROJECT_VERSION}/utilities.html" + "Utilities documentation" + "http://geographiclib.sf.net" "GeographicLib home page" + "http://sf.net/projects/geographiclib/" "Main project page") + set (CPACK_NSIS_MODIFY_PATH ON) +elseif (APPLE) + # Not tested + set (CPACK_GENERATOR Bundle) + set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}-darwin") +else () + # Not tested + set (CPACK_GENERATOR TGZ) +endif () + +include (CPack) + +# Another maintainer-specific target is building the source distribution +# via the target dist. This calls package_source to make a tar.gz file. +# However this needs to be touched up to support the vanilla Makefiles +# provided with GeographicLib. This entails +# (1) creating Makefile (which includes Makefile.mk); +# (2) creating a bare-bones Config.h (with just the version information); +# (3) making sure that make thinks the generated documentation files are +# up-to-date. +# Then a new tar.gz file and zip file are created. To avoid potential +# problems with directory permissions, tar and zip are told only to +# archive the files. +if (MAINTAINER) + add_custom_target (dist + COMMAND ${CMAKE_MAKE_PROGRAM} package_source + COMMAND + cd _CPack_Packages/Linux-Source/TGZ/${CPACK_SOURCE_PACKAGE_FILE_NAME} && + echo include Makefile.mk > Makefile && + sed -e "s/Unconfigured/${PROJECT_VERSION}/" + -e "s/MAJOR .*/MAJOR ${CPACK_PACKAGE_VERSION_MAJOR}/" + -e "s/MINOR .*/MINOR ${CPACK_PACKAGE_VERSION_MINOR}/" + -e "s/PATCH .*/PATCH ${CPACK_PACKAGE_VERSION_PATCH}/" + include/GeographicLib/Config.h > include/GeographicLib/Config.h.new && + mv include/GeographicLib/Config.h.new include/GeographicLib/Config.h + COMMAND + cd _CPack_Packages/Linux-Source/TGZ/${CPACK_SOURCE_PACKAGE_FILE_NAME} && + touch man/[A-Za-z]*.usage man/[A-Za-z]*.1 man/[A-Za-z]*.1.html && + chmod -R g-w . + COMMAND + cd _CPack_Packages/Linux-Source/TGZ && + find ${CPACK_SOURCE_PACKAGE_FILE_NAME} -type f | + tar cfzT ${CMAKE_BINARY_DIR}/${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.gz - + COMMAND + rm -f ${CMAKE_BINARY_DIR}/${CPACK_SOURCE_PACKAGE_FILE_NAME}.zip && + rsync -a --delete + _CPack_Packages/Linux-Source/TGZ/${CPACK_SOURCE_PACKAGE_FILE_NAME} + _CPack_Packages/Linux-Source/TGZ.DOS/ && + cd _CPack_Packages/Linux-Source/TGZ.DOS && + find . -type f | + egrep '/\(doxyfile.*\\.in|MANIFEST.in|NEWS|AUTHORS|INSTALL|pom\\.xml|dummy.*\\.in|.*\\.\(cpp|hpp|h\\.in|txt|pro|usage|pod|py|m|mac|cmake\\.in|cmake|h|js|c|for|dox|cs|vb|inc|java|html\\.in\)\)$$' | + xargs unix2dos -q -k && + find ${CPACK_SOURCE_PACKAGE_FILE_NAME} -type f | + zip -q ${CMAKE_BINARY_DIR}/${CPACK_SOURCE_PACKAGE_FILE_NAME}.zip -@ + ) + add_dependencies (dist distrib-all) +endif () + +# Add a test target; the tests are in tools. +enable_testing () diff --git a/gtsam/3rdparty/GeographicLib/INSTALL b/gtsam/3rdparty/GeographicLib/INSTALL new file mode 100644 index 000000000..f669d15f1 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/INSTALL @@ -0,0 +1,3 @@ +For installation instructions, open + + http://geographiclib.sourceforge.net/html/install.html diff --git a/gtsam/3rdparty/GeographicLib/LICENSE.txt b/gtsam/3rdparty/GeographicLib/LICENSE.txt new file mode 100644 index 000000000..e70861b2a --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/LICENSE.txt @@ -0,0 +1,23 @@ +This license applies to GeographicLib, versions 1.12 and later. + +Copyright (c) 2008-2013, Charles Karney + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, copy, +modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/gtsam/3rdparty/GeographicLib/Makefile b/gtsam/3rdparty/GeographicLib/Makefile new file mode 100644 index 000000000..c7745fa8c --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/Makefile @@ -0,0 +1 @@ +include Makefile.mk diff --git a/gtsam/3rdparty/GeographicLib/Makefile.am b/gtsam/3rdparty/GeographicLib/Makefile.am new file mode 100644 index 000000000..4008b07b8 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/Makefile.am @@ -0,0 +1,51 @@ +# +# Makefile.am +# +# Copyright (C) 2009, Francesco P. Lovergine + +AUTOMAKE_OPTIONS = foreign + +ACLOCAL_AMFLAGS = -I m4 + +SUBDIRS = src man tools doc include matlab python cmake examples + +EXTRA_DIST = AUTHORS 00README.txt LICENSE.txt NEWS INSTALL \ + Makefile.mk CMakeLists.txt windows maxima doc legacy java dotnet + +dist-hook: + rm -rf $(distdir)/doc/html $(distdir)/doc/manpages ; \ + find $(distdir)/maxima -type f -name '*.lsp' | xargs rm -rf ; \ + rm -rf $(distdir)/java/targets ; \ + find $(distdir)/java -type f -name '*.class' | xargs rm -rf ; \ + find $(distdir)/windows -mindepth 1 -type d | xargs rm -rf ; \ + find $(distdir)/windows -type f \ + ! \( -name '*.sln' -o -name '*.vc*proj' -o -name '*.mk' \)| \ + xargs rm -f ; \ + find $(distdir) \ + \( -name .svn -o -name '.git*' -o -name CVS -o -name Makefile -o -name '*~' -o -name '*#*' -o -name 'CMakeFiles' -o -name '*.log' -o -name '*.tmp' -o -name '*.pyc' -o -name '*.bak' -o -name '*.BAK' -o -name geographiclib.js \)| \ + xargs rm -rf ; \ + echo include Makefile.mk > $(distdir)/Makefile ; \ + sed -e "s/Unconfigured/$(PACKAGE_VERSION)/" \ + -e "s/MAJOR .*/MAJOR ${GEOGRAPHICLIB_VERSION_MAJOR}/" \ + -e "s/MINOR .*/MINOR ${GEOGRAPHICLIB_VERSION_MINOR}/" \ + -e "s/PATCH .*/PATCH ${GEOGRAPHICLIB_VERSION_PATCH}/" \ + $(top_srcdir)/include/GeographicLib/Config.h > \ + $(distdir)/include/GeographicLib/Config.h +# Custom rules + +all-local: man doc +install-data-local: install-doc # install-matlab + +doc: man + $(MAKE) -C doc doc + +install-doc: + $(MAKE) -C doc install-doc + +man: + $(MAKE) -C man man + +# install-matlab: +# $(MAKE) -C matlab install-matlab + +.PHONY: doc install-doc man install-matlab install-python diff --git a/gtsam/3rdparty/GeographicLib/Makefile.in b/gtsam/3rdparty/GeographicLib/Makefile.in new file mode 100644 index 000000000..44520c36c --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/Makefile.in @@ -0,0 +1,832 @@ +# Makefile.in generated by automake 1.12.2 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2012 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Copyright (C) 2009, Francesco P. Lovergine +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +target_triplet = @target@ +subdir = . +DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(top_srcdir)/configure \ + $(top_srcdir)/include/GeographicLib/Config-ac.h.in AUTHORS \ + INSTALL NEWS config.guess config.sub depcomp install-sh \ + ltmain.sh missing +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/GeographicLib/Config-ac.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + cscope distdir dist dist-all distcheck +ETAGS = etags +CTAGS = ctags +CSCOPE = cscope +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi +am__post_remove_distdir = $(am__remove_distdir) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +DIST_TARGETS = dist-gzip +distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +COL = @COL@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOXYGEN = @DOXYGEN@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GEOGRAPHICLIB_VERSION_MAJOR = @GEOGRAPHICLIB_VERSION_MAJOR@ +GEOGRAPHICLIB_VERSION_MINOR = @GEOGRAPHICLIB_VERSION_MINOR@ +GEOGRAPHICLIB_VERSION_PATCH = @GEOGRAPHICLIB_VERSION_PATCH@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_AGE = @LT_AGE@ +LT_CURRENT = @LT_CURRENT@ +LT_REVISION = @LT_REVISION@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +POD2HTML = @POD2HTML@ +POD2MAN = @POD2MAN@ +POW_LIB = @POW_LIB@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = foreign +ACLOCAL_AMFLAGS = -I m4 +SUBDIRS = src man tools doc include matlab python cmake examples +EXTRA_DIST = AUTHORS 00README.txt LICENSE.txt NEWS INSTALL \ + Makefile.mk CMakeLists.txt windows maxima doc legacy java dotnet + +all: all-recursive + +.SUFFIXES: +am--refresh: Makefile + @: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +include/GeographicLib/Config-ac.h: include/GeographicLib/stamp-h1 + @if test ! -f $@; then rm -f include/GeographicLib/stamp-h1; else :; fi + @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) include/GeographicLib/stamp-h1; else :; fi + +include/GeographicLib/stamp-h1: $(top_srcdir)/include/GeographicLib/Config-ac.h.in $(top_builddir)/config.status + @rm -f include/GeographicLib/stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status include/GeographicLib/Config-ac.h +$(top_srcdir)/include/GeographicLib/Config-ac.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f include/GeographicLib/stamp-h1 + touch $@ + +distclean-hdr: + -rm -f include/GeographicLib/Config-ac.h include/GeographicLib/stamp-h1 + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool config.lt + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done +cscopelist-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +cscope: cscope.files + test ! -s cscope.files \ + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) + +clean-cscope: + -rm -f cscope.files + +cscope.files: clean-cscope cscopelist-recursive cscopelist + +cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__post_remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__post_remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz + $(am__post_remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz + $(am__post_remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__post_remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__post_remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__post_remove_distdir) + +dist dist-all: + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' + $(am__post_remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod u+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__post_remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile all-local +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr \ + distclean-libtool distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: install-data-local + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \ + cscopelist-recursive ctags-recursive install-am install-strip \ + tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am all-local am--refresh check check-am clean \ + clean-cscope clean-generic clean-libtool cscope cscopelist \ + cscopelist-recursive ctags ctags-recursive dist dist-all \ + dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar dist-tarZ \ + dist-xz dist-zip distcheck distclean distclean-generic \ + distclean-hdr distclean-libtool distclean-tags distcleancheck \ + distdir distuninstallcheck dvi dvi-am html html-am info \ + info-am install install-am install-data install-data-am \ + install-data-local install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am + + +dist-hook: + rm -rf $(distdir)/doc/html $(distdir)/doc/manpages ; \ + find $(distdir)/maxima -type f -name '*.lsp' | xargs rm -rf ; \ + rm -rf $(distdir)/java/targets ; \ + find $(distdir)/java -type f -name '*.class' | xargs rm -rf ; \ + find $(distdir)/windows -mindepth 1 -type d | xargs rm -rf ; \ + find $(distdir)/windows -type f \ + ! \( -name '*.sln' -o -name '*.vc*proj' -o -name '*.mk' \)| \ + xargs rm -f ; \ + find $(distdir) \ + \( -name .svn -o -name '.git*' -o -name CVS -o -name Makefile -o -name '*~' -o -name '*#*' -o -name 'CMakeFiles' -o -name '*.log' -o -name '*.tmp' -o -name '*.pyc' -o -name '*.bak' -o -name '*.BAK' -o -name geographiclib.js \)| \ + xargs rm -rf ; \ + echo include Makefile.mk > $(distdir)/Makefile ; \ + sed -e "s/Unconfigured/$(PACKAGE_VERSION)/" \ + -e "s/MAJOR .*/MAJOR ${GEOGRAPHICLIB_VERSION_MAJOR}/" \ + -e "s/MINOR .*/MINOR ${GEOGRAPHICLIB_VERSION_MINOR}/" \ + -e "s/PATCH .*/PATCH ${GEOGRAPHICLIB_VERSION_PATCH}/" \ + $(top_srcdir)/include/GeographicLib/Config.h > \ + $(distdir)/include/GeographicLib/Config.h +# Custom rules + +all-local: man doc +install-data-local: install-doc # install-matlab + +doc: man + $(MAKE) -C doc doc + +install-doc: + $(MAKE) -C doc install-doc + +man: + $(MAKE) -C man man + +# install-matlab: +# $(MAKE) -C matlab install-matlab + +.PHONY: doc install-doc man install-matlab install-python + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/gtsam/3rdparty/GeographicLib/Makefile.mk b/gtsam/3rdparty/GeographicLib/Makefile.mk new file mode 100644 index 000000000..e9d2b6368 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/Makefile.mk @@ -0,0 +1,51 @@ +MAKEFILE := $(lastword $(MAKEFILE_LIST)) +MAKE := $(MAKE) -f $(MAKEFILE) +SUBDIRS = src man tools doc +ALLDIRS = include $(SUBDIRS) maxima matlab python cmake + +all: src man tools + +$(SUBDIRS): + $(MAKE) -C $@ + +tools: src +install: install-headers install-lib install-tools install-man install-cmake \ + install-doc install-matlab install-python +clean: clean-src clean-tools clean-doc clean-man clean-matlab clean-python + +install-headers: + $(MAKE) -C include install +install-lib: + $(MAKE) -C src install +install-tools: src + $(MAKE) -C tools install +install-cmake: + $(MAKE) -C cmake install +install-doc: doc + $(MAKE) -C doc install +install-man: man + $(MAKE) -C man install +install-matlab: matlab + $(MAKE) -C matlab install +install-python: python + $(MAKE) -C python install +clean-src: + $(MAKE) -C src clean +clean-tools: + $(MAKE) -C tools clean +clean-doc: + $(MAKE) -C doc clean +clean-man: + $(MAKE) -C man clean +clean-matlab: matlab + $(MAKE) -C matlab clean +clean-python: python + $(MAKE) -C python clean + +VERSION:=$(shell grep '\bVERSION=' configure | cut -f2 -d\' | head -1) + +.PHONY: all $(SUBDIRS) install \ + install-headers install-lib install-tools install-cmake install-man \ + install-matlab install-python \ + clean clean-src clean-tools clean-doc clean-man clean-matlab \ + clean-python diff --git a/gtsam/3rdparty/GeographicLib/NEWS b/gtsam/3rdparty/GeographicLib/NEWS new file mode 100644 index 000000000..1d5614ce7 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/NEWS @@ -0,0 +1,886 @@ +A reverse chronological list of changes to GeographicLib + +For more information, see + + http://geographiclib.sourceforge.net/ + +The current version of the library is 1.34. + +Changes between 1.34 (released 2013-12-11) and 1.33 versions: + + * Many changes in cmake support: + + minimum version of cmake needed increased to 2.8.4 (which was + released in 2011-02); + + allow building both shared and static librarys with + -D GEOGRAPHICLIB_LIB_TYPE=BOTH; + + both shared and static libraries (Release plus Debug) included in + binary installer; + + find_package uses COMPONENTS and GeographicLib_USE_STATIC_LIBS to + select the library to use; + + find_package version checking allows nmake and Visual Studio + generators to interoperate on Windows; + + find_package (GeographicLib ...) requires that GeographicLib be + capitalized correctly; + + on Unix/Linux, don't include the version number in directory for + the cmake configuration files; + + defaults for GEOGRAPHICLIB_DOCUMENTATION and + BUILD_NETGEOGRAPHICLIB are now OFF; + + the GEOGRAPHICLIB_EXAMPLES configuration parameter is no longer + used; cmake always configures to build the examples, but they are + not built by default (instead build targets: exampleprograms and + netexamples); + + matlab-all target renamed to matlabinterface; + + the configuration parameters PACKAGE_PATH and INSTALL_PATH are + now deprecated (use CMAKE_INSTALL_PREFIX instead); + + on Linux, the installed package is relocatable; + + on MacOSX, the installed utilities can find the shared library. + + * Use a more precise value for OSGB::CentralScale(). + + * Add Arc routines to python interface. + + * The Geod utility has been removed; the same functionality lives on + with GeodSolve (introduced in version 1.30). + +Changes between 1.33 (released 2013-10-08) and 1.32 versions: + + * Add NETGeographic .NET wrapper library (courtesy of Scott Heiman). + + * Make inspector functions in GeographicLib::Ellipsoid const. + + * Add Accumulator.cpp to instantiate GeographicLib::Accumulator. + + * Defer some of the initialization of GeographicLib::OSGB to when it + is first called. + + * Fix bug in autoconf builds under MacOS. + +Changes between 1.32 (released 2013-07-12) and 1.31 versions: + + * Generalize C interface for polygon areas to allow vertices to be + specified incrementally. + + * Fix way flags for C++11 support are determined. + +Changes between 1.31 (released 2013-07-01) and 1.30 versions: + + * Changes breaking binary compatibility (source compatibility is + maintained): + + overloaded versions of DMS::Encode, + EllipticFunction::EllipticFunction, and + GeoCoords::DMSRepresentation, have been eliminated by the use of + optional arguments; + + correct the declaration of first arg to UTMUPS::DecodeEPSG. + + * FIX BUG in GeographicLib::GravityCircle constructor (found by + Mathieu Peyréga) which caused bogus results for the gravity + disturbance and gravity anomaly vectors. (This only affected + calculations using GravityCircle. GravityModel calculations did not + suffer from this bug.) + + * Improvements to the build: + + add macros GEOGRAPHICLIB_VERSION_{MAJOR,MINOR,PATCH} to Config.h; + + fix documentation for new version of perlpod; + + improving setting of runtime path for Unix-like systems with + cmake; + + install PDB files when compiling with Visual Studio to aid + debugging; + + Windows binary release now uses Matlab R2013a (64-bit) and uses + the -largeArrayDims option. + + * Changes to the geodesic routines: + + add Java implementation of the geodesic routines (thanks to Skip + Breidbach for the maven support); + + FIX BUG: avoid altering input args in Fortran implementation; + + more systematic treatment of very short geodesic; + + fixes to python port so that they work with version 3.x, in + addition to 2.x (courtesy of Amato); + + accumulate the perimeter and area of polygons via a double-wide + accumulator in Fortran, C, and Matlab implementations (this is + already included in the other implementations); + + port PolygonArea::AddEdge and PolygonArea::TestEdge to JavaScript + and python interfaces; + + include documentation on short geodesics. + + * Unix scripts for downloading datasets, + geographiclib-get-{geoids,gravity,magnetic}, skip already download + models by default, unless the -f flag is given. + + * FIX BUGS: meridian convergence and scale returned by + TransverseMercatorExact was wrong at a pole. + + * Improve efficiency of MGRS::Forward by avoiding the calculation of + the latitude if possible (adapting an idea of Craig Rollins). + + * Fixes to the way the Matlab interface routines are built (thanks to + Phil Miller and Chris F.). + +Changes between 1.30 (released 2013-02-27) and 1.29 versions: + + * Changes to geodesic routines: + + fix BUG in fail-safe mechanisms in Geodesic::Inverse; + + the command line utility Geod is now called GeodSolve; + + allow addition of polygon edges in PolygonArea; + + add full Maxima implementation of geodesic algorithms. + +Changes between 1.29 (released 2013-01-16) and 1.28 versions: + + * Changes to allow compilation with libc++ (courtesy of Kal Conley). + + * Add description of geodesics on triaxial ellipsoid to + documentation. + + * Update journal reference for "Algorithms for geodesics". + +Changes between 1.28 (released 2012-12-11) and 1.27 versions: + + * Changes to geodesic routines: + + compute longitude difference exactly; + + hence fix BUG in area calculations for polygons with vertices very + close to the prime meridian; + + fix BUG is geoddistance.m where the value of m12 was wrong for + meridional geodesics; + + add Matlab implementations of the geodesic projections; + + remove unneeded special code for geodesics which start at a pole; + + include polygon area routine in C and Fortran implementations; + + add doxygen documentation for C and Fortran libraries. + +Changes between 1.27 (released 2012-11-29) and 1.26 versions: + + * Changes to geodesic routines: + + add native Matlab implementations: geoddistance.m, geodreckon.m, + geodarea.m; + + add C and Fortran implementations; + + improve the solution of the direct problem so that the series + solution is accurate to round off for |f| < 1/50; + + tighten up the convergence criteria for solution of the inverse + problem; + + no longer signal failures of convergence with NaNs (a slightly + less accurate answer is returned instead). + + * Fix DMS::Decode double rounding BUG. + + * On MacOSX platforms with the cmake configuration, universal + binaries are built. + +Changes between 1.26 (released 2012-10-22) and 1.25 versions: + + * Replace the series used for geodesic areas by one with better + convergence (this only makes an appreciable difference if |f| > + 1/150). + +Changes between 1.25 (released 2012-10-16) and 1.24 versions: + + * Changes to geodesic calculations: + + restart Newton's method in Geodesic::Inverse when it goes awry; + + back up Newton's method with the bisection method; + + Geodesic::Inverse now converges for any value of f; + + add GeodesicExact and GeodesicLineExact which are formulated in + terms of elliptic integrals and thus yield accurate results + even for very eccentric ellipsoids. + + the -E option to Geod invokes these exact classes. + + * Add functionality to EllipticFunction: + + add all the traditional elliptic integrals; + + remove restrictions on argument range for incomplete elliptic + integrals; + + allow imaginary modulus for elliptic integrals and elliptic + functions; + + make interface to the symmetric elliptic integrals public. + + * Allow GeographicLib::Ellipsoid to be copied. + + * Changes to the build tools: + + cmake uses folders in Visual Studio to reduce clutter; + + allow precision of reals to be set in cmake; + + fail gracefully in the absence of pod documentation tools; + + remove support for maintainer tasks in Makefile.mk. + +Changes between 1.24 (released 2012-09-22) and 1.23 versions: + + * Allow the specification of the hemisphere in UTM coordinates in + order to provide continuity across the equator: + + add UTMUPS::Transfer; + + add GeoCoords::UTMUPSRepresentation(bool, int) and + GeoCoords::AltUTMUPSRepresentation(bool, int); + + use the hemisphere letter in, e.g., GeoConvert -u -z 31N. + + * Add UTMUPS::DecodeEPSG and UTMUPS::EncodeEPSG. + + * cmake changes: + + restore support for cmake 2.4.x; + + explicitly check version of doxygen. + + * Fix building under cygwin. + + * Document restrictions on f in the Introduction. + + * Fix python interface to work with version 2.6.x. + +Changes between 1.23 (released 2012-07-17) and 1.22 versions: + + * Documentation changes: + + remove html documentation from distribution and use web links if + doxygen is not available; + + use doxygen tags to document exceptions; + + begin migrating the documentation to using Greek letters where + appropriate (requires doxygen 1.8.1.2 or later). + + * Add Math::AngNormalize and Math::AngNormalize2; the allowed range + for longitudes and azimuths widened to [-540d, 540d). + + * DMS::Decode understands more unicode symbols. + + * Geohash uses geohash code "nan" to stand for not a number. + + * Add Ellipsoid::NormalCurvatureRadius. + + * Various fixes in LambertConformalConic, TransverseMercator, + PolarStereographic, and Ellipsoid to handle reverse projections of + points near infinity. + + * Fix programming blunder in LambertConformalConic::Forward (incorrect + results were returned if the tangent latitude was negative). + +Changes between 1.22 (released 2012-05-27) and 1.21 versions: + + * Add Geohash and Ellipsoid classes. + + * Fix bug in AlbersEqualArea of very prolate ellipsoids (b^2 > 2 + a^2). + + * cmake changes: + + optionally use PACKAGE_PATH and INSTALL_PATH to determine + CMAKE_INSTALL_PREFIX; + + use COMMON_INSTALL_PATH to determine layout of installation + directories; + + as a consequence, the installation paths for the documentation, + and python and matlab interfaces are shortened for Windows; + + zip source distribution now uses DOS line endings; + + the tests work in debug mode for Windows; + + default setting of GEOGRAPHICLIB_DATA does not depend on + CMAKE_INSTALL_PREFIX; + + add a cmake configuration for build tree. + +Changes between 1.21 (released 2012-04-25) and 1.20 versions: + + * Support colon-separated DMS output: + + DMS::Encode and GeoCoords::DMSRepresentation generalized; + + GeoConvert and Geod now accept a -: option. + + * GeoidEval does not print the gradient of the geoid height by default + (because it's subject to large errors); give the -g option to get + the gradient printed. + + * Work around optimization BUG in GeographicLib::Geodesic::Inverse + with tdm mingw g++ version 4.6.1. + + * autoconf fixed to ensure that that out-of-sources builds work; + document this as the preferred method of using autoconf. + + * cmake tweaks: + + simplify the configuration of doxygen; + + allow the Matlab compiler to be specified with the MATLAB_COMPILER option. + +Changes between 1.20 (released 2012-03-23) and 1.19 versions: + + * cmake tweaks: + + improve find_package's matching of compiler versions; + + CMAKE_INSTALL_PREFIX set from CMAKE_PREFIX_PATH if available; + + add "x64" to the package name for the 64-bit binary installer; + + fix cmake warning with Visual Studio Express. + + * Fix SphericalEngine to deal with aggessive iterator checking by + Visual Studio. + + * Fix transcription BUG is Geodesic.js. + +Changes between 1.19 (released 2012-03-13) and 1.18 versions: + + * Slight improvement in Geodesic::Inverse for very short lines. + + * Fix argument checking tests in MGRS::Forward. + + * Add --comment-delimiter and --line-separator options to the utility + programs. + + * Add installer for 64-bit Windows; the compiled Matlab interface is + supplied with the Windows 64-bit installer only. + +Changes between 1.18 (released 2012-02-18) and 1.17 versions: + + * Improve documentation on configuration with cmake. + + * cmake's find_package ensures that the compiler versions match on Windows. + + * Improve documentation on compiling Matlab interface. + + * Binary installer for Windows installs under C:/pkg-vc10 by default. + +Changes between 1.17 (released 2012-01-21) and 1.16 versions: + + * Work around optimization BUG in Geodesic::Inverse with g++ version + 4.4.0 (mingw). + + * Fix BUG in argument checking with OSGB::GridReference. + + * Fix missing include file in SphericalHarmonic2. + + * Add simple examples of usage for each class. + + * Add internal documenation to the cmake configuration files. + +Changes between 1.16 (released 2011-12-07) and 1.15 versions: + + * Add calculation of the earth's gravitational field: + + add NormalGravity GravityModel and GravityCircle classes; + + add command line utility Gravity; + + add Gravity models; + + add Constants::WGS84_GM(), Constants::WGS84_omega(), and similarly + for GRS80. + + * Build uses GEOGRAPHICLIB_DATA to specify a common parent directory + for geoid, gravity, and magnetic data (instead of + GEOGRAPHICLIB_GEOID_PATH, etc.); similarly, GeoidEval, Gravity, and + MagneticField, look at the environment variable GEOGRAPHICLIB_DATA + to locate the data. + + * Spherical harmonic software changes: + + capitalize enums SphericalHarmonic::FULL and + SphericalHarmonic::SCHMIDT (the lower case names are retained but + deprecated); + + optimize the sum by using a static table of square roots which is + updated by SphericalEngine::RootTable; + + avoid overflow for high degree models. + + * Magnetic software fixes: + + fix documentation BUG in MagneticModel::Circle; + + make MagneticModel constructor explicit; + + provide default MagneticCircle constructor; + + add additional inspector functions to MagneticCircle; + + add -c option to MagneticField; + + default height to zero in MagneticField. + +Changes between 1.15 (released 2011-11-08) and 1.14 versions: + + * Add calculation of the earth's magnetic field: + + add MagneticModel and MagneticCircle classes; + + add command line utility MagneticField; + + add Magnetic models; + + add Installing the magnetic field models; + + add The format of the magnetic model files; + + add classes SphericalEngine, CircularEngine, SphericalHarmonic, + SphericalHarmonic1, and SphericalHarmonic2. which sum spherical + harmonic series. + + * Add Utility class to support I/O and date manipulation. + + * Cmake configuration includes a _d suffix on the library built in + debug mode. + + * For the Python package, include manifest and readme files; don't + install setup.py for non-Windows systems. + + * Include Doxygen tag file in distribution as doc/html/Geographic.tag. + +Changes between 1.14 (released 2011-09-30) and 1.13 versions: + + * Ensure that geographiclib-config.cmake is relocatable. + + * Allow more unicode symbols to be used in DMS::Decode. + + * Modify GeoidEval so that it can be used to convert the height datum + for LIDAR data. + + * Modest speed-up of Geodesic::Inverse. + + * Changes in python interface: + + FIX BUG in transcription of Geodesic::Inverse; + + include setup.py for easy installation; + + python only distribution is available at + http://pypi.python.org/pypi/geographiclib + + * Supply a minimal Qt qmake project file for library + src/Geographic.pro. + +Changes between 1.13 (released 2011-08-13) and 1.12 versions: + + * Changes to I/O: + + allow : (colon) to be used as a DMS separator in DMS::Decode; + + also accept Unicode symbols for degrees, minutes, and seconds + (coded as UTF-8); + + provide optional swaplatlong argument to various DMS and GeoCoords + functions to make longitude precede latitude; + + GeoConvert now has a -w option to make longitude precede latitude + on input and output; + + include a JavaScript version of DMS. + + * Slight improvement in starting guess for solution of geographic + latitude in terms of conformal latitude in TransverseMercator, + TransverseMercatorExact, and LambertConformalConic. + + * For most classes, get rid of const member variables so that the + default copy assignment works. + + * Put Math and Accumulator in their own header files. + + * Remove unused "fast" GeographicLib::Accumulator method. + + * Reorganize the Python interface. + + * Withdraw some deprecated routines. + + * cmake changes: + + include FindGeographic.cmake in distribution; + + building with cmake creates and installs + geographiclib-config.cmake; + + better support for building a shared library under Windows. + +Changes between 1.12 (released 2011-07-21) and 1.11 versions: + + * Change license to MIT/X11. + + * Add GeographicLib::PolygonArea class and equivalent Matlab function. + + * Provide JavaScript and Python implementations of geodesic routines. + + * Fix Windows installer to include runtime dlls for Matlab. + + * Fix (innocuous) unassigned variable in Geodesic::GenInverse. + + * Geodesic routines in Matlab return a12 as first column of aux return + value (incompatible change). + + * A couple of code changes to enable compilation with Visual Studio + 2003. + +Changes between 1.11 (released 2011-06-27) and 1.10 versions: + + * Changes to Planimeter: + + add -l flag to Planimeter for polyline calculations; + + trim precision of area to 3 decimal places; + + FIX BUG with pole crossing edges (due to compiler optimization). + + * Geod no longer reports the reduced length by default; however the -f + flag still reports this and in addition gives the geodesic scales + and the geodesic area. + + * FIX BUGS (compiler-specific) in inverse geodesic calculations. + + * FIX BUG: accommodate tellg() returning -1 at end of string. + + * Change way flattening of the ellipsoid is specified: + + constructors take f argument which is taken to be the flattening + if f < 1 and the inverse flattening otherwise (this is a + compatible change for spheres and oblate ellipsoids, but it is an + INCOMPATIBLE change for prolate ellipsoids); + + the -e arguments to the Utility Programs are handled similarly; in + addition, simple fractions, e.g., 1/297, can be used for the + flattening; + + introduce Constants::WGS84_f() for the WGS84 flattening (and + deprecate Constants::WGS84_r() for the inverse flattening); + + most classes have a Flattening() member function; + + InverseFlattening() has been deprecated (and now returns inf for a + sphere, instead of 0). + +Changes between 1.10 (released 2011-06-11) and 1.9 versions: + + * Improvements to Matlab/Octave interface: + + add {geocentric,localcartesian}{forward,reverse}; + + make geographiclibinterface more general; + + install the source for the interface; + + cmake compiles the interface if ENABLE_MATLAB=ON; + + include compiled interface with Windows binary installer. + + * Fix various configuration issues + + autoconf did not install Config.h; + + cmake installed in man/man1 instead of share/man/man1; + + cmake did not set the rpath on the tools. + +Changes between 1.9 (released 2011-05-28) and 1.8 versions: + + * FIX BUG in area returned by Planimeter for pole encircling polygons. + + * FIX BUG in error message reported when DMS::Decode reads the string + "5d.". + + * FIX BUG in AlbersEqualArea::Reverse (lon0 not being used). + + * Ensure that all exceptions thrown in the Utility Programs are + caught. + + * Avoid using catch within GeographicLib::DMS. + + * Move Accumulator class from Planimeter.cpp to Constants.hpp. + + * Add Math::sq. + + * Simplify Installing the geoid datasets + + add geographiclib-get-geoids for Unix-like systems; + + add installers for Windows. + + * Provide cmake support: + + build binary installer for Windows; + + include regression tests; + + add --input-string, --input-file, --output-file options to the + Utility Programs to support tests. + + * Rename utility EquidistantTest as GeodesicProj and + TransverseMercatorTest as TransverseMercatorProj. + + * Add ConicProj. + + * Reverse the initial sense of the -s option for Planimeter. + + * Migrate source from subversion to git. + +Changes between 1.8 (released 2011-02-22) and 1.7 versions: + + * Optionally return rotation matrix from GeographicLib::Geocentric and + GeographicLib::LocalCartesian. + + * For the Utility Programs, supply man pages, -h prints the synopsis, + --help prints the man page, --version prints the version. + + * Use accurate summation in Planimeter. + + * Add 64-bit targets for Visual Studio 2010. + + * Use templates for defining math functions and some constants. + + * GeographicLib::Geoid updates + + Add GeographicLib::Geoid::DefaultGeoidPath and + GeographicLib::Geoid::DefaultGeoidName; + + GeoidEval uses environment variable GEOID_NAME as the default + geoid; + + Add --msltohae and --haetomsl as GeoidEval options (and don't + document the single hyphen versions). + + * Remove documentation that duplicates papers on transverse Mercator + and geodesics. + +Changes between 1.7 (released 2010-12-21) and 1.6 versions: + + * FIX BUG in scale returned by GeographicLib::LambertConformalConic::Reverse. + + * Add GeographicLib::AlbersEqualArea projection. + + * Library created by Visual Studio is Geographic.lib instead of + GeographicLib.lib (compatible with makefiles). + + * Make classes NaN aware. + + * Use cell arrays for MGRS strings in Matlab. + + * Add solution/project files for Visual Studio 2010 (32-bit only). + + * Use C++11 static_assert and math functions, if available. + +Change between 1.6 (released 2010-11-23) and 1.5 versions: + + * FIX BUG introduced in GeographicLib::Geoid in version 1.5 (found by + Dave Edwards). + +Changes between 1.5 (released 2010-11-19) and 1.4 versions: + + * Improve area calculations for small polygons. + + * Add -s and -r flags to Planimeter utility. + + * Improve the accuracy of GeographicLib::LambertConformalConic using + divided differences. + + * FIX BUG in meridian convergence returned by + LambertConformalConic::Forward. + + * Add optional threadsafe parameter to GeographicLib::Geoid + constructor. WARNING: This changes may break binary compatibility + with previous versions of GeographicLib. However, the library is + source compatible. + + * Add GeographicLib::OSGB. + + * Matlab and Octave interfaces to GeographicLib::UTMUPS, + GeographicLib::MGRS, GeographicLib::Geoid, GeographicLib::Geodesic + provided. + + * Minor changes + + explicitly turn on optimization in Visual Studio 2008 projects; + + add missing dependencies in some Makefiles; + + move pi() and degree() from GeographicLib::Constants to + GeographicLib::Math; + + introduce GeographicLib::Math::extended type to aid testing; + + add GeographicLib::Math::epi() and GeographicLib::Math::edegree(). + + fixes to compile under cygwin; + + tweak expression used to find latitude from conformal latitude. + +Changes between 1.4 (released 2010-09-12) and 1.3 versions: + + * Changes to GeographicLib::Geodesic and GeographicLib::GeodesicLine: + + FIX BUG in Geodesic::Inverse with prolate ellipsoids; + + add area computations to Geodesic::Direct and Geodesic::Inverse; + + add geodesic areas to geodesic test set; + + make GeodesicLine constructor public; + + change longitude series in Geodesic into Helmert-like form; + + ensure that equatorial geodesics have cos(alpha0) = 0 identically; + + generalize interface for Geodesic and GeodesicLine; + + split GeodesicLine and Geodesic into different files; + + signal convergence failure in Geodesic::Inverse with NaNs; + + deprecate one function in Geodesic and two functions in + GeodesicLine; + + deprecate -n option for Geod. + WARNING: These changes may break binary compatibility with previous + versions of GeographicLib. However, the library is source + compatible (with the proviso that GeographicLib/GeodesicLine.hpp may + now need to be included). + + * Add the Planimeter utility for computing the areas of + geodesic polygons. + + * Improve iterative solution of GeographicLib::Gnomonic::Reverse. + + * Add GeographicLib::Geoid::ConvertHeight. + + * Add -msltohae, -haetomsl, and -z options to \ref geoideval. + + * Constructors check that minor radius is positive. + + * Add overloaded Forward and Reverse functions to the projection + classes which don't return the convergence (or azimuth) and scale. + + * Document function parameters and return values consistently. + +Changes between 1.3 (released 2010-07-21) and 1.2 versions: + + * Add GeographicLib::Gnomonic, the ellipsoid generalization of the + gnomonic projection. + + * Add -g and -e options to Equidistanttest. + + * Use fixed-point notation for output from Cartconvert, + Equidistanttest, Transversemercatortest. + + * PolarStereographic: + + Improved conversion to conformal coordinates; + + Fix bug with scale at opposite pole; + + Complain if latitude out of range in SetScale. + + * Add GeographicLib::Math::NaN(). + + * Add long double version of hypot for Windows. + + * Add EllipticFunction::E(real). + + * Update references to Geotrans in MGRS documentation. + + * Speed up tmseries.mac. + +Changes between 1.2 (released 2010-05-21) and 1.1 versions: + + * FIX BUGS in GeographicLib::Geodesic, + + wrong azimuth returned by Direct if point 2 is on a pole; + + Inverse sometimes fails with very close points. + + * Improve calculation of scale in GeographicLib::CassiniSoldner, + + add GeodesicLine::Scale, GeodesicLine::EquatorialAzimuth, and + GeodesicLine::EquatorialArc; + + break friend connection between CassiniSoldner and Geodesic. + + * Add DMS::DecodeAngle and DMS::DecodeAzimuth. Extend DMS::Decode and + DMS::Encode to deal with distances. + + * Code and documentation changes in Geodesic and Geocentric for + consistency with the forthcoming paper on geodesics. + + * Increase order of series using in Geodesic to 6 (full accuracy + maintained for ellipsoid flattening < 0.01). + + * Macro __NO_LONG_DOUBLE_MATH to disable use of long double. + + * Correct declaration of Math::isfinite to return a bool. + + * Changes in the Utility Programs, + + improve error reporting when parsing command line arguments; + + accept latitudes and longitudes in decimal degrees or degrees, + minutes, and seconds, with optional hemisphere designators; + + GeoConvert -z accepts zone or zone+hemisphere; + + GeoidEval accepts any of the input formats used by GeoConvert; + + CartConvert allows the ellipsoid to be specified with -e. + +Changes between 1.1 (released 2010-02-09) and 1.0 versions: + + * FIX BUG (introduced in 2009-03) in EllipticFunction::E(sn,cn,dn). + + * Increase accuracy of scale calculation in TransverseMercator and + TransverseMercatorExact. + + * Code and documentation changes for consistency with arXiv:1002.1417 + +Changes between 1.0 (released 2010-01-07) and 2009-11 versions: + + * Add autoconf configuration files. + + * BUG FIX: Improve initial guess for Newton's method in + PolarStereographic::Reverse. (Previously this failed to converge + when the co-latitude exceeded about 130 deg.) + + * Constructors for TransverseMercator, TransverseMercatorExact, + PolarStereographic, Geocentric, and Geodesic now check for obvious + problems with their arguments and throw an exception if necessary. + + * Most classes now include inspector functions such as MajorRadius() + so that you can determine how instances were constructed. + + * Add GeographicLib::LambertConformalConic class. + + * Add GeographicLib::PolarStereographic::SetScale to allow the + latitude of true scale to be specified. + + * Add solution and project files for Visual Studio 2008. + + * Add GeographicLib::GeographicErr for exceptions. + + * GeographicLib::Geoid changes: + + BUG FIX: fix typo in GeographicLib::Geoid::Cache which could cause + a segmentation fault in some cases when the cached area spanned + the prime meridian. + + Include sufficient edge data to allow heights to be returned for + cached area without disk reads; + + Add inspector functions to query the extent of the cache. + +Changes between 2009-11 and 2009-10 versions: + + * Allow specification of "closest UTM zone" in GeographicLib::UTMUPS + and GeoConvert (via -t option). + + * Utilities now complain is there are too many tokens on input lines. + + * Include real-to-real versions of GeographicLib::DMS::Decode and + GeographicLib::DMS::Encode. + + * More house-cleaning changes: + + Ensure that functions which return results through reference + arguments do not alter the arguments when an exception is thrown. + + Improve accuracy of GeographicLib::MGRS::Forward. + + Include more information in some error messages. + + Improve accuracy of inverse hyperbolic functions. + + Fix the way GeographicLib::Math functions handle different + precisions. + +Changes between 2009-10 and 2009-09 versions: + + * Change web site to http://geographiclib.sourceforge.net + + * Several house-cleaning changes: + + Change from the a flat directory structure to a more easily + maintained one. + + Introduce Math class for common mathematical functions (in + Constants.hpp). + + Use Math::real as the type for all real quantities. By default this + is typedef'ed to double; and the library should be installed this + way. + + Eliminate const reference members of AzimuthalEquidistant, + CassiniSoldner and LocalCartesian so that they may be copied. + + Make several constructors explicit. Disallow some constructors. + Disallow copy constructor/assignment for Geoid. + + Document least square formulas in Geoid.cpp. + + Use unsigned long long for files positions of geoid files in Geoid. + + Introduce optional mgrslimits argument in UTMUPS::Forward and + UTMUPS::Reverse to enforce stricter MGRS limits on eastings and + northings.in + + Add 64-bit targets in Visual Studio project files. + +Changes between 2009-09 and 2009-08 versions: + + * Add GeographicLib::Geoid and GeoidEval utility. + +Changes between 2009-08 and 2009-07 versions: + + * Add GeographicLib::CassiniSoldner class and EquidistantTest utility. + + * Fix bug in GeographicLib::Geodesic::Inverse where NaNs were + sometimes returned. + + * INCOMPATIBLE CHANGE: AzimuthalEquidistant now returns the reciprocal + of the azimuthal scale instead of the reduced length. + + * Add -n option to GeoConvert. + +Changes between 2009-07 and 2009-06 versions: + + * Speed up the series inversion code in tmseries.mac and geod.mac. + + * Reference Borkowski in section on Geocentric coordinates. + +Changes between 2009-06 and 2009-05 versions: + + * Add routines to decode and encode zone+hemisphere to GeographicLib::UTMUPS. + + * Clean up code in GeographicLib::Geodesic. + +Changes between 2009-05 and 2009-04 versions: + + * Improvements to GeographicLib::Geodesic: + + more economical series expansions, + + return reduced length (as does the Geod utility), + + improved calculation of starting point for inverse method, + + use reduced length to give derivative for Newton's method. + + * Add AzimuthalEquidistant class. + + + Make GeographicLib::Geocentric, GeographicLib::TransverseMercator, + and GeographicLib::PolarStereographic classes work with prolate + ellipsoids. + + * CartConvert checks its inputs more carefully. + + * Remove reference to defunct Constants.cpp from GeographicLib.vcproj. + +Changes between 2009-04 and 2009-03 versions: + + * Use compile-time constants to select the order of series in + GeographicLib::TransverseMercator. + + * 2x unroll of Clenshaw summation to avoid data shuffling. + + * Simplification of GeographicLib::EllipticFunction::E. + + * Use STATIC_ASSERT for compile-time checking of constants. + + * Improvements to GeographicLib::Geodesic: + + compile-time option to change order of series used, + + post maxima code for generating the series, + + tune the order of series for double, + + improvements in the selection of starting points for Newton's + method, + + accept and return spherical arc lengths, + + works with both oblate and prolate spheroids, + + add -a, -e, -b options to the Geod utility. + +Changes between 2009-03 and 2009-02 versions: + + * Add GeographicLib::Geodesic and the Geod utility. + + * Declare when no exceptions are thrown by functions. + + * Minor changes to GeographicLib::DMS class. + + * Use invf = 0 to mean a sphere in constructors to some classes. + + * The makefile creates a library and includes an install target. + + * Rename GeographicLib::ECEF to GeographicLib::Geocentric, ECEFConvert + to CartConvert. + + * Use inline functions to define constant doubles in Constants.hpp. + +Changes between 2009-02 and 2009-01 versions: + + * Fix documentation of constructors (flattening -> inverse + flattening). + + * Use std versions of math functions. + + * Add ECEF and LocalCartesian classes and ECEFConvert utility. + + * Gather the documentation on the utility programs onto one page. diff --git a/gtsam/3rdparty/GeographicLib/aclocal.m4 b/gtsam/3rdparty/GeographicLib/aclocal.m4 new file mode 100644 index 000000000..ec1e5deda --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/aclocal.m4 @@ -0,0 +1,1018 @@ +# generated automatically by aclocal 1.12.2 -*- Autoconf -*- + +# Copyright (C) 1996-2012 Free Software Foundation, Inc. + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) + +# Copyright (C) 2002-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.12' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.12.2], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.12.2])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is '.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 10 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ([2.52])dnl + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 17 + +# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], + [$1], [CXX], [depcc="$CXX" am_compiler_list=], + [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], + [$1], [UPC], [depcc="$UPC" am_compiler_list=], + [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES. +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE([dependency-tracking], [dnl +AS_HELP_STRING( + [--enable-dependency-tracking], + [do not reject slow dependency extractors]) +AS_HELP_STRING( + [--disable-dependency-tracking], + [speeds up one-time build])]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 6 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each '.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 19 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[AC_DIAGNOSE([obsolete], +[$0: two- and three-arguments forms are deprecated. For more info, see: +http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation]) +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if( + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), + [ok:ok],, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +AM_MISSING_PROG([AUTOCONF], [autoconf]) +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +AM_MISSING_PROG([AUTOHEADER], [autoheader]) +AM_MISSING_PROG([MAKEINFO], [makeinfo]) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES([CC])], + [m4_define([AC_PROG_CC], + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES([CXX])], + [m4_define([AC_PROG_CXX], + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES([OBJC])], + [m4_define([AC_PROG_OBJC], + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl +dnl Support for Objective C++ was only introduced in Autoconf 2.65, +dnl but we still cater to Autoconf 2.62. +m4_ifdef([AC_PROG_OBJCXX], +[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], + [_AM_DEPENDENCIES([OBJCXX])], + [m4_define([AC_PROG_OBJCXX], + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) + +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST([install_sh])]) + +# Copyright (C) 2003-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- +# From Jim Meyering + +# Copyright (C) 1996-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 7 + +# AM_MAINTAINER_MODE([DEFAULT-MODE]) +# ---------------------------------- +# Control maintainer-specific portions of Makefiles. +# Default is to disable them, unless 'enable' is passed literally. +# For symmetry, 'disable' may be passed as well. Anyway, the user +# can override the default with the --enable/--disable switch. +AC_DEFUN([AM_MAINTAINER_MODE], +[m4_case(m4_default([$1], [disable]), + [enable], [m4_define([am_maintainer_other], [disable])], + [disable], [m4_define([am_maintainer_other], [enable])], + [m4_define([am_maintainer_other], [enable]) + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + dnl maintainer-mode's default is 'disable' unless 'enable' is passed + AC_ARG_ENABLE([maintainer-mode], + [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], + am_maintainer_other[ make rules and dependencies not useful + (and sometimes confusing) to the casual installer])], + [USE_MAINTAINER_MODE=$enableval], + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) + MAINT=$MAINTAINER_MODE_TRUE + AC_SUBST([MAINT])dnl +] +) + +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 7 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN(['missing' script is too old or missing]) +fi +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 6 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# -------------------- +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) + +# _AM_SET_OPTIONS(OPTIONS) +# ------------------------ +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 9 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken + alias in your environment]) + fi + if test "$[2]" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT([yes]) +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi +AC_CONFIG_COMMANDS_PRE( + [AC_MSG_CHECKING([that generated files are newer than configure]) + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + AC_MSG_RESULT([done])]) +rm -f conftest.file +]) + +# Copyright (C) 2001-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor 'install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in "make install-strip", and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# -------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004-2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of 'v7', 'ustar', or 'pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of '-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +m4_include([m4/libtool.m4]) +m4_include([m4/ltoptions.m4]) +m4_include([m4/ltsugar.m4]) +m4_include([m4/ltversion.m4]) +m4_include([m4/lt~obsolete.m4]) diff --git a/gtsam/3rdparty/GeographicLib/cmake/CMakeLists.txt b/gtsam/3rdparty/GeographicLib/cmake/CMakeLists.txt new file mode 100644 index 000000000..51e6c44b2 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/cmake/CMakeLists.txt @@ -0,0 +1,52 @@ +# config file support for find_package (GeographicLib). This needs to +# deal with two environments: (1) finding the build tree and (2) +# finding the install tree. geographiclib-config.cmake detects which +# situation it is handing by looking at @PROJECT_ROOT_DIR@. If +# this is an absolute path, it's in the build tree; otherwise, it's in the +# install tree. (Note that the whole install tree can be relocated.) + +# geographiclib-config.cmake for the build tree +set (PROJECT_ROOT_DIR "${PROJECT_BINARY_DIR}") +set (PROJECT_INCLUDE_DIRS + "${PROJECT_BINARY_DIR}/include" "${PROJECT_SOURCE_DIR}/include" ) +configure_file (project-config.cmake.in + "${PROJECT_BINARY_DIR}/${PROJECT_NAME_LOWER}-config.cmake" @ONLY) +configure_file (project-config-version.cmake.in + "${PROJECT_BINARY_DIR}/${PROJECT_NAME_LOWER}-config-version.cmake" @ONLY) +export (TARGETS ${PROJECT_SHARED_LIBRARIES} ${PROJECT_STATIC_LIBRARIES} ${TOOLS} + FILE "${PROJECT_BINARY_DIR}/${PROJECT_NAME_LOWER}-depends.cmake") + +# geographiclib-config.cmake for the install tree. It's installed in +# ${INSTALL_CMAKE_DIR} and @PROJECT_ROOT_DIR@ is the relative +# path to the root from there. (Note that the whole install tree can +# be relocated.) +if (COMMON_INSTALL_PATH) + set (INSTALL_CMAKE_DIR "share/cmake/${PROJECT_NAME}") + set (PROJECT_ROOT_DIR "../../..") +else () + set (INSTALL_CMAKE_DIR "cmake") + set (PROJECT_ROOT_DIR "..") +endif () +# @PROJECT_INCLUDE_DIRS@ is not used in the install tree; reset +# it to prevent the source and build paths appearing in the installed +# config files +set (PROJECT_INCLUDE_DIRS) +configure_file (project-config.cmake.in + ${PROJECT_NAME_LOWER}-config.cmake @ONLY) +configure_file (project-config-version.cmake.in + ${PROJECT_NAME_LOWER}-config-version.cmake @ONLY) +install (FILES + "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME_LOWER}-config.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME_LOWER}-config-version.cmake" + DESTINATION "${INSTALL_CMAKE_DIR}") +# Make information about the cmake targets (the library and the tools) +# available. +install (EXPORT depends + FILE ${PROJECT_NAME_LOWER}-depends.cmake + DESTINATION "${INSTALL_CMAKE_DIR}") + +if (MSVC AND PACKAGE_DEBUG_LIBS) + install (FILES + "${PROJECT_BINARY_DIR}/cmake/CMakeFiles/Export/cmake/${PROJECT_NAME_LOWER}-depends-debug.cmake" + DESTINATION "${INSTALL_CMAKE_DIR}" CONFIGURATIONS Release) +endif () diff --git a/gtsam/3rdparty/GeographicLib/cmake/FindGeographicLib.cmake b/gtsam/3rdparty/GeographicLib/cmake/FindGeographicLib.cmake new file mode 100644 index 000000000..9c52b3e7f --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/cmake/FindGeographicLib.cmake @@ -0,0 +1,31 @@ +# Look for GeographicLib +# +# Set +# GEOGRAPHICLIB_FOUND = TRUE +# GeographicLib_INCLUDE_DIRS = /usr/local/include +# GeographicLib_LIBRARIES = /usr/local/lib/libGeographic.so +# GeographicLib_LIBRARY_DIRS = /usr/local/lib + +find_library (GeographicLib_LIBRARIES Geographic + PATHS "${CMAKE_INSTALL_PREFIX}/../GeographicLib/lib") + +if (GeographicLib_LIBRARIES) + get_filename_component (GeographicLib_LIBRARY_DIRS + "${GeographicLib_LIBRARIES}" PATH) + get_filename_component (_ROOT_DIR "${GeographicLib_LIBRARY_DIRS}" PATH) + set (GeographicLib_INCLUDE_DIRS "${_ROOT_DIR}/include") + set (GeographicLib_BINARY_DIRS "${_ROOT_DIR}/bin") + unset (_ROOT_DIR) + if (NOT EXISTS "${GeographicLib_INCLUDE_DIRS}/GeographicLib/Config.h") + unset (GeographicLib_INCLUDE_DIRS) + unset (GeographicLib_LIBRARIES) + unset (GeographicLib_LIBRARY_DIRS) + unset (GeographicLib_BINARY_DIRS) + endif () +endif () + +include (FindPackageHandleStandardArgs) +find_package_handle_standard_args (GeographicLib DEFAULT_MSG + GeographicLib_LIBRARY_DIRS GeographicLib_LIBRARIES GeographicLib_INCLUDE_DIRS) +mark_as_advanced (GeographicLib_LIBRARY_DIRS GeographicLib_LIBRARIES + GeographicLib_INCLUDE_DIRS) diff --git a/gtsam/3rdparty/GeographicLib/cmake/Makefile.am b/gtsam/3rdparty/GeographicLib/cmake/Makefile.am new file mode 100644 index 000000000..212e9f393 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/cmake/Makefile.am @@ -0,0 +1,14 @@ +# +# Makefile.am +# +# Copyright (C) 2011, Charles Karney + +cmakedir=$(datadir)/cmake/GeographicLib + +install: + $(INSTALL) -d $(DESTDIR)$(cmakedir) + $(INSTALL) -m 644 $(srcdir)/FindGeographicLib.cmake \ + $(DESTDIR)$(cmakedir) + +EXTRA_DIST = Makefile.mk CMakeLists.txt FindGeographicLib.cmake \ + project-config-version.cmake.in project-config.cmake.in diff --git a/gtsam/3rdparty/GeographicLib/cmake/Makefile.in b/gtsam/3rdparty/GeographicLib/cmake/Makefile.in new file mode 100644 index 000000000..a781b6583 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/cmake/Makefile.in @@ -0,0 +1,415 @@ +# Makefile.in generated by automake 1.12.2 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2012 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Copyright (C) 2011, Charles Karney +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +target_triplet = @target@ +subdir = cmake +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/GeographicLib/Config-ac.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +COL = @COL@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOXYGEN = @DOXYGEN@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GEOGRAPHICLIB_VERSION_MAJOR = @GEOGRAPHICLIB_VERSION_MAJOR@ +GEOGRAPHICLIB_VERSION_MINOR = @GEOGRAPHICLIB_VERSION_MINOR@ +GEOGRAPHICLIB_VERSION_PATCH = @GEOGRAPHICLIB_VERSION_PATCH@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_AGE = @LT_AGE@ +LT_CURRENT = @LT_CURRENT@ +LT_REVISION = @LT_REVISION@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +POD2HTML = @POD2HTML@ +POD2MAN = @POD2MAN@ +POW_LIB = @POW_LIB@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +cmakedir = $(datadir)/cmake/GeographicLib +EXTRA_DIST = Makefile.mk CMakeLists.txt FindGeographicLib.cmake \ + project-config-version.cmake.in project-config.cmake.in + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu cmake/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu cmake/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile +installdirs: +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am + + +install: + $(INSTALL) -d $(DESTDIR)$(cmakedir) + $(INSTALL) -m 644 $(srcdir)/FindGeographicLib.cmake \ + $(DESTDIR)$(cmakedir) + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/gtsam/3rdparty/GeographicLib/cmake/Makefile.mk b/gtsam/3rdparty/GeographicLib/cmake/Makefile.mk new file mode 100644 index 000000000..e747bdb02 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/cmake/Makefile.mk @@ -0,0 +1,13 @@ +DEST = $(PREFIX)/share/cmake/GeographicLib + +INSTALL=install -b + +all: + @: +install: + test -d $(DEST) || mkdir -p $(DEST) + $(INSTALL) -m 644 FindGeographicLib.cmake $(DEST) +clean: + @: + +.PHONY: all install clean diff --git a/gtsam/3rdparty/GeographicLib/cmake/project-config-version.cmake.in b/gtsam/3rdparty/GeographicLib/cmake/project-config-version.cmake.in new file mode 100644 index 000000000..2b20f0bc6 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/cmake/project-config-version.cmake.in @@ -0,0 +1,54 @@ +# Version checking for @PROJECT_NAME@ + +set (PACKAGE_VERSION "@PROJECT_VERSION@") +set (PACKAGE_VERSION_MAJOR "@PROJECT_VERSION_MAJOR@") +set (PACKAGE_VERSION_MINOR "@PROJECT_VERSION_MINOR@") +set (PACKAGE_VERSION_PATCH "@PROJECT_VERSION_PATCH@") + +if (NOT PACKAGE_FIND_NAME STREQUAL "@PROJECT_NAME@") + # Check package name (in particular, because of the way cmake finds + # package config files, the capitalization could easily be "wrong"). + # This is necessary to ensure that the automatically generated + # variables, e.g., _FOUND, are consistently spelled. Make + # this a WARNING, because this is a user error that needs to be fixed. + message (WARNING + "Mismatched package names: use find_package(@PROJECT_NAME@ ...) instead" + " of find_package(${PACKAGE_FIND_NAME} ...)") + set (PACKAGE_VERSION_UNSUITABLE TRUE) +elseif (NOT (APPLE OR CMAKE_SIZEOF_VOID_P EQUAL @CMAKE_SIZEOF_VOID_P@)) + # Reject if there's a 32-bit/64-bit mismatch (not necessary with Apple + # since a multi-architecture library is built for that platform). + message (STATUS + "${CMAKE_CURRENT_LIST_FILE} unsuitable because package built with " + "sizeof(*void) = @CMAKE_SIZEOF_VOID_P@") + set (PACKAGE_VERSION_UNSUITABLE TRUE) +elseif (MSVC AND NOT MSVC_VERSION STREQUAL "@MSVC_VERSION@") + # Reject if there's a mismatch in MSVC compiler versions + message (STATUS + "${CMAKE_CURRENT_LIST_FILE} unsuitable because package built with " + "_MSC_VER = @MSVC_VERSION@") + set (PACKAGE_VERSION_UNSUITABLE TRUE) +elseif (PACKAGE_FIND_VERSION) + if (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) + set (PACKAGE_VERSION_EXACT TRUE) + elseif (PACKAGE_FIND_VERSION VERSION_LESS PACKAGE_VERSION + AND PACKAGE_FIND_VERSION_MAJOR EQUAL PACKAGE_VERSION_MAJOR) + set (PACKAGE_VERSION_COMPATIBLE TRUE) + endif () +endif () + +set (@PROJECT_NAME@_SHARED_FOUND @GEOGRAPHICLIB_SHARED_LIB@) +set (@PROJECT_NAME@_STATIC_FOUND @GEOGRAPHICLIB_STATIC_LIB@) +set (@PROJECT_NAME@_NETGeographicLib_FOUND @BUILD_NETGEOGRAPHICLIB@) + +# Check for the components requested. The convention is that +# GeographicLib_${comp}_FOUND should be true for all the required +# components. +if (@PROJECT_NAME@_FIND_COMPONENTS) + foreach (comp ${@PROJECT_NAME@_FIND_COMPONENTS}) + if (@PROJECT_NAME@_FIND_REQUIRED_${comp} AND + NOT @PROJECT_NAME@_${comp}_FOUND) + set (PACKAGE_VERSION_UNSUITABLE TRUE) + endif () + endforeach () +endif () diff --git a/gtsam/3rdparty/GeographicLib/cmake/project-config.cmake.in b/gtsam/3rdparty/GeographicLib/cmake/project-config.cmake.in new file mode 100644 index 000000000..a8b15a098 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/cmake/project-config.cmake.in @@ -0,0 +1,82 @@ +# Configure @PROJECT_NAME@ +# +# Set +# @PROJECT_NAME@_FOUND = @PROJECT_NAME_UPPER@_FOUND = 1 +# @PROJECT_NAME@_INCLUDE_DIRS = /usr/local/include +# @PROJECT_NAME@_SHARED_LIBRARIES = GeographicLib (or empty) +# @PROJECT_NAME@_STATIC_LIBRARIES = GeographicLib_STATIC (or empty) +# @PROJECT_NAME@_SHARED_DEFINITIONS = GEOGRAPHICLIB_SHARED_LIB=1 +# @PROJECT_NAME@_STATIC_DEFINITIONS = GEOGRAPHICLIB_SHARED_LIB=0 +# @PROJECT_NAME@_LIBRARY_DIRS = /usr/local/lib +# @PROJECT_NAME@_BINARY_DIRS = /usr/local/bin +# @PROJECT_NAME@_VERSION = 1.9 (for example) +# Depending on @PROJECT_NAME@_USE_STATIC_LIBS +# @PROJECT_NAME@_LIBRARIES = ${@PROJECT_NAME@_SHARED_LIBRARIES}, if OFF +# @PROJECT_NAME@_LIBRARIES = ${@PROJECT_NAME@_STATIC_LIBRARIES}, if ON +# @PROJECT_NAME@_DEFINITIONS = ${@PROJECT_NAME@_SHARED_DEFINITIONS}, if OFF +# @PROJECT_NAME@_DEFINITIONS = ${@PROJECT_NAME@_STATIC_DEFINITIONS}, if ON +# If only one of the libraries is provided, then +# @PROJECT_NAME@_USE_STATIC_LIBS is ignored. + +message (STATUS "Reading ${CMAKE_CURRENT_LIST_FILE}") +set (@PROJECT_NAME@_VERSION "@PROJECT_VERSION@") +message (STATUS + "@PROJECT_NAME@ configuration, version ${@PROJECT_NAME@_VERSION}") + +# Tell the user project where to find our headers and libraries +get_filename_component (_DIR ${CMAKE_CURRENT_LIST_FILE} PATH) +if (IS_ABSOLUTE "@PROJECT_ROOT_DIR@") + # This is an uninstalled package (still in the build tree) + set (_ROOT "@PROJECT_ROOT_DIR@") + set (@PROJECT_NAME@_INCLUDE_DIRS "@PROJECT_INCLUDE_DIRS@") + set (@PROJECT_NAME@_LIBRARY_DIRS "${_ROOT}/src") + set (@PROJECT_NAME@_BINARY_DIRS "${_ROOT}/src") +else () + # This is an installed package; figure out the paths relative to the + # current directory. + get_filename_component (_ROOT "${_DIR}/@PROJECT_ROOT_DIR@" ABSOLUTE) + set (@PROJECT_NAME@_INCLUDE_DIRS "${_ROOT}/include") + set (@PROJECT_NAME@_LIBRARY_DIRS "${_ROOT}/lib") + set (@PROJECT_NAME@_BINARY_DIRS "${_ROOT}/bin") +endif () +message (STATUS " include directory: \${@PROJECT_NAME@_INCLUDE_DIRS}") + +set (@PROJECT_NAME@_SHARED_LIBRARIES @PROJECT_SHARED_LIBRARIES@) +set (@PROJECT_NAME@_STATIC_LIBRARIES @PROJECT_STATIC_LIBRARIES@) +set (@PROJECT_NAME@_SHARED_DEFINITIONS @PROJECT_SHARED_DEFINITIONS@) +set (@PROJECT_NAME@_STATIC_DEFINITIONS @PROJECT_STATIC_DEFINITIONS@) +# Read in the exported definition of the library +include ("${_DIR}/@PROJECT_NAME_LOWER@-depends.cmake") + +if ((NOT @PROJECT_NAME@_SHARED_LIBRARIES) OR + (@PROJECT_NAME@_USE_STATIC_LIBS AND @PROJECT_NAME@_STATIC_LIBRARIES)) + set (@PROJECT_NAME@_LIBRARIES ${@PROJECT_NAME@_STATIC_LIBRARIES}) + set (@PROJECT_NAME@_DEFINITIONS ${@PROJECT_NAME@_STATIC_DEFINITIONS}) + message (STATUS " \${@PROJECT_NAME@_LIBRARIES} set to static library") +else () + set (@PROJECT_NAME@_LIBRARIES ${@PROJECT_NAME@_SHARED_LIBRARIES}) + set (@PROJECT_NAME@_DEFINITIONS ${@PROJECT_NAME@_SHARED_DEFINITIONS}) + message (STATUS " \${@PROJECT_NAME@_LIBRARIES} set to shared library") +endif () + +set (@PROJECT_NAME@_NETGeographicLib_LIBRARIES @NETGEOGRAPHICLIB_LIBRARIES@) + +# Check for the components requested. This only supports components +# STATIC, SHARED, and NETGeographicLib by checking the value of +# @PROJECT_NAME@_${comp}_LIBRARIES. No need to check if the component +# is required or not--the version file took care of that. +# @PROJECT_NAME@_${comp}_FOUND is set appropriately for each component. +if (@PROJECT_NAME@_FIND_COMPONENTS) + foreach (comp ${@PROJECT_NAME@_FIND_COMPONENTS}) + if (@PROJECT_NAME@_${comp}_LIBRARIES) + set (@PROJECT_NAME@_${comp}_FOUND 1) + message (STATUS "@PROJECT_NAME@ component ${comp} found") + else () + set (@PROJECT_NAME@_${comp}_FOUND 0) + message (WARNING "@PROJECT_NAME@ component ${comp} not found") + endif () + endforeach () +endif () + +# @PROJECT_NAME@_FOUND is set to 1 automatically +set (@PROJECT_NAME_UPPER@_FOUND 1) # for backwards compatibility diff --git a/gtsam/3rdparty/GeographicLib/config.guess b/gtsam/3rdparty/GeographicLib/config.guess new file mode 100755 index 000000000..c0adba94b --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/config.guess @@ -0,0 +1,1530 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, +# 2011, 2012 Free Software Foundation, Inc. + +timestamp='2012-06-10' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Originally written by Per Bothner. Please send patches (context +# diff format) to and include a ChangeLog +# entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH="i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH="x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[4567]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-gnu + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-gnueabi + else + echo ${UNAME_MACHINE}-unknown-linux-gnueabihf + fi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + cris:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-gnu + exit ;; + crisv32:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-gnu + exit ;; + frv:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + hexagon:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + i*86:Linux:*:*) + LIBC=gnu + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; + or32:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-gnu + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-gnu + exit ;; + x86_64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configury will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in + i386) + eval $set_cc_for_build + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + UNAME_PROCESSOR="x86_64" + fi + fi ;; + unknown) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-*:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/gtsam/3rdparty/GeographicLib/config.sub b/gtsam/3rdparty/GeographicLib/config.sub new file mode 100755 index 000000000..6205f8423 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/config.sub @@ -0,0 +1,1782 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, +# 2011, 2012 Free Software Foundation, Inc. + +timestamp='2012-04-18' + +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Please send patches to . Submit a context +# diff and a properly formatted GNU ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray | -microblaze) + os= + basic_machine=$1 + ;; + -bluegene*) + os=-cnk + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | aarch64 | aarch64_be \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ + | be32 | be64 \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | epiphany \ + | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | le32 | le64 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 \ + | ns16k | ns32k \ + | open8 \ + | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ + | pyramid \ + | rl78 | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ + | we32k \ + | x86 | xc16x | xstormy16 | xtensa \ + | z8k | z80) + basic_machine=$basic_machine-unknown + ;; + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) + basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown + ;; + + xscaleel) + basic_machine=armel-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | aarch64-* | aarch64_be-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | be32-* | be64-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | hexagon-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | le32-* | le64-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | open8-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ + | pyramid-* \ + | rl78-* | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ + | tahoe-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile*-* \ + | tron-* \ + | ubicom32-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ + | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aros) + basic_machine=i386-pc + os=-aros + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16 | cr16-*) + basic_machine=cr16-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + microblaze) + basic_machine=microblaze-xilinx + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + msys) + basic_machine=i386-pc + os=-msys + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc | ppcbe) basic_machine=powerpc-unknown + ;; + ppc-* | ppcbe-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tile*) + basic_machine=$basic_machine-unknown + os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* | -aros* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos + ;; + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -nacl*) + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + hexagon-*) + os=-elf + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -cnk*|-aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/gtsam/3rdparty/GeographicLib/configure b/gtsam/3rdparty/GeographicLib/configure new file mode 100755 index 000000000..cc81327f5 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/configure @@ -0,0 +1,18780 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for GeographicLib 1.34. +# +# Report bugs to . +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and charles@karney.com +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='GeographicLib' +PACKAGE_TARNAME='geographiclib' +PACKAGE_VERSION='1.34' +PACKAGE_STRING='GeographicLib 1.34' +PACKAGE_BUGREPORT='charles@karney.com' +PACKAGE_URL='' + +ac_unique_file="src/Geodesic.cpp" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +HAVE_PODPROGS_FALSE +HAVE_PODPROGS_TRUE +COL +POD2HTML +POD2MAN +HAVE_DOXYGEN_FALSE +HAVE_DOXYGEN_TRUE +DOXYGEN +LIBOBJS +POW_LIB +CXXCPP +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +DLLTOOL +OBJDUMP +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +EGREP +GREP +SED +LIBTOOL +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +ac_ct_CXX +CXXFLAGS +CXX +CPP +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +LT_AGE +LT_REVISION +LT_CURRENT +MAINT +MAINTAINER_MODE_FALSE +MAINTAINER_MODE_TRUE +GEOGRAPHICLIB_VERSION_PATCH +GEOGRAPHICLIB_VERSION_MINOR +GEOGRAPHICLIB_VERSION_MAJOR +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_maintainer_mode +enable_dependency_tracking +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +with_sysroot +enable_libtool_lock +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP +CXX +CXXFLAGS +CCC +CXXCPP' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures GeographicLib 1.34 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/geographiclib] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of GeographicLib 1.34:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-maintainer-mode + enable make rules and dependencies not useful (and + sometimes confusing) to the casual installer + --enable-dependency-tracking + do not reject slow dependency extractors + --disable-dependency-tracking + speeds up one-time build + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +GeographicLib configure 1.34 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_cxx_try_cpp LINENO +# ------------------------ +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_cpp + +# ac_fn_cxx_try_link LINENO +# ------------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_link + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## --------------------------------- ## +## Report this to charles@karney.com ## +## --------------------------------- ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_type +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by GeographicLib $as_me 1.34, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +$as_echo_n "checking target system type... " >&6; } +if ${ac_cv_target+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + + + +am__api_version='1.12' + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi + +rm -f conftest.file + +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='geographiclib' + VERSION='1.34' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p='$(MKDIR_P)' + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + +GEOGRAPHICLIB_VERSION_MAJOR=1 +GEOGRAPHICLIB_VERSION_MINOR=34 +GEOGRAPHICLIB_VERSION_PATCH=0 + +cat >>confdefs.h <<_ACEOF +#define GEOGRAPHICLIB_VERSION_MAJOR $GEOGRAPHICLIB_VERSION_MAJOR +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define GEOGRAPHICLIB_VERSION_MINOR $GEOGRAPHICLIB_VERSION_MINOR +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define GEOGRAPHICLIB_VERSION_PATCH $GEOGRAPHICLIB_VERSION_PATCH +_ACEOF + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } + # Check whether --enable-maintainer-mode was given. +if test "${enable_maintainer_mode+set}" = set; then : + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval +else + USE_MAINTAINER_MODE=no +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 +$as_echo "$USE_MAINTAINER_MODE" >&6; } + if test $USE_MAINTAINER_MODE = yes; then + MAINTAINER_MODE_TRUE= + MAINTAINER_MODE_FALSE='#' +else + MAINTAINER_MODE_TRUE='#' + MAINTAINER_MODE_FALSE= +fi + + MAINT=$MAINTAINER_MODE_TRUE + + + +ac_config_headers="$ac_config_headers include/GeographicLib/Config-ac.h" + + +LT_CURRENT=11 +LT_REVISION=1 +LT_AGE=1 + + + + + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4.2' +macro_revision='1.3337' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +# Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + + +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf + + + + + +# Set options + + + + enable_dlopen=no + + + enable_win32_dll=no + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Add ABI-specific directories to the system library path. + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" + + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + _lt_caught_CXX_error=yes +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +reload_flag_CXX=$reload_flag +reload_cmds_CXX=$reload_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + fi + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_CXX=' ' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=yes + file_list_spec_CXX='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' + enable_shared_with_static_runtimes_CXX=yes + # Don't use ranlib + old_postinstall_cmds_CXX='chmod 644 $oldlib' + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec_CXX='' + fi + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + + else + ld_shlibs_CXX=no + fi + + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + gnu*) + ;; + + haiku*) + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs_CXX=yes + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5].* | *pgcpp\ [1-5].*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ + '"$old_archive_cmds_CXX" + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ + '"$reload_cmds_CXX" + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF + + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + ;; + esac + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc_CXX=no + else + lt_cv_archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } + archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Add ABI-specific directories to the system library path. + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" + + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + +# Checks for header files. +for ac_header in float.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" +if test "x$ac_cv_header_float_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_FLOAT_H 1 +_ACEOF + +fi + +done + + +# Checks for typedefs, structures, and compiler characteristics. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if ${ac_cv_header_stdbool_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + /* See body of main program for 'e'. */ + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + /* The following fails for + HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + +int +main () +{ + + bool e = &s; + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdbool_h=yes +else + ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } + ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE__BOOL 1 +_ACEOF + + +fi + + +if test $ac_cv_header_stdbool_h = yes; then + +$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 +$as_echo_n "checking for long double... " >&6; } +if ${ac_cv_type_long_double+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$GCC" = yes; then + ac_cv_type_long_double=yes + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* The Stardent Vistra knows sizeof (long double), but does + not support it. */ + long double foo = 0.0L; +int +main () +{ +static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ + sizeof (double) <= sizeof (long double))]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_long_double=yes +else + ac_cv_type_long_double=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 +$as_echo "$ac_cv_type_long_double" >&6; } + if test $ac_cv_type_long_double = yes; then + +$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h + + fi + + +# Checks for library functions. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 +$as_echo_n "checking for working strtod... " >&6; } +if ${ac_cv_func_strtod+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_strtod=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +$ac_includes_default +#ifndef strtod +double strtod (); +#endif +int +main() +{ + { + /* Some versions of Linux strtod mis-parse strings with leading '+'. */ + char *string = " +69"; + char *term; + double value; + value = strtod (string, &term); + if (value != 69 || term != (string + 4)) + return 1; + } + + { + /* Under Solaris 2.4, strtod returns the wrong value for the + terminating character under some conditions. */ + char *string = "NaN"; + char *term; + strtod (string, &term); + if (term != string && *(term - 1) == 0) + return 1; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_strtod=yes +else + ac_cv_func_strtod=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 +$as_echo "$ac_cv_func_strtod" >&6; } +if test $ac_cv_func_strtod = no; then + case " $LIBOBJS " in + *" strtod.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strtod.$ac_objext" + ;; +esac + +ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" +if test "x$ac_cv_func_pow" = xyes; then : + +fi + +if test $ac_cv_func_pow = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 +$as_echo_n "checking for pow in -lm... " >&6; } +if ${ac_cv_lib_m_pow+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pow (); +int +main () +{ +return pow (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_pow=yes +else + ac_cv_lib_m_pow=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 +$as_echo "$ac_cv_lib_m_pow" >&6; } +if test "x$ac_cv_lib_m_pow" = xyes; then : + POW_LIB=-lm +else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 +$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} +fi + +fi + +fi + +for ac_func in strtol +do : + ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" +if test "x$ac_cv_func_strtol" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STRTOL 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 +$as_echo_n "checking for library containing floor... " >&6; } +if ${ac_cv_search_floor+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char floor (); +int +main () +{ +return floor (); + ; + return 0; +} +_ACEOF +for ac_lib in '' m; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_floor=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_floor+:} false; then : + break +fi +done +if ${ac_cv_search_floor+:} false; then : + +else + ac_cv_search_floor=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 +$as_echo "$ac_cv_search_floor" >&6; } +ac_res=$ac_cv_search_floor +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5 +$as_echo_n "checking for library containing pow... " >&6; } +if ${ac_cv_search_pow+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pow (); +int +main () +{ +return pow (); + ; + return 0; +} +_ACEOF +for ac_lib in '' m; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_pow=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_pow+:} false; then : + break +fi +done +if ${ac_cv_search_pow+:} false; then : + +else + ac_cv_search_pow=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5 +$as_echo "$ac_cv_search_pow" >&6; } +ac_res=$ac_cv_search_pow +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5 +$as_echo_n "checking for library containing sqrt... " >&6; } +if ${ac_cv_search_sqrt+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqrt (); +int +main () +{ +return sqrt (); + ; + return 0; +} +_ACEOF +for ac_lib in '' m; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_sqrt=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_sqrt+:} false; then : + break +fi +done +if ${ac_cv_search_sqrt+:} false; then : + +else + ac_cv_search_sqrt=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5 +$as_echo "$ac_cv_search_sqrt" >&6; } +ac_res=$ac_cv_search_sqrt +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + +# Check endianness + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ + && LITTLE_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes; then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + extern int foo; + +int +main () +{ +return use_ascii (foo) == use_ebcdic (foo); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian=no +else + ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +$as_echo "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) + +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + + +# Check for doxygen. +# Need version 1.8.1.2 or later for greek and math symbols. +for ac_prog in doxygen +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DOXYGEN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DOXYGEN"; then + ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DOXYGEN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DOXYGEN=$ac_cv_prog_DOXYGEN +if test -n "$DOXYGEN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 +$as_echo "$DOXYGEN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DOXYGEN" && break +done + + if test "$DOXYGEN" && test `"$DOXYGEN" --version | + sed 's/^\([0-9]\)\.\([0-9]\)\./\1.0\2./'` '>' 1.08.1.1; then + HAVE_DOXYGEN_TRUE= + HAVE_DOXYGEN_FALSE='#' +else + HAVE_DOXYGEN_TRUE='#' + HAVE_DOXYGEN_FALSE= +fi + + +for ac_prog in pod2man +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_POD2MAN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$POD2MAN"; then + ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_POD2MAN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +POD2MAN=$ac_cv_prog_POD2MAN +if test -n "$POD2MAN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5 +$as_echo "$POD2MAN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$POD2MAN" && break +done + +for ac_prog in pod2html +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_POD2HTML+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$POD2HTML"; then + ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_POD2HTML="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +POD2HTML=$ac_cv_prog_POD2HTML +if test -n "$POD2HTML"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5 +$as_echo "$POD2HTML" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$POD2HTML" && break +done + +for ac_prog in col +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_COL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$COL"; then + ac_cv_prog_COL="$COL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_COL="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +COL=$ac_cv_prog_COL +if test -n "$COL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COL" >&5 +$as_echo "$COL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$COL" && break +done + + if test "$POD2MAN" -a "$POD2HTML" -a "$COL"; then + HAVE_PODPROGS_TRUE= + HAVE_PODPROGS_FALSE='#' +else + HAVE_PODPROGS_TRUE='#' + HAVE_PODPROGS_FALSE= +fi + + +ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile tools/Makefile doc/Makefile man/Makefile matlab/Makefile python/Makefile cmake/Makefile examples/Makefile" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then + as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then + as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_PODPROGS_TRUE}" && test -z "${HAVE_PODPROGS_FALSE}"; then + as_fn_error $? "conditional \"HAVE_PODPROGS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by GeographicLib $as_me 1.34, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +GeographicLib config.status 1.34 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' +predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' +predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' +postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' +reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' +reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +OBJDUMP \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +DLLTOOL \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +nm_file_list_spec \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +reload_flag_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_separator_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +reload_cmds_CXX \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX \ +postlink_cmds_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "include/GeographicLib/Config-ac.h") CONFIG_HEADERS="$CONFIG_HEADERS include/GeographicLib/Config-ac.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; + "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; + "matlab/Makefile") CONFIG_FILES="$CONFIG_FILES matlab/Makefile" ;; + "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; + "cmake/Makefile") CONFIG_FILES="$CONFIG_FILES cmake/Makefile" ;; + "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# An object symbol dumper. +OBJDUMP=$lt_OBJDUMP + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# How to create reloadable object files. +reload_flag=$lt_reload_flag_CXX +reload_cmds=$lt_reload_cmds_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + diff --git a/gtsam/3rdparty/GeographicLib/configure.ac b/gtsam/3rdparty/GeographicLib/configure.ac new file mode 100644 index 000000000..e9fb7b6f2 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/configure.ac @@ -0,0 +1,96 @@ +dnl +dnl Copyright (C) 2009, Francesco P. Lovergine + +AC_INIT([GeographicLib],[1.34],[charles@karney.com]) +AC_CANONICAL_SYSTEM +AC_PREREQ(2.61) +AC_CONFIG_SRCDIR(src/Geodesic.cpp) +AC_CONFIG_MACRO_DIR(m4) +AM_INIT_AUTOMAKE + +GEOGRAPHICLIB_VERSION_MAJOR=1 +GEOGRAPHICLIB_VERSION_MINOR=34 +GEOGRAPHICLIB_VERSION_PATCH=0 +AC_DEFINE_UNQUOTED([GEOGRAPHICLIB_VERSION_MAJOR], + [$GEOGRAPHICLIB_VERSION_MAJOR],[major version number]) +AC_DEFINE_UNQUOTED([GEOGRAPHICLIB_VERSION_MINOR], + [$GEOGRAPHICLIB_VERSION_MINOR],[minor version number]) +AC_DEFINE_UNQUOTED([GEOGRAPHICLIB_VERSION_PATCH], + [$GEOGRAPHICLIB_VERSION_PATCH],[patch number]) +AC_SUBST(GEOGRAPHICLIB_VERSION_MAJOR) +AC_SUBST(GEOGRAPHICLIB_VERSION_MINOR) +AC_SUBST(GEOGRAPHICLIB_VERSION_PATCH) + +dnl +dnl This directive is deprecated by someone, but I prefer to avoid +dnl running autotools if not required explicitly. The reason is +dnl the need to be in sync with autoconf/automake. +dnl +AM_MAINTAINER_MODE + +AC_CONFIG_HEADERS(include/GeographicLib/Config-ac.h) + +dnl Library code modified: REVISION++ +dnl Interfaces changed/added/removed: CURRENT++ REVISION=0 +dnl Interfaces added: AGE++ +dnl Interfaces removed: AGE=0 +LT_CURRENT=11 +LT_REVISION=1 +LT_AGE=1 +AC_SUBST(LT_CURRENT) +AC_SUBST(LT_REVISION) +AC_SUBST(LT_AGE) + +AC_ARG_PROGRAM +AC_PROG_CPP +AC_PROG_MAKE_SET +AC_PROG_INSTALL +AC_PROG_CXX +AC_PROG_LIBTOOL + +# Checks for header files. +AC_CHECK_HEADERS([float.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_C_INLINE +AC_TYPE_LONG_DOUBLE + +# Checks for library functions. +AC_FUNC_STRTOD +AC_CHECK_FUNCS([strtol]) +AC_SEARCH_LIBS([floor],[m]) +AC_SEARCH_LIBS([pow],[m]) +AC_SEARCH_LIBS([sqrt],[m]) + +# Check endianness +AC_C_BIGENDIAN + +# Check for doxygen. +# Need version 1.8.1.2 or later for greek and math symbols. +AC_CHECK_PROGS([DOXYGEN], [doxygen]) +AM_CONDITIONAL([HAVE_DOXYGEN], + [test "$DOXYGEN" && test `"$DOXYGEN" --version | + sed 's/^\([[0-9]]\)\.\([[0-9]]\)\./\1.0\2./'` '>' 1.08.1.1]) + +AC_CHECK_PROGS([POD2MAN], [pod2man]) +AC_CHECK_PROGS([POD2HTML], [pod2html]) +AC_CHECK_PROGS([COL], [col]) +AM_CONDITIONAL([HAVE_PODPROGS], [test "$POD2MAN" -a "$POD2HTML" -a "$COL"]) + +dnl +dnl Add here new file to be generated +dnl +AC_CONFIG_FILES([ +Makefile +src/Makefile +include/Makefile +tools/Makefile +doc/Makefile +man/Makefile +matlab/Makefile +python/Makefile +cmake/Makefile +examples/Makefile +]) +AC_OUTPUT diff --git a/gtsam/3rdparty/GeographicLib/depcomp b/gtsam/3rdparty/GeographicLib/depcomp new file mode 100755 index 000000000..debb6ffa3 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/depcomp @@ -0,0 +1,707 @@ +#! /bin/sh +# depcomp - compile a program generating dependencies as side-effects + +scriptversion=2012-03-27.16; # UTC + +# Copyright (C) 1999-2012 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +case $1 in + '') + echo "$0: No command. Try '$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: depcomp [--help] [--version] PROGRAM [ARGS] + +Run PROGRAMS ARGS to compile a file, generating dependencies +as side-effects. + +Environment variables: + depmode Dependency tracking mode. + source Source file read by 'PROGRAMS ARGS'. + object Object file output by 'PROGRAMS ARGS'. + DEPDIR directory where to store dependencies. + depfile Dependency file to output. + tmpdepfile Temporary file to use when outputting dependencies. + libtool Whether libtool is used (yes/no). + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "depcomp $scriptversion" + exit $? + ;; +esac + +# A tabulation character. +tab=' ' +# A newline character. +nl=' +' + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi + +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. +depfile=${depfile-`echo "$object" | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +cygpath_u="cygpath -u -f -" +if test "$depmode" = msvcmsys; then + # This is just like msvisualcpp but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvisualcpp +fi + +if test "$depmode" = msvc7msys; then + # This is just like msvc7 but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvc7 +fi + +if test "$depmode" = xlc; then + # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. + gccflag=-qmakedep=gcc,-MF + depmode=gcc +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon +## the command line argument order; so add the flags where they +## appear in depend2.am. Note that the slowdown incurred here +## affects only configure: in makefiles, %FASTDEP% shortcuts this. + for arg + do + case $arg in + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; + *) set fnord "$@" "$arg" ;; + esac + shift # fnord + shift # $arg + done + "$@" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz +## The second -e expression handles DOS-style file names with drive letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the "deleted header file" problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. + tr ' ' "$nl" < "$tmpdepfile" | +## Some versions of gcc put a space before the ':'. On the theory +## that the space means something, we add a space to the output as +## well. hp depmode also adds that space, but also prefixes the VPATH +## to the object. Take care to not repeat it in the output. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like '#:fec' to the end of the + # dependency line. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ + tr "$nl" ' ' >> "$depfile" + echo >> "$depfile" + + # The second pass generates a dummy entry for each header file. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +xlc) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. In older versions, this file always lives in the + # current directory. Also, the AIX compiler puts '$object:' at the + # start of each line; $object doesn't have directory information. + # Version 6 uses the directory in both cases. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.u + tmpdepfile2=$base.u + tmpdepfile3=$dir.libs/$base.u + "$@" -Wc,-M + else + tmpdepfile1=$dir$base.u + tmpdepfile2=$dir$base.u + tmpdepfile3=$dir$base.u + "$@" -M + fi + stat=$? + + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + # Each line is of the form 'foo.o: dependent.h'. + # Do two passes, one to just change these to + # '$object: dependent.h' and one to simply 'dependent.h:'. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +icc) + # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'. + # However on + # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c + # ICC 7.0 will fill foo.d with something like + # foo.o: sub/foo.c + # foo.o: sub/foo.h + # which is wrong. We want + # sub/foo.o: sub/foo.c + # sub/foo.o: sub/foo.h + # sub/foo.c: + # sub/foo.h: + # ICC 7.1 will output + # foo.o: sub/foo.c sub/foo.h + # and will wrap long lines using '\': + # foo.o: sub/foo.c ... \ + # sub/foo.h ... \ + # ... + # tcc 0.9.26 (FIXME still under development at the moment of writing) + # will emit a similar output, but also prepend the continuation lines + # with horizontal tabulation characters. + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form 'foo.o: dependent.h', + # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'. + # Do two passes, one to just change these to + # '$object: dependent.h' and one to simply 'dependent.h:'. + sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ + < "$tmpdepfile" > "$depfile" + sed ' + s/[ '"$tab"'][ '"$tab"']*/ /g + s/^ *// + s/ *\\*$// + s/^[^:]*: *// + /^$/d + /:$/d + s/$/ :/ + ' < "$tmpdepfile" >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp2) + # The "hp" stanza above does not work with aCC (C++) and HP's ia64 + # compilers, which have integrated preprocessors. The correct option + # to use with these is +Maked; it writes dependencies to a file named + # 'foo.d', which lands next to the object file, wherever that + # happens to be. + # Much of this is similar to the tru64 case; see comments there. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir.libs/$base.d + "$@" -Wc,+Maked + else + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir$base.d + "$@" +Maked + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" + # Add 'dependent.h:' lines. + sed -ne '2,${ + s/^ *// + s/ \\*$// + s/$/:/ + p + }' "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" "$tmpdepfile2" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in 'foo.d' instead, so we check for that too. + # Subdirectories are respected. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + + if test "$libtool" = yes; then + # With Tru64 cc, shared objects can also be used to make a + # static library. This mechanism is used in libtool 1.4 series to + # handle both shared and static libraries in a single compilation. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. + # + # With libtool 1.5 this exception was removed, and libtool now + # generates 2 separate objects for the 2 libraries. These two + # compilations output dependencies in $dir.libs/$base.o.d and + # in $dir$base.o.d. We have to check for both files, because + # one of the two compilations can be disabled. We should prefer + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is + # automatically cleaned when .libs/ is deleted, while ignoring + # the former would cause a distcleancheck panic. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 + tmpdepfile2=$dir$base.o.d # libtool 1.5 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 + "$@" -Wc,-MD + else + tmpdepfile1=$dir$base.o.d + tmpdepfile2=$dir$base.d + tmpdepfile3=$dir$base.d + tmpdepfile4=$dir$base.d + "$@" -MD + fi + + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +msvc7) + if test "$libtool" = yes; then + showIncludes=-Wc,-showIncludes + else + showIncludes=-showIncludes + fi + "$@" $showIncludes > "$tmpdepfile" + stat=$? + grep -v '^Note: including file: ' "$tmpdepfile" + if test "$stat" = 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + # The first sed program below extracts the file names and escapes + # backslashes for cygpath. The second sed program outputs the file + # name when reading, but also accumulates all include files in the + # hold buffer in order to output them again at the end. This only + # works with sed implementations that can handle large buffers. + sed < "$tmpdepfile" -n ' +/^Note: including file: *\(.*\)/ { + s//\1/ + s/\\/\\\\/g + p +}' | $cygpath_u | sort -u | sed -n ' +s/ /\\ /g +s/\(.*\)/'"$tab"'\1 \\/p +s/.\(.*\) \\/\1:/ +H +$ { + s/.*/'"$tab"'/ + G + p +}' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvc7msys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove '-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=-M + # Require at least two characters before searching for ':' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. + "$@" $dashmflag | + sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tr ' ' "$nl" < "$tmpdepfile" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no eat=no + for arg + do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + if test $eat = yes; then + eat=no + continue + fi + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source file. + -arch) + eat=yes ;; + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix=`echo "$object" | sed 's/^.*\././'` + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + # makedepend may prepend the VPATH from the source file name to the object. + # No need to regex-escape $object, excess matching of '.' is harmless. + sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" + sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove '-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E | + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | + sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + IFS=" " + for arg + do + case "$arg" in + -o) + shift + ;; + $object) + shift + ;; + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E 2>/dev/null | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" + echo "$tab" >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvcmsys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/gtsam/3rdparty/GeographicLib/doc/CMakeLists.txt b/gtsam/3rdparty/GeographicLib/doc/CMakeLists.txt new file mode 100644 index 000000000..7390a40fd --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/doc/CMakeLists.txt @@ -0,0 +1,83 @@ +# Where the html versions of the man pages (extension .1.html) are +# found. +set (MANDIR ${PROJECT_BINARY_DIR}/man) + +# Build up a list of the .1.html files. +set (HTMLMAN) +foreach (TOOL ${TOOLS}) + set (HTMLMAN ${HTMLMAN} ${MANDIR}/${TOOL}.1.html) +endforeach () + +if (COMMON_INSTALL_PATH) + set (INSTALL_DOC_DIR "share/doc/GeographicLib") +else () + set (INSTALL_DOC_DIR "doc") +endif () + +# Run doxygen, if available + +# First assemble a list of all the files the documentation uses. Add a +# dependency on htmlman (from man/CMakeLists.txt). Use html/index.html +# as the make target. To make this target, copy the non-doxygen +# generated files into html/. Run doxfile.in thru cmake's config +# process so that absolute path names are used and so that the pathnames +# are properly stripped by doxygen (via STRIP_FROM_PATH). The +# distrib-doc target copies the html directory into the source tree. + +# If doxygen is not available, only the install step (from the source +# tree) is done. + +file (MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html-stage) +if (DOXYGEN_FOUND) + configure_file (doxyfile.in doxyfile) + configure_file (doxyfile-c.in doxyfile-c) + configure_file (doxyfile-for.in doxyfile-for) + configure_file (doxyfile-net.in doxyfile-net) + file (GLOB SOURCES + ../src/[A-Za-z]*.cpp ../include/GeographicLib/[A-Za-z]*.hpp + ../tools/[A-Za-z]*.cpp ../examples/[A-Za-z]*.cpp + ../legacy/C/*.[ch] ../legacy/Fortran/*.for ../legacy/Fortran/*.inc + ../dotnet/NETGeographicLib/*.cpp ../dotnet/NETGeographicLib/*.h + ../dotnet/examples/CS/*.cs ../dotnet/examples/ManagedCPP/*.cpp + ../dotnet/examples/VB/*.vb) + file (GLOB EXTRA_FILES ../maxima/[A-Za-z]*.mac + tmseries30.html geodseries30.html ../LICENSE.txt) + file (GLOB FIGURES *.png) + file (COPY ${EXTRA_FILES} DESTINATION html-stage) + add_custom_target (doc ALL + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html/index.html) + add_dependencies (doc htmlman) + add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/index.html + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/doxyfile + ${CMAKE_CURRENT_BINARY_DIR}/doxyfile-c + ${CMAKE_CURRENT_BINARY_DIR}/doxyfile-for + ${CMAKE_CURRENT_BINARY_DIR}/doxyfile-net + GeographicLib.dox geodesic-c.dox geodesic-for.dox NETGeographicLib.dox + ${SOURCES} ${EXTRA_FILES} ${FIGURES} ${HTMLMAN} + COMMAND ${CMAKE_COMMAND} -E remove_directory html + COMMAND ${CMAKE_COMMAND} -E copy_directory html-stage html + COMMAND ${DOXYGEN_EXECUTABLE} doxyfile > doxygen.log + COMMAND ${DOXYGEN_EXECUTABLE} doxyfile-c > doxygen-c.log + COMMAND ${DOXYGEN_EXECUTABLE} doxyfile-for > doxygen-for.log + COMMAND ${DOXYGEN_EXECUTABLE} doxyfile-net > doxygen-net.log + COMMENT "Generating html documentation tree") + install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html + DESTINATION ${INSTALL_DOC_DIR}) +else () + file (COPY ../LICENSE.txt DESTINATION html) + # Need to absolute path on destination to support old versions of cmake + configure_file (index.html.in html/index.html) + configure_file (utilities.html.in html/utilities.html) + install (FILES + ${CMAKE_CURRENT_BINARY_DIR}/html/LICENSE.txt + ${CMAKE_CURRENT_BINARY_DIR}/html/index.html + ${CMAKE_CURRENT_BINARY_DIR}/html/utilities.html + DESTINATION ${INSTALL_DOC_DIR}/html) +endif () + +# Finally install the JavaScript files +file (GLOB SCRIPTDRIVERS scripts/[A-Za-z]*.html) +file (GLOB JSSCRIPTS scripts/GeographicLib/[A-Za-z]*.js) +install (FILES ${SCRIPTDRIVERS} DESTINATION ${INSTALL_DOC_DIR}/scripts) +install (FILES ${JSSCRIPTS} + DESTINATION ${INSTALL_DOC_DIR}/scripts/GeographicLib) diff --git a/gtsam/3rdparty/GeographicLib/doc/GeographicLib.dox b/gtsam/3rdparty/GeographicLib/doc/GeographicLib.dox new file mode 100644 index 000000000..b0f980d19 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/doc/GeographicLib.dox @@ -0,0 +1,5545 @@ +// -*- text -*- +/** + * \file GeographicLib.dox + * \brief Documentation for GeographicLib + * + * Written by Charles Karney and licensed under the + * MIT/X11 License. For more information, see + * http://geographiclib.sourceforge.net/ + **********************************************************************/ + +/** +\mainpage GeographicLib library +\author Charles F. F. Karney (charles@karney.com) +\version 1.34 +\date 2013-12-11 + +\section abstract Abstract + +%GeographicLib is a small set of C++ +classes for performing conversions between geographic, UTM, UPS, +MGRS, geocentric, and local cartesian coordinates, for gravity (e.g., +EGM2008), geoid height and geomagnetic field (e.g., WMM2010) +calculations, and for solving geodesic problems. The emphasis is on +returning accurate results with errors close to round-off (about 5--15 +nanometers). New accurate algorithms for \ref geodesic and \ref +transversemercator have been developed for this library. The +functionality of the library can be accessed from user code, from the +\ref utilities provided, or via the \ref other. Also included is a .NET +wrapper library NETGeographicLib +which exposes the functionality to .NET applications. For a sample of +the geodesic capabilities in JavaScript, check out the +online geodesic calculator and +the script for displaying +geodesics in Google Maps + +This library is not a general purpose projection library; use +proj.4 for that. On the other +hand, it does provide the core functionality offered by +GEOTRANS. + +\section download Download + +The main project page is at +- + http://sourceforge.net/projects/geographiclib +. +The code is available for download at +- + GeographicLib-1.34.tar.gz +- + GeographicLib-1.34.zip +. +as either a compressed tar file (tar.gz) or a zip file. (The two +archives have identical contents, except that the zip file has DOS +line endings.) Alternatively you can get the latest release using git +\verbatim + git clone -b r1.34 git://git.code.sf.net/p/geographiclib/code geographiclib +\endverbatim +There are also binary installers for Windows available at +- + GeographicLib-1.34-win32.exe +- + GeographicLib-1.34-win64.exe +. +It is licensed under the +MIT/X11 License; +see LICENSE.txt for the terms. +For more information, see http://geographiclib.sourceforge.net/. + +\section contents Contents + - \ref intro + - \ref install + - \ref start + - \ref utilities + - \ref organization + - \ref other + - \ref geoid + - \ref gravity + - \ref magnetic + - \ref geodesic + - \ref triaxial + - \ref transversemercator + - \ref geocentric + - \ref old + +
+Forward to \ref intro. +
+ +**********************************************************************/ +/** +\page intro Introduction + +
+Forward to \ref install. Up to \ref contents. +
+ +%GeographicLib offers a C++ interfaces to a small (but important!) set +of geographic transformations. It grew out of a desire to improve on +the geotrans +package for transforming between geographic and MGRS coordinates. At +present, %GeographicLib provides UTM, UPS, MGRS, geocentric, and local +cartesian projections, gravity and geomagnetic models, and classes for +geodesic calculations. + +The goals of %GeographicLib are: + - Accuracy. In most applications the accuracy is close to round-off, + about 5 nm (5 nanometers). Even though in many geographic + applications 1 cm is considered "accurate enough", there is little + penalty in providing much better accuracy. In situations where a + faster approximate algorithm is necessary, %GeographicLib offers an + accurate benchmark to guide the development. + - Completeness. For each of the projections included, an attempt is + made to provide a complete solution. For example, + GeographicLib::Geodesic::Inverse works for anti-podal points. + Similarly, GeographicLib::Geocentric.Reverse will return accurate + geodetic coordinates even for points close to the center of the + earth. + - C++ interface. For the projection methods, this allows encapsulation + of the ellipsoid parameters. + - Emphasis on projections necessary for analyzing military data. + - Uniform treatment of UTM/UPS. The GeographicLib::UTMUPS class treats + UPS as zone 0. This simplifies conversions between UTM and UPS + coordinates, etc. + - Well defined and stable conventions for the conversion between + UTM/UPS to MGRS coordinates. + - Detailed internal documentation on the algorithms. For the most part + %GeographicLib uses published algorithms and references are given. If + changes have been made (usually to improve the numerical accuracy), + these are described in the code. + +Various \ref utilities are provided with the library. These illustrate +the use of the library and are useful in their own right. This library +and the utilities have been tested with g++ 4.4 under Linux, with g++ +4.2 under Mac OS X, and with MS Visual Studio 9 (2008), 10 (2010), 11 +(2012), and 12 (2013) compiled for 32 bit and 64 bit. + +Matlab, JavaScript, and Python interfaces are provided to portions of +%GeographicLib; see \ref other. + +The section \ref geodesic documents the method of solving the geodesic +problem. + +The section \ref transversemercator documents various properties of this +projection. + +The bulk of the testing has used geographically relevant values of the +flattening. Thus, you can expect close to full accuracy for -0.01 ≤ +\e f ≤ 0.01 (but note that GeographicLib::TransverseMercatorExact is +restricted to \e f > 0). However, reasonably accurate results can be +expected if -0.1 ≤ \e f ≤ 0.1. Outside this range, you should +attempt to verify the accuracy of the routines independently. Two types +of problems may occur with larger values of \e f: + - Some classes, specifically GeographicLib::Geodesic, + GeographicLib::GeodesicLine, and GeographicLib::TransverseMercator, + use series expansions using \e f as a small parameter. The accuracy + of these routines will degrade as \e f becomes large. + - Even when exact formulas are used, many of the classes need to invert + the exact formulas (e.g., to invert a projection), typically, using + Newton's method. This usually provides an essentially exact + inversion. However, the choice of starting guess and the exit + conditions have been tuned to cover small values of \e f and the + inversion may be incorrect if \e f is large. + +Undoubtedly, bugs lurk in this code and in the documentation. Please +report any you find to charles@karney.com. + +
+Forward to \ref install. Up to \ref contents. +
+**********************************************************************/ +/** +\page install Installing %GeographicLib + +
+Back to \ref intro. Forward to \ref start. Up to \ref contents. +
+ +%GeographicLib has been developed under Linux with the g++ compiler +(versions 4.0 and later) and under Windows with Visual Studio 2005, 2008, +and 2010. Earlier versions were tested also under Darwin and Solaris. It +should compile on a wide range of other systems. First download either + +GeographicLib-1.34.tar.gz or + +GeographicLib-1.34.zip (or + +GeographicLib-1.34-win32.exe or + +GeographicLib-1.34-win64.exe for binary installation under Windows). +Then pick one of the first five options below: +- \ref cmake. This is the preferred installation method as it will work + on the widest range of platforms. However it requires that you have + cmake installed. +- \ref autoconf. This method works for most Unix-like systems, + including Linux and Mac OS X. +- \ref gnu. This is a simple installation method that works with g++ + and GNU make on Linux and many Unix platforms. +- \ref windows. This is a simple installation method that works with + Visual Studio 2005, 2008, and 2010 under Windows. +- \ref windowsbin. Use this installation method if you only need to use + the \ref utilities supplied with %GeographicLib. (This method also + installs the header files and the library for use by Visual Studio 10.) +- \ref qt. How to compile %GeographicLib so that it can be used by Qt + programs. +- \ref maintainer. This describes addition tasks of interest only to + the maintainers of this code. +. +This section documents only how to install the software. If you +wish to use %GeographicLib to evaluate geoid heights or the earth's +gravitational or magnetic fields, then you must also install the +relevant data files. See \ref geoidinst, \ref gravityinst, and \ref +magneticinst for instructions. + +The first two installation methods use two important techniques which +make software maintanence simpler +- Out-of-source builds: This means that you create a separate + directory for compiling the code. In the description here the + directories are called BUILD and are located in the top-level of the + source tree. You might want to use a suffix to denote the type of + build, e.g., BUILD-vc9 for Visual Studio 9, or BUILD-shared for a + build which creates a shared library. The advantages of out-of-source + builds are: + - You don't mess up the source tree, so it's easy to "clean up". + Indeed the source tree might be on a read-only file system. + - Builds for multiple platforms or compilers don't interfere with each + other. +- The library is installed: After compilation, there is a + separate install step which copies the headers, libraries, + tools, and documentation to a "central" location. You may at this + point delete the source and build directories. If you have + administrative privileges, you can install %GeographicLib for the use + of all users (e.g., in /usr/local). Otherwise, you can install it for + your personal use (e.g., in $HOME/packages). + +\section cmake Installation with cmake + +This is the recommended method of installation; however it requires that +cmake be installed on your system. +This permits %GeographicLib to be built either as a shared or a static +library on a wide variety of systems. cmake can also determine the +capabilities of your system and adjust the compilation of the +libraries and examples appropriately. + +cmake is available for most computer platforms. On Linux systems cmake +will typically one of the standard packages and can be installed by a +command like + \verbatim + yum install cmake \endverbatim +(executed as root). The minimum version of cmake supported for building +%GeographicLib is 2.8.4 (which was released on 2011-02-16). (Actually, +a few earlier versions will also work for non-Windows platforms.) + +On other systems, download a binary installer from http://www.cmake.org +click on download, and save and run the appropriate installer. Run the +cmake command with no arguments to get help. Other useful tools are +ccmake and cmake-gui which offer curses and graphical interfaces to +cmake. Building under cmake depends on whether it is targeting an IDE +(interactive development environment) or generating Unix-style +makefiles. The instructions below have been tested with makefiles and +g++ on Linux and with the Visual Studio IDE on Windows. + +Here are the steps to compile and install %GeographicLib: +- Unpack the source, running one of \verbatim + tar xfpz GeographicLib-1.34.tar.gz + unzip -q GeographicLib-1.34.zip \endverbatim + then enter the directory created with one of \verbatim + cd GeographicLib-1.34 \endverbatim +- Create a separate build directory and enter it, for example, \verbatim + mkdir BUILD + cd BUILD \endverbatim +- Run cmake, pointing it to the source directory (..). On Linux, Unix, + and MacOSX systems, the command is \verbatim + cmake .. \endverbatim + For Windows, the command is typically one of \verbatim + cmake -G "Visual Studio 10" -D CMAKE_INSTALL_PREFIX=C:/pkg-vc10/GeographicLib-1.34 .. + cmake -G "Visual Studio 9 2008" -D CMAKE_INSTALL_PREFIX=C:/pkg-vc9/GeographicLib-1.34 .. +\endverbatim + The definitions of CMAKE_INSTALL_PREFIX are optional (see below). The + settings given above are recommended to ensure that packages that use + %GeographicLib use the version compiled with the right compiler. + If you need to rerun cmake, use \verbatim + cmake . \endverbatim + possibly including some options via -D (see the next step). +- cmake allows you to configure how %GeographicLib is built and installed by + supplying options, for example \verbatim + cmake -D CMAKE_INSTALL_PREFIX=/tmp/geographic . \endverbatim + The options you might need to change are + - COMMON_INSTALL_PATH governs the installation + convention. If it is on ON (the Linux default), the installation + is to a common directory, e.g., /usr/local. If it is OFF (the + Windows default), the installation directory contains the package + name, e.g., C:/pkg/GeographicLib-1.34. The installation + directories for the documentation, cmake configuration, python and + matlab interfaces all depend on the variable with deeper paths + relative to CMAKE_INSTALL_PREFIX being used when it's ON: + - documentation: OFF: doc/html; ON: share/doc/GeographicLib/html; + - cmake configuration: OFF cmake; ON: share/cmake/GeographicLib; + - python interface: OFF: python; ON: lib/python/site-packages; + - matlab interface: OFF: matlab; ON: libexec/GeographicLib/matlab; + . + - CMAKE_INSTALL_PREFIX (default: /usr/local + on non-Windows systems, C:/Program Files/GeographicLib + on Windows systems) specifies where the library will be installed. + For windows systems, it is recommended to use a prefix which + includes the compiler version, as shown above (and also, possibly, + whether this is a 64-bit build, e.g., cmake -G "Visual Studio + 10 Win64" -D CMAKE_INSTALL_PREFIX=C:/pkg-vc10-x64/GeographicLib-1.34 + ..). If you just want to try the library to see if it suits + your needs, pick, for example, + CMAKE_INSTALL_PREFIX=/tmp/geographic. + - GEOGRAPHICLIB_DATA (default: + /usr/local/share/GeographicLib for non-Windows systems, + C:/Documents and Settings/All Users/Application + Data/GeographicLib for Windows systems) specifies the default + location for the various datasets for use by GeographicLib::Geoid, + GeographicLib::GravityModel, and GeographicLib::MagneticModel. + See \ref geoidinst, \ref gravityinst, and \ref magneticinst for more + information. + - GEOGRAPHICLIB_LIB_TYPE (allowed values: SHARED, STATIC, or + BOTH), specifies the types of libraries build. The default is + STATIC for Windows and SHARED otherwise. If building %GeographicLib + for sytem-wide use, BOTH is recommended, because this provides users + with the choice of which library to use. + - CMAKE_BUILD_TYPE (default: Release). This + flags only affects non-IDE compile environments (like make + g++). + The default is actually blank, but this is treated as + Release. Choose one of + \verbatim + Debug + Release + RelWithDebInfo + MinSizeRel +\endverbatim + (With IDE compile environments, you get to select the build type in + the IDE.) + - MATLAB_COMPILER (default: OFF). Set this to either + "mex" (for Matlab) or "mkoctfile" (for Octave) to specify the + compiler to use for the Matlab/Octave interface. See \ref matlab + for more information. + - GEOGRAPHICLIB_DOCUMENTATION (default: OFF). If set to + ON, then html documentation is created from the source files, + provided a sufficiently recent version of doxygen can be found. + Otherwise, the html documentation will redirect to the appropriate + version of the online documentation. + - BUILD_NETGEOGRAPHICLIB (default: OFF). If set to ON, + build the managed C++ wrapper library + NETGeographicLib. This only makes + sense for Windows systems. + - GEOGRAPHICLIB_PRECISION specifies the precision to be + used for "real" (i.e., floating point) numbers. 1 means float + (single precision); 2 (the default) means double; 3 means long + double; 4 is reserved for quadruple precision. Nearly all the + testing has been carried out with doubles and that's the + recommended configuration. In particular you should avoid + "installing" the library with a precision different from double. +- Build and install the software. In non-IDE environments, run + \verbatim + make # compile the library and the examples + make test # run some tests + make install # as root, if CMAKE_INSTALL_PREFIX is a system directory +\endverbatim + Possible additional targets are \verbatim + make matlabinterface (only for the Release configuration on Windows) + make dist + make exampleprograms + make netexamples (supported only for Release configuration) \endverbatim + On IDE environments, run your IDE (e.g., Visual Studio), load + GeographicLib.sln, pick the build type (e.g., Release), and select + "Build Solution". If this succeeds, select "RUN_TESTS" to build; + finally, select "INSTALL" to install (RUN_TESTS and INSTALL are in + the CMakePredefinedTargets folder). Alternatively, you run the + Visual Studio compiler from the command line with \verbatim + cmake --build . --config Release --target ALL_BUILD + cmake --build . --config Release --target RUN_TESTS + cmake --build . --config Release --target INSTALL \endverbatim + For maximum flexibility, it's a good idea to build and install both + the Debug and Release versions of the library (in that order). The + installation directories will then contain the release versions of the + tools and both versions (debug and release) of the libraries. + If you use cmake to configure and build your programs, then the right + version of the library (debug vs. release) will automatically be used. +- The headers, library, and utilities are installed in the + include/GeographicLib, lib, and bin directories under + CMAKE_INSTALL_PREFIX. (dll dynamic libraries are + installed in bin.) For documentation, open in a web browser + + PREFIX/share/doc/GeographicLib/html/index.html, if + COMMON_INSTALL_PATH is ON, or + PREFIX/doc/index.html, otherwise. + +\section autoconf Installation using the autoconfigure tools + +The method works on most Unix-like systems including Linux and Mac OS X. +Here are the steps to compile and install %GeographicLib: +- Unpack the source, running \verbatim + tar xfpz GeographicLib-1.34.tar.gz \endverbatim + then enter the directory created \verbatim + cd GeographicLib-1.34 \endverbatim +- Create a separate build directory and enter it, for example, \verbatim + mkdir BUILD + cd BUILD \endverbatim +- Configure the software, specifing the path of the source directory, + with \verbatim + ../configure \endverbatim +- By default %GeographicLib will be installed under /usr/local. + You can change this with, for example \verbatim + ../configure --prefix=/tmp/geographic \endverbatim +- Compile and install the software with \verbatim + make + make install \endverbatim +- The headers, library, and utilities are installed in the + include/GeographicLib, lib, and bin directories under + prefix. This installation method does not compile + the Matlab/Octave interface; however the source for the interface is + installed in libexec/GeographicLib/matlab, see \ref matlab of + instructions on compiling the interface. For documentation, open + + share/doc/GeographicLib/html/index.html in a web browser. + +\section gnu Installation with GNU compiler and Make + +This method requires the standard GNU suite of tools, in particular make +and g++. This builds a static library and the examples. + +Here are the steps to compile and install %GeographicLib: +- Unpack the source, running \verbatim + tar xfpz GeographicLib-1.34.tar.gz \endverbatim + then enter the directory created \verbatim + cd GeographicLib-1.34 \endverbatim +- Edit \verbatim + include/GeographicLib/Config.h \endverbatim + If your C++ compiler does not recognize the long double type + (unlikely), insert \code + #undef HAVE_LONG_DOUBLE \endcode + If your machine using big endian ordering, then insert \code + #define WORDS_BIGENDIAN 1 \endcode +- Build and install the software: \verbatim + make # compile the library and the examples + make install # as root \endverbatim + The installation is in directories under /usr/local. You + can specify a different installation directory with, for example, + \verbatim + make PREFIX=/tmp/geographic install \endverbatim +- The headers, library, and utilities are installed in the + include/GeographicLib, lib, and bin directories under + PREFIX. This installation method does not compile + the Matlab/Octave interface; however the source for the interface is + installed in libexec/GeographicLib/matlab, see \ref matlab of + instructions on compiling the interface. For documentation, open + + share/doc/GeographicLib/html/index.html in a web browser. + +\section windows Installation on Windows + +This method requires Visual Studio 2005, 2008, or 2010. This builds a +static library and the utilities. If you only have Visual Studio 2003, +use cmake to create the necessary solution file, see \ref cmake. (cmake +is needed to build the Matlab interface and to run the tests.) +- Unpack the source, running \verbatim + unzip -q GeographicLib-1.34.zip \endverbatim +- Open GeographicLib-1.34/windows/GeographicLib-vc10.sln in Visual Studio + 2010 (for Visual Studio 2005 and 2008, replace -vc10 by -vc8 or -vc9). +- Pick the build type (e.g., Release), and select "Build Solution". +- The library and the compiled examples are in the windows/Release. +- Copy the library windows/Release/GeographicLib.lib and the + headers in include/GeographicLib somewhere convenient. The + headers should remain in a directory named %GeographicLib. If you + expect to use the Matlab/Octave interface, copy matlab/*.m and + matlab/*.cpp to a directory in your matlab/octave path, see \ref + matlab for instructions on compiling the interface. For documentation, + open + doc/html/index.html in a web + browser. + +The Visual Studio 10 solution also contains projects to build +NETGeographicLib and the C# example project. + +\section windowsbin Using a binary installer for Windows + +Use this method if you only need to use the %GeographicLib utilities. +The header files and static and shared versions of library are also +provided; these can only be used by Visual Studio 2010 (in either +release or debug mode). However, if you plan to use the library, it may +be advisable to build it with the compiler you are using for your own +code using either \ref cmake or \ref windows. + +Download and run + +GeographicLib-1.34-win32.exe or + +GeographicLib-1.34-win64.exe: + - read the MIT/X11 License agreement, + - select whether you want your PATH modified, + - select the installation folder, by default + C:\\pkg-vc10\\GeographicLib-1.34 or C:\\pkg-vc10-x64\\GeographicLib-1.34, + - select the start menu folder, + - and install. + . +(Note that the default installation folder adheres the the convention +given in \ref cmake.) The start menu will now include links to the +documentation for the library and for the utilities (and a link for +uninstalling the library). If you ask for your PATH to be modified, it +will include C:/pkg-vc10/GeographicLib-1.34/bin where the utilities are +installed. The headers and library are installed in the +include/GeographicLib and lib folders. With the 64-bit installer, the +Matlab interface is installed in the matlab folder. Add this to your +path in Matlab to access this interface. The libraries were built using +using Visual Studio 10 in release and debug modes. The utilities were +linked against the release-mode shared library. The Matlab interface +was compiled with Matlab R2013a 64-bit, however it may work with some +other 64-bit versions of Matlab. +NETGeographicLib library dlls (release and +debug) are included with the binary installers; these are linked against +the shared library for %GeographicLib. + +\section qt Building the library for use with Qt + +If Qt is using a standard compiler, then build %GeographicLib with that +same compiler (and optimization flags) as Qt. + +If you are using the mingw compiler on Windows for Qt, then you need to +build %GeographicLib with mingw. You can accomplish this with cmake +under cygwin with, for example, \verbatim + export PATH="`cygpath -m c:/QtSDK/mingw/bin`:$PATH" + mkdir BUILD + cd BUILD + cmake -G "MinGW Makefiles" -D CMAKE_INSTALL_PREFIX=C:/pkg-mingw/GeographicLib .. + mingw32-make + mingw32-make install \endverbatim +If cmake complains that sh mustn't be in your path, invoke cmake with +\verbatim + env PATH="$( echo $PATH | tr : '\n' | + while read d; do test -f "$d/sh.exe" || echo -n "$d:"; done | + sed 's/:$//' )" \ + cmake -G "MinGW Makefiles" -D CMAKE_INSTALL_PREFIX=C:/pkg-mingw/GeographicLib .. +\endverbatim +If cmake is not available, there is a simple project file that compiles +the %GeographicLib library only with the Qt compiler: \verbatim + cd src + qmake GeographicLib.pro # configure the project + make # build the library \endverbatim +The library will be in the src directory (or the src/release or +src/debug directory under Windows). The headers are in +include/GeographicLib. + +\section maintainer Maintainer tasks + +Check the code out of git with \verbatim + git clone -b master git://git.code.sf.net/p/geographiclib/code geographiclib +\endverbatim +Here the "master" branch is checked out. There are three branches in +the git repository: +- master: the main branch for code maintainence. Releases are + tagged on this branch as, e.g., v1.34. +- devel: the development branch; changes made here are merged + into master. +- release: the release branch created by unpacking the source + releases (git is \e not used to merge changes from the other + branches into this branch). This is the \e default branch of the + repository (the branch you get if cloning the repository without + specifying a branch). This differs from the master branch in that + some administrative files are excluded while some intermediate files + are included (in order to aid building on as many platforms as + possible). Releases are tagged on this branch as, e.g., r1.34. +. +The autoconf configuration script and the formatted man pages are not +checked into master branch of the repository. In order to create the +autoconf configuration script, run \verbatim + sh autogen.sh \endverbatim +in the top level directory. Provided you are running on a system with +doxygen, pod2man, and pod2html installed, then you can create the +documentation and the man pages by building the system using cmake or +configure. + +In the case of cmake, you then run \verbatim + make dist \endverbatim +which will copy the man pages from the build directory back into the +source tree and package the resulting source tree for distribution as +\verbatim + GeographicLib-1.34.tar.gz + GeographicLib-1.34.zip \endverbatim +Finally, \verbatim + make package \endverbatim +or building PACKAGE in Visual Studio will create a binary installer for +%GeographicLib. For Windows, this requires in the installation of +NSIS. On Windows, you should +configure %GeographicLib with PACKAGE_DEBUG_LIBS=ON, build both +Release and Debug versions of the library and finally build PACKAGE in +Release mode. This will get the release and debug versions of the +library included in the package. For example, the 64-bit binary +installer is created with \verbatim + cmake -G "Visual Studio 10 Win64" \ + -D GEOGRAPHICLIB_LIB_TYPE=BOTH \ + -D PACKAGE_DEBUG_LIBS=ON \ + -D MATLAB_COMPILER=mex \ + -D BUILD_NETGEOGRAPHICLIB=ON \ + .. + cmake --build . --config Debug --target ALL_BUILD + cmake --build . --config Release --target ALL_BUILD + cmake --build . --config Release --target matlabinterface + cmake --build . --config Release --target PACKAGE \endverbatim + +With configure, run \verbatim + make dist-gzip \endverbatim +which will create the additional files and packages the results ready +for distribution as \verbatim + geographiclib-1.34.tar.gz \endverbatim + +
+Back to \ref intro. Forward to \ref start. Up to \ref contents. +
+**********************************************************************/ +/** +\page start Getting started + +
+Back to \ref install. Forward to \ref utilities. Up to \ref contents. +
+ +Much (but not all!) of the useful functionality of %GeographicLib is +available via simple command line utilities. Interfaces to some of them +are available via the web. See \ref utilities for documentation on +these. + +In order to use %GeographicLib from C++ code, you will need to +- Include the header files for the %GeographicLib classes in your code. + E.g., \code + #include \endcode +- Include the GeographicLib:: namespace prefix to the %GeographicLib classes, + or include \code + using namespace GeographicLib; \endcode + in your code. +- Finally compile and link your code. You have two options here. + - Use cmake to build your package. If you are familiar with cmake + this typically will be far the simplest option. + - Set the include paths and linking options "manually". +- Building your code with cmake. In brief, the necessary steps are: + - include in your CMakeLists.txt files \verbatim + find_package (GeographicLib 1.34 REQUIRED) + include_directories (${GeographicLib_INCLUDE_DIRS}) + add_definitions (${GeographicLib_DEFINITIONS}) + add_executable (program source1.cpp source2.cpp) + target_link_libraries (program ${GeographicLib_LIBRARIES}) \endverbatim + (The add_definitions line is only needed for Windows + and can be omitted if you're using cmake version 2.8.11 or later.) + - configure your package, e.g., with \verbatim + mkdir BUILD + cd BUILD + cmake -G "Visual Studio 10" \ + -D CMAKE_PREFIX_PATH=C:/pkg-vc10 \ + -D CMAKE_PREFIX_PATH=C:/pkg-vc10/testgeographic \ + .. \endverbatim + Note that you almost always want to configure and build your code + somewhere other than the source directory (in this case, we use the + BUILD subdirectory). + - build your package. On Linux and MacOS this usually involves just + running make. On Windows, you can load the solution file created by + cmake into Visual Studio; alternatively, you can get cmake to run + build your code with \verbatim + cmake --build . --config Release --target ALL_BUILD \endverbatim + You might also want to install your package (using "make install" or + build the "INSTALL" target with the command above). + . + The most import step is the find_package command. The cmake + documentation describes the locations searched by find_package (the + appropriate rule for %GeographicLib are those for "Config" mode lookups). + In brief, the locations that are searched are (from least specific to + most specific, i.e., in reverse order) are + - under the system paths, i.e., locations such as C:/Program + Files and /usr/local); + - frequently, it's necessary to search within a "package directory" + (or set of directories) for external dependencies; this is given by + a (semicolon separated) list of directories specified by the cmake + variable CMAKE_PREFIX_PATH (illustrated above); + - the package directory for %GeographicLib can be overridden with the + environment variable GeographicLib_DIR (which is the + directory under which %GeographicLib is installed); + - finally, if you need to point to a particular build of %GeographicLib, + define the cmake variable GeographicLib_DIR, which + specifies the directory containing the configuration file + geographiclib-config.cmake (for debugging this be the + top-level build directory, as opposed to installation + directory, for %GeographicLib). + . + Typically, specifying nothing or CMAKE_PREFIX_PATH + suffices. However the two GeographicLib_DIR variables allow + for a specific version to be chosen. On Windows systems (with Visual + Studio), find_package will only find versions of %GeographicLib built with + the right version of the compiler. (If you used a non-cmake method of + installing %GeographicLib, you can try copying cmake/FindGeographicLib.cmake + to somewhere in your CMAKE_MODULE_PATH in order for + find_package to work. However, this method has not been thoroughly + tested.) + + If %GeographicLib is found, then the following cmake variables are set: + - GeographicLib_FOUND = 1 + - GeographicLib_VERSION = 1.34 + - GeographicLib_INCLUDE_DIRS + - GeographicLib_LIBRARIES = one of the following two: + - GeographicLib_SHARED_LIBRARIES = %GeographicLib + - GeographicLib_STATIC_LIBRARIES = GeographicLib_STATIC + - GeographicLib_DEFINITIONS = one of the following two: + - GeographicLib_SHARED_DEFINITIONS = -DGEOGRAPHICLIB_SHARED_LIB=1 + - GeographicLib_STATIC_DEFINITIONS = -DGEOGRAPHICLIB_SHARED_LIB=0 + - GeographicLib_LIBRARY_DIRS + - GeographicLib_BINARY_DIRS + . + Either of GeographicLib_SHARED_LIBRARIES or + GeographicLib_STATIC_LIBRARIES may be empty, if that version + of the library is unavailable. If you require a specific version, + SHARED or STATIC, of the library, add a COMPONENTS clause + to find_package, e.g., + \verbatim + find_package (GeographicLib 1.34 REQUIRED COMPONENTS SHARED) \endverbatim + causes only packages which include the shared library to be found. If + the package includes both versions of the library, then + GeographicLib_LIBRARIES and + GeographicLib_DEFINITIONS are set to the shared versions, + unless you include \verbatim + set (GeographicLib_USE_STATIC_LIBS ON) \endverbatim + before the find_package command. You can check whether + GeographicLib_LIBRARIES refers to the shared or static + library with \verbatim + get_target_property(_LIBTYPE ${GeographicLib_LIBRARIES} TYPE) \endverbatim + which results in _LIBTYPE being set to + SHARED_LIBRARY or STATIC_LIBRARY. + On Windows, cmake takes care of linking to the release or debug + version of the library as appropriate. (This assumes that the Release + and Debug versions of the libraries were built and installed. This is + true for the Windows binary installer for %GeographicLib version 1.34 and + later.) +- Here are the steps to compile and link your code using %GeographicLib + "manually". + - Tell the compiler where to find the header files. With g++ and with + /usr/local specified as the installation directory, + this is accomplished with \verbatim + g++ -c -g -O3 -funroll-loops -I/usr/local/include testprogram.cpp + \endverbatim + With Visual Studio, specify the include directory in the IDE via, + e.g., + \verbatim + C/C++ -> General -> Additional Include Directories = C:\pkg-vc10\GeographicLib\include + \endverbatim + - If using the shared (or static) library with Visual Studio, define + the macro GEOGRAPHICLIB_SHARED_LIB=1 (or + 0), e.g., + \verbatim + C/C++ -> Preprocessor -> Preprocessor Definitions = GEOGRAPHICLIB_SHARED_LIB=1 + \endverbatim + This is only needed for Windows systems when both shared and static + libraries have been installed. (If you configure your package with + cmake, this definition is added automatically.) + - Tell the linker the name, Geographic, and location of the + library. Using g++ as the linker, you would use \verbatim + g++ -g -o testprogram testprogram.o -L/usr/local/lib -lGeographic + \endverbatim + With Visual Studio, you supply this information in the IDE via, + e.g., \verbatim + Linker -> Input -> Additional Dependencies = Geographic-i.lib (for shared library) + Linker -> Input -> Additional Dependencies = Geographic.lib (for static library) + Linker -> General -> Additional Library Directories = C:\pkg-vc10\Geographic\lib + \endverbatim + Note that the library name is Geographic and not + %GeographicLib. For the Debug version of your program on Windows + add "_d" to the library, e.g., Geographic_d-i.lib or + Geographic_d.lib. + - Tell the runtime environment where to find the shared library + (assuming you compiled %Geographic as a shared library). With g++, + this is accomplished by modifying the link line above to read \verbatim + g++ -g -o testprogram testprogram.o -Wl,-rpath=/usr/local/lib \ + -L/usr/local/lib -lGeographic + \endverbatim + (There are two other ways to specify the location of shared libraries + at runtime: (1) define the environment variable + LD_LIBRARY_PATH to be a colon-separated list of + directories to search; (2) as root, specify /usr/local/lib as a + directory searched by ldconfig(8).) On Windows, you need to ensure + that Geographic.dll or Geographic_d.dll is in the same directory as + your executable or else include the directory containing the dll in + your PATH. + +Here is a very simple test code, which uses the GeographicLib::Geodesic +class: +\include example-Geodesic-small.cpp +This example is examples/example-Geodesic-small.cpp. If you +compile, link, and run it according to the instructions above, it should +print out \verbatim + 5551.76 km \endverbatim +Here is a complete CMakeList.txt files you can use to build this test +code using the installed library: \verbatim +project (geodesictest) +cmake_minimum_required (VERSION 2.8.4) + +find_package (GeographicLib 1.34 REQUIRED) + +if (NOT MSVC) + set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) +endif () + +include_directories (${GeographicLib_INCLUDE_DIRS}) +add_definitions (${GeographicLib_DEFINITIONS}) +add_executable (${PROJECT_NAME} example-Geodesic-small.cpp) +target_link_libraries (${PROJECT_NAME} ${GeographicLib_LIBRARIES}) + +if (MSVC) + get_target_property (_LIBTYPE ${GeographicLib_LIBRARIES} TYPE) + if (_LIBTYPE STREQUAL "SHARED_LIBRARY") + # On Windows systems, copy the shared library to build directory + add_custom_command (TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E + copy $ ${CMAKE_CFG_INTDIR} + COMMENT "Copying shared library for GeographicLib") + endif () +endif () \endverbatim + +The next steps are: + - Learn about and run the \ref utilities. + - Read the section, \ref organization, for an overview of the library. + - Browse the Class List for full documentation + on the classes in the library. + - Look at the example code in the examples directory. Each file + provides a very simple standalone example of using one %GeographicLib + class. These are included in the descriptions of the classes. + - Look at the source code for the utilities in the tools directory for + more examples of using %GeographicLib from C++ code, e.g., + GeodesicProj.cpp is a program to performing various geodesic + projections. + +Here's a list of some of the abbreviations used here with links to the +corresponding Wikipedia articles: + - + WGS84, World Geodetic System 1984. + - + UTM, Universal Transverse Mercator coordinate system. + - + UPS, Universal Polar Stereographic coordinate system. + - + MGRS, Military Grid Reference System. + - + EGM, Earth Gravity Model. + - + WMM, World Magnetic Model. + - + IGRF, International Geomagnetic Reference Field. + +
+Back to \ref install. Forward to \ref utilities. Up to \ref contents. +
+**********************************************************************/ +/** +\page utilities Utility programs + +
+Back to \ref start. Forward to \ref organization. Up to \ref contents. +
+ +Various utility programs are provided with %GeographicLib. These should +be installed in a directory included in your PATH (e.g., +/usr/local/bin). These programs are wrapper programs that invoke +the underlying functionality provided by the library. + +The utilities are + - + GeoConvert: convert geographic coordinates using + GeographicLib::GeoCoords. + - + GeodSolve: perform geodesic calculations using + GeographicLib::Geodesic and GeographicLib::GeodesicLine. + - + Planimeter: compute the area of geodesic polygons using + GeographicLib::PolygonArea. + - + TransverseMercatorProj: convert between geographic + and transverse Mercator. This is for testing + GeographicLib::TransverseMercatorExact and + GeographicLib::TransverseMercator. + - + CartConvert: convert geodetic coordinates to geocentric or + local cartesian using GeographicLib::Geocentric and + GeographicLib::LocalCartesian. + - + GeodesicProj: perform projections based on geodesics + using GeographicLib::AzimuthalEquidistant, GeographicLib::Gnomonic, + and GeographicLib::CassiniSoldner. + - + ConicProj: perform conic projections using + GeographicLib::LambertConformalConic and + GeographicLib::AlbersEqualArea. + - + GeoidEval: look up geoid heights using + GeographicLib::Geoid. + - + Gravity: compute the earth's gravitational field using + GeographicLib::GravityModel and GeographicLib::GravityCircle. + - + MagneticField: compute the earth's magnetic field using + GeographicLib::MagneticModel and GeographicLib::MagneticCircle. + . +The documentation for these utilities is in the form of man pages. This +documentation can be accessed by clicking on the utility name in the +list above, running the man command on Unix-like systems, or by invoking +the utility with the --help option. A brief summary of usage is given +by invoking the utility with the -h option. The version of the utility +is given by the --version option. + +The utilities all accept data on standard input, transform it in some +way, and print the results on standard output. This makes the utilities +easy to use within scripts to transform tabular data; however they can +also be used interactively, often with the input supplied via a pipe, +e.g., + - echo 38SMB4488 | GeoConvert -d + +Online versions of four of these utilities are provided: + - GeoConvert + - GeodSolve + - Planimeter + - GeoidEval + +
+Back to \ref start. Forward to \ref organization. Up to \ref contents. +
+**********************************************************************/ +/** +\page organization Code organization + +
+Back to \ref utilities. Forward to \ref other. Up to \ref contents. +
+ +Here is a brief description of the relationship between the various +components of %GeographicLib. All of these are defined in the +GeographicLib namespace. + +GeographicLib::TransverseMercator, GeographicLib::PolarStereographic, +GeographicLib::LambertConformalConic, and GeographicLib::AlbersEqualArea +provide the basic projections. The constructors for these classes +specify the ellipsoid and the forward and reverse projections are +implemented as const member functions. TransverseMercator uses +Krüger's series which have been extended to sixth order in the +square of the eccentricity. PolarStereographic, LambertConformalConic, +and AlbersEqualArea use the exact formulas for the projections (e.g., +from Snyder). + +GeographicLib::TransverseMercator::UTM and +GeographicLib::PolarStereographic::UPS are const static instantiations +specific for the WGS84 ellipsoid with the UTM and UPS scale factors. +(These do \e not add the standard false eastings or false northings for +UTM and UPS.) Similarly GeographicLib::LambertConformalConic::Mercator +is a const static instantiation of this projection for a WGS84 ellipsoid +and a standard parallel of 0 (which gives the Mercator projection). +GeographicLib::AlbersEqualArea::CylindricalEqualArea, +AzimuthalEqualAreaNorth, and AzimuthalEqualAreaSouth, likewise provide +special cases of the equal area projection. + +GeographicLib::UTMUPS uses TransverseMercator::UTM and +PolarStereographic::UPS to perform the UTM and UPS +projections. The class offers a uniform interface to UTM and UPS by +treating UPS as UTM zone 0. This class stores no internal state and the +forward and reverse projections are provided via static member +functions. The forward projection offers the ability to override the +standard UTM/UPS choice and the UTM zone. + +GeographicLib::MGRS transforms between UTM/UPS coordinates and MGRS. +UPS coordinates are handled as UTM zone 0. This class stores no +internal state and the forward (UTM/UPS to MGRS) and reverse (MGRS to +UTM/UPS) conversions are provided via static member functions. + +GeographicLib::GeoCoords holds a single geographic location which may be +specified as latitude and longitude, UTM or UPS, or MGRS. Member +functions are provided to convert between coordinate systems and to +provide formatted representations of them. +GeoConvert is a simple command line +utility to provide access to the GeoCoords class. + +GeographicLib::TransverseMercatorExact is a drop in replacement for +TransverseMercator which uses the exact formulas, based on elliptic +functions, for the projection as given by Lee. +TransverseMercatorProj is a +simple command line utility to test to the TransverseMercator and +TransverseMercatorExact. + +GeographicLib::Geodesic and GeographicLib::GeodesicLine perform geodesic +calculations. The constructor for GeographicLib::Geodesic specifies the +ellipsoid and the direct and inverse calculations are implemented as +const member functions. GeographicLib::Geocentric::WGS84 is a const +static instantiation of Geodesic specific for the WGS84 ellipsoid. In +order to perform a series of direct geodesic calculations on a single +line, the GeographicLib::GeodesicLine class can be used. This packages +all the information needed to specify a geodesic. A const member +function returns the coordinates a specified distance from the starting +point. GeodSolve is a simple command +line utility to perform geodesic calculations. +GeographicLib::PolygonArea is a class which compute the area of geodesic +polygons using the Geodesic class and Planimeter is a command line utility for +the same purpose. GeographicLib::AzimuthalEquidistant, +GeographicLib::CassiniSoldner, and GeographicLib::Gnomonic are +projections based on the Geodesic class. GeodesicProj is a command line utility to +exercise these projections. + +GeographicLib::GeodesicExact and GeographicLib::GeodesicLineExact are +drop in replacements for GeographicLib::Geodesic and +GeographicLib::GeodesicLine in which the solution is given in terms of +elliptic integrals (computed by GeographicLib::EllipticFunction). +These classes should be used if the absolute value of the flattening +exceeds 0.02. The -E option to GeodSolve +uses these classes. + +GeographicLib::Geocentric and GeographicLib::LocalCartesian convert between +geodetic and geocentric or a local cartesian system. The constructor for +specifies the ellipsoid and the forward and reverse projections are +implemented as const member functions. GeographicLib::Geocentric::WGS84 is a +const static instantiation of Geocentric specific for the WGS84 ellipsoid. +CartConvert is a simple command line +utility to provide access to these classes. + +GeographicLib::Geoid evaluates geoid heights by interpolation. This is +provided by the operator() member function. +GeoidEval is a simple command line +utility to provide access to this class. This class requires +installation of data files for the various geoid models; see \ref +geoidinst for details. + +GeographicLib::Ellipsoid is a class which performs latitude +conversions and returns various properties of the ellipsoid. + +GeographicLib::GravityModel evaluates the earth's gravitational field +using a particular gravity model. Various member functions return the +gravitational field, the gravity disturbance, the gravity anomaly, and +the geoid height Gravity is a simple +command line utility to provide access to this class. If the field +several points on a circle of latitude are sought then use +GeographicLib::GravityModel::Circle to return a +GeographicLib::GravityCircle object whose member functions performs the +calculations efficiently. (This is particularly important for high +degree models such as EGM2008.) These classes requires installation of +data files for the various gravity models; see \ref gravityinst for +details. + +GeographicLib::MagneticModel evaluates the earth's magnetic field using +a particular magnetic model. The field is provided by the operator() +member function. MagneticField is a +simple command line utility to provide access to this class. If the +field several points on a circle of latitude are sought then use +GeographicLib::MagneticModel::Circle to return a +GeographicLib::MagneticCircle object whose operator() member function +performs the calculation efficiently. (This is particularly important +for high degree models such as emm2010.) These classes requires +installation of data files for the various magnetic models; see \ref +magneticinst for details. + +GeographicLib::Constants, GeographicLib::Math, GeographicLib::Utility, +GeographicLib::DMS, are general utility class which are used +internally by the library; in addition GeographicLib::EllipticFunction +is used by GeographicLib::TransverseMercatorExact, +GeographicLib::Ellipsoid, and GeographicLib::GeodesicExact, and +GeographicLib::GeodesicLineExact; GeographicLib::Accumulator is used +by GeographicLib::PolygonArea, and GeographicLib::SphericalEngine, +GeographicLib::CircularEngine, GeographicLib::SphericalHarmonic, +GeographicLib::SphericalHarmonic1, and +GeographicLib::SphericalHarmonic2 facilitate the summation of +spherical harmonic series which is needed by and +GeographicLib::MagneticModel and GeographicLib::MagneticCircle. One +important definition is GeographicLib::Math::real which is the type +used for real numbers. This allows the library to be easily switched +to using floats, doubles, or long doubles. However all the testing +has been with real set to double and the library should be installed +in this way. + +In general, the constructors for the classes in %GeographicLib check +their arguments and throw GeographicLib::GeographicErr exceptions with a +explanatory message if these are illegal. The member functions, e.g., +the projections implemented by TransverseMercator and +PolarStereographic, the solutions to the geodesic problem, etc., +typically do not check their arguments; the calling program +should ensure that the arguments are legitimate. However, the functions +implemented by UTMUPS, MGRS, and GeoCoords do check their arguments and +may throw GeographicLib::GeographicErr exceptions. Similarly Geoid may +throw exceptions on file errors. If a function does throw an exception, +then the function arguments used for return values will not have been +altered. + +%GeographicLib attempts to act sensibly with NaNs. NaNs in constructors +typically throw errors (an exception is GeodesicLine). However, calling +the class functions with NaNs as arguments is not an error; NaNs are +returned as appropriate. "INV" is treated as an invalid zone +designation by UTMUPS. "INVALID" is the corresponding invalid MGRS +string. (Similary "nan" is the equivalent invalid Geohash.) NaNs allow +the projection of polylines which are separated by NaNs; in this format +they can be easily plotted in Matlab. + +A note about portability. For the most part, the code uses standard C++ +and should be able to be deployed on any system with a modern C++ +compiler. System dependencies come into + - GeographicLib::Math -- GeographicLib needs to define functions such + as atanh for systems that lack them. The system dependence will + disappear with the adoption of C++11 because the needed functions are + part of that standard. + - use of long double -- the type is used only for testing. On systems + which lack this data type the cmake and autoconf configuration + methods should detect its absence and omit the code that depends on + it. + - GeographicLib::Geoid, GeographicLib::GravityModel, and + GeographicLib::MagneticModel -- these class uses system-dependent + default paths for looking up the respective datasets. It also relies + on getenv to find the value of the environment variables. + - GeographicLib::Utility::readarray reads numerical data from binary + files. This assumes that floating point numbers are in IEEE format. + It attempts to handled the "endianness" of the target platform using + the WORDS_BIGENDIAN macro (which sets the compile-time constant + GeographicLib::Math::bigendian). + +An attempt is made to maintain backward compatibility with +%GeographicLib (especially at the level of your source code). Sometimes +it's necessary to take actions that depend on what version of +%GeographicLib is being used; for example, you may want to use a new +feature of %GeographicLib, but want your code still to work with older +versions. In that case, you can test the values of the macros +GEOGRAPHICLIB_VERSION_MAJOR, GEOGRAPHICLIB_VERSION_MINOR, and +GEOGRAPHICLIB_VERSION_PATCH; these expand to numbers (and the last one +is usually 0); these macros appeared starting in version 1.34. There's +also a macro GEOGRAPHICLIB_VERSION_STRING which expands to, e.g., +"1.34"; this macro has been defined since version 1.9. + +
+Back to \ref utilities. Forward to \ref other. Up to \ref contents. +
+**********************************************************************/ +/** +\page other Implementations in other languages + +
+Back to \ref organization. Forward to \ref geoid. Up to \ref contents. +
+ +Implementations of subsets of %GeographicLib are available in other languages +- \ref c-fortran +- \ref java. +- \ref javascript. +- \ref python. +- \ref matlab. +- \ref maxima. +- \ref dotnet. + +\section c-fortran C and Fortran implementation + +The directories legacy/C and legacy/Fortran +contain implementations of GeographicLib::Geodesic, +GeographicLib::GeodesicLine, and GeographicLib::PolygonArea in C and +Fortran respectively. These are intended for use in old codes written +in these languages and should work any reasonably modern compiler. +These implementations are entirely self-contained and do not depend on +the rest of %GeographicLib. Sample main programs to solve the direct +and inverse geodesic problems and to compute polygonal areas are +provided. + +For documentation, see + - C library for geodesics, + - Fortran library for geodesics. + +\section java Java implementation + +The directory java contains implementations of +GeographicLib::Geodesic, GeographicLib::GeodesicLine, and +GeographicLib::PolygonArea in Java. This implementation is entirely +self-contained and does not depend on the rest of %GeographicLib. +Sample main programs to solve the direct and inverse geodesic problems +and to compute polygonal areas are provided. + +For documentation, see + - Java library for geodesics. + +\section javascript JavaScript implementation + +The directory doc/scripts/GeographicLib contains the classes +- GeographicLib::Math +- GeographicLib::Accumulator +- GeographicLib::Geodesic +- GeographicLib::GeodesicLine +- GeographicLib::PolygonArea +- GeographicLib::DMS +. +translated into JavaScript. See Interface.js for a simple JavaScript +interface to these routines (documented near the top of the file). +Examples of using this interface are +- a geodesic calculator showing + the solution of direct and inverse geodesic problem, finding + intermediate points on a geodesic line, and computing the area of a + geodesic polygon. +- displaying geodesics in Google + Maps which shows the geodesic, the geodesic circle, and various + geodesic envelopes. +. +These examples include a "stripped" version of the JavaScript code, \code + \endcode +which loads faster. + +\section python Python implementation + +A python implementation of the geodesic routines from GeographicLib +are provided in the python/geographiclib directory (which is installed +as PREFIX/lib/python/site-packages/geographiclib, if +COMMON_INSTALL_PATH is ON, and as PREFIX/python/geographiclib, +otherwise). This contains implementations of the classes +- GeographicLib::Math +- GeographicLib::Accumulator +- GeographicLib::Geodesic +- GeographicLib::GeodesicLine +- GeographicLib::PolygonArea +. +You can also download the python interface independent of the rest of +%GeographicLib from +- + http://pypi.python.org/pypi/geographiclib +. +and then unpack the .tar.gz or .zip file. + +You can "install" these routines, so that they are in python's default +path with, for example \verbatim + cd geographiclib-1.16 + python setup.py install +\endverbatim +(this will require root privileges). Or else you can set the path +within python using \code +>>> import sys +>>> sys.path.append("/usr/local/lib/python/site-packages") +\endcode + +An example of using this interface is \code +>>> from geographiclib.geodesic import Geodesic +>>> # The geodesic inverse problem +... Geodesic.WGS84.Inverse(-41.32, 174.81, 40.96, -5.50) +>>> # The geodesic direct problem +... Geodesic.WGS84.Direct(40.6, -73.8, 45, 10000e3) +>>> # How to obtain several points along a geodesic +... line = Geodesic.WGS84.Line(40.6, -73.8, 45) +>>> line.Position( 5000e3) +>>> line.Position(10000e3) +>>> # Computing the area of a geodesic polygon +... def p(lat,lon): return {'lat': lat, 'lon': lon} +... +>>> Geodesic.WGS84.Area([p(0, 0), p(0, 90), p(90, 0)]) +>>> # Introductory help +... help(Geodesic) +\endcode + +Another illustrative exercise is finding the point midway between JFK +Airport to Singapore Changi Airport +\code +from geographiclib.geodesic import Geodesic + +# Coordinates of airports +lat1, lon1 = 40.640, -73.779 # JFK +lat2, lon2 = 1.359, 103.989 # SIN + +# Compute path from 1 to 2 +g = Geodesic.WGS84.Inverse(lat1, lon1, lat2, lon2) + +# Compute midpoint starting at 1 +h = Geodesic.WGS84.Direct(lat1, lon1, g['azi1'], g['s12']/2) +print(h['lat2'], h['lon2']); +\endcode + +(Note: The initial version of setup.py was provided by Andrew MacIntyre +of the Australian Communications and Media Authority.) + +\section matlab Matlab and Octave implementations + +The matlab directory contains + - Native Matlab implementations of the geodesic routines. To use + these, start Matlab or Octave and run one of (for example) \verbatim + addpath /usr/local/libexec/GeographicLib/matlab + addpath 'C:/pkg-vc10-x64/GeographicLib-1.34/libexec/GeographicLib/matlab' + \endverbatim + The available functions are: + - geoddoc: briefly descibe the routines + - geodreckon: solve the direct geodesic problem + - geoddistance: solve the inverse geodesic problem + - geodarea: compute the area of ellipsoidal polygons + . + Use the help function to get documentation, e.g., \code + help geoddistance \endcode + to obtain documentation. These functions are also available as a + standalone package from + + Matlab File Exchange using the link + - + http://www.mathworks.com/matlabcentral/fileexchange/39108 + - Native Matlab implementations of projections which are related to + geodesics. These are + - geodproj: briefly descibe the routines + - eqdazim_fwd, eqdazim_inv: azimuthal equidistant + - cassini_fwd, cassini_inv: Cassini-Soldner + - tranmerc_fwd, tranmerc_inv: transverse Mercator + - gnomonic_fwd, gnomonic_inv: ellipsoidal gnomonic + - utm_fwd, utm_inv: universal transverse Mercator + . + These functions are also available as a package from + + Matlab File Exchange using the link + - + http://www.mathworks.com/matlabcentral/fileexchange/39366 + . + (This requires that the previous package also be installed.) + - Interface code so that some %GeographicLib classes can be accessed + from Matlab or Octave. The rest of this section describes how to + compile and use these interfaces. + +There are two ways of compiling the interface code: (1) using cmake and +(2) invoking the compiler from Matlab. + - Using cmake: Before running cmake, configure MATLAB on + Windows to use the same compiler that you're going to use for compiling + %GeographicLib. For example \verbatim + mex.bat -setup + + Please choose your compiler for building MEX-files: + Would you like mex to locate installed compilers [y]/n? y + Select a compiler: + [1] Microsoft Visual C++ 2012 in C:\Program Files (x86)\Microsoft Visual Studio 11.0 + [2] Microsoft Visual C++ 2010 in C:\Program Files (x86)\Microsoft Visual Studio 10.0 + + [0] None + + Compiler: 2 + etc. \endverbatim + (This will require that mex.bat is in your PATH. With Linux, use + mex -setup.) Then configure cmake with, for example + \verbatim + cmake -G "Visual Studio 10" -D MATLAB_COMPILER=mex .. + cmake --build . --config Release --target matlabinterface \endverbatim + (Note that only the Release configuration is supported for Matlab.) + If you are running a 64-bit version of Matlab, be sure to select a + 64-bit generator with cmake, e.g., "Visual Studio 10 Win64". Finally + compile %GeographicLib with Visual Studio. (The binary installer for + 64-bit Windows includes the compiled interface built with Visual + Studio 10 and Matlab R2013a 64-bit).
+ On Linux systems, you can compile the interface for use with octave + instead by using \verbatim + cmake -D MATLAB_COMPILER=mkoctfile .. + make matlabinterface \endverbatim + - Invoking the compiler from Matlab or Octave: Start Matlab or + Octave and run, e.g., \code + mex -setup + cd 'C:/pkg-vc10-x64/GeographicLib-1.34/matlab' + help geographiclibinterface + geographiclibinterface('C:/pkg-vc10/GeographicLib-1.34'); + addpath(pwd); + \endcode + The first command allows you to select the compiler to use (which + should be the same as that used to compile %GeographicLib). + +To use the interface routines for %GeographicLib, run one of (for +example) \verbatim + addpath /usr/local/libexec/GeographicLib/matlab + addpath 'C:/pkg-vc10-x64/GeographicLib-1.34/libexec/GeographicLib/matlab' +\endverbatim +in Octave or Matlab. The available functions are: + - geodesicdirect: solve direct geodesic problem + (see GeographicLib::Geodesic::Direct) + - geodesicinverse: solve inverse geodesic problem + (see GeographicLib::Geodesic::Inverse) + - geodesicline: compute points along a geodesic + (see GeographicLib::GeodesicLine::Position) + - polygonarea: compute area of a geodesic polygon + (see GeographicLib::PolygonArea) + - utmupsforward: convert geographic coordinates to UTM/UPS + (see GeographicLib::UTMUPS::Forward) + - utmupsreverse: convert UTM/UPS coordinates to geographic + (see GeographicLib::UTMUPS::Reverse) + - mgrsforward: convert UTM/UPS coordinates to MGRS + (see GeographicLib::MGRS::Forward) + - mgrsreverse: convert MGRS coordinates to UTM/UPS + (see GeographicLib::MGRS::Reverse) + - geoidheight: compute geoid height + (see GeographicLib::Geoid::operator()()) + - geocentricforward: convert geographic coordinates to geocentric + (see GeographicLib::Geocentric::Forward) + - geocentricreverse: convert geocentric coordinates to geographic + (see GeographicLib::Geocentric::Reverse) + - localcartesianforward: convert geographic coordinates to local cartesian + (see GeographicLib::LocalCartesian::Forward) + - localcartesianreverse: convert local cartesian coordinates to geographic + (see GeographicLib::LocalCartesian::Reverse) + . +These routines just offer a simple interface to the corresponding C++ +class. Use the help function to get documentation, e.g., \code + help geodesicdirect \endcode +Unfortunately, the help function does not work for compiled functions in +Octave; in this case, just list the .m file, e.g., \code + type geodesicdirect \endcode +Other useful functions, e.g., to convert from geographic +coordinates to MGRS can easily be written with Matlab code. + +Note that geoidheight, when compiled with Visual Studio 2008 causes +Matlab to crash. (The problem does not occur with Visual Studio 2005 or +Visual Studio 2010.) + +\section maxima Maxima routines + +Maxima is a free computer algebra system which can be downloaded from +http://maxima.sf.net. Maxima was used to generate the series used by +GeographicLib::TransverseMercator ( +tmseries.mac) and GeographicLib::Geodesic ( +geod.mac) and to generate accurate data for testing +( tm.mac and +geodesic.mac). The latter uses Maxima's bigfloat arithmetic +together with series extended to high order or solutions in terms of +elliptic integrals ( ellint.mac). These files +contain brief instructions on how to use them. + +\section dotnet .NET wrapper + +This is a comprehensive wrapper library, written and maintained by Scott +Heiman, which exposes all of the functionality of %GeographicLib to the +.NET family of languages. For documentation, see + - NETGeographicLib .NET wrapper library. + +
+Back to \ref organization. Forward to \ref geoid. Up to \ref contents. +
+**********************************************************************/ +/** +\page geoid Geoid height + +
+Back to \ref other. Forward to \ref gravity. Up to \ref contents. +
+ +The gravitational equipotential surface approximately coinciding with +mean sea level is called the geoid. The GeographicLib::Geoid class and +the GeoidEval utility evaluate the height +of the geoid above the WGS84 ellipsoid. This can be used to convert +heights above mean sea level to heights above the WGS84 ellipsoid. +Because the normal to the ellipsoid differs from the normal to the geoid +(the direction of a plumb line) there is a slight ambiguity in the +measurement of heights; however for heights up to 10 km this ambiguity +is only 1 mm. + +The geoid is usually approximated by an "earth gravity model" (EGM). +The models published by the NGA are: +- EGM84: + http://earth-info.nga.mil/GandG/wgs84/gravitymod/wgs84_180/wgs84_180.html +- EGM96: + http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/egm96.html +- EGM2008: + http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm2008 +. +GeographicLib::Geoid offers a uniform way to handle all 3 geoids at a +variety of grid resolutions. (In contrast, the software tools that NGA +offers are different for each geoid, and the interpolation programs are +different for each grid resolution. In addition these tools are written +in Fortran with is nowadays difficult to integrate with other software.) + +Unlike other components of %GeographicLib, there is a appreciable error +in the results obtained (at best, the RMS error is 1 mm). However the +class provides methods to report the maximum and RMS errors in the +results. The class also returns the gradient of the geoid. This can be +used to estimate the direction of a plumb line relative to the WGS84 +ellipsoid. + +The GeographicLib::GravityModel class calculates geoid heights using the +underlying gravity model. This is slower then GeographicLib::Geoid but +considerably more accurate. This class also can accurately compute all +the components of the acceleration due to gravity (and hence the +direction of plumb line). + +Go to + - \ref geoidinst + - \ref geoidformat + - \ref geoidinterp + - \ref geoidcache + - \ref testgeoid + +\section geoidinst Installing the geoid datasets + +The geoid heights are computed using interpolation into a rectangular +grid. The grids are read from data files which have been are computed +using the NGA synthesis programs in the case of the EGM84 and EGM96 +models and using the NGA binary gridded data files in the case of +EGM2008. These data files are available for download: +
+ + + + + + + + + + + + + + + +
Available geoid data files
name geoid grid + size\n(MB) +
Download Links (size, MB)
tar fileWindows\n installerzip file
egm84-30 + EGM84 +
30'
+
0.6
+
+ + link (0.5)
+
+ + link (0.8)
+
+ + link (0.5)
+
egm84-15 + EGM84 +
15'
+
2.1
+
+ + link (1.5)
+
+ + link (1.9)
+
+ + link (2.0)
+
egm96-15 + EGM96 +
15'
+
2.1
+
+ + link (1.5)
+
+ + link (1.9)
+
+ + link (2.0)
+
egm96-5 + EGM96 +
5'
+
19
+
+ + link (11)
+
+ + link (11)
+
+ + link (17)
+
egm2008-5 + EGM2008 +
5'
+
19
+
+ + link (11)
+
+ + link (11)
+
+ + link (17)
+
egm2008-2_5 + EGM2008 +
2.5'
+
75
+
+ + link (35)
+
+ + link (33)
+
+ + link (65)
+
egm2008-1 + EGM2008 +
1'
+
470
+
+ + link (170)
+
+ + link (130)
+
+ + link (390)
+
+
+The "size" column is the size of the uncompressed data and it also +gives the memory requirements for caching the entire dataset using the +GeographicLib::Geoid::CacheAll method. +At a minimum you should install egm96-5 and either egm2008-1 or +egm2008-2_5. Many applications use the EGM96 geoid, however the use of +EGM2008 is growing. (EGM84 is rarely used now.) + +For Linux and Unix systems, %GeographicLib provides a shell script +geographiclib-get-geoids (typically installed in /usr/local/sbin) which +automates the process of downloading and installing the geoid data. For +example +\verbatim + geographiclib-get-geoids best # to install egm84-15, egm96-5, egm2008-1 + geographiclib-get-geoids -h # for help +\endverbatim +This script should be run as a user with write access to the +installation directory, which is typically +/usr/local/share/GeographicLib (this can be overridden with the -p +flag), and the data will then be placed in the "geoids" subdirectory. + +Windows users should download and run the Windows installers. These +will prompt for an installation directory with the default being one of +\verbatim + C:/Documents and Settings/All Users/Application Data/GeographicLib + C:/ProgramData/GeographicLib +\endverbatim +(which you probably should not change) and the data is installed in the +"geoids" sub-directory. (The second directory name is an alternate name +that Windows 7 uses for the "Application Data" directory.) + +Otherwise download \e either the tar.bz2 file \e or the zip file (they +have the same contents). If possible use the tar.bz2 files, since these +are compressed about 2 times better than the zip file. To unpack these, +run, for example +\verbatim + mkdir -p /usr/local/share/GeographicLib + tar xofjC egm96-5.tar.bz2 /usr/local/share/GeographicLib + tar xofjC egm2008-2_5.tar.bz2 /usr/local/share/GeographicLib + etc. +\endverbatim +and, again, the data will be placed in the "geoids" subdirectory. + +However you install the geoid data, all the datasets should +be installed in the same directory. GeographicLib::Geoid and +GeoidEval uses a compile time default to +locate the datasets. This is +- /usr/local/share/GeographicLib/geoids, for non-Windows systems +- C:/Documents and Settings/All Users/Application Data/GeographicLib/geoids, + for Windows systems +. +consistent with the examples above. This may be overridden at run-time +by defining the GEOID_PATH or the GEOGRAPHICLIB_DATA environment variables; +see GeographicLib::Geoid::DefaultGeoidPath() for details. Finally, the +path may be set using the optional second argument to the +GeographicLib::Geoid constructor or with the "-d" flag to +GeoidEval. Supplying the "-h" flag to +GeoidEval reports the default geoid path +for that utility. The "-v" flag causes GeoidEval to report the full +path name of the data file it uses. + +\section geoidformat The format of the geoid data files + +The gridded data used by the GeographicLib::Geoid class is stored in +16-bit PGM files. Thus the data for egm96-5 might be stored in the file +- /usr/local/share/GeographicLib/geoids/egm96-5.pgm +. +PGM simple graphic format with the following properties +- it is well documented + here; +- there are no separate "little-endian" and "big-endian" versions; +- it uses 1 or 2 bytes per pixel; +- pixels can be randomly accessed; +- comments can be added to the file header; +- it is sufficiently simple that it can be easily read without using the + libnetpbm + library (and thus we avoid adding a software dependency to + %GeographicLib). +. +The major drawback of this format is that since there are only 65535 +possible pixel values, the height must be quantized to 3 mm. However, +the resulting quantization error (up to 1.5 mm) is typically smaller +than the linear interpolation errors. The comments in the header for +egm96-5 are +\verbatim + # Geoid file in PGM format for the GeographicLib::Geoid class + # Description WGS84 EGM96, 5-minute grid + # URL http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/egm96.html + # DateTime 2009-08-29 18:45:03 + # MaxBilinearError 0.140 + # RMSBilinearError 0.005 + # MaxCubicError 0.003 + # RMSCubicError 0.001 + # Offset -108 + # Scale 0.003 + # Origin 90N 0E + # AREA_OR_POINT Point + # Vertical_Datum WGS84 +\endverbatim +Of these lines, the Scale and Offset lines are required and define the +conversion from pixel value to height (in meters) using \e height = +\e offset + \e scale \e pixel. The Geoid constructor also reads the +Description, DateTime, and error lines (if present) and stores the +resulting data so that it can be returned by +GeographicLib::Geoid::Description, GeographicLib::Geoid::DateTime, +GeographicLib::Geoid::MaxError, and GeographicLib::Geoid::RMSError +methods. The other lines serve as additional documentation but are not +used by this class. Accompanying egm96-5.pgm (and similarly with the +other geoid data files) are two files egm96-5.wld and +egm96-5.pgm.aux.xml. The first is an ESRI "world" file and the second +supplies complete projection metadata for use by +GDAL. Neither of these files is read +by GeographicLib::Geoid. + +You can use gdal_translate to convert the data files to a standard +GeoTiff, e.g., with +\verbatim + gdal_translate -ot Float32 -scale 0 65000 -108 87 egm96-5.pgm egm96-5.tif +\endverbatim +The arguments to -scale here are specific to the Offset and Scale +parameters used in the pgm file (note 65000 * 0.003 - 108 = 87). You +can check these by running GeoidEval with +the "-v" option. + +Here is a sample script which uses GDAL to create a 1-degree +squared grid of geoid heights at 3" resolution (matching DTED1) by +bilinear interpolation. +\verbatim + #! /bin/sh + lat=37 + lon=067 + res=3 # resolution in seconds + TEMP=`mktemp junkXXXXXXXXXX` # temporary file for GDAL + gdalwarp -q -te `echo $lon $lat $res | awk '{ + lon = $1; lat = $2; res = $3; + printf "%.14f %.14f %.14f %.14f", + lon -0.5*res/3600, lat -0.5*res/3600, + lon+1+0.5*res/3600, lat+1+0.5*res/3600; + }'` -ts $((3600/res+1)) $((3600/res+1)) -r bilinear egm96-5.tif $TEMP + gdal_translate -quiet \ + -mo AREA_OR_POINT=Point \ + -mo Description="WGS84 EGM96, $res-second grid" \ + -mo Vertical_Datum=WGS84 \ + -mo Tie_Point_Location=pixel_corner \ + $TEMP e$lon-n$lat.tif + rm -f $TEMP +\endverbatim + +Because the pgm files are uncompressed, they can take up a lot of disk +space. Some compressed formats compress in tiles and so might be +compatible with the requirement that the data can be randomly accessed. +In particular gdal_translate can be used to convert the pgm files to +compressed tiff files with +\verbatim +gdal_translate -co COMPRESS=LZW -co PREDICTOR=2 \ + -co TILED=YES -co BLOCKXSIZE=256 -co BLOCKYSIZE=256 \ + egmyy-g.pgm egmyy-g.tif +\endverbatim +The resulting files sizes are +\verbatim + pgm tif + egm84-30 0.6 MB 0.5 MB + egm84-15 2.1 MB 1.4 MB + egm96-15 2.1 MB 1.5 MB + egm96-5 19 MB 8.5 MB + egm2008-5 19 MB 9.8 MB + egm2008-2_5 75 MB 28 MB + egm2008-1 470 MB 97 MB +\endverbatim +Currently, there are no plans for %GeographicLib to support this +compressed format. + +\section geoidinterp Interpolating the geoid data + +GeographicLib::Geoid evaluates the geoid height using bilinear or cubic +interpolation. The gradient of the geoid height is obtained by +differentiating the interpolated height and referencing the result to +distance on the WGS84 ellipsoid. + +WARNING: Although GeographicLib::Geoid computes the gradient of +the geoid height, this is subject to large quantization errors as a +result of the way that the geoid data is stored. This is particularly +acute for fine grids, at high latitudes, and for the easterly gradient. +If you need to compute the direction of the acceleration due to gravity +accurately, you should use GeographicLib::GravityModel::Gravity. + +The bilinear interpolation is based on the values at the 4 corners of +the enclosing cell. The interpolated height is a continuous function of +position; however the gradient has discontinuities are cell boundaries. +The quantization of the data files exacerbates the errors in the +gradients. + +The cubic interpolation is a least-squares fit to the values on a +12-point stencil with weights as follows: +\verbatim + . 1 1 . + 1 2 2 1 + 1 2 2 1 + . 1 1 . +\endverbatim +The cubic is constrained to be independent of longitude when evaluating +the height at one of the poles. Cubic interpolation is considerably +more accurate than bilinear interpolation; however, in this +implementation there are small discontinuities in the heights are cell +boundaries. The over-constrained cubic fit slightly reduces the +quantization errors on average. + +The algorithm for the least squares fit is taken from, F. H. Lesh, +Multi-dimensional least-squares polynomial curve fitting, CACM 2, 29-30 +(1959). This algorithm is not part of GeographicLib::Geoid; instead it is +implemented as +Maxima +code which is used to precompute the matrices to convert the function +values on the stencil into the coefficients from the cubic polynomial. +This code is included as a comment in Geoid.cpp. + +The interpolation methods are quick and give good accuracy. Here is a +summary of the combined quantization and interpolation errors for the +heights. +
+ + + + + + + + + + + + +
Interpolation and quantization errors for geoid heights
name + geoid + grid +
bilinear error
cubic error
max
rms
+
max
rms
+
egm84-30 EGM84
30'
+
1.546 m
70 mm
+
0.274 m
14 mm
+
egm84-15 EGM84
15'
+
0.413 m
18 mm
+
0.021 m
1.2 mm
+
egm96-15 EGM96
15'
+
1.152 m
40 mm
+
0.169 m
7.0 mm
+
egm96-5 EGM96
5'
+
0.140 m
4.6 mm
+
0.0032 m
0.7 mm
+
egm2008-5 EGM2008
5'
+
0.478 m
12 mm
+
0.294 m
4.5 mm
+
egm2008-2_5EGM2008
2.5'
+
0.135 m
3.2 mm
+
0.031 m
0.8 mm
+
egm2008-1 EGM2008
1'
+
0.025 m
0.8 mm
+
0.0022 m
0.7 mm
+
+The errors are with respect to the specific NGA earth gravity model +(not to any "real" geoid). The RMS values are obtained using 5 million +uniformly distributed random points. The maximum values are obtained by +evaluating the errors using a different grid with points at the +centers of the original grid. (The RMS difference between EGM96 and +EGM2008 is about 0.5 m. The RMS difference between EGM84 and EGM96 is +about 1.5 m.) + +The errors in the table above include the quantization errors that arise +because the height data that GeographicLib::Geoid uses are quantized to +3 mm. If, instead, GeographicLib::Geoid were to use data files without +such quantization artifacts, the overall error would be reduced but +only modestly as shown in the following table, where only the +changed rows are included and where the changed entries are given in +bold: +
+ + + + + + + + +
Interpolation (only!) errors for geoid heights
name + geoid + grid +
bilinear error
cubic error
max
rms
+
max
rms
+
egm96-5 EGM96
5'
+
0.140 m
4.6 mm
+
0.0026 m
0.1 mm
+
egm2008-2_5EGM2008
2.5'
+
0.135 m
3.2 mm
+
0.031 m
0.4 mm
+
egm2008-1 EGM2008
1'
+
0.025 m
0.6 mm
+
0.0010 m
0.011 mm
+
+ +\section geoidcache Caching the geoid data + +A simple way of calling Geoid is as follows +\code + #include + #include + ... + GeographicLib::Geoid g("egm96-5"); + double lat, lon; + while (std::cin >> lat >> lon) + std::cout << g(lat, lon) << "\n"; + ... +\endcode + +The first call to g(lat, lon) causes the data for the stencil points (4 +points for bilinear interpolation and 12 for cubic interpolation) to be +read and the interpolated value returned. A simple 0th-order caching +scheme is provided by default, so that, if the second and subsequent +points falls within the same grid cell, the data values are not reread +from the file. This is adequate for most interactive use and also +minimizes disk accesses for the case when a continuous track is being +followed. + +If a large quantity of geoid calculations are needed, the calculation +can be sped up by preloading the data for a rectangular block with +GeographicLib::Geoid::CacheArea or the entire dataset with +GeographicLib::Geoid::CacheAll. If the requested points lie within the +cached area, the cached data values are used; otherwise the data is read +from disk as before. Caching all the data is a reasonable choice for +the 5' grids and coarser. Caching all the data for the 1' grid will +require 0.5 GB of RAM and should only be used on systems with sufficient +memory. + +The use of caching does not affect the values returned. Because of the +caching and the random file access, this class is \e not normally thread +safe; i.e., a single instantiation cannot be safely used by multiple +threads. If multiple threads need to calculate geoid heights, there are +two alternatives: + - they should all construct thread-local instantiations. + - GeographicLib::Geoid should be constructed with \e threadsafe = true. + This causes all the data to be read at the time of construction (and + if this fails, an exception is thrown), the data file to be closed + and the single-cell caching to be turned off. The resulting object + may then be shared safely between threads. + +\section testgeoid Test data for geoids + +A test set for the geoid models is available at + - + GeoidHeights.dat.gz + . +This is about 11 MB (compressed). This test set consists of a set of +500000 geographic coordinates together with the corresponding geoid +heights according to various earth gravity models. + +Each line of the test set gives 6 space delimited numbers + - latitude (degrees, exact) + - longitude (degrees, exact) + - EGM84 height (meters, accurate to 1 μm) + - EGM96 height (meters, accurate to 1 μm) + - EGM2008 height (meters, accurate to 1 μm) + . +The latitude and longitude are all multiples of 10−6 +deg and should be regarded as exact. The geoid heights are computed +using the harmonic NGA synthesis programs, where the programs were +compiled (with gfortran) and run under Linux. In the case of the +EGM2008 program, a SAVE statement needed to be added to +subroutine latf, in order for the program to compile +correctly with a stack-based compiler. Similarly the EGM96 code +requires a SAVE statement in subroutine +legfdn. + +
+Back to \ref other. Forward to \ref gravity. Up to \ref contents. +
+**********************************************************************/ +/** +\page gravity Gravity models + +
+Back to \ref geoid. Forward to \ref magnetic. Up to \ref contents. +
+ +%GeographicLib can compute the earth's gravitational field with an +earth gravity model using the GeographicLib::GravityModel and +GeographicLib::GravityCircle classes and with the +Gravity utility. These models expand the +gravitational potential of the earth as sum of spherical harmonics. The +models also specify a reference ellipsoid, relative to which geoid +heights and gravity disturbances are measured. + +The supported models are + - egm84, the + + Earth Gravity Model 1984, which includes terms up to degree 180. + - egm96, the + + Earth Gravity Model 1996, which includes terms up to degree 360. + - egm2008, the + + Earth Gravity Model 2008, which includes terms up to degree 2190. + - wgs84, the + + WGS84 Reference Ellipsoid. This is just reproduces the normal + gravitational field for the reference ellipsoid. Usually + GeographicLib::NormalGravity::WGS84 should be used instead. + +See + - W. A. Heiskanen and H. Moritz, Physical Geodesy (Freeman, San + Francisco, 1967). + . +for more information. + +Acknowledgment: I would like to thank Mathieu Peyréga for +sharing EGM_Geoid_CalculatorClass from his Geo library with me. His +implementation was the first I could easily understand and he and I +together worked through some of the issues with overflow and underflow +the occur while performing high-degree spherical harmonic sums. + +Go to + - \ref gravityinst + - \ref gravityformat + - \ref gravitynga + - \ref gravitygeoid + - \ref gravityatmos + - \ref gravityparallel + +\section gravityinst Installing the gravity models + +These gravity models are available for download: +
+ + + + + + + + + + + + +
Available gravity models
name max\n degree + size\n(kB) +
Download Links (size, kB)
tar fileWindows\n installerzip file
egm84 +
180
+
27
+
+ + link (26)
+
+ + link (55)
+
+ + link (26)
+
egm96 +
360
+
2100
+
+ + link (2100)
+
+ + link (2300)
+
+ + link (2100)
+
egm2008 +
2190
+
76000
+
+ + link (75000)
+
+ + link (72000)
+
+ + link (73000)
+
wgs84 +
20
+
1
+
+ + link (1)
+
+ + link (30)
+
+ + link (1)
+
+
+The "size" column is the size of the uncompressed data. + +For Linux and Unix systems, %GeographicLib provides a shell script +geographiclib-get-gravity (typically installed in /usr/local/sbin) +which automates the process of downloading and installing the gravity +models. For example +\verbatim + geographiclib-get-gravity all # to install egm84, egm96, egm2008, wgs84 + geographiclib-get-gravity -h # for help +\endverbatim +This script should be run as a user with write access to the +installation directory, which is typically +/usr/local/share/GeographicLib (this can be overridden with the -p +flag), and the data will then be placed in the "gravity" subdirectory. + +Windows users should download and run the Windows installers. These +will prompt for an installation directory with the default being one of +\verbatim + C:/Documents and Settings/All Users/Application Data/GeographicLib + C:/ProgramData/GeographicLib +\endverbatim +(which you probably should not change) and the data is installed in the +"gravity" sub-directory. (The second directory name is an alternate name +that Windows 7 uses for the "Application Data" directory.) + +Otherwise download \e either the tar.bz2 file \e or the zip file (they +have the same contents). To unpack these, run, for example +\verbatim + mkdir -p /usr/local/share/GeographicLib + tar xofjC egm96.tar.bz2 /usr/local/share/GeographicLib + tar xofjC egm2008.tar.bz2 /usr/local/share/GeographicLib + etc. +\endverbatim +and, again, the data will be placed in the "gravity" subdirectory. + +However you install the gravity models, all the datasets should be +installed in the same directory. GeographicLib::GravityModel and +Gravity uses a compile time default to +locate the datasets. This is +- /usr/local/share/GeographicLib/gravity, for non-Windows systems +- C:/Documents and Settings/All Users/Application Data/GeographicLib/gravity, + for Windows systems +. +consistent with the examples above. This may be overridden at run-time +by defining the GRAVITY_PATH or the GEOGRAPHICLIB_DATA environment +variables; see GeographicLib::GravityModel::DefaultGravityPath() for +details. Finally, the path may be set using the optional second +argument to the GeographicLib::GravityModel constructor or with the "-d" +flag to +Gravity. Supplying the "-h" flag to +Gravity reports the default path for +gravity models for that utility. The "-v" flag causes Gravity to report +the full path name of the data file it uses. + +\section gravityformat The format of the gravity model files + +The constructor for GeographicLib::GravityModel reads a file called +NAME.egm which specifies various properties for the gravity model. It +then opens a binary file NAME.egm.cof to obtain the coefficients of the +spherical harmonic sum. + +The first line of the .egm file must consist of "EGMF-v" where EGMF +stands for "Earth Gravity Model Format" and v is the version number of +the format (currently "1"). + +The rest of the File is read a line at a time. A # character and +everything after it are discarded. If the result is just white space it +is discarded. The remaining lines are of the form "KEY WHITESPACE +VALUE". In general, the KEY and the VALUE are case-sensitive. + +GeographicLib::GravityModel only pays attention to the following +keywords + - keywords that affect the field calculation, namely: + - ModelRadius (required), the normalizing radius for the model + in meters. + - ReferenceRadius (required), the major radius \e a for the + reference ellipsoid meters. + - ModelMass (required), the mass constant \e GM for the model + in meters3/seconds2. + - ReferenceMass (required), the mass constant \e GM for the + reference ellipsoid in meters3/seconds2. + - AngularVelocity (required), the angular velocity ω for + the model \e and the reference ellipsoid in rad + seconds−1. + - Flattening, the flattening of the reference ellipsoid; this + can be given a fraction, e.g., 1/298.257223563. One of + Flattening and DynamicalFormFactor is required. + - DynamicalFormFactor, the dynamical form factor + J2 for the reference ellipsoid. One of + Flattening and DynamicalFormFactor is required. + - HeightOffset (default 0), the constant height offset + (meters) added to obtain the geoid height. + - CorrectionMultiplier (default 1), the multiplier for the + "zeta-to-N" correction terms for the geoid height to convert them + to meters. + - Normalization (default full), the normalization used for the + associated Legendre functions (full or schmidt). + - ID (required), 8 printable characters which serve as a + signature for the .egm.cof file (they must appear as the first 8 + bytes of this file). + . + The parameters ModelRadius, ModelMass, and + AngularVelocity apply to the gravity model, while + ReferenceRadius, ReferenceMass, AngularVelocity, + and either Flattening or DynamicalFormFactor + characterize the reference ellipsoid. AngularVelocity + (because it can be measured precisely) is the same for the gravity + model and the reference ellipsoid. ModelRadius is merely a + scaling parameter for the gravity model and there's no requirement + that it be close to the major radius of the earth (although that's + typically how it is chosen). ModelMass and + ReferenceMass need not be the same and, indeed, they are + slightly difference for egm2008. As a result the disturbing + potential \e T has a 1/\e r dependence at large distances. + - keywords that store data that the user can query: + - Name, the name of the model. + - Description, a more descriptive name of the model. + - ReleaseDate, when the model was created. + - keywords that are examined to verify that their values are valid: + - ByteOrder (default little), the order of bytes in the + .egm.cof file. Only little endian is supported at present. + . +Other keywords are ignored. + +The coefficient file NAME.egm.cof is a binary file in little endian +order. The first 8 bytes of this file must match the ID given in +NAME.egm. This is followed by 2 sets of spherical harmonic +coefficients. The first of these gives the gravity potential and the +second gives the zeta-to-N corrections to the geoid height. The format +for each set of coefficients is: + - \e N, the maximum degree of the sum stored as a 4-byte signed integer. + This must satisfy \e N ≥ −1. + - \e M, the maximum order of the sum stored as a 4-byte signed integer. + This must satisfy \e N ≥ \e M ≥ −1. + - \e C\e nm, the coefficients of the cosine coefficients of + the sum in column (i.e., \e m) major order. There are (\e M + 1) + (2\e N - \e M + 2) / 2 elements which are stored as IEEE doubles (8 + bytes). For example for \e N = \e M = 3, there are 10 coefficients + arranged as + C00, + C10, + C20, + C30, + C11, + C21, + C31, + C22, + C32, + C33. + - \e S\e nm, the coefficients of the sine coefficients of + the sum in column (i.e., \e m) major order starting at \e m = 1. + There are \e M (2\e N - \e M + 1) / 2 elements which are stored as + IEEE doubles (8 bytes). For example for \e N = \e M = 3, there are 6 + coefficients arranged as + S11, + S21, + S31, + S22, + S32, + S33. + . +Although the coefficient file is in little endian order, %GeographicLib +can read it on big endian machines. It can only be read on machines +which store doubles in IEEE format. + +As an illustration, here is egm2008.egm: +\verbatim +EGMF-1 +# An Earth Gravity Model (Format 1) file. For documentation on the +# format of this file see +# http://geographiclib.sf.net/html/gravity.html#gravityformat +Name egm2008 +Publisher National Geospatial Intelligence Agency +Description Earth Gravity Model 2008 +URL http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm2008 +ReleaseDate 2008-06-01 +ConversionDate 2011-11-19 +DataVersion 1 +ModelRadius 6378136.3 +ModelMass 3986004.415e8 +AngularVelocity 7292115e-11 +ReferenceRadius 6378137 +ReferenceMass 3986004.418e8 +Flattening 1/298.257223563 +HeightOffset -0.41 + +# Gravitational and correction coefficients taken from +# EGM2008_to2190_TideFree and Zeta-to-N_to2160_egm2008 from +# the egm2008 distribution. +ID EGM2008A +\endverbatim + +\section gravitynga Comments on the NGA harmonic synthesis code + +GeographicLib::GravityModel attempts to reproduce the results of NGA's +harmonic synthesis code for EGM2008, hsynth_WGS84.f. Listed here are +issues that I encountered using the NGA code: + -# A compiler which allocates local variables on the stack produces an + executable with just returns NaNs. The problem here is a missing + SAVE statement in subroutine latf. + -# Because the model and references masses for egm2008 differ (by about + 1 part in 109), there should be a 1/\e r contribution to + the disturbing potential \e T. However, this term is set to zero in + hsynth_WGS84 (effectively altering the normal potential). This + shifts the surface \e W = U0 outward by about 5 mm. + Note too that the reference ellipsoid is no longer a level surface of + the effective normal potential. + -# Subroutine radgrav computes the ellipsoidal coordinate + β incorrectly. This leads to small errors in the deflection + of the vertical, ξ and η, when the height above the + ellipsoid, \e h, is non-zero (about 10−7 arcsec at + \e h = 400 km). + -# There are several expressions which will return inaccurate results + due to cancellation. For example, subroutine grs + computes the flattening using \e f = 1 - sqrt(1 - + e2). Much better is to use \e f = + e2/(1 + sqrt(1 - e2)). The + expressions for \e q and \e q' in grs and + radgrav suffer from similar problems. The resulting + errors are tiny (about 50 pm in the geoid height); however, given + that's there's essentially no cost to using more accurate + expressions, it's preferable to do so. + -# hsynth_WGS84 returns an "undefined" value for \e xi and \e eta at the + poles. Better would be to return the value obtained by taking the + limit \e lat -> +/- 90°. + . +Issues 1--4 have been reported to the authors of hsynth_WGS84. +Issue 1 is peculiar to Fortran and is not encountered in C++ code and +GeographicLib::GravityModel corrects issues 3--5. On issue 2, +GeographicLib::GravityModel neglects the 1/\e r term in \e T in +GeographicLib::GravityModel::GeoidHeight and +GeographicLib::GravityModel::SphericalAnomaly in order to produce +results which match NGA's for these quantities. On the other hand, +GeographicLib::GravityModel::Disturbance and +GeographicLib::GravityModel::T do include this term. + +\section gravitygeoid Details of the geoid height and anomaly calculations + +Ideally, the geoid represents a surface of constant gravitational +potential which approximates mean sea level. In reality some +approximations are taken in determining this surface. The steps taking +by GeographicLib::GravityModel in computing the geoid height are +described here (in the context of EGM2008). This mimics NGA's code +hsynth_WGS84 closely because most users of EGM2008 use the gridded data +generated by this code (e.g., GeographicLib::Geoid) and it is desirable +to use a consistent definition of the geoid height. + - The model potential is band limited; the minimum wavelength that is + represented is 360°/2160 = 10' (i.e., about 10NM or + 18.5km). The maximum degree for the spherical harmonic sum is 2190; + however the model was derived using ellipsoidal harmonics of degree + and order 2160 and the degree was increased to 2190 in order to + capture the ellipsoidal harmonics faithfully with spherical + harmonics. + - The 1/\e r term is omitted from the \e T (this is issue 2 in \ref + gravitynga). This moves the equipotential surface by about 5mm. + - The surface \e W = U0 is determined by Bruns' + formula, which is roughly equivalent to a single iteration of + Newton's method. The RMS error in this approximation is about 1.5mm + with a maximum error of about 10 mm. + - The model potential is only valid above the earth's surface. A + correction therefore needs to be included where the geoid lies + beneath the terrain. This is NGA's "zeta-to-N" correction, which is + represented by a spherical harmonic sum of degree and order 2160 (and + so it misses short wavelength terrain variations). In addition, it + entails estimating the isostatic equilibrium of the earth's crust. + The correction lies in the range [-5.05 m, 0.05 m], however for 99.9% + of the earth's surface the correction is less than 10 mm in + magnitude. + - The resulting surface lies above the observed mean sea level, + so -0.41m is added to the geoid height. (Better would be to change + the potential used to define the geoid; but this would only change + the result by about 2mm.) + . +A useful discussion of the problems with defining a geoid is given by +Dru A. Smith in + +There is no such thing as "The" EGM96 geoid: Subtle points on the use of +a global geopotential model, IGeS Bulletin No. 8, International +Geoid Service, Milan, Italy, pp. 17--28 (1998). + +GeographicLib::GravityModel::GeoidHeight reproduces the results of the +several NGA codes for harmonic synthesis with the following maximum +discrepancies: + - egm84 = 1.1mm. This is probably due to inconsistent parameters for the + reference ellipsoid in the NGA code. (In particular, the value of + mass constant excludes the atmosphere; however, it's not clear + whether the other parameters have been correspondingly adjusted.) + Note that geoid heights predicted by egm84 differ from those of more + recent gravity models by about 1 meter. + - egm96 = 23nm. + - egm2008 = 78pm. After addressing some of the issues alluded to in + issue 4 in \ref gravitynga, the maximum discrepancy becomes 23pm. + +The formula for the gravity anomaly vector involves computing gravity +and normal gravity at two different points (with the displacement +between the points unknown ab initio). Since the gravity anomaly +is already a small quantity it is sometimes acceptable to employ +approximations that change the quantities by \e O(\e f). The NGA code +uses the spherical approximation described by Heiskanen and Moritz, +Sec. 2-14 and GeographicLib::GravityModel::SphericalAnomaly uses the +same approximation for compatibility. In this approximation, the +gravity disturbance delta = grad \e T is calculated. +Here, \e T once again excludes the 1/\e r term (this is issue 2 in \ref +gravitynga and is consistent with the computation of the geoid height). +Note that delta compares the gravity and the normal gravity at +the \e same point; the gravity anomaly vector is then found by +estimating the gradient of the normal gravity in the limit that the +earth is spherically symmetric. delta is expressed in \e +spherical coordinates as \e deltax, \e deltay, \e deltaz where, for +example, \e deltaz is the \e radial component of delta (not the +component perpendicular to the ellipsoid) and \e deltay is similarly +slightly different from the usual northerly component. The components +of the anomaly are then given by + - gravity anomaly, \e Dg01 = \e deltaz - 2T/\e R, where \e R + distance to the center of the earth; + - northerly component of the deflection of the vertical, \e xi = - + deltay/\e gamma, where \e gamma is the magnitude of the normal + gravity; + - easterly component of the deflection of the vertical, \e eta = - + deltax/\e gamma. + . +GeographicLib::NormalGravity computes the normal gravity accurately and +avoids issue 3 of \ref gravitynga. Thus while +GeographicLib::GravityModel::SphericalAnomaly reproduces the results for +\e xi and \e eta at \e h = 0, there is a slight discrepancy if \e h is +non-zero. + +\section gravityatmos The effect of the mass of the atmosphere + +All of the supported models use WGS84 for the reference ellipsoid. This +has (see + +TR8350.2, table 3.1) + - \e a = 6378137 m + - \e f = 1/298.257223563 + - ω = 7292115 × 10−11 rad + s−1 + - \e GM = 3986004.418 × 108 m3 + s−2. + . +The value of \e GM includes the mass of the atmosphere and so strictly +only applies above the earth's atmosphere. Near the surface of the +earth, the value of \e g will be less (in absolute value) than the value +predicted by these models by about δ\e g = (4πG/\e +g) \e A = 8.552 × 10−11 \e A m2/kg, +where \e G is the gravitational constant, \e g is the earth's gravity, +and \e A is the pressure of the atmosphere. At sea level we have \e A = +101.3 kPa, and δ\e g = 8.7 × 10−6 m +s−2, approximately. (In other words the effect is +about 1 part in a million; by way of comparison, buoyancy effects +are about 100 times larger.) + +\section gravityparallel Geoid heights on a multi-processor system + +The egm2008 model includes many terms (over 2 million spherical +harmonics). For that reason computations using this model may be slow; +for example it takes about 78 ms to compute the geoid height at a single +point. There are two ways to speed up this computation: + - Use a GeographicLib::GravityCircle to compute the geoid height at + several points on a circle of latitude. This reduces the cost per + point to about 92 μs (a reduction by a factor of over 800). + - Compute the values on several circles of latitude in parallel. One + of the simplest ways of doing this is with + OpenMP; on an 8-processor system, + this can speed up the computation by another factor of 8. + . +Both of these techniques are illustrated by the following code, +which computes a table of geoid heights on +a regular grid and writes on the result in a +.gtx +file. On an 8-processor Intel 2.66 GHz machine using OpenMP +(-DHAVE_OPENMP=1), it takes about 40 minutes of elapsed time to compute +the geoid height for EGM2008 on a 1' gride. (Without these +optimizations, the computation would have taken about 200 days!) +\include GeoidToGTX.cpp + +This example, examples/GeoidToGTX.cpp, is built if cmake +is configured with -D GEOGRAPHICLIB_EXAMPLES=ON. cmake +will add in support for OpenMP, if it is available. + +
+Back to \ref geoid. Forward to \ref magnetic. Up to \ref contents. +
+**********************************************************************/ +/** +\page magnetic Magnetic models + +
+Back to \ref gravity. Forward to \ref geodesic. Up to \ref contents. +
+ +%GeographicLib can compute the earth's magnetic field by a magnetic +model using the GeographicLib::MagneticModel and +GeographicLib::MagneticCircle classes and with the +MagneticField utility. These models +expand the internal magnetic potential of the earth as sum of spherical +harmonics. They neglect magnetic fields due to the ionosphere, the +magnetosphere, nearby magnetized materials, electric machinery, etc. +Users of GeographicLib::MagneticModel are advised to read the +"Health +Warning" this is provided with igrf11. Although the advice is +specific to igrf11, many of the comments apply to all magnetic field +models. + +The supported models are + - wmm2010, the + World + Magnetic Model 2010, which approximates the main magnetic field + for the period 2010--2015. + - igrf11, the + International + Geomagnetic Reference Field (11th generation), which approximates + the main magnetic field for the period 1900--2015. + - emm2010, the + Enhanced + Magnetic Model 2010, which approximates the main and crustal + magnetic fields for the period 2010--2015. + +Go to + - \ref magneticinst + - \ref magneticformat + +\section magneticinst Installing the magnetic field models + +These magnetic models are available for download: +
+ + + + + + + + + + + +
Available magnetic models
name max\n degree + time\n interval + size\n(kB) +
Download Links (size, kB)
tar fileWindows\n installerzip file
wmm2010 +
12
+
2010--2015
+
3
+
+ + link (2)
+
+ + link (300)
+
+ + link (2)
+
igrf11 +
13
+
1900--2015
+
25
+
+ + link (7)
+
+ + link (310)
+
+ + link (8)
+
emm2010 +
739
+
2010--2015
+
4400
+
+ + link (3700)
+
+ + link (3000)
+
+ + link (4100)
+
+
+The "size" column is the size of the uncompressed data. + +For Linux and Unix systems, %GeographicLib provides a shell script +geographiclib-get-magnetic (typically installed in /usr/local/sbin) +which automates the process of downloading and installing the magnetic +models. For example +\verbatim + geographiclib-get-magnetic all # to install wmm2010, igrf11, emm2010 + geographiclib-get-magnetic -h # for help +\endverbatim +This script should be run as a user with write access to the +installation directory, which is typically +/usr/local/share/GeographicLib (this can be overridden with the -p +flag), and the data will then be placed in the "magnetic" subdirectory. + +Windows users should download and run the Windows installers. These +will prompt for an installation directory with the default being one of +\verbatim + C:/Documents and Settings/All Users/Application Data/GeographicLib + C:/ProgramData/GeographicLib +\endverbatim +(which you probably should not change) and the data is installed in the +"magnetic" sub-directory. (The second directory name is an alternate name +that Windows 7 uses for the "Application Data" directory.) + +Otherwise download \e either the tar.bz2 file \e or the zip file (they +have the same contents). To unpack these, run, for example +\verbatim + mkdir -p /usr/local/share/GeographicLib + tar xofjC wmm2010.tar.bz2 /usr/local/share/GeographicLib + tar xofjC emm2010.tar.bz2 /usr/local/share/GeographicLib + etc. +\endverbatim +and, again, the data will be placed in the "magnetic" subdirectory. + +However you install the magnetic models, all the datasets should be +installed in the same directory. GeographicLib::MagneticModel and +MagneticField uses a compile time +default to locate the datasets. This is +- /usr/local/share/GeographicLib/magnetic, for non-Windows systems +- C:/Documents and Settings/All Users/Application Data/GeographicLib/magnetic, + for Windows systems +. +consistent with the examples above. This may be overridden at run-time +by defining the MAGNETIC_PATH or the GEOGRAPHIC_DATA environment +variables; see GeographicLib::MagneticModel::DefaultMagneticPath() for +details. Finally, the path may be set using the optional second +argument to the GeographicLib::MagneticModel constructor or with the +"-d" flag to MagneticField. +Supplying the "-h" flag to +MagneticField reports the default +path for magnetic models for that utility. The "-v" flag causes +MagneticField to report the full path name of the data file it uses. + +\section magneticformat The format of the magnetic model files + +The constructor for GeographicLib::MagneticModel reads a file called +NAME.wmm which specifies various properties for the magnetic model. It +then opens a binary file NAME.wmm.cof to obtain the coefficients of the +spherical harmonic sum. + +The first line of the .wmm file must consist of "WMMF-v" where WMMF +stands for "World Magnetic Model Format" and v is the version number of +the format (currently "1"). + +The rest of the File is read a line at a time. A # character and +everything after it are discarded. If the result is just white space it +is discarded. The remaining lines are of the form "KEY WHITESPACE +VALUE". In general, the KEY and the VALUE are case-sensitive. + +GeographicLib::MagneticModel only pays attention to the following +keywords + - keywords that affect the field calculation, namely: + - Radius (required), the normalizing radius of the model in + meters. + - NumModels (default 1), the number of models. WMM2010 + consists of a single model giving the magnetic field and its time + variation at 2010. IGRF11 consists of 23 models for 1900 thru 2010 + at 5 year intervals. The time variation is given only for the last + model to allow extrapolation beyond 2010. For dates prior to 2010, + linear interpolation is used. + - Epoch (required), the time origin (in fractional years) for + the first model. + - DeltaEpoch (default 1), the interval between models in years + (only relevant for NumModels > 1). + - Normalization (default schmidt), the normalization used for + the associated Legendre functions (schmidt or full). + - ID (required), 8 printable characters which serve as a + signature for the .wmm.cof file (they must appear as the first 8 + bytes of this file). + - keywords that store data that the user can query: + - Name, the name of the model. + - Description, a more descriptive name of the model. + - ReleaseDate, when the model was created. + - MinTime, the minimum date at which the model should be used. + - MaxTime, the maximum date at which the model should be used. + - MinHeight, the minimum height above the ellipsoid for which + the model should be used. + - MaxHeight, the maximum height above the ellipsoid for which + the model should be used. + . + GeographicLib::MagneticModel does not enforce the restrictions + implied by last four quantities. However, + MagneticField issues a warning if + these limits are exceeded. + - keywords that are examined to verify that their values are valid: + - Type (default linear), the type of the model. "linear" + means that the time variation is piece-wise linear (either using + interpolation between the field at two dates or using the field and + its first derivative with respect to time). This is the only type + of model supported at present. + - ByteOrder (default little), the order of bytes in the + .wmm.cof file. Only little endian is supported at present. + . +Other keywords are ignored. + +The coefficient file NAME.wmm.cof is a binary file in little endian +order. The first 8 bytes of this file must match the ID given in +NAME.wmm. This is followed by NumModels + 1 sets of spherical harmonic +coefficients. The first NumModels of these model the magnetic field at +Epoch + \e i * DeltaEpoch for 0 ≤ \e i < NumModels. The last set of +coefficients model the rate of change of the magnetic field at Epoch + +(NumModels − 1) * DeltaEpoch. The format for each set of coefficients +is: + - \e N, the maximum degree of the sum stored as a 4-byte signed integer. + This must satisfy \e N ≥ −1. + - \e M, the maximum order of the sum stored as a 4-byte signed integer. + This must satisfy \e N ≥ \e M ≥ −1. + - \e C\e nm, the coefficients of the cosine coefficients of + the sum in column (i.e., \e m) major order. There are (\e M + 1) + (2\e N − \e M + 2) / 2 elements which are stored as IEEE doubles (8 + bytes). For example for \e N = \e M = 3, there are 10 coefficients + arranged as + C00, + C10, + C20, + C30, + C11, + C21, + C31, + C22, + C32, + C33. + - \e S\e nm, the coefficients of the sine coefficients of + the sum in column (i.e., \e m) major order starting at \e m = 1. + There are \e M (2\e N − \e M + 1) / 2 elements which are stored as + IEEE doubles (8 bytes). For example for \e N = \e M = 3, there are 6 + coefficients arranged as + S11, + S21, + S31, + S22, + S32, + S33. + . +Although the coefficient file is in little endian order, %GeographicLib +can read it on big endian machines. It can only be read on machines +which store doubles in IEEE format. + +As an illustration, here is igrf11.wmm: +\verbatim +WMMF-1 +# A World Magnetic Model (Format 1) file. For documentation on the +# format of this file see +# http://geographiclib.sf.net/html/magnetic.html#magneticformat +Name igrf11 +Description International Geomagnetic Reference Field 11th Generation +URL http://ngdc.noaa.gov/IAGA/vmod/igrf.html +Publisher National Oceanic and Atmospheric Administration +ReleaseDate 2009-12-15 +DataCutOff 2009-10-01 +ConversionDate 2011-11-04 +DataVersion 1 +Radius 6371200 +NumModels 23 +Epoch 1900 +DeltaEpoch 5 +MinTime 1900 +MaxTime 2015 +MinHeight -1000 +MaxHeight 600000 + +# The coefficients are stored in a file obtained by appending ".cof" to +# the name of this file. The coefficients were obtained from IGRF11.COF +# in the geomag70 distribution. +ID IGRF11-A +\endverbatim + +
+Back to \ref gravity. Forward to \ref geodesic. Up to \ref contents. +
+**********************************************************************/ +/** +\page geodesic Geodesics on an ellipsoid of revolution + +
+Back to \ref magnetic. Forward to \ref triaxial. Up to \ref contents. +
+ +GeographicLib::Geodesic and GeographicLib::GeodesicLine provide accurate +solutions to the direct and inverse geodesic problems. The +GeodSolve utility provides an interface +to these classes. GeographicLib::AzimuthalEquidistant implements the +azimuthal equidistant projection in terms of geodesics. +GeographicLib::CassiniSoldner implements a transverse cylindrical +equidistant projection in terms of geodesics. The GeodesicProj utility provides an +interface to these projections. + +The algorithms used by GeographicLib::Geodesic and +GeographicLib::GeodesicLine are based on a Taylor expansion of the +geodesic integrals valid when the flattening \e f is small. +GeographicLib::GeodesicExact and GeographicLib::GeodesicLineExact +evaluate the integrals exactly (in terms of incomplete elliptic +integrals). For the WGS84 ellipsoid, the series solutions are about +2--3 times faster and 2--3 times more accurate (because it's easier to +control round-off errors with series solutions); thus +GeographicLib::Geodesic and GeographicLib::GeodesicLine are +recommended for most geodetic applications. However, in applications +where the absolute value of \e f is greater than about 0.02, the exact +classes should be used. + +Go to + - \ref testgeod + - \ref geodseries + - \ref geodellip + - \ref meridian + - \ref geodshort + . +For some background information on geodesics on triaxial ellipsoids, see +\ref triaxial. + +References + - F. W. Bessel, + The calculation + of longitude and latitude from geodesic measurements (1825), + Astron. Nachr. 331(8), 852-861 (2010); + translated by C. F. F. Karney and R. E. Deakin. Preprint: + arXiv:0908.1824. + - F. R. Helmert, + + Mathematical and Physical Theories of Higher Geodesy, Part 1 (1880), + Aeronautical Chart and Information Center (St. Louis, 1964), + Chaps. 5--7. + - J. Danielsen, + The Area under the Geodesic, + Survey Review 30(232), 61--66 (1989). + - C. F. F. Karney, + + Algorithms for geodesics, + J. Geodesy 87(1), 43--55 (Jan. 2013); + DOI: + 10.1007/s00190-012-0578-z; + addenda: + geod-addenda.html; + resource page: + geod.html. + - A collection of some papers on geodesics is available at + http://geographiclib.sourceforge.net/geodesic-papers/biblio.html + - The wikipedia page, + + Geodesics on an ellipsoid. + +\section testgeod Test data for geodesics + +A test set a geodesics is available at + - + GeodTest.dat.gz + . +This is about 39 MB (compressed). This consists of a set of geodesics +for the WGS84 ellipsoid. A subset of this (consisting of 1/50 of the +members — about 690 kB, compressed) is available at + - + GeodTest-short.dat.gz + +Each line of the test set gives 10 space delimited numbers + - latitude for point 1, \e lat1 (degrees, exact) + - longitude for point 1, \e lon1 (degrees, always 0) + - azimuth for point 1, \e azi1 (clockwise from north in degrees, exact) + - latitude for point 2, \e lat2 (degrees, accurate to + 10−18 deg) + - longitude for point 2, \e lon2 (degrees, accurate to + 10−18 deg) + - azimuth for point 2, \e azi2 (degrees, accurate to + 10−18 deg) + - geodesic distance from point 1 to point 2, \e s12 (meters, exact) + - arc distance on the auxiliary sphere, \e a12 (degrees, accurate to + 10−18 deg) + - reduced length of the geodesic, \e m12 (meters, accurate to 0.1 pm) + - the area under the geodesic, \e S12 (m2, accurate to + 1 mm2) + . +These are computed using as direct geodesic calculations with the given +\e lat1, \e lon1, \e azi1, and \e s12. The distance \e s12 always +corresponds to an arc length \e a12 ≤ 180°, so the given +geodesics give the shortest paths from point 1 to point 2. For +simplicity and without loss of generality, \e lat1 is chosen in +[0°, 90°], \e lon1 is taken to be zero, \e azi1 is +chosen in [0°, 180°]. Furthermore, \e lat1 and \e +azi1 are taken to be multiples of 10−12 deg and \e s12 +is a multiple of 0.1 μm in [0 m, 20003931.4586254 m]. This results \e +lon2 in [0°, 180°] and \e azi2 in [0°, 180°]. + +The direct calculation uses an expansion of the geodesic equations +accurate to f30 (approximately 1 part in 1050) +and is computed with with +Maxima's +bfloats and fpprec set to 100 (so the errors in the data are probably +1/2 of the values quoted above). + +The contents of the file are as follows: + - 100000 entries randomly distributed + - 50000 entries which are nearly antipodal + - 50000 entries with short distances + - 50000 entries with one end near a pole + - 50000 entries with both ends near opposite poles + - 50000 entries which are nearly meridional + - 50000 entries which are nearly equatorial + - 50000 entries running between vertices (\e azi1 = \e azi2 = 90°) + - 50000 entries ending close to vertices + . +(a total of 500000 entries). The values for \e s12 for the geodesics +running between vertices are truncated to a multiple of 0.1 pm and this +is used to determine point 2. + +This data can be fed to the GeodSolve +utility as follows + - Direct from point 1: +\verbatim + gunzip -c GeodTest.dat.gz | cut -d' ' -f1,2,3,7 | ./GeodSolve +\endverbatim + This should yield columns 4, 5, 6, and 9 of the test set. + - Direct from point 2: +\verbatim + gunzip -c GeodTest.dat.gz | cut -d' ' -f4,5,6,7 | + sed "s/ \([^ ]*$\)/ -\1/" | ./GeodSolve +\endverbatim + (The sed command negates the distance.) This should yield columns 1, + 2, and 3, and the negative of column 9 of the test set. + - Inverse between points 1 and 2: +\verbatim + gunzip -c GeodTest.dat.gz | cut -d' ' -f1,2,4,5 | ./GeodSolve -i +\endverbatim + This should yield columns 3, 6, 7, and 9 of the test set. + . +Add, e.g., "-p 6", to the call to GeodSolve to change the precision of +the output. Adding "-f" causes GeodSolve to print 12 fields specifying +the geodesic; these include the 10 fields in the test set plus the +geodesic scales \e M12 and \e M21 which are inserted between \e m12 and +\e S12. + +Code for computing arbitrarily accurate geodesics in maxima is available +in geodesic.mac (this depends on + ellint.mac and uses the series computed by + geod.mac). This solve both the direct and +inverse geodesic problems and offers the ability to solve the problems +either using series expansions (similar to GeographicLib::Geodesic) or +in terms of elliptic integrals (similar to +GeographicLib::GeodesicExact). + +\section geodseries Expansions for geodesics + +We give here the series expansions for the various geodesic integrals +valid to order f10. In this release of the code, we +use a 6th-order expansions. This is sufficient to maintain accuracy +for doubles for the SRMmax ellipsoid (\e a = 6400 km, \e f = 1/150). +However, the preprocessor macro GEOGRAPHICLIB_GEODESIC_ORDER can be +used to select any order up to 8. (If using long doubles, with a +64-bit fraction, the default order is 7.) The series expanded to +order f30 are given in +geodseries30.html. + +In the formulas below ^ indicates exponentiation (\e f^3 = +f3) and / indicates real division (3/5 = 0.6). The +equations need to be converted to Horner form, but are here left in +expanded form so that they can be easily truncated to lower order. +These expansions were obtained using the Maxima code, +geod.mac. + +In the expansions below, we have + - \f$ \alpha \f$ is the azimuth + - \f$ \alpha_0 \f$ is the azimuth at the equator crossing + - \f$ \lambda \f$ is the longitude measured from the equator crossing + - \f$ \sigma \f$ is the spherical arc length + - \f$ \omega = \tan^{-1}(\sin\alpha_0\tan\sigma) \f$ is the spherical longitude + - \f$ a \f$ is the equatorial radius + - \f$ b \f$ is the polar semi-axis + - \f$ f \f$ is the flattening + - \f$ e^2 = f(2 - f) \f$ + - \f$ e'^2 = e^2/(1-e^2) \f$ + - \f$ k^2 = e'^2 \cos^2\alpha_0 = 4 \epsilon / (1 - \epsilon)^2 \f$ + - \f$ n = f / (2 - f) \f$ + - \f$ c^2 = a^2/2 + b^2/2 (\tanh^{-1}e)/e \f$ + - \e ep2 = \f$ e'^2 \f$ + - \e k2 = \f$ k^2 \f$ + - \e eps = \f$ \epsilon \f$ + +The formula for distance is +\f[ + \frac sb = I_1(\sigma) +\f] +where +\f[ +\begin{aligned} + I_1(\sigma) &= A_1\bigl(\sigma + B_1(\sigma)\bigr) \\ + B_1(\sigma) &= \sum_{j=1} C_{1j} \sin 2j\sigma +\end{aligned} +\f] +and +\verbatim +A1 = (1 + 1/4 * eps^2 + + 1/64 * eps^4 + + 1/256 * eps^6 + + 25/16384 * eps^8 + + 49/65536 * eps^10) / (1 - eps); +\endverbatim +\verbatim +C1[1] = - 1/2 * eps + + 3/16 * eps^3 + - 1/32 * eps^5 + + 19/2048 * eps^7 + - 3/4096 * eps^9; +C1[2] = - 1/16 * eps^2 + + 1/32 * eps^4 + - 9/2048 * eps^6 + + 7/4096 * eps^8 + + 1/65536 * eps^10; +C1[3] = - 1/48 * eps^3 + + 3/256 * eps^5 + - 3/2048 * eps^7 + + 17/24576 * eps^9; +C1[4] = - 5/512 * eps^4 + + 3/512 * eps^6 + - 11/16384 * eps^8 + + 3/8192 * eps^10; +C1[5] = - 7/1280 * eps^5 + + 7/2048 * eps^7 + - 3/8192 * eps^9; +C1[6] = - 7/2048 * eps^6 + + 9/4096 * eps^8 + - 117/524288 * eps^10; +C1[7] = - 33/14336 * eps^7 + + 99/65536 * eps^9; +C1[8] = - 429/262144 * eps^8 + + 143/131072 * eps^10; +C1[9] = - 715/589824 * eps^9; +C1[10] = - 2431/2621440 * eps^10; +\endverbatim + +The function \f$ \tau(\sigma) = s/(b A_1) = \sigma + B_1(\sigma) \f$ +may be inverted by series reversion giving +\f[ + \sigma(\tau) = \tau + \sum_{j=1} C'_{1j} \sin 2j\sigma +\f] +where +\verbatim +C1'[1] = + 1/2 * eps + - 9/32 * eps^3 + + 205/1536 * eps^5 + - 4879/73728 * eps^7 + + 9039/327680 * eps^9; +C1'[2] = + 5/16 * eps^2 + - 37/96 * eps^4 + + 1335/4096 * eps^6 + - 86171/368640 * eps^8 + + 4119073/28311552 * eps^10; +C1'[3] = + 29/96 * eps^3 + - 75/128 * eps^5 + + 2901/4096 * eps^7 + - 443327/655360 * eps^9; +C1'[4] = + 539/1536 * eps^4 + - 2391/2560 * eps^6 + + 1082857/737280 * eps^8 + - 2722891/1548288 * eps^10; +C1'[5] = + 3467/7680 * eps^5 + - 28223/18432 * eps^7 + + 1361343/458752 * eps^9; +C1'[6] = + 38081/61440 * eps^6 + - 733437/286720 * eps^8 + + 10820079/1835008 * eps^10; +C1'[7] = + 459485/516096 * eps^7 + - 709743/163840 * eps^9; +C1'[8] = + 109167851/82575360 * eps^8 + - 550835669/74317824 * eps^10; +C1'[9] = + 83141299/41287680 * eps^9; +C1'[10] = + 9303339907/2972712960 * eps^10; +\endverbatim + +The reduced length is given by +\f[ +\begin{aligned} + \frac mb &= \sqrt{1 + k^2 \sin^2\sigma_2} \cos\sigma_1 \sin\sigma_2 \\ + &\quad {}-\sqrt{1 + k^2 \sin^2\sigma_1} \sin\sigma_1 \cos\sigma_2 \\ + &\quad {}-\cos\sigma_1 \cos\sigma_2 \bigl(J(\sigma_2) - J(\sigma_1)\bigr) +\end{aligned} +\f] +where +\f[ +\begin{aligned} + J(\sigma) &= I_1(\sigma) - I_2(\sigma) \\ + I_2(\sigma) &= A_2\bigl(\sigma + B_2(\sigma)\bigr) \\ + B_2(\sigma) &= \sum_{j=1} C_{2j} \sin 2j\sigma +\end{aligned} +\f] +\verbatim +A2 = (1 + 1/4 * eps^2 + + 9/64 * eps^4 + + 25/256 * eps^6 + + 1225/16384 * eps^8 + + 3969/65536 * eps^10) * (1 - eps); +\endverbatim +\verbatim +C2[1] = + 1/2 * eps + + 1/16 * eps^3 + + 1/32 * eps^5 + + 41/2048 * eps^7 + + 59/4096 * eps^9; +C2[2] = + 3/16 * eps^2 + + 1/32 * eps^4 + + 35/2048 * eps^6 + + 47/4096 * eps^8 + + 557/65536 * eps^10; +C2[3] = + 5/48 * eps^3 + + 5/256 * eps^5 + + 23/2048 * eps^7 + + 191/24576 * eps^9; +C2[4] = + 35/512 * eps^4 + + 7/512 * eps^6 + + 133/16384 * eps^8 + + 47/8192 * eps^10; +C2[5] = + 63/1280 * eps^5 + + 21/2048 * eps^7 + + 51/8192 * eps^9; +C2[6] = + 77/2048 * eps^6 + + 33/4096 * eps^8 + + 2607/524288 * eps^10; +C2[7] = + 429/14336 * eps^7 + + 429/65536 * eps^9; +C2[8] = + 6435/262144 * eps^8 + + 715/131072 * eps^10; +C2[9] = + 12155/589824 * eps^9; +C2[10] = + 46189/2621440 * eps^10; +\endverbatim + +The longitude is given in terms of the spherical longitude by +\f[ +\lambda = \omega - f \sin\alpha_0 I_3(\sigma) +\f] +where +\f[ +\begin{aligned} + I_3(\sigma) &= A_3\bigl(\sigma + B_3(\sigma)\bigr) \\ + B_3(\sigma) &= \sum_{j=1} C_{3j} \sin 2j\sigma +\end{aligned} +\f] +and +\verbatim +A3 = 1 - (1/2 - 1/2*n) * eps + - (1/4 + 1/8*n - 3/8*n^2) * eps^2 + - (1/16 + 3/16*n + 1/16*n^2 - 5/16*n^3) * eps^3 + - (3/64 + 1/32*n + 5/32*n^2 + 5/128*n^3 - 35/128*n^4) * eps^4 + - (3/128 + 5/128*n + 5/256*n^2 + 35/256*n^3 + 7/256*n^4) * eps^5 + - (5/256 + 15/1024*n + 35/1024*n^2 + 7/512*n^3) * eps^6 + - (25/2048 + 35/2048*n + 21/2048*n^2) * eps^7 + - (175/16384 + 35/4096*n) * eps^8 + - 245/32768 * eps^9; +\endverbatim +\verbatim +C3[1] = + (1/4 - 1/4*n) * eps + + (1/8 - 1/8*n^2) * eps^2 + + (3/64 + 3/64*n - 1/64*n^2 - 5/64*n^3) * eps^3 + + (5/128 + 1/64*n + 1/64*n^2 - 1/64*n^3 - 7/128*n^4) * eps^4 + + (3/128 + 11/512*n + 3/512*n^2 + 1/256*n^3 - 7/512*n^4) * eps^5 + + (21/1024 + 5/512*n + 13/1024*n^2 + 1/512*n^3) * eps^6 + + (243/16384 + 189/16384*n + 83/16384*n^2) * eps^7 + + (435/32768 + 109/16384*n) * eps^8 + + 345/32768 * eps^9; +C3[2] = + (1/16 - 3/32*n + 1/32*n^2) * eps^2 + + (3/64 - 1/32*n - 3/64*n^2 + 1/32*n^3) * eps^3 + + (3/128 + 1/128*n - 9/256*n^2 - 3/128*n^3 + 7/256*n^4) * eps^4 + + (5/256 + 1/256*n - 1/128*n^2 - 7/256*n^3 - 3/256*n^4) * eps^5 + + (27/2048 + 69/8192*n - 39/8192*n^2 - 47/4096*n^3) * eps^6 + + (187/16384 + 39/8192*n + 31/16384*n^2) * eps^7 + + (287/32768 + 47/8192*n) * eps^8 + + 255/32768 * eps^9; +C3[3] = + (5/192 - 3/64*n + 5/192*n^2 - 1/192*n^3) * eps^3 + + (3/128 - 5/192*n - 1/64*n^2 + 5/192*n^3 - 1/128*n^4) * eps^4 + + (7/512 - 1/384*n - 77/3072*n^2 + 5/3072*n^3 + 65/3072*n^4) * eps^5 + + (3/256 - 1/1024*n - 71/6144*n^2 - 47/3072*n^3) * eps^6 + + (139/16384 + 143/49152*n - 383/49152*n^2) * eps^7 + + (243/32768 + 95/49152*n) * eps^8 + + 581/98304 * eps^9; +C3[4] = + (7/512 - 7/256*n + 5/256*n^2 - 7/1024*n^3 + 1/1024*n^4) * eps^4 + + (7/512 - 5/256*n - 7/2048*n^2 + 9/512*n^3 - 21/2048*n^4) * eps^5 + + (9/1024 - 43/8192*n - 129/8192*n^2 + 39/4096*n^3) * eps^6 + + (127/16384 - 23/8192*n - 165/16384*n^2) * eps^7 + + (193/32768 + 3/8192*n) * eps^8 + + 171/32768 * eps^9; +C3[5] = + (21/2560 - 9/512*n + 15/1024*n^2 - 7/1024*n^3 + 9/5120*n^4) * eps^5 + + (9/1024 - 15/1024*n + 3/2048*n^2 + 57/5120*n^3) * eps^6 + + (99/16384 - 91/16384*n - 781/81920*n^2) * eps^7 + + (179/32768 - 55/16384*n) * eps^8 + + 141/32768 * eps^9; +C3[6] = + (11/2048 - 99/8192*n + 275/24576*n^2 - 77/12288*n^3) * eps^6 + + (99/16384 - 275/24576*n + 55/16384*n^2) * eps^7 + + (143/32768 - 253/49152*n) * eps^8 + + 33/8192 * eps^9; +C3[7] = + (429/114688 - 143/16384*n + 143/16384*n^2) * eps^7 + + (143/32768 - 143/16384*n) * eps^8 + + 429/131072 * eps^9; +C3[8] = + (715/262144 - 429/65536*n) * eps^8 + + 429/131072 * eps^9; +C3[9] = + 2431/1179648 * eps^9; +\endverbatim + +The formula for area between the geodesic and the equator is given in +Sec. 6 of +Algorithms for geodesics in terms of \e S, +\f[ +S = c^2 \alpha + e^2 a^2 \cos\alpha_0 \sin\alpha_0 I_4(\sigma) +\f] +where +\f[ +I_4(\sigma) = \sum_{j=0} C_{4j} \cos(2j+1)\sigma +\f] +In the paper, this was expanded in \f$ e'^2 \f$ and \f$ k^2 \f$. +However, the series converges faster for eccentric ellipsoids if the +expansion is in \f$ n \f$ and \f$ \epsilon \f$. The series to order +\f$ f^{10} \f$ becomes +\verbatim +C4[0] = + (2/3 - 4/15*n + 8/105*n^2 + 4/315*n^3 + 16/3465*n^4 + 20/9009*n^5 + 8/6435*n^6 + 28/36465*n^7 + 32/62985*n^8 + 4/11305*n^9) + - (1/5 - 16/35*n + 32/105*n^2 - 16/385*n^3 - 64/15015*n^4 - 16/15015*n^5 - 32/85085*n^6 - 112/692835*n^7 - 128/1616615*n^8) * eps + - (2/105 + 32/315*n - 1088/3465*n^2 + 1184/5005*n^3 - 128/3465*n^4 - 3232/765765*n^5 - 1856/1616615*n^6 - 6304/14549535*n^7) * eps^2 + + (11/315 - 368/3465*n - 32/6435*n^2 + 976/4095*n^3 - 154048/765765*n^4 + 368/11115*n^5 + 5216/1322685*n^6) * eps^3 + + (4/1155 + 1088/45045*n - 128/1287*n^2 + 64/3927*n^3 + 2877184/14549535*n^4 - 370112/2078505*n^5) * eps^4 + + (97/15015 - 464/45045*n + 4192/153153*n^2 - 88240/969969*n^3 + 31168/1322685*n^4) * eps^5 + + (10/9009 + 4192/765765*n - 188096/14549535*n^2 + 23392/855855*n^3) * eps^6 + + (193/85085 - 6832/2078505*n + 106976/14549535*n^2) * eps^7 + + (632/1322685 + 3456/1616615*n) * eps^8 + + 107/101745 * eps^9; +C4[1] = + (1/45 - 16/315*n + 32/945*n^2 - 16/3465*n^3 - 64/135135*n^4 - 16/135135*n^5 - 32/765765*n^6 - 112/6235515*n^7 - 128/14549535*n^8) * eps + - (2/105 - 64/945*n + 128/1485*n^2 - 1984/45045*n^3 + 256/45045*n^4 + 64/109395*n^5 + 128/855855*n^6 + 2368/43648605*n^7) * eps^2 + - (1/105 - 16/2079*n - 5792/135135*n^2 + 3568/45045*n^3 - 103744/2297295*n^4 + 264464/43648605*n^5 + 544/855855*n^6) * eps^3 + + (4/1155 - 2944/135135*n + 256/9009*n^2 + 17536/765765*n^3 - 3053056/43648605*n^4 + 1923968/43648605*n^5) * eps^4 + + (1/9009 + 16/19305*n - 2656/153153*n^2 + 65072/2078505*n^3 + 526912/43648605*n^4) * eps^5 + + (10/9009 - 1472/459459*n + 106112/43648605*n^2 - 204352/14549535*n^3) * eps^6 + + (349/2297295 + 28144/43648605*n - 32288/8729721*n^2) * eps^7 + + (632/1322685 - 44288/43648605*n) * eps^8 + + 43/479655 * eps^9; +C4[2] = + (4/525 - 32/1575*n + 64/3465*n^2 - 32/5005*n^3 + 128/225225*n^4 + 32/765765*n^5 + 64/8083075*n^6 + 32/14549535*n^7) * eps^2 + - (8/1575 - 128/5775*n + 256/6825*n^2 - 6784/225225*n^3 + 4608/425425*n^4 - 128/124355*n^5 - 5888/72747675*n^6) * eps^3 + - (8/1925 - 1856/225225*n - 128/17325*n^2 + 42176/1276275*n^3 - 2434816/72747675*n^4 + 195136/14549535*n^5) * eps^4 + + (8/10725 - 128/17325*n + 64256/3828825*n^2 - 128/25935*n^3 - 266752/10392525*n^4) * eps^5 + - (4/25025 + 928/3828825*n + 292288/72747675*n^2 - 106528/6613425*n^3) * eps^6 + + (464/1276275 - 17152/10392525*n + 83456/72747675*n^2) * eps^7 + + (1168/72747675 + 128/1865325*n) * eps^8 + + 208/1119195 * eps^9; +C4[3] = + (8/2205 - 256/24255*n + 512/45045*n^2 - 256/45045*n^3 + 1024/765765*n^4 - 256/2909907*n^5 - 512/101846745*n^6) * eps^3 + - (16/8085 - 1024/105105*n + 2048/105105*n^2 - 1024/51051*n^3 + 4096/373065*n^4 - 1024/357357*n^5) * eps^4 + - (136/63063 - 256/45045*n + 512/1072071*n^2 + 494336/33948915*n^3 - 44032/1996995*n^4) * eps^5 + + (64/315315 - 16384/5360355*n + 966656/101846745*n^2 - 868352/101846745*n^3) * eps^6 + - (16/97461 + 14848/101846745*n + 74752/101846745*n^2) * eps^7 + + (5024/33948915 - 96256/101846745*n) * eps^8 + - 1744/101846745 * eps^9; +C4[4] = + (64/31185 - 512/81081*n + 1024/135135*n^2 - 512/109395*n^3 + 2048/1247103*n^4 - 2560/8729721*n^5) * eps^4 + - (128/135135 - 2048/405405*n + 77824/6891885*n^2 - 198656/14549535*n^3 + 8192/855855*n^4) * eps^5 + - (512/405405 - 2048/530145*n + 299008/130945815*n^2 + 280576/43648605*n^3) * eps^6 + + (128/2297295 - 2048/1438965*n + 241664/43648605*n^2) * eps^7 + - (17536/130945815 + 1024/43648605*n) * eps^8 + + 2944/43648605 * eps^9; +C4[5] = + (128/99099 - 2048/495495*n + 4096/765765*n^2 - 6144/1616615*n^3 + 8192/4849845*n^4) * eps^5 + - (256/495495 - 8192/2807805*n + 376832/53348295*n^2 - 8192/855855*n^3) * eps^6 + - (6784/8423415 - 432128/160044885*n + 397312/160044885*n^2) * eps^7 + + (512/53348295 - 16384/22863555*n) * eps^8 + - 16768/160044885 * eps^9; +C4[6] = + (512/585585 - 4096/1422135*n + 8192/2078505*n^2 - 4096/1322685*n^3) * eps^6 + - (1024/3318315 - 16384/9006855*n + 98304/21015995*n^2) * eps^7 + - (103424/189143955 - 8192/4203199*n) * eps^8 + - 1024/189143955 * eps^9; +C4[7] = + (1024/1640925 - 65536/31177575*n + 131072/43648605*n^2) * eps^7 + - (2048/10392525 - 262144/218243025*n) * eps^8 + - 84992/218243025 * eps^9; +C4[8] = + (16384/35334585 - 131072/82447365*n) * eps^8 + - 32768/247342095 * eps^9; +C4[9] = + 32768/92147055 * eps^9; +\endverbatim + +\section geodellip Geodesics in terms of elliptic integrals + +GeographicLib::GeodesicExact and GeographicLib::GeodesicLineExact solve +the geodesic problem using elliptic integrals. The formulation of +geodesic in terms of incomplete elliptic integrals is given in + - C. F. F. Karney, + Geodesics + on an ellipsoid of revolution, + Feb. 2011; preprint + arxiv:1102.1215v1. + . +It is most convenient to use the form derived for a prolate ellipsoid in +Appendix D. For an oblate ellipsoid this results in elliptic integrals +with an imaginary modulus. However, the integrals themselves are real +and the algorithms used to compute the elliptic integrals handles the +case of an imaginary modulus using real arithmetic. + +The key relations used by %GeographicLib are +\f[ + \begin{aligned} + \frac sb &= E(\sigma, ik), \\ + \lambda &= (1 - f) \sin\alpha_0 G(\sigma, \cos^2\alpha_0, ik) \\ + &= \chi + - \frac{e'^2}{\sqrt{1+e'^2}}\sin\alpha_0 H(\sigma, -e'^2, ik), \\ + J(\sigma) &= k^2 D(\sigma, ik), + \end{aligned} +\f] +where \f$ \chi \f$ is a modified spherical longitude given by +\f[ +\tan\chi = \sqrt{\frac{1+e'^2}{1+k^2\sin^2\sigma}}\tan\omega, +\f] +and +\f[ + \begin{aligned} + D(\phi,k) &= \int_0^\phi + \frac{\sin^2\theta}{\sqrt{1 - k^2\sin^2\theta}}\,d\theta\\ + &=\frac{F(\phi, k) - E(\phi, k)}{k^2},\\ + G(\phi,\alpha^2,k) &= \int_0^\phi + \frac{\sqrt{1 - k^2\sin^2\theta}}{1 - \alpha^2\sin^2\theta}\,d\theta\\ + &=\frac{k^2}{\alpha^2}F(\phi, k) + +\biggl(1-\frac{k^2}{\alpha^2}\biggr)\Pi(\phi, \alpha^2, k),\\ + H(\phi, \alpha^2, k) + &= \int_0^\phi + \frac{\cos^2\theta}{(1-\alpha^2\sin^2\theta)\sqrt{1-k^2\sin^2\theta}} + \,d\theta \\ + &= + \frac1{\alpha^2} F(\phi, k) + + \biggl(1 - \frac1{\alpha^2}\biggr) \Pi(\phi, \alpha^2, k), + \end{aligned} +\f] +and \f$F(\phi, k)\f$, \f$E(\phi, k)\f$, \f$D(\phi, k)\f$, and +\f$\Pi(\phi, \alpha^2, k)\f$, are incomplete elliptic integrals (see +http://dlmf.nist.gov/19.2.ii). The formula for \f$ s \f$ and the +first expression for \f$ \lambda \f$ are given by Legendre (1811) and +are the most common representation of geodesics in terms of elliptic +integrals. The second (equivalent) expression for \f$ \lambda \f$, +which was given by Cayley (1870), is useful in that the elliptic +integral is relegated to a small correction term. This form allows +the longitude to be computed more accurately and is used in +%GeographicLib. (The equivalence of the two expressions for \f$ +\lambda \f$ follows from http://dlmf.nist.gov/19.7.E8.) + +Nominally, GeographicLib::GeodesicExact and +GeographicLib::GeodesicLineExact will give "exact" results for any value +of the flattening. However, the geographic latitude is a distorted +measure of distance from the equator with very eccentric ellipsoids and +this introducing an irreducible representational error in the algorithms +in this case. It is therefore recommended to restrict the use of these +classes to \e b/\e a ∈ [0.01, 100] or \e f ∈ [-99, 0.99]. +Note that GeographicLib::GeodesicExact still uses a series expansion for +the area \e S12. However the series is taken out to 30th order and +gives accurate results for \e b/\e a ∈ [1/2, 2]; the accuracy is +about 8 decimal digits for \e b/\e a ∈ [1/4, 4]. Additional work +planned for this aspect of the geodesic problem: +- formulate the area integral \e S12 in terms of elliptic integrals; +- generate accurate test geodesics for highly eccentric ellipsoids so + that the roundoff errors can be quantified. + +Thomas (1952) and Rollins (2010) use a different independent variable +for geodesics, \f$\theta\f$ instead of \f$\sigma\f$, where \f$ +\tan\theta = \sqrt{1 + k^2} \tan\sigma \f$. The corresponding +expressions for \f$ s \f$ and \f$ \lambda \f$ are given here for +completeness: +\f[ +\begin{aligned} +\frac sb &= \sqrt{1-k'^2} \Pi(\theta, k'^2, k'), \\ +\lambda &= (1-f) \sqrt{1-k'^2} \sin\alpha_0 \Pi(\theta, k'^2/e^2, k'), +\end{aligned} +\f] +where \f$ k' = k/\sqrt{1 + k^2} \f$. The expression for \f$ s \f$ +can be written in terms of elliptic integrals of the second kind and +Cayley's technique can be used to subtract out the leading order +behavior of \f$ \lambda \f$ to give +\f[ +\begin{aligned} +\frac sb &=\frac1{\sqrt{1-k'^2}} + \biggl( E(\theta, k') - + \frac{k'^2 \sin\theta \cos\theta}{\sqrt{1-k'^2\sin^2\theta}} \biggr), \\ +\lambda &= \psi + (1-f) \sqrt{1-k'^2} \sin\alpha_0 +\bigl( F(\theta, k') - \Pi(\theta, e^2, k') \bigr), +\end{aligned} +\f] +where +\f[ +\begin{aligned} +\tan\psi &= \sqrt{\frac{1+k^2\sin^2\sigma}{1+e'^2}}\tan\omega \\ + &= \sqrt{\frac{1-e^2}{1+k^2\cos^2\theta}}\sin\alpha_0\tan\theta. +\end{aligned} +\f] +The tangents of the three "longitude-like" angles are in geometric +progression, \f$ \tan\chi/\tan\omega = \tan\omega/\tan\psi \f$. + +\section meridian Parameters for the meridian + +The formulas for \f$ s \f$ given in the previous section are the same as +those for the distance along a meridian for an ellipsoid with equatorial +radius \f$ a \sqrt{1 - e^2 \sin^2\alpha_0} \f$ and polar semi-axis \f$ b +\f$. Here is a list of possible ways of expressing the meridian +distance in terms of elliptic integrals using the notation: +- \f$ a \f$, equatorial axis, +- \f$ b \f$, polar axis, +- \f$ e = \sqrt{(a^2 - b^2)/a^2} \f$, eccentricity, +- \f$ e' = \sqrt{(a^2 - b^2)/b^2} \f$, second eccentricity, +- \f$ \phi = \mathrm{am}(u, e) \f$, the geographic latitude, +- \f$ \phi' = \mathrm{am}(v', ie') = \pi/2 - \phi \f$, + the geographic colatitude, +- \f$ \beta = \mathrm{am}(v, ie') \f$, the parametric latitude + (\f$ \tan^2\beta = (1 - e^2) \tan^2\phi \f$), +- \f$ \beta' = \mathrm{am}(u', e) = \pi/2 - \beta \f$, + the parametric colatitude, +- \f$ M \f$, the length of a quarter meridian (equator to pole), +- \f$ y \f$, the distance along the meridian (measured from the equator). +- \f$ y' = M -y \f$, the distance along the meridian (measured from the pole). +. +The eccentricities \f$ (e, e') \f$ are real (resp. imaginary) for +oblate (resp. prolate) ellipsoids. The elliptic variables \f$(u, +u')\f$ and \f$(v, v')\f$ are defined by +- \f$ u = F(\phi, e) ,\quad u' = F(\beta', e) \f$ +- \f$ v = F(\beta, ie') ,\quad v' = F(\phi', ie') \f$, +. +and are linearly related by +- \f$ u + u' = K(e) ,\quad v + v' = K(ie') \f$ +- \f$ v = \sqrt{1-e^2} u ,\quad u = \sqrt{1+e'^2} v \f$. +. +The cartesian coordinates for the meridian \f$ (x, y) \f$ are given by +\f[ +\begin{aligned} + x &= a \cos\beta = a \cos\phi / \sqrt{1 - e^2 \sin^2\phi} \\ + &= a \sin\beta' = (a^2/b) \sin\phi' / \sqrt{1 + e'^2 \sin^2\phi'} \\ + &= a \,\mathrm{cn}(v, ie) = a \,\mathrm{cd}(u, e) \\ + &= a \,\mathrm{sn}(u', e) = (a^2/b) \,\mathrm{sd}(v', ie'), +\end{aligned} +\f] +\f[ +\begin{aligned} + z &= b \sin\beta = (b^2/a) \sin\phi / \sqrt{1 - e^2 \sin^2\phi} \\ + &= b \cos\beta' = b \cos\phi' / \sqrt{1 + e'^2 \sin^2\phi'} \\ + &= b \,\mathrm{sn}(v, ie) = (b^2/a) \,\mathrm{sd}(u, e) \\ + &= b \,\mathrm{cn}(u', e) = b \,\mathrm{cd}(v', ie'). +\end{aligned} +\f] +The distance along the meridian can be expressed variously as +\f[ +\begin{aligned} + y &= b \int \sqrt{1 + e'^2 \sin^2\beta}\, d\beta + = b E(\beta, ie') \\ + &= \frac{b^2}a \int \frac1{(1 - e^2 \sin^2\phi)^{3/2}}\, d\phi + = \frac{b^2}a \Pi(\phi, e^2, e) \\ + &= a \biggl(E(\phi, e) - + \frac{e^2\sin\phi \cos\phi}{\sqrt{1 - e^2\sin^2\phi}}\biggr) \\ + &= b \int \mathrm{dn}^2(v, ie')\, dv + = \frac{b^2}a \int \mathrm{nd}^2(u, e)\, du + = \cal E(v, ie'), +\end{aligned} +\f] +\f[ +\begin{aligned} + y' &= a \int \sqrt{1 - e^2 \sin^2\beta'}\, d\beta' + = a E(\beta', e) \\ + &= \frac{a^2}b \int \frac1{(1 + e'^2 \sin^2\phi')^{3/2}}\, d\phi' + = \frac{a^2}b \Pi(\phi', -e'^2, ie') \\ + &= b \biggl(E(\phi', ie') + + \frac{e'^2\sin\phi' \cos\phi'}{\sqrt{1 + e'^2\sin^2\phi'}}\biggr) \\ + &= a \int \mathrm{dn}^2(u', e)\, du' + = \frac{a^2}b \int \mathrm{nd}^2(v', ie')\, dv' + = \cal E(u', e), +\end{aligned} +\f] +with the quarter meridian distance given by +\f[ + M = aE(e) = bE(ie') = (b^2/a)\Pi(e^2,e) = (a^2/b)\Pi(-e'^2,ie'). +\f] +(Here \f$ E, F, \Pi \f$ are elliptic integrals defined in +http://dlmf.nist.gov/19.2.ii. \f$ \cal E, \mathrm{am}, \mathrm{sn}, +\mathrm{cn}, \mathrm{sd}, \mathrm{cd}, \mathrm{dn}, \mathrm{nd} \f$ are +Jacobi elliptic functions defined in http://dlmf.nist.gov/22.2 and +http://dlmf.nist.gov/22.16.) + +There are several considerations in the choice of independent variable +for evaluate the meridian distance +- The use of an imaginary modulus (namely, \f$ ie' \f$, above) is of no + practical concern. The integrals are real in this case and modern + methods (%GeographicLib uses the method given in + http://dlmf.nist.gov/19.36.i) for computing integrals handles this + case using just real arithmetic. +- If the "natural" origin is the equator, choose one of \f$ \phi, \beta, + u, v \f$ (this might be preferred in geodesy). If it's the pole, + choose one of the complementary quantities \f$ \phi', \beta', u', v' + \f$ (this might be preferred by mathematicians). +- Applying these formulas to the geodesic problems, \f$ \beta \f$ + becomes the arc length, \f$ \sigma \f$, on the auxiliary sphere. This + is the traditional method of solution used by Legendre (1806), Oriani + (1806), Bessel (1825), Helmert (1880), Rainsford (1955), Thomas + (1970), Vincenty (1975), Rapp (1993), and so on. Many of the + solutions in terms of elliptic functions use one of the elliptic + variables (\f$ u \f$ or \f$ v \f$), see, for example, Jacobi (1855), + Halphen (1888), Forsyth (1896). In the context of geodesics \f$ + \phi \f$ becomes Thomas' variable \f$ \theta \f$; this is used by + Thomas (1952) and Rollins (2010) in their formulation of the + geodesic problem (see the previous section). +- For highly eccentric ellipsoids the variation of the meridian with + respect to \f$ \beta \f$ is considerably "better behaved" than other + choices (see the figure below). The choice of \f$ \phi \f$ is + probably a poor one in this case. +. +%GeographicLib uses the geodesic generalization of +\f$ y = b E(\beta, ie') \f$, namely \f$ s = b E(\sigma, ik) \f$. See +\ref geodellip. + +\image html meridian-measures.png "Comparison of meridian measures" + +\section geodshort Short geodesics + +Here we describe Bowring's method for solving the inverse geodesic +problem in the limit of short geodesics and contrast it with the great +circle solution using Bessel's auxiliary sphere. References: + - B. R. Bowring, The Direct and Inverse Problems for Short Geodesic + Lines on the Ellipsoid, Surveying and Mapping 41(2), 135--141 (1981). + - R. H. Rapp, + + Geometric Geodesy, Part I, Ohio State Univ. (1991), Sec. 6.5. + +Bowring considers the conformal mapping of the ellipsoid to a sphere of +radius \f$ R \f$ such that circles of latitude and meridians are +preserved (and hence the azimuth of a line is preserved). Let \f$ +(\phi, \lambda) \f$ and \f$ (\phi', \lambda') \f$ be the latitude and +longitude on the ellipsoid and sphere respectively. Define isometric +latitudes for the sphere and the ellipsoid as +\f[ +\begin{aligned} + \psi' &= \sinh^{-1} \tan \phi', \\ + \psi &= \sinh^{-1} \tan \phi - e \tanh^{-1}(e \sin\phi). +\end{aligned} +\f] +The most general conformal mapping satisfying Bowring's conditions is +\f[ +\psi' = A \psi + K, \quad \lambda' = A \lambda, +\f] +where \f$ A \f$ and \f$ K \f$ are constants. (In fact a constant can be +added to the equation for \f$ \lambda' \f$, but this does affect the +analysis.) The scale of this mapping is +\f[ +m(\phi) = \frac{AR}{\nu}\frac{\cos\phi'}{\cos\phi}, +\f] +where \f$ \nu = a/\sqrt{1 - e^2\sin^2\phi} \f$ is the transverse radius +of curvature. (Note that in Bowring's Eq. (10), \f$ \phi \f$ should be +replaced by \f$ \phi' \f$.) The mapping from the ellipsoid to the sphere +depends on three parameters \f$ R, A, K \f$. These will be selected to +satisfy certain conditions at some representative latitude \f$ \phi_0 +\f$. Two possible choices are given below. + +\subsection bowring Bowring's method + +Bowring (1981) requires that +\f[ +m(\phi_0) = 1,\quad +\left.\frac{dm(\phi)}{d\phi}\right|_{\phi=\phi_0} = 0,\quad +\left.\frac{d^2m(\phi)}{d\phi^2}\right|_{\phi=\phi_0} = 0, +\f] +i.e, \f$m\approx 1\f$ in the vicinity of \f$\phi = \phi_0\f$. +This gives +\f[ +\begin{aligned} +R &= \frac{\sqrt{1 + e'^2}}{B^2} a, \\ +A &= \sqrt{1 + e'^2 \cos^4\phi_0}, \\ +\tan\phi'_0 &= \frac1B \tan\phi_0, +\end{aligned} +\f] +where \f$ e' = e/\sqrt{1-e^2} \f$ is the second eccentricity, \f$ B = +\sqrt{1+e'^2\cos^2\phi_0} \f$, and \f$ K \f$ is defined implicitly by +the equation for \f$\phi'_0\f$. The radius \f$ R \f$ is the (Gaussian) +mean radius of curvature of the ellipsoid at \f$\phi_0\f$ (so near +\f$\phi_0\f$ the ellipsoid can be deformed to fit the sphere snugly). +The third derivative of \f$ m \f$ is given by +\f[ +\left.\frac{d^3m(\phi)}{d\phi^3}\right|_{\phi=\phi_0} = +\frac{-2e'^2\sin2\phi_0}{B^4}. +\f] + +The method for solving the inverse problem between two nearby points \f$ +(\phi_1, \lambda_1) \f$ and \f$ (\phi_2, \lambda_2) \f$ is as follows: +Set \f$\phi_0 = (\phi_1 + \phi_2)/2\f$. Compute \f$ R, A, \phi'_0 \f$, +and hence find \f$ (\phi'_1, \lambda'_1) \f$ and \f$ (\phi'_2, +\lambda'_2) \f$. Finally, solve for the great circle on a sphere of +radius \f$ R \f$; the resulting distance and azimuths are good +approximations for the corresponding quantities for the ellipsoidal +geodesic. + +Consistent with the accuracy of this method, we can compute +\f$\phi'_1\f$ and \f$\phi'_2\f$ using a Taylor expansion about +\f$\phi_0\f$. This also avoids numerical errors that arise from +subtracting nearly equal quantities when using the equation for +\f$\phi'\f$ directly. Write \f$\Delta \phi = \phi - \phi_0\f$ and +\f$\Delta \phi' = \phi' - \phi'_0\f$; then we have +\f[ +\Delta\phi' \approx +\frac{\Delta\phi}B \biggl[1 + +\frac{\Delta\phi}{B^2}\frac{e'^2}2 + \biggl(3\sin\phi_0\cos\phi_0 + + \frac{\Delta\phi}{B^2} + \bigl(B^2 - \sin^2\phi_0(2 - 3 e'^2 \cos^2\phi_0)\bigr)\biggr)\biggr], +\f] +where the error is \f$O(f\Delta\phi^4)\f$. +This is essentially Bowring's method. Significant differences between +this result, "Bowring (improved)", compared to Bowring's paper, "Bowring +(original)", are: + - Bowring elects to use \f$\phi_0 = \phi_1\f$. This simplifies the + calculations somewhat but increases the error by about a factor of + 4. + - Bowring's expression for \f$ \Delta\phi' \f$ is only accurate in the + limit \f$ e' \rightarrow 0 \f$. + . +In fact, arguably, the highest order \f$O(f\Delta\phi^3)\f$ terms should +be dropped altogether. Their inclusion does result in a better estimate +for the distance. However, if your goal is to generate both accurate +distances \e and accurate azimuths, then \f$\Delta\phi\f$ needs to be +restricted sufficiently to allow these terms to be dropped to give the +"Bowring (truncated)" method. + +With highly eccentric ellipsoids, the parametric latitude \f$ \beta \f$ +is a better behaved independent variable to use. In this case, \f$ +\phi_0 \f$ is naturally defined using \f$\beta_0 = (\beta_1 + +\beta_2)/2\f$ and in terms of \f$\Delta\beta = \beta - \beta_0\f$, we +have +\f[ +\Delta\phi' \approx +\frac{\Delta\beta}{B'} \biggl[1 + +\frac{\Delta\beta}{B'^2}\frac{e'^2}2 + \biggl(\sin\beta_0\cos\beta_0 + + \frac{\Delta\beta}{3B'^2} + \bigl( \cos^2\beta_0 - \sin^2\beta_0 B'^2\bigr) +\biggr)\biggr], +\f] +where \f$B' = \sqrt{1+e'^2\sin^2\beta_0} = \sqrt{1+e'^2}/B\f$, and the +error once again is \f$O(f\Delta\phi^4)\f$. This is the "Bowring +(using \f$\beta\f$)" method. + +\subsection auxsphere Bessel's auxiliary sphere + +%GeographicLib's uses the auxiliary sphere method of Legendre, Bessel, +and Helmert. For short geodesics, this is equivalent to picking +\f$ R, A, K \f$ so that +\f[ +m(\phi_0) = 1,\quad +\left.\frac{dm(\phi)}{d\phi}\right|_{\phi=\phi_0} = 0,\quad +\tan\phi'_0 = (1 - f) \tan\phi_0. +\f] +Bowring's requirement that the second derivative of \f$m\f$ vanish has +been replaced by the last relation which states that \f$\phi'_0 = +\beta_0\f$, the parametric latitude corresponding to \f$\phi_0\f$. This +gives +\f[ +\begin{aligned} +R &= B'(1-f)a, \\ +A &= \frac1{B'(1-f)}, \\ +\left.\frac{d^2m(\phi)}{d\phi^2}\right|_{\phi=\phi_0} &= +-e^2B'^2\sin^2\phi_0. +\end{aligned} +\f] + +Similar to Bowring's method, we can compute \f$\phi'_1\f$ and +\f$\phi'_2\f$ using a Taylor expansion about \f$\beta_0\f$. This results +in the simple expression +\f[ +\Delta\phi' \approx \Delta\beta, +\f] +where the error is \f$O(f\Delta\beta^2)\f$. + +\subsection shorterr Estimating the accuracy + +In assessing the accuracy of these methods we use two metrics: + - The absolute error in the distance. + - The consistency of the predicted azimuths. Imagine starting + ellipsoidal geodesics at \f$ (\phi_1, \lambda_1) \f$ and \f$ (\phi_2, + \lambda_2) \f$ with the predicted azimuths. What is the distance + between them when they are extended a distance \f$ a \f$ beyond the + second point? + . +(The second metric is much more stringent.) We may now compare the +methods by asking for a bound to the length of a geodesic which ensures +that the one or other of the errors fall below 1 mm (an "engineering" +definition of accurate) or 1 nm (1 nanometer, about the round-off +limit). + +
+ + + + + + + + + + + + + + + +
Maximum distance that can be used in various methods for +computing short geodesics while keeping the errors within prescribed +bounds
method +
distance metric
azimuth metric
1 mm error1 nm error1 mm error1 nm error
Bowring (original) +
87 km
+
870 m
+
35 km
+
350 m
+
Bowring (improved) +
180 km
+
1.8 km
+
58 km
+
580 m
+
Bowring (truncated) +
52 km
+
520 m
+
52 km
+
520 m
+
Bowring (using \f$\beta\f$) +
380 km
+
24 km
+
60 km
+
600 m
+
Bessel's aux. sphere +
42 km
+
420 m
+
1.7 km
+
1.7 m
+
+
+ +For example, if you're only interested in measuring distances and an +accuracy of 1 mm is sufficient, then Bowring's improved method can be +used for distances up to 180 km. On the other hand, %GeographicLib uses +Bessel's auxiliary sphere and we require both the distance and the +azimuth to be accurate, so the great circle approximation can only be +used for distances less than 1.7 m. The reason that %GeographicLib does +not use Bowring's method is that the information necessary for auxiliary +sphere method is already available as part of the general solution and, +as much as possible, we allow all geodesics to be computed by the +general method. + +
+Back to \ref magnetic. Forward to \ref triaxial. Up to \ref contents. +
+**********************************************************************/ +/** +\page triaxial Geodesics on a triaxial ellipsoid + +
+Back to \ref geodesic. Forward to \ref transversemercator. Up to +\ref contents. +
+ +Jacobi (1839) showed that the problem of geodesics on a triaxial +ellipsoid (with 3 unequal axes) can be reduced to quadrature. Despite +this, the detailed behavior of the geodesics is not very well known. In +this section, I briefly give Jacobi's solution and illustrate the +behavior of the geodesics and outline an algorithm for the solution of +the inverse problem. + +See also + - The wikipedia page, + + Geodesics on a triaxial ellipsoid. + +Go to + - \ref triaxial-coords + - \ref triaxial-jacobi + - \ref triaxial-survey + - \ref triaxial-stab + - \ref triaxial-inverse + +NOTES + -# A triaxial ellipsoid approximates the earth only slightly better + than an ellipsoid of revolution. If you are really considering + measuring distances on the earth using a triaxial ellipsoid, you + should also be worrying about the shape of the geoid, which + essentially makes the geodesic problem a hopeless mess; see, for + example, Waters + (2011). + -# There is nothing new in this section. It is just an exercise in + exploring Jacobi's solution. My interest here is in generating long + geodesics with the correct long-time behavior. Arnold gives a + nice qualitative description of the solution in Mathematical + Methods of Classical Mechanics (2nd edition, Springer, 1989), + pp. 264--266. + -# Possible reasons this problem might, nevertheless, be of interest + are: + - It is the first example of a dynamical system which has a + non-trivial constant of motion. As such, Jacobi's paper generated + a lot of excitement and was followed by many papers elaborating + his solution. In particular, the unstable behavior of one of the + closed geodesics of the ellipsoid, is an early example of a system + with a positive Lyapunov exponent (one of the essential + ingredients for chaotic behavior in dynamical systems). + - Knowledge of ellipsoidal coordinates (used by Jacobi) might be + useful in other areas of geodesy. + - Geodesics which pass through the pole on an ellipsoid of revolution + represent a degenerate class (they are all closed and all pass + through the opposite pole). It is of interest to see how this + degeneracy is broken with a surface with a more general shape. + -# My interest in this problem was piqued by Jean-Marc Baillard. I put + him onto Jacobi's solution without having looked at it in detail + myself; and he quickly implemented the solution for an HP-41 + calculator(!) which is posted + here. + -# I do not give full citations of the papers here. You can find these + in the + + Online Geodesic Bibliography; this includes links to online + versions of the papers. + -# An alternative to exploring geodesics using Jacobi's solution is to + integrate the equations for the geodesics directly. This is the + approach taken by + + Oliver Knill and Michael Teodorescu. However it is difficult to + ensure that the long time behavior is correctly modeled with such an + approach. + -# At this point, I have no plans to add the solution of triaxial + geodesic problem to %GeographicLib. + -# If you only want to learn about geodesics on a biaxial ellipsoid (an + ellipsoid of revolution), then see \ref geodesic or the paper + - C. F. F. Karney, + + Algorithms for geodesics, + J. Geodesy 87(1), 43--55 (Jan. 2013); + DOI: + 10.1007/s00190-012-0578-z; + addenda: + geod-addenda.html. + +\section triaxial-coords Triaxial coordinate systems + +Consider the ellipsoid defined by +\f[ + f = \frac{x^2}{a^2} + \frac{y^2}{b^2} + \frac{z^2}{c^2} = 1, +\f] +where, without loss of generality, \f$ a \ge b \ge c \gt 0\f$. A +point on the surface is specified by a latitude and longitude. The \e +geographical latitude and longitude \f$(\phi, \lambda)\f$ are defined by +\f[ + \frac{\nabla f}{\left| \nabla f\right|} = \left( +\begin{array}{c} \cos\phi \cos\lambda \\ \cos\phi \sin\lambda \\ \sin\phi +\end{array}\right). +\f] +The \e parametric latitude and longitude \f$(\phi', \lambda')\f$ are +defined by +\f[ +\begin{aligned} + x &= a \cos\phi' \cos\lambda', \\ + y &= b \cos\phi' \sin\lambda', \\ + z &= c \sin\phi'. +\end{aligned} +\f] +Jacobi employed the \e ellipsoidal latitude and longitude \f$(\beta, +\omega)\f$ defined by +\f[ +\begin{aligned} + x &= a \cos\omega + \frac{\sqrt{a^2 - b^2\sin^2\beta - c^2\cos^2\beta}} + {\sqrt{a^2 - c^2}}, \\ + y &= b \cos\beta \sin\omega, \\ + z &= c \sin\beta + \frac{\sqrt{a^2\sin^2\omega + b^2\cos^2\omega - c^2}} + {\sqrt{a^2 - c^2}}. +\end{aligned} +\f] +Grid lines of constant \f$\beta\f$ and \f$\omega\f$ are given in Fig. 1. + +
+Geodesic grid on a triaxial ellipsoid +Fig. 1 +
\n +Fig. 1: +The ellipsoidal grid. The blue (resp. green) lines are lines of constant +\f$\beta\f$ (resp. \f$\omega\f$); the grid spacing is 10°. Also +shown in red are two of the principal sections of the ellipsoid, defined +by \f$x = 0\f$ and \f$z = 0\f$. The third principal section, \f$y = +0\f$, is covered by the lines \f$\beta = \pm 90^\circ\f$ and \f$\omega = +90^\circ \pm 90^\circ\f$. These lines meet at four umbilical points (two +of which are visible in this figure) where the principal radii of +curvature are equal. The parameters of the ellipsoid are \f$a = +1.01\f$, \f$b = 1\f$, \f$c = 0.8\f$, and it is viewed in an orthographic +projection from a point above \f$\phi = 40^\circ\f$, \f$\lambda = +30^\circ\f$. These parameters were chosen to accentuate the ellipsoidal +effects on geodesics (relative to those on the earth) while still +allowing the connection to an ellipsoid of revolution to be made. + +The grid lines of the ellipsoid coordinates are "lines of curvature" on +the ellipsoid, i.e., they are parallel to the direction of principal +curvature (Monge, 1796). They are also intersections of the ellipsoid +with confocal systems of hyperboloids of one and two sheets (Dupin, +1813). Finally they are geodesic ellipses and hyperbolas defined using +two adjacent umbilical points. For example, the lines of constant +\f$\beta\f$ in Fig. 1 can be generated with the familiar string +construction for ellipses with the ends of the string pinned to the two +umbilical points. + +Inter-conversions between these three latitudes and longitudes and the +cartesian coordinates are simple algebraic exercises. + +\section triaxial-jacobi Jacobi's solution + +Solving the geodesic problem for an ellipsoid of revolution is, from the +mathematical point of view, trivial; because of symmetry, geodesics have +a constant of the motion (analogous to the angular momentum) which was +found by Clairaut (1733). By 1806 (with the work of Legendre, Oriani, +et al.), there was a complete understanding of the qualitative behavior +of geodesics on an ellipsoid of revolution. + +On the other hand, geodesics on a triaxial ellipsoid have no obvious +constant of the motion and thus represented a challenging "unsolved" +problem in the first half of the nineteenth century. Jacobi discovered +that the geodesic equations are separable if they are expressed in +ellipsoidal coordinates. You can get an idea of the importance Jacobi +attached to his discovery from the + +letter he wrote to his friend and neighbor Bessel: +
The day before yesterday, I reduced to quadrature the +problem of geodesic lines on an ellipsoid with three unequal +axes. They are the simplest formulas in the world, Abelian +integrals, which become the well known elliptic integrals if 2 axes are +set equal.\n +Königsberg, 28th Dec. '38. +
+ +On the same day he wrote a similar letter to the editor of Compte Rendus +and his result was published in J. Crelle in (1839) with a French +translation (from German) appearing in J. Liouville in (1841). + +Here is the solution, exactly as given by Jacobi + here +(with minor changes in notation): +\f[ +\begin{aligned} +\delta &= \int \frac +{\sqrt{b^2\sin^2\beta + c^2\cos^2\beta}\,d\beta} +{\sqrt{a^2 - b^2\sin^2\beta - c^2\cos^2\beta} + \sqrt{(b^2-c^2)\cos^2\beta - \gamma}}\\ +&\quad - +\int \frac +{\sqrt{a^2\sin^2\omega + b^2\cos^2\omega}\,d\omega} +{\sqrt{a^2\sin^2\omega + b^2\cos^2\omega - c^2} + \sqrt{(a^2-b^2)\sin^2\omega + \gamma}} +\end{aligned} +\f] +As Jacobi notes "a function of the angle \f$\beta\f$ equals a +function of the angle \f$\omega\f$. These two functions are just +Abelian integrals..." Two constants \f$\delta\f$ and \f$\gamma\f$ +appear in the solution. Typically \f$\delta\f$ is zero if the lower +limits of the integrals are taken to be the starting point of the geodesic +and the direction of the geodesics is determined by \f$\gamma\f$. +However for geodesics that start at an umbilical points, we have \f$\gamma += 0\f$ and \f$\delta\f$ determines the direction at the umbilical point. +Incidentally the constant \f$\gamma\f$ may be expressed as +\f[ +\gamma = (b^2-c^2)\cos^2\beta\sin^2\alpha-(a^2-b^2)\sin^2\omega\cos^2\alpha +\f] +where \f$\alpha\f$ is the angle the geodesic makes with lines of +constant \f$\omega\f$. In the limit \f$a\rightarrow b\f$, this reduces +to \f$\cos\beta\sin\alpha = \text{const.}\f$, the familiar Clairaut +relation. A nice derivation of Jacobi's result is given by Darboux +(1894) +§§583--584 where he gives the solution found by Liouville +(1846) for general quadratic surfaces. In this formulation, the +distance along the geodesic, \f$s\f$, is also found using +\f[ +\begin{aligned} +\frac{ds}{(b^2-c^2)\cos^2\beta + (a^2-b^2)\sin^2\omega} +&= \frac +{\sqrt{b^2\sin^2\beta + c^2\cos^2\beta}\,d\beta} +{\sqrt{a^2 - b^2\sin^2\beta - c^2\cos^2\beta} + \sqrt{(b^2-c^2)\cos^2\beta - \gamma}}\\ +&= \frac +{\sqrt{a^2\sin^2\omega + b^2\cos^2\omega}\,d\omega} +{\sqrt{a^2\sin^2\omega + b^2\cos^2\omega - c^2} + \sqrt{(a^2-b^2)\sin^2\omega + \gamma}} +\end{aligned} +\f] +An alternative expression for the distance is +\f[ +\begin{aligned} +ds +&= \frac +{\sqrt{b^2\sin^2\beta + c^2\cos^2\beta} + \sqrt{(b^2-c^2)\cos^2\beta - \gamma}\,d\beta} +{\sqrt{a^2 - b^2\sin^2\beta - c^2\cos^2\beta}}\\ +&\quad {}+ \frac +{\sqrt{a^2\sin^2\omega + b^2\cos^2\omega} + \sqrt{(a^2-b^2)\sin^2\omega + \gamma}\,d\omega} +{\sqrt{a^2\sin^2\omega + b^2\cos^2\omega - c^2}} +\end{aligned} +\f] + +Jacobi's solution is a convenient way to compute geodesics on an +ellipsoid. Care must be taken with the signs of the square roots (which +are determined by the initial azimuth of the geodesic). Also if +\f$\gamma \gt 0\f$ (resp. \f$\gamma \lt 0\f$), then the \f$\beta\f$ +(resp. \f$\omega\f$) integrand diverges. The integrand can be +transformed into a finite one by a change of variable, e.g., +\f$\sin\beta = \sin\sigma \sqrt{1 - \gamma/(b^2-c^2)}\f$. The resulting +integrals are periodic, so the behavior of an arbitrarily long geodesic +is entirely captured by tabulating the integrals over a single period. + +The situation is more complicated if \f$\gamma = 0\f$ (corresponding to +umbilical geodesics). Both integrands have simple poles at the umbilical +points. However, this behavior may be subtracted from the integrands to +yield (for example) the sum of a term involving +\f$\tanh^{-1}\sin\beta\f$ and a finite integral. Since both integrals +contain similar logarithmic singularities they can be equated (thus +fixing the ratio \f$\cos\beta/\sin\omega\f$ at the umbilical point) and +connection formulas can be found which allow the geodesic to be followed +through the umbilical point. The study of umbilical geodesics was of +special interest to a group of Irish mathematicians in the 1840's and +1850's, including Michael and William Roberts (twins!), Hart, Graves, +and Salmon. + +\section triaxial-survey Survey of triaxial geodesics + +Before delving into the nature of geodesics on a triaxial geodesic, it +is worth reviewing geodesics on an ellipsoid of revolution. There are +two classes of simple closed geodesics (i.e., geodesics which close on +themselves without intersection): the equator and all the meridians. +All other geodesics oscillate between two equal and opposite circles of +latitude; but after completing a full oscillation in latitude these fall +slightly short (for an oblate ellipsoid) of completing a full circuit in +longitude. + +Turning to the triaxial case, we find that there are only 3 simple +closed geodesics, the three principal sections of the ellipsoid given by +\f$x = 0\f$, \f$y = 0\f$, and \f$z = 0\f$. To survey the other +geodesics, it is convenient to consider geodesics which intersect the +middle principal section, \f$y = 0\f$, at right angles. Such geodesics +are shown in Figs. 2--6, where I use the same ellipsoid parameters as in +Fig. 1 and the same viewing direction. In addition, the three principal +ellipses are shown in red in each of these figures. + +If the starting point is \f$\beta_1 \in (-90^\circ, 90^\circ)\f$, +\f$\omega_1 = 0\f$, and \f$\alpha_1 = 90^\circ\f$, then the geodesic +encircles the ellipsoid in a "circumpolar" sense. The geodesic +oscillates north and south of the equator; on each oscillation it +completes slightly less that a full circuit around the ellipsoid +resulting in the geodesic filling the area bounded by the two latitude +lines \f$\beta = \pm \beta_1\f$. Two examples are given in +Figs. 2 and 3. Figure 2 shows practically the same behavior as for an +oblate ellipsoid of revolution (because \f$a \approx b\f$). However, if +the starting point is at a higher latitude (Fig. 3) the distortions +resulting from \f$a \ne b\f$ are evident. + +
+Example of a circumpolar geodesic on a
+triaxial ellipsoid +Fig. 2 +
\n +Fig. 2: +Example of a circumpolar geodesic on a triaxial ellipsoid. The starting +point of this geodesic is \f$\beta_1 = 45.1^\circ\f$, \f$\omega_1 = +0^\circ\f$, and \f$\alpha_1 = 90^\circ\f$. + +
+Another example of a circumpolar geodesic on a
+triaxial ellipsoid +Fig. 3 +
\n +Fig. 3: +Another example of a circumpolar geodesic on a triaxial ellipsoid. The +starting point of this geodesic is \f$\beta_1 = 87.48^\circ\f$, \f$\omega_1 = +0^\circ\f$, and \f$\alpha_1 = 90^\circ\f$. + +If the starting point is \f$\beta_1 = 90^\circ\f$, \f$\omega_1 \in +(0^\circ, 180^\circ)\f$, and \f$\alpha_1 = 0^\circ\f$, then the geodesic +encircles the ellipsoid in a "transpolar" sense. The geodesic +oscillates east and west of the ellipse \f$x = 0\f$; on each oscillation +it completes slightly more that a full circuit around the ellipsoid +resulting in the geodesic filling the area bounded by the two longitude +lines \f$\omega = \omega_1\f$ and \f$\omega = 180^\circ - \omega_1\f$. +If \f$a = b\f$, all meridians are geodesics; the effect of \f$a \ne b\f$ +causes such geodesics to oscillate east and west. Two examples are +given in Figs. 4 and 5. + +
+Example of a transpolar geodesic on a
+triaxial ellipsoid +Fig. 4 +
\n +Fig. 4: +Example of a transpolar geodesic on a triaxial ellipsoid. The +starting point of this geodesic is \f$\beta_1 = 90^\circ\f$, \f$\omega_1 = +39.9^\circ\f$, and \f$\alpha_1 = 0^\circ\f$. + +
+Another example of a transpolar geodesic on a
+triaxial ellipsoid +Fig. 5 +
\n +Fig. 5: +Another example of a transpolar geodesic on a triaxial ellipsoid. The +starting point of this geodesic is \f$\beta_1 = 90^\circ\f$, \f$\omega_1 = +9.966^\circ\f$, and \f$\alpha_1 = 0^\circ\f$. + +If the starting point is \f$\beta_1 = 90^\circ\f$, \f$\omega_1 = +0^\circ\f$ (an umbilical point), and \f$\alpha_1 = 45^\circ\f$ (the +geodesic leaves the ellipse \f$y = 0\f$ at right angles), then the +geodesic repeatedly intersects the opposite umbilical point and returns to +its starting point. However on each circuit the angle at which it +intersects \f$y = 0\f$ becomes closer to \f$0^\circ\f$ or +\f$180^\circ\f$ so that asymptotically the geodesic lies on the ellipse +\f$y = 0\f$. This is shown in Fig. 6. Note that a single geodesic does +not fill an area on the ellipsoid. + +
+Example of an umbilical geodesic on a
+triaxial ellipsoid +Fig. 6 +
\n +Fig. 6: +Example of an umbilical geodesic on a triaxial ellipsoid. The +starting point of this geodesic is \f$\beta_1 = 90^\circ\f$, \f$\omega_1 = +0^\circ\f$, and \f$\alpha_1 = 45^\circ\f$ and the geodesics is followed +forwards and backwards until it lies close to the plane \f$y = 0\f$ in +both directions. + +Umbilical geodesic enjoy several interesting properties. + - Through any point on the ellipsoid, there are two umbilical geodesics. + - The geodesic distance between opposite umbilical points is the same + regardless of the initial direction of the geodesic. + - Whereas the closed geodesics on the ellipses \f$x = 0\f$ and \f$z = + 0\f$ are stable (an geodesic initially close to and nearly parallel to + the ellipse remains close to the ellipse), the closed geodesic on the + ellipse \f$y = 0\f$, which goes through all 4 umbilical points, is \e + unstable. If it is perturbed, it will swing out of the plane \f$y = + 0\f$ and flip around before returning to close to the plane. (This + behavior may repeat depending on the nature of the initial + perturbation.). + +\section triaxial-stab The stability of closed geodesics + +The stability of the three simple closed geodesics can be determined by +examining the properties of Jacobi's solution. In particular the +unstable behavior of umbilical geodesics was shown by Hart (1849). +However an alternative approach is to use the equations that Gauss +(1828) gives for a perturbed geodesic +\f[ +\frac {d^2m}{ds^2} + Km = 0 +\f] +where \f$m\f$ is the distance of perturbed geodesic from a reference +geodesic and \f$K\f$ is the Gaussian curvature of the surface. If the +reference geodesic is closed, then this is a linear homogeneous +differential equation with periodic coefficients. In fact it's a +special case of Hill's equation which can be treated using Floquet +theory, see DLMF, §28.29. +Using the notation of §3 of + Algorithms for +geodesics, the stability is determined by computing the reduced +length \f$m_{12}\f$ and the geodesic scales \f$M_{12}, M_{21}\f$ over +half the perimeter of the ellipse and determining the eigenvalues +\f$\lambda_{1,2}\f$ of +\f[ +{\cal M} = \left(\begin{array}{cc} +M_{12} & m_{12}\\ +-\frac{1 - M_{12}M_{21}}{m_{12}} & M_{21} +\end{array}\right). +\f] +Because \f$\mathrm{det}\,{\cal M} = 1\f$, the eigenvalues are determined +by \f$\mathrm{tr}\,{\cal M}\f$. In particular if +\f$\left|\mathrm{tr}\,{\cal M}\right| < 2\f$, we have +\f$\left|\lambda_{1,2}\right| = 1\f$ and the solution is stable; if +\f$\left|\mathrm{tr}\,{\cal M}\right| > 2\f$, one of +\f$\left|\lambda_{1,2}\right|\f$ is larger than unity and the solution +is (exponentially) unstable. In the transition case, +\f$\left|\mathrm{tr}\,{\cal M}\right| = 2\f$, the solution is stable +provided that the off-diagonal elements of \f${\cal M}\f$ are zero; +otherwise the solution is linearly unstable. + +The exponential instability of the geodesic on the ellipse \f$y = 0\f$ +is confirmed by this analysis and results from the resonance between the +natural frequency of the equation for \f$m\f$ and the driving frequency +when \f$b\f$ lies in \f$(c, a)\f$. If \f$b\f$ is equal to either of the +other axes (and the triaxial ellipsoid degenerates to an ellipsoid of +revolution), then the solution is linearly unstable. (For example, a +geodesic is which is close to a meridian on an oblate ellipsoid, slowly +moves away from that meridian.) + +\section triaxial-inverse The inverse problem + +In order to solve the inverse geodesic problem, it helps to have an +understanding of the properties of all the geodesics emanating from a +single point \f$(\beta_1, \omega_1)\f$. + - If the point is an umbilical point, all the lines meet at the + opposite umbilical point. + - Otherwise, the first envelope of the geodesics is a 4-pointed + astroid. The cusps of the astroid lie on either \f$\beta = - + \beta_1\f$ or \f$\omega = \omega_1 + \pi\f$; see + Sinclair + (2003). + - All geodesics intersect (or, in the case of \f$\alpha_1 = 0\f$ or + \f$\pi\f$, touch) the line \f$\omega = \omega_1 + \pi\f$. + - All geodesics intersect (or, in the case of \f$\alpha_1 = + \pm\pi/2\f$, touch) the line \f$\beta = -\beta_1\f$. + - Two geodesics with azimuths \f$\pm\alpha_1\f$ first intersect on + \f$\omega = \omega_1 + \pi\f$ and their lengths to the point of + intersection are equal. + - Two geodesics with azimuths \f$\alpha_1\f$ and \f$\pi-\alpha_1\f$ + first intersect on \f$\beta = -\beta_1\f$ and their lengths to the + point of intersection are equal. + . +(These assertions follow directly from the equations for the geodesics; +some of them are somewhat surprising given the asymmetries of the +ellipsoid.) Consider now terminating the geodesics from \f$(\beta_1, +\omega_1)\f$ at the point where they first intersect (or touch) the line +\f$\beta = -\beta_1\f$. To focus the discussion, take \f$\beta_1 \le +0\f$. + - The geodesics completely fill the portion of the ellipsoid satisfying + \f$\beta \le -\beta_1\f$. + - None of geodesics intersect any other geodesics. + - Any initial portion of these geodesics is a shortest path. + - Each geodesic intersects the line \f$\beta = \beta_2\f$, where + \f$\beta_1 < \beta_2 < -\beta_1\f$, exactly once. + - For a given \f$\beta_2\f$, this defines a continuous monotonic + mapping of the circle of azimuths \f$\alpha_1\f$ to the circle of + longitudes \f$\omega_2\f$. + - If \f$\beta_2 = \pm \beta_1\f$, then the previous two assertions need + to be modified similarly to the case for an ellipsoid of revolution. + +These properties show that the inverse problem can be solved using +techniques similar to those employed for an ellipsoid of revolution (see +§4 of + Algorithms for +geodesics). + - If the points are opposite umbilical points, an arbitrary + \f$\alpha_1\f$ may be chosen. + - If the points are neighboring umbilical points, the shortest path + lies on the ellipse \f$y = 0\f$. + - If only one point is an umbilicial point, the azimuth at the + non-umbilical point is found using the generalization of Clairaut's + equation (given above) with \f$\gamma = 0\f$. + - If both points lie on the equator \f$\beta = 0\f$, then determine the + reduced length \f$m_{12}\f$ for the geodesic which is the shorter + path along the ellipse \f$z = 0\f$. If \f$m_{12} \ge 0\f$, then this + is the shortest path on the ellipsoid; otherwise proceed to the + general case (next). + - Swap the points, if necessary, so that the first point is the one + closest to a pole. Estimate \f$\alpha_1\f$ (by some means) and solve + the \e hybrid problem, i.e., determine the longitude \f$\omega_2\f$ + corresponding to the first intersection of the geodesic with \f$\beta + = \beta_2\f$. Adjust \f$\alpha_1\f$ so that the value of + \f$\omega_2\f$ matches the given \f$\omega_2\f$ (there is a single + root). If a sufficiently close solution can be found, Newton's + method can be employed since the necessary derivative can be + expressed in terms of the reduced length \f$m_{12}\f$. + +The shortest path found by this method is unique unless: + - The length of the geodesic vanishes \f$s_{12}=0\f$, in which case any + constant can be added to the azimuths. + - The points are opposite umbilical points. In this case, + \f$\alpha_1\f$ can take on any value and \f$\alpha_2\f$ needs to be + adjusted to maintain the value of \f$\tan\alpha_1 / \tan\alpha_2\f$. + - \f$\beta_1 + \beta_2 = 0\f$ and \f$\cos\alpha_1\f$ and + \f$\cos\alpha_2\f$ have opposite signs. In this case, there another + shortest geodesic with azimuths \f$\pi - \alpha_1\f$ and + \f$\pi - \alpha_2\f$. + +
+Back to \ref geodesic. Forward to \ref transversemercator. Up to +\ref contents. +
+**********************************************************************/ +/** +\page transversemercator Transverse Mercator projection + +
+Back to \ref triaxial. Forward to \ref geocentric. Up to \ref contents. +
+ +GeographicLib::TransverseMercator and +GeographicLib::TransverseMercatorExact provide accurate implementations +of the transverse Mercator projection. The + TransverseMercatorProj +utility provides an interface to these classes. + +Go to + - \ref testmerc + - \ref tmseries + - \ref tmfigures + +References + - L. Krüger, + Konforme + Abbildung des Erdellipsoids in der Ebene (Conformal mapping of + the ellipsoidal earth to the plane), Royal Prussian Geodetic Institute, + New Series 52, 172 pp. (1912). + - L. P. Lee, + Conformal Projections Based on Elliptic Functions, + (B. V. Gutsell, Toronto, 1976), 128pp., + ISBN: 0919870163 + (Also appeared as: + Monograph 16, Suppl. No. 1 to Canadian Cartographer, Vol 13). + Part V, pp. 67--101, + Conformal + Projections Based On Jacobian Elliptic Functions. + - C. F. F. Karney, + + Transverse Mercator with an accuracy of a few nanometers, + J. Geodesy 85(8), 475--485 (Aug. 2011); + preprint: + arXiv:1002.1417; + resource page: + tm.html. + . +The algorithm for GeographicLib::TransverseMercator is based on +Krüger (1912); that for GeographicLib::TransverseMercatorExact is +based on Lee (1976). + +See tm-grid.kmz, for an +illustration of the exact transverse Mercator grid in Google Earth. + +\section testmerc Test data for the transverse Mercator projection + +A test set for the transverse Mercator projection is available at + - + TMcoords.dat.gz + . +This is about 17 MB (compressed). This test set consists of a set of +geographic coordinates together with the corresponding transverse +Mercator coordinates. The WGS84 ellipsoid is used, with central +meridian 0°, central scale factor 0.9996 (the UTM value), +false easting = false northing = 0 m. + +Each line of the test set gives 6 space delimited numbers + - latitude (degrees, exact) + - longitude (degrees, exact — see below) + - easting (meters, accurate to 0.1 pm) + - northing (meters, accurate to 0.1 pm) + - meridian convergence (degrees, accurate to 10−18 deg) + - scale (accurate to 10−20) + . +The latitude and longitude are all multiples of 10−12 +deg and should be regarded as exact, except that longitude = +82.63627282416406551 should be interpreted as exactly 90 (1 - \e e) +degrees. These results are computed using Lee's formulas with +Maxima's +bfloats and fpprec set to 80 (so the errors in the data are probably 1/2 +of the values quoted above). The Maxima code, +tm.mac and ellint.mac, +was used to prepare this data set is included in the distribution; you +will need to have Maxima installed to use this code. The comments at +the top of tm.mac illustrate how to run it. + +The contents of the file are as follows: + - 250000 entries randomly distributed in lat in [0°, 90°], lon + in [0°, 90°]; + - 1000 entries randomly distributed on lat in [0°, 90°], lon = + 0°; + - 1000 entries randomly distributed on lat = 0°, lon in [0°, + 90°]; + - 1000 entries randomly distributed on lat in [0°, 90°], lon = + 90°; + - 1000 entries close to lat = 90° with lon in [0°, 90°]; + - 1000 entries close to lat = 0°, lon = 0° with lat ≥ + 0°, lon ≥ 0°; + - 1000 entries close to lat = 0°, lon = 90° with lat ≥ + 0°, lon ≤ 90°; + - 2000 entries close to lat = 0°, lon = 90° (1 − \e e) + with lat ≥ 0°; + - 25000 entries randomly distributed in lat in [−89°, + 0°], lon in [90° (1 − \e e), 90°]; + - 1000 entries randomly distributed on lat in [−89°, 0°], + lon = 90°; + - 1000 entries randomly distributed on lat in [−89°, 0°], + lon = 90° (1 − \e e); + - 1000 entries close to lat = 0°, lon = 90° (lat < 0°, lon + ≤ 90°); + - 1000 entries close to lat = 0°, lon = 90° (1 − \e e) + (lat < 0°, lon ≤ 90° (1 − \e e)); + . +(a total of 287000 entries). The entries for lat < 0° and +lon in [90° (1 − \e e), 90°] use the "extended" +domain for the transverse Mercator projection explained in Sec. 5 of +arXiv:1002.1417. The first +258000 entries have lat ≥ 0° and are suitable for testing +implementations following the standard convention. + +\section tmseries Series approximation for transverse Mercator + +Krüger (1912) gives a 4th-order approximation to the transverse +Mercator projection. This is accurate to about 200 nm (200 +nanometers) within the UTM domain. Here we present the series +extended to 10th order. By default, GeographicLib::TransverseMercator +uses the 6th-order approximation. The preprocessor macro +GEOGRAPHICLIB_TRANSVERSEMERCATOR_ORDER can be used to select an order +from 4 thru 8. The series expanded to order n30 are +given in tmseries30.html. + +In the formulas below ^ indicates exponentiation (\e n^3 = \e n*\e n*\e +n) and / indicates real division (3/5 = 0.6). The equations need to be +converted to Horner form, but are here left in expanded form so that +they can be easily truncated to lower order in \e n. Some of the +integers here are not representable as 32-bit integers and will need to +be included as double literals. + +\e A in Krüger, p. 12, eq. (5) +\verbatim + A = a/(n + 1) * (1 + 1/4 * n^2 + + 1/64 * n^4 + + 1/256 * n^6 + + 25/16384 * n^8 + + 49/65536 * n^10); +\endverbatim + +γ in Krüger, p. 21, eq. (41) +\verbatim +alpha[1] = 1/2 * n + - 2/3 * n^2 + + 5/16 * n^3 + + 41/180 * n^4 + - 127/288 * n^5 + + 7891/37800 * n^6 + + 72161/387072 * n^7 + - 18975107/50803200 * n^8 + + 60193001/290304000 * n^9 + + 134592031/1026432000 * n^10; +alpha[2] = 13/48 * n^2 + - 3/5 * n^3 + + 557/1440 * n^4 + + 281/630 * n^5 + - 1983433/1935360 * n^6 + + 13769/28800 * n^7 + + 148003883/174182400 * n^8 + - 705286231/465696000 * n^9 + + 1703267974087/3218890752000 * n^10; +alpha[3] = 61/240 * n^3 + - 103/140 * n^4 + + 15061/26880 * n^5 + + 167603/181440 * n^6 + - 67102379/29030400 * n^7 + + 79682431/79833600 * n^8 + + 6304945039/2128896000 * n^9 + - 6601904925257/1307674368000 * n^10; +alpha[4] = 49561/161280 * n^4 + - 179/168 * n^5 + + 6601661/7257600 * n^6 + + 97445/49896 * n^7 + - 40176129013/7664025600 * n^8 + + 138471097/66528000 * n^9 + + 48087451385201/5230697472000 * n^10; +alpha[5] = 34729/80640 * n^5 + - 3418889/1995840 * n^6 + + 14644087/9123840 * n^7 + + 2605413599/622702080 * n^8 + - 31015475399/2583060480 * n^9 + + 5820486440369/1307674368000 * n^10; +alpha[6] = 212378941/319334400 * n^6 + - 30705481/10378368 * n^7 + + 175214326799/58118860800 * n^8 + + 870492877/96096000 * n^9 + - 1328004581729009/47823519744000 * n^10; +alpha[7] = 1522256789/1383782400 * n^7 + - 16759934899/3113510400 * n^8 + + 1315149374443/221405184000 * n^9 + + 71809987837451/3629463552000 * n^10; +alpha[8] = 1424729850961/743921418240 * n^8 + - 256783708069/25204608000 * n^9 + + 2468749292989891/203249958912000 * n^10; +alpha[9] = 21091646195357/6080126976000 * n^9 + - 67196182138355857/3379030566912000 * n^10; +alpha[10]= 77911515623232821/12014330904576000 * n^10; +\endverbatim + +β in Krüger, p. 18, eq. (26*) +\verbatim + beta[1] = 1/2 * n + - 2/3 * n^2 + + 37/96 * n^3 + - 1/360 * n^4 + - 81/512 * n^5 + + 96199/604800 * n^6 + - 5406467/38707200 * n^7 + + 7944359/67737600 * n^8 + - 7378753979/97542144000 * n^9 + + 25123531261/804722688000 * n^10; + beta[2] = 1/48 * n^2 + + 1/15 * n^3 + - 437/1440 * n^4 + + 46/105 * n^5 + - 1118711/3870720 * n^6 + + 51841/1209600 * n^7 + + 24749483/348364800 * n^8 + - 115295683/1397088000 * n^9 + + 5487737251099/51502252032000 * n^10; + beta[3] = 17/480 * n^3 + - 37/840 * n^4 + - 209/4480 * n^5 + + 5569/90720 * n^6 + + 9261899/58060800 * n^7 + - 6457463/17740800 * n^8 + + 2473691167/9289728000 * n^9 + - 852549456029/20922789888000 * n^10; + beta[4] = 4397/161280 * n^4 + - 11/504 * n^5 + - 830251/7257600 * n^6 + + 466511/2494800 * n^7 + + 324154477/7664025600 * n^8 + - 937932223/3891888000 * n^9 + - 89112264211/5230697472000 * n^10; + beta[5] = 4583/161280 * n^5 + - 108847/3991680 * n^6 + - 8005831/63866880 * n^7 + + 22894433/124540416 * n^8 + + 112731569449/557941063680 * n^9 + - 5391039814733/10461394944000 * n^10; + beta[6] = 20648693/638668800 * n^6 + - 16363163/518918400 * n^7 + - 2204645983/12915302400 * n^8 + + 4543317553/18162144000 * n^9 + + 54894890298749/167382319104000 * n^10; + beta[7] = 219941297/5535129600 * n^7 + - 497323811/12454041600 * n^8 + - 79431132943/332107776000 * n^9 + + 4346429528407/12703122432000 * n^10; + beta[8] = 191773887257/3719607091200 * n^8 + - 17822319343/336825216000 * n^9 + - 497155444501631/1422749712384000 * n^10; + beta[9] = 11025641854267/158083301376000 * n^9 + - 492293158444691/6758061133824000 * n^10; + beta[10]= 7028504530429621/72085985427456000 * n^10; +\endverbatim + +The high-order expansions for α and β were produced by the +Maxima program tmseries.mac (included in the +distribution). To run, start Maxima and enter +\verbatim + load("tmseries.mac")$ +\endverbatim +Further instructions are included at the top of the file. + +\section tmfigures Figures from paper on transverse Mercator projection + +This section gives color versions of the figures in + - C. F. F. Karney, + + Transverse Mercator with an accuracy of a few nanometers, + J. Geodesy 85(8), 475--485 (Aug. 2011); + preprint: + arXiv:1002.1417; + resource page: + tm.html. + +\b NOTE: +The numbering of the figures matches that in the paper cited above. The +figures in this section are relatively small in order to allow them to +be displayed quickly. Vector versions of these figures are available in + tm-figs.pdf. This allows you to magnify the +figures to show the details more clearly. + +\image html gauss-schreiber-graticule-a.png "Fig. 1(a)" +Fig. 1(a): +The graticule for the spherical transverse Mercator projection. +The equator lies on \e y = 0. +Compare this with Lee, Fig. 1 (right), which shows the graticule for +half a sphere, but note that in his notation \e x and \e y have switched +meanings. The graticule for the ellipsoid differs from that for a +sphere only in that the latitude lines have shifted slightly. (The +conformal transformation from an ellipsoid to a sphere merely relabels +the lines of latitude.) This projection places the point latitude = +0°, longitude = 90° at infinity. + +\image html gauss-krueger-graticule-a.png "Fig. 1(b)" +Fig. 1(b): +The graticule for the Gauss-Krüger transverse Mercator projection. +The equator lies on \e y = 0 for longitude < 81°; beyond +this, it arcs up to meet \e y = 1. Compare this with Lee, Fig. 45 +(upper), which shows the graticule for the International Ellipsoid. Lee, +Fig. 46, shows the graticule for the entire ellipsoid. This projection +(like the Thompson projection) projects the ellipsoid to a finite area. + +\image html thompson-tm-graticule-a.png "Fig. 1(c)" +Fig. 1(c): +The graticule for the Thompson transverse Mercator projection. The +equator lies on \e y = 0 for longitude < 81°; at longitude = +81°, it turns by 120° and heads for \e y = 1. +Compare this with Lee, Fig. 43, which shows the graticule for the +International Ellipsoid. Lee, Fig. 44, shows the graticule for the +entire ellipsoid. This projection (like the Gauss-Krüger +projection) projects the ellipsoid to a finite area. + +\image html gauss-krueger-error.png "Fig. 2" +Fig. 2: +The truncation error for the series for the Gauss-Krüger transverse +Mercator projection. The blue curves show the truncation error for the +order of the series \e J = 2 (top) thru \e J = 12 (bottom). The red +curves show the combined truncation and round-off errors for + - float and \e J = 4 (top) + - double and \e J = 6 (middle) + - long double and \e J = 8 (bottom) + +\image html gauss-krueger-graticule.png "Fig. 3(a)" +Fig. 3(a): +The graticule for the extended domain. The blue lines show +latitude and longitude at multiples of 10°. The green lines +show 1° intervals for longitude in [80°, 90°] and latitude in +[−5°, 10°]. + +\image html gauss-krueger-convergence-scale.png "Fig. 3(b)" +Fig. 3(b): +The convergence and scale for the Gauss-Krüger +transverse Mercator projection in the extended domain. The blue lines +emanating from the top left corner (the north pole) are lines of +constant convergence. Convergence = 0° is given by the +dog-legged line joining the points (0,1), (0,0), (1.71,0), +(1.71,−∞). +Convergence = 90° is given by the line y = 1. The other +lines show multiples of 10° between 0° and +90°. The other blue, the green and the black lines show +scale = 1 thru 2 at intervals of 0.1, 2 thru 15 at intervals of 1, and +15 thru 35 at intervals of 5. Multiples of 5 are shown in black, +multiples of 1 are shown in blue, and the rest are shown in green. +Scale = 1 is given by the line segment (0,0) to (0,1). The red line +shows the equator between lon = 81° and 90°. The +scale and convergence at the branch point are 1/\e e = 10 and +0°, respectively. + +\image html thompson-tm-graticule.png "Fig. 3(c)" +Fig. 3(c): +The graticule for the Thompson transverse Mercator +projection for the extended domain. The range of the projection is the +rectangular region shown + - 0 ≤ \e u ≤ K(e2), + 0 ≤ \e v ≤ K(1 − e2) + . +The coloring of the lines is the same as Fig. 3(a), except that latitude +lines extended down to −10° and a red line has been added +showing the line \e y = 0 for \e x > 1.71 in the Gauss-Krüger +projection (Fig. 3(a)). The extended Thompson projection figure has +reflection symmetry on all the four sides of Fig. 3(c). + +
+Back to \ref triaxial. Forward to \ref geocentric. Up to \ref contents. +
+**********************************************************************/ +/** +\page geocentric Geocentric coordinates + +
+Back to \ref transversemercator. Forward to \ref old. Up to \ref contents. +
+ +The implementation of GeographicLib::Geocentric::Reverse is adapted from + - H. Vermeille, + + Direct transformation from geocentric coordinates to geodetic + coordinates, J. Geodesy 76, 451--454 (2002). + +This provides a closed-form solution but can't directly be applied close to +the center of the earth. Several changes have been made to remove this +restriction and to improve the numerical accuracy. Now the method is +accurate for all inputs (even if \e h is infinite). The changes are +described in Appendix B of + - C. F. F. Karney, + Geodesics + on an ellipsoid of revolution, + Feb. 2011; preprint + arxiv:1102.1215v1. + +The problems encountered near the center of the ellipsoid are: + - There's a potential division by zero in the definition of \e s. The + equations are easily reformulated to avoid this problem. + - t3 may be negative. This is OK; we just take the + real root. + - The solution for \e t may be complex. However this leads to 3 real roots + for u/\e r. It's then just a matter of picking the one that computes + the geodetic result which minimizes |\e h| and which avoids large + round-off errors. + - Some of the equations result in a large loss of accuracy due to + subtracting nearly equal quantities. E.g., \e k= sqrt(\e u + \e v + + w2) − \e w is inaccurate if \e u + \e v is small; + we can fix this by writing \e k = (\e u + \e v)/(sqrt(\e u + \e v + + w2) + \e w). + +The error is computed as follows. Write a version of +Geocentric::WGS84.Forward which uses long doubles (including using long +doubles for the WGS84 parameters). Generate random (long double) +geodetic coordinates (\e lat0, \e lon0, \e h0) and use the "long double" +WGS84.Forward to obtain the corresponding (long double) geocentric +coordinates (\e x0, \e y0, \e z0). [We restrict \e h0 so that +\e h0 ≥ − \e a (1 − e2) / sqrt(1 − +e2 sin2\e lat0), which ensures that (\e +lat0, \e lon0, \e h0) is the principal geodetic inverse of (\e x0, \e +y0, \e z0).] Because the forward calculation is numerically stable and +because long doubles (on Linux systems using g++) provide 11 bits +additional accuracy (about 3.3 decimal digits), we regard this set of +test data as exact. + +Apply the double version of WGS84.Reverse to (\e x0, \e y0, \e z0) to +compute the approximate geodetic coordinates (\e lat1, \e lon1, \e h1). +Convert (\e lat1 − \e lat0, \e lon1 − \e lon0) to a +distance, \e ds, on the surface of the ellipsoid and define \e err = +hypot(\e ds, \e h1 − \e h0). For |\e h0| < 5000 km, we have \e +err < 7 nm (7 nanometers). + +This methodology is not very useful very far from the globe, because the +absolute errors in the approximate geodetic height become large, or +within 50 km of the center of the earth, because of errors in computing +the approximate geodetic latitude. To illustrate the second issue, the +maximum value of \e err for \e h0 < 0 is about 80 mm. The error is +maximum close to the circle given by geocentric coordinates satisfying +hypot(\e x, \e y) = \e a e2 (= 42.7 km), \e z = 0. +(This is the center of meridional curvature for \e lat = 0.) The +geodetic latitude for these points is \e lat = 0. However, if we move 1 +nm towards the center of the earth, the geodetic latitude becomes 0.04", +a distance of 1.4 m from the equator. If, instead, we move 1 nm up, the +geodetic latitude becomes 7.45", a distance of 229 m from the equator. +In light of this, Reverse does quite well in this vicinity. + +To obtain a practical measure of the error for the general case we define +- errh = |\e h1 − \e h0| / max(1, \e h0 / \e a) +- for \e h0 > 0, errout = \e ds +- for \e h0 < 0, apply the long double version of WGS84.Forward to (\e + lat1, \e lon1, \e h1) to give (\e x1, \e y1, \e z1) and compute + errin = hypot(\e x1 − \e x0, \e y1 − \e + y0, \e z1 − \e z0). +. +We then find errh < 8 nm, errout < 4 nm, +and errin < 7 nm. (1 nm = 1 nanometer.) + +The testing has been confined to the WGS84 ellipsoid. The method will work +for all ellipsoids used in terrestrial geodesy. However, the central region, +which leads to multiple real roots for the cubic equation in Reverse, pokes +outside the ellipsoid (at the poles) for ellipsoids with \e e > 1/sqrt(2). +Reverse has not been analyzed for this case. Similarly ellipsoids which are +very nearly spherical near yield inaccurate results due to underflow; in the +other hand, the case of the sphere, \e f = 0, is treated specially and gives +accurate results. + +Other comparable methods are K. M. Borkowski, + Transformation +of geocentric to geodetic coordinates without approximations, +Astrophys. Space Sci. 139, 1--4 (1987) +( erratum) +and T. Fukushima, + Fast transform from +geocentric to geodetic coordinates, J. Geodesy 73, 603--610 (1999). +However the choice of independent variables in these methods leads +to a loss of accuracy for points near the equatorial plane. + +
+Back to \ref transversemercator. Forward to \ref old. Up to \ref contents. + +
+**********************************************************************/ +/** +\page old Old versions + +
+Back to \ref geocentric. Up to \ref contents. +
+ +List of versions in reverse chronological order together with a brief +list of changes. (Note: Old versions of the library use a year-month +style of numbering. Now, the library uses a major and minor version +number.) Recent versions of %GeographicLib are available at + +http://sourceforge.net/projects/geographiclib/files/distrib/. +Older versions are in + +http://sourceforge.net/projects/geographiclib/files/distrib/archive/. + +The corresponding documentation for these versions is obtained by +clicking on the “Version m.nn” links below. Some of +the links in the documentaion of older versions may be out of date (in +particular the links for the source code will not work if the code has +been migrated to the archive subdirectory). All the releases are +available as tags “rm.nn” in the the "release" branch +of the git repository for %GeographicLib. + + - Version 1.34 + (released 2013-12-11) + - Many changes in cmake support: + - minimum version of cmake needed increased to 2.8.4 (which was + released in 2011-02); + - allow building both shared and static librarys with -D + GEOGRAPHICLIB_LIB_TYPE=BOTH; + - both shared and static libraries (Release plus Debug) included in + binary installer; + - find_package uses COMPONENTS and GeographicLib_USE_STATIC_LIBS to + select the library to use; + - find_package version checking allows nmake and Visual Studio + generators to interoperate on Windows; + - find_package (%GeographicLib ...) requires that %GeographicLib be + capitalized correctly; + - on Unix/Linux, don't include the version number in directory for + the cmake configuration files; + - defaults for GEOGRAPHICLIB_DOCUMENTATION and + BUILD_NETGEOGRAPHICLIB are now OFF; + - the GEOGRAPHICLIB_EXAMPLES configuration parameter is no longer + used; cmake always configures to build the examples, but they are + not built by default (instead build targets: exampleprograms and + netexamples); + - matlab-all target renamed to matlabinterface; + - the configuration parameters PACKAGE_PATH and INSTALL_PATH are + now deprecated (use CMAKE_INSTALL_PREFIX instead); + - on Linux, the installed package is relocatable; + - on MacOSX, the installed utilities can find the shared library. + - Use a more precise value for GeographicLib::OSGB::CentralScale(). + - Add Arc routines to python interface. + - The Geod utility has been removed; the same functionality lives on + with GeodSolve (introduced in + version 1.30). + + - Version 1.33 + (released 2013-10-08) + - Add NETGeographic .NET wrapper library + (courtesy of Scott Heiman). + - Make inspector functions in GeographicLib::Ellipsoid const. + - Add Accumulator.cpp to instantiate GeographicLib::Accumulator. + - Defer some of the initialization of GeographicLib::OSGB to when it + is first called. + - Fix bug in autoconf builds under MacOS. + + - Version 1.32 + (released 2013-07-12) + - Generalize C interface for polygon areas to allow vertices to be + specified incrementally. + - Fix way flags for C++11 support are determined. + + - Version 1.31 + (released 2013-07-01) + - Changes breaking binary compatibility (source compatibility is + maintained): + - overloaded versions of GeographicLib::DMS::Encode, + GeographicLib::EllipticFunction::EllipticFunction, and + GeographicLib::GeoCoords::DMSRepresentation, have been eliminated + by the use of optional arguments; + - correct the declaration of first arg to + GeographicLib::UTMUPS::DecodeEPSG. + - FIX BUG in GeographicLib::GravityCircle constructor (found by + Mathieu Peyréga) which caused bogus results for the gravity + disturbance and gravity anomaly vectors. (This only affected + calculations using GravityCircle. GravityModel calculations did + not suffer from this bug.) + - Improvements to the build: + - add macros GEOGRAPHICLIB_VERSION_{MAJOR,MINOR,PATCH} to Config.h; + - fix documentation for new version of perlpod; + - improving setting of runtime path for Unix-like systems with cmake; + - install PDB files when compiling with Visual Studio to aid + debugging; + - Windows binary release now uses Matlab R2013a (64-bit) and + uses the -largeArrayDims option. + - fixes to the way the Matlab interface routines are built (thanks + to Phil Miller and Chris F.). + - Changes to the geodesic routines: + - add \ref java of the geodesic routines (thanks to Skip Breidbach + for the maven support); + - FIX BUG: avoid altering input args in Fortran implementation; + - more systematic treatment of very short geodesic; + - fixes to python port so that they work with version 3.x, in + addition to 2.x (courtesy of Amato); + - accumulate the perimeter and area of polygons via a double-wide + accumulator in Fortran, C, and Matlab implementations (this is + already included in the other implementations); + - port GeographicLib::PolygonArea::AddEdge and + GeographicLib::PolygonArea::TestEdge to JavaScript and python + interfaces; + - include documentation on \ref geodshort. + - Unix scripts for downloading datasets, + geographiclib-get-{geoids,gravity,magnetic}, skip already download + models by default, unless the -f flag is given. + - FIX BUGS: meridian convergence and scale returned by + GeographicLib::TransverseMercatorExact was wrong at a pole. + - Improve efficiency of GeographicLib::MGRS::Forward by avoiding the + calculation of the latitude if possible (adapting an idea of Craig + Rollins). + - Fixes to the way the Matlab interface routines are built (thanks to + Phil Miller and Chris F.). + + - Version 1.30 + (released 2013-02-27) + - Changes to geodesic routines: + - FIX BUG in fail-safe mechanisms in GeographicLib::Geodesic::Inverse; + - the command line utility Geod is now called + GeodSolve; + - allow addition of polygon edges in GeographicLib::PolygonArea; + - add full Maxima implementation of geodesic algorithms. + + - Version 1.29 + (released 2013-01-16) + - Changes to allow compilation with libc++ (courtesy of Kal Conley). + - Add description of \ref triaxial to documentation. + - Update journal reference for "Algorithms for geodesics". + + - Version 1.28 + (released 2012-12-11) + - Changes to geodesic routines: + - compute longitude difference exactly; + - hence FIX BUG in area calculations for polygons with vertices very + close to the prime meridian; + - FIX BUG is geoddistance.m where the value of m12 was wrong for + meridional geodesics; + - add Matlab implementations of the geodesic projections; + - remove unneeded special code for geodesics which start at a pole; + - include polygon area routine in C and Fortran implementations; + - add doxygen documentation for C and Fortran libraries. + + - Version 1.27 + (released 2012-11-29) + - Changes to geodesic routines: + - add native Matlab implementations: geoddistance.m, geodreckon.m, + geodarea.m; + - add C and Fortran implementations; + - improve the solution of the direct problem so that the series + solution is accurate to round off for |f| < 1/50; + - tighten up the convergence criteria for solution of the inverse + problem; + - no longer signal failures of convergence with NaNs (a slightly + less accurate answer is returned instead). + - Fix GeographicLib::DMS::Decode double rounding BUG. + - On MacOSX platforms with the cmake configuration, universal + binaries are built. + + - Version 1.26 + (released 2012-10-22) + - Replace the series used for geodesic areas by one with better + convergence (this only makes an appreciable difference if + |f| > 1/150). + + - Version 1.25 + (released 2012-10-16) + - Changes to geodesic calculations: + - restart Newton's method in Geodesic::Inverse when it goes awry; + - back up Newton's method with the bisection method; + - GeographicLib::Geodesic::Inverse now converges for any value of \e f; + - add GeographicLib::GeodesicExact and + GeographicLib::GeodesicLineExact which are formulated in terms + of elliptic integrals and thus yield accurate results even for + very eccentric ellipsoids. + - the -E option to Geod invokes these + exact classes. + - Add functionality to GeographicLib::EllipticFunction: + - add all the traditional elliptic integrals; + - remove restrictions on argument range for incomplete elliptic integrals; + - allow imaginary modulus for elliptic integrals and elliptic functions; + - make interface to the symmetric elliptic integrals public. + - Allow GeographicLib::Ellipsoid to be copied. + - Changes to the build tools: + - cmake uses folders in Visual Studio to reduce clutter; + - allow precision of reals to be set in cmake; + - fail gracefully in the absence of pod documentation tools; + - remove support for maintainer tasks in Makefile.mk. + + - Version 1.24 + (released 2012-09-22) + - Allow the specification of the hemisphere in UTM coordinates in + order to provide continuity across the equator: + - add GeographicLib::UTMUPS::Transfer; + - add GeographicLib::GeoCoords::UTMUPSRepresentation(bool, int) and + GeographicLib::GeoCoords::AltUTMUPSRepresentation(bool, int); + - use the hemisphere letter in, e.g., + GeoConvert -u -z 31N. + - Add GeographicLib::UTMUPS::DecodeEPSG and + GeographicLib::UTMUPS::EncodeEPSG. + - cmake changes: + - restore support for cmake 2.4.x; + - explicitly check version of doxygen. + - Fix building under cygwin. + - Document restrictions on \e f in \ref intro. + - Fix python interface to work with version 2.6.x. + + - Version 1.23 + (released 2012-07-17) + - Documentation changes: + - remove html documentation from distribution and use web links if + doxygen is not available; + - use doxygen tags to document exceptions; + - begin migrating the documentation to using Greek letters where + appropriate (requires doxygen 1.8.1.2 or later). + - Add GeographicLib::Math::AngNormalize and + GeographicLib::Math::AngNormalize2; the allowed range for longitudes + and azimuths widened to [−540°, 540°). + - GeographicLib::DMS::Decode understands more unicode symbols. + - GeographicLib::Geohash uses geohash code "nan" to stand for not a + number. + - Add GeographicLib::Ellipsoid::NormalCurvatureRadius. + - Various fixes in GeographicLib::LambertConformalConic, + GeographicLib::TransverseMercator, + GeographicLib::PolarStereographic, and GeographicLib::Ellipsoid to + handle reverse projections of points near infinity. + - Fix programming blunder in GeographicLib::LambertConformalConic::Forward + (incorrect results were returned if the tangent latitude was + negative). + + - Version 1.22 + (released 2012-05-27) + - Add GeographicLib::Geohash and GeographicLib::Ellipsoid classes. + - FIX BUG in GeographicLib::AlbersEqualArea for very prolate + ellipsoids (b2 > 2 a2). + - cmake changes: + - optionally use PACKAGE_PATH and INSTALL_PATH to determine + CMAKE_INSTALL_PREFIX; + - use COMMON_INSTALL_PATH to determine layout of installation + directories; + - as a consequence, the installation paths for the documentation, + and python and matlab interfaces are shortened for Windows; + - zip source distribution now uses DOS line endings; + - the tests work in debug mode for Windows; + - default setting of GEOGRAPHICLIB_DATA does not depend on + CMAKE_INSTALL_PREFIX; + - add a cmake configuration for build tree. + + - Version 1.21 + (released 2012-04-25) + - Support colon-separated DMS output: + - GeographicLib::DMS::Encode and + GeographicLib::GeoCoords::DMSRepresentation generalized; + - GeoConvert and + Geod now accept a -: option. + - GeoidEval does not print the gradient + of the geoid height by default (because it's subject to large + errors); give the -g option to get the gradient printed. + - Work around optimization BUG in GeographicLib::Geodesic::Inverse + with tdm mingw g++ version 4.6.1. + - autoconf fixed to ensure that that out-of-sources builds work; + document this as the preferred method of using autoconf. + - cmake tweaks: + - simplify the configuration of doxygen; + - allow the Matlab compiler to be specified with the + MATLAB_COMPILER option. + + - Version 1.20 + (released 2012-03-23) + - cmake tweaks: + - improve find_package's matching of compiler versions; + - CMAKE_INSTALL_PREFIX set from CMAKE_PREFIX_PATH if available; + - add "x64" to the package name for the 64-bit binary installer; + - fix cmake warning with Visual Studio Express. + - Fix GeographicLib::SphericalEngine to deal with aggessive iterator + checking by Visual Studio. + - Fix transcription BUG is Geodesic.js. + + - Version 1.19 + (released 2012-03-13) + - Slight improvement in GeographicLib::Geodesic::Inverse for very + short lines. + - Fix argument checking tests in GeographicLib::MGRS::Forward. + - Add --comment-delimiter and --line-separator options to the \ref + utilities. + - Add installer for 64-bit Windows; the compiled Matlab interface is + supplied with the Windows 64-bit installer only. + + - Version 1.18 + (released 2012-02-18) + - Improve documentation on configuration with cmake. + - cmake's find_package ensures that the compiler versions match on Windows. + - Improve documentation on compiling Matlab interface. + - Binary installer for Windows installs under C:/pkg-vc10 by default. + + - Version 1.17 + (released 2012-01-21) + - Work around optimization BUG in GeographicLib::Geodesic::Inverse + with g++ version 4.4.0 (mingw). + - Fix BUG in argument checking with GeographicLib::OSGB::GridReference. + - Fix missing include file in GeographicLib::SphericalHarmonic2. + - Add simple examples of usage for each class. + - Add internal documentation to the cmake configuration files. + + - Version 1.16 + (released 2011-12-07) + - Add calculation of the earth's gravitational field: + - add GeographicLib::NormalGravity GeographicLib::GravityModel and + GeographicLib::GravityCircle classes; + - add command line utility + Gravity; + - add \ref gravity; + - add GeographicLib::Constants::WGS84_GM(), + GeographicLib::Constants::WGS84_omega(), and similarly for GRS80. + - Build uses GEOGRAPHICLIB_DATA to specify a common parent directory + for geoid, gravity, and magnetic data (instead of + GEOGRAPHICLIB_GEOID_PATH, etc.); similarly, + GeoidEval, + Gravity, and + MagneticField, look at the + environment variable GEOGRAPHICLIB_DATA to locate the data. + - Spherical harmonic software changes: + - capitalize enums GeographicLib::SphericalHarmonic::FULL and + GeographicLib::SphericalHarmonic::SCHMIDT (the lower case names + are retained but deprecated); + - optimize the sum by using a static table of square roots which is + updated by GeographicLib::SphericalEngine::RootTable; + - avoid overflow for high degree models. + - Magnetic software fixes: + - fix documentation BUG in GeographicLib::MagneticModel::Circle; + - make GeographicLib::MagneticModel constructor explicit; + - provide default GeographicLib::MagneticCircle constructor; + - add additional inspector functions to + GeographicLib::MagneticCircle; + - add -c option to MagneticField; + - default height to zero in + MagneticField. + + - Version 1.15 + (released 2011-11-08) + - Add calculation of the earth's magnetic field: + - add GeographicLib::MagneticModel and GeographicLib::MagneticCircle + classes; + - add command line utility + MagneticField; + - add \ref magnetic; + - add \ref magneticinst; + - add \ref magneticformat; + - add classes GeographicLib::SphericalEngine, + GeographicLib::CircularEngine, GeographicLib::SphericalHarmonic, + GeographicLib::SphericalHarmonic1, and + GeographicLib::SphericalHarmonic2. which sum spherical harmonic + series. + - Add GeographicLib::Utility class to support I/O and date + manipulation. + - Cmake configuration includes a _d suffix on the library built in + debug mode. + - For the Python package, include manifest and readme files; don't + install setup.py for non-Windows systems. + - Include Doxygen tag file in distribution as doc/html/Geographic.tag. + + - Version 1.14 + (released 2011-09-30) + - Ensure that geographiclib-config.cmake is relocatable. + - Allow more unicode symbols to be used in GeographicLib::DMS::Decode. + - Modify GeoidEval so that it can be + used to convert the height datum for LIDAR data. + - Modest speed-up of Geodesic::Inverse. + - Changes in python interface: + - FIX BUG in transcription of Geodesic::Inverse; + - include setup.py for easy installation; + - python only distribution is available at + http://pypi.python.org/pypi/geographiclib + - Supply a minimal Qt qmake project file for library + src/Geographic.pro. + + - Version 1.13 + (released 2011-08-13) + - Changes to I/O: + - allow : (colon) to be used as a DMS separator in + GeographicLib::DMS::Decode(const std::string&, flag&); + - also accept Unicode symbols for degrees, minutes, and seconds + (coded as UTF-8); + - provide optional \e swaplatlong argument to various + GeographicLib::DMS and GeographicLib::GeoCoords functions to make + longitude precede latitude; + - GeoConvert now has a -w option to + make longitude precede latitude on input and output; + - include a JavaScript version of GeographicLib::DMS. + - Slight improvement in starting guess for solution of geographic + latitude in terms of conformal latitude in TransverseMercator, + TransverseMercatorExact, and LambertConformalConic. + - For most classes, get rid of const member variables so that the + default copy assignment works. + - Put GeographicLib::Math and GeographicLib::Accumulator in their own + header files. + - Remove unused "fast" GeographicLib::Accumulator method. + - Reorganize the \ref python. + - Withdraw some deprecated routines. + - cmake changes: + - include FindGeographic.cmake in distribution; + - building with cmake creates and installs + geographiclib-config.cmake; + - better support for building a shared library under Windows. + + - Version 1.12 + (released 2011-07-21) + - Change license to MIT/X11. + - Add GeographicLib::PolygonArea class and equivalent Matlab function. + - Provide JavaScript and Python implementations of geodesic routines. + - Fix Windows installer to include runtime dlls for Matlab. + - Fix (innocuous) unassigned variable in Geodesic::GenInverse. + - Geodesic routines in Matlab return a12 as first column of aux return + value (incompatible change). + - A couple of code changes to enable compilation with Visual + Studio 2003. + + - Version 1.11 + (released 2011-06-27) + - Changes to Planimeter: + - add -l flag to Planimeter for polyline + calculations; + - trim precision of area to 3 decimal places; + - FIX BUG with pole crossing edges (due to compiler optimization). + - Geod no longer reports the reduced + length by default; however the -f flag still reports this and in + addition gives the geodesic scales and the geodesic area. + - FIX BUGS (compiler-specific) in inverse geodesic calculations. + - FIX BUG: accommodate tellg() returning −1 at end of string. + - Change way flattening of the ellipsoid is specified: + - constructors take \e f argument which is taken to be the + flattening if \e f < 1 and the inverse flattening otherwise + (this is a compatible change for spheres and oblate ellipsoids, but it + is an INCOMPATIBLE change for prolate ellipsoids); + - the -e arguments to the \ref utilities are handled similarly; in + addition, simple fractions, e.g., 1/297, can be used for the + flattening; + - introduce GeographicLib::Constants::WGS84_f() for the WGS84 + flattening (and deprecate Constants::WGS84_r() for the inverse + flattening); + - most classes have a Flattening() member function; + - InverseFlattening() has been deprecated (and now returns inf for a + sphere, instead of 0). + + - Version 1.10 + (released 2011-06-11) + - Improvements to Matlab/Octave interface: + - add {geocentric,localcartesian}{forward,reverse}; + - make geographiclibinterface more general; + - install the source for the interface; + - cmake compiles the interface if ENABLE_MATLAB=ON; + - include compiled interface with Windows binary installer. + - Fix various configuration issues + - autoconf did not install Config.h; + - cmake installed in man/man1 instead of share/man/man1; + - cmake did not set the rpath on the tools. + + - Version 1.9 + (released 2011-05-28) + - FIX BUG in area returned by + Planimeter for pole encircling polygons. + - FIX BUG in error message reported when DMS::Decode reads the string + "5d.". + - FIX BUG in AlbersEqualArea::Reverse (lon0 not being used). + - Ensure that all exceptions thrown in the \ref utilities are caught. + - Avoid using catch within GeographicLib::DMS. + - Move GeographicLib::Accumulator class from Planimeter.cpp to + Constants.hpp. + - Add GeographicLib::Math::sq. + - Simplify \ref geoidinst + - add geographiclib-get-geoids for Unix-like systems; + - add installers for Windows. + - Provide cmake support: + - build binary installer for Windows; + - include regression tests; + - add --input-string, --input-file, --output-file options to the + \ref utilities to support tests. + - Rename utility EquidistantTest as + GeodesicProj and TransverseMercatorTest as + TransverseMercatorProj. + - Add ConicProj. + - Reverse the initial sense of the -s option for + Planimeter. + - Migrate source from subversion to + + git. + + - Version 1.8 + (released 2011-02-22) + - Optionally return rotation matrix from GeographicLib::Geocentric and + GeographicLib::LocalCartesian. + - For the \ref utilities, supply man pages, -h prints the synopsis, + --help prints the man page, --version prints the version. + - Use accurate summation in Planimeter. + - Add 64-bit targets for Visual Studio 2010. + - Use templates for defining math functions and some constants. + - GeographicLib::Geoid updates + - Add GeographicLib::Geoid::DefaultGeoidPath and + GeographicLib::Geoid::DefaultGeoidName; + - GeoidEval uses environment variable + GEOID_NAME as the default geoid; + - Add --msltohae and --haetomsl as + GeoidEval options (and don't + document the single hyphen versions). + - Remove documentation that duplicates papers on transverse Mercator + and geodesics. + + - Version 1.7 + (released 2010-12-21) + - FIX BUG in scale returned by GeographicLib::LambertConformalConic::Reverse. + - Add GeographicLib::AlbersEqualArea projection. + - Library created by Visual Studio is Geographic.lib instead of + GeographicLib.lib (compatible with makefiles). + - Make classes NaN aware. + - Use cell arrays for MGRS strings in Matlab. + - Add solution/project files for Visual Studio 2010 (32-bit only). + - Use C++11 static_assert and math functions, if available. + + - Version 1.6 + (released 2010-11-23) + - FIX BUG introduced in GeographicLib::Geoid in version 1.5 (found by + Dave Edwards). + + - Version 1.5 + (released 2010-11-19) + - Improve area calculations for small polygons. + - Add -s and -r flags to Planimeter. + - Improve the accuracy of GeographicLib::LambertConformalConic using + divided differences. + - FIX BUG in meridian convergence returned by + LambertConformalConic::Forward. + - Add optional threadsafe parameter to GeographicLib::Geoid + constructor. WARNING: This changes may break binary compatibility + with previous versions of %GeographicLib. However, the library is + source compatible. + - Add GeographicLib::OSGB. + - Matlab and Octave interfaces to GeographicLib::UTMUPS, + GeographicLib::MGRS, GeographicLib::Geoid, GeographicLib::Geodesic + provided. + - Minor changes + - explicitly turn on optimization in Visual Studio 2008 projects; + - add missing dependencies in some Makefiles; + - move pi() and degree() from GeographicLib::Constants to + GeographicLib::Math; + - introduce GeographicLib::Math::extended type to aid testing; + - add GeographicLib::Math::epi() and GeographicLib::Math::edegree(). + - fixes to compile under cygwin; + - tweak expression used to find latitude from conformal latitude. + + - Version 1.4 + (released 2010-09-12) + - Changes to GeographicLib::Geodesic and GeographicLib::GeodesicLine: + - FIX BUG in Geodesic::Inverse with prolate ellipsoids; + - add area computations to Geodesic::Direct and Geodesic::Inverse; + - add geodesic areas to geodesic test set; + - make GeodesicLine constructor public; + - change longitude series in Geodesic into Helmert-like form; + - ensure that equatorial geodesics have cos(alpha0) = 0 identically; + - generalize interface for Geodesic and GeodesicLine; + - split GeodesicLine and Geodesic into different files; + - signal convergence failure in Geodesic::Inverse with NaNs; + - deprecate one function in Geodesic and two functions in + GeodesicLine; + - deprecate -n option for Geod. + . + WARNING: These changes may break binary compatibility with previous + versions of %GeographicLib. However, the library is source + compatible (with the proviso that GeographicLib/GeodesicLine.hpp may + now need to be included). + - Add the Planimeter utility for + computing the areas of geodesic polygons. + - Improve iterative solution of GeographicLib::Gnomonic::Reverse. + - Add GeographicLib::Geoid::ConvertHeight. + - Add -msltohae, -haetomsl, and -z options to + GeoidEval. + - Constructors check that minor radius is positive. + - Add overloaded Forward and Reverse functions to the projection + classes which don't return the convergence (or azimuth) and scale. + - Document function parameters and return values consistently. + + - Version 1.3 + (released 2010-07-21) + - Add GeographicLib::Gnomonic, the ellipsoid generalization of the + gnomonic projection. + - Add -g and -e options to + EquidistantTest. + - Use fixed-point notation for output from + CartConvert, + EquidistantTest, + TransverseMercatorTest. + - PolarStereographic: + - Improved conversion to conformal coordinates; + - Fix bug with scale at opposite pole; + - Complain if latitude out of range in SetScale. + - Add GeographicLib::Math::NaN(). + - Add long double version of hypot for Windows. + - Add EllipticFunction::E(real). + - Update references to Geotrans in MGRS documentation. + - Speed up tmseries.mac. + + - Version 1.2 + (released 2010-05-21) + - FIX BUGS in GeographicLib::Geodesic, + - wrong azimuth returned by Direct if point 2 is on a pole; + - Inverse sometimes fails with very close points. + - Improve calculation of scale in GeographicLib::CassiniSoldner, + - add GeographicLib::GeodesicLine::Scale, + GeographicLib::GeodesicLine::EquatorialAzimuth, and + GeographicLib::GeodesicLine::EquatorialArc; + - break friend connection between CassiniSoldner and Geodesic. + - Add GeographicLib::DMS::DecodeAngle and + GeographicLib::DMS::DecodeAzimuth. Extend + GeographicLib::DMS::Decode and GeographicLib::DMS::Encode to deal + with distances. + - Code and documentation changes in GeographicLib::Geodesic and + GeographicLib::Geocentric for consistency with + the forthcoming paper on geodesics. + - Increase order of series using in GeographicLib::Geodesic to 6 (full + accuracy maintained for ellipsoid flattening < 0.01). + - Macro __NO_LONG_DOUBLE_MATH to disable use of long double. + - Correct declaration of GeographicLib::Math::isfinite to return a bool. + - Changes in the \ref utilities, + - improve error reporting when parsing command line arguments; + - accept latitudes and longitudes in decimal degrees or degrees, + minutes, and seconds, with optional hemisphere designators; + - GeoConvert -z accepts zone or + zone+hemisphere; + - GeoidEval accepts any of the input + formats used by GeoConvert; + - CartConvert allows the ellipsoid + to be specified with -e. + + - Version 1.1 + (released 2010-02-09) + - FIX BUG (introduced in 2009-03) in EllipticFunction::E(sn,cn,dn). + - Increase accuracy of scale calculation in TransverseMercator and + TransverseMercatorExact. + - Code and documentation changes for consistency with + arXiv:1002.1417 + + - Version 1.0 + (released 2010-01-07) + - Add autoconf configuration files. + - BUG FIX: Improve initial guess for Newton's method in + PolarStereographic::Reverse. (Previously this failed to converge + when the co-latitude exceeded about 130 deg.) + - Constructors for TransverseMercator, TransverseMercatorExact, + PolarStereographic, Geocentric, and Geodesic now check for obvious + problems with their arguments and throw an exception if necessary. + - Most classes now include inspector functions such as MajorRadius() + so that you can determine how instances were constructed. + - Add GeographicLib::LambertConformalConic class. + - Add GeographicLib::PolarStereographic::SetScale to allow the + latitude of true scale to be specified. + - Add solution and project files for Visual Studio 2008. + - Add GeographicLib::GeographicErr for exceptions. + - GeographicLib::Geoid changes: + - BUG FIX: fix typo in GeographicLib::Geoid::Cache which could cause + a segmentation fault in some cases when the cached area spanned + the prime meridian. + - Include sufficient edge data to allow heights to be returned for + cached area without disk reads; + - Add inspector functions to query the extent of the cache. + + - Version 2009-11 + (released 2009-11-03) + - Allow specification of "closest UTM zone" in GeographicLib::UTMUPS + and GeoConvert (via -t option). + - Utilities now complain is there are too many tokens on input lines. + - Include real-to-real versions of GeographicLib::DMS::Decode and + GeographicLib::DMS::Encode. + - More house-cleaning changes: + - Ensure that functions which return results through reference + arguments do not alter the arguments when an exception is thrown. + - Improve accuracy of GeographicLib::MGRS::Forward. + - Include more information in some error messages. + - Improve accuracy of inverse hyperbolic functions. + - Fix the way GeographicLib::Math functions handle different precisions. + + - Version 2009-10 + (released 2009-10-18) + - Change web site to http://geographiclib.sourceforge.net + - Several house-cleaning changes: + - Change from the a flat directory structure to a more easily + maintained one. + - Introduce Math class for common mathematical functions (in + Constants.hpp). + - Use Math::real as the type for all real quantities. By default this + is typedef'ed to double; and the library should be installed this + way. + - Eliminate const reference members of AzimuthalEquidistant, + CassiniSoldner and LocalCartesian so that they may be copied. + - Make several constructors explicit. Disallow some constructors. + Disallow copy constructor/assignment for Geoid. + - Document least squares formulas in Geoid.cpp. + - Use unsigned long long for files positions of geoid files in Geoid. + - Introduce optional mgrslimits argument in UTMUPS::Forward and + UTMUPS::Reverse to enforce stricter MGRS limits on eastings and + northings. + - Add 64-bit targets in Visual Studio project files. + + - Version 2009-09 + (released 2009-09-01) + - Add GeographicLib::Geoid and + GeoidEval utility. + + - Version 2009-08 + (released 2009-08-14) + - Add GeographicLib::CassiniSoldner class and + EquidistantTest utility. + - Fix bug in GeographicLib::Geodesic::Inverse where NaNs were + sometimes returned. + - INCOMPATIBLE CHANGE: AzimuthalEquidistant now returns the reciprocal + of the azimuthal scale instead of the reduced length. + - Add -n option to GeoConvert. + + - Version 2009-07 + (released 2009-07-16) + - Speed up the series inversion code in tmseries.mac and geod.mac. + - Reference Borkowski in section on \ref geocentric. + + - Version 2009-06 + (released 2009-06-01) + - Add routines to decode and encode zone+hemisphere to GeographicLib::UTMUPS. + - Clean up code in GeographicLib::Geodesic. + + - Version 2009-05 + (released 2009-05-01) + - Improvements to GeographicLib::Geodesic: + - more economical series expansions, + - return reduced length (as does the + Geod utility), + - improved calculation of starting point for inverse method, + - use reduced length to give derivative for Newton's method. + - Add GeographicLib::AzimuthalEquidistant class. + - Make GeographicLib::Geocentric, GeographicLib::TransverseMercator, + and GeographicLib::PolarStereographic classes work with prolate + ellipsoids. + - CartConvert checks its inputs more + carefully. + - Remove reference to defunct Constants.cpp from GeographicLib.vcproj. + + - Version 2009-04 + (released 2009-04-01) + - Use compile-time constants to select the order of series in + GeographicLib::TransverseMercator. + - 2x unroll of Clenshaw summation to avoid data shuffling. + - Simplification of GeographicLib::EllipticFunction::E. + - Use STATIC_ASSERT for compile-time checking of constants. + - Improvements to GeographicLib::Geodesic: + - compile-time option to change order of series used, + - post Maxima code for generating the series, + - tune the order of series for double, + - improvements in the selection of starting points for Newton's + method, + - accept and return spherical arc lengths, + - works with both oblate and prolate ellipsoids, + - add -a, -e, -b options to the Geod + utility. + + - Version 2009-03 + (released 2009-03-01) + - Add GeographicLib::Geodesic and the + Geod utility. + - Declare when no exceptions are thrown by functions. + - Minor changes to GeographicLib::DMS class. + - Use invf = 0 to mean a sphere in constructors to some classes. + - The makefile creates a library and includes an install target. + - Rename GeographicLib::ECEF to GeographicLib::Geocentric, ECEFConvert + to CartConvert. + - Use inline functions to define constant doubles in Constants.hpp. + + - Version 2009-02 + (released 2009-01-30) + - Fix documentation of constructors (flattening -> inverse + flattening). + - Use std versions of math functions. + - Add GeographicLib::ECEF and GeographicLib::LocalCartesian classes + and the ECEFConvert utility. + - Gather the documentation on the \ref utilities onto one page. + + - Version 2009-01 + (released 2009-01-12) + - First proper release of library. + - More robust GeographicLib::TransverseMercatorExact: + - Introduce \e extendp version of constructor, + - Test against extended test data, + - Optimize starting positions for Newton's method, + - Fix behavior near all singularities, + - Fix order dependence in C++ start-up code, + - Improved method of computing scale and convergence. + - Documentation on transverse Mercator projection. + - Add GeographicLib::MGRS, GeographicLib::UTMUPS, etc. + + - Version 2008-09 + - Ad hoc posting of information on the transverse Mercator projection. + +
+Back to \ref geocentric. Up to \ref contents. +
+**********************************************************************/ diff --git a/gtsam/3rdparty/GeographicLib/doc/Makefile.am b/gtsam/3rdparty/GeographicLib/doc/Makefile.am new file mode 100644 index 000000000..84c8ccc87 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/doc/Makefile.am @@ -0,0 +1,160 @@ +EXTRAFILES = $(srcdir)/tmseries30.html $(srcdir)/geodseries30.html + +FIGURES = $(srcdir)/gauss-krueger-graticule.png \ + $(srcdir)/thompson-tm-graticule.png \ + $(srcdir)/gauss-krueger-convergence-scale.png \ + $(srcdir)/gauss-schreiber-graticule-a.png \ + $(srcdir)/gauss-krueger-graticule-a.png \ + $(srcdir)/thompson-tm-graticule-a.png \ + $(srcdir)/gauss-krueger-error.png \ + $(srcdir)/meridian-measures.png + +SCRIPTDRIVERS = \ + $(srcdir)/scripts/geod-calc.html \ + $(srcdir)/scripts/geod-google.html \ + $(srcdir)/scripts/geod-google-instructions.html + +JSSCRIPTS = \ + $(srcdir)/scripts/GeographicLib/Math.js \ + $(srcdir)/scripts/GeographicLib/Geodesic.js \ + $(srcdir)/scripts/GeographicLib/GeodesicLine.js \ + $(srcdir)/scripts/GeographicLib/PolygonArea.js \ + $(srcdir)/scripts/GeographicLib/DMS.js \ + $(srcdir)/scripts/GeographicLib/Interface.js + +HPPFILES = \ + $(top_srcdir)/include/GeographicLib/Accumulator.hpp \ + $(top_srcdir)/include/GeographicLib/AlbersEqualArea.hpp \ + $(top_srcdir)/include/GeographicLib/AzimuthalEquidistant.hpp \ + $(top_srcdir)/include/GeographicLib/CassiniSoldner.hpp \ + $(top_srcdir)/include/GeographicLib/Constants.hpp \ + $(top_srcdir)/include/GeographicLib/DMS.hpp \ + $(top_srcdir)/include/GeographicLib/Ellipsoid.hpp \ + $(top_srcdir)/include/GeographicLib/EllipticFunction.hpp \ + $(top_srcdir)/include/GeographicLib/Geocentric.hpp \ + $(top_srcdir)/include/GeographicLib/GeoCoords.hpp \ + $(top_srcdir)/include/GeographicLib/Geodesic.hpp \ + $(top_srcdir)/include/GeographicLib/GeodesicExact.hpp \ + $(top_srcdir)/include/GeographicLib/GeodesicLine.hpp \ + $(top_srcdir)/include/GeographicLib/GeodesicLineExact.hpp \ + $(top_srcdir)/include/GeographicLib/Geohash.hpp \ + $(top_srcdir)/include/GeographicLib/Geoid.hpp \ + $(top_srcdir)/include/GeographicLib/Gnomonic.hpp \ + $(top_srcdir)/include/GeographicLib/LambertConformalConic.hpp \ + $(top_srcdir)/include/GeographicLib/LocalCartesian.hpp \ + $(top_srcdir)/include/GeographicLib/Math.hpp \ + $(top_srcdir)/include/GeographicLib/MGRS.hpp \ + $(top_srcdir)/include/GeographicLib/OSGB.hpp \ + $(top_srcdir)/include/GeographicLib/PolarStereographic.hpp \ + $(top_srcdir)/include/GeographicLib/PolygonArea.hpp \ + $(top_srcdir)/include/GeographicLib/TransverseMercatorExact.hpp \ + $(top_srcdir)/include/GeographicLib/TransverseMercator.hpp \ + $(top_srcdir)/include/GeographicLib/UTMUPS.hpp + +ALLSOURCES = \ + $(top_srcdir)/src/AlbersEqualArea.cpp \ + $(top_srcdir)/src/AzimuthalEquidistant.cpp \ + $(top_srcdir)/src/CassiniSoldner.cpp \ + $(top_srcdir)/src/DMS.cpp \ + $(top_srcdir)/src/Ellipsoid.cpp \ + $(top_srcdir)/src/EllipticFunction.cpp \ + $(top_srcdir)/src/Geocentric.cpp \ + $(top_srcdir)/src/GeoCoords.cpp \ + $(top_srcdir)/src/Geodesic.cpp \ + $(top_srcdir)/src/GeodesicLine.cpp \ + $(top_srcdir)/src/Geohash.cpp \ + $(top_srcdir)/src/Geoid.cpp \ + $(top_srcdir)/src/Gnomonic.cpp \ + $(top_srcdir)/src/LambertConformalConic.cpp \ + $(top_srcdir)/src/LocalCartesian.cpp \ + $(top_srcdir)/src/MGRS.cpp \ + $(top_srcdir)/src/OSGB.cpp \ + $(top_srcdir)/src/PolarStereographic.cpp \ + $(top_srcdir)/src/PolygonArea.cpp \ + $(top_srcdir)/src/TransverseMercator.cpp \ + $(top_srcdir)/src/TransverseMercatorExact.cpp \ + $(top_srcdir)/src/UTMUPS.cpp \ + $(top_srcdir)/tools/CartConvert.cpp \ + $(top_srcdir)/tools/ConicProj.cpp \ + $(top_srcdir)/tools/GeodesicProj.cpp \ + $(top_srcdir)/tools/GeoConvert.cpp \ + $(top_srcdir)/tools/GeodSolve.cpp \ + $(top_srcdir)/tools/GeoidEval.cpp \ + $(top_srcdir)/tools/Gravity.cpp \ + $(top_srcdir)/tools/Planimeter.cpp \ + $(top_srcdir)/tools/TransverseMercatorProj.cpp + +MANPAGES = \ + ../man/CartConvert.1.html \ + ../man/ConicProj.1.html \ + ../man/GeodesicProj.1.html \ + ../man/GeoConvert.1.html \ + ../man/GeodSolve.1.html \ + ../man/GeoidEval.1.html \ + ../man/Gravity.1.html \ + ../man/MagneticField.1.html \ + ../man/Planimeter.1.html \ + ../man/TransverseMercatorProj.1.html + +LEGACYFILES = \ + $(top_srcdir)/legacy/C/geodesic.c \ + $(top_srcdir)/legacy/C/geodesic.h \ + $(top_srcdir)/legacy/C/direct.c \ + $(top_srcdir)/legacy/C/inverse.c \ + $(top_srcdir)/legacy/C/planimeter.c \ + $(top_srcdir)/legacy/Fortran/geodesic.for \ + $(top_srcdir)/legacy/Fortran/geodesic.inc \ + $(top_srcdir)/legacy/Fortran/geoddirect.for \ + $(top_srcdir)/legacy/Fortran/geodinverse.for \ + $(top_srcdir)/legacy/Fortran/planimeter.for + +doc: html/index.html + +if HAVE_DOXYGEN +manpages: $(MANPAGES) + if test -d html; then rm -rf html/*; else mkdir html; fi + cp $^ html/ + touch $@ + +html/index.html: manpages doxyfile.in GeographicLib.dox \ + $(HPPFILES) $(ALLSOURCES) $(EXTRAFILES) $(FIGURES) \ + doxyfile-c.in geodesic-c.dox doxyfile-for.in geodesic-for.dox \ + $(LEGACYFILES) + cp -p $(EXTRAFILES) $(top_srcdir)/maxima/*.mac \ + $(top_srcdir)/LICENSE.txt html/ + sed -e "s%@PROJECT_SOURCE_DIR@%$(top_srcdir)%g" \ + -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ + $(srcdir)/doxyfile.in | $(DOXYGEN) - + sed -e "s%@PROJECT_SOURCE_DIR@%$(top_srcdir)%g" \ + -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ + $(srcdir)/doxyfile-c.in | $(DOXYGEN) - + sed -e "s%@PROJECT_SOURCE_DIR@%$(top_srcdir)%g" \ + -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ + $(srcdir)/doxyfile-for.in | $(DOXYGEN) - +else +html/index.html: index.html.in utilities.html.in + if test -d html; then rm -rf html/*; else mkdir html; fi + cp $(top_srcdir)/LICENSE.txt html/ + sed -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ + $(srcdir)/utilities.html.in > html/utilities.html + sed -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ + $(srcdir)/index.html.in > html/index.html +endif + +maintainer-clean-local: + rm -rf html manpages + +install-doc: html/index.html + $(INSTALL) -d $(DESTDIR)$(docdir)/html + $(INSTALL) -m 644 `dirname $<`/*.* $(DESTDIR)$(docdir)/html + -test -f `dirname $<`/C/index.html && \ + $(INSTALL) -d $(DESTDIR)$(docdir)/html/C && \ + $(INSTALL) -m 644 `dirname $<`/C/*.* $(DESTDIR)$(docdir)/html/C + -test -f `dirname $<`/Fortran/index.html && \ + $(INSTALL) -d $(DESTDIR)$(docdir)/html/Fortran && \ + $(INSTALL) -m 644 `dirname $<`/Fortran/*.* \ + $(DESTDIR)$(docdir)/html/Fortran + $(INSTALL) -d $(DESTDIR)$(docdir)/scripts + $(INSTALL) -m 644 $(SCRIPTDRIVERS) $(DESTDIR)$(docdir)/scripts + $(INSTALL) -d $(DESTDIR)$(docdir)/scripts/GeographicLib + $(INSTALL) -m 644 $(JSSCRIPTS) $(DESTDIR)$(docdir)/scripts/GeographicLib diff --git a/gtsam/3rdparty/GeographicLib/doc/Makefile.in b/gtsam/3rdparty/GeographicLib/doc/Makefile.in new file mode 100644 index 000000000..859662692 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/doc/Makefile.in @@ -0,0 +1,561 @@ +# Makefile.in generated by automake 1.12.2 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2012 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +target_triplet = @target@ +subdir = doc +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/GeographicLib/Config-ac.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +COL = @COL@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOXYGEN = @DOXYGEN@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GEOGRAPHICLIB_VERSION_MAJOR = @GEOGRAPHICLIB_VERSION_MAJOR@ +GEOGRAPHICLIB_VERSION_MINOR = @GEOGRAPHICLIB_VERSION_MINOR@ +GEOGRAPHICLIB_VERSION_PATCH = @GEOGRAPHICLIB_VERSION_PATCH@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_AGE = @LT_AGE@ +LT_CURRENT = @LT_CURRENT@ +LT_REVISION = @LT_REVISION@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +POD2HTML = @POD2HTML@ +POD2MAN = @POD2MAN@ +POW_LIB = @POW_LIB@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +EXTRAFILES = $(srcdir)/tmseries30.html $(srcdir)/geodseries30.html +FIGURES = $(srcdir)/gauss-krueger-graticule.png \ + $(srcdir)/thompson-tm-graticule.png \ + $(srcdir)/gauss-krueger-convergence-scale.png \ + $(srcdir)/gauss-schreiber-graticule-a.png \ + $(srcdir)/gauss-krueger-graticule-a.png \ + $(srcdir)/thompson-tm-graticule-a.png \ + $(srcdir)/gauss-krueger-error.png \ + $(srcdir)/meridian-measures.png + +SCRIPTDRIVERS = \ + $(srcdir)/scripts/geod-calc.html \ + $(srcdir)/scripts/geod-google.html \ + $(srcdir)/scripts/geod-google-instructions.html + +JSSCRIPTS = \ + $(srcdir)/scripts/GeographicLib/Math.js \ + $(srcdir)/scripts/GeographicLib/Geodesic.js \ + $(srcdir)/scripts/GeographicLib/GeodesicLine.js \ + $(srcdir)/scripts/GeographicLib/PolygonArea.js \ + $(srcdir)/scripts/GeographicLib/DMS.js \ + $(srcdir)/scripts/GeographicLib/Interface.js + +HPPFILES = \ + $(top_srcdir)/include/GeographicLib/Accumulator.hpp \ + $(top_srcdir)/include/GeographicLib/AlbersEqualArea.hpp \ + $(top_srcdir)/include/GeographicLib/AzimuthalEquidistant.hpp \ + $(top_srcdir)/include/GeographicLib/CassiniSoldner.hpp \ + $(top_srcdir)/include/GeographicLib/Constants.hpp \ + $(top_srcdir)/include/GeographicLib/DMS.hpp \ + $(top_srcdir)/include/GeographicLib/Ellipsoid.hpp \ + $(top_srcdir)/include/GeographicLib/EllipticFunction.hpp \ + $(top_srcdir)/include/GeographicLib/Geocentric.hpp \ + $(top_srcdir)/include/GeographicLib/GeoCoords.hpp \ + $(top_srcdir)/include/GeographicLib/Geodesic.hpp \ + $(top_srcdir)/include/GeographicLib/GeodesicExact.hpp \ + $(top_srcdir)/include/GeographicLib/GeodesicLine.hpp \ + $(top_srcdir)/include/GeographicLib/GeodesicLineExact.hpp \ + $(top_srcdir)/include/GeographicLib/Geohash.hpp \ + $(top_srcdir)/include/GeographicLib/Geoid.hpp \ + $(top_srcdir)/include/GeographicLib/Gnomonic.hpp \ + $(top_srcdir)/include/GeographicLib/LambertConformalConic.hpp \ + $(top_srcdir)/include/GeographicLib/LocalCartesian.hpp \ + $(top_srcdir)/include/GeographicLib/Math.hpp \ + $(top_srcdir)/include/GeographicLib/MGRS.hpp \ + $(top_srcdir)/include/GeographicLib/OSGB.hpp \ + $(top_srcdir)/include/GeographicLib/PolarStereographic.hpp \ + $(top_srcdir)/include/GeographicLib/PolygonArea.hpp \ + $(top_srcdir)/include/GeographicLib/TransverseMercatorExact.hpp \ + $(top_srcdir)/include/GeographicLib/TransverseMercator.hpp \ + $(top_srcdir)/include/GeographicLib/UTMUPS.hpp + +ALLSOURCES = \ + $(top_srcdir)/src/AlbersEqualArea.cpp \ + $(top_srcdir)/src/AzimuthalEquidistant.cpp \ + $(top_srcdir)/src/CassiniSoldner.cpp \ + $(top_srcdir)/src/DMS.cpp \ + $(top_srcdir)/src/Ellipsoid.cpp \ + $(top_srcdir)/src/EllipticFunction.cpp \ + $(top_srcdir)/src/Geocentric.cpp \ + $(top_srcdir)/src/GeoCoords.cpp \ + $(top_srcdir)/src/Geodesic.cpp \ + $(top_srcdir)/src/GeodesicLine.cpp \ + $(top_srcdir)/src/Geohash.cpp \ + $(top_srcdir)/src/Geoid.cpp \ + $(top_srcdir)/src/Gnomonic.cpp \ + $(top_srcdir)/src/LambertConformalConic.cpp \ + $(top_srcdir)/src/LocalCartesian.cpp \ + $(top_srcdir)/src/MGRS.cpp \ + $(top_srcdir)/src/OSGB.cpp \ + $(top_srcdir)/src/PolarStereographic.cpp \ + $(top_srcdir)/src/PolygonArea.cpp \ + $(top_srcdir)/src/TransverseMercator.cpp \ + $(top_srcdir)/src/TransverseMercatorExact.cpp \ + $(top_srcdir)/src/UTMUPS.cpp \ + $(top_srcdir)/tools/CartConvert.cpp \ + $(top_srcdir)/tools/ConicProj.cpp \ + $(top_srcdir)/tools/GeodesicProj.cpp \ + $(top_srcdir)/tools/GeoConvert.cpp \ + $(top_srcdir)/tools/GeodSolve.cpp \ + $(top_srcdir)/tools/GeoidEval.cpp \ + $(top_srcdir)/tools/Gravity.cpp \ + $(top_srcdir)/tools/Planimeter.cpp \ + $(top_srcdir)/tools/TransverseMercatorProj.cpp + +MANPAGES = \ + ../man/CartConvert.1.html \ + ../man/ConicProj.1.html \ + ../man/GeodesicProj.1.html \ + ../man/GeoConvert.1.html \ + ../man/GeodSolve.1.html \ + ../man/GeoidEval.1.html \ + ../man/Gravity.1.html \ + ../man/MagneticField.1.html \ + ../man/Planimeter.1.html \ + ../man/TransverseMercatorProj.1.html + +LEGACYFILES = \ + $(top_srcdir)/legacy/C/geodesic.c \ + $(top_srcdir)/legacy/C/geodesic.h \ + $(top_srcdir)/legacy/C/direct.c \ + $(top_srcdir)/legacy/C/inverse.c \ + $(top_srcdir)/legacy/C/planimeter.c \ + $(top_srcdir)/legacy/Fortran/geodesic.for \ + $(top_srcdir)/legacy/Fortran/geodesic.inc \ + $(top_srcdir)/legacy/Fortran/geoddirect.for \ + $(top_srcdir)/legacy/Fortran/geodinverse.for \ + $(top_srcdir)/legacy/Fortran/planimeter.for + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic \ + maintainer-clean-local + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic maintainer-clean-local mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + uninstall uninstall-am + + +doc: html/index.html + +@HAVE_DOXYGEN_TRUE@manpages: $(MANPAGES) +@HAVE_DOXYGEN_TRUE@ if test -d html; then rm -rf html/*; else mkdir html; fi +@HAVE_DOXYGEN_TRUE@ cp $^ html/ +@HAVE_DOXYGEN_TRUE@ touch $@ + +@HAVE_DOXYGEN_TRUE@html/index.html: manpages doxyfile.in GeographicLib.dox \ +@HAVE_DOXYGEN_TRUE@ $(HPPFILES) $(ALLSOURCES) $(EXTRAFILES) $(FIGURES) \ +@HAVE_DOXYGEN_TRUE@ doxyfile-c.in geodesic-c.dox doxyfile-for.in geodesic-for.dox \ +@HAVE_DOXYGEN_TRUE@ $(LEGACYFILES) +@HAVE_DOXYGEN_TRUE@ cp -p $(EXTRAFILES) $(top_srcdir)/maxima/*.mac \ +@HAVE_DOXYGEN_TRUE@ $(top_srcdir)/LICENSE.txt html/ +@HAVE_DOXYGEN_TRUE@ sed -e "s%@PROJECT_SOURCE_DIR@%$(top_srcdir)%g" \ +@HAVE_DOXYGEN_TRUE@ -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ +@HAVE_DOXYGEN_TRUE@ $(srcdir)/doxyfile.in | $(DOXYGEN) - +@HAVE_DOXYGEN_TRUE@ sed -e "s%@PROJECT_SOURCE_DIR@%$(top_srcdir)%g" \ +@HAVE_DOXYGEN_TRUE@ -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ +@HAVE_DOXYGEN_TRUE@ $(srcdir)/doxyfile-c.in | $(DOXYGEN) - +@HAVE_DOXYGEN_TRUE@ sed -e "s%@PROJECT_SOURCE_DIR@%$(top_srcdir)%g" \ +@HAVE_DOXYGEN_TRUE@ -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ +@HAVE_DOXYGEN_TRUE@ $(srcdir)/doxyfile-for.in | $(DOXYGEN) - +@HAVE_DOXYGEN_FALSE@html/index.html: index.html.in utilities.html.in +@HAVE_DOXYGEN_FALSE@ if test -d html; then rm -rf html/*; else mkdir html; fi +@HAVE_DOXYGEN_FALSE@ cp $(top_srcdir)/LICENSE.txt html/ +@HAVE_DOXYGEN_FALSE@ sed -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ +@HAVE_DOXYGEN_FALSE@ $(srcdir)/utilities.html.in > html/utilities.html +@HAVE_DOXYGEN_FALSE@ sed -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ +@HAVE_DOXYGEN_FALSE@ $(srcdir)/index.html.in > html/index.html + +maintainer-clean-local: + rm -rf html manpages + +install-doc: html/index.html + $(INSTALL) -d $(DESTDIR)$(docdir)/html + $(INSTALL) -m 644 `dirname $<`/*.* $(DESTDIR)$(docdir)/html + -test -f `dirname $<`/C/index.html && \ + $(INSTALL) -d $(DESTDIR)$(docdir)/html/C && \ + $(INSTALL) -m 644 `dirname $<`/C/*.* $(DESTDIR)$(docdir)/html/C + -test -f `dirname $<`/Fortran/index.html && \ + $(INSTALL) -d $(DESTDIR)$(docdir)/html/Fortran && \ + $(INSTALL) -m 644 `dirname $<`/Fortran/*.* \ + $(DESTDIR)$(docdir)/html/Fortran + $(INSTALL) -d $(DESTDIR)$(docdir)/scripts + $(INSTALL) -m 644 $(SCRIPTDRIVERS) $(DESTDIR)$(docdir)/scripts + $(INSTALL) -d $(DESTDIR)$(docdir)/scripts/GeographicLib + $(INSTALL) -m 644 $(JSSCRIPTS) $(DESTDIR)$(docdir)/scripts/GeographicLib + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/gtsam/3rdparty/GeographicLib/doc/Makefile.mk b/gtsam/3rdparty/GeographicLib/doc/Makefile.mk new file mode 100644 index 000000000..ca852d9d0 --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/doc/Makefile.mk @@ -0,0 +1,30 @@ +SCRIPTDRIVERS = $(wildcard scripts/[A-Za-z]*.html) +JSSCRIPTS = $(wildcard scripts/GeographicLib/[A-Za-z]*.js) + +VERSION:=$(shell grep '\bVERSION=' ../configure | cut -f2 -d\' | head -1) + +doc: html/index.html + +html/index.html: index.html.in utilities.html.in + if test -d html; then rm -rf html/*; else mkdir html; fi + cp ../LICENSE.txt html/ + sed -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ + utilities.html.in > html/utilities.html + sed -e "s%@PROJECT_VERSION@%$(VERSION)%g" \ + index.html.in > html/index.html + +PREFIX = /usr/local +DEST = $(PREFIX)/share/doc/GeographicLib +DOCDEST = $(DEST)/html +SCRIPTDEST = $(DEST)/scripts +INSTALL = install -b + +install: html/index.html + test -d $(DOCDEST) || mkdir -p $(DOCDEST) + $(INSTALL) -m 644 html/* $(DOCDEST)/ + test -d $(SCRIPTDEST)/GeographicLib || \ + mkdir -p $(SCRIPTDEST)/GeographicLib + $(INSTALL) -m 644 $(SCRIPTDRIVERS) $(SCRIPTDEST)/ + $(INSTALL) -m 644 $(JSSCRIPTS) $(SCRIPTDEST)/GeographicLib/ + +.PHONY: doc install clean diff --git a/gtsam/3rdparty/GeographicLib/doc/NETGeographicLib.dox b/gtsam/3rdparty/GeographicLib/doc/NETGeographicLib.dox new file mode 100644 index 000000000..89b934a7d --- /dev/null +++ b/gtsam/3rdparty/GeographicLib/doc/NETGeographicLib.dox @@ -0,0 +1,241 @@ +// -*- text -*- +/** + * \file NETGeographicLib.dox + * \brief Documentation for NETGeographicLib + * + * Written by Scott Heiman and licensed under the + * MIT/X11 License. For more information, see + * http://geographiclib.sourceforge.net/ + **********************************************************************/ + +/** +\mainpage NETGeographicLib library +\author Scott Heiman (mrmtdew2@outlook.com) +\version 1.34 +\date 2013-12-11 + +\section abstract Abstract + +%NETGeographicLib is a .NET wrapper for GeographicLib. It allows +.NET developers to access GeographicLib classes within C#, Visual +Basic, Managed C++, and other Microsoft .NET languages. + +NETGeographicLib is written in Managed C++. It IS NOT a reimplementation +of the GeographicLib software. It is a container that provides interfaces +to the GeographicLib classes. GeographicLib and NETGeographicLib is an +integrated product. + +The NETGeographic project in the GeographicLib-vc10.sln file located in +\/GeographicLib-1.34/windows will create the NETGeographicLib +DLL. The source code for NETGeographicLib is located in +\/GeographicLib-1.34/dotnet/NETGeographicLib. NETGeographicLib +is not available for older versions of Microsoft Visual Studio. + +NETGeographicLib has been tested with C#, Managed C++, and Visual Basic. +Sample code snippets can be found in +\/GeographicLib-1.34/dotnet/examples. + +\section differences Differences between NETGeographicLib and GeographicLib + +The NETGeographicLib class names are identical to the GeographicLib class names. +All NETGeographicLib classes are in the NETGeographicLib namespace. + +NETGeographicLib exposes most of the GeographicLib classes. The exceptions +are SphericalEngine, GeographicLib::Math, and GeographicLib::Utility. The +SphericalEngine class is a template class which (according to the comments in +the SphericalEngine.h file) is not usually accessible to developers. The +GeographicLib::Math class contains several specialized functions required by +GeographicLib classes. They have limited use outside GeographicLib. This class +may be exposed in a future release if there is demand for it. The functions +provided by GeographicLib::Utility duplicate functions provided by existing .NET +controls (DateTime). + +The SphericalCoefficients class replaces the SphericalEngine::coeff class. + +The NETGeographicLib class function interfaces are similar, and in many cases, +identical to the GeographicLib interfaces. There are differences because of +limitations in .NET and other differences that are discretionary. The comments +in the header files contain a section labeled "INTERFACE DIFFERENCES" that detail +the differences between the NETGeographicLib interfaces and the GeographicLib +interfaces. The differences are summarized in the text that follows. + +Default values for function parameters are not supported in .NET. + +Several GeographicLib class functions accept or return a "capabilities mask" as +an unsigned integer. The NETGeographicLib classes accept and return the capabilities +mask as an enumeration. + +The Geocentric and LocalCartesian classes have functions that return a rotation matrix. +The NETGeographicLib versions return a two-dimensional, 3 × 3 array rather than a vector. + +A lot of GeographicLib classes have inspector functions (MajorRadius, +Flattening, etc.). These inspector functions are implemented as +properties in NETGeographicLib. + +NETGeographicLib classes do not implement constructors that create "uninitialized" objects. + +Many NETGeographicLib classes implement a default constructor that assumes WGS84 parameters. + +Several GeographicLib classes implement the () operator. NETGeographicLib classes +replace the () operator with a specific function. Managed C++ allows developers to +overload the () operator; however, the () operator is not 'elegantly' supported in +other .NET languages. For example, if the () operator was implemented in the +NETGeographicLib::Geoid class, then C# code would look like +\code +Geoid geoid = new Geoid(); +double h = geoid.op_FuncCall(latitude,longitude); // if () operator was implemented. +h = geoid.Height(latitude,longitude); // with () operator replaced with Height +\endcode +The author felt that the op_FuncCall syntax did not appropriately define the purpose +of the function call. + +.NET does not allow developers to overload the assignment operators (=,+=,-=,*=). +These operators have been replaced with functions in the NETGeographicLib::Accumulator class. + +\section library Using NETGeographicLib in a .NET Application + +If you have access to the NETGeographicLib and GeographicLib projects then +-# Create a new solution. +-# Create a new project using any .NET language. For this example, call it MyApp. +-# Add the NETGeographic and Geographic projects to the solution. Verify that NETGeographicLib depends upon GeographicLib. +-# Right-Click MyApp in the Solution View and select "Add Reference..." (C#/VB) or "References..." (Managed C++) in the pop-up menu. +-# (Managed C++) Click the "Add New Reference..." button in the Properties dialog. +\image html NETGeographicLib3.png +-# Click the Projects Tab and select NETGeographic. + \image html NETGeographicLib1.png +-# Click OK. + +If you only have access to the NETGeographic.dll then +-# Create a new solution. +-# Create a new project using any .NET language. For this example, call it MyApp. +-# Right-Click MyApp in the Solution View and select "Add Reference..." in the popup menu. +-# Right-Click MyApp in the Solution View and select "Add Reference..." (C#/VB) or "References..." (Managed C++) in the pop-up menu. +-# (Managed C++) Click the "Add New Reference..." button in the Properties dialog. +\image html NETGeographicLib3.png +-# Click the Browse Tab and navigate to the folder containing NETGeographic.dll. +\image html NETGeographicLib2.png +-# Select NETGeographic.dll and click OK. + +The MyApp project will have access to all public NETGeographicLib classes after the +NETGeographic reference is added to MyApp. + +C# developers should add +\code using NETGeographicLib; \endcode +to any C# source file that uses NETGeographicLib. + +Managed C++ developers should add +\code using namespace NETGeographicLib; \endcode +to any C++ source that uses NETGeographicLib classes. + +Visual Basic developers should add +\code Imports NETGeographicLib \endcode +to any Visual Basic source that uses NETGeographicLib classes. + +\section sample C# Sample Application + +A C# sample application is provided that demonstrates NETGeographicLib classes. +The source code for the sample application is located in +\/GeographicLib-1.34/dotnet/Projections. The sample +application creates a tabbed dialog. Each tab provides data entry fields that +allow the user to exercise one or more NETGeographicLib classes. + +The following table lists the source code that demonstrates specific classes. +
+ + + + + + + + + + + + + + + + + + +
Source FileClasses
AccumPanel.csAccumulator
AlbersPanel.csAlbersEqualArea, LambertConformalConic, TransverseMercator, TransverseMercatorExact
EllipsoidPanel.csEllipsoid
EllipticPanel.csEllipticFunction
GeocentricPanel.csGeocentric
GeodesicPanel.csGeodesic, GeodesicLine, GeodesicExact, GeodesicLineExact
GeoidPanel.csGeoid
GravityPanel.csNormalGravity, GravityModel, GravityCircle
LocalCartesianPanel.csLocalCartesian
MagneticPanel.csMagneticModel, MagneticCircle
MiscPanel.csDMS, Geohash
PolarStereoPanel.csPolarStereographic
PolyPanel.csPolygonArea
ProjectionsPanel.csAzimuthalEquidistant, CassiniSoldner, Gnomonic
SphericalHarmonicsPanel.csSphericalHarmonic, SphericalHarmonic1, SphericalHarmonic2, CircularEngine, SphericalCoefficients
TypeIIIProjPanel.csUTMUPS, MGRS, OSGB
+
+ +\section netcmake Using cmake to build a Managed C++ Application + +The following assumes that you have installed %GeographicLib in one of +two ways: +- you have built and installed %GeographicLib using cmake with + -D BUILD_NETGEOGRAPHICLIB=ON (see + \ref cmake "Installation with cmake" in the %GeographicLib + documentation). You can use any version of Visual Studio to build + %GeographicLib and should use the same version to build your + application. You can build %GeographicLib as a shared library using + -D GEOGRAPHICLIB_LIB_TYPE=SHARED or BOTH. +- you have installed %GeographicLib using one of the binary installers (see + \ref windowsbin "Using a binary installer for Windows" in the + %GeographicLib documentation). In this case, you are restricted to using + Visual Studio 10. + +The minimum recommended version of cmake for use with NETGeographicLib +is 2.8.7. In order to build an application that uses NETGeographicLib +with cmake, ask for the NETGeographicLib "component" of %GeographicLib +using \verbatim +find_package(GeographicLib COMPONENTS NETGeographicLib) \endverbatim +If NETGeographicLib is found, then +GeographicLib_NETGeographicLib_FOUND will be set to true and +GeographicLib_NETGeographicLib_LIBRARIES will be set to the +NETGeographic shared library. This is the name of the cmake target from +which the pathname of the dll can be obtained. + +Here is a very simple test code, which uses the +NETGeographicLib::Geodesic class: +\include example-Geodesic-small.cpp +This example is +dotnet/examples/ManagedCPP/example-Geodesic-small.cpp. + +Here is a complete CMakeList.txt files you can use to build this test +code using the installed library: \verbatim +project (geodesictest) +cmake_minimum_required (VERSION 2.8.7) # required for VS_DOTNET_REFERENCES + +find_package (GeographicLib 1.34 REQUIRED COMPONENTS NETGeographicLib) + +add_executable (${PROJECT_NAME} example-Geodesic-small.cpp) +set_target_properties (${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/clr") +string (REPLACE "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") +string (REPLACE "/EHsc" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + +# This is set up for Release builds only. Change RELEASE to DEBUG for +# Debug builds. +get_target_property (_LOC "${GeographicLib_NETGeographicLib_LIBRARIES}" + IMPORTED_LOCATION_RELEASE) +set_target_properties (${PROJECT_NAME} PROPERTIES VS_DOTNET_REFERENCES ${_LOC}) + +get_target_property (_LIB "${GeographicLib_NETGeographicLib_LIBRARIES}" + IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE) +get_target_property (_LIBTYPE ${_LIB} TYPE) +if (_LIBTYPE STREQUAL "SHARED_LIBRARY") + # On Windows systems, copy the shared library to build directory + add_custom_command (TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E + copy $ ${CMAKE_CFG_INTDIR} + COMMENT "Copying shared library for GeographicLib") +endif () \endverbatim +The typical invocation of cmake is \verbatim +mkdir BUILD +cd BUILD +cmake -G "Visual Studio 10" -D CMAKE_PREFIX_PATH=C:/pkg-vc10 .. +cmake --build . --config Release \endverbatim +The version of Visual Studio should match that used to build +NETGeographicLib. NOTE: With Visual Studio 10, this results in +warnings such as \verbatim +warning C4945: 'ExtensionAttribute' : cannot import symbol from ... \endverbatim +which can be safely(?) ignored. + +Running the example with \verbatim +Release\geodesictest.exe \endverbatim +should give \verbatim + 5551.75940031868 km \endverbatim +**********************************************************************/ diff --git a/gtsam/3rdparty/GeographicLib/doc/NETGeographicLib1.png b/gtsam/3rdparty/GeographicLib/doc/NETGeographicLib1.png new file mode 100644 index 0000000000000000000000000000000000000000..22049cdbf89028032859f1215ef33a628793b174 GIT binary patch literal 17226 zcmch91yt1Qx;}`MNGJl*(hbs`(kb0Nbax8U(j7wz$WTgm3P`66Al=>F@gKzPKKI^z z?m2hgyZ)}lxaJpMzRw%a`+gJrR#pu83C2PUkx1A2u#oSFw&LmzP*5ms_kYlxHhBOjD4{tCVL>HV zot?C)VykZD*+D|I6{^8#Vv!KHS3Hi~ndm`M(*A;_cBH1yW1IXPZN74Vkk21=IM)p_ zA_va|k#^+Oj>E-TPcbemE|UtOv_4w24x5YC5F|!)c`fl+E_md^d?Zgko8F;F!=s<| zY}&(%KVJ3+9&1NZrFq!Jj??KxV5wF0_&TA;}@bI1KohG_>mvmv~ zsxRZr?r*-Pu5Bog-+AK4)Zfz5@=TO0QI)koTmLPHlY@h!HE;Q_K(vzPX%7qJWwDp> zS~{b7&H;kJ)%p1v;1WiJc|P|)zHbK;)Ki{qZz}eWtys_R4{xtAXUFs&9F)Db!6qCn zdQAz&!^30uOw|N2Hqc*PkUjL#S+>+~(+P91+38hOReuoC*>r$W>^hZ#dzHq`e>YyJ zdk_N8uQfGy@U$--eol+)IB?o%1h}*sF%J8&tQyjRp_tN|c%|dW!x+`=55c&cdw9jY~X}LmcdXQb@Ra;MZS$lUqVpV>3jlSoxdP3-W1vA*RB;|dq>)GFYv5wo^nZV)9nU&6`l4s5> z8@EA(SR};Z%+%Ychrv{okJ1*C~T0YV}=wrA!5#zsY*S(8HZQ6<5^Vq8A zzc_Wd*|KpxmC-%)`EeaUp?illcNW-uYKY~%l|6TwoN+!>-JJ7eZT!3V<&?bU73O11 z0?(mdM|T($otrB7l&`N>jWnA2v&28wV|`$^cPVvQWZdzyL0=+bznDZn*wmeta+#HC zwL^w%u^4jkfR|S=WWGx!(#?l-gcmW@UWW|Lr`oz#qjSfT#aEcpIw#{|&6k;Lx>xP| z*9FbTFvTA2K?Ghi@XbrO>F4m?C!KTqM*JruBsRsZoTtoXT&jDC*$Me|!JF}AdFj+{ z@PImmV4NN1LeFZVjjPv(yy%Dw&h|qxuy5PSXaP&u)^uR|h;Y+?UYbZZ;pdcrViEUXbXXjPjp=*!^uBuUpT&2mzOL z-gk3+H!^#r0ugD*#bE)GUgs^ZjMY8MUEQL0+&154Dos~&3!@kI$rInewQ5h-YiPzu zToic@(HW!EJEfG4>O6OtS9AK7kRPT9*|9<#h;*X#9w+jjlIR|XyYL+kW<(^;T@Ik$ z_1j#Z|KK@A^1j05I|vLt^SsV@7ye0E>%6_VoBi&8F124V~u^7Jr}}vh9WqcQSJ@Ik&^!*T-{i zi;B7@@9u7+z0W(&yw=hPy|+*sPFg5*PF4tSJ#>$li`{kxJ#Q>#kKW8(e`&VozQaT4 zOc%XX5x^lf$;zxuN|-y|ms}$o506OikcvJz4xcwTk8-xLQ@Z3{H%?^Qcn8i-^k2dW zlcX;;SE_G)8Dkc9cbI<0bN5X%z0q|^Z1#B2>p*)iq(j&1@O04YOp||Ku6d`kX(jw_ zBW>=iaAbWZVzxQn2$`-)kw_>ZRU|Rg+tzOh8h8rK2BfGE`_*9(*<(!+BqZB};VrDv zhyH-|7{3tyhbbE>K~$Qt=$&?nsi_j<9bI%a?`kvitAbpf^S-a_ynqj5Voni~Uy{hj zh~#-ODyz-JrhBArhKWBFV>XiF{m@ggcT>)u#DFtO_Ve>I1V8A@(v6?GaDM#wqqKvq zt*xc|gW_c4{i)&bQV1TjtPJW;4cZBU|Mj||0*L?g8#+V_;^EOmN`^450xrFu2_dLI z>tP}Cx5W9IpU0D)hZ>nF7{3LUZ0C+XN3J5k_mt8rAW2hG*}9gAJpG84Te@{ z7Q5jx%r@b#)o3!nYyqE-Qx=CCFBeLIZ>G-N!qTGtTxVazbm- zXb*kvnn;@Ac(D0f@m$;HgG+d?_s>sD(3M+~X=`><2n01_p9a-RnxB^B;YH;4Y2oDT z1LM|&9ZZ{^P$)0ki({J@UDDQXE`NL26O*_N{$$eAcbAdnH4^P{?-1PTQf`C~Mv=ri zQDWx^ZdrnA9KSs@|FIQO@h!z?L8tOEa-a;#MSto0%3Rpe`fc)Ttp`#W~1C&IFC>irJ@HpwR8+D>6PKR5=+>o9Q49YU7bGPtbEfC^Yi4rKU^M{F={3mi)$nfjLyis81|6D0XnODK|ax2=L@~ zcYc`({6ef}Jl?D~!C+F!i*>j*tvI{CQNHERwNF~++_>UM%w6LwKPMafx&Bi(-!!)Z zvP(_;tYAP_>F%;4pb|nj2%tW1n3`IJ?Rmi%JEFLaF7ueWd=u7Y*o;T%&%8)93t9|Y z>DCvdU;eD)O5dQ1d=!)(8o2(#?^Vn`ZJXw&Ff05cIQvDm(GNMUK5S>Auv0^#6wBAC z@*wYK@`|h2j1%;Qa=D(AO7c`muEwo{iejn4h(PwZByeStx+LU)_Qzq z>~5F*=4iC^hi22MXL>xN_NCiEqU>;DTbhS(4+jI7{vCy~L-S;3ZjS@9!_}{)wdgsH zCz3l;IrW36sq_zCp-Yy;GtnC~qW8+`Podkhf^(~@E+gC)R<=E|TpJ=*=#a5Q{Bvbo zn7hD@@i%%D1->aJf2oS*S0@HCMLvbanU!%5P=cGwv6nYyd%W)P*k7LZCR7}oy_C%I zr|K+kknS`I?)ykx)X5AW-bzdJe)|MA6n0`>_v#pt#w*7 zTn`H;x*zeXAcB#5WW(mdp67n2*Tn+ixkMv5S)7?Y`LE}9T}S!d!TcBVjeFh;k+-93 zx94JeH^~~oeoQh0-#&hDLlXkdVikKWbEn^4K-|H*Ta&wk=9>)N8$$2Xt>&w>=0pBF ztsmmPe?CtBDe%91iTl8Nxt`5sA<$I>xKxasV^G1E5(t3_3xGGar!ZO@feHvQV0AReh4VraA=0JvL6q_tl zdp&u=(v|8X>L%d|B>qhJz754O8i&m9up`5w>6 zdChiPyGNO}OTd&8t?lB) zT9U2J$1u_5a5~)8Xubd<1u?Z>YiqR*q{EK4xfJx`Eh{_?NrESe+W?WQFoYJ3roGXr z97EA2D1{rul6+&q2TYA_DL#z3+Vgk;tD(27zcR^I=%r zaT|%dlMHAc^Se^!JRxA_sI6Y5lRfR}x|-Z01lkVUZ2#k27v*~FmYtgr4J=#>Yo4?Xs3JWwuK9bOE&ild%4$^Gv_Iu@pY$Si^FP8bs+~$ zw^qgiQ{KZ8r32jS{?bfaliI|D`6zyuivpY35}-VtR0ij$2|1VrasrPmNMlHA#TD^xcMp2Hfyy zEc?N%MHNtZ-KaUc7nMPRbpic;UvW05+?3psoWeQ6e#59f?*_=)JDkab91%}iB3 zxjr>>q9~Q;=gJq&*wq(NWN5`x^Ylhx!5_l45Z~L{UQhZB1qZxd=+T!nWpl`i4JfobPlKAmK z3_W7Z@&$9XCZ-A8S^1NQ-b2-{Qv{!taGxm1&OkN=eUw3BG!k6pJisx>wljlLA^EB% zP8WT+;SjGe)c8H4m?m{1vly_jIh)SIFgCZLa{h)yM(HE^#{0En1D&cgteW|Cv;f?r zP!Ger7-O)l7!v$p3YL1a8=O@bg)CX)@h zS7w!1?n(ENtZnO+n5U9P??wGru!^GVr68&a5Y2&9&RP1Vnwx$fuM=4~9p6MPPR%xchdN1ZJNEv=)rN|C9 zQ0qA|0FyG=?k=O{?~BB>7F0@X|jolE}nl-d^Wng z_ef4tZedsX2ZKfla<^pN6WK<$+QJS>MQBBgc}9pno5+wxx3|7#&x?dZJ^s9k*DH~- z@od=)5TsL5#2K2N`CGG0JWs)@-fyxs4PqAuVTn9Q6eZZ-66Qwpj4eloo#JWJM6UFi z{Qp2NLDVIJI_kqfGNmETiu(hY5sZ@2gvQ?d?gOoi;Fr#M19awxcHfS4!o2e^6*kmkgK0(F#c^pUZaiYB!l#j}zvZCO;o3r_Rb0}Su4@na#!gslS zbYAWQp(^XI`2(e;%nm0K31b{_YRw|3uxnNNPUVi&iie(GU}E5hQ?a+8PAmplDl3GQ z!UC&&Q(@*UVhaVDOmexYvi2$Ml_G)BF9} zZ3&PG4l6BH_nYL8wnE9wMSSE}?`XmG3yEJChXXWD1CnULt4 z=T*x;gaG!v>OJ*wW?ja>O+wwaMb-SY@#pl#ASbi9R*DtL^ZuItAX*>SnOWF`-J%i7 zg^46zWT}@bP8zFr;G|)pGTqjMr{y(DR$9 z)6MnQcGt{?B`~O?OUM$J_qBgcz<0BhEy5=F-qC2@@~kQVP8)BIf3IIJ((B9L0qyQW zsY;qCAH5Jw$(3l7cuV>$nGzbSPHx6;Fgx^JNz#%3`JvYeb`MX|Igut^Z&$_0N5!Jy zRLMzhYwukr@;w`lrG@&aaOUs)Wcg)w?m|)(F1YJ;^9o)v;zvCW$Mnh29e7sxS_61S zMYj=E+u<_lhhx5Hku35)vY%km!J%#w&N}nH*>7H0_gxTak|A|hq^8_)c^r!YCP>d~ zW8r7#@?!et0xZ+twt>70aI$JPzta`52Ref3o~iVnXBPP>vi%P<00%$7qMiv^NCe$E zePW!TG(%NXYXc~XEET;RMc2*p!kS?CO}oiX+`*XP$(J_Y zn^^{<#VUX@2Z6(w14{&fN(gfGe<6 zuCM7IDb05IuHBNPI3+VP16>q1P_RlB#wHi*9{W+8m__~(y<jOxS3DFyikA1km6@=u#df9)!M0{uBUCa}C65_q-lvYM4&h}LpChim52XK`q z#1-I#xB`w+f6Enc@aj_O7Gk1n?}I&}NQqQIz&t@>q#{jn;7N$M4l7bCff#>ObfT(S zCx$3XpSMLI=mP4@ZxG1TNC@=39vFs9)5!*E2LTP)Jv`K%%pm1iS>%+kN8&({JuO6hnHgM0 zUm8*C6+AdnSFvV71L5~7VBRNvG}VyPjG5P$CwzMdX^hq6JG0Vn6Rc@)w1_#2g|f2` z*L|Gz+qgzqee~X%1yyXU`nRxO#clBYp*P6?hk?bvWx!7wC+rJ4PQe4usW9)B~eD}f~b->5ulUC0_qms4|{v^1|MBk!C zKB}Px=Nj=~sQ~mVritA+WRW{h&0N3)l2CAhdX_h%#JJg!`2ky|9mt#X5781PuzSarNuS1FAoqAqEmRrQ~PRv zKZmonNx6CC@1ee*PSu79Gf+vo1p{q;O4LiN3XU zXs&S|9rSdRQ?^*~0n|TV(2bY)>nrCP5wM3-(UD$}S$4k;l^X59_*%}D{JsIrBOkb! zaQl=FIqW*>OTtk@iY!IpisaXvV}IQmaaf5epxPYMEO-vzf04|R>cVfAtpP?oRu)#X zpmUO=scBdo`}2urmq{U4n-wSmzcF<8Nk{6W_2w>$ZH}V~tDJs?Tk=TCW0B{X!Ov|o zuSR&!dFsaDLpkL>Fzl(OXZHC86PAsZg-K&kAWRdfDAUsIgHgJ^gG+^8Tjch+s$2zg z7`ouzP?kMHZ>N_q3IU^UPR&|<4Dgk@U?u9O8T?*v3ir~XBFCQ7A+Gk4d$Nq3&8R0X=p9_8DRPnEfsNe#PjE z0n~}f&(iR%!Bozv3ai3A1D4%7nA`_)AD*WibqcE#aHsze+VUALb8xJrS~rmJgd zYZu2#X>l3BjC{!(T zglT2e?Xij(I|(iLI(NteZB@s9DI?7zzs{elA~$-lb<8*Wm75*wk#HiO;-CI_Vs7o% zAj<%MDv66|DY7;?k*YAB$yzgrTPWtR?f3d8i4X=6DgAOLD_G975n_@r&tIO9;I6*C z(`!^a72#Kek-p~(^o}xGOV=RJr$0$&W@yxISC?45e3~fu5LTR$f|y3>`f=HpHKF|0Dc|0L-tiyMkMjlf|XXPS6_zlQy5UWpvv9L<^AxNTbirM&|6r zBqPOC`3d0gF?r^&=1~GhA5!fz-|wRyAZ0BM5R(JMQ}5J}I!LigK~+yMyVa9!2_$=3 z$VGQlV5hLE6k+EyR zltC}uKzSW#vz{+?%&;e0C7Gv8P5(FWt$BlYKOonregLNYLjg16ASRH&ypQgQ{1~E4#I=cmoJxX7deu)_c*gqBb9@Q-{ zyoH>d_QS^RkKJ%4GO<2e3}l()Js2~H9j*Gd+D_NNfH%2-9J3+vXB0gpa5vT{V+QU= z^s_mo0>AqUdhg$|!jMq?cNh)f9RJ$TZ_9yhP~YqHM>?H)rB|F2%5^8$AuB08HTvT9 zk>jV!zDN&7gxKk=AJ_k$r!K>1^1%|$t-=Ak|E4Npb$m7BfKUPhsRMOlvqT*dPixV2 zI#W*|{EVi{7>5D% zW)PcrO0U4%eq&x=gj^K{FFQnYFRuNSB2rdJ<%aMXL#gYX;hkFa9wmCY->`ldgWP!Ug0` zY?u$hkxcirzvw;9gYb0aRqRg)6`!@+bU-X|EnC0M{|uYz%4Nzu&o(}rr?;9OvE;K$ zu(iE4gP7eC0o5Dp6pXa_uNo#W%53!?{-(RVpzWD7RqN;yzq(5Hn<%a05S<Eif?i z$#52ks8XUgiC|Lo7SlZKAeVEqC?g9r_Y)!~)HQ{$`kqv_b?97Y#Wv5hdWsRvblf0J zAoJIxY`XYfV0Pc=-1mgW(r(3Bjs4qba_XUA$FC0Vj0{r)NLsdzA6mmXA+9Tc2$*27 z>U$B}FGlk?^fDlcqhGY!u#{>9q+i>uwJbs8Hj7A}LNdb4j%MBt*`Bv4fh*(=(G&s8 zZWJ5~Hza)2UskTQ=gkVKQVGi{)qyDf=!)AMIeo#dsS`1cw9fYupxIh2saXfbbBQEm zwp{^q*gqRq$@6$qY$snVY{@KiYL{ZVH$0&nu@YqIw7OD+lPwJ^t^AWF2Y53zB4i4c zhi9HAN6*YR3%+An2S$(KtbXc09@jr&_=k}C>4MbK+ZjsmvN+ouljSY?9}qp}SkM+W z*uO#Hj(?hcQ`sK~c`fiaZT8oM{QnBEQ8(QcchE!GUZ0sCS3#e)WiI62hA-TOhw*E= z@7N+M#i8VU?%CBesOh<3<4%A?*EuQPjPA(%e@*Exteqzn{7N$n0P1-9$@omV+>L6? zp3q~76e0YH+`#{YT-pyOJ>uXBE&32G#9#2;1wP@uhc9RH-SdCXsg^FH8{Yh8g9NkE zKTLdExUPXA!q%sBw~W);rV7UTaqngSkWmP)RM(-E-k0`2>8YQVR;wT-+tI#v$VvDC zQa1QIwuma_UH*h+PEnjdXA_#BRarLr_2O1vvUt)O6>B%;Lx7L#IpTMc69AYPnSczR~J1Wq{l$fJ)L9Vs;-L)HNc}&S>Y$x0W-);wHTQ zyjjt=1Y*ny05tp4VH?}!Pu4tgRS`pv!ZKiBRh%Bq$jtG9aCD>g=`P?6K&2L9OlFmi-%qlT#N3g`z*+ zMJuFEz&!63IUAxgiRVGXFZYnOsFHm#L0#*`{K+~PTvaomwkqY*o!O|lc6&nif9PHZ zc(X_dF(+^eP!6^S+%Wss`j>1_mZ=M^IKX5^Tu0F%SDL9=Ghw+Yh^M>wqR;X#W)Eu& z%)zEtCAUIcrOg#C1uvUGySjs3Tm*uKx^lo#UlLaa((uQsbF@JUj^1NnaoNRDz? zy2rKaM-$dHHQ7n&$X9YC+{eC7{p!b0AG81@S=N;>-cS>87Vw6qNA5PS{}s4v3_CC{5w33cn2`P7E@^Vg^)2^mMWkxucYiO2cs?e zGjCfU3Ad>w=`T$8FkbBU=8WJC`fn_;<;Yu`3uR4x3@phSYQqY~MenkuFQN6k?DpkJ z5Jr3V*p;RU)sldG%rZt%B41lcr}E1E-#5z>-E}a^!?jDzMH~>1*=^W~ggtZ-=u|`h zb-H#rV916m;5)mFdHlA%{4ahx*P8ohzAVS|HdWBL#L*>36mhWQg{4|+NdcHCGNmI9 zGX}zv1CrWv%$J_btK-WE=zM4#k+zfa4orX(g?MkhZnH91vHg`F)@a8IFeu!eU^F3f z$-ByxI#I*LTz3aaC*e?X=7o@!j7jHag3&LAYqFc?;e*d^-zH#X zLf`_+8|@i#D(;v<7xgIijYsvs&6eil#6t_AWYu&C?e_Hbs;Sh9{VJuyiA#l%jpbon zHD-hNr{E`!#Q6KEI(@xWM~|@Z@Uv_UAptD4x;Q8&saCHsw$jX2ro*-e>!Q4@&PQM- zHDLPnTiZLnaKbX9f1b^{=d#P0@DV6LEMiZET8#RUie5S(mN%12Nr|v_g_E+1e@z$M ziW6{6sE63!zKOndJP1OIg+fKL1phq~{7&|5=!7%T)mLx7OVb4FtXMWMNf)>arBP4Y z0h9O59|JJ|%G{*WomhC( zuk4-rkesTNE>?{+KmQl`b#`EtZmPkz;V^;&M*k_~Pxy|Zj%krS0!khZPMZNwo8_s{Bz>p}M!EdLDxSUk^#Xl3?-2TZXzawP7!CrDrEpeU#B==fRQfJJ zgAcEFfNzZC2QG7a{fErkc0F)LHc1O-?5CdUyz8Ev59LZtjbzn~_Oh)$nwlK;GV=>a z3p5r-ucPO-$n)*r(K+RQb9*Rxq}j7)*8d(8SK-o)i4_|*>ZeyswkK-18~}+2h&PP% ze^Hv;ab_;l8n7|5xkd`RJvu7PFu&prG2p2f zjY;CRUBQcVGddj(?-YxEbfUeulu??+8DbdDD_oMbPm1*kkmMKb5JsW&2iRI$vN1Ji zi!@}Vi2^>`lzc<6y{vj)#@woux_THbsx;+(#g|s; z2GAFKui{N8kMtlJ$4XjS@ByS^IE{CNGJ!eG!mcTZn(>FepLI0!+HFUd`o>5$Y`Zw$ zOdW?IkO7uF=+v6|CJKRm<%d5@F%P6mY`wnk2|X))@~fMBroFS{%TzXWu6N?-80*4Z z^PG)IiB@Z{^c-Bm3mp*0TDh!3x|hWpS;kqjvvia8yqy?UlMOV)gPLxPQD@ER)LJhh zY9E+mY`EO#ujnGj!w={cvcgG7=@UtR5wn&y?|&9~o>!4@Y21!U{hHO3lc=6yOr zP=LSBkNR9z&2p5V$ee&(?mKk%mrQ+~0Lt#(1Y%~+83oBUZy_xV-DuZMC+LOmx@eMy z1ID6jLyk&C?o8{f^qcV?tVFx`tkHM0x$1jL(NTp$x(8*|;=T2re&W4AOM#@-gbvBj za)}GN?;VQt)|tX0-3mS2n0QBwRQLasKBEEhg};rTFn&e4_}~y=S(QUnjp4E2{(tla zcqPy6T@~vhEED@fr}q79{Q&Orf5hFqa;|Gp^O|P%vK2q7sH_rQ(J23AP(BeLeb>?c zp?C1O_QzC>JW2kJopTV3uC!Qjy#|4K%A zvfrP;DINZGyR6s+oYB&5v(jsN(M2(=u*jU@burVNV0-)dB2up7+0! z<-0R1)X+Iq@Ez2=%7;A>1q?d1QepWs_Nh*Id3*%t!OexrN3flMNn_?86;37()j$>s zkd*rqUT{LH(L>* zc_=D)KW6tdd!|{sQ^aV++7OIZwGWt$VpM*2oyPTU;YTMo-9^Ya9y*OnwS>LWl#-Fr zLcVylk_ZDEbER9@DSe|h&~9byM9MBHC#8UUe!_d_C8ch5`|94{P;>1-eQT+>Ybnk3 zO8#U#x58+?K3Z9`3)nfX|JyzWYtU=ku??T6-r*PpJb9418(Iye{HR(H!>8Y=x85-8t#zj_J zlL{6at9vM}RZL&jhD=(t`lrn~H*$j8u zqcxs`%SB9o`jja#{nF`W$8p~B_$H>pqcl4I0e+U1o-wnZOYPy<$!&Z)Lw_P%y0QlUcAVv!*Ew_8J^k-p%?+t) zaNM1Kzd7<6VPdP^?CA#L5J3@PJTD)dioIt0r(0sJ+kVEtq|(cj?Ab@Ubz6&Hd39^~UYQPiXD-bXXsJ}W#TJZFQDCS!af*5RWB>KEago`U z`(2N(L`pOFyn6G#oD1z`e~5XU2|`Oad;2wW&~1D#?$QSI&kdh*0l!pk!)}rPj(lzxsPw9F%%k*&ZddayGiQ}~|e z(8%U@`#A!Lj=;rHSOON`v3ZVi7Ip65?K)lyw2R>wI;K_u2gdcc=v@K@oXlVPZ*R>U zJBzxaD>cEU;KXgb3tw%#7=zP1i-T6m4HQI}lPTspW(aJZ=O#bB)DgY3IA`naAJYav z-FNe+rs86KD&%}@o$P%mciYWhd@A?x=M|!R3i8>{h8_xh?tA>@Y2CN}R~PTAfM?t3 zmVD|NfZtbP8XV7jvah>kNF3iQusp)qSWF)vnepQO#)Ld(Eo$r0oJGIOYwf^LdocK4 zvWJ^#`iX`Gp!<=Wl7rpjc9nuc8=)*_LsOyMDvrvphG*(`Ijsq{tefe20b;Bv`RsOk z25No@%j05tKkEp_MdWPvWY7uebOO?1@_f* z2}WF2jlef4y1{={7j!S3nbIaC#vx;(3A+WXA_+cct*RF9KkVZnI7eDO+2U+mWl#|m zceQ)gbjdJ>v+O9;=$=y=fk04u?v-htqO~#&lQ1bVimw2i2O@06yVL?pOeG{I>j9ym z5~6OTT)%v*Pw=ExMw5A(U!0c`iH$cvn~w&sxy-pjja!ZF4b~|CC@4}074=e2D!5k* zkZNQOmb5x_)$8EgbR@-;+EL@lqo;~MPAP9zhS+|2p7MyYf&nsyxSQ1{HpvORv^^`M z74+c>=Sd-yUd+}SBN0d5x2GjFeuWFLST2aJ}LzG`NybFNz3z&i5AcG_^U;QE)O}2Lpai^0-wKGZ?sR( z*SDipS1;*s^!#2pyJY8NxTodK>87&Jj+~ho2N99i*qSA)#B+`5@(d0)FdfU_74+;) z_t=J*TXL?GqgLbB*0ot+!Z;@tYEwCTv~KXNCU8@DR=&XQ5t?N^N)w0Y$;CP<+iCa; zD;7jKouoV6`)o!##|^0V0D#!-HpvHz z`|4m%I-+FXz4_6e|Fdwq+BnN0R0#dhn3QAh-70;{@KpQ&X=FR-pR=btHy?w_r9W`S zP;i58r|_|`PF1+cx?_8i913L-Bl#}#2A+R`g%mI|2P(j~@`v9 z(Me7R zqbT`_9m>N38Lv>A`nvXJqe_ccefk2oxytzaFm-&ih82 zJMy+1zq^89_V~aI{+ZA~7@s}+3ykD|I2`jTEZ~@73NOdbE1@pncd^~oEc>m*`u?~~<0%#(utQOwzqc-TsK*W*W7?DkiHcQ*NKhuNz zi0dSm+gKDdYM2P=bOJ5TjQ7Lyo(h6*w2%>wL2;b~;4_neH%q1NYiJQ5H-r(5G*AsN zA@5p1rCrAU!`%;+Mwd&G(~=E`jm?=IdXF9e}zI$K|Y_(7^Q4TeWXYUktk z-G9I^;xbiEppHT=U<&V?P!|EIx~fBlX-z+r&#w`LCGz>0_z{?9ui-;*USHb2SdB(B zHc%xJywP9_%b@xF#1X}pJ1mMgE22{HQ6e|@ujvPE?Jw?J?KR(I=?Lr9o$Mba@esyK ztQImsrftWShNa_^NXWa4w@Br0mKvZ)jh^J4)YGS)@E)?3fojSi3w$spp$*}+jqBIRN1Tp{=tSCv zRLHr4Kyttvfm|o9{l?iFt7s7zTE0Qu7n(T>I(cQy(Jj;7IgB;_+B%?4du^GG2ZV- z{k;wgd@p;m8v%rjXdH6lN{H<-L=v+6nZCd?A{iw|u|n<+{C9VEJl6%|1ah4t9)t@b z{*Xrg_NQ3y{jWH{clKn*7=%gO|AqtPC`#+Ud2l)C=K*H;PSMV#$UE2FW=Ih=4R8K~j^GNT$gkIkb|4K$D{&Swa&f zHo2RebGnV+cjnBjJL}BcyY5=|&-`FD^}f5R_PfJVyLRmgRZ{^H5zr6-001Hdd07nr z0Am6DmyCyre)3$O;RyYM;iLhS29yrat)Uy(mQu=606=-v-Ahv(bQ|A6Uf&4-Aa1|? z!|1ZlHwOSj928`wwA_rh(uuxkkGb!tdXDgoSBv*6PfcIItVX71ev7ZHx^sS!1S#=_ zrhwjkV2#{=u1?)T^zPoM+GmXWT6F4KmjcX;%$PY)CV~JarX1!RKRjka6RhrM?a0=; zovDpko3g57WU{d3pg8iT31ooWI**>HYhlrGQN>EOd^I8TrR+5Zwe)~q=dlG)?QpR^RBX8ILc^dndjhSKm@p5vy3Qp zZ+teY-^<-Cy?2nt0r~r2n|8*#EqdoA-|D7kX8r!Fs=Mk54=p?jvbB7jhv1=?HdRc8 ze6e>^+8iyiAL4MAyHb#&1^1558<~$UK`n50VPri@JM@uC zsrKCPB>f24K5)?|%5%BeUL}@MzgP@pY*-g5qF0w&=oOT#T2IBDf)^!igHFa$g_eSh zn_u0BLtLAUOw)|F^a5W-yOJLfKh4{6`4kty<>a#`?|ektwU~gb9Ki7jEf+PE^?277 z9$G=qA=|FAWC)tW&4~f}^Eh4}krQMRJPY|vHGR@@zs{)hS)$>lhKlgC zLqfuF;pF;RBjPQZ8L@?eNe|6LX0s~cUf%TXgw2KrKw55%q4QsxcD~^kN8tzBp(A$1 ztkn^=8!K0tip4L@NoA3NwT|C>qmC6PGZh&Ah~%n-i{1NbCY3#^F}$-Z>VfcOFUHq3 zO;z7R+*yXxg=F8_bLqXS&I7@#3_9;wVb!R56y;b*e#KA~h+}`xxXnDnUCe1Mh^TP+ zt>TNR8al|mlH_lUM>ru+&`zaw67Mra7g=IYa))(QM}Cu3Tt233;X`|BE^5j|E>W&x zZS|i*=P*Ua(YVj9FYx&0+Ch9FpCQKwq$7w|$VZpdIn8dtiLWIiHNI)y9-)qM}Nn0ucO{lq2}FQr$yS&a6l z`%9p(hSKI3zN_>(=(SnvCgb&WozIQSO1D1?1GV!-mNAw`#_?&?K!(qF-H5OIIQJ2i zNpt?dMUD8qG4eSq@cp-wx)pBiV zGQ;=Ztvrll>ScPO>#BoB2>E3YHZyYo!k6Cv_2)H2;EY4T^=Cim%iM|I*a#P)g%IOH zed`o;X_(xy-Y zS0S5s{@~vvkq`|UCo5=gflbm}@DB`j+hL1(^!j0-JNwHEKcUbJ6gfvDJm4`V5DOsb z>JP;LFg3Ko0f14z+ zAJiX1;aR5XJV?zp{wI83gP22CFE}|c>G$MrB(db$;{>RCJVwQ_nuVX zL+qR5Va6}X@E;zrGB#%PQ+%VVFRf{XQeXU&!ohjU{I6-UiG=GfW;fCo&KnxQvEM2k z)r;>yr(#L1rPEq&Ov!E+DAz)PuaRozck?C4wQE(^t4zhw;5|CTBo@eQNpAdr$|)m;W>);F9^Z@Ij;GZ8VfL$SW4#a3a=KXFRxTT0uvCcBK;I@LV>F=^!pToBLmmwd#@=8aM z+;3G3un;Ife1?Xwhc3r{F8F5X#nj&)*Xr@r-Cc%-N%gU}`=KU9x6x;A9yhU0OD(hK zSqOr~qv-0NQxCv621zx#CK<2QzlHy1RO8OBDkrw(3+BX`R#2_~@b*u5CZ`mIL6+N~uJGZq42|8L9ItRJD!sMi#}_}e=JUaO)Vhb3NNK$)j&0LrUiacCrBdL}#cE?}I6q@R|ixiLwt zFKhI1JG*eMz4$l8hErUDYWIl9%x0qm`P zygv2-N-`LOrH(1bTuuUEoLP*nRrvygp<&PnZM3Rnw+ALWJZ>?%@yW;GWi^VBruQuz zFL*J6vzWQ$(9Zmx6j4yA5<|!SlJ;6@Uh92=Q`jG;a;}E1j4W;K4~1c7#4X=`;?g`_ zDm*HS`)6EjIpO-Km~rdA^f;MNX!4;>QLKUgwZ5AbEJ^(plE^a(7p>VZ3SM~wLUN0A z-6hzT?YdCamB>0}QPscQra-uUB&$Pf+e4nI+FTUx4}BPTeTw9tg62je6sM~gnI}@E z&gHp1IWF31p2d-Gjk*B-O&s;lZ;2el!tGtIh0_W9L*Gf=ep4)ST0OCh%{(o=-!K+1 zPkDUY?62of(nS8PuZPY1td6&0J+}_Qt3atj|M%1}^xTJ7y>w{2TzG`3cKw}iiK7{M zW{QsE?@1#?Q)(~(fG_{YsQupnd2qbdh$YKCYQknIsbnl5nB3#Ravp$5v=vT)Wuz=r zFVhNV`t%e`!1=_Wa;XnX_faU-++3&F%AG&oa!T)g>1Mc5-2h?u;b>#0pupHq2<+{Ux7yPng5u4=RrRGl4K=d!yqYvDvuC zFDG2xuHm1`=&anW`lhjJ$^A(0t)e1R1tO_$PO*5C8uxzWJ}!Ggd$M^s%{I_v)7$8o z*K|CpsAz0bWxBp$V^@E$aI_(@8YEQewjaiWaL2?y|D}5~h+}_gb3<`6x75>evp9BR z)(w03=6;*y&RmOW=VMNxjiF;kVN$-Um(GLHSeiRg&s<7x!e%0A$>eS*{xJN+30Oww zvR(ky*?;w73Qnp5gVHM_1)nsXHsJ_e47j<nzd&$l|dzdHjfr9H0JHwM#nP3yz(@9amxOBtRjJcMja@8c0{%@2)UZ1~z;wJ)rlEgkNEnYlQ$Rc-w3iMm1(c^?+jGPv1ox5-?b%<`^$%bY!5mV>h2)Nh9x3r3cCns*W% z#fcjmFo!T4o=GxNvJL-dfjz>>leZ1$kh@OujV?Rr3$Xv(Y9FoFX0QIdkR@l#GCT{6w%E3 zw?n^6lV?y(gQ zG>&RnGdQa9x^D9F>Cv@2=OsNH8uS_VcB3i{msP3&!x%($j4RB>W=m+1D@jTN2srP} zT+RN@^>mD>gsuKA=E-S@10VkRfy^d~UsMd3Nf$Vipo}8ZPJ=#fH=!6+y8FwGd&HU} zucpsvU{L*CW^4NAu-WWaS6nI=Kg8jUwlQtExHhXw%A*yrf+T~eOLvQyBsf#=) z+CSLt&OD|%Gqq%>&qnU;q>rArjm#{`2z&G%PLiL0!EP!_=qhr3umgYco@(Gd#knlS zDrmv1Km)wo=Wthe0!7|!lrwPjoGO?Ug&Gu$j1I7~@>p+eepIxYaiSyBqMG>TmFwKu zLiE;-$;9clHX~1SV3CXS7{PLNqBj1?wDt3^F*=J7_oze+3QTJKq>3s9Y!Q$BVqxFw zE3W3#+3Td)YrHWSy_m=Dynj>Xj_By{%y>PI@7JRy?V=X9>kyuF;oYwzWrehi)~~WB z(wC;IXGSl7bVS}&MF`aZN2a<|8!D0A=`E*YHi%}=ISvoSGxLRnH}sgw!_|xLJU$K} zC4M2PhBoBICDP5hPA|JuSJ>b9pfVozGnP!%tY~iUWz&^7&4YXnkZ0*7i^!?m%f zDnKs0kA31xwk3CvezqEFNNG%AY8i@vvx3$@k3nmw&zX0;7>y_c*ibUsdC-*&*x;}! zw<8^TO-&s~6k|7eU!f9s(yE+0&o)*~F8wxTGu2NIlLFhE4x=;GqSHITLpS370h^cCkjpT9 z;jpCfr5!@=Nfjs9dt-Wy>^U)b`b)A+!}qe=IX zMH9O>&J4mHTN~bW23^sQZRG`v{6!BRHQJZr(}XGfViu}jd@FW=t&BEoWT}w^wF7wj z5RvZC^U0+CAy&-HOvu3d^m(ZtoDuj$Ns*=X5mZ^&nM<0I$ov~0xY5h8NB+9{P} zkDzfrU_8Byt7z_gGphL`65+Ek-ZI;;);S*eNwCF9A}NT4P2bzzXQKAQegv^OdZF8F zT#CEE`l(m)(R~gO^AP-J#fkW(^x($za%}L8<*W@m#1mPzlXBDUnd^O&y<+0FA4kS` zInT4BcWybM)a&iry@_N0QRd#)iB5Nk!I~%9@5I)oc&@xQ1!)l%L~BQJR1I5m)Ccr9 zQgL*1l`mTMUY!XBM;@qNxQz?ys-AUD2~*h_h+9vL%ifGI_QHAJ_vikumQa0olM#*G z0pgzlEp}HK4qgC;+JHRK3^xa!8<>|K)Sx7EnhZrVbl$}2( zGnpehLj>Ff^3bN)dokbaWvx=Q*riQ44Y07oH`W`-T3!W3Ua=XV{mtm)_f&yzjkR^s z(Lq_3?oOcbcnm~*`O?PK965L#%9FK1i(ZTph|Z`cka^zGnU~^pTYZUT&=o~?dse0) zcxGv%2ENBE?Ntvvob5^yd>Az0TkWGzaO31~w5~kQU0;vq#3z;FjrL+Sw1ryYD8T|Az$Ra&Y{O`BaH!kUH~f8hMVd%4PL0)l3F7xF z^<{0|OjZ#-5F8>26fCW?*~$^Op?m{-@3X^ya1jeN$#gzmPx3um2$(xOZ(Oaqt1#3c z5PqXX=cjRR0n`IYZ^$q?R6*(y=kmT(B5D%+wk(+Hu<1%+?#?6tqJk?lN#ia zk#G9kQtFN$bOZw;Fdv0i@q_xxN7QeVq=PpCm0D!sPf7#*Ao@FJR@#Eg$yRJPj})Ob?!0U8ObO_20W!n0;Jsq z^37Lfr4!oAvjpwPSW@B7_JuDSj2C%jQ3*_p2>cASZ|#|AHr)t105Dwo@`uDB9g>kD-3@iX3t zU!Vreu7PjI^P+eC_F2lIv;85#kJjt(JRpbVs3RHlLP@663ZaR+S+5K(M=lUD` zoA$*-YfAG7WKNdlYtfvBdk6&eI+oL>iA*bckT1}5@>>lqfB=$!m~DU@bm)K(oo2;G zn=ZL)#u_6|eUwG|BLL)1);qMlJ=}9oM2v=%iR;}OI!3_k0aC0nR+Gh6bmC`M?O z@_C)t*}kyTYGaE_jd7HumP52?F<}ll9CGkWL=g~Lx`}`ueUb3JhC_juDY<%$ZhQV% zxU0XCFXj^2ithU7ccWbpUua6QTK;keUeWrh#V-clo=KtyW!0ch+-T4e!T{2C zQ-@;AM< z;ck;Ms$UmWF3#|B*Zh2PxHmg#CHvd@F2Ri@PcJNFAoMLbWLkSJXT0N4aIZ2j*ZZkB z!WCxt-T9ZKkMZHf&y*2~o?o8kNi_hj{E3?|vg!x-m-P=OB2Gg2X2Z>?u0fn>W)y34 z5Jx`m-=$QU_KZzo2y~tzn3y3;5cFbylf>2Q02V&(mEmjY#MPt>6!Ms76^U9OP)nL@ zn0v41{*mN!6V=xTrbXNwmzhl*Bg`V~n6ufQ{SI`KKd*6LYlgdGe73PYxk_m}%(agl z`U-mKTYJsA9^=5!n?J1`*)e}9p4;CM&~wpISHnWbJs9M!BKv)SR5GV1{{%&4;dWv^HRq$%r>EJ;B;Jps8(8i9 zli;vzwgy5*C}YYt=OoIzt1ZgE5^&zMxEx`D%jRA%a1rw9iuRE?#wtMFM?D()nK_d7 z)6=GpW)}n;wVe*pt2Q^R%n_J^D7LSxSMiWs8kzAQ2X444L-xA-iCEru&WhxCw$%bf zr>^L8#gp(pzCpu>yfeiSgP7;>CRRzwAp>{IiW{i2jeq)Ny#I1ucOnX!*_GBJ_m!rk zqdt0EG8@5I*owckIg-9kZg`NNs-V;jt{ch$lP5b*HJP7Yu^;c#e;8<2sBdxqQ7DHu zC74YJe*gp6_;Ix0xdwwhQD7V+kYa#Nr^$TNB&#!@1e1@{g%RZrsHQ_+gPOgg-0hCa zuys?O>gIl!=!0y?@p4vKBE%4WLwi#px9A&{!EZC}pGY~(*Cb>Qx}U@}Tit21xdrEXrqE1UANxV6V52V<>Zt8^QlJm6%pJu1eb4k3b@Ez!GLLW?Lxs*J^%*1eyF-?e@%lfT5ama0 z2!&5~(=2~}vUfXq`XX99> zlAjstKap2EMjJ`bF3cSqTjVx+;K@dw$)55CPA{qy^snVcKp(_~7%DHOPWoBUAjNYiG3FSn0mpTtrw1gOL{Bd4vH1j&4XRk z39iIpyWx(6&0&*7NlWTxv2O=_YRaQ?hw*muOxiuA!zV+gHTfa zsK;E?7!wRJ`8CBe)cVy4Cynrm6ugbs{A(b0r0p|?3n4TzA`a^FHky=L$z7#aEdSQB+$umuymR17AFUSzP(VkAYJIyi)b9 zAxF|1*biac8)9x5nVkoLHC&e{QgDkAkk+GW#+I>DwH7Kv@)I2&@oUASvoyS+rxJ|x zM@15Z5*~;7*9=Yeh~_y>`w!OE!*t3+XCrdbmP2C+zgd6=8iW=lu6s1r=`p{N-@GbM z)%ed_qsDB>8!pmb*%A+gmm8E^P?ro^?BvDFq?)h1Lq%}NZ0%dV#gI=`1MhP0%#mQa zERdH|`})iG*eC;cpVq5`KI}?wT9IGNfT&%bbxu?GIOE#a7bkOVfTJ35dNd+)@sd~eN-X=bsIAHKBsL2jtXYXn`42oqaCScW$nzz`xl1KH zIR7qJ<@S9`c9soosQ4$@zChPU4^sQGKA?~UR?qQHH&rq{W-#wc)?+t(dK&53KRYcM zG3q_PxaItu*EPI$nG;I?bNxVdW4Tc$y_WxhTSHsa)1i|vxdY=ur{Qh8n!)~HvQ<9 zomC4E>mSB`N<_7A{rLUnjzxN8Yw0}Yr&gm;OCgc3RA1$?L`P>?<}X^i>vqM7#LTKr z-w#>$dtY1O{Fwa0uLo*?nGW?nF@L;bkv#&>n$i-FzXt@;hoFOOYxItZ3>_cqn#k0M zY$94RX-+mLWdi2P&AO^>r(XgEM;k0NpGGv2FaFx+zc0LTzGhYui~mHEw*h+-j^wj$ zQqt0meNHrUA#m-~<8QyR`k~o~FYofPUjUU2{ocMk%RPX=+ke~eR|y2Q}dn? zL$7CjOVG!dyMskFhRRc=L(mJdLak{jnVs#U{&|+;m!c@#!o?jCygoQ93Ju*cS?KJh z{Lmrk?C; z--fo%-xADcru!slw~F$J>SVq)#e{n@NTtYL^49tofp}5pLsiwo#+}x19{wLSA)Y&5 zDnTRGw&O8xa>kj0*2O8lbigS1DrZ@BABG)@og)vxzp*ors6VQVMDK9}0;VxTT37+` zIHnK*t1gqZMSFju*mO&|Dv^4(R(O^)#}Iv1I(oxj@h$$g`43nI`2BO6pSM zwMU=C1cc!H*||$r0|2-CEA;Lun)@&M+g0W+fQj;dNdHFy|099_&k{hVWzfO7+Q($! zdiq8p$+314EDm(B8lVu<=YeD$1`tb)Vz(X8i>_w#EA(T$qh_ZCf!e%rGyG()0VsTc zrs4b^5#X%FL9qxDXMAWG_>ad1-(y9J*IqmDWrprL{SbT%&?b~1WRlZUq91Xd6ipeF zTGpRWCHLbDV!RXmv^b9#RKH2Dyer)5$p=_KPpA>tp@lvwB^4)ohz$7mW3qvAr0JA* z&+tT8yy7s`I&NwGEk;eH$j~^3cglv76}AwJ5sxmr188GN5N6HXCUXc*O#v%+=!hh> zTW>$Funk>ere~|PUw@aT@SkMCM=t#^_Y<=P&@prr-v%T7Mw0-_c zIj#l1cd&rImAaxWV};R8k0^k{v#=BXfj;Mb3X91E{1P|maXP6AmFU=%Tz5qNM^_Zq zUfy^XQ8;7}o}!mfk^_@_ooMHJFF-(WWG~(KGfsgH<%WbiF2F){tOYotT4498Xry6O zuS_>i59h_89BEzI>2Jukx=GpBq7M|`xM$(%c{Rig`qh6r>F4F<1_7Vy+<~wq2YKCO zf%n`DA}dP7Lv^!O!mp}cG5G*JWA{lghv?|lUp1U2MH((xz+4A}wBJ=v8N?Kpj5Ukj zADers(k(M$PsOuho+c9t_6+r8P4Z(wZwh`fv218m3xpPeVZVo(hlV-|!Fzfa()#NL zW52P^S zhz_M3;#V0tM#1qU-I=~A>6zisDd)G~jfVev3Rd!U z;7KNu)QgSoN(i*X&OElwQU{P?p{+XkBkZKQsL3E00K|%ZAXMMjvxs)n zEOcbBLWFiIi(8t1SpLwF3_68Ke+gqpXIB5WQq_N1^fW-{Yyd#}kHi)_1Ir7PnjitF zx!%r^p4bHN>%~Dch6W~1S~LUMBNey+wK}a}s4he#;l?BoPldiJHtwah#EA9JK>iUo zUhiAd)WVOjQnNaJY+ziDvIJH81&&mnMNMZ|%xs#8On{H3aI)Ot=T*nqSEci;Q3UU- zCC>Eoj_+@ONKSf6J~w<*eq3y0yckc&|X8B3x1 z9*eUOyE;3T#Dnqp=DIhC$Bpphp^8TBIz5FtYCURP{-bnh3A#x#e_qtVG!TDXoBs#5 zh}4!(7{4lpxsS9stuvIZLG`FIskQ(!|242rIpHe?!sE?X(rWvr*B;)92&eAyx{FbD zC@3>Ew_el6T7}{Uxv4Gc)kWm?JW2-a90(90yMk-5s&>wc7Y}4+tCpteqY;4avZ;`* zSdRUCDE3{y=Do?x=n!#skynpw$(<JGzEX<0kj+d) z_Ri1UXF*-fD6a7jENsz$YpMkDe)V-LCpf2SrM}i1*>nv2VJ0#6QYFtNe&~HoKWHyK z4Q1Bggvu+$JHX4&$d3OV&Dd4o97d|bF@-tRj~Tp+Um&#WI;>leTV=-(v$o36my7^| z64c^~lQW}dSs72 ztMsWPl^Sg%?x~d*m!b=T&23q)9o7#qt_lR27*157NxU;F*9#Vx{05=HnybU$3iSg1 zU56K9QSV;EJDe0@8WINl%2}&Xo2FWk)*mI}AJ8b`{VZBkFJFCrzML29tE9rmSl0d^ zWeWpGJ!C~l?!0w9mRfzjRLx>km8Xb8Z^CF=^^2iJ#GmQ~2fmi^^M?)A2(vG7DBkV} z*+C)K44tJ9xW_?sHB9g5N)X+S#V^KN3tiJ>eT&SY|~E*PF)I4Eh)NEKBmn{pJj;&&G&R zuuX^if?FC4yoyz6bVU*TA^8yl%jZgo)C$f?ZLil84o6Z(EF2j{vO7y#>!`gm`F%lA z;e~rOK?Sa}Oud-Gos<&-sue{yZ@ z^*ef_**;C#lL|P{v_fsGWMWSy;)F@q}akaLS@c8+$wHvAo&P%{$r8UghEPVFq<7Zs& z*H4d@`rFC6?GSVr`7~qiO1r6F&1>)F>m5AsK3r&0SP7cB4;dejDVjC8hd65VoI2TRF4a#8a~j z&+bVy&?Gn}WvFv^eqo?2;mCSL`Gq9j_*HlRcj5G_&T8O1be*k9ppEBqh;bd@L>H10 zysHzvJEY=WzIwmA3jb^8j9m=4keU5(Y8D3vR)lG(`ZI9f37%*_ue2pit(|3knE7Hy z6qfRHGSPG8H7Lqg0i9MeGEWl?+k?G%4YcPXPz-X}68V5{A5R9`ol`ximCV?l&5oM+ z;VM_Ys&4MvMttDB^TxBxV-f=m-p&Rz;cf5G7rGkNjg`J4U6`Y!_|=Sb>ClK9wu(MK zWAlgh(TZ>zVgM5E{v*0^aCVo;!vUyG?v7*t{)-z5{}T59)hdyUURD5p=(OMMWr*}O z^ber?w*0mNeNzHJe*gd3v>d{DO5M8dyP?k(Zmw!LgH&Z%(KA0{SJKdy4uraEC7@$B zbDY@GIZn1V_#5@VnnEe6f%tU&?98O-;5b$$c1p8DRw#w5@U~eD03L)s^M{_v%Azl8 zs5#1OG!%Wo13JlRqnptb!>)&;KEg?MEV>RF=40dN1fdU*pfQ$uYHp-*e zzvKNitCps<(wd?VP5B$UCya1q+aY2G52zNpEKiplXHVbBJ8zfL7NWMasJ1+E=XP)n zXV|?2#JES5M*&zx>3qs$YwThQMam;1Qpe6#{yZ0zv=~It}B06Ma zrt7DmXP^IMIMkIyG2k9;DMh#sA=ig-~03E>GdG7rR=XrP|JtLz@i5W#rM(^g81m@*{pb!q0;oW{kXU9 zqrbX-?OYbGdz0BS^=hL2+xC}W#U2Se0i0Vd}S@x-H1?+oM~3K1n1#Y0jEgMdsEYuZ?Ku9v-}n zq!zb2|G;dK)(XM;OJmNR@`G>-oZF%N(0WBze0wo7qp$362(uR0YAXdo>vA~J&29qL zg3f} p(*K>SOA8=0sigVy^OKt!`FmaC(uM0k(XIzjkW-N@m3|xWzW^UZ3Zno3 literal 0 HcmV?d00001 diff --git a/gtsam/3rdparty/GeographicLib/doc/NETGeographicLib3.png b/gtsam/3rdparty/GeographicLib/doc/NETGeographicLib3.png new file mode 100644 index 0000000000000000000000000000000000000000..6d4870b80e956c3c1967f22036d6146ca7fa6c3a GIT binary patch literal 31495 zcmdSBcT`jB(>9ESq9|BFl%gOV=~YUOf*@VGN(sGp1f&HOkR~9#1c>w|AiXEj1rm^= zbV3bM1B4a`@NGQj_dFi-dDi;Y`~LH;h0Bz^?=ttyTr=0qPVf^Ixr^s-o+lzAx+wox zMxBW0j0O?WX??QOz$Z_0YAJ#LPPwSdJtQjXrdFWNt zSQ}oM_kW@DZ)W7ne*0LXU08w9tH3-*w@FfjGkL$`27PKc9f9cytJwwRPk1mnRnHgrJC&iK@BYxgvJe7OFR#UUg z`8EFX-#5|5z77kq*5>8~9S?asC?JFXlbRZ;lNclSbJ!Br!`Er~*0LwY(aBw>$tUSQ zG1~HZ8?VZGCXO>p5tL`@1P*=~r}vf(6h>a)S?MkF_w+4WEr>&ZbcED;4Y;BMv^&-Dh3-f7(;(yIoTtKi(5dWM=V zhpqRJiMNI6_F5|s-Mt>|`sXix$TgokjbjR03jT4bd*0dE81g*TU+444B4o?uXeeT* zrpmZ2!qLN%&jLdFi0=z^Q=!Cu?5g))VF}$dc&4DOCI|A@9O!qQpTmRtD|#LYaZ)ER zJkV1;OSxO^djuUkI)|Z_q8NK4&*cDdetLhCX8JDfmY~I(>J&$?VK|2vb?j@po9R9e zwOpV4XQ%!zKkI^bTX>QjoapT!Y3uf3pU~`;%_H9HsPDYlYwKXVOcIhB(i%&92iwEO zP{ZzI3M1^^f^}(GRXR^OWF}3U@VcCH8wzIEri$eT+m94K*4Z)yP07@L_Pp6TUWOKo zz=OA_ah%TMN0T#$kh@Zc!Ql0Ik?4;_%rZjrRU1s4=DR!_OuYSMIbUFx-*&KhD2cDs z#7bY10S-%??c>_;#^rwwYw)TyWUuo3PI-l-ZmNtO#HoDX!}C*??*_7e9wL*-~Wc55|$KK~}SinfGx+k7n6LQbWBNsb#O;BKZ#gEU)#I9c0A$L73tE z_sY<^`z3t1-juc%-6ajdFSfsazR)Kq!7x=OEppM<3NQWOO*P&T{NV2+{*TdAr@r5* zs(!w4o%3o%(e;v1f?yx}n>o$uexb99g^UX-NNC4P;*!&|={FGHMf+JavmVCw=(AYB zWSwODtLv?B)S`*9wMD!SmH82gUeg)%@7w$eFnYO0YxO~hbG`HG(7SF^>DCVw=`yQV z&OX?b`ENTcVwJg;UJ!t7gAiPfM(VMYe4vt$y;zuvS}JENBW9k`C*Co4Tpxb{V?iQc z@*ZDdzb}PT#JMwxfV`m4vYs5T>!ibW5OJwd@{9^qnM*Btnk2#;`Oj)T6Ue4LA4=RF zeY&d_q3SJxz*6#q=9#x0mgO@w{L{`;c3ougyiAe@8WOnImEW}X(A|jwR+W0~ET599 zd2Ib%227gsOieC{yxMp)fC~M9Cnbsr+btUTXd@8B#FVicHRmpXec&Ftmn! zGiUUU4o#9tuy&z1`#|s)2Q+wf`qZ{d^_pxC&sH;1b+pcwD%(3`5w@oYQs+IoN^iv9 zEAi$+DOGcv<}&OWBAO#Pgn7+4hmYT*zK_zybi-D?lqlRc~jT!d>s=EU)>#Jn)|v7Va9jyOo>B5`^#(}GJ9m%k*V`fr(hPJ($p z-6Sbt2<;7ji^qSxdsYz%R5 zbv;OV^0jZb*{yLdcQ$e~`^k=OhCX@6LX!Q%4weA6kJ}?*wIPhj2Gxiu^4uX5@Hs`9 zV-UN+JvHr-hz^_DmZgfGP)gujKKOPC^hIksc7Hr3f&BvU5pl5UJ z{@(?yozuWO4Z^D*;mXie`l19|3wW^7rIzcYfNO6_WXzSt@UFNxnP8|L2H!Yqd$-f9 zFa?cX_y;MbwE-9UH_XHW3h@&h?3w?A61wO9a9M&7LgWY!V*UH#%3HDHHA7~QBL)CV ziEOVTj{$d5`!nJAtv&JomABfnpwG(b5l6LOZO*(>P6K}?B0)Ml8q*o~4ZJn;yy`iX zz-P>l;c&fM)%=^i-G2DOATOf5Em9Hb9-VP2Bfc}X;i)S@JS&_T^Jyj!&L*9Ki+wn) zsz*Ti@oB~V&L18>63`)Q*IoTKy}#LA{%645J~+Q8{e4UoqxYln+mc{cUH{e# zpTs;Xnc(Hc?@|N9@r7hyHIc`^Pg86O*|{t!^?qRI$7Ro_u4@~di|C{7dC(CajoHSh~ETw@!;NcH|r8=hEY2c1L2SaroA1fzDc7H2Z(9}<5Z~* zbnX16#HJRKry+UvtJ4o%>vr9>7us}V{65bP8xd7JEgNPF6XBRg91h(Z2j^z+(IEWQ zdyn#!dUR6sU+2}EJQE&;(Ew9sm3(p2gjn@l+GJJijX>a0&)>VvWLZyZDo&ArTaX0N zaOYgpkDlImV73aRL%X=r*O~W`APx1-H?#^9cjWJwWlrWsEvViZn3WFv`AHysJk#Sg zqpmuudMwd7}jDM zow>)wv^tMHpfTnY?23H{V#*4Qar%u@=be8XzIfa=bw0}J@w2Gao|p?4L!E5<=oCCe zQ1NC3x98gGqN?Vy?syesaIkv97niRnm_c6<%T>(!=a1PYZ-{rotvvdEuIJ+TE0xi3 z;9RK0TX?*w*jlI>o8dH4?EO8Rda}WRYMI76Umrwe3&;C3iX|rBrPQHsZT56*Cya6R z4Ia=y_wU@zu+x|CWm!4Jib~S4wqRQ!ST68KWY4F;MhWUtu~~*)m5vI17-C&${x*x9 z*ucJf&NVjyT&a>n8>0z0c>Cf)=eE%K=H3IL^kG1kQ*;&2xr^!>s?S+!uW&1-Q9>w{XsFgVOTO}1M z+&(Ufmf#)OnA%klA$HZRh0*A>o#3253Zv~^$|ICDilgjV#bs{6|)@pK&!b1>i` zm1y>zUsQV&J9KqDbRX`JTKa*{kFJRMB+p(A(jPX@MqxThg;oPwFE}RtFn_W9b1`d` z>SD?tkm7ddNM$XZYhpEvIimOL0-4Oq=byvW%?D+2zF@JdDXU~5-v)zW3s^ zEC#iVYZtQvQa94Vn9HaEC2w`^JYIzeyAX%dEB%TnWrmSaNtoc4gR7XKeQ?YCZlU-m6+`|UOvIx)8x%Tm^_-&ybzQ}UCtYR)gBDUl;8U4^HqFCpn3dXgDoN847TsaBXfNcZkiWnAQeF4D zTmRPeIfL+Tb(brTtv{p2KfjgbhZFMg1O7L&beA z{`bkr9HI9_qSJCyP(6|@nfSElqmrq8gd0WMYxZW(x4ZADr95iroz2Oyrx;2|D~{3I zXO&=y?wPYPqLifc@xZyLe3vPpZn`*xZ@c*zt8-27vKL};wkz%768DXtl8Ag2y4$x+ z5u>z}|LjP?i++y-h8JVCN&nWK&eQQqT*Bvb#gv)HvA^$#mk#)@&+(7fr8~$fWYCVa z9Dlv5+EOdkGa_M8-Ip2&55X4(!tb6*sx^H1Y~oii$Z!IWY>9{$$Cnvc^+=-=@OI<| zaeo4Z{}p?xNr^;)qz;!J7GES14uG8MnHkCD|E%>D_mvMsMD*$w^X?tJ>wA{-jsNGs z8Zd{#iqK2k4eI{-=nR0;7Dm@``h&RC&b(Tm3I%uL(21alcf zR-g99!yMK&x_Ew+_@;Onyj;8O{;p#W8pr=o?Up6Qbcc_0rKqcmu|d8ucM5C7)6@~y zAOSL;{#j<|Eo#*CS#@e1wySktWwQ(Ea)uF|s!%*~ZX)g-Ht(EE_~P=MrI!9pZ?~He zV&Z%+O=I)v#~HQd$z{uWcbAc;h@R_Z;)$2)ywc@X*Niy8XS)fSP1@Tf-suIVy*&i= ziR7g>pHPEwHM$9L zntP`7P1HUq!UD}b(Km(2&(ZNe3A2I9i^CF=YiQlnFU-AM&)d0K)q07v!y;&<;)a5` zU_bZ!oBP5jD@);T`y;1U%w)q`Me78+9!K)hogzxo`+)a=c8<6QKfR-?)y<1wUqxxd zcL<7_kFkS8A0W(c{TB6?z|m&Zg=EzunA^T=r*-+&e{ti@ZcF=jQl zJZq?*scp8H$|9(rKlawuX!ype`&>LCm4x$F-JPZfLbeCZH|d5h&(gA+6mS7cN1ASw z_s0%x7dm@nom!}CvpaWY7=d|8apO~lhxb*drbMwGrHmV<3JD=cj{M~=D~h(*m#5`y zDT#QyYEamSquq$3DG(tLu||&g(5{i(rliR^Il!6}rjs(OtCpeETfSobmEKLA!HJ!Y zWru8~yxK&GovLGuJtp7Dm@l4HUoSmrQugU*LSLlsphAc68dlMRb#HI%GsRSHosxBq z-`#w8NpeWpRcM_49ShAP6VOUn`m||Y|9m^dZ)GRlb9K&jk^9Yo8G4y2h`!u zO{uRt+bag^mEG4(Xj2h=l^YB@F< zMwq3?*@P%1MpX8{VA7o!ocv@&950^<&mKPHGwG`m+>NpO&Y@c8uSD-D&SeN$KrNsn zqj+vrGvzrP`3J(SDq`y;Su0i^T=TlGJ0V$;xUo4PWn!bjGx~DpQ(6k=NN19!jz~y~ zey^69QbvB)rl9auR-clptedDv(wH(RMNw{Mz?A~eoDx4?{|mNGRx2Y39pz#~f3@O~ zJXYu&sjWPHjE;wfF+xSCYyT##@JC*hsFL$hLdm0<=XPb{EhG z%pl`{sG0FIqR+}sEV#0fsvg3d*{8w1u$8T6%I5pS^YZ!^_X4kH)5v|x5;M2$RpR(2 z+P_gAIxTC5;fZref*mQDVgtDxU2a2&99@z-2=L7;9UlW$`Mo_JCo!2u;NZtw&$MQPydJ8VYCl={VtN>@$AI!DIQ|Q7~ZlBMVYG?QFFUmY{`wX9y z$7Y(3L8bcwhSbC{g7TlC7~VBXO8pH4deQiXt&qb?lAd-r!ABW<-rkd3#rpnpCwy^z z)-Xw*#5)9Y@e0pcK`50&LHhT7wq;eY9CI8Vq?E9 z7X*t-bg2=JLWPBzJDtu8<(#E@_?TFb;im7ivVOdOZCk5#+qEvmFY~>78>h1@YE4ih zZ68@ySc2vKm{2?;$?kPxJEK~pL`04=dWm?mH%7Zkb8@nw5BKHyV#0nr##R}uGsg!B zF}V2OXBA3&Uq{>%sQ^Pt@1_?kZVTK=>2*hzCB(duZ+#v6_0bpB$7lA8*%FoNzGptK zK-ILkHDzWf&a$(wuG2X{9@QAjT_+;?Ts01+8HJvEa zE)!diMZpmrsV~lRIuiwvras&h&IJo)GVLfgqmZm~AtVpGXW!0!Je@tmUXdqZ z_x;C@b*sx?UU_*3LcuZzT}F48mUsfAz7?4l%2!yIoxNEQy5cV{7ym_rWAPLb5qAib z523kvnlUS`{hFE1muHPzmFRh&x$Ai0+-4E&!j8rM8{e~IVnzf+biO+IGK72yj9UW z_v&_c0BN^6vlP0ltHdkaBJf&tl2UXa*0X?RDHU}P3>AS(%JGS%oU^tctlbm}V;Xvu zleB1Bg|>SDU?Q;~n78ea&mCY~Oi(_x=FW+ewgUOw0twQ@{M|1@%e zQ@i0-phkl`l&d_M=%x}1i#=>VVkCQWEw@N-k z0+vbL5arw-Qom}D3c>AziI}lRD@Ox;B}zKCk2$3w$Ni{PxpBR6{J}8nU>JQcj$UZw zt|v>u*cH@vZ(yn-&+$-VNag&1;)9dV)Hd^YL~V^FZhuh+v4?>=9B$@-zRifa1%Y?D zo&?={^Ic-VA(^DniH4b878^V+O)CGKQ{fn}`y=RZj&o`fA4%PjJt*TnOes&MMo&2Y zuKr_MfvT9dRX^#n*s*_xfQ{-n(lcK&osVBnFnxDbz6;xy$`Y znr`D7_U>JbG~qFLZc^mEDgNMrLBUawxzb)739JUO15vr3lYccEMf=ev}r9MjNWNoF2&wVgGJY-WbR)Cq^nJK zEL_bEAV9XUY9c{m9S$)L+uoRYM~Lx(v~T60g-~K^R-UMf{K{2=Y*gDT?}JP)j=i_h zBYN8@`#&evipKz0E0Cu-qtw;U9dfH85e#G<;pQLk2UGnZ$l9c$R_XQc+mKyd2F1A) zCx5)WhYxQ5KxfRV)9TXM63c2I`5h*|eyIl$irnLb!@c4o&m%PMYW;VasNmUIO*7k? z#A~CG-3zP|&Kos#b=o^G6^?LMk_PAvYL&VsYMB3puoFer##0|6i)$^JUG=+dlv_kaP&Les!_gWPv8#yK+&Mht(Zp-tz?C_hk8yMAE2vmstpnk3 z`gimEac?;u*s0${Y~)uep;;<@3ZHNkLxe41)7&k{vfe>R&i(}k*()s-{>SGPlDqjx z(5CtYZfS3LLSQm$-WyWJ7SLyx5{<&PQiID^1M%aRq>=wbRCh4(K@7XfV?{tk>GsIL z?x(`9rItEL?|jp~zI&4Ln4lD8#A1~1c1fp5wjetaGrV}~`6|IH?CgW`rWM6n24c;f zH)~c_jK0)%kny8b^x|$rRb{?v0+{jTgvi88zAk!`cr1T2c9h&u>K_7TkBBIi}NAHigAe*84KYq^@m_pfn} z5M(ucrC&e|A?LOvGQ4VjD1<=n-pEg8X&a-gu+-$s>U6l%Z02kZ#8U1t_=>w&W295BfBsjl&CCT_K%9V#K z-*z)&wi97Ivs`*o3Ft_me%nGE_}^D$;`8?9WrfyisKGuJI02B{^6bp2FWbwTOTidF z&X@xmNt=b|CQs$M75cU`%P(W9E^M6+sxojW^0 zw}1@Z%qgqISD?oZQydI%eYsa&KXIZ!!|NUOARg@*(oijj{YHA(P8E zmu}X8qZ!>JobOQ?tnTHE>d|V~Q4boj00r%%j`oXT2ru!vhwM)g+cT8D_q0;@s0J!@ zg%KA4Tq1MWu{GE$Ymh3CKgy3!SH1ZNAQA9cb#-l3VL7$mX}`yZxaEP15&`M*>JuH( zV+BDT3N>tYef_>0@8_NUa{IUL+=^c|JOC)McaM-*7sLVGj)lfP1ixO_gKkKX!qpuO z2m0>G1xQ{vhjhpjP5FlENyBdZ<+(JUdHq!J%cw91NW|c2ua80Z*aCDDWNueoXl{{x z#&(dW>?IntaQeNMzC?<54yxa?BYyMFe7WDebLhV&ok8~0j29yg;*U0V4xheDBfCuh%yn zuExz+ZbT47r<3wR`{4_(g!Q@>1nmV>EY4tdCdMeqnp>SlP7^)(mw`E9c6fZTAh8t} zZB`imV58UzS0J_GGL=-5KR*w`X$*%jq_KmFbPq=&{H$s+@xkx!TIWqNB_#6}esk(H zmFzZ+az!f5kj#)s;R+DqWYpbOXUvS^W=o=8si--qQzhPK0g*zAn3fq5-_w{46i{L*&{|%)uM&m|I5chRks@f|5@7^FptM%$avyDb zY`{QP(D$FRbviEPiZTQ6qcRw1t5@o`bxZyOm{(e_CH}!LJJI7f zrEt281jK~#Vd;3d=s2No-uGdI{e(&~1%{OTH^=|e)r3jK$dp(nYWK!kZZ zPI$957k}tQ$-s@_RR)WNcRYcNIDId3nUH*~DQ@TX1v##?fu%MG#&}aCnr7+|+57uE zAM8DAf9V8VJ=GQlaXtxkd6$IbrOCHh9uHGrDStNj;|(<;5ZeJudY%f5kYJh)jBpl+ zWlx|WZ=5U2A#fMZ!CXm}zb=DoBFZm6{VD{&WyO6%6(4kO7khXh0;#?2PKhlzk91QJ$LGpAP(T&0_L23c(ZVw_ zB=RzbyJBEt0e$7qEad#4Z?c^`c0Re}Q`|aJiySD=P2~nT`{i@z7MOa{BrfZT{CetVaDF8p?I9=;w?uayyyN5{6n((LelO>_X8Dd_ zpj~(4H+KFe(_ERa6f1}f9m}|NI`x(Chh-*hT5WEa`w!z|9O%tM5=E2Dpqr#q644_I zU%use!AEUK)`d#s6>MqVwHWFNTv(QN_IUmU(p7}~RcCUYD*}&QFON!nrL9!*TrANy;*WU%#jeKMT+MTn zOB?2!O46E*gTutS1MAHBbt*dseAUGTw8W#GPgREp-~(pfKNhMC)(kYkcb6@kuL}4V zbhZ$Zaq?3?EB+)>yOVwZH_8gy>y3b{`7uZwdB-4j;2Xvx)#&|BoowBgXR2rryVonx zOJ-)c{y~pz;sdc~uy3Z@=U@Zz4Y3z=?2jA^Y{1OW<~{XZ?yWAN=(JRccY!6nsRoAw z-!7H7$vx=QY7erT>xjQwZKBISnR7-v2O6gw?|nsA+)6vjT%DT;J@H~qy32`MOS!M4 z{Bb;#fpqNbuZIR;t=Hy{$o;ZBANL3b3!Dpdv60GMiDBqc0Td>Uo_@U<)zcB<9E##h zH7%TeN%yH;;gf$*c;Aihk-Be5zx)_g%A>UEtyZ9)AE_Ufp3+HtDZhW1w&XyO2XEx9Y#SwKomy~% zxQO9bQ*=tki&c5;jJu;f=IO+|fkTFl%#U2dP`f>waoQI6{A6LtTfN%L*v-Vsf>Q&= zn)D)1Gvc0ofJ*|H$6l-gyjH}>qgidJqDw>+^6N6G&JJSfaMQN{yFQcY z(~SobqMbVQJpj?|v$1M8*>A=N;jZl+(@OXbeYP5%0xc zl%jg%VY=2Y(dK`G=mJO2`Ep>H?kNg7hPrHR3`CaQjOeEjcn#NPt=@Ty?(7KyqHnj*PCCD z@P;*nD1m|N-0w*UZ(J-&)%UN*LtBILSyNwqYkE|T#u4j_-MkG==A{8O@znb~v`NIb zkEl$}9q}`5ru{l6kSulWVW`pDbuHF9-oW%DBqQrFETvLDVnL zM-#uoH}d@oi$DRk%~=XpW^m{Jq|@Fs$F)KpYdZM+cuH45v-V1J;QhCJ?`p>djT~Lm zY<|Lo7wH87k97I}pu}dkRW`GjRU-x}8qMk-Ognm8-@ ztd=RYj&&+oomt4!e3VQ1s{OfN?F~o=pMDoXJnpwi9Sex+D7R70*DCPaPmie=2Pp3H zj7FhBO>R8>_t*K&ZLbbDlLT6ybmRJMQw?d`4@ANpLQVTY_G6 z9j2%JU9xrWkS=h28`u;M_^5~IXj1-@%qNx)uhWAk_x2)o%bmhCtf4tqZ_)`A@n4Lr zd&|v^mOvs=nQWt(AhP+A3g_wIM2r}-p7s4~I_snXzm3dFy>ba4gZsLlIYUJ{<*$Jw z?|8G=H%0QVTuCtzeQ|-ha zB|3Kpqa*ZsROVM`21?D{_{=pN?10RUsSE3riVJ@Q$4dJGxL`{hy=VtQ)HI~fg(#wO( z_SZU^ujZW9J-JW-PMv*)E3m8UGqw`& zXM;~Vm~a75&I<>`!S=CIfDX`$UIbAqm?;B6Zt&y@E( zOQD?@_xPFOjLZW$P9Nd)gQGVuYpULmCFCb-(sb~5X7$}zKlu0_6&t`Y(-sm~BpazT zTv`-x%ut+R^|6mEPP1H9B*XcI{mX{J1rR?|9C{FBaN)x~t~W#OIK#=t2e%T>T_qM^ z#9VF%(U{D~m_3e%)jZ3Bd5(wD%K4Hgtt zJbAyS>FbysdSAa)pq2tq^|=5Yb^<3h8Z_&%|Kqm+iafX!57b70Ie+E2-kIs+_789I z_%rmXNo}`*H7{b0NqXEdNq^th(R-%MdGU({@L0#d`hKy$+ku8YdpO)xvDG-@)oluZ zApLcTKYcp|?yAi>mh~}Cbnd9&4A}~qK8rEy-{iX+p*8*h{HmI4Tx{=q%9U+;`gJlg z&32(90X(M~ZS-jWnw79*1!~BM*d?pSXZaDT2U#NtIiJUWhTd(-z{9nD zSm;^!_V6P8s>fN(=#M2%b|(#>9CQ+8D1<=0@M9-PngCA!nzuU)tyawKWT-J)A$w~i zUR!!iL2Cq`2s5_UZT=3!qhNrTl-$${2ql**G`!G6i+zL{BczCos<=}(7 zu3%BBc_=uTU7K!xOFrq;xaKXF)I`6wg(~|fF2|0JziIIJncURV50dFmD9!%@F9?~H zdPF7D0aevs9_4-s(HORMoRd83F+Xvhr%}c9rq}#LlJn-Zyzqx?HMaG zFR3Xgn5c=McP}2L>DvtDJrCf;K>ikD_m7{K}oG^o9LJe?Ct3BD<uesFUG}`v40~&o)wBLVJ2yc&w-WHoz9N8JiLaGEoft|4<@d5=ujGhZ7zH;UH z2TX)e0GQlhHkNZ)UNNW$oU2j7ku$`u8}+FHb%0xx|MnyAW{_9_4V^~jKdMk*SL^Xw zux)@kL+NQ*L0*6GZ7fWF{;2&*>v^rV%6DE_sEl}UBcR0cFOty%RUFpOX=3K6%ViI_&pmecB%#MQK|od+O_BUD@yW$^ z?AWivp+L#zcP=XpLka})Q71XQ<2>NmFd=nJa;HyvKW)Q{5}eOZ9KD@LC%y8+mC=3{ zsW8tbhJU_2Hs#7k{<$Z^e5l^gZ+c~(Zb_L?Mf9q4W@S77xOgRWe+w)1eh;B|L&4tr44qqr&=_wEpr&} zM%K`$Nf{&q@wUdI{|27UU3E;!BzEA(M_U1x6i4xs8{r=yOczX0Yjk|u6FHJm-oD8E z2ra}~K%qrl=-T>{U*np(*Bxc#EI>#_F+6c;rG1X-t58vB^q^RTs#3|*u`*Trzjz+j zar!-H2=4tEfr1yeg^b+p*x0v^xV$C*SNwX6ZfThK{E%7271)y>w4DqxuX$I-Bl%aZ zcvZhyxXebn&T@s~n;|3Iy;ogste-1xCf8NHj@WJUTL&vfjx5nT|9S!!QA$8+xhR=H zN)q@nmF6I+$g5vNiens(w}5=x0bfm#_6Q(rQ0AZWwi6xRWK}?RH+>EDd!m% zHLGw(H{1nvQ;QyEfXZee|4TIo$4$|s#QJ-JaJ=p=0T4LBZB#__BX0V(w#i6Nda<&; zabfe^0eVk>rd1ec5!^J}Wo8r2j^VX4Cygm}V4-`nGixe`_Lh${9x7E>k00%Xb(^00 za=q2+8Y%ySh7G+KVY~`R&m!Bg_vD$B!trKJx6q!!TCX^0CXVtZ$}Do%W^SftUNHBr z2>#09o+lR}c~OdveI)0OB;3S>V#VBvRwH~q5q~Zs#Ye+JvN$haHuq-HXVX(ZuDy78 z9Ln!fdiIwumn+*;)BS3H{}_X?UvzrE?U($amC|uyBI_<=nqL&G8+j z)%b;K$LK%Z^d}E-Onn07*V`w(%5gURr-1l)vz$j0@O z8Fe2`pVhdb=e$>GT{+e`_Qi$gVJ_0a^UT3`SB)VV-W-0kna3mI)%p&5#cLT$uR^V> z)Sg0h=SzLnWk#>0+pA0XcNclYW#YV3+_6hf^J$6yfYTrdJnN@W1 z6D8~?RHid{XKZoUM`&@GjJQZ`F}^dpB%D^yQ5j_?pHN2Uh`(t1K~PU6ApI8KJAnp& z8C!luYhICpwu_1@(|Ubb9w&8%#s~s;^ko3uT;m~UhLbB5>p>0Jgy){ihERuhL8%pU zeb+V@2%o0j6-iyXsm0V4bt+FI^xmSIms{zfW;>Ew$i(!g5Sfbx9 zuh5U;!*{k%^+Y^*kFn{5=g=+uXp}64iE%!d$w>><$n+DP-n?>UA=70! z<(ui6G55&$0qgw9C5l1u`1m(e`ur>F@Q>J#F~%)^o-+pnpD$!22-C#JsNr_u^UI&$ z!v-PovJA!hb$n;%p&tRrfk%sA*XZdN6VP8O|JGO9F5T(aX6e;ABq zW8IRDm7J~#rW&b4gjsQ))jZqV>`BsN+wItB1-dm3nLa z;JhuA0DpY5IIc#+-+b$qx%rUsd(Bmq?e4`rcB;SN_g3v=cD?$mZC)=FmL(1p6nk0E z_2pH>&C4dVhTpNod}-A0ztV6oM-S3Ed(FuiPs?wVQrU5XB{*s5r(!F!sI+BmWS%@c z8e0gQ7JLd{7zy<3mm(ZA%`qyGZ~LOKV&Wg^?#5CoU~E4N*WKwPp0t1H-M~8SH8JA= zwMqk#-fwVaF@YT&uEHPLzTfajLA~SkqkH-#TFhhZg|1%lm>e(bgfE^s+vc`P&#Vbw zmin!Oj`0OHg|gS2tDbC5Yr9|#t>j0)GEm0=(~Dun65U}|_S1t-uoh{{7l(U)sMeDR zM_E9cr0*vQB$d*LF^}GJr+6tHL;iW(e>(5wSXik@+k^;8)gh(pZfCyRPK%O>cwQUX zb*s+<_h5_>FJ>n%5Aq9slBB)k{&kMJI#p|AhfDye-|w%Xz;Ev8rJPtp!U9tTUtA4} zzkapV^xH4}AOGM&cyq&<5$w%s$4+A2>y)p!PYSU{1}A+(Sh0eriB$5j1ns-upx6wu zckfQULqT#a@FNf>U7TJVK*s#P1Pjr1^9G)~sq{(|UI{Neuv3ajV#ehvV_y0xcS%3A`6B!a@iNS` zhN!7x?|edG|AXoObjx0a}Vq9tMpm#31{uR+Ky=e??f#xd7G? zKH-gyI`MeiO!b*Za>~Dkj*A{|@F1kbsyVfB(&M?l~U!tF?dIvOi=moMWbv+8o70L}`P# zdbYkXr4Fy;>ABkw$kZpkp7gBnY9R1yS6j+-BVYbe5UpCx(ILpgs;wNz5tX+9k26ZG z(FN+xMF*LYHGhGxLNm*SDe-R>ou~5u)v^GD=|EA?h35qh!{hVFVEeEd8GmE+iF%uM z)*U5&$|Z$j;aFkR{E9fGS9arEd~ z%~GIvx&5!=CC0^xzxubs1u~YVQ3?2GpPGT#T=q(>fP#E$^|nogHsjI%#GgG;QOMJgwmV`@*f=-q8MY#}TS3W;j{8?ip=+%#4RQq{+krJusX+n6q*B3irKX z%oF(6>a(D@%vE(BRE=z2r3AQ!=wZf-hjPnvzHnJ<<7f$kMMJDK-+4XINxl2%0HF@M z8vd4@?$xcyH<`1!UC%bI2v-qJ@}FGxTs8{Z(1s2cf3L`oVB!H9A3~*1`d?ik5MFzF zq0QwE#=Ub6Xt8rT8I(I0U`Pu-pRC&f>OlO5dNrXZg5Kw8$Jso|pgB>RUkQfQSo`#aY4_Q7m>L@94BYG4viYor;4Mc45F>$8L#dX3kBSCw2U)xkhX3~7cM@RA| z4lUCP=3hN-^nJt{Z4}zG*cZdaEhhG8l?`{G9IW@YZ-H1f{(u0oB|&H7Cd_$|HA&}=-aTY$z0X!HGzZaNN0AUH3e z1H5}%oq%zG8wgnj@PQ77coM=MM_^J~>hHjasUY8NHHOv8l)DJoNkSrl>6KCW99DOE zdi1*KM`lfNdeIu!;$b9cp&m!C0{JVy(Q?NczX?UF8KHQdN7CkhCEL@VJmwHtDhDk4 z1reolf*MB^H4DK>@(qj;;a2>qykTQHi8WLW`T{UI4tTNm{TpmK%9lp}pt+@`_;G`$ zCQM}0YkyGB1a#AJC$H5X&W9Hfa0d7hqkf=S`=rD9*^K*t#W<-%Ky=jhS5DT=e`eYY zTx5T!n^XO%2>+8-`a^x_m`Rer>?|MRUeSnyt+@!ePW~ zhyA3h6yzqWHcPMfp3(8$`relKTV79#nV%@7T*Wec-0QT3M|n;3!%=>u-w$5aF{m~W zDKvVzA&L%rK24r6vrGOh(CIdW7!Xq7JigY}9!bTssXH$$aY&W$s{M5!g7rdQ8svPo z_PSKK`(G`<$1+%gf;Hg}59+UyHD1VXwqo3Srj)fOYTEnZvFE(tp&FuYYbevDH}={J zL%y4Gh7-HUqY|RdTVUP>MKP1TmRY|X)fwsah{?l=ET4jL%G{S9Rw^!sc)^~T-2B9S z@=$@ksMW$eY^UBvvHpH|A;pR=e%J@-C-Js|8nY>?MsHyk1_ZamXQ1hqMg`BG)2(p7 zSyJ3hs08vjkICVb%?T}cc68&$x)uM6o{k~0NRrKp=UnZ4t&8$=ZUVDX=6{;f4zg;N zXb^kYI_w=#Ng)7N^i&o9r@5+97>;$}Y+6=5Mlpg){1Iwx{(xUJB6)j0z=l?ldnfyS|IFVH>hRUBjzQ(=IyN zsZ&G5QuWOD-!d0hR53*Dd-3peVG^Z&)grMCsrAoJr~W?5aRT00JZaO_UnzfGo_)9t z1w6&Id{O=0D@XDEGiaxHZ`sl75vqzt$pa#8%B|C2 zT0!;7y*@R^!iPfmw-l$!7@|V=U9J}yVlxlkb^tbMv|HX0qPr=Op#MFs} z;uC!n>;@5)ZJ@SF4|6J_|F6BTjEl0{+8+=>Kt)ABNqta4LS*O~0RcfmLDHeSyJ0}7 zhY(Pd97Lp~rAtymVn~s07(%3m8W`Zc2lX!p^*O(DKK$P=?ysMDVz909#8FRlTyITze3P?IW!7a$y%G_NF9bH(QaXtw2+w@Hp zOxBQc-RyqIc1{7?^72$bAUdvjFNASd5D>G*IOI->3ks&IU=9;3*sX>j+m(MR{KCu1%74u(nt~vuEzrJ3pX4P^)GNJ5NpcX`MOzVl+6}5odvA} z0dW4mo=*6_e}0n84J+>3j8%iB_KY>hj-Ri54PCcrLx0|%r zU~ViaNNEb~Xz~&_1v+)&xMt5#BMEp<{0A~Z{JT7YfAC%ZG~Md|yTGjW4#J!kMcgO< z;h?;@s&?m5-33`d;(pOI06@RKN<{7wI+popUqzdbKH?;{N|G+5Ehpfv~W2n@|O9+gvoEkhra^t zC%&wOZw$Q}5x4W9<-_9rbZE%(S+N9_R=XNawh6r7zm|!Gn*qx=rMK8z`|Y4-S-{MFax}?}wLv!V$1Md`?BJd_ zHIBzEKURM2Hcx{30*^yXRJ@Q<*5etG{{;I3&KE$qsq`BM?++2ke~J|VX^#JiyVlx* z+-k#Y7SkN8Y3&%JQx8NEXcAEgOH*`cszw7GzP9Cg7TREU+4-%ngi=E0mw_BM;dt4a z{m|N5<{3rN&YEks$@8G&ABdn%qSOJrqog16o^=iFO4K9Yb2Y`nKnEHK@L51{kk z(FiIKwJP289>-TF81>ru^!Bm4d~leN#_CsjR(9?CBAEPABR$JKz{<4~O6?Zda zl0z<=4d&JqWm!FCgx+1<;6jwtDZlrccM4^?@V*q*Ob{B)JB|+W1|Ig zSx`=rczLt-B^xQ3B$X!S=jqhM8`o$Wt~{2`^%m@OU7%j%(->$}R!L*xoDn{4nBc}R zlRN@ zeQ7IlGKi3w48vu02fV1Z%AWg1ZNn_wMaHtdJp7l_gdA&%DHtk+p1#8Gv#ZKiwgjiL zMlrC@wQO}d<#Lfg%r*JH*rfFLLkz@!@{mtqI)M(v$#G;6s4=ZYa8b#XH? zp)r|)dypK*`LS_Rd{*z^t?RtCRhPA%q2qsXase~w?N8Z+HXJ%z{_xemP-F8R{c-G+&>s-AP;?6{mT{$d}TS3tQthb9%_c; z>-8x|4HQ9OvOgk-*!4p5owt)ng(?V-fb-f@)97WR9l)Mz4x!XS<3kPj^SBIz9aXK? zQvq+Q&OPd3vv*y|FgM5%bywLSoDGE>xH|vh3y`|W zwZ>6#m3ocNfx?^4Bx%8HsZ;GC_n&t}6WF8-v)D|J%S5NGcObgMjTZN!#_Ec=swV_G zFAc*bT{dO$3mMr=xT9lw9adb3sldNrme?tILHruF(@wOMkUEBhFkb9oGzX^-_X(H8 z?%x3D4H&~pxB!SOY!kGD-r;Y1R=dY6owatEKv8A+c(8ugay zrfb6Qm2>^ep;YXKeHIKkP+Spm+2OKYy>%JFaH^s@lcau2w4V1_pO0L*bE@mW-AdY; zGG+>I_e<#JZR4+@lkOryZc1@6B4QEJ;+sxkUp<=KE8ZccnC_yu4aa&y9oENb`?|Rc z(;jrE#Ineg?XUK9HZXUKQro%_20C=}Z?>Cpy4<4py0jl*|I5GD|(yr*m?NBoKi2_i!`0Dg*g3SK>EI$6O!O4i#O0lvM zccFy%&=<3kE9m!s$-UXHusbU}kmplDPs0&4U8Cjmsy@QZL-%0&`CaiDd4^2;1TC>T z8e{~y4~v9PzD)FKD`PVA5idLWkmjeQHTjGH2^}$`MQ>-r4rdry}*b+avihOi(lPC)v?Yfo`$}zeY^3DxGm4`miOrj*!2OT?gkmBH6iOO4T0HUWC-m2MPuB@D-hzTu)Ooy-ZiKoEAot=yn~90cW$LeI0*-a?Vmu9d&5@M1Ub%YQ80 z_(9G80k#bh&GfbkLe*ofC&THoEGIgpXqYkwM@Yd>za~@CKTO6^D)9&s>VD=U1#RuD z*|hN;7LC##cT+JPqi^GImLrvCZjP?~%58|GjP?-mWoueaRxO+d;I?Z zl?GJi0rM%#SMytV_FpiXVx~>^oKIXN)(P0|CFwJgO^EhbSvU3Afn6RRt0=VYEr~=% zl*3aCm`!DW19qX}w67_biFsVzRke_54DDDFH*LCa!+a4CE5vqvz92$m*hI5|veRJh zRYacsUuWjbi_}8(gE$Qqo)00yccV>f%8$VztFfF9kqndL~(oL zmz2fa>cD!2f2(0WDCl~4g7%(`Wuwqcf5{GESpRE#wgL8Z==GQHF|2<8=qzA1kFttD z@285gv+8%KEiN73qX0fZ_)Bu{gU;;MIeFe{3|jlO6tC_tnMPPSBi97=SQ9S$bzpLi z^JDxmPwY>wMFRr3^5*-1gi~d6!@&15?IcEiT|=7W4Cve zO7IL{s#icyit)akD4Z8`+G&)_RT(N(9^HNJ-vz8OB6pfF_N<3E`WLZ3;OIws z7XmPf4{WavU!_J6Zgv%A~gfuYWekdnh;|GOFYoULLvsija8yg6HOY=Kco z&u8-j5q57uT<;`3b0fX5?_t&~qfop5k#Dsi2}&9?h-(D3!sZ_(_?$`lImKANGOG}T z39!=eUwV3^?9JP_f=U(Zm z%r1!trJnmtu~8Z(QV7|6SKm*4@~lQ*TpQ4Ml(S`$$KP)^f{g|jn)GHoWMW3978mEl zos%?Kc+KVIw0w_UcRkyJHJY6klEstBhzvvM%mj)_W%KAmc@KfPBNG7N3V)@CJxhib zOM9KuP%z6j@Ac)`SNb3%Z(_ZoIn|$|LrK{!ePZS^kiCI?EUdJ9C%uXqR4EwAKi%x*k~e5#ZhEhE zyg!oB33K8AaC@I^qOYZZhuXQgFve3-a4ye$y9QCdW_DHucY0yBb#1hwg6R-t&l68AOYBI z_l^_1Ia;;l_zbonofG-a$B{w!9%r+HN^OqJnpGEOG+~bgX7kq&;Fhf(5s%?$bhER; zYE@C`_DRst?VkcY)7VDx*$?Zg{gme)`{g5F{)tTSB4_*hdc`=JL;12J!6K9UJm81L@b2z_O)%;KyZ0->j-JQ(0Oy$& z3~k6Jk$U;N%~bEhVBANl`u7qiAumwYd%L>?J0t37gxTZmK+Vo4X@ksRq>uc|Tc|!= zTZb^vUzboghvh7T#@4MvT@^VL%0O-6e;3j{wg#7V4Wp?fx01Y3LYZ#8iGZ?3VhswQ z+v3{et6wcGYs_y8tr((Oq8wK6nvpwDB5{E8$V_Q0BmAARElBC~j6+WU)_^BBku1QY zQJQw%vs9)$FK>MRQQ>&|7#Gm=I~&x>1HeojeizV_D|{L*1#!IPY`geq1ReM5-u|Mt zzjUZhF(f6uxGce0?4C)T8qfR*j}lk~M!P=_)4yeXCFnIY2fO%SB-rHhj}{tpR%bb} z)!NmY)hhe?sOa}`5Xw; zyIxe-0oc87?TH;LNLx)=8k?RtQ!QRRnJH4e5%<)-^$Jn?W1WgSFT-Usr0q?^tXp%! z3*JT9;q*VEyc@Vlzfu}&(-vQC>HxVB(<4Ig!?c;hCib%H6>PX>NLov(G-BzmTb@t~ zO?1E(bYiyI$7k#!0hB-Nh$+QKkg!u=Qzef4 z?Gr$d%M)Ow3#@xscJ#*X0$dzW4)BC!O#>V@P^l=e8e)TR0Ey=~_UsVAj24oj@pwno z2zb-)=bPV>v@8Isn8W29D6aG6`(g^LBcMk>ve@@!2GlR`J%#HD8mH#-_k}LC5ordYc&OQL1d995kYKr4OSDYTL(+ZDH_7!XYC${1;dBGoOJAqS37 z7Y^}m>iLq+yK12Dye)rBDnYEa_~;4%1y~^OAtD*g;rlaDsJprr;0{S`_es4`kd5f~{@g1;Uw?yh z+4zFt8X2=Xc~&(UzOspWR!?$E)K``GyRmmUFN%LYJK54}(#us>3mtEek-+d)s7?s8265CzVUUYfup!(|01 zlJ2HFnZMHT7AmGxnqfc*{+tXLe9wG=4}EmgX7)kDqtEcIH4sGilennNg z_bXx!>C<;5BQy5%+;!dsT+=hw?RDkdesRKE3jqwFvkmFs~w0L^`LFypRhVnGYMFQ5P;Zsnd9$Nv?)y%z=Q}2 z#xjL*RJRhKsIX?}@K@k0u<^eyVy$yd4%H)|22eWH7s6ZFRLWAMAL#*YC5dDyES zL`U$L`PefEx3bRYPK+t1!DwL;P^W&y@}-6P0=Un~HtQ8bt6g=h!1I0Mj@&OtlvHMU z3LdE1224D1r}O;EeIO7OWTZ%Fy=UEY5FNtkv`$CpM|41^Fu-7R;_I`PM5y1JjhVpY zS!0nYEa&!@o7cnJIV^eQsPFV(3au!Foomi7!0nqJW^|~&sJKh#1<$>9M#Mcv7;H-x z^tmqy{Yw1RN$e;WM55KX3EN8R-$ zgainKMkA;aZ}>dZ2P1>5T+hM2inX+AmDB9gIQEA6O!lKnW=gJuSzW6fvB)&X3O>wP z2k5ibmd7Dw_S5wfVEz=ImuUz}nk}Di0`U&C(|>m23d-H9MRkN~lea2`Ak=!#-#r)B zO9u73C?-S29T8}k)mi71rBUIgaJPId4YD_%AW96=AGV{ScJuZ^D_bpcKP6m%cZ-tBvkZ_MgeR?stEb?mv$Wm{f8Q5Z-sK_f71kh zd%s4qv&pElN$B9U0vBXApDh2wgc3k${stTyKg}9V2V!jp?qAT< z0nUFvWYVFZ(`V@l5Jr_M>;ZXQb$LjFR&VTRz&kLXa0LoG62)++MCpd`Jg2h*VBzS! z-q<-~4z|LEGd*08Y{7GtY53XRu7F3Q1_#F^R2}U8c;gYV=SqZ>7x0GaC9IgA{Y-#W z*aS!4I7nWs*(IMHM)m~~owUI7vXN7vq7zjcR; zcvfs#5L6=uxEa{_O&r7CUZBGapl?7!0)WnfKybhsk>92px(bLL2sAq@h9JqIJ-o~S zlVu14xdU|r7ap|T0FH>qCkEqVf2mtT61=;z1w3{l0(SQsX^;dIPd&6R0e=wa;+;DU zj5C(U|M2smVWR)~*Fx9*)qp-qH$PI?vRfAr5TwhYsI0qyZQN_bS@A)x3WUPFz6LA6 zKKGqEwDykdPGK%-r$WOCoXt` z&K5Rol88&7sJ7l$11Pd^4kwMm8=PFN1-B-U>ON7M0yMHj^Xf;0`96tPAtkn}GVx*VYRbWTL>xb_4;*>Zuca#(`qx%-`Jj0 z`-787$Y+PNF(0L>wk?IvK^Mw8JP>463}P2sSn`K3g=|{Mv4yAlm{jM271x|! zQ(r0CYPioC^8wgO=C7!4*e{XKwBL(=fqb4gzE9QLaWM?<@Y;-!qPAR>ifK7ft16zn z*D2}^7^DYxv{nr?NlTMep<*|rR#htptv-ShNNXYYWT*9AUowy_6|-`@hLxupT|V(0 z>sAySBX`1nEUk;(qj!pR zEr?H^k$Pk(dl#?ZxiKz!f)mF(_b9ntg7>@I` zo=Zztl;ODF1e+yx?EYuYYGR{?4vbNZKw?r1s|{P^Imn@=-iBY@>*YS25XZb%=;kzM zrBE)&!N}-{Q9ss40oeeGvH#^q2>?pRI0vGtSDiV(bzTRi`r#Cc3fNJ6FS