Please check the GNU Autoconf Macro Archive for Updates
AC-Archive
Autoconf Macro Archive

ac-archive.sf.net: - Project CVS - Download
Macro Index
- AM Support
- C++ Support
- C Support
- Fortran Support
- Java Support
- Cross Compilation
- Installed Packages
- Miscellaneous
- LaTeX Support
- Uncategorized
- archive macros
- adl's macros
- bkorb's macros
- guidod's macros
- latex's macros
- other's macros
- rleigh's macros
- obsoleted macros
- released macros
- search index

Documentation
- Contribute!
- History
- acincludedir m4
- acinclude (tool)
- macro howto
- ax tricks
- maintainers
- License
- Topics

generated...
2007-08-05

(C) 2007 guidod
Download the M4 Source.

_acltx_test

Back to the Main Page.

Synopsis
_ACLTX_TEST(FILEDATA,VARIABLETOSET,[NOCLEAN])
, 
Version

2006-07-16

Author

Boretti Mathieu boretti@eig.unige.ch

License

lgpl

Category

cryp.to ac-archive's LaTeX Support (released)

Documentation

This macros execute the latex application with FILEDATA as input and set VARIABLETOSET the yes or no depending of the result if NOCLEAN is set, the folder used for the test is not delete after testing

M4 Source Code
AC_DEFUN([_ACLTX_TEST],[
AC_REQUIRE([ACLTX_PROG_LATEX])
rm -rf conftest.dir/.acltx
AS_MKDIR_P([conftest.dir/.acltx])
cd conftest.dir/.acltx
m4_ifval([$2],[$2="no"; export $2;])
cat > conftest.tex << ACLEOF
$1
ACLEOF
cat conftest.tex | $latex 2>&1 1>output m4_ifval([$2],[&& $2=yes])
cd ..
cd ..
sed 's/^/| /' conftest.dir/.acltx/conftest.tex >&5
echo "$as_me:$LINENO: executing cat conftest.tex | $latex" >&5
sed 's/^/| /' conftest.dir/.acltx/output >&5
m4_ifval([$3],,[rm -rf conftest.dir/.acltx])
])