Use stat for gmx_is_file. Fix get_libdir with symlinks.
authorRoland Schulz <roland@utk.edu>
Sat, 24 Nov 2012 05:07:35 +0000 (00:07 -0500)
committerRoland Schulz <roland@utk.edu>
Sat, 24 Nov 2012 05:07:35 +0000 (00:07 -0500)
commit5c10ad3be4862371ac9e3d946a5e5a40711d21d7
treeb06ad6b6b31d5f894c1704e9229d313af178e985
parentc4e8df22854da87a11423d19fdab503d05896f41
Use stat for gmx_is_file. Fix get_libdir with symlinks.

In commit 4e057440520c1 I used lstat instead of stat confusing the
two. The commit tried to fix the misidentification of directories.
There is no need to distinquish between symlinks and files (and
thus break it if a binary is a symlink).

Change-Id: Ie964e826729a35f11516fb3d002ebc01cbb7a564
CMakeLists.txt
src/config.h.cmakein
src/gmxlib/futil.c