Index: configure.in
===================================================================
--- configure.in	(revision 265)
+++ configure.in	(working copy)
@@ -13,6 +13,8 @@
 AC_PROG_INSTALL
 AC_PROG_MAKE_SET
 
+AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+
 GNOME_COMMON_INIT
 GNOME_DEBUG_CHECK
 GNOME_COMPILE_WARNINGS([maximum])
@@ -60,6 +62,11 @@
 AC_SUBST(NAUTILUS_EXT_SENDTO_CFLAGS)
 AC_SUBST(NAUTILUS_EXT_SENDTO_LIBS)
 
+dnl Get nautilus extensions directory
+dnl ---------------------------------
+NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`
+AC_SUBST(NAUTILUS_EXTENSION_DIR)
+
 dnl Libebook support
 dnl ---------------------------------
 
Index: src/Makefile.am
===================================================================
--- src/Makefile.am	(revision 265)
+++ src/Makefile.am	(working copy)
@@ -21,7 +21,7 @@
 
 nautilus_sendto_LDADD = $(NAUTILUS_SENDTO_LIBS)
 
-nautilus_extensiondir=$(libdir)/nautilus/extensions-1.0
+nautilus_extensiondir=$(NAUTILUS_EXTENSION_DIR)
 nautilus_extension_LTLIBRARIES=libnautilus-sendto.la
 libnautilus_sendto_la_SOURCES =		\
 	nautilus-nste.c			\
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 265)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2007-12-24  Brian Pepple  <bpepple@fedoraproject.org>
+
+	* src/Makefile.am (nautilus_extensiondir): 
+	* configure.in (NAUTILUS_EXT_SENDTO_LIBS): Get nautilus
+	extension dir from nautilus-extension.pc
+
 2007-11-19  Bastien Nocera  <hadess@hadess.net>
 
 	* pidgin_plugin/nautilus-sendto-plugin.c: (save_online_buddies):
