summaryrefslogtreecommitdiff
path: root/config.site
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 12:51:28 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 12:51:28 +0000
commitde0a16267f1d948bd30e8297e59a0081bf03c566 (patch)
tree31ac660e89d2b3c9d0a09b17c116fe9a9b3a8ebe /config.site
parent2694931673342616c4b12c9a43291a1c7f02f009 (diff)
automatic import of autoconf-latestopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'config.site')
-rw-r--r--config.site29
1 files changed, 29 insertions, 0 deletions
diff --git a/config.site b/config.site
new file mode 100644
index 0000000..5bea225
--- /dev/null
+++ b/config.site
@@ -0,0 +1,29 @@
+# This is the config.site file to satisfy FHS defaults when installing below
+# /usr.
+#
+# You may override this file by your config.site using the CONFIG_SITE env
+# variable.
+#
+# Note: This file includes also RHEL/Fedora fix for installing libraries into
+# "/lib/lib64" on 64bit systems.
+
+if test -n "$host"; then
+ # skip when cross-compiling
+ return 0
+fi
+
+if test "$prefix" = /usr \
+ || { test "$prefix" = NONE && test "$ac_default_prefix" = /usr ; }
+then
+ test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
+ test "$sharedstatedir" = '${prefix}/com' && sharedstatedir=/var
+ test "$localstatedir" = '${prefix}/var' && localstatedir=/var
+
+ ARCH=`uname -m`
+ for i in x86_64 ppc64 s390x aarch64; do
+ if test $ARCH = $i; then
+ test "$libdir" = '${exec_prefix}/lib' && libdir='${exec_prefix}/lib64'
+ break
+ fi
+ done
+fi