The plpa documentation states that --enables-included-mode will not
build executables, but in practice, the option does not disable
executables. The patch below corrects this defect by giving --enable-
included-mode precedence over enabling of executables.
Brian
--- config/my_plpa.m4 2008-03-08 02:44:06.000000000 -0500
+++ config/plpa.m4 2008-03-08 02:50:38.000000000 -0500
@@ -162,12 +162,23 @@ AC_DEFUN([_PLPA_INTERNAL_SETUP],[
plpa_emulate=no
fi
+ # Build and install the executables or no?
+ AC_ARG_ENABLE([executables],
+ AC_HELP_STRING([--disable-executables],
+ [Using --disable-executables
disables building and installing the PLPA executables]))
+ if test "$enable_executables" = "yes" -o "$enable_executables" =
""; then
+ plpa_executables=yes
+ else
+ plpa_executables=no
+ fi
+
# Included mode, or standalone?
AC_ARG_ENABLE([included-mode],
AC_HELP_STRING([--enable-included-mode],
[Using --enable-included-mode
puts the PLPA into "included" mode. The default is --disable-
included-mode, meaning that the PLPA is in "standalone" mode.]))
if test "$enable_included_mode" = "yes"; then
plpa_mode=included
+ plpa_executables=no
else
plpa_mode=standalone
fi
@@ -183,16 +194,6 @@ dnl else
dnl plpa_fortran=no
dnl fi
- # Build and install the executables or no?
- AC_ARG_ENABLE([executables],
- AC_HELP_STRING([--disable-executables],
- [Using --disable-executables
disables building and installing the PLPA executables]))
- if test "$enable_executables" = "yes" -o "$enable_executables" =
""; then
- plpa_executables=yes
- else
- plpa_executables=no
- fi
-
# Change the symbol prefix?
AC_ARG_WITH([plpa-symbol-prefix],
AC_HELP_STRING([--with-plpa-symbol-prefix=STRING],
|