source: trunk/project/project.tmpl @ 1

Revision 1, 2.2 KB checked in by mmamonski, 13 years ago (diff)

Torque/PBS DRMAA initial commit

Line 
1## $Id: project.tmpl 2420 2009-06-24 14:40:21Z lukasz $
2#encoding utf-8
3#extends project_template.templates.Autotools
4
5#def generated_files
6#return (Autotools.generated_files(self)
7  | set([
8                'm4/acx_pthread.m4',
9                'm4/ax_docutils.m4',
10        'm4/ax_gperf.m4',
11                'm4/ax_drmaa_utils.m4',
12                'm4/ax_pbs.m4',
13        ]))
14#end def
15
16#block ac_programs
17${Autotools.ac_programs(self)}
18\# code generation tools:
19AX_GPERF
20## AC_CHECK_PROGS([RAGEL], [ragel], [sh m4/missing-dev-prog.sh ragel])
21
22\# reStructuredText processing:
23AX_DOCUTILS()
24if test x\$RST2HTML = x; then
25        RST2HTML="sh m4/missing-dev-prog.sh docutils"
26fi
27if test x\$RST2LATEX = x; then
28        RST2LATEX="sh m4/missing-dev-prog.sh docutils"
29fi
30#end block ac_programs
31
32#block ac_libraries
33#raw
34ACX_PTHREAD([CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS"],
35                [AC_MSG_ERROR([POSIX threads library is required.])])
36#end raw
37
38AX_DRMAA_UTILS([builtin], [:], [AC_MSG_ERROR([
39drmaa_utils libraries/headers not found]) ])
40
41AX_PBS([:], [AC_MSG_ERROR([
42PBS libraries/headers not found;
43add --with-pbs to set PBS installation root.]) ])
44#raw
45if test ${sysconfdir} == '${prefix}/etc' -a "$prefix" == 'NONE'; then
46        sysconfdir='/etc'
47        ac_configure_args="${ac_configure_args} --sysconfdir=${sysconfdir}"
48fi
49CPPFLAGS="${CPPFLAGS} -DCONFDIR=${sysconfdir}"
50#end raw
51#end block ac_libraries
52
53#block ac_headers
54AC_HEADER_STDC
55AC_HEADER_TIME
56AC_CHECK_HEADERS([stddef.h stdlib.h string.h strings.h sys/time.h unistd.h])
57#end block ac_headers
58
59#block ac_types
60AC_TYPE_SIZE_T
61#end block ac_types
62#block ac_structures
63AC_STRUCT_TM
64#end block ac_structures
65
66#block ac_functions
67AC_FUNC_MALLOC
68AC_FUNC_STRFTIME
69AC_FUNC_VPRINTF
70AC_CHECK_FUNCS([ \
71        asprintf \
72        fstat \
73        getcwd \
74        gettimeofday \
75        localtime_r \
76        memset \
77        mkstemp \
78        setenv \
79        strcasecmp \
80        strchr \
81        strdup \
82        strerror \
83        strlcpy \
84        strndup \
85        strstr \
86        strtol \
87        vasprintf \
88        ])
89#end block ac_functions
90
91#block ac_config_files
92AC_CONFIG_FILES([
93        Makefile
94        pbs_drmaa/Makefile
95        doc/Makefile
96])
97AC_CONFIG_HEADERS([config.h])
98AC_CONFIG_SUBDIRS([drmaa_utils])
99#end block ac_config_files
100
101
102#block top_makefile_am
103${makefile_am_header}
104${top_makefile_am_specific}
105SUBDIRS = drmaa_utils pbs_drmaa doc
106#end block top_makefile_am
107
Note: See TracBrowser for help on using the repository browser.