From: Marco van Wieringen Date: Mon, 19 Oct 2009 19:51:39 +0000 (+0200) Subject: Added support for selecting the correct libdir on Linux X-Git-Tag: Release-5.0.0~282^2~8^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dffbf4e733b16bd736b391d116146813bb2b600f;p=bacula%2Fbacula Added support for selecting the correct libdir on Linux --- diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 4400ae05a5..2e66da1b30 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -225,13 +225,29 @@ dnl --includedir, we set it to the package default of /usr/include. dnl If either --prefix or --includedir is set, we leave includedir dnl alone except to eval it dnl ------------------------------------------------------------------ +os_name=`uname -s` +os_hw_platform=`uname -i` if test x${prefix} = xNONE ; then if test `eval echo ${sysconfdir}` = NONE/etc ; then sysconfdir=/etc/bacula fi if test `eval echo ${libdir}` = NONE/lib ; then - libdir=/usr/lib + case ${os_name} in + Linux) + case ${os_hw_platform} in + x86_64) + libdir=/usr/lib64 + ;; + *) + libdir=/usr/lib + ;; + esac + ;; + *) + libdir=/usr/lib + ;; + esac fi if test `eval echo ${includedir}` = NONE/include ; then