From 00256cab240aaa2898f543ca568fbd7303be716f Mon Sep 17 00:00:00 2001 From: Clayton Walker Date: Sun, 17 Nov 2013 18:35:30 -0700 Subject: [PATCH] osx: Use ~/Library/Caches/... rather than /var/... --- configure.ac | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4478914..783cb76 100644 --- a/configure.ac +++ b/configure.ac @@ -87,6 +87,17 @@ fi dnl ========================================================================== +AC_MSG_NOTICE([Checking for osx...]) + +case "$host" in + *-apple-darwin*) + os_osx=yes + ;; + *) + os_osx=no +esac +AM_CONDITIONAL(OS_OSX, test "$os_osx" = "yes") + case "$host" in *-*-mingw*) os_win32=yes @@ -533,7 +544,11 @@ no|yes) if test "$os_win32" = "yes"; then fc_cachedir="WINDOWSTEMPDIR_FONTCONFIG_CACHE" else - fc_cachedir='${localstatedir}/cache/${PACKAGE}' + if test "$os_osx" = "yes"; then + fc_cachedir='~/Library/Caches/org.freedesktop.fontconfig' + else + fc_cachedir='${localstatedir}/cache/${PACKAGE}' + fi fi ;; *) -- 1.8.3.4 (Apple Git-47)