forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb21c569
committed
Further improve consistency of configure's program searching.
Peter Eisentraut noted that commit40b9f19 had broken a configurebehavior that some people might rely on: AC_CHECK_PROGS(FOO,...) willallow the search to be overridden by specifying a value for FOO onconfigure's command line or in its environment, but AC_PATH_PROGS(FOO,...)accepts such an override only if it's an absolute path. We had workedaround that behavior for some, but not all, of the pre-existing usesof AC_PATH_PROGS by just skipping the macro altogether when FOO isalready set. Let's standardize on that workaround for all uses ofAC_PATH_PROGS, new and pre-existing, by wrapping AC_PATH_PROGS in anew macro PGAC_PATH_PROGS. While at it, fix a deficiency of the oldworkaround code by making sure we report the setting to configure's log.Eventually I'd like to improve PGAC_PATH_PROGS so that it convertsnon-absolute override inputs to absolute form, eg "PYTHON=python3"becomes, say, PYTHON = /usr/bin/python3. But that will take somenontrivial coding so it doesn't seem like a thing to do in late beta.Discussion:https://postgr.es/m/90a92a7d-938e-507a-3bd7-ecd2b4004689@2ndquadrant.com1 parent4de6216 commitb21c569
File tree
7 files changed
+267
-52
lines changed- config
7 files changed
+267
-52
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 |
| - | |
| 7 | + | |
11 | 8 |
| |
12 | 9 |
| |
13 | 10 |
| |
|
Lines changed: 23 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
4 | 22 |
| |
5 | 23 |
| |
6 | 24 |
| |
7 | 25 |
| |
8 | 26 |
| |
9 | 27 |
| |
10 | 28 |
| |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
| 29 | + | |
15 | 30 |
| |
16 | 31 |
| |
17 | 32 |
| |
| |||
41 | 56 |
| |
42 | 57 |
| |
43 | 58 |
| |
44 |
| - | |
| 59 | + | |
45 | 60 |
| |
46 | 61 |
| |
47 | 62 |
| |
| |||
229 | 244 |
| |
230 | 245 |
| |
231 | 246 |
| |
232 |
| - | |
| 247 | + | |
233 | 248 |
| |
234 | 249 |
| |
235 | 250 |
| |
| |||
238 | 253 |
| |
239 | 254 |
| |
240 | 255 |
| |
241 |
| - | |
242 |
| - | |
| 256 | + | |
| 257 | + | |
243 | 258 |
| |
244 | 259 |
| |
245 | 260 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
10 |
| - | |
| 9 | + | |
| 10 | + | |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
0 commit comments
Comments
(0)