-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfigure.ac
More file actions
36 lines (27 loc) · 749 Bytes
/
configure.ac
File metadata and controls
36 lines (27 loc) · 749 Bytes
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
AC_PREREQ([2.71])
AC_INIT([ChadLibC], m4_esyscmd([build-aux/gen-version]),
[https://github.com/cute-engineewing/chadlibc/issues], [chadlibc])
AC_COPYRIGHT([Copyright (C) 2022 Cute Engineewing])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_FILES([Makefile libc/Makefile libm/Makefile test/Makefile])
AM_INIT_AUTOMAKE([foreign nostdinc subdir-objects])
AC_CANONICAL_HOST
AC_PROG_CC
AC_PROG_CPP
AC_PROG_RANLIB
AC_PROG_INSTALL
AS_CASE([$host_cpu],
[i?86], [ARCH=i386],
[x86_64], [ARCH=x86_64],
[AC_MSG_ERROR("No support for CPU $host_cpu")]
)
AC_SUBST([ARCH])
AS_CASE([$host_os],
[linux*], [OS=linux],
[AC_MSG_ERROR("No support for OS $host_os")]
)
AC_SUBST([OS])
AC_ARG_WITH([headers],
[sysheaders=$withval]
[sysheaders=''])
AC_OUTPUT