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

« back to all changes in this revision

Viewing changes to debian/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:
3
3
# Print compiler/linker flags to use ADIOS
4
4
# Version based on pkg-config, works with Multiarch.
5
5
#  - Alastair McKinstry, <mckinstry@debian.org>
6
 
 
7
 
#
 
6
#  Last Updated: 2014-06-16
8
7
 
9
8
 
10
9
function Usage () {
73
72
if [ "$PRINT_CFLAGS" == "yes" ]; then
74
73
    if [ "$OPT_READ" == "yes" ]; then
75
74
        if [ "$OPT_SEQ" == "yes" ]; then
76
 
            CFLAGS="$ADIOSREAD_SEQ_INC"
 
75
            CFLAGS=`pkgconfig adios --variable ADIOSREAD_SEQ_INC`
77
76
        else
78
 
            CFLAGS="$ADIOSREAD_INC"
 
77
            CFLAGS=`pkgconfig adios --variable ADIOSREAD_INC`
79
78
        fi 
80
79
    else
81
80
        if [ "$OPT_SEQ" == "yes" ]; then
82
 
            CFLAGS="$ADIOS_SEQ_INC"
 
81
            CFLAGS=`pkgconfig adiso --variable ADIOS_SEQ_INC`
83
82
        else
84
 
            CFLAGS="$ADIOS_INC"
 
83
            CFLAGS=`pkgconfig adios --variable ADIOS_INC`
85
84
        fi 
86
85
    fi
87
86
    if [ $NFLAGS_ASKED -gt 1 ]; then
95
94
        if [ "$OPT_READ" == "yes" ]; then
96
95
            # ADIOSREAD + SEQ
97
96
            if [ "$OPT_FORTRAN" == "yes" ]; then
98
 
                LDFLAGS="$ADIOSREAD_SEQ_FLIB"
 
97
                LDFLAGS=`pkgconfig adios --variable ADIOSREAD_SEQ_FLIB`
99
98
            else
100
 
                LDFLAGS="$ADIOSREAD_SEQ_CLIB"
 
99
                LDFLAGS=`pkgconfig adios --variable ADIOSREAD_SEQ_CLIB`
101
100
            fi
102
101
        else  # ADIOS + SEQ
103
102
            if [ "$OPT_FORTRAN" == "yes" ]; then
104
103
                #LDFLAGS="$ADIOS_SEQ_FLIB"
105
104
                LDFLAGS="There is no Fortran library of ADIOS for sequential codes"
106
105
            else
107
 
                LDFLAGS="$ADIOS_SEQ_CLIB"
 
106
                LDFLAGS=`pkgconfig adios --variable ADIOS_SEQ_CLIB`
108
107
            fi
109
108
        fi
110
109
    elif [ "$OPT_READ" == "yes" ]; then
111
110
        # ADIOSREAD + parallel code
112
111
        if [ "$OPT_FORTRAN" == "yes" ]; then
113
 
            LDFLAGS="$ADIOSREAD_FLIB"
 
112
            LDFLAGS=`pkgconfig adios --variable ADIOSREAD_FLIB`
114
113
        else
115
 
            LDFLAGS="$ADIOSREAD_CLIB"
 
114
            LDFLAGS=`pkgconfig adios --variable ADIOSREAD_CLIB`
116
115
        fi
117
116
    else 
118
117
        # ADIOS + parallel code
119
118
        if [ "$OPT_FORTRAN" == "yes" ]; then
120
 
            LDFLAGS="$ADIOS_FLIB"
 
119
            LDFLAGS=`pkgconfig adios --variable ADIOS_FLIB`
121
120
        else
122
 
            LDFLAGS="$ADIOS_CLIB"
 
121
            LDFLAGS=`pkgconfig adios --variable ADIOS_CLIB`
123
122
        fi
124
123
    fi 
125
124
    if [ $NFLAGS_ASKED -gt 1 ]; then