-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
57 lines (43 loc) · 1.18 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
AC_INIT([zentyal-git], [0.1])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_SRCDIR([src/EBox/GIT.pm])
AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE
AC_DEFINE_DIR(DATADIR, datadir)
AC_DEFINE_DIR(LIBDIR, libdir)
AC_ARG_ENABLE([runtime-tests],
[ --disable-runtime-tests Do not try to test runtime dependencies],
,
enable_runtime_tests=yes)
if test "x$enable_runtime_tests" = "xyes" ; then
AC_CHECK_PROG(PERL, perl, perl, none)
if test "$PERL" = "none" ; then
AC_MSG_ERROR(perl not found)
fi
perlpath=`$PERL -e 'foreach (@INC) { print "$_\n";}' | grep "^$DATADIR" | head -1`
if test -z "$perlpath" ; then
perlpath=`$PERL -e 'foreach (@INC) { print "$_\n";}' | grep "^$prefix" | head -1`
fi
AC_CONF_EBOX
fi
if test -z "$perlpath" ; then
perlpath="$DATADIR/perl5/"
AC_MSG_NOTICE([Perl libraries will be installed in $perlpath, make sure to
include it in your path])
else
AC_MSG_NOTICE([Perl libraries will be installed in $perlpath])
fi
AC_DEFINE_DIR(PERLPATH, perlpath)
AC_CONFIG_FILES([
src/Makefile
src/scripts/Makefile
src/templates/Makefile
src/EBox/Makefile
src/EBox/CGI/Makefile
src/EBox/GIT/Makefile
src/EBox/GIT/Model/Makefile
schemas/Makefile
stubs/Makefile
Makefile
])
AC_OUTPUT