1
# ===========================================================================
2
# http://autoconf-archive.cryp.to/ac_latex_dvips_o_stdout.html
3
# ===========================================================================
7
# Replaced by ACLTX_DVIPS_O_STDOUT.
11
# AC_LATEX_DVIPS_O_STDOUT
15
# test if dvips -o- works. If so, set $dvips_o_stdout to yes else to no
23
# Copyright (c) 2008 Boretti Mathieu <boretti@eig.unige.ch>
25
# This program is free software; you can redistribute it and/or modify it
26
# under the terms of the GNU General Public License as published by the
27
# Free Software Foundation; either version 2 of the License, or (at your
28
# option) any later version.
30
# This program is distributed in the hope that it will be useful, but
31
# WITHOUT ANY WARRANTY; without even the implied warranty of
32
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
33
# Public License for more details.
35
# You should have received a copy of the GNU General Public License along
36
# with this program. If not, see <http://www.gnu.org/licenses/>.
38
# As a special exception, the respective Autoconf Macro's copyright owner
39
# gives unlimited permission to copy, distribute and modify the configure
40
# scripts that are the output of Autoconf when processing the Macro. You
41
# need not follow the terms of the GNU General Public License when using
42
# or distributing such scripts, even though portions of the text of the
43
# Macro appear in them. The GNU General Public License (GPL) does govern
44
# all other use of the material that constitutes the Autoconf Macro.
46
# This special exception to the GPL applies to versions of the Autoconf
47
# Macro released by the Autoconf Macro Archive. When you make and
48
# distribute a modified version of the Autoconf Macro, you may extend this
49
# special exception to the GPL to apply to your modified version as well.
51
AC_DEFUN([AC_LATEX_DVIPS_O_STDOUT],[
52
AC_REQUIRE([AC_LATEX_CLASS_BOOK])
53
AC_CACHE_CHECK([for option -o- in dvips],ac_cv_dvips_o_stdout,[
63
$latex test.tex 1>/dev/null 2>&1
64
ac_cv_dvips_o_stdout="no"; export ac_cv_dvips_o_stdout;
65
$dvips -o- test.dvi 1>/dev/null 2>&1 && ac_cv_dvips_o_stdout="yes"; export ac_cv_dvips_o_stdout
68
DVIPS_O_STDOUT=$ac_cv_dvips_o_stdout; export DVIPS_O_STDOUT;
69
if test $DVIPS_O_STDOUT = "no" ;
71
AC_MSG_ERROR(Unable to find the option -o- in dvips)
73
AC_SUBST(DVIPS_O_STDOUT)