Index: ChangeLog
===================================================================
--- ChangeLog	(revision 2793)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2008-01-01  Brian Pepple  <bpepple@fedoraproject.org>
+
+	* configure.ac:
+	* properties/Makefile.am (nautilusdir): Get nautilus extension
+	dir from libnautilus-extension.pc
+
 2007-12-30  Carl-Anton Ingmarsson  <c-a.ingmarsson@oktv.se>
 
 	* configure.ac:
Index: properties/Makefile.am
===================================================================
--- properties/Makefile.am	(revision 2793)
+++ properties/Makefile.am	(working copy)
@@ -21,7 +21,7 @@
 
 nautilus_LTLIBRARIES = $(EVINCE_PROPERTIES_PAGE)
 
-nautilusdir = $(libdir)/nautilus/extensions-1.0/
+nautilusdir = $(NAUTILUS_EXTENSION_DIR)
 libevince_properties_page_la_CFLAGS = -I$(top_srcdir)
 libevince_properties_page_la_SOURCES = 	\
 	ev-properties-main.c
Index: configure.ac
===================================================================
--- configure.ac	(revision 2793)
+++ configure.ac	(working copy)
@@ -21,6 +21,7 @@
 IT_PROG_INTLTOOL([0.35.0])
 AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
+AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
 GNOME_COMMON_INIT
 GNOME_DOC_INIT
@@ -197,7 +198,12 @@
 fi
 AM_CONDITIONAL(HAVE_NAUTILUS, test x$HAVE_NAUTILUS = "xyes")
 
+if test x$HAVE_NAUTILUS = "xyes"; then
+	NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`
+	AC_SUBST(NAUTILUS_EXTENSION_DIR)
+fi
 
+
 dnl Check for thumbnailer build
 AC_ARG_ENABLE(thumbnailer,
         AC_HELP_STRING([--disable-thumbnailer],[disable the GNOME thumbnailer]),
