aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac26
1 files changed, 26 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 27b55f67..11a47128 100644
--- a/configure.ac
+++ b/configure.ac
@@ -427,6 +427,32 @@ then
AC_MSG_ERROR([Please correct the problems above then re-run this configuration script.])
fi
+# Figure out whether we are on a Debian-derived system where we need
+# to tell setup.py about Debian installation layout.
+
+if test $build_ca_tools = yes
+then
+ AC_MSG_CHECKING([whether we need to tell distutils to use Debian installation layout])
+ use_debian_layout=no
+ if test -x /usr/bin/lsb_release
+ then
+ case `/usr/bin/lsb_release -is` in
+ Debian|Ubuntu)
+ use_debian_layout=yes
+ ;;
+ esac
+ fi
+ AC_MSG_RESULT([$use_debian_layout])
+ if test $use_debian_layout = yes
+ then
+ SETUP_PY_INSTALL_LAYOUT='--install-layout=deb'
+ else
+ SETUP_PY_INSTALL_LAYOUT=''
+
+ fi
+ AC_SUBST(SETUP_PY_INSTALL_LAYOUT)
+fi
+
# Figure out which parts of this package we have to build.
TOP_LEVEL_SUBDIRS=""