-
Notifications
You must be signed in to change notification settings - Fork 7
/
configure.ac
40 lines (31 loc) · 1.07 KB
/
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(tx, 0.18, [email protected])
AC_CONFIG_SRCDIR([ssv.cpp])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE(tx, 0.18)
# Checks for programs.
AC_PROG_CXX
# Checks for libraries.
AC_PROG_LIBTOOL
# Checks for header files.
AC_CHECK_HEADERS([memory.h sys/types.h sys/stat.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
AC_HEADER_STDC
AC_FUNC_SELECT_ARGTYPES
AC_CHECK_FUNCS([memset select])
# Default Compiler Option
if test x$CC = xgcc; then
CFLAGS="$CFLAGS -g -Wall -Wformat=2 -pipe -Wno-sign-compare -D_FORTIFY_SOURCE=1 -Wcast-qual -Wcast-align -Wpointer-arith -Wwrite-strings"
fi
if test x$CXX = xg++; then
CPPFLAGS="$CPPFLAGS -g -Wall -Wformat=2 -pipe -Wno-sign-compare -D_FORTIFY_SOURCE=1 -Wcast-qual -Wcast-align -Wpointer-arith -Wwrite-strings -Woverloaded-virtual"
fi
AC_CONFIG_FILES([Makefile tx.pc])
AC_OUTPUT