Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427994 - sys-devel/autoconf: @srcdir@ in subdirectory done differently in in-source and out-of-source build
Summary: sys-devel/autoconf: @srcdir@ in subdirectory done differently in in-source an...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-25 08:07 UTC by Michał Górny
Modified: 2012-08-18 04:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-07-25 08:07:12 UTC
I have a configure.ac which generates in doc/Doxyfile like this:

    AC_CONFIG_FILES([Makefile doc/Doxyfile])

Now in doc/Doxyfile.in I have:

    INPUT = @srcdir@/src


When ./configure is run, the macro is expanded to:

    INPUT = ./src

(i.e. relatively to top directory where configure is)

but when I go into _build/ subdir and run ../configure, I get:

    INPUT = ../../doc/src

(i.e. relatively to the doc/ subdirectory)


When using @top_srcdir@ I get consistent behavior.

I'm mostly wondering whether this is a bug or feature.
Comment 1 SpanKY gentoo-dev 2012-08-18 04:11:46 UTC
that's how it's always operated as long as i can remember.  srcdir is meant to be the cheap route (which means in-tree builds are going to use ".").