File: ax_print_to_file.m4

package info (click to toggle)
gearmand 1.0.6-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,564 kB
  • ctags: 5,428
  • sloc: cpp: 47,367; sh: 11,694; ansic: 2,985; makefile: 126; perl: 16
file content (27 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (25)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ===========================================================================
#     http://www.gnu.org/software/autoconf-archive/ax_print_to_file.html
# ===========================================================================
#
# SYNOPSIS
#
#   AX_PRINT_TO_FILE([FILE],[DATA])
#
# DESCRIPTION
#
#   Writes the specified data to the specified file.
#
# LICENSE
#
#   Copyright (c) 2008 Tom Howard <tomhoward@users.sf.net>
#
#   Copying and distribution of this file, with or without modification, are
#   permitted in any medium without royalty provided the copyright notice
#   and this notice are preserved. This file is offered as-is, without any
#   warranty.

#serial 7

AC_DEFUN([AX_PRINT_TO_FILE],[
AC_REQUIRE([AX_FILE_ESCAPES])
printf "$2" > "$1"
])