< prev index next >

make/autoconf/help.m4

Print this page




  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 AC_DEFUN_ONCE([HELP_SETUP_DEPENDENCY_HELP],
  27 [
  28   AC_CHECK_PROGS(PKGHANDLER, zypper apt-get yum brew port pkgutil pkgadd)
  29 ])
  30 
  31 AC_DEFUN([HELP_MSG_MISSING_DEPENDENCY],
  32 [
  33   # Print a helpful message on how to acquire the necessary build dependency.
  34   # $1 is the help tag: cups, alsa etc
  35   MISSING_DEPENDENCY=$1
  36 
  37   if test "x$MISSING_DEPENDENCY" = "xopenjdk"; then
  38     HELP_MSG="OpenJDK distributions are available at http://jdk.java.net/."
  39   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
  40     cygwin_help $MISSING_DEPENDENCY
  41   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
  42     msys_help $MISSING_DEPENDENCY
  43   else
  44     PKGHANDLER_COMMAND=
  45 
  46     case $PKGHANDLER in
  47       apt-get)
  48         apt_help     $MISSING_DEPENDENCY ;;
  49       yum)
  50         yum_help     $MISSING_DEPENDENCY ;;
  51       brew)
  52         brew_help    $MISSING_DEPENDENCY ;;
  53       port)
  54         port_help    $MISSING_DEPENDENCY ;;
  55       pkgutil)
  56         pkgutil_help $MISSING_DEPENDENCY ;;
  57       pkgadd)
  58         pkgadd_help  $MISSING_DEPENDENCY ;;
  59       zypper)


  76       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
  77       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
  78       ;;
  79     make)
  80       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
  81       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
  82       ;;
  83   esac
  84 }
  85 
  86 msys_help() {
  87   PKGHANDLER_COMMAND=""
  88 }
  89 
  90 apt_help() {
  91   case $1 in
  92     reduced)
  93       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
  94     devkit)
  95       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;


  96     alsa)
  97       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
  98     cups)
  99       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
 100     fontconfig)
 101       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
 102     freetype)
 103       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
 104     ffi)
 105       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
 106     x11)
 107       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev" ;;
 108     ccache)
 109       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
 110     dtrace)
 111       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
 112   esac
 113 }
 114 
 115 zypper_help() {


 118       PKGHANDLER_COMMAND="sudo zypper install gcc gcc-c++" ;;
 119     alsa)
 120       PKGHANDLER_COMMAND="sudo zypper install alsa-devel" ;;
 121     cups)
 122       PKGHANDLER_COMMAND="sudo zypper install cups-devel" ;;
 123     fontconfig)
 124       PKGHANDLER_COMMAND="sudo zypper install fontconfig-devel" ;;
 125     freetype)
 126       PKGHANDLER_COMMAND="sudo zypper install freetype-devel" ;;
 127     x11)
 128       PKGHANDLER_COMMAND="sudo zypper install libX11-devel libXext-devel libXrender-devel libXrandr-devel libXtst-devel libXt-devel libXi-devel" ;;
 129     ccache)
 130       PKGHANDLER_COMMAND="sudo zypper install ccache" ;;
 131   esac
 132 }
 133 
 134 yum_help() {
 135   case $1 in
 136     devkit)
 137       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;


 138     alsa)
 139       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
 140     cups)
 141       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
 142     fontconfig)
 143       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
 144     freetype)
 145       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
 146     x11)
 147       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXrandr-devel libXi-devel" ;;
 148     ccache)
 149       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
 150   esac
 151 }
 152 
 153 brew_help() {
 154   case $1 in


 155     freetype)
 156       PKGHANDLER_COMMAND="brew install freetype" ;;
 157     ccache)
 158       PKGHANDLER_COMMAND="brew install ccache" ;;
 159   esac
 160 }
 161 
 162 port_help() {
 163   PKGHANDLER_COMMAND=""
 164 }
 165 
 166 pkgutil_help() {
 167   PKGHANDLER_COMMAND=""
 168 }
 169 
 170 pkgadd_help() {
 171   PKGHANDLER_COMMAND=""
 172 }
 173 
 174 # This function will check if we're called from the "configure" wrapper while




  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 AC_DEFUN_ONCE([HELP_SETUP_DEPENDENCY_HELP],
  27 [
  28   AC_CHECK_PROGS(PKGHANDLER, zypper apt-get yum brew port pkgutil pkgadd)
  29 ])
  30 
  31 AC_DEFUN([HELP_MSG_MISSING_DEPENDENCY],
  32 [
  33   # Print a helpful message on how to acquire the necessary build dependency.
  34   # $1 is the help tag: cups, alsa etc
  35   MISSING_DEPENDENCY=$1
  36 
  37   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then


  38     cygwin_help $MISSING_DEPENDENCY
  39   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
  40     msys_help $MISSING_DEPENDENCY
  41   else
  42     PKGHANDLER_COMMAND=
  43 
  44     case $PKGHANDLER in
  45       apt-get)
  46         apt_help     $MISSING_DEPENDENCY ;;
  47       yum)
  48         yum_help     $MISSING_DEPENDENCY ;;
  49       brew)
  50         brew_help    $MISSING_DEPENDENCY ;;
  51       port)
  52         port_help    $MISSING_DEPENDENCY ;;
  53       pkgutil)
  54         pkgutil_help $MISSING_DEPENDENCY ;;
  55       pkgadd)
  56         pkgadd_help  $MISSING_DEPENDENCY ;;
  57       zypper)


  74       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
  75       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
  76       ;;
  77     make)
  78       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
  79       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
  80       ;;
  81   esac
  82 }
  83 
  84 msys_help() {
  85   PKGHANDLER_COMMAND=""
  86 }
  87 
  88 apt_help() {
  89   case $1 in
  90     reduced)
  91       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
  92     devkit)
  93       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
  94     openjdk)
  95       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
  96     alsa)
  97       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
  98     cups)
  99       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
 100     fontconfig)
 101       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
 102     freetype)
 103       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
 104     ffi)
 105       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
 106     x11)
 107       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev" ;;
 108     ccache)
 109       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
 110     dtrace)
 111       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
 112   esac
 113 }
 114 
 115 zypper_help() {


 118       PKGHANDLER_COMMAND="sudo zypper install gcc gcc-c++" ;;
 119     alsa)
 120       PKGHANDLER_COMMAND="sudo zypper install alsa-devel" ;;
 121     cups)
 122       PKGHANDLER_COMMAND="sudo zypper install cups-devel" ;;
 123     fontconfig)
 124       PKGHANDLER_COMMAND="sudo zypper install fontconfig-devel" ;;
 125     freetype)
 126       PKGHANDLER_COMMAND="sudo zypper install freetype-devel" ;;
 127     x11)
 128       PKGHANDLER_COMMAND="sudo zypper install libX11-devel libXext-devel libXrender-devel libXrandr-devel libXtst-devel libXt-devel libXi-devel" ;;
 129     ccache)
 130       PKGHANDLER_COMMAND="sudo zypper install ccache" ;;
 131   esac
 132 }
 133 
 134 yum_help() {
 135   case $1 in
 136     devkit)
 137       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
 138     openjdk)
 139       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
 140     alsa)
 141       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
 142     cups)
 143       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
 144     fontconfig)
 145       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
 146     freetype)
 147       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
 148     x11)
 149       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXrandr-devel libXi-devel" ;;
 150     ccache)
 151       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
 152   esac
 153 }
 154 
 155 brew_help() {
 156   case $1 in
 157     openjdk)
 158       PKGHANDLER_COMMAND="brew cask install java" ;;
 159     freetype)
 160       PKGHANDLER_COMMAND="brew install freetype" ;;
 161     ccache)
 162       PKGHANDLER_COMMAND="brew install ccache" ;;
 163   esac
 164 }
 165 
 166 port_help() {
 167   PKGHANDLER_COMMAND=""
 168 }
 169 
 170 pkgutil_help() {
 171   PKGHANDLER_COMMAND=""
 172 }
 173 
 174 pkgadd_help() {
 175   PKGHANDLER_COMMAND=""
 176 }
 177 
 178 # This function will check if we're called from the "configure" wrapper while


< prev index next >