From a5b3e201d183ea20247e1020b36cf792c604f04e Mon Sep 17 00:00:00 2001
From: Magnus Holmgren <magnus@kibibyte.se>
Date: Tue, 25 Jun 2024 00:23:54 +0200
Subject: [PATCH] Modernize configure.ac

---
 configure.ac | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index e95956e..0f8fe65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,17 +1,18 @@
 dnl Process this file with autoconf to produce a configure script.
-AC_INIT(INSTALL)
-AM_INIT_AUTOMAKE(liboop,1.0.1)
+AC_INIT(liboop,1.0.1)
+AC_CONFIG_SRCDIR([oop.h])
+AM_INIT_AUTOMAKE
 AC_CANONICAL_HOST
-AM_PROG_LIBTOOL
+LT_INIT
 AC_PROG_CC
 AC_PROG_INSTALL
 PROG_LDCONFIG=:
 
-AC_ARG_WITH(adns, AC_HELP_STRING(--without-adns,disable ADNS adapter))
-AC_ARG_WITH(readline, AC_HELP_STRING(--without-readline,disable readline adapter))
-AC_ARG_WITH(glib, AC_HELP_STRING(--without-glib,disable GLib adapter))
-AC_ARG_WITH(tcl, AC_HELP_STRING(--without-tcl,disable Tcl/Tk adapter))
-AC_ARG_WITH(libwww, AC_HELP_STRING(--with-libwww,build libwww adapter))
+AC_ARG_WITH(adns, AS_HELP_STRING([--without-adns],[disable ADNS adapter]))
+AC_ARG_WITH(readline, AS_HELP_STRING([--without-readline],[disable readline adapter]))
+AC_ARG_WITH(glib, AS_HELP_STRING([--without-glib],[disable GLib adapter]))
+AC_ARG_WITH(tcl, AS_HELP_STRING([--without-tcl],[disable Tcl/Tk adapter]))
+AC_ARG_WITH(libwww, AS_HELP_STRING([--with-libwww],[build libwww adapter]))
 
 dnl System type checks.
 case "$host" in
@@ -124,4 +125,5 @@ AC_SUBST(WWW_INCLUDES)
 AC_SUBST(WWW_LIBS)
 AC_SUBST(READLINE_LIBS)
 AC_SUBST(LIBOOP_LIBS)
-AC_OUTPUT([Makefile liboop.pc liboop-glib2.pc])
+AC_CONFIG_FILES([Makefile liboop.pc liboop-glib2.pc])
+AC_OUTPUT
-- 
GitLab