forked from towel1980/openlava
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
131 lines (118 loc) · 3.73 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#
# openlava project
#
# Copyright (C) 2011 David Bigagli
#
AC_INIT(openlava, 2.0)
AC_CONFIG_HEADERS(config.h)
AC_PREFIX_DEFAULT([/opt/openlava-2.0])
# Set some cluster configuration variables .
AC_SUBST([openlavadmin], [openlava])
AC_ARG_VAR([openlavaadmin], "")
AC_SUBST([openlavacluster], [openlava])
AC_ARG_VAR([openlavacluster], "")
# Cygwin support
AC_CANONICAL_SYSTEM
case "${target_os}" in
*cygwin*)
AM_CONDITIONAL([CYGWIN], [true]) ;;
*)
AM_CONDITIONAL([CYGWIN], [false]) ;;
esac
# Initialize the automake
AM_INIT_AUTOMAKE
# Expirimental scheduling module
# Leave for future
#AM_CONDITIONAL([SCHED_EXPERIMENTAL], [false])
# Clean output if possible
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
# Check for programs
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PROG_YACC
AC_PROG_LEX
AC_PROG_LN_S
AC_PROG_MAKE_SET
#AC_DEFINE(REL_DATE, "Jan 31 2012", "Set the release date.")
# Force warnings on for gcc
if test "x$ac_compiler_gnu" = xyes; then
CFLAGS="$CFLAGS -Wall"
fi
#AC_CHECK_HEADERS(ncurses.h,[cf_cv_ncurses_header="ncurses.h"])
# Check for tcl, we try tcl and all 8.X versions
AC_CHECK_HEADERS([tcl.h], [], [
AC_CHECK_HEADERS([tcl/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.6/tcl.h], [], [
AC_CHECK_HEADERS([tcl86/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.5/tcl.h], [], [
AC_CHECK_HEADERS([tcl85/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.4/tcl.h], [], [
AC_CHECK_HEADERS([tcl84/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.3/tcl.h], [], [
AC_CHECK_HEADERS([tcl83/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.2/tcl.h], [], [
AC_CHECK_HEADERS([tcl82/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.1/tcl.h], [], [
AC_CHECK_HEADERS([tcl81/tcl.h], [], [
AC_CHECK_HEADERS([tcl8.0/tcl.h], [], [
AC_CHECK_HEADERS([tcl80/tcl.h], [], [
AC_MSG_ERROR([cannot build openlava without tcl])
])])])])])])])])])])])])])])])])
AC_CHECK_LIB([tcl], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.6], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl86], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.5], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl85], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.4], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl84], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.3], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl83], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.2], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl82], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.1], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl81], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl8.0], [Tcl_CreateInterp], [], [
AC_CHECK_LIB([tcl80], [Tcl_CreateInterp], [], [
AC_MSG_ERROR([cannot build openlava without tcl8.*])
])])])])])])])])])])])])])])])
AC_CONFIG_FILES([
Makefile \
config/Makefile \
lsf/Makefile \
lsf/intlib/Makefile \
lsf/lib/Makefile \
lsf/lim/Makefile \
lsf/res/Makefile \
lsf/pim/Makefile \
lsf/lstools/Makefile \
lsf/lsadm/Makefile \
lsf/man/Makefile \
lsf/man/man1/Makefile \
lsf/man/man5/Makefile \
lsf/man/man8/Makefile \
lsbatch/Makefile \
lsbatch/lib/Makefile \
lsbatch/cmd/Makefile \
lsbatch/bhist/Makefile \
lsbatch/daemons/Makefile \
lsbatch/man1/Makefile \
lsbatch/man5/Makefile \
lsbatch/man8/Makefile \
eauth/Makefile \
scripts/Makefile \
chkpnt/Makefile \
config/lsf.conf \
config/lsb.hosts \
config/lsb.params \
config/lsb.queues \
config/lsb.users \
config/lsf.cluster.openlava \
config/lsf.shared \
config/lsf.task \
config/openlava.csh \
config/openlava \
config/openlava.setup \
config/openlava.sh]
)
AC_OUTPUT