forked from tommie/lx106-hal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
39 lines (32 loc) · 803 Bytes
/
configure.ac
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
28
29
30
31
32
33
34
35
36
37
38
39
# -*- Autoconf -*-
# Copyright (c) 2014 The ESP8266 Community
#
# See the LICENSE file.
#
AC_PREREQ([2.69])
AC_INIT([lx106-hal], [rc-2010.1])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([src/attribute.c])
AC_CONFIG_HEADERS([src/config.h])
AC_CANONICAL_HOST
CFLAGS="${CFLAGS:+$CFLAGS }-mlongcalls"
LDFLAGS="${LDFLAGS:+$LDFLAGS }-nostdlib"
AM_PROG_AS
AM_PROG_AR
AC_PROG_CC
AC_PROG_RANLIB
AC_MSG_CHECKING([for call0 ABI])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#if __XTENSA_CALL0_ABI__
#else
#error "Not call0 ABI"
#endif
], [])], [call0_abi=yes], [call0_abi=no])
AC_MSG_RESULT([$call0_abi])
AM_CONDITIONAL([XTENSA_CALL0_ABI], [test x$call0_abi = xyes])
CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-I\${top_srcdir}/include"
AC_OUTPUT([
Makefile
include/Makefile
src/Makefile
])