···11+commit 919665db8ceb8e2c38a1a4ce4686eb224ddf5234
22+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
33+Date: Fri Mar 9 20:41:31 2018 -0800
44+55+ xwininfo 1.1.4
66+77+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
88+99+commit e3c764b14da65c5d3afcd19f920705b397aa765c
1010+Author: Mihail Konev <k.mvc@ya.ru>
1111+Date: Thu Jan 26 14:00:21 2017 +1000
1212+1313+ autogen: add default patch prefix
1414+1515+ Signed-off-by: Mihail Konev <k.mvc@ya.ru>
1616+1717+commit 4edd69d5f9abd111e6b52f600696f84e023f6249
1818+Author: Emil Velikov <emil.l.velikov@gmail.com>
1919+Date: Mon Mar 9 12:00:52 2015 +0000
2020+2121+ autogen.sh: use quoted string variables
2222+2323+ Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
2424+ fall-outs, when they contain space.
2525+2626+ Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2727+ Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2828+ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2929+3030+commit 30488a8c7ef5f24ce445a268b168a9a5646b9f7d
3131+Author: Peter Hutterer <peter.hutterer@who-t.net>
3232+Date: Tue Jan 24 10:32:07 2017 +1000
3333+3434+ autogen.sh: use exec instead of waiting for configure to finish
3535+3636+ Syncs the invocation of configure with the one from the server.
3737+3838+ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3939+ Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
4040+4141+commit 0c49f8f2bd56b1e77721e81030ea948386dcdf4e
4242+Author: Olivier Fourdan <ofourdan@redhat.com>
4343+Date: Tue Jan 6 11:57:33 2015 +0100
4444+4545+ xwininfo: do not segfault on IO error
4646+4747+ If the connection to the X server is lost while waiting for
4848+ the user to select a window interactively, xwininfo segfaults.
4949+5050+ This is a regression introduced with the port to XCB, because
5151+ xcb_wait_for_event() can return NULL in case of an IO error and
5252+ xwininfo does not check for the actual returned value.
5353+5454+ Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
5555+ Reviewed-by: Adam Jackson <ajax@redhat.com>
5656+ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5757+5858+commit 017b3736489985999d8dcf4d9e473e1fd6dd3647
5959+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
6060+Date: Tue Jun 3 23:58:54 2014 -0700
6161+6262+ Add -version option to print program version
6363+6464+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
6565+6666+commit d41d834d8b2be86eb56802de12c2399c7ff0919f
6767+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
6868+Date: Tue Jun 3 23:56:08 2014 -0700
6969+7070+ Print which option was in error along with usage message
7171+7272+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
7373+7474+commit d5417f2eb09e7061801f63ce77e3441d80e5e4a1
7575+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
7676+Date: Sat May 31 21:39:32 2014 -0700
7777+7878+ autogen.sh: Honor NOCONFIGURE=1
7979+8080+ See http://people.gnome.org/~walters/docs/build-api.txt
8181+8282+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
8383+8484+commit 301f9c7970548539a2679cc3e354680a60733a68
8585+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
8686+Date: Sat May 31 21:38:41 2014 -0700
8787+8888+ configure: Drop AM_MAINTAINER_MODE
8989+9090+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
9191+192commit ba0d1b0da21d2dbdd81098ed5778f3792b472e13
293Author: Alan Coopersmith <alan.coopersmith@oracle.com>
394Date: Fri May 17 21:04:26 2013 -0700
···324415325416 Fix build error when building --with-xcb-icccm
326417327327- xwininfo.c:633:34: error: incompatible types when assigning to type xcb_get_property_cookie_t from type int
418418+ xwininfo.c:633:34: error: incompatible types when assigning to type xcb_get_property_cookie_t from type int
328419329420 Signed-off-by: Tomas Chvatal <scarabeus@gentoo.org>
330421 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
···441532442533 Over a local connection on the same machine:
443534444444- Xlib: 0.00u 0.01s 0:00.05 20.0%
445445- xcb: 0.00u 0.00s 0:00.02 0.0%
535535+ Xlib: 0.00u 0.01s 0:00.05 20.0%
536536+ xcb: 0.00u 0.00s 0:00.02 0.0%
446537447538 (i.e. barely measurable difference - I had more variation between
448539 repeated runs of the command)
···450541 Introducing latency by running over ssh -X from California to Beijing
451542 and back:
452543453453- Xlib: 0.03u 0.02s 8:19.12 0.0%
454454- xcb: 0.00u 0.00s 0:45.26 0.0%
544544+ Xlib: 0.03u 0.02s 8:19.12 0.0%
545545+ xcb: 0.00u 0.00s 0:45.26 0.0%
455546456547 Memory size when exit() is called:
457548
···2637263726382638dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
26392639dnl
26402640-dnl Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
26402640+dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
26412641dnl
26422642dnl Permission is hereby granted, free of charge, to any person obtaining a
26432643dnl copy of this software and associated documentation files (the "Software"),
···26742674# See the "minimum version" comment for each macro you use to see what
26752675# version you require.
26762676m4_defun([XORG_MACROS_VERSION],[
26772677-m4_define([vers_have], [1.19.0])
26772677+m4_define([vers_have], [1.19.2])
26782678m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
26792679m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
26802680m4_if(m4_cmp(maj_have, maj_needed), 0,,
···27522752AC_REQUIRE([AC_CANONICAL_HOST])
27532753AC_REQUIRE([AC_PROG_SED])
2754275427552755+case $host_os in
27562756+ solaris*)
27572757+ # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
27582758+ # check for a man page file found in later versions that use
27592759+ # traditional section numbers instead
27602760+ AC_CHECK_FILE([/usr/share/man/man7/attributes.7],
27612761+ [SYSV_MAN_SECTIONS=false], [SYSV_MAN_SECTIONS=true])
27622762+ ;;
27632763+ *) SYSV_MAN_SECTIONS=false ;;
27642764+esac
27652765+27552766if test x$APP_MAN_SUFFIX = x ; then
27562767 APP_MAN_SUFFIX=1
27572768fi
···27672778fi
2768277927692780if test x$FILE_MAN_SUFFIX = x ; then
27702770- case $host_os in
27712771- solaris*) FILE_MAN_SUFFIX=4 ;;
27722772- *) FILE_MAN_SUFFIX=5 ;;
27812781+ case $SYSV_MAN_SECTIONS in
27822782+ true) FILE_MAN_SUFFIX=4 ;;
27832783+ *) FILE_MAN_SUFFIX=5 ;;
27732784 esac
27742785fi
27752786if test x$FILE_MAN_DIR = x ; then
···27772788fi
2778278927792790if test x$MISC_MAN_SUFFIX = x ; then
27802780- case $host_os in
27812781- solaris*) MISC_MAN_SUFFIX=5 ;;
27822782- *) MISC_MAN_SUFFIX=7 ;;
27912791+ case $SYSV_MAN_SECTIONS in
27922792+ true) MISC_MAN_SUFFIX=5 ;;
27932793+ *) MISC_MAN_SUFFIX=7 ;;
27832794 esac
27842795fi
27852796if test x$MISC_MAN_DIR = x ; then
···27872798fi
2788279927892800if test x$DRIVER_MAN_SUFFIX = x ; then
27902790- case $host_os in
27912791- solaris*) DRIVER_MAN_SUFFIX=7 ;;
27922792- *) DRIVER_MAN_SUFFIX=4 ;;
28012801+ case $SYSV_MAN_SECTIONS in
28022802+ true) DRIVER_MAN_SUFFIX=7 ;;
28032803+ *) DRIVER_MAN_SUFFIX=4 ;;
27932804 esac
27942805fi
27952806if test x$DRIVER_MAN_DIR = x ; then
···27972808fi
2798280927992810if test x$ADMIN_MAN_SUFFIX = x ; then
28002800- case $host_os in
28012801- solaris*) ADMIN_MAN_SUFFIX=1m ;;
28022802- *) ADMIN_MAN_SUFFIX=8 ;;
28112811+ case $SYSV_MAN_SECTIONS in
28122812+ true) ADMIN_MAN_SUFFIX=1m ;;
28132813+ *) ADMIN_MAN_SUFFIX=8 ;;
28032814 esac
28042815fi
28052816if test x$ADMIN_MAN_DIR = x ; then
···30603071fi])
3061307230623073# Test for the ability of xmlto to generate a text target
30743074+#
30753075+# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
30763076+# following test for empty XML docbook files.
30773077+# For compatibility reasons use the following empty XML docbook file and if
30783078+# it fails try it again with a non-empty XML file.
30633079have_xmlto_text=no
30643080cat > conftest.xml << "EOF"
30653081EOF
30663082AS_IF([test "$have_xmlto" = yes],
30673083 [AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1],
30683084 [have_xmlto_text=yes],
30693069- [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])
30853085+ [# Try it again with a non-empty XML file.
30863086+ cat > conftest.xml << "EOF"
30873087+<x></x>
30883088+EOF
30893089+ AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1],
30903090+ [have_xmlto_text=yes],
30913091+ [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])])
30703092rm -f conftest.xml
30713093AM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes])
30723094AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes])
···44624484macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
44634485INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
44644486mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
44654465-|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
44664466-echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
44874487+|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
44884488+touch \$(top_srcdir)/INSTALL; \
44894489+echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
44674490AC_SUBST([INSTALL_CMD])
44684491]) # XORG_INSTALL
44694492dnl Copyright 2005 Red Hat, Inc
···45244547#
45254548#
45264549AC_DEFUN([XORG_CHANGELOG], [
45274527-CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
45504550+CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
45284551mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
45294529-|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
45304530-echo 'git directory not found: installing possibly empty changelog.' >&2)"
45524552+|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
45534553+touch \$(top_srcdir)/ChangeLog; \
45544554+echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
45314555AC_SUBST([CHANGELOG_CMD])
45324556]) # XORG_CHANGELOG
45334557
+347
app/xwininfo/compile
···11+#! /bin/sh
22+# Wrapper for compilers which do not understand '-c -o'.
33+44+scriptversion=2012-10-14.11; # UTC
55+66+# Copyright (C) 1999-2014 Free Software Foundation, Inc.
77+# Written by Tom Tromey <tromey@cygnus.com>.
88+#
99+# This program is free software; you can redistribute it and/or modify
1010+# it under the terms of the GNU General Public License as published by
1111+# the Free Software Foundation; either version 2, or (at your option)
1212+# any later version.
1313+#
1414+# This program is distributed in the hope that it will be useful,
1515+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1616+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1717+# GNU General Public License for more details.
1818+#
1919+# You should have received a copy of the GNU General Public License
2020+# along with this program. If not, see <http://www.gnu.org/licenses/>.
2121+2222+# As a special exception to the GNU General Public License, if you
2323+# distribute this file as part of a program that contains a
2424+# configuration script generated by Autoconf, you may include it under
2525+# the same distribution terms that you use for the rest of that program.
2626+2727+# This file is maintained in Automake, please report
2828+# bugs to <bug-automake@gnu.org> or send patches to
2929+# <automake-patches@gnu.org>.
3030+3131+nl='
3232+'
3333+3434+# We need space, tab and new line, in precisely that order. Quoting is
3535+# there to prevent tools from complaining about whitespace usage.
3636+IFS=" "" $nl"
3737+3838+file_conv=
3939+4040+# func_file_conv build_file lazy
4141+# Convert a $build file to $host form and store it in $file
4242+# Currently only supports Windows hosts. If the determined conversion
4343+# type is listed in (the comma separated) LAZY, no conversion will
4444+# take place.
4545+func_file_conv ()
4646+{
4747+ file=$1
4848+ case $file in
4949+ / | /[!/]*) # absolute file, and not a UNC file
5050+ if test -z "$file_conv"; then
5151+ # lazily determine how to convert abs files
5252+ case `uname -s` in
5353+ MINGW*)
5454+ file_conv=mingw
5555+ ;;
5656+ CYGWIN*)
5757+ file_conv=cygwin
5858+ ;;
5959+ *)
6060+ file_conv=wine
6161+ ;;
6262+ esac
6363+ fi
6464+ case $file_conv/,$2, in
6565+ *,$file_conv,*)
6666+ ;;
6767+ mingw/*)
6868+ file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6969+ ;;
7070+ cygwin/*)
7171+ file=`cygpath -m "$file" || echo "$file"`
7272+ ;;
7373+ wine/*)
7474+ file=`winepath -w "$file" || echo "$file"`
7575+ ;;
7676+ esac
7777+ ;;
7878+ esac
7979+}
8080+8181+# func_cl_dashL linkdir
8282+# Make cl look for libraries in LINKDIR
8383+func_cl_dashL ()
8484+{
8585+ func_file_conv "$1"
8686+ if test -z "$lib_path"; then
8787+ lib_path=$file
8888+ else
8989+ lib_path="$lib_path;$file"
9090+ fi
9191+ linker_opts="$linker_opts -LIBPATH:$file"
9292+}
9393+9494+# func_cl_dashl library
9595+# Do a library search-path lookup for cl
9696+func_cl_dashl ()
9797+{
9898+ lib=$1
9999+ found=no
100100+ save_IFS=$IFS
101101+ IFS=';'
102102+ for dir in $lib_path $LIB
103103+ do
104104+ IFS=$save_IFS
105105+ if $shared && test -f "$dir/$lib.dll.lib"; then
106106+ found=yes
107107+ lib=$dir/$lib.dll.lib
108108+ break
109109+ fi
110110+ if test -f "$dir/$lib.lib"; then
111111+ found=yes
112112+ lib=$dir/$lib.lib
113113+ break
114114+ fi
115115+ if test -f "$dir/lib$lib.a"; then
116116+ found=yes
117117+ lib=$dir/lib$lib.a
118118+ break
119119+ fi
120120+ done
121121+ IFS=$save_IFS
122122+123123+ if test "$found" != yes; then
124124+ lib=$lib.lib
125125+ fi
126126+}
127127+128128+# func_cl_wrapper cl arg...
129129+# Adjust compile command to suit cl
130130+func_cl_wrapper ()
131131+{
132132+ # Assume a capable shell
133133+ lib_path=
134134+ shared=:
135135+ linker_opts=
136136+ for arg
137137+ do
138138+ if test -n "$eat"; then
139139+ eat=
140140+ else
141141+ case $1 in
142142+ -o)
143143+ # configure might choose to run compile as 'compile cc -o foo foo.c'.
144144+ eat=1
145145+ case $2 in
146146+ *.o | *.[oO][bB][jJ])
147147+ func_file_conv "$2"
148148+ set x "$@" -Fo"$file"
149149+ shift
150150+ ;;
151151+ *)
152152+ func_file_conv "$2"
153153+ set x "$@" -Fe"$file"
154154+ shift
155155+ ;;
156156+ esac
157157+ ;;
158158+ -I)
159159+ eat=1
160160+ func_file_conv "$2" mingw
161161+ set x "$@" -I"$file"
162162+ shift
163163+ ;;
164164+ -I*)
165165+ func_file_conv "${1#-I}" mingw
166166+ set x "$@" -I"$file"
167167+ shift
168168+ ;;
169169+ -l)
170170+ eat=1
171171+ func_cl_dashl "$2"
172172+ set x "$@" "$lib"
173173+ shift
174174+ ;;
175175+ -l*)
176176+ func_cl_dashl "${1#-l}"
177177+ set x "$@" "$lib"
178178+ shift
179179+ ;;
180180+ -L)
181181+ eat=1
182182+ func_cl_dashL "$2"
183183+ ;;
184184+ -L*)
185185+ func_cl_dashL "${1#-L}"
186186+ ;;
187187+ -static)
188188+ shared=false
189189+ ;;
190190+ -Wl,*)
191191+ arg=${1#-Wl,}
192192+ save_ifs="$IFS"; IFS=','
193193+ for flag in $arg; do
194194+ IFS="$save_ifs"
195195+ linker_opts="$linker_opts $flag"
196196+ done
197197+ IFS="$save_ifs"
198198+ ;;
199199+ -Xlinker)
200200+ eat=1
201201+ linker_opts="$linker_opts $2"
202202+ ;;
203203+ -*)
204204+ set x "$@" "$1"
205205+ shift
206206+ ;;
207207+ *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
208208+ func_file_conv "$1"
209209+ set x "$@" -Tp"$file"
210210+ shift
211211+ ;;
212212+ *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
213213+ func_file_conv "$1" mingw
214214+ set x "$@" "$file"
215215+ shift
216216+ ;;
217217+ *)
218218+ set x "$@" "$1"
219219+ shift
220220+ ;;
221221+ esac
222222+ fi
223223+ shift
224224+ done
225225+ if test -n "$linker_opts"; then
226226+ linker_opts="-link$linker_opts"
227227+ fi
228228+ exec "$@" $linker_opts
229229+ exit 1
230230+}
231231+232232+eat=
233233+234234+case $1 in
235235+ '')
236236+ echo "$0: No command. Try '$0 --help' for more information." 1>&2
237237+ exit 1;
238238+ ;;
239239+ -h | --h*)
240240+ cat <<\EOF
241241+Usage: compile [--help] [--version] PROGRAM [ARGS]
242242+243243+Wrapper for compilers which do not understand '-c -o'.
244244+Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
245245+arguments, and rename the output as expected.
246246+247247+If you are trying to build a whole package this is not the
248248+right script to run: please start by reading the file 'INSTALL'.
249249+250250+Report bugs to <bug-automake@gnu.org>.
251251+EOF
252252+ exit $?
253253+ ;;
254254+ -v | --v*)
255255+ echo "compile $scriptversion"
256256+ exit $?
257257+ ;;
258258+ cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
259259+ func_cl_wrapper "$@" # Doesn't return...
260260+ ;;
261261+esac
262262+263263+ofile=
264264+cfile=
265265+266266+for arg
267267+do
268268+ if test -n "$eat"; then
269269+ eat=
270270+ else
271271+ case $1 in
272272+ -o)
273273+ # configure might choose to run compile as 'compile cc -o foo foo.c'.
274274+ # So we strip '-o arg' only if arg is an object.
275275+ eat=1
276276+ case $2 in
277277+ *.o | *.obj)
278278+ ofile=$2
279279+ ;;
280280+ *)
281281+ set x "$@" -o "$2"
282282+ shift
283283+ ;;
284284+ esac
285285+ ;;
286286+ *.c)
287287+ cfile=$1
288288+ set x "$@" "$1"
289289+ shift
290290+ ;;
291291+ *)
292292+ set x "$@" "$1"
293293+ shift
294294+ ;;
295295+ esac
296296+ fi
297297+ shift
298298+done
299299+300300+if test -z "$ofile" || test -z "$cfile"; then
301301+ # If no '-o' option was seen then we might have been invoked from a
302302+ # pattern rule where we don't need one. That is ok -- this is a
303303+ # normal compilation that the losing compiler can handle. If no
304304+ # '.c' file was seen then we are probably linking. That is also
305305+ # ok.
306306+ exec "$@"
307307+fi
308308+309309+# Name of file we expect compiler to create.
310310+cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
311311+312312+# Create the lock directory.
313313+# Note: use '[/\\:.-]' here to ensure that we don't use the same name
314314+# that we are using for the .o file. Also, base the name on the expected
315315+# object file name, since that is what matters with a parallel build.
316316+lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
317317+while true; do
318318+ if mkdir "$lockdir" >/dev/null 2>&1; then
319319+ break
320320+ fi
321321+ sleep 1
322322+done
323323+# FIXME: race condition here if user kills between mkdir and trap.
324324+trap "rmdir '$lockdir'; exit 1" 1 2 15
325325+326326+# Run the compile.
327327+"$@"
328328+ret=$?
329329+330330+if test -f "$cofile"; then
331331+ test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
332332+elif test -f "${cofile}bj"; then
333333+ test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
334334+fi
335335+336336+rmdir "$lockdir"
337337+exit $ret
338338+339339+# Local Variables:
340340+# mode: shell-script
341341+# sh-indentation: 2
342342+# eval: (add-hook 'write-file-hooks 'time-stamp)
343343+# time-stamp-start: "scriptversion="
344344+# time-stamp-format: "%:y-%02m-%02d.%02H"
345345+# time-stamp-time-zone: "UTC"
346346+# time-stamp-end: "; # UTC"
347347+# End:
+68-36
app/xwininfo/configure
···11#! /bin/sh
22# Guess values for system-dependent variables and create Makefiles.
33-# Generated by GNU Autoconf 2.69 for xwininfo 1.1.3.
33+# Generated by GNU Autoconf 2.69 for xwininfo 1.1.4.
44#
55# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
66#
···581581# Identity of this package.
582582PACKAGE_NAME='xwininfo'
583583PACKAGE_TARNAME='xwininfo'
584584-PACKAGE_VERSION='1.1.3'
585585-PACKAGE_STRING='xwininfo 1.1.3'
584584+PACKAGE_VERSION='1.1.4'
585585+PACKAGE_STRING='xwininfo 1.1.4'
586586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587587PACKAGE_URL=''
588588···13211321 # Omit some internal or obsolete options to make the list less imposing.
13221322 # This message is too long to be a string in the A/UX 3.1 sh.
13231323 cat <<_ACEOF
13241324-\`configure' configures xwininfo 1.1.3 to adapt to many kinds of systems.
13241324+\`configure' configures xwininfo 1.1.4 to adapt to many kinds of systems.
1325132513261326Usage: $0 [OPTION]... [VAR=VALUE]...
13271327···1391139113921392if test -n "$ac_init_help"; then
13931393 case $ac_init_help in
13941394- short | recursive ) echo "Configuration of xwininfo 1.1.3:";;
13941394+ short | recursive ) echo "Configuration of xwininfo 1.1.4:";;
13951395 esac
13961396 cat <<\_ACEOF
13971397···15111511test -n "$ac_init_help" && exit $ac_status
15121512if $ac_init_version; then
15131513 cat <<\_ACEOF
15141514-xwininfo configure 1.1.3
15141514+xwininfo configure 1.1.4
15151515generated by GNU Autoconf 2.69
1516151615171517Copyright (C) 2012 Free Software Foundation, Inc.
···19261926This file contains any messages produced by compilers while
19271927running configure, to aid debugging if configure makes a mistake.
1928192819291929-It was created by xwininfo $as_me 1.1.3, which was
19291929+It was created by xwininfo $as_me 1.1.4, which was
19301930generated by GNU Autoconf 2.69. Invocation command line was
1931193119321932 $ $0 $@
···4066406640674067# Define the identity of the package.
40684068 PACKAGE='xwininfo'
40694069- VERSION='1.1.3'
40694069+ VERSION='1.1.4'
407040704071407140724072cat >>confdefs.h <<_ACEOF
···1149211492114931149311494114941149511495-CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
1149511495+CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
1149611496mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1149711497-|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
1149811498-echo 'git directory not found: installing possibly empty changelog.' >&2)"
1149711497+|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
1149811498+touch \$(top_srcdir)/ChangeLog; \
1149911499+echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
114991150011500115011150111502···1150311504macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1150411505INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1150511506mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1150611506-|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
1150711507-echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
1150711507+|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
1150811508+touch \$(top_srcdir)/INSTALL; \
1150911509+echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
1150811510115091151111510115121151111513115121151411513115151151611516+case $host_os in
1151711517+ solaris*)
1151811518+ # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
1151911519+ # check for a man page file found in later versions that use
1152011520+ # traditional section numbers instead
1152111521+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
1152211522+$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
1152311523+if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
1152411524+ $as_echo_n "(cached) " >&6
1152511525+else
1152611526+ test "$cross_compiling" = yes &&
1152711527+ as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
1152811528+if test -r "/usr/share/man/man7/attributes.7"; then
1152911529+ ac_cv_file__usr_share_man_man7_attributes_7=yes
1153011530+else
1153111531+ ac_cv_file__usr_share_man_man7_attributes_7=no
1153211532+fi
1153311533+fi
1153411534+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
1153511535+$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
1153611536+if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
1153711537+ SYSV_MAN_SECTIONS=false
1153811538+else
1153911539+ SYSV_MAN_SECTIONS=true
1154011540+fi
1154111541+1154211542+ ;;
1154311543+ *) SYSV_MAN_SECTIONS=false ;;
1154411544+esac
1154511545+1151411546if test x$APP_MAN_SUFFIX = x ; then
1151511547 APP_MAN_SUFFIX=1
1151611548fi
···1152611558fi
11527115591152811560if test x$FILE_MAN_SUFFIX = x ; then
1152911529- case $host_os in
1153011530- solaris*) FILE_MAN_SUFFIX=4 ;;
1153111531- *) FILE_MAN_SUFFIX=5 ;;
1156111561+ case $SYSV_MAN_SECTIONS in
1156211562+ true) FILE_MAN_SUFFIX=4 ;;
1156311563+ *) FILE_MAN_SUFFIX=5 ;;
1153211564 esac
1153311565fi
1153411566if test x$FILE_MAN_DIR = x ; then
···1153611568fi
11537115691153811570if test x$MISC_MAN_SUFFIX = x ; then
1153911539- case $host_os in
1154011540- solaris*) MISC_MAN_SUFFIX=5 ;;
1154111541- *) MISC_MAN_SUFFIX=7 ;;
1157111571+ case $SYSV_MAN_SECTIONS in
1157211572+ true) MISC_MAN_SUFFIX=5 ;;
1157311573+ *) MISC_MAN_SUFFIX=7 ;;
1154211574 esac
1154311575fi
1154411576if test x$MISC_MAN_DIR = x ; then
···1154611578fi
11547115791154811580if test x$DRIVER_MAN_SUFFIX = x ; then
1154911549- case $host_os in
1155011550- solaris*) DRIVER_MAN_SUFFIX=7 ;;
1155111551- *) DRIVER_MAN_SUFFIX=4 ;;
1158111581+ case $SYSV_MAN_SECTIONS in
1158211582+ true) DRIVER_MAN_SUFFIX=7 ;;
1158311583+ *) DRIVER_MAN_SUFFIX=4 ;;
1155211584 esac
1155311585fi
1155411586if test x$DRIVER_MAN_DIR = x ; then
···1155611588fi
11557115891155811590if test x$ADMIN_MAN_SUFFIX = x ; then
1155911559- case $host_os in
1156011560- solaris*) ADMIN_MAN_SUFFIX=1m ;;
1156111561- *) ADMIN_MAN_SUFFIX=8 ;;
1159111591+ case $SYSV_MAN_SECTIONS in
1159211592+ true) ADMIN_MAN_SUFFIX=1m ;;
1159311593+ *) ADMIN_MAN_SUFFIX=8 ;;
1156211594 esac
1156311595fi
1156411596if test x$ADMIN_MAN_DIR = x ; then
···1183911871 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
1184011872 elif test -n "$PKG_CONFIG"; then
1184111873 if test -n "$PKG_CONFIG" && \
1184211842- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
1184311843- ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
1187411874+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
1187511875+ ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
1184411876 ac_status=$?
1184511877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1184611878 test $ac_status = 0; }; then
1184711847- pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
1187911879+ pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
1184811880 test "x$?" != "x0" && pkg_failed=yes
1184911881else
1185011882 pkg_failed=yes
···1185611888 pkg_cv_XLIB_LIBS="$XLIB_LIBS"
1185711889 elif test -n "$PKG_CONFIG"; then
1185811890 if test -n "$PKG_CONFIG" && \
1185911859- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
1186011860- ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
1189111891+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
1189211892+ ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
1186111893 ac_status=$?
1186211894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1186311895 test $ac_status = 0; }; then
1186411864- pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
1189611896+ pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
1186511897 test "x$?" != "x0" && pkg_failed=yes
1186611898else
1186711899 pkg_failed=yes
···1188211914 _pkg_short_errors_supported=no
1188311915fi
1188411916 if test $_pkg_short_errors_supported = yes; then
1188511885- XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
1191711917+ XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
1188611918 else
1188711887- XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
1191911919+ XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
1188811920 fi
1188911921 # Put the nasty error message in config.log where it belongs
1189011922 echo "$XLIB_PKG_ERRORS" >&5
11891119231189211892- as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
1192411924+ as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
11893119251189411926$XLIB_PKG_ERRORS
1189511927···1246412496# report actual input values of CONFIG_FILES etc. instead of their
1246512497# values after options handling.
1246612498ac_log="
1246712467-This file was extended by xwininfo $as_me 1.1.3, which was
1249912499+This file was extended by xwininfo $as_me 1.1.4, which was
1246812500generated by GNU Autoconf 2.69. Invocation command line was
12469125011247012502 CONFIG_FILES = $CONFIG_FILES
···1253012562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1253112563ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1253212564ac_cs_version="\\
1253312533-xwininfo config.status 1.1.3
1256512565+xwininfo config.status 1.1.4
1253412566configured by $0, generated by GNU Autoconf 2.69,
1253512567 with options \\"\$ac_cs_config\\"
1253612568
+2-2
app/xwininfo/configure.ac
···23232424# Initialize Autoconf
2525AC_PREREQ([2.60])
2626-AC_INIT([xwininfo], [1.1.3],
2626+AC_INIT([xwininfo], [1.1.4],
2727 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xwininfo])
2828AC_CONFIG_SRCDIR([Makefile.am])
2929AC_CONFIG_HEADERS([config.h])
···67676868# Even when using xcb, xproto is still required for Xfuncproto.h
6969# and libX11 headers for cursorfont.h
7070-PKG_CHECK_MODULES(XLIB, x11 [xproto >= 7.0.17])
7070+PKG_CHECK_MODULES(XLIB, x11 [xproto >= 7.0.25])
7171XWININFO_CFLAGS="${XWININFO_CFLAGS} ${XLIB_CFLAGS}"
7272XWININFO_LIBS="${XWININFO_LIBS} ${LIBICONV}"
7373
···3232[\-children] [\-tree] [\-stats] [\-bits] [\-events] [\-size] [\-wm] [\-shape]
3333[\-frame] [\-all]
3434[\-english] [\-metric]
3535-[\-display \fIdisplay\fP]
3535+[\-display \fIdisplay\fP] [\-version]
3636.SH DESCRIPTION
3737.PP
3838.I Xwininfo
···154154.TP 8
155155.B \-display \fIdisplay\fP
156156This option allows you to specify the server to connect to; see \fIX(__miscmansuffix__)\fP.
157157+PP
158158+.TP 8
159159+.B \-version
160160+This option indicates that
161161+.I xwininfo
162162+should print its version information and exit.
157163.SH EXAMPLE
158164.PP
159165The following is a sample summary taken with no options specified:
+8-1
app/xwininfo/xwininfo.c
···278278/*
279279 * Report the syntax for calling xwininfo:
280280 */
281281-_X_NORETURN
281281+_X_NORETURN _X_COLD
282282static void
283283usage (void)
284284{
···286286 "usage: %s [-options ...]\n\n"
287287 "where options include:\n"
288288 " -help print this message\n"
289289+ " -version print version message\n"
289290 " -display host:dpy X server to contact\n"
290291 " -root use the root window\n"
291292 " -id windowid use the window with the specified id\n"
···537538 tree = stats = bits = events = wm = size = shape = 1;
538539 continue;
539540 }
541541+ if (!strcmp(argv[i], "-version")) {
542542+ puts(PACKAGE_STRING);
543543+ exit(0);
544544+ }
545545+ fprintf (stderr, "%s: unrecognized argument %s\n\n",
546546+ program_name, argv[i]);
540547 usage ();
541548 }
542549