Description: Fix autoconf warnings
Author: Peter Blackman <peter@pblackman.plus.com>
Last-Update: 2021-12-16

Index: b/configure.ac
===================================================================
--- a/configure.ac
+++ b/configure.ac
@@ -1,11 +1,12 @@
 dnl $Id: configure.in,v 1.42 2008-07-21 18:51:56 spotspot Exp $
 dnl Process this file with autoconf to produce a configure script.
 
-AC_INIT(flam3-animate.c)
-AM_CONFIG_HEADER(config.h)
+AC_INIT([flam3], [3.1.1])
+AC_CONFIG_SRCDIR([flam3-animate.c])
+AC_CONFIG_HEADERS(config.h)
 AC_ARG_ENABLE(pthread, [  --enable-pthread        compile FLAM3 with threads enabled (default=yes)])
 AC_ARG_ENABLE(atomic_ops, [  --enable-atomic-ops     compile FLAM3 with atom ops enabled (default=yes, independently checks for 32 and 64 bit sizes)])
-AM_INIT_AUTOMAKE(flam3,"3.1.1")
+AM_INIT_AUTOMAKE
 
 AC_CONFIG_MACRO_DIR([m4])
 
@@ -18,12 +19,14 @@
 
 AC_PROG_INSTALL
 AC_PROG_MAKE_SET
-AM_DISABLE_SHARED
-AC_PROG_LIBTOOL
-AC_HEADER_STDC
+AC_DISABLE_SHARED([])
+LT_INIT
+AC_CHECK_INCLUDES_DEFAULT
+AC_PROG_EGREP
+
 AC_C_CONST
 AC_TYPE_SIZE_T
-AC_HEADER_TIME
+
 AC_CHECK_LIB([z],[deflateInit_],,[AC_MSG_ERROR([zlib is required.])])
 AC_CHECK_LIB([png],[png_write_image],,[AC_MSG_ERROR([The png library is required.])])
 AC_CHECK_LIB([xml2],[xmlParseFile],,[AC_MSG_ERROR([The xml2 library is required.])])
@@ -36,9 +39,9 @@
 if test "${enable_atomic_ops}" = "yes" ; then
 
   AC_MSG_CHECKING([whether $CC knows 32-bit __sync_bool_compare_and_swap()])
-  AC_LANG_CONFTEST([#include <stdint.h>
+  AC_LANG_CONFTEST([AC_LANG_SOURCE[#include <stdint.h>
   int main() { uint32_t a = 4;
-  __sync_bool_compare_and_swap(&a, 4, 5); }])
+  __sync_bool_compare_and_swap(&a, 4, 5); }]])
   $CC conftest.c $CFLAGS -o conftest > /dev/null 2> /dev/null
   ret=$?
   rm -f conftest.o conftest
@@ -50,8 +53,8 @@
   fi
 
   AC_MSG_CHECKING([whether $CC knows 64-bit __sync_bool_compare_and_swap()])
-  AC_LANG_CONFTEST([#include <stdint.h>
-  int main() { uint64_t a = 4; __sync_bool_compare_and_swap(&a, 4, 5); }])
+  AC_LANG_CONFTEST([AC_LANG_SOURCE[#include <stdint.h>
+  int main() { uint64_t a = 4; __sync_bool_compare_and_swap(&a, 4, 5); }]])
   $CC conftest.c $CFLAGS -o conftest > /dev/null 2> /dev/null
   ret=$?
   rm -f conftest.o conftest
@@ -76,7 +79,8 @@
 PKG_CHECK_MODULES(XML, libxml-2.0)
 #CPPFLAGS+=" -I${includedir}/libxml2"
 
-AC_OUTPUT([
+AC_CONFIG_FILES([
 Makefile
 flam3.pc
 ])
+AC_OUTPUT
