source: trunk/m4/ax_ac_print_to_file.m4 @ 2112

Last change on this file since 2112 was 2112, checked in by Peter, 12 years ago

Note, this will likely break the Makefile; you need to run autoreconf -m.

Moving maintainer rules to an m4 autoconf macro to make it more
reusable. The macro creates an automake fragment file, which is
included in the top Makefile.am. The macro also searches a tool to
calculate md5sum. We prefer gmd5sum over md5, i.e., on Darwin we
prefer the GNU version installed by port.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Date
File size: 846 bytes
Line 
1# ===========================================================================
2#          http://autoconf-archive.cryp.to/ax_ac_print_to_file.html
3# ===========================================================================
4#
5# SYNOPSIS
6#
7#   AX_AC_PRINT_TO_FILE([FILE],[DATA])
8#
9# DESCRIPTION
10#
11#   Writes the specified data to the specified file when Autoconf is is run.
12#   If you want to print to a file when configure is run use
13#   AX_PRINT_TO_FILE instead.
14#
15# LICENSE
16#
17#   Copyright (c) 2009 Allan Caffee <allan.caffee@gmail.com>
18#
19#   Copying and distribution of this file, with or without modification, are
20#   permitted in any medium without royalty provided the copyright notice
21#   and this notice are preserved.
22
23AC_DEFUN([AX_AC_PRINT_TO_FILE],[
24AC_REQUIRE([AX_FILE_ESCAPES])
25m4_esyscmd(
26AX_FILE_ESCAPES
27[
28printf "$2" > "$1"
29])
30])
Note: See TracBrowser for help on using the repository browser.