Fix linking on Windows
[LibreOffice.git] / post_download.in
blob6025d38579db50938bce7c403154341b7a650814
1 AC_INIT([LibreOffice],[3.5],[],[],[http://documentfoundation.org/])
2 AC_PREREQ([2.61])
4 echo "********************************************************************"
5 echo "*"
6 echo "*   Running the post download checks."
7 echo "*"
8 echo "********************************************************************"
10 AC_CANONICAL_HOST
11 case "$host_os" in
12     cygwin*) # Windows
13         _os=WINNT
14         ;;
15    *)
16         # We only do stuff for Windows here anyway
17         _os=whatever
18    ;;
19 esac
21 dnl ===================================================================
22 dnl Windows builds need dbghelp.dll in external/dbghelp/
23 dnl ===================================================================
24 if test "$_os" = "WINNT"; then
25    AC_MSG_CHECKING([for dbghelp.dll])
26    if test -f ./external/dbghelp/dbghelp.dll; then
27       AC_MSG_RESULT([found])
28    else
29       AC_MSG_ERROR([dbghelp.dll is missing in external/dbghelp/.
30 Get it from the Microsoft site and put it into external/dbghelp.
31 (Note: Microsoft seems to enjoy changing the exact location of this file. You
32 may have to search Microsoft's website.) Last time it was seen at:
33 <http://www.microsoft.com/downloads/release.asp?releaseid=30682>.])
34    fi
37 dnl ===================================================================
38 dnl Windows builds - use oowintool to copy CRT dlls and manifest
39 dnl ===================================================================
40 if test "$COM" = "MSC"; then
41    if ./oowintool --msvc-copy-dlls ./external/msvcp ; then
42        :
43     else
44        AC_MSG_ERROR([oowintool failed to copy CRT])
45     fi
48 dnl ===================================================================
49 dnl Windows builds need gdiplus.dll in external/gdiplus/
50 dnl ===================================================================
51 if test "$_os" = "WINNT"; then
52    AC_MSG_CHECKING([for gdiplus.dll])
53    if test -f ./external/gdiplus/gdiplus.dll; then
54       AC_MSG_RESULT([found])
55    else
56       AC_MSG_ERROR([gdiplus.dll is missing in external/gdiplus/.
57 Get it from the Microsoft site and put it into external/gdiplus.
58 You may have to search Microsoft's website. Last time it was seen at:
59 <http://www.microsoft.com/downloads/details.aspx?familyid=6A63AB9C-DF12-4D41-933C-BE590FEAA05A&displaylang=en>.])
60    fi
63 dnl ===================================================================
64 dnl Windows builds need vcredist_x86.exe and vcredist_x64.exe in external/vcredist/
65 dnl ===================================================================
66 if test "$COM" = "MSC"; then
67    AC_MSG_CHECKING([for vcredist_x86.exe])
68    if test -e ./external/vcredist/vcredist_x86.exe; then
69       AC_MSG_RESULT([found])
70    else
71       AC_MSG_ERROR([vcredist_x86.exe is missing in external/vcredist/.
72 Get the version corresponding to your Visual Studio from the Microsoft site
73 and put it into external/vcredist.])
74    fi
75    AC_MSG_CHECKING([for vcredist_x64.exe])
76    if test -e ./external/vcredist/vcredist_x64.exe; then
77       AC_MSG_RESULT([found])
78    else
79       AC_MSG_ERROR([vcredist_x64.exe is missing in external/vcredist/.
80 Get the version corresponding to your Visual Studio from the Microsoft site
81 and put it into external/vcredist.])
82    fi