annotate fft/fftw/fftw-3.3.4/m4/ltoptions.m4 @ 40:223f770b5341 kissfft-double tip

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