aboutsummaryrefslogtreecommitdiffstats
path: root/aclocal-flags
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-09-16 01:49:59 +0000
committerGuy Harris <guy@alum.mit.edu>2012-09-16 01:49:59 +0000
commit8e10fa73d5ffca0fbc79c63b489f57ec88cc73b4 (patch)
treeb2950bd9e199c95ba760648e898178a2c7b544b1 /aclocal-flags
parent826bba705b5ab9dedfe99bb3723fa3e6c6bd9c1d (diff)
Work around Solaris 11's pkg-config being in /usr/ccs/bin but its
aclocal directory apparently being in /usr/share/aclocal rather than the non-existent /usr/ccs/share/aclocal. (/usr/ccs is sort of an extension of /usr for developers; I'm not sure why they stuck the pkg-config stuff under /usr/share rather than /usr/ccs/share given that it's of interest only to developers.) svn path=/trunk/; revision=44922
Diffstat (limited to 'aclocal-flags')
-rwxr-xr-xaclocal-flags10
1 files changed, 10 insertions, 0 deletions
diff --git a/aclocal-flags b/aclocal-flags
index 4f2a08385d..77a5cd1571 100755
--- a/aclocal-flags
+++ b/aclocal-flags
@@ -69,6 +69,16 @@ else
pkg_config_aclocal_dir=""
else
#
+ # Solaris 11's default pkg-config installation puts
+ # it in /usr/ccs/bin, but there's no /usr/ccs/share.
+ # Map /usr/ccs to /usr.
+ #
+ if [ "$pkg_config_prefix" = /usr/ccs ]
+ then
+ pkg_config_prefix=/usr
+ fi
+
+ #
# Now get the path of its aclocal directory.
#
pkg_config_aclocal_dir=$pkg_config_prefix/share/aclocal