Skip to content

Commit 45d8b20

Browse files
aborodinslavaz
authored andcommitted
--with-edit: rename to --with-internal-edit.
Signed-off-by: Andrew Borodin <[email protected]>
1 parent 6a83dda commit 45d8b20

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

acinclude.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ m4_include([m4.include/mc-get-fs-info.m4])
1111
m4_include([m4.include/mc-with-x.m4])
1212
m4_include([m4.include/mc-use-termcap.m4])
1313
m4_include([m4.include/mc-with-screen.m4])
14-
m4_include([m4.include/mc-with-edit.m4])
14+
m4_include([m4.include/mc-with-internal-edit.m4])
1515
m4_include([m4.include/mc-subshell.m4])
1616
m4_include([m4.include/mc-background.m4])
1717
m4_include([m4.include/ac-glib.m4])

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ dnl ############################################################################
383383
dnl MC options
384384
dnl ############################################################################
385385

386-
MC_WITH_EDIT
386+
MC_WITH_INTERNAL_EDIT
387387

388388
dnl Diff viewer support.
389389
AC_ARG_WITH([diff_viewer],
@@ -478,7 +478,7 @@ AC_SUBST(LIBS)
478478
AM_CONDITIONAL(USE_NLS, [test x"$USE_NLS" = xyes])
479479
AM_CONDITIONAL(USE_MAINTAINER_MODE, [test x"$USE_MAINTAINER_MODE" = xyes])
480480
AM_CONDITIONAL(USE_SCREEN_SLANG, [test x"$with_screen" = xslang])
481-
AM_CONDITIONAL(USE_EDIT, [test x"$use_edit" = xyes ])
481+
AM_CONDITIONAL(USE_INTERNAL_EDIT, [test x"$use_internal_edit" = xyes ])
482482
AM_CONDITIONAL(USE_ASPELL, [test x"$enable_aspell" = xyes ])
483483
AM_CONDITIONAL(USE_DIFF, [test -n "$use_diff"])
484484
AM_CONDITIONAL(CHARSET, [test -n "$have_charset"])

m4.include/mc-with-edit.m4 m4.include/mc-with-internal-edit.m4

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
dnl
22
dnl Internal editor support.
33
dnl
4-
AC_DEFUN([MC_WITH_EDIT], [
4+
AC_DEFUN([MC_WITH_INTERNAL_EDIT], [
55
6-
AC_ARG_WITH([edit], AS_HELP_STRING([--with-edit], [Enable internal editor @<:@yes@:>@]))
6+
AC_ARG_WITH([internal_edit],
7+
AS_HELP_STRING([--with-internal-edit], [Enable internal editor @<:@yes@:>@]))
78
8-
if test x$with_edit != xno; then
9+
if test x$with_internal_edit != xno; then
910
AC_DEFINE(USE_INTERNAL_EDIT, 1, [Define to enable internal editor])
10-
use_edit=yes
11+
use_internal_edit=yes
1112
AC_MSG_NOTICE([using internal editor])
13+
edit_msg="yes"
1214
else
13-
use_edit=no
15+
use_internal_edit=no
1416
edit_msg="no"
1517
fi
1618
@@ -27,7 +29,7 @@ AC_DEFUN([MC_WITH_EDIT], [
2729
[enable_aspell=no]
2830
)
2931
30-
if test x$with_edit != xno -a x$enable_aspell != xno; then
32+
if test x$with_internal_edit != xno -a x$enable_aspell != xno; then
3133
AC_CHECK_HEADERS([aspell.h], [], [
3234
AC_ERROR([Could not find aspell development headers])
3335
], [])
@@ -40,7 +42,5 @@ AC_DEFUN([MC_WITH_EDIT], [
4042
enable_aspell=no
4143
AC_MSG_NOTICE([aspell support is disabled because gmodule support is not available])
4244
fi
43-
else
44-
edit_msg="yes"
4545
fi
4646
])

misc/syntax/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ SYNTAXFILES = \
7979
yum-repo.syntax \
8080
yxx.syntax
8181

82-
if USE_EDIT
82+
if USE_INTERNAL_EDIT
8383
syntaxdir = $(pkgdatadir)/syntax
8484
syntax_DATA = $(SYNTAX_OUT) \
8585
$(SYNTAXFILES)

src/Makefile.am

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SUBDIRS = filemanager man2hlp vfs viewer
22

3-
if USE_EDIT
3+
if USE_INTERNAL_EDIT
44
SUBDIRS += editor
55
endif
66

@@ -29,7 +29,7 @@ pkglibexecdir = $(libexecdir)/@PACKAGE@
2929

3030
bin_PROGRAMS = mc
3131

32-
if USE_EDIT
32+
if USE_INTERNAL_EDIT
3333
EDITLIB = editor/libedit.la
3434
endif
3535

@@ -90,7 +90,7 @@ EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
9090

9191
install-exec-hook:
9292
$(MAKE) install_mcview
93-
if USE_EDIT
93+
if USE_INTERNAL_EDIT
9494
$(MAKE) install_mcedit
9595
endif
9696
if USE_DIFF
@@ -111,7 +111,7 @@ install_mcdiff:
111111

112112
uninstall-hook:
113113
rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
114-
if USE_EDIT
114+
if USE_INTERNAL_EDIT
115115
rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
116116
endif
117117
if USE_DIFF

src/editor/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
EXTRA_DIST =
22

3-
if USE_EDIT
3+
if USE_INTERNAL_EDIT
44
noinst_LTLIBRARIES = libedit.la
55
else
66
noinst_LTLIBRARIES =

tests/src/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SUBDIRS = . filemanager
22

3-
if USE_EDIT
3+
if USE_INTERNAL_EDIT
44
SUBDIRS += editor
55
endif
66

0 commit comments

Comments
 (0)