1 dnl -*- shell-script -*-
3 dnl Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
4 dnl University Research and Technology
5 dnl Corporation. All rights reserved.
6 dnl Copyright (c) 2004-2005 The University of Tennessee and The University
7 dnl of Tennessee Research Foundation. All rights
9 dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
10 dnl University of Stuttgart. All rights reserved.
11 dnl Copyright (c) 2004-2005 The Regents of the University of California.
12 dnl All rights reserved.
15 dnl Additional copyrights may follow
20 AC_DEFUN([OMPI_CONFIG_SUBDIR_ARGS],[
22 # Invoke configure in subdirectories.
24 # $1 is the name of the variable to assign the output to
28 # Make a list of command line args --eliminate the --srcdir and
29 # --cache-file args, because we need to replace them with our own
30 # values when invoking the sub-configure script.
36 eval "set x $ac_configure_args"
40 if test "$subdirs_skip" = "yes"; then
44 -cache-file | --cache-file | -cache | --cache)
49 -cache-file=* | --cache-file=*)
54 -srcdir=* | --srcdir=*)
58 *\'*) subdir_arg=`echo "$subdir_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
60 subdirs_args="$subdirs_args '$subdirs_arg'"
70 subdirs_str=$1=\"$subdirs_args\"
77 unset subdirs_str subdirs_skip subdirs_args subdirs_arg])dnl