commit 6dcc9446d0f8b5ef7c4e43035850ac2ab9d0a0e3
Author: Perevertun V.M <vitalik.perevertun@gmail.com>
Date:   Sun Jan 1 20:13:22 2017 +0200

    * add batch rename build option;

diff --git a/configure.ac b/configure.ac
index b680935..fe28ef6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -263,6 +263,23 @@ fi
 
 AM_CONDITIONAL(ENABLE_TRACKER, test "x$enable_tracker" = "xyes")
 
+dnl ===========================================================================
+dnl Enable batch rename
+
+AC_ARG_ENABLE(batch_rename,
+        [AS_HELP_STRING([--enable-batch-rename],
+                        [turn on batch rename])],
+        , enable_batch_rename=yes)
+
+if test "x$enable_tracker" != "xyes"; then
+    enable_batch_rename=no
+fi
+if test "x$enable_batch_rename" = "xyes"; then
+    AC_DEFINE(ENABLE_BATCH_RENAME,1,[enable batch rename])
+fi
+
+AM_CONDITIONAL(ENABLE_BATCH_RENAME, test "x$enable_batch_rename" = "xyes")
+
 dnl ==========================================================================
 	
 dnl base libs
@@ -352,6 +369,7 @@ nautilus-$VERSION:
 	PackageKit support:     $msg_packagekit
 	nautilus-sendto ext:	$enable_nst_extension
 	Tracker support:	$enable_tracker
+	Batch rename support:	$enable_batch_rename
 	desktop support:	$enable_desktop
 
         profiling support:      ${enable_profiling}
diff --git a/src/Makefile.am b/src/Makefile.am
index 562af23..77c72d1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -119,7 +119,7 @@ nautilus_tracker_engine_sources = \
 	nautilus-search-engine-tracker.h
 endif
 
-if ENABLE_TRACKER
+if ENABLE_BATCH_RENAME
 nautilus_batch_renaming_tracker_sources = \
 	nautilus-batch-rename-dialog.c \
 	nautilus-batch-rename-dialog.h \
diff --git a/src/nautilus-file-undo-operations.c b/src/nautilus-file-undo-operations.c
index 093251d..5ac9f1b 100644
--- a/src/nautilus-file-undo-operations.c
+++ b/src/nautilus-file-undo-operations.c
@@ -31,8 +31,10 @@
 #include "nautilus-file-operations.h"
 #include "nautilus-file.h"
 #include "nautilus-file-undo-manager.h"
+#ifdef ENABLE_BATCH_RENAME
 #include "nautilus-batch-rename-dialog.h"
 #include "nautilus-batch-rename-utilities.h"
+#endif
 
 
 /* Since we use g_get_current_time for setting "orig_trash_time" in the undo
@@ -1087,6 +1089,7 @@ nautilus_file_undo_info_rename_set_data_post (NautilusFileUndoInfoRename *self,
 }
 
 /* batch rename */
+#ifdef ENABLE_BATCH_RENAME
 G_DEFINE_TYPE (NautilusFileUndoInfoBatchRename, nautilus_file_undo_info_batch_rename, NAUTILUS_TYPE_FILE_UNDO_INFO);
 
 struct _NautilusFileUndoInfoBatchRenameDetails
@@ -1303,6 +1306,7 @@ nautilus_file_undo_info_batch_rename_set_data_post (NautilusFileUndoInfoBatchRen
 
     self->priv->new_display_names = g_list_reverse (self->priv->new_display_names);
 }
+#endif
 
 /* trash */
 G_DEFINE_TYPE (NautilusFileUndoInfoTrash, nautilus_file_undo_info_trash, NAUTILUS_TYPE_FILE_UNDO_INFO)
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index 106ebbc..e7f2c63 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -2272,6 +2272,7 @@ nautilus_file_can_rename_file (NautilusFile                  *file,
     return new_file_name;
 }
 
+#ifdef ENABLE_BATCH_RENAME
 static void
 real_batch_rename (GList                         *files,
                    GList                         *new_names,
@@ -2380,6 +2381,7 @@ real_batch_rename (GList                         *files,
         nautilus_file_operation_complete (op, NULL, error);
     }
 }
+#endif
 
 gboolean
 nautilus_file_rename_handle_file_gone (NautilusFile                  *file,
@@ -2407,6 +2409,7 @@ nautilus_file_rename_handle_file_gone (NautilusFile                  *file,
     return FALSE;
 }
 
+#ifdef ENABLE_BATCH_RENAME
 void
 nautilus_file_batch_rename (GList                         *files,
                             GList                         *new_names,
@@ -2418,6 +2421,7 @@ nautilus_file_batch_rename (GList                         *files,
                        callback,
                        callback_data);
 }
+#endif
 
 static void
 real_rename (NautilusFile                  *file,
diff --git a/src/nautilus-file.h b/src/nautilus-file.h
index c44ffb0..3ffa40a 100644
--- a/src/nautilus-file.h
+++ b/src/nautilus-file.h
@@ -326,10 +326,12 @@ void                    nautilus_file_rename                            (Nautilu
 									 const char                     *new_name,
 									 NautilusFileOperationCallback   callback,
 									 gpointer                        callback_data);
+#ifdef ENABLE_BATCH_RENAME
 void                    nautilus_file_batch_rename                      (GList                          *files,
                                                                          GList                          *new_names,
                                                                          NautilusFileOperationCallback   callback,
                                                                          gpointer                        callback_data);
+#endif
 void                    nautilus_file_cancel                            (NautilusFile                   *file,
 									 NautilusFileOperationCallback   callback,
 									 gpointer                        callback_data);
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 721682f..4be6b3c 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -28,7 +28,7 @@
 #include "nautilus-files-view.h"
 
 #include "nautilus-application.h"
-#ifdef ENABLE_TRACKER
+#ifdef ENABLE_BATCH_RENAME
 #include "nautilus-batch-rename-dialog.h"
 #include "nautilus-batch-rename-utilities.h"
 #endif
@@ -5925,7 +5925,7 @@ real_action_rename (NautilusFilesView *view)
             {
                 invoke_external_bulk_rename_utility (view, selection);
             }
-#ifdef ENABLE_TRACKER
+#ifdef ENABLE_BATCH_RENAME
             else
             {
                 GdkCursor *cursor;
