forked from ircd-hybrid/hopm
-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
47 lines (36 loc) · 1.19 KB
/
configure.ac
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
dnl Process this file with autoconf to produce a configure script.
AC_REVISION([$Id$])
AC_PREREQ(2.69)
AC_INIT([hopm], [TRUNK], [[email protected]])
AM_INIT_AUTOMAKE(1.15)
AM_MAINTAINER_MODE
AC_CONFIG_SRCDIR(src/opercmd.h)
AC_CONFIG_HEADER(src/setup.h)
AC_CONFIG_MACRO_DIR([m4])
AC_PREFIX_DEFAULT([\${HOME}/hopm])
dnl Checks for programs.
AC_PROG_CC_C99
AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
[AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
LT_INIT
dnl check for yacc
AC_PROG_INSTALL
AC_PROG_YACC
dnl check for lexx
AM_PROG_LEX
AX_GCC_STACK_PROTECT_CC
AX_GCC_STACK_PROTECT_LIB
AX_LIBRARY_NET
AX_ARG_OPENSSL
AX_ARG_ENABLE_ASSERT
AX_ARG_ENABLE_WARNINGS
AX_ARG_ENABLE_EFENCE
AC_CHECK_FUNCS(strlcpy strlcat)
AC_CONFIG_FILES(Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile)
AC_OUTPUT
echo "###############################################################################"
echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
echo
echo "HOPM will be installed in ${prefix}. To change this, run:"
echo " ./configure --prefix=DIRECTORY"
echo "###############################################################################"