Index: configure.in
===================================================================
--- configure.in	(revision 46)
+++ configure.in	(working copy)
@@ -22,6 +22,7 @@
 
 dnl Check for pkgconfig first
 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
+AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
 dnl Give error and exit if we don't have pkgconfig
 if test "x$HAVE_PKGCONFIG" = "xno"; then
@@ -54,6 +55,12 @@
 AC_SUBST(NAUTILUS_LIBDIR)
 AC_DEFINE_UNQUOTED(NAUTILUS_LIBDIR, "$NAUTILUS_LIBDIR", [Nautilus libdir])
 
+dnl ---------------------------------
+dnl Get nautilus extensions directory
+dnl ---------------------------------
+NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`
+AC_SUBST(NAUTILUS_EXTENSION_DIR)
+
 AC_OUTPUT([
   Makefile 
   nautilus-python.pc
Index: src/Makefile.am
===================================================================
--- src/Makefile.am	(revision 46)
+++ src/Makefile.am	(working copy)
@@ -10,7 +10,7 @@
 	-DPY_LIB_LOC="\"$(PYTHON_LIB_LOC)\""		\
 	$(PYTHON_INCLUDES)
 
-nautilus_extensiondir=$(NAUTILUS_LIBDIR)/nautilus/extensions-1.0
+nautilus_extensiondir=$(NAUTILUS_EXTENSION_DIR)
 
 nautilus_extension_LTLIBRARIES = libnautilus-python.la
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2008-01-01  Brian Pepple  <bpepple@fedoraproject.org>
+
+	* src/Makefile.am (nautilus_extensiondir): 
+	* configure.in (NAUTILUS_LIBDIR): Fetch nautilus
+	extension dir from nautilus-extension.pc
+
 2006-07-02  Gustavo J. A. M. Carneiro  <gjc@gnome.org>
 
 	* src/nautilus-python.c (nautilus_module_shutdown): Re-enable
