summaryrefslogtreecommitdiff
path: root/libobjc/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'libobjc/aclocal.m4')
-rw-r--r--libobjc/aclocal.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/libobjc/aclocal.m4 b/libobjc/aclocal.m4
index ed643f6038c..83707ce099e 100644
--- a/libobjc/aclocal.m4
+++ b/libobjc/aclocal.m4
@@ -212,7 +212,11 @@ if test x"$glibcpp_toolexecdir" = x"no"; then
glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
glibcpp_toolexeclibdir='$(libdir)'
fi
- glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/`$CC -print-multi-os-directory`
+ multi_os_directory=`$CC -print-multi-os-directory`
+ case $multi_os_directory in
+ .) ;; # Avoid trailing /.
+ *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
+ esac
fi
AC_SUBST(glibcpp_prefixdir)