[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Work with automake-1.10.

From: Jim Meyering
Subject: [PATCH] Work with automake-1.10.
Date: Mon, 12 Feb 2007 23:30:46 +0100

I've just tried building parted from scratch (running ./autogen.sh
after git-clone) and hit a couple of snags:

Without aclocal's -I m4, ./autogen.sh produced this:

  configure.ac:192: warning: macro `AM_GNU_GETTEXT_VERSION' not found in library
  configure.ac:193: warning: macro `AM_GNU_GETTEXT' not found in library
  configure.ac:192: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
        If this token and others are legitimate, please use m4_pattern_allow.
        See the Autoconf documentation.

With automake-1.10, I got this:

    parted/Makefile.am:5: compiling `command.c' with per-target flags requires 
`AM_PROG_CC_C_O' in `configure.ac'

Here's a patch that fixes those and also removes some trailing blanks.

From: Jim Meyering <address@hidden>
Date: Mon, 12 Feb 2007 23:15:34 +0100
Subject: [PATCH] Work with automake-1.10.
* configure.ac: Use AM_PROG_CC_C_O.
* autogen.sh: Use aclocal's "-I m4" option.

Signed-off-by: Jim Meyering <address@hidden>
 autogen.sh   |    2 +-
 configure.ac |    9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 41df3a9..3ba386f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,7 +1,7 @@
 git log --pretty=medium | fold -s > ChangeLog
+aclocal -I m4
 autoconf -f
 autopoint -f
diff --git a/configure.ac b/configure.ac
index ef3f6da..0ad7ff3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
 dnl GNU Parted - a library and front end for manipulation hard disk partitions
-dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005
+dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005, 2007
 dnl                     Free Software Foundation, Inc.
 dnl This file may be modified and/or distributed without restriction.
@@ -40,7 +40,7 @@ PACKAGE=parted
@@ -165,6 +165,7 @@ dnl Check for programs.
 dnl This test must come as early as possible after the compiler configuration
 dnl tests, because the choice of the file model can (in principle) affect
@@ -365,7 +366,7 @@ if test "$OS" = beos; then
        dnl Include the socket library, as it is a depedency of libuuid
        dnl and so also of us (due to socket() call in libuuid)
        OS_LIBS="$OS_LIBS -lsocket"
@@ -388,7 +389,7 @@ If you can't find one try:
 dnl required for libparted/llseek.c  (TODO: make linux-x86 only)
 if test "$OS" = linux; then

reply via email to

[Prev in Thread] Current Thread [Next in Thread]