-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
37 lines (31 loc) · 863 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
# Specify the project and version + the minimum automake version required.
AC_PREREQ(2.66)
AC_INIT([confetti], [0.1.0])
# Sanity check to verify this is indeed the source directory.
AC_CONFIG_SRCDIR([confetti_unidata.c])
# Initialize automake and use "foreign" so it doesn't attmpet to look for or
# create a GNU project structure: COPYING, NEWS, etc...
AM_INIT_AUTOMAKE([foreign])
# Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
LT_INIT([win32-dll])
# Run compilation tests against a C compiler.
AC_LANG([C])
# Check for C11.
AC_MSG_CHECKING(for _Noreturn)
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[ #include <stdlib.h>
_Noreturn void foo(void) { exit(0); } ],
[ foo(); ]
)],
[AC_MSG_RESULT([yes])],
[AC_MSG_ERROR([no])])
# Generate output files with macros expanded.
AC_CONFIG_FILES([
Makefile
confetti.pc
])
AC_OUTPUT