From 1b54d6a42677bd4209cf5c893802c7f60dc0ad75 Mon Sep 17 00:00:00 2001
From: Khem Raj <khem.raj@oss.qualcomm.com>
Date: Fri, 3 Apr 2026 23:43:18 -0700
Subject: [PATCH] configure.ac: replace K5_AC_INIT with explicit AC_INIT

autoreconf expects configure.ac to contain a literal AC_INIT invocation.
krb5 currently uses the custom K5_AC_INIT wrapper, which expands to
AC_INIT but is not recognized by autoreconf's initial sanity check,
causing configuration to fail with:

  autoreconf: error: configure.ac: AC_INIT not found

Replace K5_AC_INIT([aclocal.m4]) with its explicit expansion:
AC_INIT(...), AC_CONFIG_SRCDIR([aclocal.m4]), and build_dynobj=no.

This preserves the existing behavior while allowing autoreconf-based
builds to succeed.

Upstream-Status: Pending

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 src/configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/configure.ac b/src/configure.ac
index 4325fae..03e224f 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -1,4 +1,6 @@
-K5_AC_INIT([aclocal.m4])
+AC_INIT([Kerberos 5], m4_defn([K5_VERSION]), m4_defn([K5_BUGADDR]), [krb5])
+AC_CONFIG_SRCDIR([aclocal.m4])
+build_dynobj=no
 
 # If $runstatedir isn't set by autoconf (<2.70), set it manually.
 if test x"$runstatedir" = x; then
