annotate configure.ac @ 887:3032cb926799 BRANCH_1_2_18

Added tag RELEASE_1_2_18_1 for changeset c1b22b049682
author Ben Schmidt
date Wed, 05 Feb 2014 17:14:22 +1100
parents fdc57c9e5f56
children 7ed55458d9e3
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)
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
17
21ce01de8109 Initial revision
mmj
parents:
diff changeset
18 # Checks for header files.
21ce01de8109 Initial revision
mmj
parents:
diff changeset
19 AC_HEADER_STDC
21ce01de8109 Initial revision
mmj
parents:
diff changeset
20 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stddef.h stdlib.h string.h])
21ce01de8109 Initial revision
mmj
parents:
diff changeset
21 AC_CHECK_HEADERS([sys/socket.h syslog.h unistd.h time.h])
21ce01de8109 Initial revision
mmj
parents:
diff changeset
22
21ce01de8109 Initial revision
mmj
parents:
diff changeset
23 # Checks for typedefs, structures, and compiler characteristics.
21ce01de8109 Initial revision
mmj
parents:
diff changeset
24 AC_C_CONST
21ce01de8109 Initial revision
mmj
parents:
diff changeset
25 AC_TYPE_SIZE_T
21ce01de8109 Initial revision
mmj
parents:
diff changeset
26
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
27 savex=$exec_prefix
445
e4494aa175f5 Bugfixes and 1.2.2
mmj
parents: 443
diff changeset
28 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
29 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
30 tmp=$datadir/$PACKAGE/text.skel
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
31 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
32 exec_prefix=$savex
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
33
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
34 AC_SUBST(textlibdir)
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents: 390
diff changeset
35
748
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 655
diff changeset
36 AC_ARG_ENABLE([receive-strip],
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 655
diff changeset
37 AS_HELP_STRING([--enable-receive-strip],
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 655
diff changeset
38 [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
39 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
40
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
41 # Checks for library functions.
21ce01de8109 Initial revision
mmj
parents:
diff changeset
42 AC_FUNC_MALLOC
21ce01de8109 Initial revision
mmj
parents:
diff changeset
43 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
44 AC_CHECK_FUNCS([nanosleep time strftime syslog regcomp regexec])
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
45
21ce01de8109 Initial revision
mmj
parents:
diff changeset
46 AC_CONFIG_FILES([Makefile])
21ce01de8109 Initial revision
mmj
parents:
diff changeset
47 AC_CONFIG_FILES([src/Makefile])
749
fdc57c9e5f56 Remove .sh from mlmmj-make-ml.sh; symlink original name
Ben Schmidt
parents: 748
diff changeset
48 AC_CONFIG_FILES([src/mlmmj-make-ml])
390
61513d6dc4f2 Prep for 1.1.0 and patch from Drake Wyrm
mmj
parents: 366
diff changeset
49 AC_CONFIG_FILES([listtexts/Makefile])
649
5eef399f6c4a Fixed build outside the source directory (Ansgar Burchardt)
mortenp
parents: 631
diff changeset
50 AC_CONFIG_FILES([contrib/Makefile])
748
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 655
diff changeset
51 AC_CONFIG_FILES([contrib/receivestrip/Makefile])
0
21ce01de8109 Initial revision
mmj
parents:
diff changeset
52 AC_OUTPUT