Hello, would you like the attached patch? Stepan
2005-08-05 Stepan Kasal <[EMAIL PROTECTED]>
* m4/depend.m4 (_AM_DEPENDENCIES): Determine am_compiler_list statically. Index: m4/depend.m4 =================================================================== RCS file: /cvsroot/automake/automake/m4/depend.m4,v retrieving revision 1.35 diff -u -r1.35 depend.m4 --- m4/depend.m4 9 Jan 2005 14:46:21 -0000 1.35 +++ m4/depend.m4 5 Aug 2005 14:16:27 -0000 @@ -32,11 +32,7 @@ AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) +depcc="$$1" AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], @@ -60,9 +56,11 @@ mkdir sub am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi + + m4_bmatch([$1], [^\(OBJC\|GCJ\)$], + [[am_compiler_list='gcc3 gcc']], + [[am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`]]) + for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and