GNU bug report logs - #23029
Enable subdir-objects cannot find Po of source with absolute path

Previous Next

Package: automake;

Reported by: Hansni Liu <hansni.sc <at> gmail.com>

Date: Wed, 16 Mar 2016 15:36:03 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Hansni Liu <hansni.sc <at> gmail.com>
To: bug-automake <at> gnu.org
Subject: Enable subdir-objects cannot find Po of source with absolute path
Date: Wed, 16 Mar 2016 17:07:45 +0800
[Message part 1 (text/plain, inline)]
Hi,
I'm told to enable subdir-objects when upgrading automake. However, if
that's enabled, the Makefile generated does not include the correct path of
the .Plo file if the source is with absolute path.

My autoconf is 2.69, automake is 1.15, libtool is 2.4.6

For example, my configure.ac is
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_SRCDIR([test.c])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CC

LT_INIT([dlopen])

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

AC_CONFIG_FILES([Makefile])

AC_OUTPUT


And my Makefile.am is:
bin_PROGRAMS = test
test_SOURCES = test.c /home/hansni/tmp/test_automake/lib.c

Now after making a build directory in the top source, running configure,
the Po is at
/home/hansni/tmp/test_automake/build/home/hansni/tmp/test_automake/.deps/lib.Po

However, in Makefile, it tries the path:
include /home/hansni/tmp/test_automake/$(DEPDIR)/lib.Po

It seems that the Po is created inside the build directory, however,
Makefile tries to find it in the original absolute path.

B.R.
Hansni
[Message part 2 (text/html, inline)]

This bug report was last modified 9 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.