annotate src/fftw-3.3.3/m4/ltoptions.m4 @ 23:619f715526df sv_v2.1

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