forked from drk1wi/portspoof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
50 lines (38 loc) · 1.12 KB
/
configure.in
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.
CFLASGS="${CFLAGS=}"
AC_PREREQ(2.61)
AC_INIT([portspoof], [1.2], [piotr[at]duszynski.eu])
AC_CONFIG_AUX_DIR(auto)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE(portspoof,1.2)
AC_CONFIG_SRCDIR([src/Portspoof.cpp])
AC_CONFIG_HEADER([src/config.h])
AC_DEFINE([_GNU_SOURCE], [1], [Use GNU source])
UNAME=`uname`
AC_CANONICAL_HOST
AC_SUBST([host])
# Check system type
case "$host_os" in
linux*)
AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system])
;;
esac
# Checks for programs.
AC_PROG_CXX
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_MAKE_SET
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/timeb.h syslog.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([inet_ntoa memset socket])
AC_CONFIG_FILES([Makefile src/Makefile tools/Makefile])
AC_OUTPUT