build: autoconf: fix libdir detection
authorRoger Pau Monne <roger.pau@entel.upc.edu>
Thu, 1 Mar 2012 16:59:33 +0000 (16:59 +0000)
committerRoger Pau Monne <roger.pau@entel.upc.edu>
Thu, 1 Mar 2012 16:59:33 +0000 (16:59 +0000)
commit192c0b406d19b488fe83b055ced358f41de0ccc5
tree0ff1562ad72dda6ffff810be3da5d99ff185d0b3
parent156ef03248cbb0cb0a0e8a5e318c1058c5cf674a
build: autoconf: fix libdir detection

If user specifies a libdir it is used, if no libdir is specified
configure checks if $exec_prefix/lib64 is a directory and uses that,
if not lib is used.

$prefix is set by passing the command line option or by default when
calling AC_OUTPUT, but since AC_OUTPUT is called at the end, this is
not really helpful, so we have to set $exec_prefix manually to the
correct value, either $prefix if different than NONE or
$ac_default_prefix.

Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/configure
tools/m4/default_lib.m4