common/autoconf/basics.m4
changeset 15050 98a901883580
parent 14736 ee810661e3d1
child 15056 6a7cbe3b0f08
equal deleted inserted replaced
14873:0d625373c69e 15050:98a901883580
   631       $3
   631       $3
   632     fi
   632     fi
   633   fi
   633   fi
   634 ])
   634 ])
   635 
   635 
       
   636 # Check that source files have basic read permissions set. This might
       
   637 # not be the case in cygwin in certain conditions.
       
   638 AC_DEFUN_ONCE([BASIC_CHECK_SRC_PERMS],
       
   639 [
       
   640   if test x"$OPENJDK_BUILD_OS" = xwindows; then
       
   641     file_to_test="$SRC_ROOT/LICENSE"
       
   642     if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
       
   643       AC_MSG_ERROR([Bad file permissions on src files. This is usually caused by cloning the repositories with a non cygwin hg in a directory not created in cygwin.])
       
   644     fi
       
   645   fi
       
   646 ])
       
   647 
   636 AC_DEFUN_ONCE([BASIC_TEST_USABILITY_ISSUES],
   648 AC_DEFUN_ONCE([BASIC_TEST_USABILITY_ISSUES],
   637 [
   649 [
   638 
   650 
   639 AC_MSG_CHECKING([if build directory is on local disk])
   651 AC_MSG_CHECKING([if build directory is on local disk])
   640 BASIC_CHECK_DIR_ON_LOCAL_DISK($OUTPUT_ROOT,
   652 BASIC_CHECK_DIR_ON_LOCAL_DISK($OUTPUT_ROOT,
   641   [OUTPUT_DIR_IS_LOCAL="yes"],
   653   [OUTPUT_DIR_IS_LOCAL="yes"],
   642   [OUTPUT_DIR_IS_LOCAL="no"])
   654   [OUTPUT_DIR_IS_LOCAL="no"])
   643 AC_MSG_RESULT($OUTPUT_DIR_IS_LOCAL)
   655 AC_MSG_RESULT($OUTPUT_DIR_IS_LOCAL)
       
   656 
       
   657 BASIC_CHECK_SRC_PERMS
   644 
   658 
   645 # Check if the user has any old-style ALT_ variables set.
   659 # Check if the user has any old-style ALT_ variables set.
   646 FOUND_ALT_VARIABLES=`env | grep ^ALT_`
   660 FOUND_ALT_VARIABLES=`env | grep ^ALT_`
   647 
   661 
   648 # Before generating output files, test if they exist. If they do, this is a reconfigure.
   662 # Before generating output files, test if they exist. If they do, this is a reconfigure.