From 32834fb4ded7cba0a727309d74a990507272eca0 Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Tue, 8 Jan 2019 07:34:42 +0000
Subject: [PATCH] autoconf: Cleanup AC_ERROR obsolete warning
configure.ac:437: warning: The macro `AC_ERROR' is obsolete.
configure.ac:454: warning: The macro `AC_ERROR' is obsolete.
Signed-off-by: Andreas Mohr <and@gmx.li>
---
m4.include/mc-with-internal-edit.m4 | 2 +-
m4.include/vfs/mc-vfs-sftp.m4 | 2 +-
m4.include/vfs/mc-vfs-undelfs.m4 | 2 +-
m4.include/vfs/socket.m4 | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/m4.include/mc-with-internal-edit.m4 b/m4.include/mc-with-internal-edit.m4
index 471886499..a801e1d68 100644
a
|
b
|
AC_DEFUN([mc_WITH_INTERNAL_EDIT], [ |
31 | 31 | |
32 | 32 | if test x$with_internal_edit != xno -a x$enable_aspell != xno; then |
33 | 33 | AC_CHECK_HEADERS([aspell.h], [], [ |
34 | | AC_ERROR([Could not find aspell development headers]) |
| 34 | AC_MSG_ERROR([Could not find aspell development headers]) |
35 | 35 | ], []) |
36 | 36 | |
37 | 37 | if test x"$g_module_supported" != x; then |
diff --git a/m4.include/vfs/mc-vfs-sftp.m4 b/m4.include/vfs/mc-vfs-sftp.m4
index c238df3ed..a8ed0192e 100644
a
|
b
|
AC_DEFUN([mc_VFS_SFTP], |
13 | 13 | else |
14 | 14 | if test x"$enable_vfs_sftp" = x"yes"; then |
15 | 15 | dnl user explicitly requested feature |
16 | | AC_ERROR([libssh2 >= 1.2.5 library not found]) |
| 16 | AC_MSG_ERROR([libssh2 >= 1.2.5 library not found]) |
17 | 17 | fi |
18 | 18 | enable_vfs_sftp="no" |
19 | 19 | fi |
diff --git a/m4.include/vfs/mc-vfs-undelfs.m4 b/m4.include/vfs/mc-vfs-undelfs.m4
index 646cd9374..9b817f3e5 100644
a
|
b
|
AC_DEFUN([mc_VFS_UNDELFS], |
68 | 68 | AC_MSG_NOTICE([using ext2fs file recovery code]) |
69 | 69 | MCLIBS="$MCLIBS $EXT2FS_UNDEL_LIBS" |
70 | 70 | else |
71 | | AC_ERROR([Ext2 libraries not found]) |
| 71 | AC_MSG_ERROR([Ext2 libraries not found]) |
72 | 72 | fi |
73 | 73 | fi |
74 | 74 | AM_CONDITIONAL(ENABLE_VFS_UNDELFS, [test "$enable_vfs" = "yes" -a x"$enable_vfs_undelfs" = x"yes"]) |
diff --git a/m4.include/vfs/socket.m4 b/m4.include/vfs/socket.m4
index 1aeafbebe..3cbfe056c 100644
a
|
b
|
AC_DEFUN([AC_REQUIRE_SOCKET], |
8 | 8 | #include <sys/socket.h> |
9 | 9 | ]) |
10 | 10 | else |
11 | | AC_ERROR([Couldnt find socket functions]) |
| 11 | AC_MSG_ERROR([Couldnt find socket functions]) |
12 | 12 | fi |
13 | 13 | ]) |