Bug 27739

Summary: build in a separate directory includes config.h from source directory
Product: DRI Reporter: Michal Suchanek <hramrach>
Component: libdrmAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED NOTABUG QA Contact:
Severity: minor    
Priority: medium    
Version: DRI git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Michal Suchanek 2010-04-19 07:40:09 UTC
to reproduce

1) checkout the 2.4.19 version of drm from git
2) run ./configure
3) update to 2.4.20
4) mkdir build ; cd build ; ../configure ; make

the build in the build directory includes the old config.h from the source directory and fails.
Comment 1 Kristian Høgsberg 2010-04-22 17:01:31 UTC
What you're doing is not supported.  I get

  configure: error: source directory already configured; run "make distclean" there first

when I try to configure in a build-dir with an already configured source dir.  Doing make distclean removes the config.h in the source dir.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.