Method: MakeMakefile#find_executable
- Defined in:
- lib/mkmf.rb
#find_executable(bin, path = nil) ⇒ Object
Searches for the executable bin on path. The default path is your PATH environment variable. If that isn’t defined, it will resort to searching /usr/local/bin, /usr/ucb, /usr/bin and /bin.
If found, it will return the full path, including the executable name, of where it was found.
Note that this method does not actually affect the generated Makefile.
1733 1734 1735 1736 1737 |
# File 'lib/mkmf.rb', line 1733 def find_executable(bin, path = nil) checking_for (bin, path) do find_executable0(bin, path) end end |