From: Christian Heinrich Date: Thu, 9 Jun 2016 13:06:58 +0000 (+0200) Subject: [SMPI] Fix local path that slipped in :) X-Git-Tag: v3_14~1009^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d4066bde992639ae96cb9054768a80a277bb513e [SMPI] Fix local path that slipped in :) --- diff --git a/src/smpi/smpiff.in b/src/smpi/smpiff.in index 6dceb77106..fe27e142a5 100644 --- a/src/smpi/smpiff.in +++ b/src/smpi/smpiff.in @@ -31,7 +31,7 @@ filter_and_compile() { list_add TMPFILES "${TMPFILE}" #replace "program main_name by subroutine user\_main (and the end clause as well)" if [ $TRACE_CALL_LOCATION -gt 0 ]; then - echo "#include \"/tmp/local/include/smpi/smpi_extended_traces_fortran.h\"" > ${TMPFILE} + echo "#include \"@includedir@/smpi/smpi_extended_traces_fortran.h\"" > ${TMPFILE} echo "#line 1 \"${ARG}\"" >> ${TMPFILE} fi sed 's/[[:space:]]\{6\}[[:space:]]*\(end \)\{0,1\}program[[:space:]]*\([a-zA-Z0-9\-\_]*\)/ \1subroutine user_main /gI;s/[[:space:]]*use[[:space:]]*mpi/\include \"mpif\.h\" /gI' "${ARG}" >> "${TMPFILE}"