source: trunk/m4/ax_ac_print_to_file.m4 @ 4099

Last change on this file since 4099 was 4099, checked in by Peter, 3 months ago

avoid setting svn:keywords on 3rd-party files

  • Property svn:eol-style set to native
File size: 905 bytes
RevLine 
[2112]1# ===========================================================================
[3783]2#   https://www.gnu.org/software/autoconf-archive/ax_ac_print_to_file.html
[2112]3# ===========================================================================
4#
5# SYNOPSIS
6#
7#   AX_AC_PRINT_TO_FILE([FILE],[DATA])
8#
9# DESCRIPTION
10#
[2524]11#   Writes the specified data to the specified file when Autoconf is run. If
12#   you want to print to a file when configure is run use AX_PRINT_TO_FILE
13#   instead.
[2112]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
[2327]21#   and this notice are preserved. This file is offered as-is, without any
22#   warranty.
[2112]23
[3783]24#serial 10
[2327]25
[2112]26AC_DEFUN([AX_AC_PRINT_TO_FILE],[
[2327]27m4_esyscmd(
[2112]28AC_REQUIRE([AX_FILE_ESCAPES])
29[
[3783]30printf "%s" "$2" > "$1"
[2112]31])
32])
Note: See TracBrowser for help on using the repository browser.