~ubuntu-branches/ubuntu/vivid/adios/vivid-proposed

« back to all changes in this revision

Viewing changes to adios_config

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2014-06-16 23:06:38 UTC
  • mfrom: (15.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140616230638-cxryhot6b8ge32l6
Tags: 1.7.0-1
* New upstream release.
* Add adios.pc pkgconfig file. adios_config now uses this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# Configuration values from configure script
7
7
#
8
8
 
9
 
FLAGSFILE=`dirname $0`/adios_config.flags
 
9
MYDIR=`dirname $0`
 
10
 
 
11
FLAGSFILE=${MYDIR}/adios_config.flags
10
12
if [ ! -f ${FLAGSFILE} ]; then
11
13
    echo "ERROR: settings file ${FLAGSFILE} not found."
12
14
    exit 1
13
15
fi
14
16
. ${FLAGSFILE}
15
17
 
16
 
GITSTATFILE=`dirname $0`/git.status
 
18
GITSTATFILE=${MYDIR}/git.status
17
19
if [ -f ${GITSTATFILE} ]; then
18
20
    . ${GITSTATFILE}
19
21
fi
20
22
 
21
23
function Usage () {
22
 
    echo "`basename $0` [-d | -c | -l] [-f] [-r] [-s] [-1] [-v] [-i]
 
24
    echo "`basename $0` [-d | -c | -l] [-f] [-r] [-s] [-1] [-m] [-v] [-i]
23
25
Arguments
24
26
   -d   Base directory for ADIOS install
25
27
   -c   Compiler flags for C/C++, using ADIOS write/read methods
30
32
   -s   Print above flags for using ADIOS in a sequential code (no MPI). 
31
33
   -1   Print above flags for using old Read API of ADIOS.
32
34
 
 
35
   -m   Print available write/read methods and data transformation methods
 
36
 
33
37
   -v   Version of the installed package
34
38
   -i   More installation information about the package
35
39
 
39
43
   - If none of d,c,l are given, all of them is printed
40
44
   - If none of f,r,s are given, flags for C/C++, using ADIOS write/read 
41
45
     methods are printed
 
46
   - -m can be combined with -r (readonly libraries) and -s (sequential libraries)
42
47
"
43
48
}
44
49
 
50
55
OPT_READ=no
51
56
OPT_SEQ=no
52
57
NFLAGS_ASKED=0
 
58
PRINT_METHODS=no
53
59
 
54
 
while getopts ":dclfrs1vih" Option
 
60
while getopts ":dclfrs1mvih" Option
55
61
do          
56
62
  case $Option in               
57
63
        d) PRINT_DIR=yes; let "NFLAGS_ASKED=NFLAGS_ASKED+1";;
61
67
        r) OPT_READ=yes;;
62
68
        s) OPT_SEQ=yes;;
63
69
        1) OPT_V1=yes;;
 
70
        m) PRINT_METHODS=yes; let "NFLAGS_ASKED=NFLAGS_ASKED+1";;
64
71
        v) echo "$VERSIONSTRING"; 
65
72
           exit 0;;
66
73
        i) echo "ADIOS $VERSIONSTRING"; 
75
82
shift $(($OPTIND - 1))
76
83
 
77
84
if [ $NFLAGS_ASKED == 0 ]; then
78
 
    NFLAGS_ASKED=3;
 
85
    NFLAGS_ASKED=4;
79
86
    PRINT_DIR=yes
80
87
    PRINT_CFLAGS=yes
81
88
    PRINT_LDFLAGS=yes
 
89
    PRINT_METHODS=yes
82
90
fi
83
91
 
84
92
#if [ "$OPT_SEQ" == "yes" ]; then
175
183
fi
176
184
 
177
185
 
 
186
if [ "$PRINT_METHODS" == "yes" ]; then
 
187
    if [ "$OPT_SEQ" == "yes" ]; then
 
188
        if [ "$OPT_READ" == "yes" ]; then
 
189
            # ADIOSREAD + SEQ
 
190
            if [ -x ${MYDIR}/list_methods_readonly_nompi ]; then
 
191
                ${MYDIR}/list_methods_readonly_nompi
 
192
            elif [ -x ./utils/list_methods/list_methods_readonly_nompi ]; then
 
193
                ./utils/list_methods/list_methods_readonly_nompi
 
194
            else
 
195
                echo "ERROR: cannot find executable list_methods_readonly_nompi"
 
196
            fi
 
197
        else
 
198
            # ADIOS + SEQ
 
199
            if [ -x ${MYDIR}/list_methods_nompi ]; then
 
200
                ${MYDIR}/list_methods_nompi
 
201
            elif [ -x ./utils/list_methods/list_methods_nompi ]; then
 
202
                ./utils/list_methods/list_methods_nompi
 
203
            else
 
204
               echo "ERROR: cannot find executable list_methods_nompi"
 
205
            fi
 
206
        fi
 
207
    else
 
208
        if [ "$OPT_READ" == "yes" ]; then
 
209
            # ADIOSREAD
 
210
            if [ -x ${MYDIR}/list_methods_readonly ]; then
 
211
                ${MYDIR}/list_methods_readonly
 
212
            elif [ -x ./utils/list_methods/list_methods_readonly ]; then
 
213
                ./utils/list_methods/list_methods_readonly
 
214
            else
 
215
                echo "ERROR: cannot find executable list_methods_readonly"
 
216
            fi
 
217
        else
 
218
            # ADIOS
 
219
            if [ -x ${MYDIR}/list_methods ]; then
 
220
                ${MYDIR}/list_methods
 
221
            elif [ -x ./utils/list_methods/list_methods ]; then
 
222
                ./utils/list_methods/list_methods
 
223
            else
 
224
               echo "ERROR: cannot find executable list_methods"
 
225
            fi
 
226
        fi
 
227
    fi
 
228
fi
 
229
 
178
230
 
179
231