Skip to content

Commit

Permalink
Use XORG_CWARNFLAGS & XORG_CHANGELOG macros from xorg-macros 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alanc committed Dec 19, 2008
1 parent 377584b commit b5cc4a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ nodist_libXfontinclude_HEADERS = \
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xfont.pc

EXTRA_DIST = xfont.pc.in autogen.sh include/X11/fonts/fontconf.h.in ChangeLog
EXTRA_DIST = xfont.pc.in autogen.sh include/X11/fonts/fontconf.h.in

.PHONY: ChangeLog

CLEANFILES = 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)
$(CHANGELOG_CMD)

dist-hook: ChangeLog

12 changes: 6 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_HEADERS([include/X11/fonts/fontconf.h])

# Require xorg-macros version >= 1.2.0 for XORG_CWARNFLAGS & XORG_CHANGELOG
m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])])
XORG_MACROS_VERSION(1.2)

# Check for progs
AC_PROG_CC
AC_PROG_LIBTOOL
Expand Down Expand Up @@ -208,12 +212,7 @@ PKG_CHECK_MODULES(XFONT, xproto xtrans fontsproto fontenc)
# Transport selection macro from xtrans.m4
XTRANS_CONNECTION_FLAGS

if test "x$GCC" = "xyes"; then
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations \
-Wnested-externs -fno-strict-aliasing"
fi
AC_SUBST([CWARNFLAGS])
XORG_CWARNFLAGS

case $host_os in
linux*)
Expand All @@ -229,6 +228,7 @@ esac
AC_SUBST([OS_CFLAGS])

XORG_RELEASE_VERSION
XORG_CHANGELOG

AC_OUTPUT([Makefile
src/Makefile
Expand Down

0 comments on commit b5cc4a1

Please # to comment.