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