Bug 477001 - Configure error on solaris cmp: illegal option -- b. wtc: review+ kairo: review+ benjamin: approval1.9.1+
authorLeon Sha <leon.sha@sun.com>
Tue, 10 Feb 2009 12:13:58 +0800
changeset 23219 798cdf019ef7fbe74d6478e663cd2ebd9ed7d11c
parent 23218 54baaa3678043ce4936b6dcdff1f9bf38cc672d5
child 23220 2d248b150ce67b654107b412c16489d6de76dbb2
push id655
push userleon.sha@sun.com
push dateTue, 10 Feb 2009 04:14:15 +0000
bugs477001
milestone1.9.1b3pre
Bug 477001 - Configure error on solaris cmp: illegal option -- b. wtc: review+ kairo: review+ benjamin: approval1.9.1+
configure.in
--- a/configure.in
+++ b/configure.in
@@ -8356,14 +8356,14 @@ if test "$MOZ_MEMORY"; then
 fi
 AC_OUTPUT_SUBDIRS(js/src)
 ac_configure_args="$_SUBDIR_CONFIG_ARGS"
 
 fi # COMPILE_ENVIRONMENT && !LIBXUL_SDK_DIR
 
 dnl Prevent the regeneration of autoconf.mk forcing rebuilds of the world
 dnl Needs to be at the end to respect possible changes from NSPR configure
-if cmp -b config/autoconf.mk config/autoconf.mk.orig; then
+if cmp -s config/autoconf.mk config/autoconf.mk.orig; then
   echo "config/autoconf.mk is unchanged"
   mv -f config/autoconf.mk.orig config/autoconf.mk 2> /dev/null
 else
   rm -f config/autoconf.mk.orig 2> /dev/null
 fi