[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch: (query): no-dependencies option
From: |
Tom Tromey |
Subject: |
Patch: (query): no-dependencies option |
Date: |
21 Jan 2002 18:02:16 -0700 |
Alex, Akim (et al) --
What do you think of this?
The idea is that if `no-dependencies' is specified in configure.in,
then we don't need to run the configure-time dependency checks.
Tom
Index: ChangeLog
from Tom Tromey <address@hidden>
* m4/gcj.m4 (AM_PROG_GCJ): Don't invoke dependency code if
no-dependencies option is set.
* m4/init.m4 (AM_INIT_AUTOMAKE): Don't invoke dependency code if
no-dependencies option is set.
Index: m4/gcj.m4
===================================================================
RCS file: /cvs/automake/automake/m4/gcj.m4,v
retrieving revision 1.7
diff -u -r1.7 gcj.m4
--- m4/gcj.m4 2002/01/20 21:37:19 1.7
+++ m4/gcj.m4 2002/01/22 00:43:25
@@ -25,5 +25,5 @@
GCJFLAGS="-g -O2"
fi
AC_SUBST(GCJFLAGS)
-_AM_DEPENDENCIES(GCJ)
+_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES(GCJ)])
])
Index: m4/init.m4
===================================================================
RCS file: /cvs/automake/automake/m4/init.m4,v
retrieving revision 1.42
diff -u -r1.42 init.m4
--- m4/init.m4 2002/01/18 21:12:55 1.42
+++ m4/init.m4 2002/01/22 00:43:25
@@ -87,7 +87,9 @@
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
AC_REQUIRE([AM_DEP_TRACK])dnl
AC_REQUIRE([AM_SET_DEPDIR])dnl
-AC_PROVIDE_IFELSE([AC_PROG_][CC],
+
+_AM_IF_OPTION([no-dependencies],,
+[AC_PROVIDE_IFELSE([AC_PROG_][CC],
[_AM_DEPENDENCIES(CC)],
[define([AC_PROG_][CC],
defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
@@ -95,4 +97,5 @@
[_AM_DEPENDENCIES(CXX)],
[define([AC_PROG_][CXX],
defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
+])
])
- Patch: (query): no-dependencies option,
Tom Tromey <=