annotate configure.ac @ 905:959ce1b9d78c BRANCH_1_2_19

Added tag RELEASE_1_2_19_0 for changeset b202ed626645
author Ben Schmidt
date Tue, 26 May 2015 07:34:51 +1000
parents 7ed55458d9e3
children bba3a46fee47
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
1 # Process this file with autoconf to produce a configure script.
21ce01de8109 Initial revision
mmj
parents:
diff changeset
2 AC_INIT(mlmmj, esyscmd([tr -d '\n' < VERSION]), mmj@mmj.dk)
21ce01de8109 Initial revision
mmj
parents:
diff changeset
3
366
7d6c9bb6168f Warning fixes and release prep
mmj
parents: 288
diff changeset
4 VERSION=$PACKAGE_VERSION
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
5 AC_SUBST(VERSION)
21ce01de8109 Initial revision
mmj
parents:
diff changeset
6
21ce01de8109 Initial revision
mmj
parents:
diff changeset
7 AM_INIT_AUTOMAKE(mlmmj, $VERSION)
748
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 655
diff changeset
8 AC_CONFIG_SRCDIR([src/mlmmj-receive.c])
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
9 AM_CONFIG_HEADER([config.h])
21ce01de8109 Initial revision
mmj
parents:
diff changeset
10
21ce01de8109 Initial revision
mmj
parents:
diff changeset
11 # Checks for programs.
21ce01de8109 Initial revision
mmj
parents:
diff changeset
12 AC_PROG_CC
21ce01de8109 Initial revision
mmj
parents:
diff changeset
13
21ce01de8109 Initial revision
mmj
parents:
diff changeset
14 # Checks for libraries.
21ce01de8109 Initial revision
mmj
parents:
diff changeset
15 AC_CHECK_LIB(socket,socket)
288
1f741ed4b937 Don't use daemon() since it's not present on Solaris. Use our own instead
mmj
parents: 269
diff changeset
16 AC_CHECK_LIB(nsl,gethostbyname)
896
7ed55458d9e3 Use iconv to convert unknown character sets.
Ben Schmidt
parents: 749
diff changeset
17 AC_CHECK_LIB(iconv,iconv_open)
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
18
21ce01de8109 Initial revision
mmj
parents:
diff changeset
19 # Checks for header files.
21ce01de8109 Initial revision
mmj
parents:
diff changeset
20 AC_HEADER_STDC
21ce01de8109 Initial revision
mmj
parents:
diff changeset
21 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stddef.h stdlib.h string.h])
21ce01de8109 Initial revision
mmj
parents:
diff changeset
22 AC_CHECK_HEADERS([sys/socket.h syslog.h unistd.h time.h])
896
7ed55458d9e3 Use iconv to convert unknown character sets.
Ben Schmidt
parents: 749
diff changeset
23 AC_CHECK_HEADER([iconv.h])
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
24
21ce01de8109 Initial revision
mmj
parents:
diff changeset
25 # Checks for typedefs, structures, and compiler characteristics.
21ce01de8109 Initial revision
mmj
parents:
diff changeset
26 AC_C_CONST
21ce01de8109 Initial revision
mmj
parents:
diff changeset
27 AC_TYPE_SIZE_T
21ce01de8109 Initial revision
mmj
parents:
diff changeset
28
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
29 savex=$exec_prefix
445
e4494aa175f5 Bugfixes and 1.2.2
mmj
parents: 443
diff changeset
30 test "x$prefix" = xNONE && prefix=$ac_default_prefix
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
31 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
32 tmp=$datadir/$PACKAGE/text.skel
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
33 while textlibdir=`eval echo "$tmp"`; test "x$textlibdir" != "x$tmp"; do tmp=$textlibdir; done
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
34 exec_prefix=$savex
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
35
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
36 AC_SUBST(textlibdir)
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
37
748
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 655
diff changeset
38 AC_ARG_ENABLE([receive-strip],
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 655
diff changeset
39 AS_HELP_STRING([--enable-receive-strip],
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 655
diff changeset
40 [build mlmmj-receive-strip (default is no)]))
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 655
diff changeset
41 AM_CONDITIONAL(WANT_RECEIVESTRIP, test x"$enable_receive_strip" = xyes)
655
d0eac1a38a8b Added --enable-recieve-strip configure option (Ansgar Burchardt)
mortenp
parents: 649
diff changeset
42
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
43 # Checks for library functions.
21ce01de8109 Initial revision
mmj
parents:
diff changeset
44 AC_FUNC_MALLOC
21ce01de8109 Initial revision
mmj
parents:
diff changeset
45 AC_CHECK_FUNCS([ftruncate memset socket strerror strncasecmp snprintf fcntl])
269
facf047c93c5 Add checks for regexec and regcomp to configure
mmj
parents: 19
diff changeset
46 AC_CHECK_FUNCS([nanosleep time strftime syslog regcomp regexec])
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
47
21ce01de8109 Initial revision
mmj
parents:
diff changeset
48 AC_CONFIG_FILES([Makefile])
21ce01de8109 Initial revision
mmj
parents:
diff changeset
49 AC_CONFIG_FILES([src/Makefile])
749
fdc57c9e5f56 Remove .sh from mlmmj-make-ml.sh; symlink original name
Ben Schmidt
parents: 748
diff changeset
50 AC_CONFIG_FILES([src/mlmmj-make-ml])
390
61513d6dc4f2 Prep for 1.1.0 and patch from Drake Wyrm
mmj
parents: 366
diff changeset
51 AC_CONFIG_FILES([listtexts/Makefile])
649
5eef399f6c4a Fixed build outside the source directory (Ansgar Burchardt)
mortenp
parents: 631
diff changeset
52 AC_CONFIG_FILES([contrib/Makefile])
748
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 655
diff changeset
53 AC_CONFIG_FILES([contrib/receivestrip/Makefile])
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
54 AC_OUTPUT