Before hitting bug #85214, I found that icu-config was not POSIX-compliant either. While fixing the issue and reporting it upstream[1], one of the ICU devs pointed out that the icu-config script is deprecated and that pkg-config should be used instead[2]. Cheers [1] http://bugs.icu-project.org/trac/ticket/11460 [2] http://userguide.icu-project.org/howtouseicu#TOC-C-Makefiles
Thanks for the report. Marking it NEW.
We need to get the ICU version, which cannot be done using pkg-config with the existing .pc files (IOW, there is no variable containing version that we could query).
From LO's configure.ac around line 8795: $ icu-config --noverify --version 53.1 $ icu-config --version 53.1 Using pkg-config, one can call the following: $ pkg-config --modversion icu-uc 53.1 $ pkg-config --variable=UNICODE_VERSION icu-uc 6.3 Is more needed? That's all I could find in configure.ac.
Eh, right. pkg-config --modversion is sufficient.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.