Commit 6de60f8a authored by pietrodelugas's avatar pietrodelugas

replacing gawk with awk for setting hdf5 library path

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13758 c92efa57-630b-4861-b058-cf58834340f0
parent 7edb2c02
......@@ -10969,9 +10969,9 @@ fi
if test "$have_hdf5" -eq 1 ; then
if test -e $with_hdf5_path/bin/h5fc; then
hdf5_libs=`$with_hdf5_path/bin/h5fc -show | gawk '{$1=$2="";print $0}'`
hdf5_libs=`$with_hdf5_path/bin/h5fc -show | awk -F'-L' '{$1="";$2="-L"$2; print $0}'`
elif test -e $with_hdf5_path/bin/h5pfc; then
hdf5_libs=`$with_hdf5_path/bin/h5pfc -show | gawk '{$1=$2="";print $0}'`
hdf5_libs=`$with_hdf5_path/bin/h5pfc -show | awk -F'-L' '{$1="";$2="-L"$2; print $0}'`
else
hdf5_libs="-L$with_hdf5_path/lib -lhdf5_fortran -lhdf5 -lrt -lz -ldl -lm -Wl,-rpath -Wl,$with_hdf5_path/lib"
fi
......
......@@ -80,9 +80,9 @@ if test "$use_parallel" -ne 0; then
if test "$have_hdf5" -eq 1 ; then
if test -e $with_hdf5_path/bin/h5fc; then
hdf5_libs=`$with_hdf5_path/bin/h5fc -show | gawk '{@S|@1=@S|@2="";print @S|@0}'`
hdf5_libs=`$with_hdf5_path/bin/h5fc -show | awk -F'-L' '{@S|@1="";@S|@2="-L"@S|@2; print @S|@0}'`
elif test -e $with_hdf5_path/bin/h5pfc; then
hdf5_libs=`$with_hdf5_path/bin/h5pfc -show | gawk '{@S|@1=@S|@2="";print @S|@0}'`
hdf5_libs=`$with_hdf5_path/bin/h5pfc -show | awk -F'-L' '{@S|@1="";@S|@2="-L"@S|@2; print @S|@0}'`
else
hdf5_libs="-L$with_hdf5_path/lib -lhdf5_fortran -lhdf5 -lrt -lz -ldl -lm -Wl,-rpath -Wl,$with_hdf5_path/lib"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment