realpath(3) is known to be broken on at least some versions of the following platforms:
You cannot reliably detect this at configure time unless you have root privs.