Bug 13631 - [PATCH]: xprop fails to build under autoconf 2.57 & 2.59
Summary: [PATCH]: xprop fails to build under autoconf 2.57 & 2.59
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xprop (show other bugs)
Version: git
Hardware: Other FreeBSD
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2007-12-12 17:49 UTC by Benjamin Close
Modified: 2018-06-17 19:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Benjamin Close 2007-12-12 17:49:52 UTC
Howdy,

app/xprop uses the macro

AC_CHECK_HEADERS_ONCE

but also indicates the required autoconf version is only 2.57 (AC_PREREQ([2.57]).

AC_CHECK_HEADERS_ONCE was only created in autoconf 2.59c 
(http://cygwin.com/ml/cygwin-apps/2006-06/msg00108.html)

hence building with 2.57 or even 2.59 normal it fails with 

configure.ac:38: error: possibly undefined macro: AC_CHECK_HEADERS_ONCE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1


The fix: don't use _ONCE

root@tinderbox:/mnt/tinder/stage/master/work/app/xprop# git diff
diff --git a/configure.ac b/configure.ac
index 78e4049..62c488e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,7 +35,7 @@ XORG_MACROS_VERSION(1.1)
 AC_PROG_CC
 AC_PROG_INSTALL
 
-AC_CHECK_HEADERS_ONCE([wchar.h wctype.h])
+AC_CHECK_HEADERS([wchar.h wctype.h])
 
 # Checks for pkg-config packages
 PKG_CHECK_MODULES(XPROP, x11)

Found By: tinderbox
Comment 1 Benjamin Close 2007-12-18 21:22:43 UTC
Fixed: SHA 427023df02bd38ff9dc2af2a2059466f37f4cfd8


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.