diff options
author | James Cloos <cloos@jhcloos.com> | 2007-09-03 06:02:50 -0400 |
---|---|---|
committer | James Cloos <cloos@jhcloos.com> | 2007-09-03 06:02:50 -0400 |
commit | 6d56c1f8d25ce84c797c3b72070073bc44d1a7ac (patch) | |
tree | d09121b232be04282ff8fdb272d4788dd186daa2 | |
parent | c4f7c402ad52c784c01655b5d3a9d4d33c6598d6 (diff) | |
parent | 3decc85623f023a31b8c19526b29092a9f2d0357 (diff) |
Merge branch 'master' of ssh://git.freedesktop.org/git/xorg/app/xset
-rw-r--r-- | ChangeLog | 70 | ||||
-rw-r--r-- | Makefile.am | 12 | ||||
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | xset.c | 10 |
4 files changed, 22 insertions, 75 deletions
diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index 490a352..0000000 --- a/ChangeLog +++ /dev/null @@ -1,70 +0,0 @@ -2006-04-26 Adam Jackson <ajax@freedesktop.org> - - * configure.ac: - Bump to 1.0.2 - -2006-04-06 Alan Coopersmith <alan.coopersmith@sun.com> - - * xset.c (set_lock): - Free modifier map when done with it (Coverity #823 & 824) - - * xset.c (xkbset_repeatrate): - Free Xkb keyboard description when done with it (Coverity #825) - -2005-12-20 Kevin E. Martin <kem-at-freedesktop-dot-org> - - * configure.ac: - Update package version for X11R7 release. - -2005-12-14 Kevin E. Martin <kem-at-freedesktop-dot-org> - - * configure.ac: - Update package version number for final X11R7 release candidate. - -2005-12-06 Kevin E. Martin <kem-at-freedesktop-dot-org> - - * Makefile.am: - Change *man_SOURCES ==> *man_PRE to fix autotools warnings. - -2005-12-03 Kevin E. Martin <kem-at-freedesktop-dot-org> - - * configure.ac: - Update package version number for X11R7 RC3 release. - -2005-11-20 Alan Coopersmith <alan.coopersmith@sun.com> - - * configure.ac: - Change dependency from xmu to xmuu since the full xmu - (with all its baggage like Xt) is not needed here. - -2005-11-19 Alan Coopersmith <alan.coopersmith@sun.com> - - * configure.ac: - Fix typo in XSET_LIBS setting so libXext is linked in properly. - -2005-11-19 Kevin E. Martin <kem-at-freedesktop-dot-org> - - * configure.ac: - Update dependencies to work with separate build roots. - -2005-11-09 Kevin E. Martin <kem-at-freedesktop-dot-org> - - * configure.ac: - Update package version number for X11R7 RC2 release. - -2005-10-20 Eric Anholt <anholt@FreeBSD.org> - - * configure.ac: - Fix check for fontcache to look for "xfontcache" (Bill Crawford) - -2005-10-18 Kevin E. Martin <kem-at-freedesktop-dot-org> - - * configure.ac: - Update package version number for RC1 release. - -2005-08-29 Daniel Stone <daniel@freedesktop.org> - - Bump to 0.99.1. - - * configure.ac: - Add support for more extensions. diff --git a/Makefile.am b/Makefile.am index ababd43..1ec91cd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,7 +21,7 @@ bin_PROGRAMS = xset -xset_CFLAGS = $(XSET_CFLAGS) -D_BSD_SOURCE +AM_CFLAGS = $(XSET_CFLAGS) -D_BSD_SOURCE xset_LDADD = $(XSET_LIBS) xset_SOURCES = \ @@ -35,8 +35,16 @@ appmandir = $(APP_MAN_DIR) appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) -EXTRA_DIST = $(appman_PRE) +EXTRA_DIST = $(appman_PRE) ChangeLog autogen.sh CLEANFILES = $(appman_DATA) +MAINTAINERCLEANFILES = ChangeLog + +.PHONY: ChangeLog + +ChangeLog: + (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) + +dist-hook: ChangeLog SED = sed diff --git a/configure.ac b/configure.ac index 3c91865..815fd75 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,7 @@ dnl dnl Process this file with autoconf to create configure. AC_PREREQ([2.57]) -AC_INIT(xset,[1.0.2], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xset) +AC_INIT(xset,[1.0.3], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xset) AM_INIT_AUTOMAKE([dist-bzip2]) AM_MAINTAINER_MODE @@ -30,6 +30,9 @@ AM_CONFIG_HEADER(config.h) AC_PROG_CC AC_PROG_INSTALL +# Checks for system functions +AC_CHECK_FUNCS([usleep]) + # Checks for pkg-config packages PKG_CHECK_MODULES(XSET, xmuu) @@ -87,8 +87,10 @@ in this Software without prior written authorization from The Open Group. #endif #undef BOOL #endif -#if defined(SVR4) && defined(sun) -#include <sys/syscall.h> +#ifndef HAVE_USLEEP +# if defined(SVR4) && defined(sun) +# include <sys/syscall.h> +# endif #endif #endif /* DPMSExtension */ @@ -575,6 +577,9 @@ for (i = 1; i < argc; ) { * * On OS/2, use _sleep2() */ +#ifdef HAVE_USLEEP +# define Usleep(us) usleep((us)) +#else #ifdef SVR4 # ifdef sun /* Anything to avoid linking with -lposix4 */ @@ -610,6 +615,7 @@ for (i = 1; i < argc; ) { # define Usleep(us) usleep((us)) # endif #endif +#endif /* HAVE_USLEEP */ if (strcmp(arg, "on") == 0) { DPMSEnable(dpy); |