libstdc++: Test for tzdata.zi before fallback version files.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 24 Dec 2022 10:59:26 +0000 (10:59 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 24 Dec 2022 17:51:48 +0000 (17:51 +0000)
commit8ec139af5ea9657c7517c1483c7a577815bea48e
treebe2d6568657ec53457b4b75ea40a615f2aa96ca8
parent4c3a036be5f4dd68e0e4d8fb3a152c06538f5872
libstdc++: Test for tzdata.zi before fallback version files.

Several systems/distributions do not provide the raw tzdata.zi file in
their zoneinfo installation.  However, we might provide an alternate
installation path at configure time, so that we should check for the
tzdata.zi file first and then fall back to system-specific files like
+VERSION etc. on those systems.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libstdc++-v3/ChangeLog:

* src/c++20/tzdb.cc (remote_version): Look for the tzdata.zi
file before falling back to system-specific ones on Darwin and
BSD.
libstdc++-v3/src/c++20/tzdb.cc