1266072Sdes# Helper functions for option handling. -*- Autoconf -*- 2266072Sdes# 3285206Sdes# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software 4285206Sdes# Foundation, Inc. 5266072Sdes# Written by Gary V. Vaughan, 2004 6266072Sdes# 7266072Sdes# This file is free software; the Free Software Foundation gives 8266072Sdes# unlimited permission to copy and/or distribute it, with or without 9266072Sdes# modifications, as long as this notice is preserved. 10266072Sdes 11285206Sdes# serial 8 ltoptions.m4 12266072Sdes 13266072Sdes# This is to help aclocal find these macros, as it can't see m4_define. 14266072SdesAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 15266072Sdes 16266072Sdes 17266072Sdes# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 18266072Sdes# ------------------------------------------ 19266072Sdesm4_define([_LT_MANGLE_OPTION], 20266072Sdes[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 21266072Sdes 22266072Sdes 23266072Sdes# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 24266072Sdes# --------------------------------------- 25266072Sdes# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 26266072Sdes# matching handler defined, dispatch to it. Other OPTION-NAMEs are 27266072Sdes# saved as a flag. 28266072Sdesm4_define([_LT_SET_OPTION], 29266072Sdes[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 30266072Sdesm4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 31266072Sdes _LT_MANGLE_DEFUN([$1], [$2]), 32285206Sdes [m4_warning([Unknown $1 option '$2'])])[]dnl 33266072Sdes]) 34266072Sdes 35266072Sdes 36266072Sdes# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 37266072Sdes# ------------------------------------------------------------ 38266072Sdes# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 39266072Sdesm4_define([_LT_IF_OPTION], 40266072Sdes[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 41266072Sdes 42266072Sdes 43266072Sdes# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 44266072Sdes# ------------------------------------------------------- 45266072Sdes# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 46266072Sdes# are set. 47266072Sdesm4_define([_LT_UNLESS_OPTIONS], 48266072Sdes[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 49266072Sdes [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 50266072Sdes [m4_define([$0_found])])])[]dnl 51266072Sdesm4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 52266072Sdes])[]dnl 53266072Sdes]) 54266072Sdes 55266072Sdes 56266072Sdes# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 57266072Sdes# ---------------------------------------- 58266072Sdes# OPTION-LIST is a space-separated list of Libtool options associated 59266072Sdes# with MACRO-NAME. If any OPTION has a matching handler declared with 60266072Sdes# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 61266072Sdes# the unknown option and exit. 62266072Sdesm4_defun([_LT_SET_OPTIONS], 63266072Sdes[# Set options 64266072Sdesm4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 65266072Sdes [_LT_SET_OPTION([$1], _LT_Option)]) 66266072Sdes 67266072Sdesm4_if([$1],[LT_INIT],[ 68266072Sdes dnl 69266072Sdes dnl Simply set some default values (i.e off) if boolean options were not 70266072Sdes dnl specified: 71266072Sdes _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 72266072Sdes ]) 73266072Sdes _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 74266072Sdes ]) 75266072Sdes dnl 76266072Sdes dnl If no reference was made to various pairs of opposing options, then 77266072Sdes dnl we run the default mode handler for the pair. For example, if neither 78285206Sdes dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 79266072Sdes dnl archives by default: 80266072Sdes _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 81266072Sdes _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 82266072Sdes _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 83266072Sdes _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 84285206Sdes [_LT_ENABLE_FAST_INSTALL]) 85285206Sdes _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 86285206Sdes [_LT_WITH_AIX_SONAME([aix])]) 87266072Sdes ]) 88266072Sdes])# _LT_SET_OPTIONS 89266072Sdes 90266072Sdes 91266072Sdes## --------------------------------- ## 92266072Sdes## Macros to handle LT_INIT options. ## 93266072Sdes## --------------------------------- ## 94266072Sdes 95266072Sdes# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 96266072Sdes# ----------------------------------------- 97266072Sdesm4_define([_LT_MANGLE_DEFUN], 98266072Sdes[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 99266072Sdes 100266072Sdes 101266072Sdes# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 102266072Sdes# ----------------------------------------------- 103266072Sdesm4_define([LT_OPTION_DEFINE], 104266072Sdes[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 105266072Sdes])# LT_OPTION_DEFINE 106266072Sdes 107266072Sdes 108266072Sdes# dlopen 109266072Sdes# ------ 110266072SdesLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 111266072Sdes]) 112266072Sdes 113266072SdesAU_DEFUN([AC_LIBTOOL_DLOPEN], 114266072Sdes[_LT_SET_OPTION([LT_INIT], [dlopen]) 115266072SdesAC_DIAGNOSE([obsolete], 116266072Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you 117285206Sdesput the 'dlopen' option into LT_INIT's first parameter.]) 118266072Sdes]) 119266072Sdes 120266072Sdesdnl aclocal-1.4 backwards compatibility: 121266072Sdesdnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 122266072Sdes 123266072Sdes 124266072Sdes# win32-dll 125266072Sdes# --------- 126266072Sdes# Declare package support for building win32 dll's. 127266072SdesLT_OPTION_DEFINE([LT_INIT], [win32-dll], 128266072Sdes[enable_win32_dll=yes 129266072Sdes 130266072Sdescase $host in 131266072Sdes*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 132266072Sdes AC_CHECK_TOOL(AS, as, false) 133266072Sdes AC_CHECK_TOOL(DLLTOOL, dlltool, false) 134266072Sdes AC_CHECK_TOOL(OBJDUMP, objdump, false) 135266072Sdes ;; 136266072Sdesesac 137266072Sdes 138266072Sdestest -z "$AS" && AS=as 139266072Sdes_LT_DECL([], [AS], [1], [Assembler program])dnl 140266072Sdes 141266072Sdestest -z "$DLLTOOL" && DLLTOOL=dlltool 142266072Sdes_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 143266072Sdes 144266072Sdestest -z "$OBJDUMP" && OBJDUMP=objdump 145266072Sdes_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 146266072Sdes])# win32-dll 147266072Sdes 148266072SdesAU_DEFUN([AC_LIBTOOL_WIN32_DLL], 149266072Sdes[AC_REQUIRE([AC_CANONICAL_HOST])dnl 150266072Sdes_LT_SET_OPTION([LT_INIT], [win32-dll]) 151266072SdesAC_DIAGNOSE([obsolete], 152266072Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you 153285206Sdesput the 'win32-dll' option into LT_INIT's first parameter.]) 154266072Sdes]) 155266072Sdes 156266072Sdesdnl aclocal-1.4 backwards compatibility: 157266072Sdesdnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 158266072Sdes 159266072Sdes 160266072Sdes# _LT_ENABLE_SHARED([DEFAULT]) 161266072Sdes# ---------------------------- 162285206Sdes# implement the --enable-shared flag, and supports the 'shared' and 163285206Sdes# 'disable-shared' LT_INIT options. 164285206Sdes# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 165266072Sdesm4_define([_LT_ENABLE_SHARED], 166266072Sdes[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 167266072SdesAC_ARG_ENABLE([shared], 168266072Sdes [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 169266072Sdes [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 170266072Sdes [p=${PACKAGE-default} 171266072Sdes case $enableval in 172266072Sdes yes) enable_shared=yes ;; 173266072Sdes no) enable_shared=no ;; 174266072Sdes *) 175266072Sdes enable_shared=no 176266072Sdes # Look at the argument we got. We use all the common list separators. 177285206Sdes lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 178266072Sdes for pkg in $enableval; do 179285206Sdes IFS=$lt_save_ifs 180266072Sdes if test "X$pkg" = "X$p"; then 181266072Sdes enable_shared=yes 182266072Sdes fi 183266072Sdes done 184285206Sdes IFS=$lt_save_ifs 185266072Sdes ;; 186266072Sdes esac], 187266072Sdes [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 188266072Sdes 189266072Sdes _LT_DECL([build_libtool_libs], [enable_shared], [0], 190266072Sdes [Whether or not to build shared libraries]) 191266072Sdes])# _LT_ENABLE_SHARED 192266072Sdes 193266072SdesLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 194266072SdesLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 195266072Sdes 196266072Sdes# Old names: 197266072SdesAC_DEFUN([AC_ENABLE_SHARED], 198266072Sdes[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 199266072Sdes]) 200266072Sdes 201266072SdesAC_DEFUN([AC_DISABLE_SHARED], 202266072Sdes[_LT_SET_OPTION([LT_INIT], [disable-shared]) 203266072Sdes]) 204266072Sdes 205266072SdesAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 206266072SdesAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 207266072Sdes 208266072Sdesdnl aclocal-1.4 backwards compatibility: 209266072Sdesdnl AC_DEFUN([AM_ENABLE_SHARED], []) 210266072Sdesdnl AC_DEFUN([AM_DISABLE_SHARED], []) 211266072Sdes 212266072Sdes 213266072Sdes 214266072Sdes# _LT_ENABLE_STATIC([DEFAULT]) 215266072Sdes# ---------------------------- 216285206Sdes# implement the --enable-static flag, and support the 'static' and 217285206Sdes# 'disable-static' LT_INIT options. 218285206Sdes# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 219266072Sdesm4_define([_LT_ENABLE_STATIC], 220266072Sdes[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 221266072SdesAC_ARG_ENABLE([static], 222266072Sdes [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 223266072Sdes [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 224266072Sdes [p=${PACKAGE-default} 225266072Sdes case $enableval in 226266072Sdes yes) enable_static=yes ;; 227266072Sdes no) enable_static=no ;; 228266072Sdes *) 229266072Sdes enable_static=no 230266072Sdes # Look at the argument we got. We use all the common list separators. 231285206Sdes lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 232266072Sdes for pkg in $enableval; do 233285206Sdes IFS=$lt_save_ifs 234266072Sdes if test "X$pkg" = "X$p"; then 235266072Sdes enable_static=yes 236266072Sdes fi 237266072Sdes done 238285206Sdes IFS=$lt_save_ifs 239266072Sdes ;; 240266072Sdes esac], 241266072Sdes [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 242266072Sdes 243266072Sdes _LT_DECL([build_old_libs], [enable_static], [0], 244266072Sdes [Whether or not to build static libraries]) 245266072Sdes])# _LT_ENABLE_STATIC 246266072Sdes 247266072SdesLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 248266072SdesLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 249266072Sdes 250266072Sdes# Old names: 251266072SdesAC_DEFUN([AC_ENABLE_STATIC], 252266072Sdes[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 253266072Sdes]) 254266072Sdes 255266072SdesAC_DEFUN([AC_DISABLE_STATIC], 256266072Sdes[_LT_SET_OPTION([LT_INIT], [disable-static]) 257266072Sdes]) 258266072Sdes 259266072SdesAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 260266072SdesAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 261266072Sdes 262266072Sdesdnl aclocal-1.4 backwards compatibility: 263266072Sdesdnl AC_DEFUN([AM_ENABLE_STATIC], []) 264266072Sdesdnl AC_DEFUN([AM_DISABLE_STATIC], []) 265266072Sdes 266266072Sdes 267266072Sdes 268266072Sdes# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 269266072Sdes# ---------------------------------- 270285206Sdes# implement the --enable-fast-install flag, and support the 'fast-install' 271285206Sdes# and 'disable-fast-install' LT_INIT options. 272285206Sdes# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 273266072Sdesm4_define([_LT_ENABLE_FAST_INSTALL], 274266072Sdes[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 275266072SdesAC_ARG_ENABLE([fast-install], 276266072Sdes [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 277266072Sdes [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 278266072Sdes [p=${PACKAGE-default} 279266072Sdes case $enableval in 280266072Sdes yes) enable_fast_install=yes ;; 281266072Sdes no) enable_fast_install=no ;; 282266072Sdes *) 283266072Sdes enable_fast_install=no 284266072Sdes # Look at the argument we got. We use all the common list separators. 285285206Sdes lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 286266072Sdes for pkg in $enableval; do 287285206Sdes IFS=$lt_save_ifs 288266072Sdes if test "X$pkg" = "X$p"; then 289266072Sdes enable_fast_install=yes 290266072Sdes fi 291266072Sdes done 292285206Sdes IFS=$lt_save_ifs 293266072Sdes ;; 294266072Sdes esac], 295266072Sdes [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 296266072Sdes 297266072Sdes_LT_DECL([fast_install], [enable_fast_install], [0], 298266072Sdes [Whether or not to optimize for fast installation])dnl 299266072Sdes])# _LT_ENABLE_FAST_INSTALL 300266072Sdes 301266072SdesLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 302266072SdesLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 303266072Sdes 304266072Sdes# Old names: 305266072SdesAU_DEFUN([AC_ENABLE_FAST_INSTALL], 306266072Sdes[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 307266072SdesAC_DIAGNOSE([obsolete], 308266072Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you put 309285206Sdesthe 'fast-install' option into LT_INIT's first parameter.]) 310266072Sdes]) 311266072Sdes 312266072SdesAU_DEFUN([AC_DISABLE_FAST_INSTALL], 313266072Sdes[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 314266072SdesAC_DIAGNOSE([obsolete], 315266072Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you put 316285206Sdesthe 'disable-fast-install' option into LT_INIT's first parameter.]) 317266072Sdes]) 318266072Sdes 319266072Sdesdnl aclocal-1.4 backwards compatibility: 320266072Sdesdnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 321266072Sdesdnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 322266072Sdes 323266072Sdes 324285206Sdes# _LT_WITH_AIX_SONAME([DEFAULT]) 325285206Sdes# ---------------------------------- 326285206Sdes# implement the --with-aix-soname flag, and support the `aix-soname=aix' 327285206Sdes# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 328285206Sdes# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 329285206Sdesm4_define([_LT_WITH_AIX_SONAME], 330285206Sdes[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 331285206Sdesshared_archive_member_spec= 332285206Sdescase $host,$enable_shared in 333285206Sdespower*-*-aix[[5-9]]*,yes) 334285206Sdes AC_MSG_CHECKING([which variant of shared library versioning to provide]) 335285206Sdes AC_ARG_WITH([aix-soname], 336285206Sdes [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 337285206Sdes [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 338285206Sdes [case $withval in 339285206Sdes aix|svr4|both) 340285206Sdes ;; 341285206Sdes *) 342285206Sdes AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 343285206Sdes ;; 344285206Sdes esac 345285206Sdes lt_cv_with_aix_soname=$with_aix_soname], 346285206Sdes [AC_CACHE_VAL([lt_cv_with_aix_soname], 347285206Sdes [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 348285206Sdes with_aix_soname=$lt_cv_with_aix_soname]) 349285206Sdes AC_MSG_RESULT([$with_aix_soname]) 350285206Sdes if test aix != "$with_aix_soname"; then 351285206Sdes # For the AIX way of multilib, we name the shared archive member 352285206Sdes # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 353285206Sdes # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 354285206Sdes # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 355285206Sdes # the AIX toolchain works better with OBJECT_MODE set (default 32). 356285206Sdes if test 64 = "${OBJECT_MODE-32}"; then 357285206Sdes shared_archive_member_spec=shr_64 358285206Sdes else 359285206Sdes shared_archive_member_spec=shr 360285206Sdes fi 361285206Sdes fi 362285206Sdes ;; 363285206Sdes*) 364285206Sdes with_aix_soname=aix 365285206Sdes ;; 366285206Sdesesac 367285206Sdes 368285206Sdes_LT_DECL([], [shared_archive_member_spec], [0], 369285206Sdes [Shared archive member basename, for filename based shared library versioning on AIX])dnl 370285206Sdes])# _LT_WITH_AIX_SONAME 371285206Sdes 372285206SdesLT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 373285206SdesLT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 374285206SdesLT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 375285206Sdes 376285206Sdes 377266072Sdes# _LT_WITH_PIC([MODE]) 378266072Sdes# -------------------- 379285206Sdes# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 380266072Sdes# LT_INIT options. 381285206Sdes# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 382266072Sdesm4_define([_LT_WITH_PIC], 383266072Sdes[AC_ARG_WITH([pic], 384266072Sdes [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 385266072Sdes [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 386266072Sdes [lt_p=${PACKAGE-default} 387266072Sdes case $withval in 388266072Sdes yes|no) pic_mode=$withval ;; 389266072Sdes *) 390266072Sdes pic_mode=default 391266072Sdes # Look at the argument we got. We use all the common list separators. 392285206Sdes lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 393266072Sdes for lt_pkg in $withval; do 394285206Sdes IFS=$lt_save_ifs 395266072Sdes if test "X$lt_pkg" = "X$lt_p"; then 396266072Sdes pic_mode=yes 397266072Sdes fi 398266072Sdes done 399285206Sdes IFS=$lt_save_ifs 400266072Sdes ;; 401266072Sdes esac], 402285206Sdes [pic_mode=m4_default([$1], [default])]) 403266072Sdes 404266072Sdes_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 405266072Sdes])# _LT_WITH_PIC 406266072Sdes 407266072SdesLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 408266072SdesLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 409266072Sdes 410266072Sdes# Old name: 411266072SdesAU_DEFUN([AC_LIBTOOL_PICMODE], 412266072Sdes[_LT_SET_OPTION([LT_INIT], [pic-only]) 413266072SdesAC_DIAGNOSE([obsolete], 414266072Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you 415285206Sdesput the 'pic-only' option into LT_INIT's first parameter.]) 416266072Sdes]) 417266072Sdes 418266072Sdesdnl aclocal-1.4 backwards compatibility: 419266072Sdesdnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 420266072Sdes 421266072Sdes## ----------------- ## 422266072Sdes## LTDL_INIT Options ## 423266072Sdes## ----------------- ## 424266072Sdes 425266072Sdesm4_define([_LTDL_MODE], []) 426266072SdesLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 427266072Sdes [m4_define([_LTDL_MODE], [nonrecursive])]) 428266072SdesLT_OPTION_DEFINE([LTDL_INIT], [recursive], 429266072Sdes [m4_define([_LTDL_MODE], [recursive])]) 430266072SdesLT_OPTION_DEFINE([LTDL_INIT], [subproject], 431266072Sdes [m4_define([_LTDL_MODE], [subproject])]) 432266072Sdes 433266072Sdesm4_define([_LTDL_TYPE], []) 434266072SdesLT_OPTION_DEFINE([LTDL_INIT], [installable], 435266072Sdes [m4_define([_LTDL_TYPE], [installable])]) 436266072SdesLT_OPTION_DEFINE([LTDL_INIT], [convenience], 437266072Sdes [m4_define([_LTDL_TYPE], [convenience])]) 438