-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
50 lines (38 loc) · 1018 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
40
41
42
43
44
45
46
47
48
49
50
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT
#AC_CONFIG_SRCDIR([src/nodenet.c])
AC_CANONICAL_TARGET([])
AM_INIT_AUTOMAKE(nodenet, 0.0.0)
AM_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
AC_ARG_ENABLE(debug,
[ --enable-debug enable debug information [default=no]],
[
if test "$enableval" = "yes"; then
CFLAGS="$CFLAGS -Wall -DDEBUG"
else
CFLAGS="$CFLAGS -Wall -DNDEBUG"
fi
],[
CFLAGS="$CFLAGS -Wall -DNDEBUG"
]
)
CPPFLAGS="$CPPFLAGS"
LIBS="$LIBS -lm"
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h termios.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
AC_TYPE_SIGNAL
AC_CHECK_LIB(util, openpty)
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_PROG_RANLIB
AC_OUTPUT