summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure b/configure
index 8c1b5c67..3eb16e7d 100755
--- a/configure
+++ b/configure
@@ -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
#