summaryrefslogtreecommitdiffstats
path: root/m4/ltoptions.m4
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2012-08-23 17:05:07 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2012-08-23 17:05:07 (GMT)
commit073ba009805304d3ff4fd77cea24216cd5fda07c (patch)
treec6993f5961e5776911696cfa0e76a45b79b6f6a9 /m4/ltoptions.m4
parent88a382c1c7e6389289a03744ed3a1f528cfa9bae (diff)
downloadhdf5-073ba009805304d3ff4fd77cea24216cd5fda07c.zip
hdf5-073ba009805304d3ff4fd77cea24216cd5fda07c.tar.gz
hdf5-073ba009805304d3ff4fd77cea24216cd5fda07c.tar.bz2
[svn-r22711] Updated autotools: autoconf 2.69, automake 1.12.3, m4 1.4.16, libtool 2.4.2
Tested THG machines.
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])