aboutsummaryrefslogtreecommitdiff
path: root/m4/ltoptions.m4
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-02-03 14:37:56 -0600
committerTed Gould <ted@gould.cx>2012-02-03 14:37:56 -0600
commit7256c1864e94cf172a4c487a5f434e58f6f71666 (patch)
tree753e4ef9395c1313dd77bf2893df9ea19c94e7ed /m4/ltoptions.m4
parent334e44dbb08303113ece1baf163ab7d9dd5561a4 (diff)
parent4ccb5d75887671bce24df6eeaacd7eb89b2be189 (diff)
downloadlibayatana-appindicator-7256c1864e94cf172a4c487a5f434e58f6f71666.tar.gz
libayatana-appindicator-7256c1864e94cf172a4c487a5f434e58f6f71666.tar.bz2
libayatana-appindicator-7256c1864e94cf172a4c487a5f434e58f6f71666.zip
Import upstream version 0.4.90
Diffstat (limited to 'm4/ltoptions.m4')
-rw-r--r--m4/ltoptions.m419
1 files changed, 17 insertions, 2 deletions
diff --git a/m4/ltoptions.m4 b/m4/ltoptions.m4
index 17cfd51..5d9acd8 100644
--- a/m4/ltoptions.m4
+++ b/m4/ltoptions.m4
@@ -326,9 +326,24 @@ dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
m4_define([_LT_WITH_PIC],
[AC_ARG_WITH([pic],
- [AS_HELP_STRING([--with-pic],
+ [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
- [pic_mode="$withval"],
+ [lt_p=${PACKAGE-default}
+ case $withval in
+ yes|no) pic_mode=$withval ;;
+ *)
+ pic_mode=default
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for lt_pkg in $withval; do
+ IFS="$lt_save_ifs"
+ if test "X$lt_pkg" = "X$lt_p"; then
+ pic_mode=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
[pic_mode=default])
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])