I am writing an app that will hopefully get some distribution. I'd like to check for PEAR as it is a dependency of my app, and am wondering if there is a good way to it.
Once done: if PEAR: what's the installation prefix if NOT PEAR: die gracefully