aboutsummaryrefslogtreecommitdiffstats
path: root/tools/configure
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@citrix.com>2012-10-26 17:03:13 +0100
committerRoger Pau Monne <roger.pau@citrix.com>2012-10-26 17:03:13 +0100
commit1825a707b71957773891c7c6c861b56721cd3535 (patch)
treec1151f671be7342ee6021d5558c1bedafe198f98 /tools/configure
parent706549a9de6946e04b2a48f1954a636dbc70b152 (diff)
downloadxen-1825a707b71957773891c7c6c861b56721cd3535.tar.gz
xen-1825a707b71957773891c7c6c861b56721cd3535.tar.bz2
xen-1825a707b71957773891c7c6c861b56721cd3535.zip
autoconf: add -Werror to libutil.h header check
libutil.h is only needed on BSDs, but not in Linux. Debian package libbsd-dev-0.3.0-1 installed a libutil.h overlay that contains a Perform the libutil.h check with -Werror, so we don't include this bogus header. Signed-off-by: Roger Pau Monne <roger.pau@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com> xen-unstable changeset: 26005:cdb48f1742f3 Backport-requested-by: Ian Campbell <Ian.Campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index d68d985bed..709204330a 100755
--- a/tools/configure
+++ b/tools/configure
@@ -6543,6 +6543,10 @@ $as_echo "$ax_cv_pthread_flags" >&6; }
+
+ saved_CPPFLAGS="$CPPFLAGS"
+
+ CPPFLAGS="$CPPFLAGS -Werror"
ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
if test "x$ac_cv_header_libutil_h" = x""yes; then :
@@ -6553,6 +6557,9 @@ $as_echo "#define INCLUDE_LIBUTIL_H <libutil.h>" >>confdefs.h
fi
+
+ CPPFLAGS="$saved_CPPFLAGS"
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty et al" >&5
$as_echo_n "checking for openpty et al... " >&6; }
if test "${ax_cv_ptyfuncs_libs+set}" = set; then :