Mercurial > hg > mlmmj
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 |
rev | line source |
---|---|
0 | 1 # Process this file with autoconf to produce a configure script. |
2 AC_INIT(mlmmj, esyscmd([tr -d '\n' < VERSION]), mmj@mmj.dk) | |
3 | |
366 | 4 VERSION=$PACKAGE_VERSION |
0 | 5 AC_SUBST(VERSION) |
6 | |
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 | 9 AM_CONFIG_HEADER([config.h]) |
10 | |
11 # Checks for programs. | |
12 AC_PROG_CC | |
13 | |
14 # Checks for libraries. | |
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 | 17 |
18 # Checks for header files. | |
19 AC_HEADER_STDC | |
20 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stddef.h stdlib.h string.h]) | |
21 AC_CHECK_HEADERS([sys/socket.h syslog.h unistd.h time.h]) | |
22 | |
23 # Checks for typedefs, structures, and compiler characteristics. | |
24 AC_C_CONST | |
25 AC_TYPE_SIZE_T | |
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 | 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 | 41 # Checks for library functions. |
42 AC_FUNC_MALLOC | |
43 AC_CHECK_FUNCS([ftruncate memset socket strerror strncasecmp snprintf fcntl]) | |
269 | 44 AC_CHECK_FUNCS([nanosleep time strftime syslog regcomp regexec]) |
0 | 45 |
46 AC_CONFIG_FILES([Makefile]) | |
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 | 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 | 52 AC_OUTPUT |