• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:disable +full:- +full:shared

1 # Helper functions for option handling.                    -*- Autoconf -*-
3 # Copyright (C) 2004-2005, 2007-2009, 2011-2018 Free Software
17 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
18 # ------------------------------------------
20 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
23 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
24 # ---------------------------------------
25 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
26 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
36 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
37 # ------------------------------------------------------------
38 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
43 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
44 # -------------------------------------------------------
45 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
56 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
57 # ----------------------------------------
58 # OPTION-LIST is a space-separated list of Libtool options associated
59 # with MACRO-NAME. If any OPTION has a matching handler declared with
73 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
78 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
80 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
81 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
82 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
83 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
85 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
91 ## --------------------------------- ##
93 ## --------------------------------- ##
95 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
96 # -----------------------------------------
98 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
101 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
102 # -----------------------------------------------
109 # ------
120 dnl aclocal-1.4 backwards compatibility:
124 # win32-dll
125 # ---------
127 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
131 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
138 test -z "$AS" && AS=as
141 test -z "$DLLTOOL" && DLLTOOL=dlltool
144 test -z "$OBJDUMP" && OBJDUMP=objdump
146 ])# win32-dll
150 _LT_SET_OPTION([LT_INIT], [win32-dll])
153 put the 'win32-dll' option into LT_INIT's first parameter.])
156 dnl aclocal-1.4 backwards compatibility:
161 # ----------------------------
162 # implement the --enable-shared flag, and supports the 'shared' and
163 # 'disable-shared' LT_INIT options.
167 AC_ARG_ENABLE([shared], optenable
168 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
169 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
170 [p=${PACKAGE-default}
190 [Whether or not to build shared libraries])
193 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
194 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
198 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
202 [_LT_SET_OPTION([LT_INIT], [disable-shared])
208 dnl aclocal-1.4 backwards compatibility:
215 # ----------------------------
216 # implement the --enable-static flag, and support the 'static' and
217 # 'disable-static' LT_INIT options.
222 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
224 [p=${PACKAGE-default}
248 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
252 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
256 [_LT_SET_OPTION([LT_INIT], [disable-static])
262 dnl aclocal-1.4 backwards compatibility:
269 # ----------------------------------
270 # implement the --enable-fast-install flag, and support the 'fast-install'
271 # and 'disable-fast-install' LT_INIT options.
275 AC_ARG_ENABLE([fast-install],
276 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
278 [p=${PACKAGE-default}
301 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
302 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
306 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
309 the 'fast-install' option into LT_INIT's first parameter.])
313 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
316 the 'disable-fast-install' option into LT_INIT's first parameter.])
319 dnl aclocal-1.4 backwards compatibility:
325 # ----------------------------------
326 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
327 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
333 power*-*-aix[[5-9]]*,yes)
334 AC_MSG_CHECKING([which variant of shared library versioning to provide])
335 AC_ARG_WITH([aix-soname],
336 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
337 …[shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SON…
342 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
351 # For the AIX way of multilib, we name the shared archive member
354 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
356 if test 64 = "${OBJECT_MODE-32}"; then
369 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
372 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
373 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
374 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
378 # --------------------
379 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
384 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
385 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
386 [lt_p=${PACKAGE-default}
407 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
408 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
412 [_LT_SET_OPTION([LT_INIT], [pic-only])
415 put the 'pic-only' option into LT_INIT's first parameter.])
418 dnl aclocal-1.4 backwards compatibility:
421 ## ----------------- ##
423 ## ----------------- ##