autoconf substitute path in script
===

I have a project where there are several helper scripts that call the main executable with different command-line options. Right now, the scripts assume the executable is in the same directory, so the calls to the executable in the script look like `./my_program`. This, however, is not very flexible. What if the program is installed in the `/usr/bin` directory, and is not in the current directory?

Is there a way, using automake or autoconf, to generate these scripts, and substitute the calls to the executable with either `./my_program` or just `my_program`, depending on whether or not the executable is already installed?