-
Notifications
You must be signed in to change notification settings - Fork 11
/
configure.ac
103 lines (91 loc) · 2.66 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
dnl $Id: configure.in,v 1.24 2007/12/27 01:08:52 mk Exp $
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.13)
AC_CONFIG_MACRO_DIRS([m4])
AC_INIT([racoon2], [2018-07-09], [[email protected]])
AM_INIT_AUTOMAKE([subdir-objects])
AC_PREFIX_DEFAULT(/usr/local)
AC_CANONICAL_HOST
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PROG_MAKE_SET
RC_IF_INSTALL_OPTS
AC_CONFIG_SUBDIRS([lib spmd iked kinkd])
dnl Set the debug option by default for now.
AC_MSG_CHECKING(if --enable-debug option is specified)
AC_ARG_ENABLE(debug,
[ --enable-debug build a debug version [yes]],
AC_MSG_RESULT($enable_debug),
AC_MSG_RESULT(default to yes)
enable_debug=yes
ac_configure_args="$ac_configure_args --enable-debug")
AC_MSG_CHECKING(if --enable-pcap option is specified)
AC_ARG_ENABLE(pcap,
[ --enable-pcap use libpcap to capture decoded packets [no]],
, [enable_pcap=no])
AC_MSG_RESULT($enable_pcap)
dnl check --enable-pedant
AC_MSG_CHECKING(if --enable-pedant option is specified)
AC_ARG_ENABLE(pedant,
[ --enable-pedant build with pedantic compiler options [no]],
, [enable_pedant=no])
AC_MSG_RESULT($enable_pedant)
dnl set $prefix to the configure option
dnl autoconf-2.13 does not propagate the default prefix to subdirs,
dnl so do by ourselves.
if test x$prefix = x"NONE" ; then
prefix="$ac_default_prefix"
ac_configure_args="$ac_configure_args --prefix='$prefix'"
fi
dnl Switch for startup mechanism.
AC_SUBST(startup_scripts)
AC_ARG_ENABLE(startup-scripts, [ --enable-startup-scripts install startup scripts [yes]], , [enable_startup_scripts=yes])
if test x"$enable_startup_scripts" = xyes; then
case $host_os in
netbsd*1.[[56]]*|netbsd*[[2-9]].*)
startup_scripts=rc.d
;;
freebsd[[5-9]].*)
startup_scripts=rc.d
;;
*)
startup_scripts=init.d
;;
esac
else
dnl For pkgsrc framework (use RCD_SCRIPTS instead).
startup_scripts=none
fi
dnl perl_bindir
AC_PATH_PROGS(perl_bindir, perl, missing_perl)
AC_SUBST(perl_bindir)
AC_CONFIG_FILES([Makefile pskgen/Makefile
pskgen/pskgen pskgen/autogen.spmd.pwd
samples/hook/child-down
samples/hook/child-rekey
samples/hook/child-up
samples/hook/ikesa-down
samples/hook/ikesa-rekey
samples/hook/ikesa-up
samples/hook/ph1-down
samples/hook/ph1-up
samples/hook/migration
samples/hook/child-down.d/Makefile
samples/hook/child-up.d/Makefile
samples/hook/ikesa-up.d/Makefile
samples/hook/Makefile
samples/Makefile
samples/rc.d/iked
samples/rc.d/kinkd
samples/rc.d/racoon2
samples/rc.d/spmd
samples/rc.d/Makefile
samples/racoon2.conf
samples/init.d/iked
samples/init.d/kinkd
samples/init.d/spmd
samples/init.d/Makefile
samples/vals.conf])
AC_OUTPUT