diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-04-07 12:06:18 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-04-07 12:06:18 +0000 |
commit | 41fdc70e57b74afa2a63e751e435055e5dfe7c58 (patch) | |
tree | 200d74ecd21d8b77bdcb5687576a6d7f012be322 /Build/source/texk/dvipdfmx/m4/cho-kpse.m4 | |
parent | 1999147223756159c17c4e47fbbaf7b7d0344f4f (diff) |
respect library dependencies
git-svn-id: svn://tug.org/texlive/trunk@7345 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfmx/m4/cho-kpse.m4')
-rw-r--r-- | Build/source/texk/dvipdfmx/m4/cho-kpse.m4 | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfmx/m4/cho-kpse.m4 b/Build/source/texk/dvipdfmx/m4/cho-kpse.m4 new file mode 100644 index 00000000000..9668fa21d85 --- /dev/null +++ b/Build/source/texk/dvipdfmx/m4/cho-kpse.m4 @@ -0,0 +1,56 @@ +# cho-kpse.m4 - kpathsea features +# Copyright (C) 1998 - 2008 Jin-Hwan Cho <chofchof@ktug.or.kr> +# +# This file is free software; the copyright holders +# give unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# CHO_CHECK_KPSE_SUPPORT(PACKAGE-NAME) +# ------------------------------------ +# Check for kpathsea features +AC_DEFUN([CHO_CHECK_KPSE_SUPPORT], +[AC_MSG_CHECKING([whether you have kpathsea headers and they know about the required file formats]) + AC_TRY_COMPILE( + [#include <stdio.h> +#include <kpathsea/kpathsea.h>], + [kpse_tex_ps_header_format; + kpse_type1_format; + kpse_vf_format; + kpse_ofm_format; + kpse_ovf_format; + kpse_truetype_format;], + [AC_MSG_RESULT(yes) + AC_CHECK_LIB([kpathsea], [xbasename], + [], + [AC_MSG_ERROR([This version of $1 requires xbasename() in kpathsea library.])])], + [AC_MSG_RESULT(no) + AC_MSG_ERROR([This version of $1 requires that kpathsea and its headers be installed. +If you are sure they are installed and in a standard place, maybe you need a +newer version of kpathsea? You also might try setting the environment +variable CPPFLAGS (or CFLAGS) with -I pointing to the directory containing +the file "tex-file.h"])]) +])# CHO_CHECK_KPSE_SUPPORT + +# CHO_CHECK_KPSE_TDS_VERSION +# -------------------------- +# Check for enc, cmap, sfd formats +AC_DEFUN([CHO_CHECK_KPSE_TDS_VERSION], +[AC_MSG_CHECKING([whether kpathsea library supports TDS version 1.1 installation]) + AC_TRY_COMPILE( + [#include <stdio.h> +#include <kpathsea/kpathsea.h> +#include <kpathsea/tex-file.h>], + [kpse_enc_format; + kpse_cmap_format; + kpse_sfd_format; + kpse_opentype_format;], + [AC_MSG_RESULT(yes) + AC_DEFINE([__TDS_VERSION__], [0x200406L], [Define if your libkpathsea supports enc formats]) + AM_CONDITIONAL([TDS_VERSION_11], [true])], + [AC_MSG_RESULT(no) + AC_DEFINE([__TDS_VERSION__], [0x200302L], [Define if your libkpathsea supports enc formats]) + AM_CONDITIONAL([TDS_VERSION_11], [false])]) +])# CHO_CHECK_KPSE_TDS_VERSION + |