aboutsummaryrefslogtreecommitdiff
path: root/src/apps/proj.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/apps/proj.cpp')
-rw-r--r--src/apps/proj.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apps/proj.cpp b/src/apps/proj.cpp
index 6368ef2c..f93164e0 100644
--- a/src/apps/proj.cpp
+++ b/src/apps/proj.cpp
@@ -303,7 +303,8 @@ int main(int argc, char **argv) {
if ( (emess_dat.Prog_name = strrchr(*argv,DIR_CHAR)) != nullptr)
++emess_dat.Prog_name;
else emess_dat.Prog_name = *argv;
- inverse = ! strncmp(emess_dat.Prog_name, "inv", 3);
+ inverse = strncmp(emess_dat.Prog_name, "inv", 3) == 0 ||
+ strncmp(emess_dat.Prog_name, "lt-inv", 6) == 0; // older libtool have a lt- prefix
if (argc <= 1 ) {
(void)fprintf(stderr, usage, pj_get_release(), emess_dat.Prog_name);
exit (0);