aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2013-03-07 19:31:47 +0000
committerRob Austein <sra@hactrn.net>2013-03-07 19:31:47 +0000
commit2a324fc86684711265f5fbd58ae3cfc9795ad479 (patch)
tree5527a29115b7d67f1f1578941d49435675a0f695 /configure
parent697842ddc15e1d92e4dfc653038de309a1a20e8d (diff)
pbuilder doesn't provide enough clues for us to guess that we need to
use --install-layout=deb, so add ./configure option to force it. svn path=/trunk/; revision=5121
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure44
1 files changed, 36 insertions, 8 deletions
diff --git a/configure b/configure
index 1e6b2a73..f45966c7 100755
--- a/configure
+++ b/configure
@@ -708,6 +708,7 @@ enable_ca_tools
enable_rp_tools
enable_target_installation
enable_wsgi_daemon_mode
+enable_python_install_layout
enable_python
enable_django
enable_rpki_rtr
@@ -1345,6 +1346,8 @@ Optional Features:
Don't perform final target installation
--enable-wsgi-daemon-mode=user:group
Run the web portal as a separate process
+ --enable-python-install-layout=layout
+ Specify Python --install-layout
--disable-python (Obsolete, do not use)
--disable-django (Obsolete, do not use)
--disable-rpki-rtr (Obsolete, do not use)
@@ -2425,6 +2428,13 @@ else
enable_wsgi_daemon_mode=no
fi
+# Check whether --enable-python_install_layout was given.
+if test "${enable_python_install_layout+set}" = set; then :
+ enableval=$enable_python_install_layout;
+else
+ enable_python_install_layout=auto
+fi
+
@@ -4910,26 +4920,44 @@ fi
if test $build_ca_tools = yes
then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to tell distutils to use Debian installation layout" >&5
-$as_echo_n "checking whether we need to tell distutils to use Debian installation layout... " >&6; }
- use_debian_layout=no
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to tell distutils to use a particular installation layout" >&5
+$as_echo_n "checking whether we need to tell distutils to use a particular installation layout... " >&6; }
+ looks_like_debian=no
if test -x /usr/bin/lsb_release
then
case `/usr/bin/lsb_release -is` in
Debian|Ubuntu)
- use_debian_layout=yes
+ looks_like_debian=yes
;;
esac
fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_debian_layout" >&5
-$as_echo "$use_debian_layout" >&6; }
- if test $use_debian_layout = yes
+ if test $looks_like_debian = yes
+ then
+ install_layout="deb"
+ else
+ install_layout="unix"
+ fi
+ case $enable_python_install_layout in
+ yes|no)
+ use_install_layout=$enable_python_install_layout
+ ;;
+ auto)
+ use_install_layout=$looks_like_debian
+ ;;
+ *)
+ use_install_layout=yes
+ install_layout="$enable_python_install_layout"
+ ;;
+ esac
+ if test $use_install_layout = yes
then
- SETUP_PY_INSTALL_LAYOUT='--install-layout=deb'
+ SETUP_PY_INSTALL_LAYOUT="--install-layout=$install_layout"
else
SETUP_PY_INSTALL_LAYOUT=''
fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_install_layout $SETUP_PY_INSTALL_LAYOUT" >&5
+$as_echo "$use_install_layout $SETUP_PY_INSTALL_LAYOUT" >&6; }
fi