Merge branch 'minor'
[automake.git] / m4 / as.m4
blob70ffc2e2528f97850d5620cd6634ddc3271ae6d8
1 # Figure out how to run the assembler.                      -*- Autoconf -*-
3 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # AM_PROG_AS
10 # ----------
11 AC_DEFUN([AM_PROG_AS],
12 [# By default we simply use the C compiler to build assembly code.
13 AC_REQUIRE([AC_PROG_CC])
14 test "${CCAS+set}" = set || CCAS=$CC
15 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
16 AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
17 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
18 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl