Upstream: https://gist.github.com/TingPing/2d88a875b50da15c352d/
--- a/configure.in (revision 30591)
+++ b/configure.in (working copy)
--- a/src/applespell/Makefile.am 2010-04-01 22:53:37.000000000 +0200
+++ b/src/applespell/Makefile.am 2012-01-11 22:42:13.000000000 +0100
- applespell_checker.mm \
+target_lib = libenchant_applespell.la
+INCLUDES=-I$(top_srcdir)/src $(ENCHANT_CFLAGS) $(CC_WARN_CFLAGS) -DXP_TARGET_COCOA -xobjective-c -D_ENCHANT_BUILD=1
+applespell_LTLIBRARIES = $(target_lib)
+applespelldir= $(libdir)/enchant
+libenchant_applespell_la_LIBADD= $(ENCHANT_LIBS) -lobjc $(top_builddir)/src/libenchant.la
+libenchant_applespell_la_LDFLAGS = -module -avoid-version -no-undefined -framework Cocoa
+libenchant_applespell_la_SOURCES = applespell_provider.m
+libenchant_applespell_la_LIBTOOLFLAGS = --tag=CC
+libenchant_applespell_lalibdir=$(libdir)/enchant
--- a/src/applespell/applespell_provider.m 2012-01-11 22:46:35.000000000 +0100
+++ b/src/applespell/applespell_provider.m 2012-01-11 22:39:17.000000000 +0100
+/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+ * Copyright (C) 2004 Remi Payette
+ * Copyright (C) 2004 Francis James Franklin
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+#include <Cocoa/Cocoa.h>
+#include <AvailabilityMacros.h>
+#include "enchant-provider.h"