summaryrefslogtreecommitdiffstats
path: root/m4/multilib-installdir.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/multilib-installdir.m4')
-rw-r--r--m4/multilib-installdir.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/m4/multilib-installdir.m4 b/m4/multilib-installdir.m4
new file mode 100644
index 0000000..68ac591
--- /dev/null
+++ b/m4/multilib-installdir.m4
@@ -0,0 +1,21 @@
+# TILLAM_MULTISUB_INSTALLDIR
+#
+# tweak 'libdir' so that libraries are
+# installed in proper multisubdir.
+#
+# For use by 'sub-packages', i.e., from
+# configure.ac in a subdir of a main
+# package. Only the toplevel configure.ac
+# should say AM_ENABLE_MULTILIB
+#
+AC_DEFUN([TILLAM_MULTISUB_INSTALLDIR],
+[# Install multilib into proper multisubdir
+if test "${with_multisubdir+set}" = "set" ; then
+ the_multisubdir="/${with_multisubdir}"
+else
+ the_multisubdir=
+fi
+AC_SUBST(libdir,[${libdir}${the_multisubdir}])])dnl
+
+
+])dnl