From: Akim Demaille Date: Mon, 7 Feb 2000 12:04:39 +0000 (+0000) Subject: * acgeneral.m4: Formatting changes. X-Git-Tag: autoconf-2.50~1242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63aaea568f06fc2d7fcf5ee0429ebfa8defc62e0;p=thirdparty%2Fautoconf.git * acgeneral.m4: Formatting changes. * acspecific.m4: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 29229cd0c..8a4e22776 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-02-07 Akim Demaille + + * acgeneral.m4: Formatting changes. + * acspecific.m4: Likewise. + 2000-02-07 Akim Demaille Start a new series of tests which check the semantics. diff --git a/acgeneral.m4 b/acgeneral.m4 index 95fe457db..ec908d2ed 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -1806,24 +1806,23 @@ dnl If the cache file is inconsistent with the current host, dnl target and build system types, execute CMD or print a default dnl error message. AC_DEFUN(AC_VALIDATE_CACHED_SYSTEM_TUPLE, -[ - AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl - AC_MSG_CHECKING([cached system tuple]) - if { test x"${ac_cv_host_system_type+set}" = x"set" && - test x"$ac_cv_host_system_type" != x"$host"; } || - { test x"${ac_cv_build_system_type+set}" = x"set" && - test x"$ac_cv_build_system_type" != x"$build"; } || - { test x"${ac_cv_target_system_type+set}" = x"set" && - test x"$ac_cv_target_system_type" != x"$target"; }; then - AC_MSG_RESULT([different]) - ifelse($#, 1, [$1], - [AC_MSG_ERROR([remove config.cache and re-run configure])]) - else - AC_MSG_RESULT(ok) - fi - ac_cv_host_system_type="$host" - ac_cv_build_system_type="$build" - ac_cv_target_system_type="$target" +[AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl +AC_MSG_CHECKING([cached system tuple]) +if { test x"${ac_cv_host_system_type+set}" = x"set" && + test x"$ac_cv_host_system_type" != x"$host"; } || + { test x"${ac_cv_build_system_type+set}" = x"set" && + test x"$ac_cv_build_system_type" != x"$build"; } || + { test x"${ac_cv_target_system_type+set}" = x"set" && + test x"$ac_cv_target_system_type" != x"$target"; }; then + AC_MSG_RESULT([different]) + m4_default([$1], + [AC_MSG_ERROR([remove config.cache and re-run configure])]) +else + AC_MSG_RESULT(ok) +fi +ac_cv_host_system_type="$host" +ac_cv_build_system_type="$build" +ac_cv_target_system_type="$target"dnl ]) @@ -1866,7 +1865,8 @@ fi ]) -dnl AC_CACHE_SAVE() +dnl AC_CACHE_SAVE +dnl ------------- define(AC_CACHE_SAVE, [cat >confcache <<\EOF # This file is a shell script that caches the results of configure @@ -1906,9 +1906,7 @@ changequote(, )dnl ;; esac >>confcache changequote([, ])dnl -if cmp -s $cache_file confcache; then - : -else +if cmp -s $cache_file confcache; then :; else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache >$cache_file diff --git a/acspecific.m4 b/acspecific.m4 index 2aa3fe5b4..7604649cf 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -3029,6 +3029,9 @@ interpval="$ac_cv_sys_interpreter" AC_DEFUNCT(AC_HAVE_POUNDBANG, [;use AC_SYS_INTERPRETER, taking no arguments]) + +dnl AC_SYS_LONG_FILE_NAMES +dnl ---------------------- AC_DEFUN(AC_SYS_LONG_FILE_NAMES, [AC_CACHE_CHECK(for long file names, ac_cv_sys_long_file_names, [ac_cv_sys_long_file_names=yes diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 95fe457db..ec908d2ed 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -1806,24 +1806,23 @@ dnl If the cache file is inconsistent with the current host, dnl target and build system types, execute CMD or print a default dnl error message. AC_DEFUN(AC_VALIDATE_CACHED_SYSTEM_TUPLE, -[ - AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl - AC_MSG_CHECKING([cached system tuple]) - if { test x"${ac_cv_host_system_type+set}" = x"set" && - test x"$ac_cv_host_system_type" != x"$host"; } || - { test x"${ac_cv_build_system_type+set}" = x"set" && - test x"$ac_cv_build_system_type" != x"$build"; } || - { test x"${ac_cv_target_system_type+set}" = x"set" && - test x"$ac_cv_target_system_type" != x"$target"; }; then - AC_MSG_RESULT([different]) - ifelse($#, 1, [$1], - [AC_MSG_ERROR([remove config.cache and re-run configure])]) - else - AC_MSG_RESULT(ok) - fi - ac_cv_host_system_type="$host" - ac_cv_build_system_type="$build" - ac_cv_target_system_type="$target" +[AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl +AC_MSG_CHECKING([cached system tuple]) +if { test x"${ac_cv_host_system_type+set}" = x"set" && + test x"$ac_cv_host_system_type" != x"$host"; } || + { test x"${ac_cv_build_system_type+set}" = x"set" && + test x"$ac_cv_build_system_type" != x"$build"; } || + { test x"${ac_cv_target_system_type+set}" = x"set" && + test x"$ac_cv_target_system_type" != x"$target"; }; then + AC_MSG_RESULT([different]) + m4_default([$1], + [AC_MSG_ERROR([remove config.cache and re-run configure])]) +else + AC_MSG_RESULT(ok) +fi +ac_cv_host_system_type="$host" +ac_cv_build_system_type="$build" +ac_cv_target_system_type="$target"dnl ]) @@ -1866,7 +1865,8 @@ fi ]) -dnl AC_CACHE_SAVE() +dnl AC_CACHE_SAVE +dnl ------------- define(AC_CACHE_SAVE, [cat >confcache <<\EOF # This file is a shell script that caches the results of configure @@ -1906,9 +1906,7 @@ changequote(, )dnl ;; esac >>confcache changequote([, ])dnl -if cmp -s $cache_file confcache; then - : -else +if cmp -s $cache_file confcache; then :; else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache >$cache_file diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 2aa3fe5b4..7604649cf 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -3029,6 +3029,9 @@ interpval="$ac_cv_sys_interpreter" AC_DEFUNCT(AC_HAVE_POUNDBANG, [;use AC_SYS_INTERPRETER, taking no arguments]) + +dnl AC_SYS_LONG_FILE_NAMES +dnl ---------------------- AC_DEFUN(AC_SYS_LONG_FILE_NAMES, [AC_CACHE_CHECK(for long file names, ac_cv_sys_long_file_names, [ac_cv_sys_long_file_names=yes