Fabien COELHO <coelho@cri.ensmp.fr> writes:
>> ifdef USE_PGXS
>> PGXS := $(shell pg_config --pgxs)
>> include $(PGXS)
>>
>> but something like
>>
>> ifdef USE_PGXS
>> PG_CONFIG := pg_config
>> PGXS := $(shell $(PG_CONFIG) --pgxs)
>> include $(PGXS)
> That would break existing Makefiles that use the "please take the first
> pg_config in the path" feature, which rather make sense (it just means
> that you want the extension for your current postgresql).
How would it break them? The default definition is still PG_CONFIG =
pg_config, this just moves where that definition appears.
regards, tom lane