File: configure.ac

package info (click to toggle)
mlmmj 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,772 kB
  • sloc: ansic: 13,308; sh: 1,709; php: 1,133; perl: 904; python: 190; makefile: 184
file content (54 lines) | stat: -rw-r--r-- 1,659 bytes parent folder | download
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
# Process this file with autoconf to produce a configure script.
AC_INIT(mlmmj, esyscmd([tr -d '\n' < VERSION]), maintainer@mlmmj.org)

VERSION=$PACKAGE_VERSION
AC_SUBST(VERSION)

AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_SRCDIR([src/mlmmj-receive.c])
AM_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AC_CHECK_LIB(socket,socket)
AC_CHECK_LIB(nsl,gethostbyname)
AC_CHECK_LIB(iconv,iconv_open)

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stddef.h stdlib.h string.h])
AC_CHECK_HEADERS([sys/socket.h syslog.h unistd.h time.h])
AC_CHECK_HEADER([iconv.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T

savex=$exec_prefix
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
tmp=$datadir/$PACKAGE/text.skel
while textlibdir=`eval echo "$tmp"`; test "x$textlibdir" != "x$tmp"; do tmp=$textlibdir; done
exec_prefix=$savex

AC_SUBST(textlibdir)

AC_ARG_ENABLE([receive-strip],
  AS_HELP_STRING([--enable-receive-strip],
                 [build mlmmj-receive-strip (default is no)]))
AM_CONDITIONAL(WANT_RECEIVESTRIP, test x"$enable_receive_strip" = xyes)

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([ftruncate memset socket strerror strncasecmp snprintf fcntl])
AC_CHECK_FUNCS([nanosleep time strftime syslog regcomp regexec])

AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([src/Makefile])
AC_CONFIG_FILES([src/mlmmj-make-ml])
AC_CONFIG_FILES([listtexts/Makefile])
AC_CONFIG_FILES([contrib/Makefile])
AC_CONFIG_FILES([contrib/receivestrip/Makefile])
AC_OUTPUT