From bb162a43ebf5edd437b854ed437c5cf0e131a2cd Mon Sep 17 00:00:00 2001 From: Christophe Mutricy Date: Fri, 20 Jan 2006 18:50:48 +0000 Subject: [PATCH] Fix X includes detection. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index f9766fbbde..196885f8c6 100644 --- a/configure.ac +++ b/configure.ac @@ -741,6 +741,12 @@ fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" dnl Find where are the X headers and libraries AC_PATH_X() +dnl The rest of configure doesn't work if x_includes is null. +dnl Cleaner way to do it welcomes +if test -z ${x_includes} ;then + x_includes="/usr/includes" +fi + dnl it seems that autoconf do the pkg-config detection only for the first PKG_CHECK_MODULES in the configure.ac ( which is logical) but in our case it is nested in a if so it was not working if you're not on linux or have disable hal. PKG_PROG_PKG_CONFIG() -- GitLab