-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.ac
102 lines (76 loc) · 2.21 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
# Copyright (C) 2015 Tobias Oetiker
AC_INIT([ooceapps],m4_esyscmd([tr -d '\n' < VERSION]),[[email protected]])
AC_PREREQ([2.59])
AC_CONFIG_AUX_DIR(conftools)
SCRIPT_NAME=ooceapps
AC_SUBST(SCRIPT_NAME)
CLASS_NAME=OOCEapps
AC_SUBST(CLASS_NAME)
# need this to allow long path names
AM_INIT_AUTOMAKE([1.9 tar-ustar foreign])
AM_MAINTAINER_MODE
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PREFIX_DEFAULT(/opt/$PACKAGE_NAME-$PACKAGE_VERSION)
AC_ARG_VAR(PERL, [Path to local perl binary])
AC_PATH_PROG(PERL, perl, no)
AC_PATH_PROG(CURL, curl, no)
AC_PATH_PROG(WGET, wget, no)
AC_PATH_PROG(POD2MAN, pod2man, no)
URL_CAT="neither curl nor wget found"
if test -x "$WGET"; then
URL_CAT="$WGET -O -"
else
if test -x "$CURL"; then
URL_CAT="$CURL --location --insecure"
fi
fi
AC_SUBST(URL_CAT)
ac_perl_version="5.10.1"
if test "x$PERL" != "x"; then
AC_MSG_CHECKING(for perl version greater than or equal to $ac_perl_version)
$PERL -e "use $ac_perl_version;" >/dev/null 2>&1
if test $? -ne 0; then
AC_MSG_RESULT(no);
AC_MSG_ERROR(at least version 5.10.1 is required to run mojolicious)
else
AC_MSG_RESULT(ok);
fi
else
AC_MSG_ERROR(could not find perl)
fi
AC_PROG_GREP
AC_ARG_VAR(GMAKE, [Path to local GNU Make binary])
AC_PATH_PROGS(GMAKE, [gnumake gmake make])
AC_MSG_CHECKING([for gnu make availablility])
if ( $GMAKE --version 2> /dev/null | $GREP GNU > /dev/null 2>&1 ); then
AC_MSG_RESULT([$GMAKE is GNU make])
else
AC_MSG_ERROR([GNU make not found. Try setting the GMAKE environment variable.])
fi
AC_ARG_ENABLE(pkgonly,
AC_HELP_STRING([--enable-pkgonly],
[Skip all checking]))
AC_SUBST(enable_pkgonly)
actual_prefix=$prefix
if test x$actual_prefix = xNONE; then
actual_prefix=$ac_default_prefix
fi
AC_ARG_VAR(PERL5LIB, [Colon separated list of perl library directories])
AC_SUBST(PERL5LIB)
AC_CONFIG_FILES([
Makefile
etc/Makefile
lib/Makefile
thirdparty/Makefile
])
AC_SUBST(VERSION)
AC_OUTPUT
cat <<NOTES
** CONFIGURE DONE **********************************************
Settings:
PERL5LIB = ${PERL5LIB:-"not set"}
PERL = $PERL
The Makefiles use GNU make functionality.
Continue installation with
$GMAKE install
NOTES