1dnl -*- shell-script -*-
2dnl
3dnl Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
4dnl                         University Research and Technology
5dnl                         Corporation.  All rights reserved.
6dnl Copyright (c) 2004-2005 The University of Tennessee and The University
7dnl                         of Tennessee Research Foundation.  All rights
8dnl                         reserved.
9dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
10dnl                         University of Stuttgart.  All rights reserved.
11dnl Copyright (c) 2004-2005 The Regents of the University of California.
12dnl                         All rights reserved.
13dnl Copyright (c) 2006-2010 Cisco Systems, Inc.  All rights reserved.
14dnl Copyright (c) 2007      Sun Microsystems, Inc.  All rights reserved.
15dnl Copyright (c) 2009      IBM Corporation.  All rights reserved.
16dnl Copyright (c) 2009-2013 Los Alamos National Security, LLC.  All rights
17dnl                         reserved.
18dnl Copyright (c) 2009      Oak Ridge National Labs.  All rights reserved.
19dnl
20dnl Copyright (c) 2016      Intel, Inc.  All rights reserved.
21dnl $COPYRIGHT$
22dnl
23dnl Additional copyrights may follow
24dnl
25dnl $HEADER$
26dnl
27
28
29AC_DEFUN([ORTE_CONFIGURE_OPTIONS],[
30opal_show_subtitle "ORTE Configuration options"
31
32#
33# Do we want orterun's --prefix behavior to be enabled by default?
34#
35AC_MSG_CHECKING([if want orterun "--prefix" behavior to be enabled by default])
36AC_ARG_ENABLE([orterun-prefix-by-default],
37    [AC_HELP_STRING([--enable-orterun-prefix-by-default],
38        [Make "orterun ..." behave exactly the same as "orterun --prefix \$prefix" (where \$prefix is the value given to --prefix in configure)])])
39AC_ARG_ENABLE([mpirun-prefix-by-default],
40    [AC_HELP_STRING([--enable-mpirun-prefix-by-default],
41        [Synonym for --enable-orterun-prefix-by-default])])
42if test "$enable_orterun_prefix_by_default" = ""; then
43    enable_orterun_prefix_by_default=$enable_mpirun_prefix_by_default
44fi
45if test "$enable_orterun_prefix_by_default" = "yes"; then
46    AC_MSG_RESULT([yes])
47    orte_want_orterun_prefix_by_default=1
48else
49    AC_MSG_RESULT([no])
50    orte_want_orterun_prefix_by_default=0
51fi
52AC_DEFINE_UNQUOTED([ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT],
53                   [$orte_want_orterun_prefix_by_default],
54                   [Whether we want orterun to effect "--prefix $prefix" by default])
55
56
57])dnl
58