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. |
34 # $1 is the help tag: freetyp2, cups, pulse, alsa etc |
34 # $1 is the help tag: freetyp2, cups, pulse, alsa etc |
35 MISSING_DEPENDENCY=$1 |
35 MISSING_DEPENDENCY=$1 |
36 PKGHANDLER_COMMAND= |
36 |
37 |
37 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then |
38 case $PKGHANDLER in |
38 cygwin_help $MISSING_DEPENDENCY |
39 apt-get) |
39 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then |
40 apt_help $MISSING_DEPENDENCY ;; |
40 msys_help $MISSING_DEPENDENCY |
41 yum) |
41 else |
42 yum_help $MISSING_DEPENDENCY ;; |
42 PKGHANDLER_COMMAND= |
43 port) |
43 |
44 port_help $MISSING_DEPENDENCY ;; |
44 case $PKGHANDLER in |
45 pkgutil) |
45 apt-get) |
46 pkgutil_help $MISSING_DEPENDENCY ;; |
46 apt_help $MISSING_DEPENDENCY ;; |
47 pkgadd) |
47 yum) |
48 pkgadd_help $MISSING_DEPENDENCY ;; |
48 yum_help $MISSING_DEPENDENCY ;; |
|
49 port) |
|
50 port_help $MISSING_DEPENDENCY ;; |
|
51 pkgutil) |
|
52 pkgutil_help $MISSING_DEPENDENCY ;; |
|
53 pkgadd) |
|
54 pkgadd_help $MISSING_DEPENDENCY ;; |
|
55 * ) |
|
56 break ;; |
|
57 esac |
|
58 |
|
59 if test "x$PKGHANDLER_COMMAND" != x; then |
|
60 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." |
|
61 fi |
|
62 fi |
|
63 ]) |
|
64 |
|
65 cygwin_help() { |
|
66 case $1 in |
|
67 unzip) |
|
68 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" |
|
69 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." |
|
70 ;; |
|
71 zip) |
|
72 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" |
|
73 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." |
|
74 ;; |
|
75 make) |
|
76 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" |
|
77 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." |
|
78 ;; |
|
79 freetype2) |
|
80 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then |
|
81 HELP_MSG="To install freetype, run: |
|
82 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe |
|
83 chmod +x /tmp/freetype-setup.exe |
|
84 /tmp/freetype-setup.exe |
|
85 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\". |
|
86 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll." |
|
87 else |
|
88 HELP_MSG="You need to build a 64-bit version of freetype. |
|
89 This is not readily available. |
|
90 You can find source code and build instructions on |
|
91 http://www.freetype.org/ |
|
92 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically." |
|
93 fi |
|
94 ;; |
49 * ) |
95 * ) |
50 break ;; |
96 break ;; |
51 esac |
97 esac |
52 |
98 } |
53 if test "x$PKGHANDLER_COMMAND" != x; then |
99 |
54 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." |
100 msys_help() { |
55 fi |
101 PKGHANDLER_COMMAND="" |
56 ]) |
|
57 |
|
58 cygwin_help() { |
|
59 case $1 in |
|
60 unzip) |
|
61 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip" ;; |
|
62 zip) |
|
63 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P zip" ;; |
|
64 make) |
|
65 PKGHANDLER_COMMAND="cd <location of cygwin setup.exe> && cmd /c setup -q -P make" ;; |
|
66 * ) |
|
67 break ;; |
|
68 esac |
|
69 } |
102 } |
70 |
103 |
71 apt_help() { |
104 apt_help() { |
72 case $1 in |
105 case $1 in |
73 devkit) |
106 devkit) |