summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2017-02-24 12:12:13 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-02-24 12:12:13 -0600
commitf943ead12e73003a857acd96f6d2dbac470a5bee (patch)
tree53d9f204287fb52d013e845fc8b9155e78a5c995 /configure
parent461577b23bfef78151dc56785baa796db4147b9e (diff)
parentb0067bcf2c64660e3499f8d2f06e7874ab627898 (diff)
Merge "build: Execute ldconfig to build cache. (take two)"
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index 42a21d7c5..0c2d84ee1 100755
--- a/configure
+++ b/configure
@@ -4892,6 +4892,28 @@ if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
fi
fi
+#
+# The following code for detecting lib64 was taken from Fedora's
+# /usr/share/config.site with a modification to check that the
+# /usr/lib64 directory actually exists. This prevents libdir from
+# being set to /usr/lib64 on 64-bit systems that still use /usr/lib.
+#
+if test "$prefix" = /usr ||\
+ { test "$prefix" = NONE && test "$ac_default_prefix" = /usr ; }
+then
+ for i in x86_64 ppc64 s390x aarch64; do
+ if test $host_cpu = $i; then
+ if test "$libdir" = '${exec_prefix}/lib' &&\
+ { test -d "${exec_prefix}/lib64" || test -d "${ac_default_prefix}/lib64" ; } ; then
+ libdir='${exec_prefix}/lib64'
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Setting libdir=${libdir} " >&5
+$as_echo "$as_me: Setting libdir=${libdir} " >&6;}
+ fi
+ break
+ fi
+ done
+fi
+
BUILD_PLATFORM=${build}
BUILD_CPU=${build_cpu}
BUILD_VENDOR=${build_vendor}