a210b4ae06
This macro is a wrapper around OMPI_SETUP_PACKAGE, and provides common functionality that I found myself doing in multiple components. Someone may want to convince me that we should just wrap this all in OMPI_SETUP_PACKAGE, but I did it first as a separate macro because so many other places are already using OMPI_SETUP_PACKAGE and I didn't want to update all of them. This macro does the following: * Assumes that this component should be built by default if all headers and libraries can be found * Adds --with-<name> and --with-<name>-libdir options to configure * Sanity checks directory names given to the above options (i.e., look for a token file in each, but only if the directory argument is given) * Assumes that if --with-<name> is supplied and we can't build the component, it's a fatal error. * Assumes that if --with-<name> is NOT supplied and we can't build the component, it's NOT a fatal error. * Run OMPI_CHECK_PACKAGE (check for the specific presence of header files and/or libraries) to determine if the package is available * Set <framework>_<component>_WRAPPER_EXTRA_LDFLAGS * Set <framework>_<component>_WRAPPER_EXTRA_LIBS * Set and AC_SUBST <framework>_<component>_CPPFLAGS * Set and AC_SUBST <framework>_<component>_CFLAGS * Set and AC_SUBST <framework>_<component>_LDFLAGS * Set and AC_SUBST <framework>_<component>_LIBS This commit was SVN r20746.