File: configure.ac

package info (click to toggle)
ax25mail-utils 0.14-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 956 kB
  • sloc: ansic: 3,063; sh: 1,058; cpp: 386; perl: 105; makefile: 45
file content (59 lines) | stat: -rw-r--r-- 1,951 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
55
56
57
58
59
dnl Process this file with autoconf to produce a configure script.

AC_INIT([ax25mail-utils],[0.14], [ax25mail@trinnet.net], , [http://http://sourceforge.net/projects/ax25mail/])
AC_PREREQ([2.63])
AC_CONFIG_SRCDIR([ulistd/ulistd.c])
AC_CONFIG_AUX_DIR([build-aux])
## See https://bugzilla.redhat.com/show_bug.cgi?id=901333 for more
## information about the AC_CONFIG_MACRO_DIR
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([gnu -Wall -Werror 1.11.1])
AM_CONFIG_HEADER([config.h])
#AC_PREFIX_DEFAULT([/usr])
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LN_S
AC_PROG_INSTALL
AC_LANG_CPLUSPLUS
AC_LANG_C
AC_HEADER_STDC

AH_TEMPLATE([NEW_AX25], [AX.25 old/new flag])
AH_TEMPLATE([NEW_AXLIB], [AXLIB old/new flag])
AH_TEMPLATE([VERINFO], [Version string])
# TODO: move VERINFO to a more prominate location or eliminated it
AC_DEFINE([VERINFO], ["Development snapshot 022121-develop"])


AC_CHECK_HEADER([netax25/axlib.h],
		[AC_DEFINE([NEW_AXLIB], [1])
		  AC_MSG_CHECKING([for AX.25 version])
		  AC_TRY_COMPILE([#include <netax25/kernel_ax25.h>],
			         [#ifndef NEW_AX25_STACK
			          #error
			          #endif],
			         [AC_MSG_RESULT([new implementation])
			         AC_DEFINE([NEW_AX25], [1])],
			         [AC_MSG_RESULT([old implementation])] )],
		[AC_CHECK_HEADER([ax25/axutils.h], [], AC_MSG_ERROR([No libax25 headers found!]))])

AC_PATH_PROG([PERL], [perl], ["none"])
if test $PERL = "none"
then
  echo "-------------------------------------------------------------------"
  echo " WARNING: Cannot found 'perl' installed. Some tools won't work !!!"
  echo "-------------------------------------------------------------------"
  set PERL="/usr/bin/perl"
fi
AC_SUBST([PERL])
AC_OUTPUT([Makefile \
          agent/Makefile \
	  axgetlist/Makefile \
	  axgetmail/Makefile \
          axgetmail/msgcleanup \
	  conf/Makefile \
          contrib/Makefile \
	  man1/Makefile \
	  man8/Makefile \
          routes/Makefile \
          ulistd/Makefile])