-
Notifications
You must be signed in to change notification settings - Fork 18
/
configure.ac
99 lines (87 loc) · 2.96 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# This file is part of the Green End SFTP Server.
# Copyright (C) 2007, 2011, 2014-2016, 2018 Richard Kettlewell
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
# Process this file with autoconf to produce a configure script.
AC_INIT(sftpserver, 2, [email protected])
AC_CONFIG_AUX_DIR([config.aux])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([alloc.c])
AM_CONFIG_HEADER([config.h])
AC_PROG_CC
AC_SET_MAKE
#AC_PROG_LIBTOOL
#AC_LIBTOOL_DLOPEN
#AC_DISABLE_STATIC
#RJK_BUILDSYS_FINK
RJK_BUILDSYS_MISC
#RJK_GTKFLAGS
AC_PROG_RANLIB
AM_PROG_AR
RJK_THREADS
AC_CHECK_HEADERS([endian.h sys/prctl.h])
AC_CHECK_LIB([socket],[socket])
AC_CHECK_LIB([readline],[readline],
[AC_SUBST([LIBREADLINE],[-lreadline])
AC_DEFINE([HAVE_READLINE],[1],[define if you have a readline library])])
RJK_ICONV
AC_DEFINE([_GNU_SOURCE], [1], [required for e.g. strsignal])
AC_C_INLINE
AC_SYS_LARGEFILE
AC_REPLACE_FUNCS([daemon futimes utimes futimens utimensat])
AC_CHECK_FUNCS([getaddrinfo prctl])
AC_CHECK_DECLS([be64toh, htobe64])
AC_C_BIGENDIAN
RJK_SIZE_MAX
RJK_GCC_WARNINGS
RJK_GCC_ATTRS
RJK_STAT_TIMESPEC
RJK_GETOPT
RJK_PYTHON3
dnl See commentary in v3.c for what's going on here
AC_MSG_CHECKING([whether to reverse SSH_FXP_SYMLINK arguments])
AC_ARG_ENABLE([reversed-symlink],
[AS_HELP_STRING([--enable-reversed-symlink],
[Reverse SSH_FXP_SYMLINK arguments])],
[revlink="$enableval"],
[revlink=no])
AC_MSG_RESULT([$revlink])
if test $revlink = yes; then
AC_DEFINE([REVERSE_SYMLINK],[1],[define to reverse SSH_FXP_SYMLINK args])
fi
AC_ARG_ENABLE([daemon],
[AS_HELP_STRING([--enable-daemon],
[Turn on daemon mode support])],
[daemon="$enableval"],
[daemon=no])
if test $daemon = yes; then
AC_DEFINE([DAEMON],[1],[define to enable daemon mode])
fi
AC_ARG_WITH([threads],
[AS_HELP_STRING([--with-threads=N],
[Default number of runtime threads])],
[nthreads="${withval}"],
[nthreads=4])
AC_DEFINE_UNQUOTED([NTHREADS],[$nthreads],[Default number of runtime threads])
# To override:
# ./configure ETCDIR=/path/to/etc
AC_SUBST([ETCDIR],[${ETCDIR:-/etc}])
RJK_GCOV
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
dnl Local Variables:
dnl indent-tabs-mode:nil
dnl End: