diff --git a/ChangeLog b/ChangeLog index 58c176b1..27070ee2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -27,6 +27,7 @@ - instead, users of the inplace operations need to call im_invalidate() at the end of a set of paint actions to trigger an update - parent/child -> upstream/downstream in DAG +- set VIPS_ICC_DIR in configure 15/1/10 started 7.21.1 - added "written" callbacks, used to implement write to non-vips formats diff --git a/TODO b/TODO index a9e009bd..2a2e4e1f 100644 --- a/TODO +++ b/TODO @@ -9,6 +9,16 @@ configure should test for the dir? what's the equivalent dir on Windows? we also have nip2's dir + Windows: + + C:\Windows\System32\spool\drivers\color + + OS X + + /Library/ColorSync/Profiles + + added VIPS_ICC_DIR to configure.in, need to search this in format operations + - doing im_create_fmask() and friends - how about im_invalidate_area()? we currently repaint the whole window on diff --git a/configure.in b/configure.in index e1da039a..4351aa7c 100644 --- a/configure.in +++ b/configure.in @@ -83,6 +83,31 @@ if test x"$vips_binary_open" = "xyes"; then AC_DEFINE(BINARY_OPEN,1,[define to open non-text files in binary mode]) fi +AC_MSG_CHECKING([for Mac OS X]) +case "$host" in + *-*-darwin*) + vips_os_darwin=yes + ;; + *) + vips_os_darwin=no + ;; +esac +AC_MSG_RESULT([$vips_os_darwin]) + +if test x"$vips_os_darwin" = x"yes"; then + AC_DEFINE(VIPS_OS_DARWIN,1,[native Mac OS X]) +fi + +# set the default directory for ICC profiles +if test x"$vips_os_darwin" = x"yes"; then + profile_dir="/Library/ColorSync/Profiles" +elif test x"$vips_os_win32" = x"yes"; then + profile_dir="C:\\Windows\\System32\\spool\\drivers\\color" +else + profile_dir="/usr/share/color/icc" +fi +AC_DEFINE_UNQUOTED(VIPS_ICC_DIR,"$profile_dir",[default directory for ICC profiles]) + # we want largefile support, if possible AC_SYS_LARGEFILE @@ -553,6 +578,7 @@ AC_OUTPUT([ AC_MSG_RESULT([ * general build options native win32: $vips_os_win32 +native OS X: $vips_os_darwin open files in binary mode: $vips_binary_open build C++ components: $enable_cxx evaluate with threads: $enable_threads