forked from arschlochnop/hack_tools_for_me
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
58 lines (46 loc) · 1.29 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
51
52
53
54
55
56
57
58
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
AC_INIT([ssocks], [0.0.14], [[email protected]])
AC_CONFIG_SRCDIR([src/auth-util.c])
AC_CONFIG_HEADERS([config.h])
# libtool
AC_PROG_LIBTOOL
AC_DISABLE_SHARED
AC_ENABLE_STATIC
AC_SUBST(LIBTOOL_DEPS)
AM_CONDITIONAL(USE_STATIC, test $enable_static = yes)
# Checks for programs.
AC_PROG_CC
# I need it!
AM_INIT_AUTOMAKE
#([ssocks], [0.0.1])
# Checks for libraries.
#AC_CHECK_LIB(pthread, pthread_create)
# Check SSL
AC_ARG_WITH(ssl,
[ --with-ssl enable ssl
],
[ AC_MSG_RESULT(Enable SSL ...)
AC_CHECK_LIB(ssl, SSL_library_init)
AM_CONDITIONAL(WITH_SSL, /bin/true)
],
[
AC_MSG_RESULT(No SSL ...)
AM_CONDITIONAL(WITH_SSL, /bin/false)
])
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_PID_T
AC_TYPE_UINT16_T
# Checks for library functions.
AC_FUNC_FORK
AC_CHECK_FUNCS([atexit gethostbyname gettimeofday inet_ntoa memmove memset select socket strcasecmp strchr])
AC_CONFIG_FILES([Makefile
man/Makefile
src/libsocks/Makefile
src/Makefile
scripts/Makefile])
AC_OUTPUT