~ubuntu-branches/ubuntu/lucid/autoconf-archive/lucid

« back to all changes in this revision

Viewing changes to m4/ac_latex_dvips_o_stdout.m4

  • Committer: Bazaar Package Importer
  • Author(s): Deng Xiyue
  • Date: 2009-05-12 17:30:18 UTC
  • mfrom: (1.1.9 upstream) (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090512173018-s7y88nfoxpaauztk
Tags: 20090426-1
* New upstream release.
* Update Standard-Version to 3.8.1:
  + List original Debianizer.
  + Point to versioned license file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# ===========================================================================
2
 
#        http://autoconf-archive.cryp.to/ac_latex_dvips_o_stdout.html
3
 
# ===========================================================================
4
 
#
5
 
# OBSOLETE MACRO
6
 
#
7
 
#   Replaced by ACLTX_DVIPS_O_STDOUT.
8
 
#
9
 
# SYNOPSIS
10
 
#
11
 
#   AC_LATEX_DVIPS_O_STDOUT
12
 
#
13
 
# DESCRIPTION
14
 
#
15
 
#   test if dvips -o- works. If so, set $dvips_o_stdout to yes else to no
16
 
#
17
 
# LAST MODIFICATION
18
 
#
19
 
#   2008-04-12
20
 
#
21
 
# COPYLEFT
22
 
#
23
 
#   Copyright (c) 2008 Boretti Mathieu <boretti@eig.unige.ch>
24
 
#
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.
29
 
#
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.
34
 
#
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/>.
37
 
#
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.
45
 
#
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.
50
 
 
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,[
54
 
rm -rf .dvips
55
 
mkdir .dvips
56
 
cd .dvips
57
 
cat > test.tex << EOF
58
 
\documentclass{book}
59
 
\begin{document}
60
 
Test
61
 
\end{document}
62
 
EOF
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
66
 
cd ..
67
 
])
68
 
DVIPS_O_STDOUT=$ac_cv_dvips_o_stdout; export DVIPS_O_STDOUT;
69
 
if test $DVIPS_O_STDOUT = "no" ;
70
 
then
71
 
    AC_MSG_ERROR(Unable to find the option -o- in dvips)
72
 
fi
73
 
AC_SUBST(DVIPS_O_STDOUT)
74
 
])