X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=configure.in;fp=configure.in;h=3c0056ccc49acb62468d1ca13946097cb1dfc2be;hp=dfa1e8ffaf0a88614c306ffccfeb1ca3c1a393f9;hb=8ff6097e2317c8e668a21c38b8ba32db1ea70509;hpb=9779a2bf1a30614bc0169725ed375720d4a94ee3 diff --git a/configure.in b/configure.in index dfa1e8ffaf..3c0056ccc4 100644 --- a/configure.in +++ b/configure.in @@ -143,20 +143,14 @@ is_mingw=no is_win32=no is_darwin=no -if test $cross_compiling = no; then - # guess-rev.sh only exists in the repository, not in the released archives - AC_CHECK_FILE("$srcdir/guess-rev.sh", has_guess_rev=yes, has_guess_rev=no) - - AC_MSG_CHECKING([whether to build a release]) - if test $has_guess_rev = no; then - build_release=yes - else - build_release=no - fi - AC_MSG_RESULT($build_release) +# guess-rev.sh only exists in the repository, not in the released archives +AC_MSG_CHECKING([whether to build a release]) +if test -f $srcdir/guess-rev.sh ; then + build_release=no else build_release=yes fi +AC_MSG_RESULT($build_release) # We are not *ALWAYS* being installed in the standard place. # We may be installed in a "tool-build" specific location.