summaryrefslogtreecommitdiffstats
path: root/gl/m4/ltoptions.m4
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-04 22:03:00 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-04 22:03:00 (GMT)
commit8230bbd4a4a4b33c727ab187eb064373fc3b816e (patch)
tree8547073161dab557b3ac6b81d77feb94414b7171 /gl/m4/ltoptions.m4
parent317d2896dc29d66357fe067226dce440aad010f9 (diff)
downloadmonitoring-plugins-8230bbd4a4a4b33c727ab187eb064373fc3b816e.tar.gz
Update bundled libtool files
Import the current libtool version 2.4.2.
Diffstat (limited to 'gl/m4/ltoptions.m4')
-rw-r--r--gl/m4/ltoptions.m432
1 files changed, 24 insertions, 8 deletions
diff --git a/gl/m4/ltoptions.m4 b/gl/m4/ltoptions.m4
index 34151a3..5d9acd8 100644
--- a/gl/m4/ltoptions.m4
+++ b/gl/m4/ltoptions.m4
@@ -1,13 +1,14 @@
1# Helper functions for option handling. -*- Autoconf -*- 1# Helper functions for option handling. -*- Autoconf -*-
2# 2#
3# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 3# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
4# Inc.
4# Written by Gary V. Vaughan, 2004 5# Written by Gary V. Vaughan, 2004
5# 6#
6# This file is free software; the Free Software Foundation gives 7# This file is free software; the Free Software Foundation gives
7# unlimited permission to copy and/or distribute it, with or without 8# unlimited permission to copy and/or distribute it, with or without
8# modifications, as long as this notice is preserved. 9# modifications, as long as this notice is preserved.
9 10
10# serial 6 ltoptions.m4 11# serial 7 ltoptions.m4
11 12
12# This is to help aclocal find these macros, as it can't see m4_define. 13# This is to help aclocal find these macros, as it can't see m4_define.
13AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 14AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
@@ -125,7 +126,7 @@ LT_OPTION_DEFINE([LT_INIT], [win32-dll],
125[enable_win32_dll=yes 126[enable_win32_dll=yes
126 127
127case $host in 128case $host in
128*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 129*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
129 AC_CHECK_TOOL(AS, as, false) 130 AC_CHECK_TOOL(AS, as, false)
130 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 131 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
131 AC_CHECK_TOOL(OBJDUMP, objdump, false) 132 AC_CHECK_TOOL(OBJDUMP, objdump, false)
@@ -133,13 +134,13 @@ case $host in
133esac 134esac
134 135
135test -z "$AS" && AS=as 136test -z "$AS" && AS=as
136_LT_DECL([], [AS], [0], [Assembler program])dnl 137_LT_DECL([], [AS], [1], [Assembler program])dnl
137 138
138test -z "$DLLTOOL" && DLLTOOL=dlltool 139test -z "$DLLTOOL" && DLLTOOL=dlltool
139_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 140_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
140 141
141test -z "$OBJDUMP" && OBJDUMP=objdump 142test -z "$OBJDUMP" && OBJDUMP=objdump
142_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 143_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
143])# win32-dll 144])# win32-dll
144 145
145AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 146AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
@@ -325,9 +326,24 @@ dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
325# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 326# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
326m4_define([_LT_WITH_PIC], 327m4_define([_LT_WITH_PIC],
327[AC_ARG_WITH([pic], 328[AC_ARG_WITH([pic],
328 [AS_HELP_STRING([--with-pic], 329 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
329 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 330 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
330 [pic_mode="$withval"], 331 [lt_p=${PACKAGE-default}
332 case $withval in
333 yes|no) pic_mode=$withval ;;
334 *)
335 pic_mode=default
336 # Look at the argument we got. We use all the common list separators.
337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
338 for lt_pkg in $withval; do
339 IFS="$lt_save_ifs"
340 if test "X$lt_pkg" = "X$lt_p"; then
341 pic_mode=yes
342 fi
343 done
344 IFS="$lt_save_ifs"
345 ;;
346 esac],
331 [pic_mode=default]) 347 [pic_mode=default])
332 348
333test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 349test -z "$pic_mode" && pic_mode=m4_default([$1], [default])