Lines Matching +full:- +full:- +full:disable +full:- +full:shared
1 # Helper functions for option handling. -*- Autoconf -*-
16 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
17 # ------------------------------------------
19 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
22 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
23 # ---------------------------------------
24 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
25 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
35 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
36 # ------------------------------------------------------------
37 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
42 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
43 # -------------------------------------------------------
44 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
55 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
56 # ----------------------------------------
57 # OPTION-LIST is a space-separated list of Libtool options associated
58 # with MACRO-NAME. If any OPTION has a matching handler declared with
72 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
77 dnl `shared' nor `disable-shared' was passed, we enable building of shared
79 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
80 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
81 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
82 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
88 ## --------------------------------- ##
90 ## --------------------------------- ##
92 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
93 # -----------------------------------------
95 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
98 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
99 # -----------------------------------------------
106 # ------
117 dnl aclocal-1.4 backwards compatibility:
121 # win32-dll
122 # ---------
124 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
135 test -z "$AS" && AS=as
138 test -z "$DLLTOOL" && DLLTOOL=dlltool
141 test -z "$OBJDUMP" && OBJDUMP=objdump
143 ])# win32-dll
147 _LT_SET_OPTION([LT_INIT], [win32-dll])
150 put the `win32-dll' option into LT_INIT's first parameter.])
153 dnl aclocal-1.4 backwards compatibility:
158 # ----------------------------
159 # implement the --enable-shared flag, and supports the `shared' and
160 # `disable-shared' LT_INIT options.
164 AC_ARG_ENABLE([shared], optenable
165 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
166 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
167 [p=${PACKAGE-default}
187 [Whether or not to build shared libraries])
190 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
191 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
195 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
199 [_LT_SET_OPTION([LT_INIT], [disable-shared])
205 dnl aclocal-1.4 backwards compatibility:
212 # ----------------------------
213 # implement the --enable-static flag, and support the `static' and
214 # `disable-static' LT_INIT options.
219 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
221 [p=${PACKAGE-default}
245 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
249 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
253 [_LT_SET_OPTION([LT_INIT], [disable-static])
259 dnl aclocal-1.4 backwards compatibility:
266 # ----------------------------------
267 # implement the --enable-fast-install flag, and support the `fast-install'
268 # and `disable-fast-install' LT_INIT options.
272 AC_ARG_ENABLE([fast-install],
273 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
275 [p=${PACKAGE-default}
298 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
299 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
303 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
306 the `fast-install' option into LT_INIT's first parameter.])
310 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
313 the `disable-fast-install' option into LT_INIT's first parameter.])
316 dnl aclocal-1.4 backwards compatibility:
322 # --------------------
323 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
328 [AS_HELP_STRING([--with-pic],
329 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
333 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
338 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
339 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
343 [_LT_SET_OPTION([LT_INIT], [pic-only])
346 put the `pic-only' option into LT_INIT's first parameter.])
349 dnl aclocal-1.4 backwards compatibility:
352 ## ----------------- ##
354 ## ----------------- ##