Changeset 2839 for libpipi


Ignore:
Timestamp:
Sep 28, 2008, 7:08:07 AM (12 years ago)
Author:
Sam Hocevar
Message:

Detect Windows GDI at configuration time.

Location:
libpipi/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/configure.ac

    r2803 r2839  
    2525AC_C_CONST
    2626AC_C_INLINE
     27
     28dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
     29dnl now otherwise it might be set in an obscure if statement. Same thing for
     30dnl PKG_PROG_PKG_CONFIG which needs to be called first.
     31AC_EGREP_CPP(yes, foo)
     32PKG_PROG_PKG_CONFIG()
     33m4_pattern_allow([^PKG_CONFIG_LIBDIR$])
     34if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then
     35  export PKG_CONFIG_LIBDIR=/dev/null
     36fi
    2737
    2838AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)
     
    93103AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes")
    94104
     105# Use Windows GDI?
     106ac_cv_my_have_gdi="no"
     107GDI="no"
     108AC_CHECK_HEADERS(windows.h,
     109 [ac_cv_my_have_gdi="yes"],
     110 [ac_cv_my_have_gdi="no"])
     111if test "${ac_cv_my_have_gdi}" != "no"; then
     112  AC_DEFINE(USE_GDI, 1, Define to 1 to use GDI)
     113fi
     114AM_CONDITIONAL(USE_GDI, test "${ac_cv_my_have_gdi}" = "yes")
     115
    95116if test "${ac_cv_my_have_il}" = "no" -a "${ac_cv_my_have_ole}" = "no" -a "${ac_cv_my_have_sdl}" = "no" -a "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
    96117  AC_MSG_ERROR([[cannot find DevIL, OLE, SDL_Image, Imlib2 or OpenCV, please install one of them]])
  • libpipi/trunk/pipi/Makefile.am

    r2814 r2839  
    103103endif
    104104
     105if USE_GDI
     106codec_sources += codec/gdi.c
     107endif
     108
Note: See TracChangeset for help on using the changeset viewer.