mirror of https://github.com/c-ares/c-ares.git
parent
e73fb47266
commit
c54ce6c0b9
4 changed files with 128 additions and 0 deletions
@ -0,0 +1,32 @@ |
|||||||
|
# =========================================================================== |
||||||
|
# https://www.gnu.org/software/autoconf-archive/ax_ac_append_to_file.html |
||||||
|
# =========================================================================== |
||||||
|
# |
||||||
|
# SYNOPSIS |
||||||
|
# |
||||||
|
# AX_AC_APPEND_TO_FILE([FILE],[DATA]) |
||||||
|
# |
||||||
|
# DESCRIPTION |
||||||
|
# |
||||||
|
# Appends the specified data to the specified Autoconf is run. If you want |
||||||
|
# to append to a file when configure is run use AX_APPEND_TO_FILE instead. |
||||||
|
# |
||||||
|
# LICENSE |
||||||
|
# |
||||||
|
# Copyright (c) 2009 Allan Caffee <allan.caffee@gmail.com> |
||||||
|
# |
||||||
|
# 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 10 |
||||||
|
|
||||||
|
AC_DEFUN([AX_AC_APPEND_TO_FILE],[ |
||||||
|
AC_REQUIRE([AX_FILE_ESCAPES]) |
||||||
|
m4_esyscmd( |
||||||
|
AX_FILE_ESCAPES |
||||||
|
[ |
||||||
|
printf "%s" "$2" >> "$1" |
||||||
|
]) |
||||||
|
]) |
@ -0,0 +1,28 @@ |
|||||||
|
# =========================================================================== |
||||||
|
# https://www.gnu.org/software/autoconf-archive/ax_add_am_macro_static.html |
||||||
|
# =========================================================================== |
||||||
|
# |
||||||
|
# SYNOPSIS |
||||||
|
# |
||||||
|
# AX_ADD_AM_MACRO_STATIC([RULE]) |
||||||
|
# |
||||||
|
# DESCRIPTION |
||||||
|
# |
||||||
|
# Adds the specified rule to $AMINCLUDE. |
||||||
|
# |
||||||
|
# LICENSE |
||||||
|
# |
||||||
|
# Copyright (c) 2009 Tom Howard <tomhoward@users.sf.net> |
||||||
|
# Copyright (c) 2009 Allan Caffee <allan.caffee@gmail.com> |
||||||
|
# |
||||||
|
# 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 8 |
||||||
|
|
||||||
|
AC_DEFUN([AX_ADD_AM_MACRO_STATIC],[ |
||||||
|
AC_REQUIRE([AX_AM_MACROS_STATIC]) |
||||||
|
AX_AC_APPEND_TO_FILE(AMINCLUDE_STATIC,[$1]) |
||||||
|
]) |
@ -0,0 +1,38 @@ |
|||||||
|
# =========================================================================== |
||||||
|
# https://www.gnu.org/software/autoconf-archive/ax_am_macros_static.html |
||||||
|
# =========================================================================== |
||||||
|
# |
||||||
|
# SYNOPSIS |
||||||
|
# |
||||||
|
# AX_AM_MACROS_STATIC |
||||||
|
# |
||||||
|
# DESCRIPTION |
||||||
|
# |
||||||
|
# Adds support for macros that create Automake rules. You must manually |
||||||
|
# add the following line |
||||||
|
# |
||||||
|
# include $(top_srcdir)/aminclude_static.am |
||||||
|
# |
||||||
|
# to your Makefile.am files. |
||||||
|
# |
||||||
|
# LICENSE |
||||||
|
# |
||||||
|
# Copyright (c) 2009 Tom Howard <tomhoward@users.sf.net> |
||||||
|
# Copyright (c) 2009 Allan Caffee <allan.caffee@gmail.com> |
||||||
|
# |
||||||
|
# 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 11 |
||||||
|
|
||||||
|
AC_DEFUN([AMINCLUDE_STATIC],[aminclude_static.am]) |
||||||
|
|
||||||
|
AC_DEFUN([AX_AM_MACROS_STATIC], |
||||||
|
[ |
||||||
|
AX_AC_PRINT_TO_FILE(AMINCLUDE_STATIC,[ |
||||||
|
# ]AMINCLUDE_STATIC[ generated automatically by Autoconf |
||||||
|
# from AX_AM_MACROS_STATIC on ]m4_esyscmd([LC_ALL=C date])[ |
||||||
|
]) |
||||||
|
]) |
@ -0,0 +1,30 @@ |
|||||||
|
# =========================================================================== |
||||||
|
# https://www.gnu.org/software/autoconf-archive/ax_file_escapes.html |
||||||
|
# =========================================================================== |
||||||
|
# |
||||||
|
# SYNOPSIS |
||||||
|
# |
||||||
|
# AX_FILE_ESCAPES |
||||||
|
# |
||||||
|
# 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 8 |
||||||
|
|
||||||
|
AC_DEFUN([AX_FILE_ESCAPES],[ |
||||||
|
AX_DOLLAR="\$" |
||||||
|
AX_SRB="\\135" |
||||||
|
AX_SLB="\\133" |
||||||
|
AX_BS="\\\\" |
||||||
|
AX_DQ="\"" |
||||||
|
]) |
Loading…
Reference in new issue