annotate src/fftw-3.3.8/m4/ltoptions.m4 @ 82:d0c2a83c1364

Add FFTW 3.3.8 source, and a Linux build
author Chris Cannam
date Tue, 19 Nov 2019 14:52:55 +0000
parents
children
rev   line source
Chris@82 1 # Helper functions for option handling. -*- Autoconf -*-
Chris@82 2 #
Chris@82 3 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
Chris@82 4 # Foundation, Inc.
Chris@82 5 # Written by Gary V. Vaughan, 2004
Chris@82 6 #
Chris@82 7 # This file is free software; the Free Software Foundation gives
Chris@82 8 # unlimited permission to copy and/or distribute it, with or without
Chris@82 9 # modifications, as long as this notice is preserved.
Chris@82 10
Chris@82 11 # serial 8 ltoptions.m4
Chris@82 12
Chris@82 13 # This is to help aclocal find these macros, as it can't see m4_define.
Chris@82 14 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
Chris@82 15
Chris@82 16
Chris@82 17 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
Chris@82 18 # ------------------------------------------
Chris@82 19 m4_define([_LT_MANGLE_OPTION],
Chris@82 20 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
Chris@82 21
Chris@82 22
Chris@82 23 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
Chris@82 24 # ---------------------------------------
Chris@82 25 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
Chris@82 26 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
Chris@82 27 # saved as a flag.
Chris@82 28 m4_define([_LT_SET_OPTION],
Chris@82 29 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
Chris@82 30 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
Chris@82 31 _LT_MANGLE_DEFUN([$1], [$2]),
Chris@82 32 [m4_warning([Unknown $1 option '$2'])])[]dnl
Chris@82 33 ])
Chris@82 34
Chris@82 35
Chris@82 36 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
Chris@82 37 # ------------------------------------------------------------
Chris@82 38 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
Chris@82 39 m4_define([_LT_IF_OPTION],
Chris@82 40 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
Chris@82 41
Chris@82 42
Chris@82 43 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
Chris@82 44 # -------------------------------------------------------
Chris@82 45 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
Chris@82 46 # are set.
Chris@82 47 m4_define([_LT_UNLESS_OPTIONS],
Chris@82 48 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
Chris@82 49 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
Chris@82 50 [m4_define([$0_found])])])[]dnl
Chris@82 51 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
Chris@82 52 ])[]dnl
Chris@82 53 ])
Chris@82 54
Chris@82 55
Chris@82 56 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
Chris@82 57 # ----------------------------------------
Chris@82 58 # OPTION-LIST is a space-separated list of Libtool options associated
Chris@82 59 # with MACRO-NAME. If any OPTION has a matching handler declared with
Chris@82 60 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
Chris@82 61 # the unknown option and exit.
Chris@82 62 m4_defun([_LT_SET_OPTIONS],
Chris@82 63 [# Set options
Chris@82 64 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
Chris@82 65 [_LT_SET_OPTION([$1], _LT_Option)])
Chris@82 66
Chris@82 67 m4_if([$1],[LT_INIT],[
Chris@82 68 dnl
Chris@82 69 dnl Simply set some default values (i.e off) if boolean options were not
Chris@82 70 dnl specified:
Chris@82 71 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
Chris@82 72 ])
Chris@82 73 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
Chris@82 74 ])
Chris@82 75 dnl
Chris@82 76 dnl If no reference was made to various pairs of opposing options, then
Chris@82 77 dnl we run the default mode handler for the pair. For example, if neither
Chris@82 78 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
Chris@82 79 dnl archives by default:
Chris@82 80 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
Chris@82 81 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
Chris@82 82 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
Chris@82 83 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
Chris@82 84 [_LT_ENABLE_FAST_INSTALL])
Chris@82 85 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
Chris@82 86 [_LT_WITH_AIX_SONAME([aix])])
Chris@82 87 ])
Chris@82 88 ])# _LT_SET_OPTIONS
Chris@82 89
Chris@82 90
Chris@82 91 ## --------------------------------- ##
Chris@82 92 ## Macros to handle LT_INIT options. ##
Chris@82 93 ## --------------------------------- ##
Chris@82 94
Chris@82 95 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
Chris@82 96 # -----------------------------------------
Chris@82 97 m4_define([_LT_MANGLE_DEFUN],
Chris@82 98 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
Chris@82 99
Chris@82 100
Chris@82 101 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
Chris@82 102 # -----------------------------------------------
Chris@82 103 m4_define([LT_OPTION_DEFINE],
Chris@82 104 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
Chris@82 105 ])# LT_OPTION_DEFINE
Chris@82 106
Chris@82 107
Chris@82 108 # dlopen
Chris@82 109 # ------
Chris@82 110 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
Chris@82 111 ])
Chris@82 112
Chris@82 113 AU_DEFUN([AC_LIBTOOL_DLOPEN],
Chris@82 114 [_LT_SET_OPTION([LT_INIT], [dlopen])
Chris@82 115 AC_DIAGNOSE([obsolete],
Chris@82 116 [$0: Remove this warning and the call to _LT_SET_OPTION when you
Chris@82 117 put the 'dlopen' option into LT_INIT's first parameter.])
Chris@82 118 ])
Chris@82 119
Chris@82 120 dnl aclocal-1.4 backwards compatibility:
Chris@82 121 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
Chris@82 122
Chris@82 123
Chris@82 124 # win32-dll
Chris@82 125 # ---------
Chris@82 126 # Declare package support for building win32 dll's.
Chris@82 127 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
Chris@82 128 [enable_win32_dll=yes
Chris@82 129
Chris@82 130 case $host in
Chris@82 131 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
Chris@82 132 AC_CHECK_TOOL(AS, as, false)
Chris@82 133 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
Chris@82 134 AC_CHECK_TOOL(OBJDUMP, objdump, false)
Chris@82 135 ;;
Chris@82 136 esac
Chris@82 137
Chris@82 138 test -z "$AS" && AS=as
Chris@82 139 _LT_DECL([], [AS], [1], [Assembler program])dnl
Chris@82 140
Chris@82 141 test -z "$DLLTOOL" && DLLTOOL=dlltool
Chris@82 142 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
Chris@82 143
Chris@82 144 test -z "$OBJDUMP" && OBJDUMP=objdump
Chris@82 145 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
Chris@82 146 ])# win32-dll
Chris@82 147
Chris@82 148 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
Chris@82 149 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
Chris@82 150 _LT_SET_OPTION([LT_INIT], [win32-dll])
Chris@82 151 AC_DIAGNOSE([obsolete],
Chris@82 152 [$0: Remove this warning and the call to _LT_SET_OPTION when you
Chris@82 153 put the 'win32-dll' option into LT_INIT's first parameter.])
Chris@82 154 ])
Chris@82 155
Chris@82 156 dnl aclocal-1.4 backwards compatibility:
Chris@82 157 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
Chris@82 158
Chris@82 159
Chris@82 160 # _LT_ENABLE_SHARED([DEFAULT])
Chris@82 161 # ----------------------------
Chris@82 162 # implement the --enable-shared flag, and supports the 'shared' and
Chris@82 163 # 'disable-shared' LT_INIT options.
Chris@82 164 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
Chris@82 165 m4_define([_LT_ENABLE_SHARED],
Chris@82 166 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
Chris@82 167 AC_ARG_ENABLE([shared],
Chris@82 168 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
Chris@82 169 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
Chris@82 170 [p=${PACKAGE-default}
Chris@82 171 case $enableval in
Chris@82 172 yes) enable_shared=yes ;;
Chris@82 173 no) enable_shared=no ;;
Chris@82 174 *)
Chris@82 175 enable_shared=no
Chris@82 176 # Look at the argument we got. We use all the common list separators.
Chris@82 177 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@82 178 for pkg in $enableval; do
Chris@82 179 IFS=$lt_save_ifs
Chris@82 180 if test "X$pkg" = "X$p"; then
Chris@82 181 enable_shared=yes
Chris@82 182 fi
Chris@82 183 done
Chris@82 184 IFS=$lt_save_ifs
Chris@82 185 ;;
Chris@82 186 esac],
Chris@82 187 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
Chris@82 188
Chris@82 189 _LT_DECL([build_libtool_libs], [enable_shared], [0],
Chris@82 190 [Whether or not to build shared libraries])
Chris@82 191 ])# _LT_ENABLE_SHARED
Chris@82 192
Chris@82 193 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
Chris@82 194 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
Chris@82 195
Chris@82 196 # Old names:
Chris@82 197 AC_DEFUN([AC_ENABLE_SHARED],
Chris@82 198 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
Chris@82 199 ])
Chris@82 200
Chris@82 201 AC_DEFUN([AC_DISABLE_SHARED],
Chris@82 202 [_LT_SET_OPTION([LT_INIT], [disable-shared])
Chris@82 203 ])
Chris@82 204
Chris@82 205 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
Chris@82 206 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
Chris@82 207
Chris@82 208 dnl aclocal-1.4 backwards compatibility:
Chris@82 209 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
Chris@82 210 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
Chris@82 211
Chris@82 212
Chris@82 213
Chris@82 214 # _LT_ENABLE_STATIC([DEFAULT])
Chris@82 215 # ----------------------------
Chris@82 216 # implement the --enable-static flag, and support the 'static' and
Chris@82 217 # 'disable-static' LT_INIT options.
Chris@82 218 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
Chris@82 219 m4_define([_LT_ENABLE_STATIC],
Chris@82 220 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
Chris@82 221 AC_ARG_ENABLE([static],
Chris@82 222 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
Chris@82 223 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
Chris@82 224 [p=${PACKAGE-default}
Chris@82 225 case $enableval in
Chris@82 226 yes) enable_static=yes ;;
Chris@82 227 no) enable_static=no ;;
Chris@82 228 *)
Chris@82 229 enable_static=no
Chris@82 230 # Look at the argument we got. We use all the common list separators.
Chris@82 231 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@82 232 for pkg in $enableval; do
Chris@82 233 IFS=$lt_save_ifs
Chris@82 234 if test "X$pkg" = "X$p"; then
Chris@82 235 enable_static=yes
Chris@82 236 fi
Chris@82 237 done
Chris@82 238 IFS=$lt_save_ifs
Chris@82 239 ;;
Chris@82 240 esac],
Chris@82 241 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
Chris@82 242
Chris@82 243 _LT_DECL([build_old_libs], [enable_static], [0],
Chris@82 244 [Whether or not to build static libraries])
Chris@82 245 ])# _LT_ENABLE_STATIC
Chris@82 246
Chris@82 247 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
Chris@82 248 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
Chris@82 249
Chris@82 250 # Old names:
Chris@82 251 AC_DEFUN([AC_ENABLE_STATIC],
Chris@82 252 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
Chris@82 253 ])
Chris@82 254
Chris@82 255 AC_DEFUN([AC_DISABLE_STATIC],
Chris@82 256 [_LT_SET_OPTION([LT_INIT], [disable-static])
Chris@82 257 ])
Chris@82 258
Chris@82 259 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
Chris@82 260 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
Chris@82 261
Chris@82 262 dnl aclocal-1.4 backwards compatibility:
Chris@82 263 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
Chris@82 264 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
Chris@82 265
Chris@82 266
Chris@82 267
Chris@82 268 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
Chris@82 269 # ----------------------------------
Chris@82 270 # implement the --enable-fast-install flag, and support the 'fast-install'
Chris@82 271 # and 'disable-fast-install' LT_INIT options.
Chris@82 272 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
Chris@82 273 m4_define([_LT_ENABLE_FAST_INSTALL],
Chris@82 274 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
Chris@82 275 AC_ARG_ENABLE([fast-install],
Chris@82 276 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
Chris@82 277 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
Chris@82 278 [p=${PACKAGE-default}
Chris@82 279 case $enableval in
Chris@82 280 yes) enable_fast_install=yes ;;
Chris@82 281 no) enable_fast_install=no ;;
Chris@82 282 *)
Chris@82 283 enable_fast_install=no
Chris@82 284 # Look at the argument we got. We use all the common list separators.
Chris@82 285 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@82 286 for pkg in $enableval; do
Chris@82 287 IFS=$lt_save_ifs
Chris@82 288 if test "X$pkg" = "X$p"; then
Chris@82 289 enable_fast_install=yes
Chris@82 290 fi
Chris@82 291 done
Chris@82 292 IFS=$lt_save_ifs
Chris@82 293 ;;
Chris@82 294 esac],
Chris@82 295 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
Chris@82 296
Chris@82 297 _LT_DECL([fast_install], [enable_fast_install], [0],
Chris@82 298 [Whether or not to optimize for fast installation])dnl
Chris@82 299 ])# _LT_ENABLE_FAST_INSTALL
Chris@82 300
Chris@82 301 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
Chris@82 302 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
Chris@82 303
Chris@82 304 # Old names:
Chris@82 305 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
Chris@82 306 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
Chris@82 307 AC_DIAGNOSE([obsolete],
Chris@82 308 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
Chris@82 309 the 'fast-install' option into LT_INIT's first parameter.])
Chris@82 310 ])
Chris@82 311
Chris@82 312 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
Chris@82 313 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
Chris@82 314 AC_DIAGNOSE([obsolete],
Chris@82 315 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
Chris@82 316 the 'disable-fast-install' option into LT_INIT's first parameter.])
Chris@82 317 ])
Chris@82 318
Chris@82 319 dnl aclocal-1.4 backwards compatibility:
Chris@82 320 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
Chris@82 321 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
Chris@82 322
Chris@82 323
Chris@82 324 # _LT_WITH_AIX_SONAME([DEFAULT])
Chris@82 325 # ----------------------------------
Chris@82 326 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
Chris@82 327 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
Chris@82 328 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
Chris@82 329 m4_define([_LT_WITH_AIX_SONAME],
Chris@82 330 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
Chris@82 331 shared_archive_member_spec=
Chris@82 332 case $host,$enable_shared in
Chris@82 333 power*-*-aix[[5-9]]*,yes)
Chris@82 334 AC_MSG_CHECKING([which variant of shared library versioning to provide])
Chris@82 335 AC_ARG_WITH([aix-soname],
Chris@82 336 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
Chris@82 337 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
Chris@82 338 [case $withval in
Chris@82 339 aix|svr4|both)
Chris@82 340 ;;
Chris@82 341 *)
Chris@82 342 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
Chris@82 343 ;;
Chris@82 344 esac
Chris@82 345 lt_cv_with_aix_soname=$with_aix_soname],
Chris@82 346 [AC_CACHE_VAL([lt_cv_with_aix_soname],
Chris@82 347 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
Chris@82 348 with_aix_soname=$lt_cv_with_aix_soname])
Chris@82 349 AC_MSG_RESULT([$with_aix_soname])
Chris@82 350 if test aix != "$with_aix_soname"; then
Chris@82 351 # For the AIX way of multilib, we name the shared archive member
Chris@82 352 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
Chris@82 353 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
Chris@82 354 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
Chris@82 355 # the AIX toolchain works better with OBJECT_MODE set (default 32).
Chris@82 356 if test 64 = "${OBJECT_MODE-32}"; then
Chris@82 357 shared_archive_member_spec=shr_64
Chris@82 358 else
Chris@82 359 shared_archive_member_spec=shr
Chris@82 360 fi
Chris@82 361 fi
Chris@82 362 ;;
Chris@82 363 *)
Chris@82 364 with_aix_soname=aix
Chris@82 365 ;;
Chris@82 366 esac
Chris@82 367
Chris@82 368 _LT_DECL([], [shared_archive_member_spec], [0],
Chris@82 369 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
Chris@82 370 ])# _LT_WITH_AIX_SONAME
Chris@82 371
Chris@82 372 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
Chris@82 373 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
Chris@82 374 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
Chris@82 375
Chris@82 376
Chris@82 377 # _LT_WITH_PIC([MODE])
Chris@82 378 # --------------------
Chris@82 379 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
Chris@82 380 # LT_INIT options.
Chris@82 381 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
Chris@82 382 m4_define([_LT_WITH_PIC],
Chris@82 383 [AC_ARG_WITH([pic],
Chris@82 384 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
Chris@82 385 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
Chris@82 386 [lt_p=${PACKAGE-default}
Chris@82 387 case $withval in
Chris@82 388 yes|no) pic_mode=$withval ;;
Chris@82 389 *)
Chris@82 390 pic_mode=default
Chris@82 391 # Look at the argument we got. We use all the common list separators.
Chris@82 392 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Chris@82 393 for lt_pkg in $withval; do
Chris@82 394 IFS=$lt_save_ifs
Chris@82 395 if test "X$lt_pkg" = "X$lt_p"; then
Chris@82 396 pic_mode=yes
Chris@82 397 fi
Chris@82 398 done
Chris@82 399 IFS=$lt_save_ifs
Chris@82 400 ;;
Chris@82 401 esac],
Chris@82 402 [pic_mode=m4_default([$1], [default])])
Chris@82 403
Chris@82 404 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
Chris@82 405 ])# _LT_WITH_PIC
Chris@82 406
Chris@82 407 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
Chris@82 408 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
Chris@82 409
Chris@82 410 # Old name:
Chris@82 411 AU_DEFUN([AC_LIBTOOL_PICMODE],
Chris@82 412 [_LT_SET_OPTION([LT_INIT], [pic-only])
Chris@82 413 AC_DIAGNOSE([obsolete],
Chris@82 414 [$0: Remove this warning and the call to _LT_SET_OPTION when you
Chris@82 415 put the 'pic-only' option into LT_INIT's first parameter.])
Chris@82 416 ])
Chris@82 417
Chris@82 418 dnl aclocal-1.4 backwards compatibility:
Chris@82 419 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
Chris@82 420
Chris@82 421 ## ----------------- ##
Chris@82 422 ## LTDL_INIT Options ##
Chris@82 423 ## ----------------- ##
Chris@82 424
Chris@82 425 m4_define([_LTDL_MODE], [])
Chris@82 426 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
Chris@82 427 [m4_define([_LTDL_MODE], [nonrecursive])])
Chris@82 428 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
Chris@82 429 [m4_define([_LTDL_MODE], [recursive])])
Chris@82 430 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
Chris@82 431 [m4_define([_LTDL_MODE], [subproject])])
Chris@82 432
Chris@82 433 m4_define([_LTDL_TYPE], [])
Chris@82 434 LT_OPTION_DEFINE([LTDL_INIT], [installable],
Chris@82 435 [m4_define([_LTDL_TYPE], [installable])])
Chris@82 436 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
Chris@82 437 [m4_define([_LTDL_TYPE], [convenience])])