diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-03-03 10:50:54 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-03-03 10:50:54 +0000 |
commit | a875749da01dde353a2839c57d7c9b81a5a973a8 (patch) | |
tree | 5433fa612c2914670aa59bf47f777f863441a3d4 /Build/source/texk/xdvipdfmx | |
parent | b8a4726c33b065d063b016960061324061d8f569 (diff) |
more autotools updates
git-svn-id: svn://tug.org/texlive/trunk@6823 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvipdfmx')
-rw-r--r-- | Build/source/texk/xdvipdfmx/ChangeLog | 10 | ||||
-rw-r--r-- | Build/source/texk/xdvipdfmx/acinclude.m4 | 9 | ||||
-rw-r--r-- | Build/source/texk/xdvipdfmx/configure.in | 18 |
3 files changed, 31 insertions, 6 deletions
diff --git a/Build/source/texk/xdvipdfmx/ChangeLog b/Build/source/texk/xdvipdfmx/ChangeLog index 7bdaaaad65e..e7fc048fd51 100644 --- a/Build/source/texk/xdvipdfmx/ChangeLog +++ b/Build/source/texk/xdvipdfmx/ChangeLog @@ -1,5 +1,15 @@ $Header: /home/cvsroot/dvipdfmx/ChangeLog,v 1.141 2006/12/11 13:01:38 chofchof Exp $ +ChangeLog: Changes for xdvipdfmx (teTeX / TeX live) +=================================================== + +2008-02-21 Peter Breitenlohner <peb@mppmu.mpg.de> + + Allow maintainer mode to regenerate files. + * configure.in, acinclude.m4: added AC_DEFINES's third arg to + provide autoheader templates. + * configure.in: use AC_DEFINES for XETEX and XETEX_MAC. + ChangeLog: Changes for dvipdfmx =============================== diff --git a/Build/source/texk/xdvipdfmx/acinclude.m4 b/Build/source/texk/xdvipdfmx/acinclude.m4 index 80aa1f7680a..52cf0d57384 100644 --- a/Build/source/texk/xdvipdfmx/acinclude.m4 +++ b/Build/source/texk/xdvipdfmx/acinclude.m4 @@ -185,6 +185,7 @@ struct paper *p; # AC_DEFUN([AC_HAS_LIBFONTCONFIG], [ _cppflags=$CPPFLAGS _ldflags=$LDFLAGS + have_libfontconfig=no AC_ARG_WITH(fontconfig, [ --with-fontconfig=DIR use fontconfig include/library files from DIR], [ @@ -207,6 +208,7 @@ FcObjectSet *os; AC_CHECK_LIB(fontconfig, FcInit, [ AC_DEFINE(HAVE_LIBFONTCONFIG, 1, [Define if you have libfontconfig]) LIBS="$LIBS -lfontconfig" + have_libfontconfig=yes ]) ], [ @@ -292,13 +294,14 @@ AC_DEFUN([AC_HAS_APP_SERVICES], [ ATSFontRef fontRef; ], [ - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_APP_SERVICES, 1, [Define if you have ApplicationServices (Mac OS X)]) + have_app_services=yes + AC_DEFINE(HAVE_APP_SERVICES, 1, [Define if you have Mac OS X ApplicationServices]) LIBS="$LIBS -framework ApplicationServices" ], [ - AC_MSG_RESULT(no) + have_app_services=no ] ) + AC_MSG_RESULT($have_app_services) ]) diff --git a/Build/source/texk/xdvipdfmx/configure.in b/Build/source/texk/xdvipdfmx/configure.in index d0afa3ddccb..41e4a263241 100644 --- a/Build/source/texk/xdvipdfmx/configure.in +++ b/Build/source/texk/xdvipdfmx/configure.in @@ -9,11 +9,15 @@ AM_MAINTAINER_MODE AC_DEFUN([AC_EXT_TIMEZONE], [AC_MSG_CHECKING([whether time.h defines timezone as an external variable]) AC_TRY_LINK([#include <time.h>], [ -timezone; ], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_TIMEZONE)], [AC_MSG_RESULT(no)])]) + [AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_TIMEZONE, [], [external timezone variable])], + [AC_MSG_RESULT(no)])]) AC_DEFUN([AC_TZ_HAS_TM_GMTOFF], [AC_MSG_CHECKING([whether struct tz has tm_gmtoff as a member]) AC_TRY_COMPILE([#include <time.h>], [struct tm *tp; tp->tm_gmtoff], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_TM_GMTOFF)], [AC_MSG_RESULT(no)])]) + [AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_TM_GMTOFF, [], [struct tz has tm_gmtoff])], + [AC_MSG_RESULT(no)])]) dnl Checks for programs. AC_PROG_CC @@ -132,13 +136,21 @@ if test "x$enable_tetex_build" = xyes; then # yes, we have zlib and png. AC_DEFINE(HAVE_ZLIB) AC_DEFINE(HAVE_LIBPNG) - AC_DEFINE(HAVE_FREETYPE2) + AC_DEFINE([HAVE_FREETYPE2], [], [Define if you have freetype2 and its headers]) # You must define HAVE_ZLIB_COMPRESS2 to enable '-z' option for controlling # zlib compression level, but zlib.ac included above does not do this test. # We assume zlib always has compress2() here although that's not always true. AC_DEFINE(HAVE_ZLIB_COMPRESS2, 1, [Define if your zlib has the compress2 function]) + # for tetex/tex live build we may need to define XETEX and XETEX_MAC + if test "x$have_app_services" = xyes; then + AC_DEFINE([XETEX], [], [Define if part of a teTeX/TeX live build.]) + AC_DEFINE([XETEX_MAC], [], [Define if part of a teTeX/TeX live build for Mac OS X.]) + elif test "x$have_libfontconfig" = xyes; then + AC_DEFINE([XETEX]) + fi + # tetex/tex live build; this always has kpathsea, xbasename, etc., # as we're building from current sources. Do this stuff at the end so # other configure tests don't try to link with kpathsea (which doesn't |