Commit c92ab3d
committed
configure: robustly parse pg_config version for PGDG/PG18
The existing version detection relied on a strict sed pattern that could fail
with PGDG-style pg_config output (e.g. "PostgreSQL 18.1 (Debian 18.1-...)"),
causing ./configure to error with "Could not detect PostgreSQL version".
Switch to extracting the numeric major[.minor] token from `pg_config --version`
and then normalizing 10+ releases to the major version. This makes configure
work reliably for PostgreSQL 18 and packaged builds across distros.1 parent 6e314ee commit c92ab3d
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2549 | 2549 | | |
2550 | 2550 | | |
2551 | 2551 | | |
2552 | | - | |
2553 | | - | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
2554 | 2555 | | |
2555 | | - | |
2556 | | - | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
2557 | 2559 | | |
2558 | 2560 | | |
2559 | 2561 | | |
| |||
0 commit comments