diff options
author | Tomoyuki Kubota <himajin100000@gmail.com> | 2019-04-25 08:38:56 +0900 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-05-03 14:03:42 +0200 |
commit | 4bf62c1c04de1100e3f6fb3d5173eff2cb101fa6 (patch) | |
tree | d9d45fe8e2084f386ff23c249ba810016aa4a9a4 /configure.ac | |
parent | 44238adb52550623c7b8ed905cbf8dc9ba832886 (diff) |
Add Support for .NET 4.8
*Before this patch, Windows SDK came with .NET 4.5
and .NET 4.6.1 or later was ignored.
* the author of this configure.ac did not seem to understand that
WOW6432Node should be given to reg_get_value_64
instead of reg_get_value_32.
sometimes the code redundantly fetched the same entry WOW6432
(for 64 bit, wrongly passed to 32bit)
and the 32 bit one. I removed the duplicate.
Change-Id: Iff972d727907c480ef927d53fa1f53557fdeb1fd
Reviewed-on: https://gerrit.libreoffice.org/71268
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Tested-by: Michael Stahl <Michael.Stahl@cib.de>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac index 36e0c359dedf..a0cf4cda626f 100644 --- a/configure.ac +++ b/configure.ac @@ -5350,40 +5350,31 @@ find_al() unset altest - for x in `ls /proc/registry32/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft\ SDKs/Windows`; do - reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/$x/WinSDK-NetFx40Tools/InstallationFolder" - if test -n "$regvalue" -a \( -f "$regvalue/al.exe" -o -f "$regvalue/bin/al.exe" \); then - altest=$regvalue - return - fi - done - - # We need this additional check to detect 4.6.1 or above. - for ver in 4.7.2 4.7.1 4.7 4.6.2 4.6.1; do + # We need this check to detect 4.6.1 or above. + for ver in 4.8 4.7.2 4.7.1 4.7 4.6.2 4.6.1; do reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/NETFXSDK/$ver/WinSDK-NetFx40Tools/InstallationFolder" if test -n "$regvalue" -a \( -f "$regvalue/al.exe" -o -f "$regvalue/bin/al.exe" \); then altest=$regvalue return fi + done - reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/Microsoft/Microsoft SDKs/NETFXSDK/$ver/WinSDK-NetFx40Tools" + for x in `ls /proc/registry32/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft\ SDKs/Windows`; do + reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/$x/WinSDK-NetFx40Tools/InstallationFolder" if test -n "$regvalue" -a \( -f "$regvalue/al.exe" -o -f "$regvalue/bin/al.exe" \); then altest=$regvalue return fi done + + } find_dotnetsdk46() { unset frametest - for ver in 4.7.2 4.7.1 4.7 4.6.2 4.6.1 4.6; do - reg_get_value_64 "HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Microsoft/Microsoft SDKs/NETFXSDK/$ver/KitsInstallationFolder" - if test -n "$regvalue"; then - frametest=$regvalue - return - fi + for ver in 4.8 4.7.2 4.7.1 4.7 4.6.2 4.6.1 4.6; do reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/NETFXSDK/$ver/KitsInstallationFolder" if test -n "$regvalue"; then frametest=$regvalue |