[mpich2-commits] r6758 - mpich2/trunk/confdb
goodell at mcs.anl.gov
goodell at mcs.anl.gov
Fri May 28 15:12:38 CDT 2010
Author: goodell
Date: 2010-05-28 15:12:38 -0500 (Fri, 28 May 2010)
New Revision: 6758
Modified:
mpich2/trunk/confdb/aclocal_subcfg.m4
Log:
add PAC_CONFIG_SUBDIR_ARGS
This m4 macro lets us pass command-line arguments to a sub-configure.
Reviewed by balaji at .
Modified: mpich2/trunk/confdb/aclocal_subcfg.m4
===================================================================
--- mpich2/trunk/confdb/aclocal_subcfg.m4 2010-05-28 20:10:43 UTC (rev 6757)
+++ mpich2/trunk/confdb/aclocal_subcfg.m4 2010-05-28 20:12:38 UTC (rev 6758)
@@ -19,9 +19,12 @@
fi
])
-dnl Sandbox configure
-dnl Usage: PAC_CONFIG_SUBDIR(subdir,action-if-success,action-if-failure)
-AC_DEFUN([PAC_CONFIG_SUBDIR],[
+dnl Sandbox configure with additional arguments
+dnl Usage: PAC_CONFIG_SUBDIR_ARGS(subdir,configure-args,action-if-success,action-if-failure)
+dnl
+dnl Note: I suspect this DEFUN body is underquoted in places, but it does not
+dnl seem to cause problems in practice yet. [goodell@ 2010-05-18]
+AC_DEFUN([PAC_CONFIG_SUBDIR_ARGS],[
AC_MSG_NOTICE([===== configuring $1 =====])
PAC_MKDIRS($1)
@@ -33,7 +36,7 @@
pac_subconfigure_file="$pac_abs_srcdir/$1/configure"
if test -x $pac_subconfigure_file ; then
- pac_subconfig_args=""
+ pac_subconfig_args="$2"
prev_arg=""
# Strip off the args we need to update
@@ -103,10 +106,10 @@
AC_MSG_NOTICE([executing: $pac_subconfigure_file $pac_subconfig_args])
if (cd $1 && eval $pac_subconfigure_file $pac_subconfig_args) ; then
- $2
+ $3
:
else
- $3
+ $4
:
fi
else
@@ -127,3 +130,8 @@
. $pac_abs_srcdir/$1/localdefs
fi
])
+
+dnl Sandbox configure
+dnl Usage: PAC_CONFIG_SUBDIR(subdir,action-if-success,action-if-failure)
+AC_DEFUN([PAC_CONFIG_SUBDIR],[PAC_CONFIG_SUBDIR_ARGS([$1],[],[$2],[$3])])
+
More information about the mpich2-commits
mailing list