1313968Sdes# Helper functions for option handling. -*- Autoconf -*- 2313968Sdes# 3313968Sdes# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software 4313968Sdes# Foundation, Inc. 5313968Sdes# Written by Gary V. Vaughan, 2004 6313968Sdes# 7313968Sdes# This file is free software; the Free Software Foundation gives 8313968Sdes# unlimited permission to copy and/or distribute it, with or without 9313968Sdes# modifications, as long as this notice is preserved. 10313968Sdes 11313968Sdes# serial 8 ltoptions.m4 12313968Sdes 13313968Sdes# This is to help aclocal find these macros, as it can't see m4_define. 14313968SdesAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 15313968Sdes 16313968Sdes 17313968Sdes# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 18313968Sdes# ------------------------------------------ 19313968Sdesm4_define([_LT_MANGLE_OPTION], 20313968Sdes[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 21313968Sdes 22313968Sdes 23313968Sdes# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 24313968Sdes# --------------------------------------- 25313968Sdes# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 26313968Sdes# matching handler defined, dispatch to it. Other OPTION-NAMEs are 27313968Sdes# saved as a flag. 28313968Sdesm4_define([_LT_SET_OPTION], 29313968Sdes[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 30313968Sdesm4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 31313968Sdes _LT_MANGLE_DEFUN([$1], [$2]), 32313968Sdes [m4_warning([Unknown $1 option '$2'])])[]dnl 33313968Sdes]) 34313968Sdes 35313968Sdes 36313968Sdes# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 37313968Sdes# ------------------------------------------------------------ 38313968Sdes# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 39313968Sdesm4_define([_LT_IF_OPTION], 40313968Sdes[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 41313968Sdes 42313968Sdes 43313968Sdes# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 44313968Sdes# ------------------------------------------------------- 45313968Sdes# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 46313968Sdes# are set. 47313968Sdesm4_define([_LT_UNLESS_OPTIONS], 48313968Sdes[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 49313968Sdes [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 50313968Sdes [m4_define([$0_found])])])[]dnl 51313968Sdesm4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 52313968Sdes])[]dnl 53313968Sdes]) 54313968Sdes 55313968Sdes 56313968Sdes# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 57313968Sdes# ---------------------------------------- 58313968Sdes# OPTION-LIST is a space-separated list of Libtool options associated 59313968Sdes# with MACRO-NAME. If any OPTION has a matching handler declared with 60313968Sdes# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 61313968Sdes# the unknown option and exit. 62313968Sdesm4_defun([_LT_SET_OPTIONS], 63313968Sdes[# Set options 64313968Sdesm4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 65313968Sdes [_LT_SET_OPTION([$1], _LT_Option)]) 66313968Sdes 67313968Sdesm4_if([$1],[LT_INIT],[ 68313968Sdes dnl 69313968Sdes dnl Simply set some default values (i.e off) if boolean options were not 70313968Sdes dnl specified: 71313968Sdes _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 72313968Sdes ]) 73313968Sdes _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 74313968Sdes ]) 75313968Sdes dnl 76313968Sdes dnl If no reference was made to various pairs of opposing options, then 77313968Sdes dnl we run the default mode handler for the pair. For example, if neither 78313968Sdes dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 79313968Sdes dnl archives by default: 80313968Sdes _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 81313968Sdes _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 82313968Sdes _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 83313968Sdes _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 84313968Sdes [_LT_ENABLE_FAST_INSTALL]) 85313968Sdes _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 86313968Sdes [_LT_WITH_AIX_SONAME([aix])]) 87313968Sdes ]) 88313968Sdes])# _LT_SET_OPTIONS 89313968Sdes 90313968Sdes 91313968Sdes## --------------------------------- ## 92313968Sdes## Macros to handle LT_INIT options. ## 93313968Sdes## --------------------------------- ## 94313968Sdes 95313968Sdes# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 96313968Sdes# ----------------------------------------- 97313968Sdesm4_define([_LT_MANGLE_DEFUN], 98313968Sdes[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 99313968Sdes 100313968Sdes 101313968Sdes# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 102313968Sdes# ----------------------------------------------- 103313968Sdesm4_define([LT_OPTION_DEFINE], 104313968Sdes[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 105313968Sdes])# LT_OPTION_DEFINE 106313968Sdes 107313968Sdes 108313968Sdes# dlopen 109313968Sdes# ------ 110313968SdesLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 111313968Sdes]) 112313968Sdes 113313968SdesAU_DEFUN([AC_LIBTOOL_DLOPEN], 114313968Sdes[_LT_SET_OPTION([LT_INIT], [dlopen]) 115313968SdesAC_DIAGNOSE([obsolete], 116313968Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you 117313968Sdesput the 'dlopen' option into LT_INIT's first parameter.]) 118313968Sdes]) 119313968Sdes 120313968Sdesdnl aclocal-1.4 backwards compatibility: 121313968Sdesdnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 122313968Sdes 123313968Sdes 124313968Sdes# win32-dll 125313968Sdes# --------- 126313968Sdes# Declare package support for building win32 dll's. 127313968SdesLT_OPTION_DEFINE([LT_INIT], [win32-dll], 128313968Sdes[enable_win32_dll=yes 129313968Sdes 130313968Sdescase $host in 131313968Sdes*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 132313968Sdes AC_CHECK_TOOL(AS, as, false) 133313968Sdes AC_CHECK_TOOL(DLLTOOL, dlltool, false) 134313968Sdes AC_CHECK_TOOL(OBJDUMP, objdump, false) 135313968Sdes ;; 136313968Sdesesac 137313968Sdes 138313968Sdestest -z "$AS" && AS=as 139313968Sdes_LT_DECL([], [AS], [1], [Assembler program])dnl 140313968Sdes 141313968Sdestest -z "$DLLTOOL" && DLLTOOL=dlltool 142313968Sdes_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 143313968Sdes 144313968Sdestest -z "$OBJDUMP" && OBJDUMP=objdump 145313968Sdes_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 146313968Sdes])# win32-dll 147313968Sdes 148313968SdesAU_DEFUN([AC_LIBTOOL_WIN32_DLL], 149313968Sdes[AC_REQUIRE([AC_CANONICAL_HOST])dnl 150313968Sdes_LT_SET_OPTION([LT_INIT], [win32-dll]) 151313968SdesAC_DIAGNOSE([obsolete], 152313968Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you 153313968Sdesput the 'win32-dll' option into LT_INIT's first parameter.]) 154313968Sdes]) 155313968Sdes 156313968Sdesdnl aclocal-1.4 backwards compatibility: 157313968Sdesdnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 158313968Sdes 159313968Sdes 160313968Sdes# _LT_ENABLE_SHARED([DEFAULT]) 161313968Sdes# ---------------------------- 162313968Sdes# implement the --enable-shared flag, and supports the 'shared' and 163313968Sdes# 'disable-shared' LT_INIT options. 164313968Sdes# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 165313968Sdesm4_define([_LT_ENABLE_SHARED], 166313968Sdes[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 167313968SdesAC_ARG_ENABLE([shared], 168313968Sdes [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 169313968Sdes [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 170313968Sdes [p=${PACKAGE-default} 171313968Sdes case $enableval in 172313968Sdes yes) enable_shared=yes ;; 173313968Sdes no) enable_shared=no ;; 174313968Sdes *) 175313968Sdes enable_shared=no 176313968Sdes # Look at the argument we got. We use all the common list separators. 177313968Sdes lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 178313968Sdes for pkg in $enableval; do 179313968Sdes IFS=$lt_save_ifs 180313968Sdes if test "X$pkg" = "X$p"; then 181313968Sdes enable_shared=yes 182313968Sdes fi 183313968Sdes done 184313968Sdes IFS=$lt_save_ifs 185313968Sdes ;; 186313968Sdes esac], 187313968Sdes [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 188313968Sdes 189313968Sdes _LT_DECL([build_libtool_libs], [enable_shared], [0], 190313968Sdes [Whether or not to build shared libraries]) 191313968Sdes])# _LT_ENABLE_SHARED 192313968Sdes 193313968SdesLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 194313968SdesLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 195313968Sdes 196313968Sdes# Old names: 197313968SdesAC_DEFUN([AC_ENABLE_SHARED], 198313968Sdes[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 199313968Sdes]) 200313968Sdes 201313968SdesAC_DEFUN([AC_DISABLE_SHARED], 202313968Sdes[_LT_SET_OPTION([LT_INIT], [disable-shared]) 203313968Sdes]) 204313968Sdes 205313968SdesAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 206313968SdesAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 207313968Sdes 208313968Sdesdnl aclocal-1.4 backwards compatibility: 209313968Sdesdnl AC_DEFUN([AM_ENABLE_SHARED], []) 210313968Sdesdnl AC_DEFUN([AM_DISABLE_SHARED], []) 211313968Sdes 212313968Sdes 213313968Sdes 214313968Sdes# _LT_ENABLE_STATIC([DEFAULT]) 215313968Sdes# ---------------------------- 216313968Sdes# implement the --enable-static flag, and support the 'static' and 217313968Sdes# 'disable-static' LT_INIT options. 218313968Sdes# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 219313968Sdesm4_define([_LT_ENABLE_STATIC], 220313968Sdes[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 221313968SdesAC_ARG_ENABLE([static], 222313968Sdes [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 223313968Sdes [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 224313968Sdes [p=${PACKAGE-default} 225313968Sdes case $enableval in 226313968Sdes yes) enable_static=yes ;; 227313968Sdes no) enable_static=no ;; 228313968Sdes *) 229313968Sdes enable_static=no 230313968Sdes # Look at the argument we got. We use all the common list separators. 231313968Sdes lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 232313968Sdes for pkg in $enableval; do 233313968Sdes IFS=$lt_save_ifs 234313968Sdes if test "X$pkg" = "X$p"; then 235313968Sdes enable_static=yes 236313968Sdes fi 237313968Sdes done 238313968Sdes IFS=$lt_save_ifs 239313968Sdes ;; 240313968Sdes esac], 241313968Sdes [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 242313968Sdes 243313968Sdes _LT_DECL([build_old_libs], [enable_static], [0], 244313968Sdes [Whether or not to build static libraries]) 245313968Sdes])# _LT_ENABLE_STATIC 246313968Sdes 247313968SdesLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 248313968SdesLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 249313968Sdes 250313968Sdes# Old names: 251313968SdesAC_DEFUN([AC_ENABLE_STATIC], 252313968Sdes[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 253313968Sdes]) 254313968Sdes 255313968SdesAC_DEFUN([AC_DISABLE_STATIC], 256313968Sdes[_LT_SET_OPTION([LT_INIT], [disable-static]) 257313968Sdes]) 258313968Sdes 259313968SdesAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 260313968SdesAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 261313968Sdes 262313968Sdesdnl aclocal-1.4 backwards compatibility: 263313968Sdesdnl AC_DEFUN([AM_ENABLE_STATIC], []) 264313968Sdesdnl AC_DEFUN([AM_DISABLE_STATIC], []) 265313968Sdes 266313968Sdes 267313968Sdes 268313968Sdes# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 269313968Sdes# ---------------------------------- 270313968Sdes# implement the --enable-fast-install flag, and support the 'fast-install' 271313968Sdes# and 'disable-fast-install' LT_INIT options. 272313968Sdes# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 273313968Sdesm4_define([_LT_ENABLE_FAST_INSTALL], 274313968Sdes[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 275313968SdesAC_ARG_ENABLE([fast-install], 276313968Sdes [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 277313968Sdes [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 278313968Sdes [p=${PACKAGE-default} 279313968Sdes case $enableval in 280313968Sdes yes) enable_fast_install=yes ;; 281313968Sdes no) enable_fast_install=no ;; 282313968Sdes *) 283313968Sdes enable_fast_install=no 284313968Sdes # Look at the argument we got. We use all the common list separators. 285313968Sdes lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 286313968Sdes for pkg in $enableval; do 287313968Sdes IFS=$lt_save_ifs 288313968Sdes if test "X$pkg" = "X$p"; then 289313968Sdes enable_fast_install=yes 290313968Sdes fi 291313968Sdes done 292313968Sdes IFS=$lt_save_ifs 293313968Sdes ;; 294313968Sdes esac], 295313968Sdes [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 296313968Sdes 297313968Sdes_LT_DECL([fast_install], [enable_fast_install], [0], 298313968Sdes [Whether or not to optimize for fast installation])dnl 299313968Sdes])# _LT_ENABLE_FAST_INSTALL 300313968Sdes 301313968SdesLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 302313968SdesLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 303313968Sdes 304313968Sdes# Old names: 305313968SdesAU_DEFUN([AC_ENABLE_FAST_INSTALL], 306313968Sdes[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 307313968SdesAC_DIAGNOSE([obsolete], 308313968Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you put 309313968Sdesthe 'fast-install' option into LT_INIT's first parameter.]) 310313968Sdes]) 311313968Sdes 312313968SdesAU_DEFUN([AC_DISABLE_FAST_INSTALL], 313313968Sdes[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 314313968SdesAC_DIAGNOSE([obsolete], 315313968Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you put 316313968Sdesthe 'disable-fast-install' option into LT_INIT's first parameter.]) 317313968Sdes]) 318313968Sdes 319313968Sdesdnl aclocal-1.4 backwards compatibility: 320313968Sdesdnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 321313968Sdesdnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 322313968Sdes 323313968Sdes 324313968Sdes# _LT_WITH_AIX_SONAME([DEFAULT]) 325313968Sdes# ---------------------------------- 326313968Sdes# implement the --with-aix-soname flag, and support the `aix-soname=aix' 327313968Sdes# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 328313968Sdes# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 329313968Sdesm4_define([_LT_WITH_AIX_SONAME], 330313968Sdes[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 331313968Sdesshared_archive_member_spec= 332313968Sdescase $host,$enable_shared in 333313968Sdespower*-*-aix[[5-9]]*,yes) 334313968Sdes AC_MSG_CHECKING([which variant of shared library versioning to provide]) 335313968Sdes AC_ARG_WITH([aix-soname], 336313968Sdes [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 337313968Sdes [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 338313968Sdes [case $withval in 339313968Sdes aix|svr4|both) 340313968Sdes ;; 341313968Sdes *) 342313968Sdes AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 343313968Sdes ;; 344313968Sdes esac 345313968Sdes lt_cv_with_aix_soname=$with_aix_soname], 346313968Sdes [AC_CACHE_VAL([lt_cv_with_aix_soname], 347313968Sdes [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 348313968Sdes with_aix_soname=$lt_cv_with_aix_soname]) 349313968Sdes AC_MSG_RESULT([$with_aix_soname]) 350313968Sdes if test aix != "$with_aix_soname"; then 351313968Sdes # For the AIX way of multilib, we name the shared archive member 352313968Sdes # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 353313968Sdes # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 354313968Sdes # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 355313968Sdes # the AIX toolchain works better with OBJECT_MODE set (default 32). 356313968Sdes if test 64 = "${OBJECT_MODE-32}"; then 357313968Sdes shared_archive_member_spec=shr_64 358313968Sdes else 359313968Sdes shared_archive_member_spec=shr 360313968Sdes fi 361313968Sdes fi 362313968Sdes ;; 363313968Sdes*) 364313968Sdes with_aix_soname=aix 365313968Sdes ;; 366313968Sdesesac 367313968Sdes 368313968Sdes_LT_DECL([], [shared_archive_member_spec], [0], 369313968Sdes [Shared archive member basename, for filename based shared library versioning on AIX])dnl 370313968Sdes])# _LT_WITH_AIX_SONAME 371313968Sdes 372313968SdesLT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 373313968SdesLT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 374313968SdesLT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 375313968Sdes 376313968Sdes 377313968Sdes# _LT_WITH_PIC([MODE]) 378313968Sdes# -------------------- 379313968Sdes# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 380313968Sdes# LT_INIT options. 381313968Sdes# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 382313968Sdesm4_define([_LT_WITH_PIC], 383313968Sdes[AC_ARG_WITH([pic], 384313968Sdes [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 385313968Sdes [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 386313968Sdes [lt_p=${PACKAGE-default} 387313968Sdes case $withval in 388313968Sdes yes|no) pic_mode=$withval ;; 389313968Sdes *) 390313968Sdes pic_mode=default 391313968Sdes # Look at the argument we got. We use all the common list separators. 392313968Sdes lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 393313968Sdes for lt_pkg in $withval; do 394313968Sdes IFS=$lt_save_ifs 395313968Sdes if test "X$lt_pkg" = "X$lt_p"; then 396313968Sdes pic_mode=yes 397313968Sdes fi 398313968Sdes done 399313968Sdes IFS=$lt_save_ifs 400313968Sdes ;; 401313968Sdes esac], 402313968Sdes [pic_mode=m4_default([$1], [default])]) 403313968Sdes 404313968Sdes_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 405313968Sdes])# _LT_WITH_PIC 406313968Sdes 407313968SdesLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 408313968SdesLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 409313968Sdes 410313968Sdes# Old name: 411313968SdesAU_DEFUN([AC_LIBTOOL_PICMODE], 412313968Sdes[_LT_SET_OPTION([LT_INIT], [pic-only]) 413313968SdesAC_DIAGNOSE([obsolete], 414313968Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you 415313968Sdesput the 'pic-only' option into LT_INIT's first parameter.]) 416313968Sdes]) 417313968Sdes 418313968Sdesdnl aclocal-1.4 backwards compatibility: 419313968Sdesdnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 420313968Sdes 421313968Sdes## ----------------- ## 422313968Sdes## LTDL_INIT Options ## 423313968Sdes## ----------------- ## 424313968Sdes 425313968Sdesm4_define([_LTDL_MODE], []) 426313968SdesLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 427313968Sdes [m4_define([_LTDL_MODE], [nonrecursive])]) 428313968SdesLT_OPTION_DEFINE([LTDL_INIT], [recursive], 429313968Sdes [m4_define([_LTDL_MODE], [recursive])]) 430313968SdesLT_OPTION_DEFINE([LTDL_INIT], [subproject], 431313968Sdes [m4_define([_LTDL_MODE], [subproject])]) 432313968Sdes 433313968Sdesm4_define([_LTDL_TYPE], []) 434313968SdesLT_OPTION_DEFINE([LTDL_INIT], [installable], 435313968Sdes [m4_define([_LTDL_TYPE], [installable])]) 436313968SdesLT_OPTION_DEFINE([LTDL_INIT], [convenience], 437313968Sdes [m4_define([_LTDL_TYPE], [convenience])]) 438