diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-21 09:58:53 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-21 09:58:53 -0700 |
commit | b963e5050aaa83ac59c323a2a0382aa6637f1338 (patch) | |
tree | 6b5ff4b1c10dc54057aab817dfe631b52a40f3fe /configure | |
parent | 60782a5351d2306ac69f700bfb5ab458648190d7 (diff) | |
download | txr-b963e5050aaa83ac59c323a2a0382aa6637f1338.tar.gz txr-b963e5050aaa83ac59c323a2a0382aa6637f1338.tar.bz2 txr-b963e5050aaa83ac59c323a2a0382aa6637f1338.zip |
Adding realpath function.
* configure: New test for realpath.
* sysif.c (realpath_wrap): New static function.
(sysif_init): Registered realpath intrinsic.
* txr.1: Documented.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -2863,6 +2863,24 @@ else printf "no\n" fi +printf "Checking for realpath ... " +cat > conftest.c <<! +#include <stdlib.h> + +int main(void) +{ + char *rp = realpath("/var/lib", 0); + return 0; +} +! + +if conftest ; then + printf "yes\n" + printf "#define HAVE_REALPATH 1\n" >> config.h +else + printf "no\n" +fi + # # Dependent variables # |