diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-04-08 06:34:46 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-04-08 06:34:46 +0000 |
commit | 7e0f3484d8cd6eca4abe80d057391d14face5606 (patch) | |
tree | 92570fc98a476ecbf696c2ef16d046412d405995 /Build/source/texk/xdvik/m4 | |
parent | 824f7b0903de8ad7f6ee3d7656005e4c59155e06 (diff) |
xdvik 22.86
git-svn-id: svn://tug.org/texlive/trunk@29732 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvik/m4')
-rw-r--r-- | Build/source/texk/xdvik/m4/xdvi-func-xkbbell.m4 | 29 | ||||
-rw-r--r-- | Build/source/texk/xdvik/m4/xdvi-gs-lib-path.m4 | 39 |
2 files changed, 68 insertions, 0 deletions
diff --git a/Build/source/texk/xdvik/m4/xdvi-func-xkbbell.m4 b/Build/source/texk/xdvik/m4/xdvi-func-xkbbell.m4 new file mode 100644 index 00000000000..0be2df199f2 --- /dev/null +++ b/Build/source/texk/xdvik/m4/xdvi-func-xkbbell.m4 @@ -0,0 +1,29 @@ +# Autoconf macros for xdvik. +# Copyright (C) 2012 Paul Vojta <xdvi-core@lists.sourceforge.net> +# Adapted from xterm, Copyright 1997-2010,2011 by Thomas E. Dickey +# +# This file is free software; the copyright holder +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# XDVI_FUNC_XKB_BELL +# ------------------------- +# Check for whether the XkbBell() extension is present in the X libraries. + +dnl ### Check for XkbBell() functionality. Adapted from xterm's version. +AC_DEFUN([XDVI_FUNC_XKB_BELL],[ +AC_CACHE_CHECK([for XKB Bell extension], xdvi_cv_func_xkb_bell, +[xdvi_save_LIBS=$LIBS +LIBS="$X_PRE_LIBS"$1" $LIBS $X_LIBS -lX11" +AC_TRY_LINK([ +#include <X11/X.h> +#include <X11/XKBlib.h> /* has the prototype */ +],[ + Atom y; + XkbBell((Display *)0, (Window)0, 0, y); +],[xdvi_cv_func_xkb_bell=yes],[xdvi_cv_func_xkb_bell=no]) +LIBS=$xdvi_save_LIBS]) +if test "$xdvi_cv_func_xkb_bell" = yes; then + X_PRE_LIBS="$X_PRE_LIBS"$1 + AC_DEFINE([HAVE_XKB_BELL_EXT], 1, [Define if your system has XkbBell().]) +fi]) diff --git a/Build/source/texk/xdvik/m4/xdvi-gs-lib-path.m4 b/Build/source/texk/xdvik/m4/xdvi-gs-lib-path.m4 new file mode 100644 index 00000000000..ab5ab1fc1a0 --- /dev/null +++ b/Build/source/texk/xdvik/m4/xdvi-gs-lib-path.m4 @@ -0,0 +1,39 @@ +# Autoconf macros for xdvik. +# Copyright (C) 2013 Paul Vojta <xdvi-core@lists.sourceforge.net> +# +# This file is free software; the copyright holder +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# XDVI_GS_LIB_PATH +# ---------------- +# Find the path to use for GS_LIB. + +dnl ### Determine the path to use for GS_LIB. + +AC_DEFUN([XDVI_GS_LIB_PATH], +[AC_ARG_WITH(default-gs-lib-path, [ --with-default-gs-lib-path=PATH + set default path for finding font aliases to PATH], +[AC_DEFINE_UNQUOTED([DEFAULT_GS_LIB_PATH], "$withval", + [Define to set the default path for ghostscript-style font searching.]) +], +[AC_CACHE_CHECK([for the path to be used for Ghostscript searches], +xdvi_cv_gs_lib_path, +[if gs -h >/dev/null 2>&1; then + ac_tmp="`gs -h \ + | sed \ + -e '1,/Search path:/d' \ + -e '/For more information/,$d' \ + -e '/Initialization files are compiled/d' \ + -e 's/$/\/\/\//' \ + -e 's/^ //' \ + | tr '\n' '/'`" + # Solaris 9 sed doesn't handle incomplete lines at eof + xdvi_cv_gs_lib_path=`echo "$ac_tmp" \ + | sed -e 's/\/\/\/\// /g' -e 's/ *$//' -e 's/ : /:/g'` +else + xdvi_cv_gs_lib_path=/usr/local/share/ghostscript/fonts:/usr/local/lib/ghostscript/fonts:/usr/share/ghostscript/fonts:/var/lib/ghostscript/fonts:/usr/share/cups/fonts:/usr/share/fonts + AC_MSG_WARN(Could not determine Ghostscript search path; using $xdvi_cv_gs_lib_path) +fi]) +AC_DEFINE_UNQUOTED([DEFAULT_GS_LIB_PATH], "$xdvi_cv_gs_lib_path") +])]) |