serval-dna/m4/ax_tmpdir_swift.m4

23 lines
555 B
Plaintext
Raw Permalink Normal View History

# Serval Project Swift language support
#
# SYNOPSIS
#
# AX_TMPDIR_SWIFT
#
# DESCRIPTION
#
# AX_TMPDIR_SWIFT creates a temporary directory prefixed with "swft" that
# will be deleted when the shell exits. It sets the ax_tmpdir_swift shell
# variable to the absolute path of the created directory.
#
# Uses AS_TMPDIR() internally but preserves the value of the 'tmp' shell
# variable.
#
AC_DEFUN([AX_TMPDIR_SWIFT],[
AS_VAR_COPY([_swift_tmp], [tmp])
AS_TMPDIR([swft])
ax_tmpdir_swift="$tmp"
AS_VAR_COPY([tmp], [_swift_tmp])
])