comparison make/autoconf/help.m4 @ 53999:d7852bb72332

8219920: dependency help output in configure-step : support zypper tool Reviewed-by: erikj, ihse
author mbaesken
date Tue, 05 Mar 2019 09:55:00 +0100
parents 2d18e5ed0f8d
children 8b1f7d88746a
comparison
equal deleted inserted replaced
6:120078640164 7:dbcd880296d7
1 # 1 #
2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this 7 # published by the Free Software Foundation. Oracle designates this
23 # questions. 23 # questions.
24 # 24 #
25 25
26 AC_DEFUN_ONCE([HELP_SETUP_DEPENDENCY_HELP], 26 AC_DEFUN_ONCE([HELP_SETUP_DEPENDENCY_HELP],
27 [ 27 [
28 AC_CHECK_PROGS(PKGHANDLER, apt-get yum brew port pkgutil pkgadd) 28 AC_CHECK_PROGS(PKGHANDLER, zypper apt-get yum brew port pkgutil pkgadd)
29 ]) 29 ])
30 30
31 AC_DEFUN([HELP_MSG_MISSING_DEPENDENCY], 31 AC_DEFUN([HELP_MSG_MISSING_DEPENDENCY],
32 [ 32 [
33 # Print a helpful message on how to acquire the necessary build dependency. 33 # Print a helpful message on how to acquire the necessary build dependency.
52 port_help $MISSING_DEPENDENCY ;; 52 port_help $MISSING_DEPENDENCY ;;
53 pkgutil) 53 pkgutil)
54 pkgutil_help $MISSING_DEPENDENCY ;; 54 pkgutil_help $MISSING_DEPENDENCY ;;
55 pkgadd) 55 pkgadd)
56 pkgadd_help $MISSING_DEPENDENCY ;; 56 pkgadd_help $MISSING_DEPENDENCY ;;
57 zypper)
58 zypper_help $MISSING_DEPENDENCY ;;
57 esac 59 esac
58 60
59 if test "x$PKGHANDLER_COMMAND" != x; then 61 if test "x$PKGHANDLER_COMMAND" != x; then
60 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
61 fi 63 fi
108 dtrace) 110 dtrace)
109 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 111 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
110 esac 112 esac
111 } 113 }
112 114
115 zypper_help() {
116 case $1 in
117 devkit)
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
113 yum_help() { 134 yum_help() {
114 case $1 in 135 case $1 in
115 devkit) 136 devkit)
116 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 137 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
117 openjdk) 138 openjdk)