Commit b36f978b authored by Daniel Vetter's avatar Daniel Vetter

build: Nuke #ifdef HAVE_CONFIG_H cargo-cult

We have it. Daniel Stone said the #ifdef HAVE_CONFIG_H comes from the
X11 transition to the modular build, where in the imake -> modular
build transition config.h wasn't universally available. Now we just
make this a requirement (so yeah Android better generate one too).

v2: Improve commit message a bit.
Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
Acked-by: Jani Nikula's avatarJani Nikula <jani.nikula@intel.com>
Acked-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
Acked-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
Acked-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
Acked-by: Radosław's avatarRadoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com>
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 692357e2
......@@ -27,9 +27,7 @@
#ifndef IGT_ALSA_H
#define IGT_ALSA_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <stdbool.h>
......
......@@ -27,9 +27,7 @@
#ifndef IGT_AUDIO_H
#define IGT_AUDIO_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <stdbool.h>
......
......@@ -26,9 +26,7 @@
#ifndef IGT_CHAMELIUM_H
#define IGT_CHAMELIUM_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <stdbool.h>
......
......@@ -27,9 +27,7 @@
#ifndef IGT_FRAME_H
#define IGT_FRAME_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <stdbool.h>
......
......@@ -25,9 +25,7 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_CPUID_H
#include <cpuid.h>
......
......@@ -26,9 +26,7 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <unistd.h>
#include <stdlib.h>
......
......@@ -25,9 +25,7 @@
#ifndef OVERLAY_H
#define OVERLAY_H
#ifdef HAVE_CONFIG_H
#include"config.h"
#endif
#include <cairo.h>
......
......@@ -22,9 +22,7 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <X11/Xlib.h>
#ifdef HAVE_XRANDR
......
......@@ -22,9 +22,7 @@
* Based on libdrm/tests/amdgpu/basic_tests.c
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
......
......@@ -20,9 +20,7 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include "igt_sysfs.h"
#include <fcntl.h>
......
......@@ -26,9 +26,7 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <unistd.h>
......
......@@ -25,9 +25,7 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <unistd.h>
......
......@@ -33,9 +33,7 @@
* The goal is to simply ensure the basics work.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <stdlib.h>
......
......@@ -21,9 +21,7 @@
* IN THE SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
......
......@@ -20,9 +20,7 @@
* Authors:
* Imre Deak <imre.deak@intel.com>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <cairo.h>
......
......@@ -20,9 +20,7 @@
* Authors:
* Imre Deak <imre.deak@intel.com>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <cairo.h>
......
......@@ -45,9 +45,7 @@
* - DP commands (e.g. poweroff)
* - verify outputs against VBT/physical connectors
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <cairo.h>
......
......@@ -29,9 +29,7 @@
#include <sys/stat.h>
#include "testdisplay.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_UDEV
......
......@@ -20,9 +20,7 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <stdio.h>
#include <sys/types.h>
......
......@@ -27,9 +27,7 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <unistd.h>
#include <stdlib.h>
......
......@@ -28,9 +28,7 @@
* TODO:
* Enable more GVT-g related test cases.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "igt.h"
#include <errno.h>
......
......@@ -39,9 +39,7 @@
#include "intel_io.h"
#include "igt_sysfs.h"
#include "drmtest.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_UDEV
#include <libudev.h>
#include <syslog.h>
......
......@@ -21,9 +21,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_UDEV
#include <libudev.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment