| 1 | #!/bin/sh |
|---|
| 2 | # |
|---|
| 3 | # $Id$ |
|---|
| 4 | # |
|---|
| 5 | # Create links needed by MinGW to various libraries that exist on |
|---|
| 6 | # the windows file system. The basic idea is that we link in the Windows |
|---|
| 7 | # installed versions of these libraries and make then look like |
|---|
| 8 | # standard unix libraries for configure to pick up. An alternative would be |
|---|
| 9 | # to build the HDF etc. libraries from source under MinGW |
|---|
| 10 | # |
|---|
| 11 | # first create the /usr/local hierarchy |
|---|
| 12 | # |
|---|
| 13 | for i in /usr/local /usr/local/include /usr/local/bin /usr/local/lib \ |
|---|
| 14 | /usr/local/hdf4 /usr/local/hdf4/lib \ |
|---|
| 15 | /usr/local/hdf5 /usr/local/hdf5/lib ; do |
|---|
| 16 | [ -d $i ] || mkdir $i |
|---|
| 17 | done |
|---|
| 18 | # |
|---|
| 19 | ### BEGIN USER CONFIGURATION ### |
|---|
| 20 | # |
|---|
| 21 | # CHANGE THESE TO THE LOCATIONS OF THE VARIOUS LIBRARIES |
|---|
| 22 | # ON THE WINDOWS SYSTEM |
|---|
| 23 | # |
|---|
| 24 | # For Mini-XML you should download the source from |
|---|
| 25 | # http://www.easysw.com/~mike/mxml/ and then compile directly |
|---|
| 26 | # under MinGW to install the library into /usr/local/lib |
|---|
| 27 | # |
|---|
| 28 | # HDF4 windows binary install (from http://hdf.ncsa.uiuc.edu) |
|---|
| 29 | # |
|---|
| 30 | ln -sf "/c/program files/hdf/42r1-win/release/include" /usr/local/hdf4/include |
|---|
| 31 | ln -sf "/c/program files/hdf/42r1-win/release/dll/hd421m.dll" /usr/local/hdf4/lib/libdf.dll |
|---|
| 32 | ln -sf "/c/program files/hdf/42r1-win/release/dll/hm421m.dll" /usr/local/hdf4/lib/libmfhdf.dll |
|---|
| 33 | # |
|---|
| 34 | # HDF5 windows binary install (from http://hdf.ncsa.uiuc.edu) |
|---|
| 35 | # |
|---|
| 36 | ln -sf "/c/program files/hdf/5-165-win/include" /usr/local/hdf5/include |
|---|
| 37 | ln -sf "/c/program files/hdf/5-165-win/dll/hdf5dll.dll" /usr/local/hdf5/lib/libhdf5.dll |
|---|
| 38 | # |
|---|
| 39 | # ZLIB (from http://www.gzip.org/zlib/) |
|---|
| 40 | # |
|---|
| 41 | ln -sf "/c/program files/hdf/zlib122-windows/zlib1.dll" /usr/local/lib/libz.dll |
|---|
| 42 | # |
|---|
| 43 | # SZIP from http://hdf.ncsa.uiuc.edu/ |
|---|
| 44 | # |
|---|
| 45 | ln -sf "/c/program files/hdf/szip20-win-xp-noenc/dll/szlibdll.dll" /usr/local/lib/libsz.dll |
|---|
| 46 | # |
|---|
| 47 | # LIBXML2 (optional; only needed for NXtranslate) from http://xmlsoft.org/ |
|---|
| 48 | # |
|---|
| 49 | ln -sf "/c/program files/libxml2-2.6.20.win32/bin/libxml2.dll" /usr/local/lib/libxml2.dll |
|---|
| 50 | ln -sf "/c/program files/libxml2-2.6.20.win32/include/libxml" /usr/local/include/libxml |
|---|
| 51 | # |
|---|
| 52 | # LIBICONV (optional; only needed for NXtranslate) |
|---|
| 53 | # |
|---|
| 54 | ln -sf "/c/program files/iconv-1.9.1.win32/include/iconv.h" /usr/local/include/iconv.h |
|---|
| 55 | ln -sf "/c/program files/iconv-1.9.1.win32/bin/iconv.dll" /usr/local/lib/libiconv.dll |
|---|
| 56 | # |
|---|
| 57 | ### END OF USER CONFIGURATION ### |
|---|
| 58 | # |
|---|