Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
Make autotools files compatible with automake >= 1.12
Browse files Browse the repository at this point in the history
Newer autotools versions don't seem to support ansi2knr, which is probably
not a problem, given the last decades of compilers accepting ANSI C (and the
rest of the LAME code being written in ANSI C itself).

This fixes ticket #60, with a patch of Brennan Shacklett, from the Gentoo
community.
  • Loading branch information
Rogério Brito committed Jun 12, 2013
1 parent 68ae6dc commit a6552b5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 24 deletions.
17 changes: 0 additions & 17 deletions aclocal.m4
Expand Up @@ -10530,23 +10530,6 @@ AC_DEFUN([_AM_IF_OPTION],
# serial 5
AC_DEFUN([AM_C_PROTOTYPES],
[AC_REQUIRE([AC_C_PROTOTYPES])
if test "$ac_cv_prog_cc_stdc" != no; then
U= ANSI2KNR=
else
U=_ ANSI2KNR=./ansi2knr
fi
# Ensure some checks needed by ansi2knr itself.
AC_REQUIRE([AC_HEADER_STDC])
AC_CHECK_HEADERS([string.h])
AC_SUBST([U])dnl
AC_SUBST([ANSI2KNR])dnl
_AM_SUBST_NOTMAKE([ANSI2KNR])dnl
])
AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
# Check to make sure that the build environment is sane. -*- Autoconf -*-
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
Expand Down
3 changes: 0 additions & 3 deletions configure.in
Expand Up @@ -77,9 +77,6 @@ if test "${GCC}" = "yes"; then
AC_MSG_RESULT(${GCC_version})
fi

dnl more automake stuff
AM_C_PROTOTYPES

AC_CHECK_HEADER(dmalloc.h)
if test "${ac_cv_header_dmalloc_h}" = "yes"; then
AM_WITH_DMALLOC
Expand Down
2 changes: 1 addition & 1 deletion doc/html/Makefile.am
@@ -1,6 +1,6 @@
## $Id$

AUTOMAKE_OPTIONS = foreign ansi2knr
AUTOMAKE_OPTIONS = foreign

docdir = $(datadir)/doc
pkgdocdir = $(docdir)/$(PACKAGE)
Expand Down
3 changes: 1 addition & 2 deletions doc/man/Makefile.am
@@ -1,7 +1,6 @@
## $Id$

AUTOMAKE_OPTIONS = foreign ansi2knr
AUTOMAKE_OPTIONS = foreign

man_MANS = lame.1
EXTRA_DIST = ${man_MANS}

2 changes: 1 addition & 1 deletion libmp3lame/i386/Makefile.am
@@ -1,6 +1,6 @@
## $Id$

AUTOMAKE_OPTIONS = foreign $(top_srcdir)/ansi2knr
AUTOMAKE_OPTIONS = foreign

DEFS = @DEFS@ @CONFIG_DEFS@

Expand Down

0 comments on commit a6552b5

Please sign in to comment.