Michael Talbot-Wilson:
> I'd like to do something like
> 
> AC_PATH_PROG([PGCONFIG],[pg_config]...
> 
> followed by employing the path PGCONFIG in a shell command and
> assigning the value returned.  If it was found, i.e. if there is a
> pg_config on the system.  Within configure.ac ...
...
> I thought it was possible to execute shell commands in configure.ac
> but a few hours searching the manual has got me nowhere.
> 
> Is such a thing possible?  How?

The "configure.ac" file *is* a (Bourne) shell script, so just insert the shell 
command in the configure.ac file, and it'll be run at that point.

If they're in a conditional, you should use AS_IF and AS_CASE, not if...fi and 
case...esac; the autoconf documentation describes those.

--- David A. Wheeler

_______________________________________________
Autoconf mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to