@@ -58,17 +58,25 @@ OPAL_VAR_SCOPE_PUSH([prrte_setup_internal_happy target_rst_dir])
58
58
AC_ARG_WITH ( [ prrte] ,
59
59
[ AS_HELP_STRING ( [ --with-prrte] ,
60
60
[ Enable/disable building with PRRTE. Supports 'yes' and 'no', defaulting to 'yes'] ) ] )
61
+
62
+ AC_ARG_WITH ( [ rte] ,
63
+ [ AS_HELP_STRING ( [ --with-rte] ,
64
+ [ Enable/disable building with RTE. Supports 'yes' and 'no', defaulting to 'yes'] ) ] )
65
+
66
+ # Checking if --with-prrte and --with-rte values differ.
67
+ AS_IF ( [ test -n "$with_prrte" -a -n "$with_rte" -a "$with_prrte" != "$with_rte"] ,
68
+ AC_MSG_ERROR ( [ '--with-prrte' and '--with-rte' are both defined but have differing values. Please specify one or the other.] ) )
69
+
70
+ # Setting --with-prrte to --with-rte's value to avoid duplicate code
71
+ AS_IF ( [ test -z "$with_prrte"] ,
72
+ [ with_prrte="$with_rte"] )
61
73
62
74
# We only want to accept 'yes' or 'no' as args for --with-prrte.
63
75
# If user does not specify, it defaults to 'yes'.
64
76
# We no longer support external prrte builds.
65
77
prrte_setup_internal_happy=0
66
78
AS_IF ( [ test "$with_prrte" != "yes" -a "$with_prrte" != "no" -a "$with_prrte" != ""] ,
67
- AC_MSG_ERROR ( [ "--with-prrte option defaults to 'yes' and supports 'yes' or 'no'. External PRRTE builds are no longer supported.] ) )
68
-
69
- AC_ARG_WITH ( [ prrte-bindir] ,
70
- [ AS_HELP_STRING ( [ --with-prrte-bindir=DIR] ,
71
- [ Search for PRRTE binaries in DIR. Defaults to PRRTE_DIR/bin if not specified] ) ] )
79
+ AC_MSG_ERROR ( [ '--with-prrte' option defaults to 'yes' and supports 'yes' or 'no'. External PRRTE builds are no longer supported.] ) )
72
80
73
81
# Determines if user wants to build with PRRTE.
74
82
# Defaults to building with PRRTE if unspecified.
0 commit comments