summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Bouvier <skunnyk@alteroot.org>2021-01-30 22:34:28 +0100
committerRomain Bouvier <skunnyk@alteroot.org>2021-02-11 19:56:50 +0100
commitde08168e2386e0056a9bedb2627686236bbda49e (patch)
treeadb580cc5669494ff7bdb11c140d88b5cb0de4d0
parent94addd19f81baaa76d0f1418181676a5d6d36278 (diff)
downloadexo-de08168e2386e0056a9bedb2627686236bbda49e.tar.gz
Fix autotools deprecation warnings
-rw-r--r--configure.ac.in25
1 files changed, 9 insertions, 16 deletions
diff --git a/configure.ac.in b/configure.ac.in
index 56797ee..9d13e10 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -35,7 +35,7 @@ dnl ***************************
AC_COPYRIGHT([Copyright (c) 2004-2010 os-cillation.
Copyright (c) 2004-2019 Xfce Development Team])
AC_INIT([exo], [libexo_version], [https://gitlab.xfce.org/xfce/exo])
-AC_PREREQ([2.60])
+AC_PREREQ([2.69])
AC_CONFIG_MACRO_DIRS([m4])
AC_REVISION([@REVISION@])
AC_CANONICAL_TARGET()
@@ -70,19 +70,12 @@ dnl ******************************
dnl *** Set helper path prefix ***
dnl ******************************
AC_ARG_WITH([helper-path-prefix],
- [AC_HELP_STRING([--with-helper-path-prefix=PATH],
+ [AS_HELP_STRING([--with-helper-path-prefix=PATH],
[Path prefix under which helper executables will be installed (default: $libdir)])],
[HELPER_PATH_PREFIX="$withval"],
[HELPER_PATH_PREFIX="$libdir"])
AC_SUBST([HELPER_PATH_PREFIX])
-dnl *******************************
-dnl *** Check for UNIX variants ***
-dnl *******************************
-AC_AIX()
-AC_ISC_POSIX()
-AC_MINIX()
-
dnl ********************************
dnl *** Check for Win32 variants ***
dnl ********************************
@@ -117,7 +110,6 @@ AC_CHECK_PROGS([PERL], [perl5 perl])
dnl ***************************************
dnl *** Check for standard header files ***
dnl ***************************************
-AC_HEADER_STDC()
AC_CHECK_HEADERS([assert.h errno.h fcntl.h fnmatch.h libintl.h \
locale.h math.h mmintrin.h paths.h regex.h \
signal.h stdarg.h string.h sys/mman.h \
@@ -131,13 +123,13 @@ AC_FUNC_MMAP()
dnl ***************************************************************************
dnl *** Check for strftime() extensions ***
dnl *** ***
-dnl *** AC_TRY_RUN must be able to build and execute programs natively on ***
+dnl *** AC_RUN_IFELSE must be able to build and execute programs natively on ***
dnl *** the build system, so it fails when cross-compiling unless given an ***
dnl *** action in the fourth parameter. This sets its results in a cache ***
dnl *** variable that users can override to specify target system behavior. ***
dnl ***************************************************************************
AC_CACHE_CHECK([for strftime %E and %O modifiers],
- [ac_cv_have_strftime_extension], [AC_TRY_RUN([
+ [ac_cv_have_strftime_extension], [AC_RUN_IFELSE([AC_LANG_SOURCE([
#include <string.h>
#include <time.h>
int
@@ -150,7 +142,7 @@ AC_CACHE_CHECK([for strftime %E and %O modifiers],
return 0;
return 1;
}
- ],
+ ])],
[ac_cv_have_strftime_extension=yes],
[ac_cv_have_strftime_extension=no],
[ac_cv_have_strftime_extension=cross])])
@@ -161,7 +153,7 @@ fi
dnl ******************************
dnl *** Check for i18n support ***
dnl ******************************
-XDT_I18N([@LINGUAS@], [exo-libexo_version_api()])
+XDT_I18N()
dnl ***********************************
dnl *** Check for required packages ***
@@ -197,7 +189,7 @@ XDT_FEATURE_LINKER_OPTS()
dnl ****************************************
dnl *** Check for ELF visibility support ***
dnl ****************************************
-AC_ARG_ENABLE([visibility], AC_HELP_STRING([--disable-visibility], [Do not use ELF visibility attributes]), [], [enable_visibility=yes])
+AC_ARG_ENABLE([visibility], AS_HELP_STRING([--disable-visibility],[Do not use ELF visibility attributes]), [], [enable_visibility=yes])
have_gnuc_visibility=no
if test x"$enable_visibility" != x"no"; then
dnl Check whether the compiler supports the visibility attribute
@@ -233,7 +225,7 @@ dnl *** Use GSEAL if possible ***
dnl *************************************
XDT_SUPPORTED_FLAGS([CFLAGS], [-DGSEAL_ENABLE])
-AC_OUTPUT([
+AC_CONFIG_FILES([
Makefile
docs/Makefile
docs/reference/Makefile
@@ -250,6 +242,7 @@ pixmaps/Makefile
po/Makefile.in
tests/Makefile
])
+AC_OUTPUT
dnl ***************************
dnl *** Print configuration ***