]> arthur.barton.de Git - bup.git/blobdiff - config/configure
Stop forcing LC_CTYPE=ISO-8859-1
[bup.git] / config / configure
index 33e9ba26a00da52d3c769e536635483d7f3a7b17..3eab5d3b8281cbcecdd3a34df928810101c1202f 100755 (executable)
@@ -58,7 +58,7 @@ expr "$MAKE_VERSION" '>=' '3.81' || AC_FAIL "ERROR: $MAKE must be >= version 3.8
 
 AC_SUB bup_make "$MAKE"
 
-bup_python="$PYTHON"
+bup_python="$(type -p "$PYTHON")"
 test -z "$bup_python" && bup_python="$(bup_find_prog python2.7 '')"
 test -z "$bup_python" && bup_python="$(bup_find_prog python2.6 '')"
 test -z "$bup_python" && bup_python="$(bup_find_prog python2 '')"
@@ -97,6 +97,25 @@ AC_CHECK_FUNCS utimes
 AC_CHECK_FUNCS lutimes
 
 
+builtin_mul_overflow_code="
+#include <stddef.h>
+int main(int argc, char **argv)
+{
+    size_t n = 0, size = 0, total;
+    __builtin_mul_overflow(n, size, &total);
+    return 0;
+}
+"
+
+TLOGN "checking for __builtin_mul_overflow"
+if bup_try_c_code "$builtin_mul_overflow_code"; then
+    AC_DEFINE BUP_HAVE_BUILTIN_MUL_OVERFLOW 1
+    TLOG ' (found)'
+else
+    TLOG ' (not found)'
+fi
+
+
 AC_CHECK_FUNCS mincore
 
 mincore_incore_code="
@@ -147,6 +166,13 @@ if test "$ac_defined_HAVE_MINCORE"; then
     fi
 fi
 
+TLOGN "checking for readline"
+if pkg-config readline; then
+    AC_DEFINE BUP_HAVE_READLINE 1
+    TLOG ' (yes)'
+else
+    TLOG ' (no)'
+fi
 
 AC_CHECK_FIELD stat st_atim sys/types.h sys/stat.h unistd.h
 AC_CHECK_FIELD stat st_mtim sys/types.h sys/stat.h unistd.h