[Mesa-dev] [PATCH] configure.ac: do not use deprecated macros - AC_HELP_STRING AC_ERROR

Emil Velikov emil.l.velikov at gmail.com
Tue Feb 7 13:10:34 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Replace with AS_HELP_STRING and AC_MSG_ERROR respectively, as spotted by
autoupdate.

Note that the suggested AC_CANONICAL_SYSTEM > AC_CANONICAL_TARGET change
is not addressed here since that requires very extensive testing.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index b4ae067e4e..00e1113ea8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -435,7 +435,7 @@ int main () {
 CFLAGS=$save_CFLAGS
 
 AC_ARG_ENABLE(pwr8,
-   [AC_HELP_STRING([--disable-pwr8-inst],
+   [AS_HELP_STRING([--disable-pwr8-inst],
                    [disable POWER8-specific instructions])],
    [enable_pwr8=$enableval], [enable_pwr8=auto])
 
@@ -2407,7 +2407,7 @@ fi
 dnl We need to validate some needed dependencies for renderonly drivers.
 
 if test "x$HAVE_GALLIUM_ETNAVIV" != xyes -a "x$HAVE_GALLIUM_IMX" == xyes  ; then
-    AC_ERROR([Building with imx requires etnaviv])
+    AC_MSG_ERROR([Building with imx requires etnaviv])
 fi
 
 dnl Set LLVM_LIBS - This is done after the driver configuration so
-- 
2.11.0



More information about the mesa-dev mailing list