Skip to content

Commit 8c1915a

Browse files
committed
Build fixes
1 parent 279aec2 commit 8c1915a

4 files changed

Lines changed: 78 additions & 4 deletions

File tree

Makefile.in

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ MAC_ROBBER_CFLAGS_DEBUG = @MAC_ROBBER_CFLAGS_DEBUG@
229229
MAC_ROBBER_CPPFLAGS = @MAC_ROBBER_CPPFLAGS@
230230
MAC_ROBBER_LDFLAGS_SHARED = @MAC_ROBBER_LDFLAGS_SHARED@
231231
MAC_ROBBER_LDFLAGS_STATIC = @MAC_ROBBER_LDFLAGS_STATIC@
232+
MAINT = @MAINT@
232233
MAKEINFO = @MAKEINFO@
233234
MKDIR_P = @MKDIR_P@
234235
OBJEXT = @OBJEXT@
@@ -314,7 +315,7 @@ all: config.h
314315
.SUFFIXES: .c .o .obj
315316
am--refresh: Makefile
316317
@:
317-
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
318+
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
318319
@for dep in $?; do \
319320
case '$(am__configure_deps)' in \
320321
*$$dep*) \
@@ -340,9 +341,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
340341
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
341342
$(SHELL) ./config.status --recheck
342343

343-
$(top_srcdir)/configure: $(am__configure_deps)
344+
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
344345
$(am__cd) $(srcdir) && $(AUTOCONF)
345-
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
346+
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
346347
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
347348
$(am__aclocal_m4_deps):
348349

@@ -353,7 +354,7 @@ config.h: stamp-h1
353354
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
354355
$(AM_V_at)rm -f stamp-h1
355356
$(AM_V_GEN)cd $(top_builddir) && $(SHELL) ./config.status config.h
356-
$(srcdir)/config.h.in: $(am__configure_deps)
357+
$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
357358
$(AM_V_GEN)($(am__cd) $(top_srcdir) && $(AUTOHEADER))
358359
$(AM_V_at)rm -f stamp-h1
359360
$(AM_V_at)touch $@

aclocal.m4

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,42 @@ fi
618618
rmdir .tst 2>/dev/null
619619
AC_SUBST([am__leading_dot])])
620620

621+
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
622+
# From Jim Meyering
623+
624+
# Copyright (C) 1996-2025 Free Software Foundation, Inc.
625+
#
626+
# This file is free software; the Free Software Foundation
627+
# gives unlimited permission to copy and/or distribute it,
628+
# with or without modifications, as long as this notice is preserved.
629+
630+
# AM_MAINTAINER_MODE([DEFAULT-MODE])
631+
# ----------------------------------
632+
# Control maintainer-specific portions of Makefiles.
633+
# Default is to disable them, unless 'enable' is passed literally.
634+
# For symmetry, 'disable' may be passed as well. Anyway, the user
635+
# can override the default with the --enable/--disable switch.
636+
AC_DEFUN([AM_MAINTAINER_MODE],
637+
[m4_case(m4_default([$1], [disable]),
638+
[enable], [m4_define([am_maintainer_other], [disable])],
639+
[disable], [m4_define([am_maintainer_other], [enable])],
640+
[m4_define([am_maintainer_other], [enable])
641+
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
642+
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
643+
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
644+
AC_ARG_ENABLE([maintainer-mode],
645+
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
646+
am_maintainer_other[ make rules and dependencies not useful
647+
(and sometimes confusing) to the casual installer])],
648+
[USE_MAINTAINER_MODE=$enableval],
649+
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
650+
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
651+
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
652+
MAINT=$MAINTAINER_MODE_TRUE
653+
AC_SUBST([MAINT])dnl
654+
]
655+
)
656+
621657
# Check to see how 'make' treats includes. -*- Autoconf -*-
622658

623659
# Copyright (C) 2001-2025 Free Software Foundation, Inc.

configure

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,9 @@ CPPFLAGS
678678
LDFLAGS
679679
CFLAGS
680680
CC
681+
MAINT
682+
MAINTAINER_MODE_FALSE
683+
MAINTAINER_MODE_TRUE
681684
am__xargs_n
682685
am__rm_f_notfound
683686
AM_BACKSLASH
@@ -754,6 +757,7 @@ ac_subst_files=''
754757
ac_user_opts='
755758
enable_option_checking
756759
enable_silent_rules
760+
enable_maintainer_mode
757761
enable_dependency_tracking
758762
enable_debug
759763
enable_shared
@@ -1395,6 +1399,9 @@ Optional Features:
13951399
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
13961400
--enable-silent-rules less verbose build output (undo: "make V=1")
13971401
--disable-silent-rules verbose build output (undo: "make V=0")
1402+
--enable-maintainer-mode
1403+
enable make rules and dependencies not useful (and
1404+
sometimes confusing) to the casual installer
13981405
--enable-dependency-tracking
13991406
do not reject slow dependency extractors
14001407
--disable-dependency-tracking
@@ -3478,6 +3485,31 @@ fi
34783485

34793486

34803487

3488+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3489+
printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3490+
# Check whether --enable-maintainer-mode was given.
3491+
if test ${enable_maintainer_mode+y}
3492+
then :
3493+
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3494+
else case e in #(
3495+
e) USE_MAINTAINER_MODE=no ;;
3496+
esac
3497+
fi
3498+
3499+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3500+
printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3501+
if test $USE_MAINTAINER_MODE = yes; then
3502+
MAINTAINER_MODE_TRUE=
3503+
MAINTAINER_MODE_FALSE='#'
3504+
else
3505+
MAINTAINER_MODE_TRUE='#'
3506+
MAINTAINER_MODE_FALSE=
3507+
fi
3508+
3509+
MAINT=$MAINTAINER_MODE_TRUE
3510+
3511+
3512+
34813513
# Checks for programs.
34823514

34833515

@@ -5282,6 +5314,10 @@ else
52825314
am__EXEEXT_FALSE=
52835315
fi
52845316

5317+
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5318+
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5319+
Usually this means the macro was only invoked conditionally." "$LINENO" 5
5320+
fi
52855321
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
52865322
as_fn_error $? "conditional \"AMDEP\" was never defined.
52875323
Usually this means the macro was only invoked conditionally." "$LINENO" 5

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ AC_CONFIG_MACRO_DIRS([m4])
1010

1111
# Invoke automake:
1212
AM_INIT_AUTOMAKE([foreign])
13+
AM_MAINTAINER_MODE([disable])
1314

1415
# Checks for programs.
1516
AC_PROG_CC

0 commit comments

Comments
 (0)