Fix checks & usage for softpub.h and mscat.h 0.3.2
authorJ. Ali Harlow <ali@juiblex.co.uk>
Thu Aug 25 20:41:08 2011 +0100 (2011-08-25)
changeset 16579831f324c7
parent 15 ba16f91d585c
child 17 a3325f438881
Fix checks & usage for softpub.h and mscat.h
configure.ac
whelk/catalog.c
     1.1 --- a/configure.ac	Thu Aug 25 20:22:44 2011 +0100
     1.2 +++ b/configure.ac	Thu Aug 25 20:41:08 2011 +0100
     1.3 @@ -45,7 +45,16 @@
     1.4  # Checks for header files.
     1.5  ##################################################
     1.6  AC_HEADER_STDC
     1.7 -AC_CHECK_HEADERS_ONCE([softpub.h mscat.h])
     1.8 +case $host_os in
     1.9 +    mingw*)
    1.10 +	AC_CHECK_HEADERS([softpub.h],[],[],
    1.11 +	  [#include <windows.h>
    1.12 +	  ])
    1.13 +	AC_CHECK_HEADERS([mscat.h],[],[],
    1.14 +	  [#include <windows.h>
    1.15 +	  ])
    1.16 +	;;
    1.17 +esac
    1.18  
    1.19  ##################################################
    1.20  # Checks for typedefs, structures, and compiler characteristics.
     2.1 --- a/whelk/catalog.c	Thu Aug 25 20:22:44 2011 +0100
     2.2 +++ b/whelk/catalog.c	Thu Aug 25 20:41:08 2011 +0100
     2.3 @@ -9,7 +9,7 @@
     2.4  typedef HANDLE HCATINFO;
     2.5  #endif
     2.6  #if HAVE_SOFTPUB_H
     2.7 -#include <Softpub.h>
     2.8 +#include <softpub.h>
     2.9  #endif
    2.10  #include <lua.h>
    2.11  #include <lualib.h>