Commit d38b3a8d by Phil Edwards

configure.in: Cache the results of testing for cmp's capabilities.

2003-07-20  Phil Edwards  <pme@gcc.gnu.org>

	* configure.in:  Cache the results of testing for cmp's capabilities.
	* configure:  Regenerate.

From-SVN: r69607
parent 13cb8e55
2003-07-20 Phil Edwards <pme@gcc.gnu.org>
* configure.in: Cache the results of testing for cmp's capabilities.
* configure: Regenerate.
2003-07-20 Mark Mitchell <mark@codesourcery.com>
PR debug/11279
......
......@@ -630,21 +630,22 @@ fi
# skip bytes instead of using tail. The test being performed is
# "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2"
# but we need to sink errors and handle broken shells.
AC_MSG_CHECKING([for cmp's capabilities])
echo abfoo >t1
echo cdfoo >t2
if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
make_compare_target=slowcompare
AC_CACHE_CHECK([for cmp's capabilities], gcc_cv_prog_cmp_skip,
[ echo abfoo >t1
echo cdfoo >t2
if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
make_compare_target=slowcompare
else
make_compare_target=gnucompare
fi
else
make_compare_target=gnucompare
make_compare_target=slowcompare
fi
else
make_compare_target=slowcompare
fi
rm t1 t2
rm t1 t2
gcc_cv_prog_cmp_skip=$make_compare_target
])
AC_SUBST(make_compare_target)
AC_MSG_RESULT($make_compare_target)
# How about lex?
dnl Don't use AC_PROG_LEX; we insist on flex.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment