1275970Scy# Helper functions for option handling.                    -*- Autoconf -*-
2275970Scy#
3316722Sdelphij#   Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
4316722Sdelphij#   Foundation, Inc.
5275970Scy#   Written by Gary V. Vaughan, 2004
6275970Scy#
7275970Scy# This file is free software; the Free Software Foundation gives
8275970Scy# unlimited permission to copy and/or distribute it, with or without
9275970Scy# modifications, as long as this notice is preserved.
10275970Scy
11316722Sdelphij# serial 8 ltoptions.m4
12275970Scy
13275970Scy# This is to help aclocal find these macros, as it can't see m4_define.
14275970ScyAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
15275970Scy
16275970Scy
17275970Scy# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
18275970Scy# ------------------------------------------
19275970Scym4_define([_LT_MANGLE_OPTION],
20275970Scy[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
21275970Scy
22275970Scy
23275970Scy# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
24275970Scy# ---------------------------------------
25275970Scy# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
26275970Scy# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
27275970Scy# saved as a flag.
28275970Scym4_define([_LT_SET_OPTION],
29275970Scy[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
30275970Scym4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
31275970Scy        _LT_MANGLE_DEFUN([$1], [$2]),
32316722Sdelphij    [m4_warning([Unknown $1 option '$2'])])[]dnl
33275970Scy])
34275970Scy
35275970Scy
36275970Scy# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
37275970Scy# ------------------------------------------------------------
38275970Scy# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
39275970Scym4_define([_LT_IF_OPTION],
40275970Scy[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
41275970Scy
42275970Scy
43275970Scy# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
44275970Scy# -------------------------------------------------------
45275970Scy# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
46275970Scy# are set.
47275970Scym4_define([_LT_UNLESS_OPTIONS],
48275970Scy[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
49275970Scy	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
50275970Scy		      [m4_define([$0_found])])])[]dnl
51275970Scym4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
52275970Scy])[]dnl
53275970Scy])
54275970Scy
55275970Scy
56275970Scy# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
57275970Scy# ----------------------------------------
58275970Scy# OPTION-LIST is a space-separated list of Libtool options associated
59275970Scy# with MACRO-NAME.  If any OPTION has a matching handler declared with
60275970Scy# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
61275970Scy# the unknown option and exit.
62275970Scym4_defun([_LT_SET_OPTIONS],
63275970Scy[# Set options
64275970Scym4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
65275970Scy    [_LT_SET_OPTION([$1], _LT_Option)])
66275970Scy
67275970Scym4_if([$1],[LT_INIT],[
68275970Scy  dnl
69275970Scy  dnl Simply set some default values (i.e off) if boolean options were not
70275970Scy  dnl specified:
71275970Scy  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
72275970Scy  ])
73275970Scy  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
74275970Scy  ])
75275970Scy  dnl
76275970Scy  dnl If no reference was made to various pairs of opposing options, then
77275970Scy  dnl we run the default mode handler for the pair.  For example, if neither
78316722Sdelphij  dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
79275970Scy  dnl archives by default:
80275970Scy  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
81275970Scy  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
82275970Scy  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
83275970Scy  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
84316722Sdelphij		   [_LT_ENABLE_FAST_INSTALL])
85316722Sdelphij  _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
86316722Sdelphij		   [_LT_WITH_AIX_SONAME([aix])])
87275970Scy  ])
88275970Scy])# _LT_SET_OPTIONS
89275970Scy
90275970Scy
91275970Scy## --------------------------------- ##
92275970Scy## Macros to handle LT_INIT options. ##
93275970Scy## --------------------------------- ##
94275970Scy
95275970Scy# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
96275970Scy# -----------------------------------------
97275970Scym4_define([_LT_MANGLE_DEFUN],
98275970Scy[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
99275970Scy
100275970Scy
101275970Scy# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
102275970Scy# -----------------------------------------------
103275970Scym4_define([LT_OPTION_DEFINE],
104275970Scy[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
105275970Scy])# LT_OPTION_DEFINE
106275970Scy
107275970Scy
108275970Scy# dlopen
109275970Scy# ------
110275970ScyLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
111275970Scy])
112275970Scy
113275970ScyAU_DEFUN([AC_LIBTOOL_DLOPEN],
114275970Scy[_LT_SET_OPTION([LT_INIT], [dlopen])
115275970ScyAC_DIAGNOSE([obsolete],
116275970Scy[$0: Remove this warning and the call to _LT_SET_OPTION when you
117316722Sdelphijput the 'dlopen' option into LT_INIT's first parameter.])
118275970Scy])
119275970Scy
120275970Scydnl aclocal-1.4 backwards compatibility:
121275970Scydnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
122275970Scy
123275970Scy
124275970Scy# win32-dll
125275970Scy# ---------
126275970Scy# Declare package support for building win32 dll's.
127275970ScyLT_OPTION_DEFINE([LT_INIT], [win32-dll],
128275970Scy[enable_win32_dll=yes
129275970Scy
130275970Scycase $host in
131275970Scy*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
132275970Scy  AC_CHECK_TOOL(AS, as, false)
133275970Scy  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
134275970Scy  AC_CHECK_TOOL(OBJDUMP, objdump, false)
135275970Scy  ;;
136275970Scyesac
137275970Scy
138275970Scytest -z "$AS" && AS=as
139275970Scy_LT_DECL([], [AS],      [1], [Assembler program])dnl
140275970Scy
141275970Scytest -z "$DLLTOOL" && DLLTOOL=dlltool
142275970Scy_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
143275970Scy
144275970Scytest -z "$OBJDUMP" && OBJDUMP=objdump
145275970Scy_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
146275970Scy])# win32-dll
147275970Scy
148275970ScyAU_DEFUN([AC_LIBTOOL_WIN32_DLL],
149275970Scy[AC_REQUIRE([AC_CANONICAL_HOST])dnl
150275970Scy_LT_SET_OPTION([LT_INIT], [win32-dll])
151275970ScyAC_DIAGNOSE([obsolete],
152275970Scy[$0: Remove this warning and the call to _LT_SET_OPTION when you
153316722Sdelphijput the 'win32-dll' option into LT_INIT's first parameter.])
154275970Scy])
155275970Scy
156275970Scydnl aclocal-1.4 backwards compatibility:
157275970Scydnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
158275970Scy
159275970Scy
160275970Scy# _LT_ENABLE_SHARED([DEFAULT])
161275970Scy# ----------------------------
162316722Sdelphij# implement the --enable-shared flag, and supports the 'shared' and
163316722Sdelphij# 'disable-shared' LT_INIT options.
164316722Sdelphij# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
165275970Scym4_define([_LT_ENABLE_SHARED],
166275970Scy[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
167275970ScyAC_ARG_ENABLE([shared],
168275970Scy    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
169275970Scy	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
170275970Scy    [p=${PACKAGE-default}
171275970Scy    case $enableval in
172275970Scy    yes) enable_shared=yes ;;
173275970Scy    no) enable_shared=no ;;
174275970Scy    *)
175275970Scy      enable_shared=no
176275970Scy      # Look at the argument we got.  We use all the common list separators.
177316722Sdelphij      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
178275970Scy      for pkg in $enableval; do
179316722Sdelphij	IFS=$lt_save_ifs
180275970Scy	if test "X$pkg" = "X$p"; then
181275970Scy	  enable_shared=yes
182275970Scy	fi
183275970Scy      done
184316722Sdelphij      IFS=$lt_save_ifs
185275970Scy      ;;
186275970Scy    esac],
187275970Scy    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
188275970Scy
189275970Scy    _LT_DECL([build_libtool_libs], [enable_shared], [0],
190275970Scy	[Whether or not to build shared libraries])
191275970Scy])# _LT_ENABLE_SHARED
192275970Scy
193275970ScyLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
194275970ScyLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
195275970Scy
196275970Scy# Old names:
197275970ScyAC_DEFUN([AC_ENABLE_SHARED],
198275970Scy[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
199275970Scy])
200275970Scy
201275970ScyAC_DEFUN([AC_DISABLE_SHARED],
202275970Scy[_LT_SET_OPTION([LT_INIT], [disable-shared])
203275970Scy])
204275970Scy
205275970ScyAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
206275970ScyAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
207275970Scy
208275970Scydnl aclocal-1.4 backwards compatibility:
209275970Scydnl AC_DEFUN([AM_ENABLE_SHARED], [])
210275970Scydnl AC_DEFUN([AM_DISABLE_SHARED], [])
211275970Scy
212275970Scy
213275970Scy
214275970Scy# _LT_ENABLE_STATIC([DEFAULT])
215275970Scy# ----------------------------
216316722Sdelphij# implement the --enable-static flag, and support the 'static' and
217316722Sdelphij# 'disable-static' LT_INIT options.
218316722Sdelphij# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
219275970Scym4_define([_LT_ENABLE_STATIC],
220275970Scy[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
221275970ScyAC_ARG_ENABLE([static],
222275970Scy    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
223275970Scy	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
224275970Scy    [p=${PACKAGE-default}
225275970Scy    case $enableval in
226275970Scy    yes) enable_static=yes ;;
227275970Scy    no) enable_static=no ;;
228275970Scy    *)
229275970Scy     enable_static=no
230275970Scy      # Look at the argument we got.  We use all the common list separators.
231316722Sdelphij      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
232275970Scy      for pkg in $enableval; do
233316722Sdelphij	IFS=$lt_save_ifs
234275970Scy	if test "X$pkg" = "X$p"; then
235275970Scy	  enable_static=yes
236275970Scy	fi
237275970Scy      done
238316722Sdelphij      IFS=$lt_save_ifs
239275970Scy      ;;
240275970Scy    esac],
241275970Scy    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
242275970Scy
243275970Scy    _LT_DECL([build_old_libs], [enable_static], [0],
244275970Scy	[Whether or not to build static libraries])
245275970Scy])# _LT_ENABLE_STATIC
246275970Scy
247275970ScyLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
248275970ScyLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
249275970Scy
250275970Scy# Old names:
251275970ScyAC_DEFUN([AC_ENABLE_STATIC],
252275970Scy[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
253275970Scy])
254275970Scy
255275970ScyAC_DEFUN([AC_DISABLE_STATIC],
256275970Scy[_LT_SET_OPTION([LT_INIT], [disable-static])
257275970Scy])
258275970Scy
259275970ScyAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
260275970ScyAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
261275970Scy
262275970Scydnl aclocal-1.4 backwards compatibility:
263275970Scydnl AC_DEFUN([AM_ENABLE_STATIC], [])
264275970Scydnl AC_DEFUN([AM_DISABLE_STATIC], [])
265275970Scy
266275970Scy
267275970Scy
268275970Scy# _LT_ENABLE_FAST_INSTALL([DEFAULT])
269275970Scy# ----------------------------------
270316722Sdelphij# implement the --enable-fast-install flag, and support the 'fast-install'
271316722Sdelphij# and 'disable-fast-install' LT_INIT options.
272316722Sdelphij# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
273275970Scym4_define([_LT_ENABLE_FAST_INSTALL],
274275970Scy[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
275275970ScyAC_ARG_ENABLE([fast-install],
276275970Scy    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
277275970Scy    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
278275970Scy    [p=${PACKAGE-default}
279275970Scy    case $enableval in
280275970Scy    yes) enable_fast_install=yes ;;
281275970Scy    no) enable_fast_install=no ;;
282275970Scy    *)
283275970Scy      enable_fast_install=no
284275970Scy      # Look at the argument we got.  We use all the common list separators.
285316722Sdelphij      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
286275970Scy      for pkg in $enableval; do
287316722Sdelphij	IFS=$lt_save_ifs
288275970Scy	if test "X$pkg" = "X$p"; then
289275970Scy	  enable_fast_install=yes
290275970Scy	fi
291275970Scy      done
292316722Sdelphij      IFS=$lt_save_ifs
293275970Scy      ;;
294275970Scy    esac],
295275970Scy    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
296275970Scy
297275970Scy_LT_DECL([fast_install], [enable_fast_install], [0],
298275970Scy	 [Whether or not to optimize for fast installation])dnl
299275970Scy])# _LT_ENABLE_FAST_INSTALL
300275970Scy
301275970ScyLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
302275970ScyLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
303275970Scy
304275970Scy# Old names:
305275970ScyAU_DEFUN([AC_ENABLE_FAST_INSTALL],
306275970Scy[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
307275970ScyAC_DIAGNOSE([obsolete],
308275970Scy[$0: Remove this warning and the call to _LT_SET_OPTION when you put
309316722Sdelphijthe 'fast-install' option into LT_INIT's first parameter.])
310275970Scy])
311275970Scy
312275970ScyAU_DEFUN([AC_DISABLE_FAST_INSTALL],
313275970Scy[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
314275970ScyAC_DIAGNOSE([obsolete],
315275970Scy[$0: Remove this warning and the call to _LT_SET_OPTION when you put
316316722Sdelphijthe 'disable-fast-install' option into LT_INIT's first parameter.])
317275970Scy])
318275970Scy
319275970Scydnl aclocal-1.4 backwards compatibility:
320275970Scydnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
321275970Scydnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
322275970Scy
323275970Scy
324316722Sdelphij# _LT_WITH_AIX_SONAME([DEFAULT])
325316722Sdelphij# ----------------------------------
326316722Sdelphij# implement the --with-aix-soname flag, and support the `aix-soname=aix'
327316722Sdelphij# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
328316722Sdelphij# is either `aix', `both' or `svr4'.  If omitted, it defaults to `aix'.
329316722Sdelphijm4_define([_LT_WITH_AIX_SONAME],
330316722Sdelphij[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
331316722Sdelphijshared_archive_member_spec=
332316722Sdelphijcase $host,$enable_shared in
333316722Sdelphijpower*-*-aix[[5-9]]*,yes)
334316722Sdelphij  AC_MSG_CHECKING([which variant of shared library versioning to provide])
335316722Sdelphij  AC_ARG_WITH([aix-soname],
336316722Sdelphij    [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
337316722Sdelphij      [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
338316722Sdelphij    [case $withval in
339316722Sdelphij    aix|svr4|both)
340316722Sdelphij      ;;
341316722Sdelphij    *)
342316722Sdelphij      AC_MSG_ERROR([Unknown argument to --with-aix-soname])
343316722Sdelphij      ;;
344316722Sdelphij    esac
345316722Sdelphij    lt_cv_with_aix_soname=$with_aix_soname],
346316722Sdelphij    [AC_CACHE_VAL([lt_cv_with_aix_soname],
347316722Sdelphij      [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
348316722Sdelphij    with_aix_soname=$lt_cv_with_aix_soname])
349316722Sdelphij  AC_MSG_RESULT([$with_aix_soname])
350316722Sdelphij  if test aix != "$with_aix_soname"; then
351316722Sdelphij    # For the AIX way of multilib, we name the shared archive member
352316722Sdelphij    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
353316722Sdelphij    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
354316722Sdelphij    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
355316722Sdelphij    # the AIX toolchain works better with OBJECT_MODE set (default 32).
356316722Sdelphij    if test 64 = "${OBJECT_MODE-32}"; then
357316722Sdelphij      shared_archive_member_spec=shr_64
358316722Sdelphij    else
359316722Sdelphij      shared_archive_member_spec=shr
360316722Sdelphij    fi
361316722Sdelphij  fi
362316722Sdelphij  ;;
363316722Sdelphij*)
364316722Sdelphij  with_aix_soname=aix
365316722Sdelphij  ;;
366316722Sdelphijesac
367316722Sdelphij
368316722Sdelphij_LT_DECL([], [shared_archive_member_spec], [0],
369316722Sdelphij    [Shared archive member basename, for filename based shared library versioning on AIX])dnl
370316722Sdelphij])# _LT_WITH_AIX_SONAME
371316722Sdelphij
372316722SdelphijLT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
373316722SdelphijLT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
374316722SdelphijLT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
375316722Sdelphij
376316722Sdelphij
377275970Scy# _LT_WITH_PIC([MODE])
378275970Scy# --------------------
379316722Sdelphij# implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
380275970Scy# LT_INIT options.
381316722Sdelphij# MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
382275970Scym4_define([_LT_WITH_PIC],
383275970Scy[AC_ARG_WITH([pic],
384316722Sdelphij    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
385275970Scy	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
386316722Sdelphij    [lt_p=${PACKAGE-default}
387316722Sdelphij    case $withval in
388316722Sdelphij    yes|no) pic_mode=$withval ;;
389316722Sdelphij    *)
390316722Sdelphij      pic_mode=default
391316722Sdelphij      # Look at the argument we got.  We use all the common list separators.
392316722Sdelphij      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
393316722Sdelphij      for lt_pkg in $withval; do
394316722Sdelphij	IFS=$lt_save_ifs
395316722Sdelphij	if test "X$lt_pkg" = "X$lt_p"; then
396316722Sdelphij	  pic_mode=yes
397316722Sdelphij	fi
398316722Sdelphij      done
399316722Sdelphij      IFS=$lt_save_ifs
400316722Sdelphij      ;;
401316722Sdelphij    esac],
402316722Sdelphij    [pic_mode=m4_default([$1], [default])])
403275970Scy
404275970Scy_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
405275970Scy])# _LT_WITH_PIC
406275970Scy
407275970ScyLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
408275970ScyLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
409275970Scy
410275970Scy# Old name:
411275970ScyAU_DEFUN([AC_LIBTOOL_PICMODE],
412275970Scy[_LT_SET_OPTION([LT_INIT], [pic-only])
413275970ScyAC_DIAGNOSE([obsolete],
414275970Scy[$0: Remove this warning and the call to _LT_SET_OPTION when you
415316722Sdelphijput the 'pic-only' option into LT_INIT's first parameter.])
416275970Scy])
417275970Scy
418275970Scydnl aclocal-1.4 backwards compatibility:
419275970Scydnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
420275970Scy
421275970Scy## ----------------- ##
422275970Scy## LTDL_INIT Options ##
423275970Scy## ----------------- ##
424275970Scy
425275970Scym4_define([_LTDL_MODE], [])
426275970ScyLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
427275970Scy		 [m4_define([_LTDL_MODE], [nonrecursive])])
428275970ScyLT_OPTION_DEFINE([LTDL_INIT], [recursive],
429275970Scy		 [m4_define([_LTDL_MODE], [recursive])])
430275970ScyLT_OPTION_DEFINE([LTDL_INIT], [subproject],
431275970Scy		 [m4_define([_LTDL_MODE], [subproject])])
432275970Scy
433275970Scym4_define([_LTDL_TYPE], [])
434275970ScyLT_OPTION_DEFINE([LTDL_INIT], [installable],
435275970Scy		 [m4_define([_LTDL_TYPE], [installable])])
436275970ScyLT_OPTION_DEFINE([LTDL_INIT], [convenience],
437275970Scy		 [m4_define([_LTDL_TYPE], [convenience])])
438