summaryrefslogtreecommitdiffabout
path: root/configure.ac
blob: 393932565f8c7604c37ff0991d4a31608f2a25a7 (plain)
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
#                                               -*- Autoconf -*-
# This file is part of fileserv.
# Copyright (C) 2017-2019 Sergey Poznyakoff
#
# Fileserv 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 3, or (at your option)
# any later version.
#
# Fileserv 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 fileserv.  If not, see <http://www.gnu.org/licenses/>.

AC_INIT([fileserv], 0.4, [gray+fileserv@gnu.org.ua])
AC_CONFIG_SRCDIR([src/fileserv.c])
AM_INIT_AUTOMAKE([1.15 foreign tar-ustar dist-xz silent-rules])
# Enable silent rules by default:
AM_SILENT_RULES([yes])
# Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_YACC
if ! $YACC --version 2>/dev/null | grep -q '^bison '; then
   YACC="$SHELL $missing_dir/missing bison"
fi
AC_PROG_LEX
if ! $LEX --version 2>/dev/null | grep -q '^flex '; then
   LEX="$SHELL $missing_dir/missing flex"
   AC_SUBST([LEX_OUTPUT_ROOT], [lex.yy])
   AC_SUBST([LEXLIB], [''])
fi
			
AC_CHECK_LIB([microhttpd],[MHD_start_daemon],[],
             [AC_MSG_ERROR([required library microhttpd not found

Please see https://www.gnu.org/software/libmicrohttpd for download instructions.])])
AC_CHECK_LIB([pthread],[pthread_sigmask])
AC_CHECK_LIB([wrap], [main])
AC_CHECK_LIB([nsl], [main])
AM_CONDITIONAL([FSRV_WRAP],[test x$ac_cv_lib_wrap_main = xyes])

AC_CONFIG_FILES([Makefile mimetypes/Makefile src/Makefile])
AC_OUTPUT

Return to:

Send suggestions and report system problems to the System administrator.