Don't pass arbitrary string values as format strings
[charm.git] / src / arch / common / conv-mach-papi.sh
1 CMK_USE_PAPI=true
2
3 #default papi dir
4 #guess where the papi.h is installed
5 if test -z "$CMK_INCDIR"
6 then
7   # abe.ncsa
8   if test -f /usr/apps/tools/papi/include/papi.h
9   then
10     CMK_INCDIR="-I /usr/apps/tools/papi/include"
11     if test -n "$CMK_CC64"
12     then
13       PAPI_LIBDIR="/usr/apps/tools/papi/lib64"
14     else
15       PAPI_LIBDIR="/usr/apps/tools/papi/lib"
16     fi
17     CMK_LIBDIR="-L $PAPI_LIBDIR"
18     CMK_LD="$CMK_LD -Wl,-rpath,$PAPI_LIBDIR"
19     CMK_LDXX="$CMK_LDXX -Wl,-rpath,$PAPI_LIBDIR"
20   fi
21 fi
22
23
24 CMK_LIBS="$CMK_LIBS -lpapi"