| | | | |
| Offset 0, 0 lines modified | Offset 1, 8399 lines modified |
| | 1 | #·libtool.m4·-·Configure·libtool·for·the·host·system.·-*-Autoconf-*- |
| | 2 | # |
| | 3 | #···Copyright·(C)·1996-2001,·2003-2019,·2021-2022·Free·Software |
| | 4 | #···Foundation,·Inc. |
| | 5 | #···Written·by·Gordon·Matzigkeit,·1996 |
| | 6 | # |
| | 7 | #·This·file·is·free·software;·the·Free·Software·Foundation·gives |
| | 8 | #·unlimited·permission·to·copy·and/or·distribute·it,·with·or·without |
| | 9 | #·modifications,·as·long·as·this·notice·is·preserved. |
| | |
| | 10 | m4_define([_LT_COPYING],·[dnl |
| | 11 | #·Copyright·(C)·2014·Free·Software·Foundation,·Inc. |
| | 12 | #·This·is·free·software;·see·the·source·for·copying·conditions.··There·is·NO |
| | 13 | #·warranty;·not·even·for·MERCHANTABILITY·or·FITNESS·FOR·A·PARTICULAR·PURPOSE. |
| | |
| | 14 | #·GNU·Libtool·is·free·software;·you·can·redistribute·it·and/or·modify |
| | 15 | #·it·under·the·terms·of·the·GNU·General·Public·License·as·published·by |
| | 16 | #·the·Free·Software·Foundation;·either·version·2·of·of·the·License,·or |
| | 17 | #·(at·your·option)·any·later·version. |
| | 18 | # |
| | 19 | #·As·a·special·exception·to·the·GNU·General·Public·License,·if·you |
| | 20 | #·distribute·this·file·as·part·of·a·program·or·library·that·is·built |
| | 21 | #·using·GNU·Libtool,·you·may·include·this·file·under·the··same |
| | 22 | #·distribution·terms·that·you·use·for·the·rest·of·that·program. |
| | 23 | # |
| | 24 | #·GNU·Libtool·is·distributed·in·the·hope·that·it·will·be·useful,·but |
| | 25 | #·WITHOUT·ANY·WARRANTY;·without·even·the·implied·warranty·of |
| | 26 | #·MERCHANTABILITY·or·FITNESS·FOR·A·PARTICULAR·PURPOSE.··See·the |
| | 27 | #·GNU·General·Public·License·for·more·details. |
| | 28 | # |
| | 29 | #·You·should·have·received·a·copy·of·the·GNU·General·Public·License |
| | 30 | #·along·with·this·program.··If·not,·see·<http://www.gnu.org/licenses/>. |
| | 31 | ]) |
| | |
| | 32 | #·serial·59·LT_INIT |
| | |
| | |
| | 33 | #·LT_PREREQ(VERSION) |
| | 34 | #·------------------ |
| | 35 | #·Complain·and·exit·if·this·libtool·version·is·less·that·VERSION. |
| | 36 | m4_defun([LT_PREREQ], |
| | 37 | [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]),·[$1]),·-1, |
| | 38 | ·······[m4_default([$3], |
| | 39 | » » ···[m4_fatal([Libtool·version·$1·or·higher·is·required], |
| | 40 | » » ·············63)])], |
| | 41 | ·······[$2])]) |
| | |
| | |
| | 42 | #·_LT_CHECK_BUILDDIR |
| | 43 | #·------------------ |
| | 44 | #·Complain·if·the·absolute·build·directory·name·contains·unusual·characters |
| | 45 | m4_defun([_LT_CHECK_BUILDDIR], |
| | 46 | [case·`pwd`·in |
| | 47 | ··*\·*·|·*\» *) |
| | 48 | ····AC_MSG_WARN([Libtool·does·not·cope·well·with·whitespace·in·`pwd`])·;; |
| | 49 | esac |
| | 50 | ]) |
| | |
| | |
| | 51 | #·LT_INIT([OPTIONS]) |
| | 52 | #·------------------ |
| | 53 | AC_DEFUN([LT_INIT], |
| | 54 | [AC_PREREQ([2.62])dnl·We·use·AC_PATH_PROGS_FEATURE_CHECK |
| | 55 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl |
| | 56 | AC_BEFORE([$0],·[LT_LANG])dnl |
| | 57 | AC_BEFORE([$0],·[LT_OUTPUT])dnl |
| | 58 | AC_BEFORE([$0],·[LTDL_INIT])dnl |
| | 59 | m4_require([_LT_CHECK_BUILDDIR])dnl |
| | |
| | 60 | dnl·Autoconf·doesn't·catch·unexpanded·LT_·macros·by·default: |
| | 61 | m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
| | 62 | m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl |
| | 63 | dnl·aclocal·doesn't·pull·ltoptions.m4,·ltsugar.m4,·or·ltversion.m4 |
| | 64 | dnl·unless·we·require·an·AC_DEFUNed·macro: |
| | 65 | AC_REQUIRE([LTOPTIONS_VERSION])dnl |
| | 66 | AC_REQUIRE([LTSUGAR_VERSION])dnl |
| | 67 | AC_REQUIRE([LTVERSION_VERSION])dnl |
| | 68 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
| | 69 | m4_require([_LT_PROG_LTMAIN])dnl |
| | |
| | 70 | _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) |
| | |
| | 71 | dnl·Parse·OPTIONS |
| | 72 | _LT_SET_OPTIONS([$0],·[$1]) |
| | |
| | 73 | #·This·can·be·used·to·rebuild·libtool·when·needed |
| | 74 | LIBTOOL_DEPS=$ltmain |
| | |
| | 75 | #·Always·use·our·own·libtool. |
| | 76 | LIBTOOL='$(SHELL)·$(top_builddir)/libtool' |
| | 77 | AC_SUBST(LIBTOOL)dnl |
| | |
| | 78 | _LT_SETUP |
| | |
| | 79 | #·Only·expand·once: |
| | 80 | m4_define([LT_INIT]) |
| | 81 | ])#·LT_INIT |
| | |
| | 82 | #·Old·names: |
| | 83 | AU_ALIAS([AC_PROG_LIBTOOL],·[LT_INIT]) |
| | 84 | AU_ALIAS([AM_PROG_LIBTOOL],·[LT_INIT]) |
| | 85 | dnl·aclocal-1.4·backwards·compatibility: |
| | 86 | dnl·AC_DEFUN([AC_PROG_LIBTOOL],·[]) |
| | 87 | dnl·AC_DEFUN([AM_PROG_LIBTOOL],·[]) |
| | |
| | |
| | 88 | #·_LT_PREPARE_CC_BASENAME |
| | 89 | #·----------------------- |
| | 90 | m4_defun([_LT_PREPARE_CC_BASENAME],·[ |
| | 91 | #·Calculate·cc_basename.··Skip·known·compiler·wrappers·and·cross-prefix. |
| | 92 | func_cc_basename·() |
| | 93 | { |
| | 94 | ····for·cc_temp·in·@S|@*"";·do |
| | 95 | ······case·$cc_temp·in |
| | 96 | ········compile·|·*[[\\/]]compile·|·ccache·|·*[[\\/]]ccache·)·;; |
| | 97 | ········distcc·|·*[[\\/]]distcc·|·purify·|·*[[\\/]]purify·)·;; |
| | 98 | ········\-*)·;; |
| | 99 | ········*)·break;; |
| | 100 | ······esac |
| | 101 | ····done |
| | 102 | ····func_cc_basename_result=`$ECHO·"$cc_temp"·|·$SED·"s%.*/%%;·s%^$host_alias-%%"` |
| | 103 | } |
| | 104 | ])#·_LT_PREPARE_CC_BASENAME |
| | |
| | |
| | 105 | #·_LT_CC_BASENAME(CC) |
| | 106 | #·------------------- |
| | 107 | #·It·would·be·clearer·to·call·AC_REQUIREs·from·_LT_PREPARE_CC_BASENAME, |
| | 108 | #·but·that·macro·is·also·expanded·into·generated·libtool·script,·which |
| | 109 | #·arranges·for·$SED·and·$ECHO·to·be·set·by·different·means. |
| | 110 | m4_defun([_LT_CC_BASENAME], |
| | 111 | [m4_require([_LT_PREPARE_CC_BASENAME])dnl |
| | 112 | AC_REQUIRE([_LT_DECL_SED])dnl |
| | 113 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
| | 114 | func_cc_basename·$1 |
| | 115 | cc_basename=$func_cc_basename_result |
| | 116 | ]) |
| | |
| | |
| | 117 | #·_LT_FILEUTILS_DEFAULTS |
| | 118 | #·---------------------- |
| | 119 | #·It·is·okay·to·use·these·file·commands·and·assume·they·have·been·set |
| | 120 | #·sensibly·after·'m4_require([_LT_FILEUTILS_DEFAULTS])'. |
| | 121 | m4_defun([_LT_FILEUTILS_DEFAULTS], |
| | 122 | [:·${CP="cp·-f"} |
| | 123 | :·${MV="mv·-f"} |
| | 124 | :·${RM="rm·-f"} |
| | 125 | ])#·_LT_FILEUTILS_DEFAULTS |
| | |
| | |
| | 126 | #·_LT_SETUP |
| | 127 | #·--------- |
| | 128 | m4_defun([_LT_SETUP], |
| | 129 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| | 130 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| | 131 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
| | 132 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
| | |
| | 133 | _LT_DECL([],·[PATH_SEPARATOR],·[1],·[The·PATH·separator·for·the·build·system])dnl |
| | 134 | dnl |
| | 135 | _LT_DECL([],·[host_alias],·[0],·[The·host·system])dnl |
| | 136 | _LT_DECL([],·[host],·[0])dnl |
| | 137 | _LT_DECL([],·[host_os],·[0])dnl |
| | 138 | dnl |
| | 139 | _LT_DECL([],·[build_alias],·[0],·[The·build·system])dnl |
| | 140 | _LT_DECL([],·[build],·[0])dnl |
| | 141 | _LT_DECL([],·[build_os],·[0])dnl |
| | 142 | dnl |
| | 143 | AC_REQUIRE([AC_PROG_CC])dnl |
| | 144 | AC_REQUIRE([LT_PATH_LD])dnl |
| | 145 | AC_REQUIRE([LT_PATH_NM])dnl |
| | 146 | dnl |
| | 147 | AC_REQUIRE([AC_PROG_LN_S])dnl |
| | 148 | test·-z·"$LN_S"·&&·LN_S="ln·-s" |
| | 149 | _LT_DECL([],·[LN_S],·[1],·[Whether·we·need·soft·or·hard·links])dnl |
| | 150 | dnl |
| | 151 | AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
| | 152 | _LT_DECL([objext],·[ac_objext],·[0],·[Object·file·suffix·(normally·"o")])dnl |
| | 153 | _LT_DECL([],·[exeext],·[0],·[Executable·file·suffix·(normally·"")])dnl |
| | 154 | dnl |
| | 155 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| | 156 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
| | 157 | m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl |
| | 158 | m4_require([_LT_CMD_RELOAD])dnl |
| | 159 | m4_require([_LT_DECL_FILECMD])dnl |
| | 160 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
| | 161 | m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl |
| | 162 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
| | 163 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
| | 164 | m4_require([_LT_WITH_SYSROOT])dnl |
| | 165 | m4_require([_LT_CMD_TRUNCATE])dnl |
| | |
| | 166 | _LT_CONFIG_LIBTOOL_INIT([ |
| | 167 | #·See·if·we·are·running·on·zsh,·and·set·the·options·that·allow·our |
| | 168 | #·commands·through·without·removal·of·\·escapes·INIT. |
| | 169 | if·test·-n·"\${ZSH_VERSION+set}";·then |
| | 170 | ···setopt·NO_GLOB_SUBST |
| | 171 | fi |
| | 172 | ]) |
| | 173 | if·test·-n·"${ZSH_VERSION+set}";·then |
| | 174 | ···setopt·NO_GLOB_SUBST |
| | 175 | fi |
| | |
| | 176 | _LT_CHECK_OBJDIR |
| | |
| | 177 | m4_require([_LT_TAG_COMPILER])dnl |
| | |
| | 178 | case·$host_os·in |
| | 179 | aix3*) |
| | 180 | ··#·AIX·sometimes·has·problems·with·the·GCC·collect2·program.··For·some |
| | 181 | ··#·reason,·if·we·set·the·COLLECT_NAMES·environment·variable,·the·problems |
| | 182 | ··#·vanish·in·a·puff·of·smoke. |
| | 183 | ··if·test·set·!=·"${COLLECT_NAMES+set}";·then |
| | 184 | ····COLLECT_NAMES= |
| | 185 | ····export·COLLECT_NAMES |
| | 186 | ··fi |
| | 187 | ··;; |
| | 188 | esac |
| | |
| | 189 | #·Global·variables: |
| | 190 | ofile=libtool |
| | 191 | can_build_shared=yes |
| | |
| | 192 | #·All·known·linkers·require·a·'.a'·archive·for·static·linking·(except·MSVC·and |
| | 193 | #·ICC,·which·need·'.lib'). |
| | 194 | libext=a |
| | |
| | 195 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| | |
| | 196 | old_CC=$CC |
| | 197 | old_CFLAGS=$CFLAGS |
| | |
| | 198 | #·Set·sane·defaults·for·various·variables |
| | 199 | test·-z·"$CC"·&&·CC=cc |
| | 200 | test·-z·"$LTCC"·&&·LTCC=$CC |
| | 201 | test·-z·"$LTCFLAGS"·&&·LTCFLAGS=$CFLAGS |
| | 202 | test·-z·"$LD"·&&·LD=ld |
| | 203 | test·-z·"$ac_objext"·&&·ac_objext=o |
| | |
| | 204 | _LT_CC_BASENAME([$compiler]) |
| | |
| | 205 | #·Only·perform·the·check·for·file,·if·the·check·method·requires·it |
| | 206 | test·-z·"$MAGIC_CMD"·&&·MAGIC_CMD=file |
| | 207 | case·$deplibs_check_method·in |
| | 208 | file_magic*) |
| | 209 | ··if·test·"$file_magic_cmd"·=·'$MAGIC_CMD';·then |
| | 210 | ····_LT_PATH_MAGIC |
| | 211 | ··fi |
| | 212 | ··;; |
| | 213 | esac |
| | |
| | 214 | #·Use·C·for·the·default·configuration·in·the·libtool·script |
| | 215 | LT_SUPPORTED_TAG([CC]) |
| | 216 | _LT_LANG_C_CONFIG |
| | 217 | _LT_LANG_DEFAULT_CONFIG |
| | 218 | _LT_CONFIG_COMMANDS |
| | 219 | ])#·_LT_SETUP |
| | |
| | |
| | 220 | #·_LT_PREPARE_SED_QUOTE_VARS |
| | 221 | #·-------------------------- |
| | 222 | #·Define·a·few·sed·substitution·that·help·us·do·robust·quoting. |
| | 223 | m4_defun([_LT_PREPARE_SED_QUOTE_VARS], |
| | 224 | [#·Backslashify·metacharacters·that·are·still·active·within |
| | 225 | #·double-quoted·strings. |
| | 226 | sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
| | |
| | 227 | #·Same·as·above,·but·do·not·quote·variable·references. |
| | 228 | double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
| | |
| | 229 | #·Sed·substitution·to·delay·expansion·of·an·escaped·shell·variable·in·a |
| | 230 | #·double_quote_subst'ed·string. |
| | 231 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| | |
| | 232 | #·Sed·substitution·to·delay·expansion·of·an·escaped·single·quote. |
| | 233 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| | |
| | 234 | #·Sed·substitution·to·avoid·accidental·globbing·in·evaled·expressions |
| | 235 | no_glob_subst='s/\*/\\\*/g' |
| | 236 | ]) |
| | |
| | 237 | #·_LT_PROG_LTMAIN |
| | 238 | #·--------------- |
| | 239 | #·Note·that·this·code·is·called·both·from·'configure',·and·'config.status' |
| | 240 | #·now·that·we·use·AC_CONFIG_COMMANDS·to·generate·libtool.··Notably, |
| | 241 | #·'config.status'·has·no·value·for·ac_aux_dir·unless·we·are·using·Automake, |
| | 242 | #·so·we·pass·a·copy·along·to·make·sure·it·has·a·sensible·value·anyway. |
| | 243 | m4_defun([_LT_PROG_LTMAIN], |
| | 244 | [m4_ifdef([AC_REQUIRE_AUX_FILE],·[AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl |
| | 245 | _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
| | 246 | ltmain=$ac_aux_dir/ltmain.sh |
| | 247 | ])#·_LT_PROG_LTMAIN |
| | |
| | |
| | 248 | ##·-------------------------------------·## |
| | 249 | ##·Accumulate·code·for·creating·libtool.·## |
| | 250 | ##·-------------------------------------·## |
| | |
| | 251 | #·So·that·we·can·recreate·a·full·libtool·script·including·additional |
| | 252 | #·tags,·we·accumulate·the·chunks·of·code·to·send·to·AC_CONFIG_COMMANDS |
| | 253 | #·in·macros·and·then·make·a·single·call·at·the·end·using·the·'libtool' |
| | 254 | #·label. |
| | |
| | |
| | 255 | #·_LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
| | 256 | #·---------------------------------------- |
| | 257 | #·Register·INIT-COMMANDS·to·be·passed·to·AC_CONFIG_COMMANDS·later. |
| | 258 | m4_define([_LT_CONFIG_LIBTOOL_INIT], |
| | 259 | [m4_ifval([$1], |
| | 260 | ··········[m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
| | 261 | ·····················[$1 |
| | 262 | ])])]) |
| | |
| | 263 | #·Initialize. |
| | 264 | m4_define([_LT_OUTPUT_LIBTOOL_INIT]) |
| | |
| | |
| | 265 | #·_LT_CONFIG_LIBTOOL([COMMANDS]) |
| | 266 | #·------------------------------ |
| | 267 | #·Register·COMMANDS·to·be·passed·to·AC_CONFIG_COMMANDS·later. |
| | 268 | m4_define([_LT_CONFIG_LIBTOOL], |
| | 269 | [m4_ifval([$1], |
| | 270 | ··········[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], |
| | 271 | ·····················[$1 |
| | 272 | ])])]) |
| | |
| | 273 | #·Initialize. |
| | 274 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) |
| | |
| | |
| | 275 | #·_LT_CONFIG_SAVE_COMMANDS([COMMANDS],·[INIT_COMMANDS]) |
| | 276 | #·----------------------------------------------------- |
| | 277 | m4_defun([_LT_CONFIG_SAVE_COMMANDS], |
| | 278 | [_LT_CONFIG_LIBTOOL([$1]) |
| | 279 | _LT_CONFIG_LIBTOOL_INIT([$2]) |
| | 280 | ]) |
| | |
| | |
| | 281 | #·_LT_FORMAT_COMMENT([COMMENT]) |
| | 282 | #·----------------------------- |
| | 283 | #·Add·leading·comment·marks·to·the·start·of·each·line,·and·a·trailing |
| | 284 | #·full-stop·to·the·whole·comment·if·one·is·not·present·already. |
| | 285 | m4_define([_LT_FORMAT_COMMENT], |
| | 286 | [m4_ifval([$1],·[ |
| | 287 | m4_bpatsubst([m4_bpatsubst([$1],·[^·*],·[#·])], |
| | 288 | ··············[['`$\]],·[\\\&])]m4_bmatch([$1],·[[!?.]$],·[],·[.]) |
| | 289 | )]) |
| | |
| | |
| | |
| | 290 | ##·------------------------·## |
| | 291 | ##·FIXME:·Eliminate·VARNAME·## |
| | 292 | ##·------------------------·## |
| | |
| | |
| | 293 | #·_LT_DECL([CONFIGNAME],·VARNAME,·VALUE,·[DESCRIPTION],·[IS-TAGGED?]) |
| | 294 | #·------------------------------------------------------------------- |
| | 295 | #·CONFIGNAME·is·the·name·given·to·the·value·in·the·libtool·script. |
| | 296 | #·VARNAME·is·the·(base)·name·used·in·the·configure·script. |
| | 297 | #·VALUE·may·be·0,·1·or·2·for·a·computed·quote·escaped·value·based·on |
| | 298 | #·VARNAME.··Any·other·value·will·be·used·directly. |
| | 299 | m4_define([_LT_DECL], |
| | 300 | [lt_if_append_uniq([lt_decl_varnames],·[$2],·[,·], |
| | 301 | ····[lt_dict_add_subkey([lt_decl_dict],·[$2],·[libtool_name], |
| | 302 | » [m4_ifval([$1],·[$1],·[$2])]) |
| | 303 | ····lt_dict_add_subkey([lt_decl_dict],·[$2],·[value],·[$3]) |
| | 304 | ····m4_ifval([$4], |
| | 305 | » [lt_dict_add_subkey([lt_decl_dict],·[$2],·[description],·[$4])]) |
| | 306 | ····lt_dict_add_subkey([lt_decl_dict],·[$2], |
| | 307 | » [tagged?],·[m4_ifval([$5],·[yes],·[no])])]) |
| | 308 | ]) |
| | |
| | |
| | 309 | #·_LT_TAGDECL([CONFIGNAME],·VARNAME,·VALUE,·[DESCRIPTION]) |
| | 310 | #·-------------------------------------------------------- |
| | 311 | m4_define([_LT_TAGDECL],·[_LT_DECL([$1],·[$2],·[$3],·[$4],·[yes])]) |
| | |
| | |
| | 312 | #·lt_decl_tag_varnames([SEPARATOR],·[VARNAME1...]) |
| | 313 | #·------------------------------------------------ |
| | 314 | m4_define([lt_decl_tag_varnames], |
| | 315 | [_lt_decl_filter([tagged?],·[yes],·$@)]) |
| | |
| | |
| | 316 | #·_lt_decl_filter(SUBKEY,·VALUE,·[SEPARATOR],·[VARNAME1..]) |
| | 317 | #·--------------------------------------------------------- |
| | 318 | m4_define([_lt_decl_filter], |
| | 319 | [m4_case([$#], |
| | 320 | ··[0],·[m4_fatal([$0:·too·few·arguments:·$#])], |
| | 321 | ··[1],·[m4_fatal([$0:·too·few·arguments:·$#:·$1])], |
| | 322 | ··[2],·[lt_dict_filter([lt_decl_dict],·[$1],·[$2],·[],·lt_decl_varnames)], |
| | 323 | ··[3],·[lt_dict_filter([lt_decl_dict],·[$1],·[$2],·[$3],·lt_decl_varnames)], |
| | 324 | ··[lt_dict_filter([lt_decl_dict],·$@)])[]dnl |
| | 325 | ]) |
| | |
| | |
| | 326 | #·lt_decl_quote_varnames([SEPARATOR],·[VARNAME1...]) |
| | 327 | #·-------------------------------------------------- |
| | 328 | m4_define([lt_decl_quote_varnames], |
| | 329 | [_lt_decl_filter([value],·[1],·$@)]) |
| | |
| | |
| | 330 | #·lt_decl_dquote_varnames([SEPARATOR],·[VARNAME1...]) |
| | 331 | #·--------------------------------------------------- |
| | 332 | m4_define([lt_decl_dquote_varnames], |
| | 333 | [_lt_decl_filter([value],·[2],·$@)]) |
| | |
| | |
| | 334 | #·lt_decl_varnames_tagged([SEPARATOR],·[VARNAME1...]) |
| | 335 | #·--------------------------------------------------- |
| | 336 | m4_define([lt_decl_varnames_tagged], |
| | 337 | [m4_assert([$#·<=·2])dnl |
| | 338 | _$0(m4_quote(m4_default([$1],·[[,·]])), |
| | 339 | ····m4_ifval([$2],·[[$2]],·[m4_dquote(lt_decl_tag_varnames)]), |
| | 340 | ····m4_split(m4_normalize(m4_quote(_LT_TAGS)),·[·]))]) |
| | 341 | m4_define([_lt_decl_varnames_tagged], |
| | 342 | [m4_ifval([$3],·[lt_combine([$1],·[$2],·[_],·$3)])]) |
| | |
| | |
| | 343 | #·lt_decl_all_varnames([SEPARATOR],·[VARNAME1...]) |
| | 344 | #·------------------------------------------------ |
| | 345 | m4_define([lt_decl_all_varnames], |
| | 346 | [_$0(m4_quote(m4_default([$1],·[[,·]])), |
| | 347 | ·····m4_if([$2],·[], |
| | 348 | » ···m4_quote(lt_decl_varnames), |
| | 349 | » m4_quote(m4_shift($@))))[]dnl |
| | 350 | ]) |
| | 351 | m4_define([_lt_decl_all_varnames], |
| | 352 | [lt_join($@,·lt_decl_varnames_tagged([$1], |
| | 353 | » » » lt_decl_tag_varnames([[,·]],·m4_shift($@))))dnl |
| | 354 | ]) |
| | |
| | |
| | 355 | #·_LT_CONFIG_STATUS_DECLARE([VARNAME]) |
| | 356 | #·------------------------------------ |
| | 357 | #·Quote·a·variable·value,·and·forward·it·to·'config.status'·so·that·its |
| | 358 | #·declaration·there·will·have·the·same·value·as·in·'configure'.··VARNAME |
| | 359 | #·must·have·a·single·quote·delimited·value·for·this·to·work. |
| | 360 | m4_define([_LT_CONFIG_STATUS_DECLARE], |
| | 361 | [$1='`$ECHO·"$][$1"·|·$SED·"$delay_single_quote_subst"`']) |
| | |
| | |
| | 362 | #·_LT_CONFIG_STATUS_DECLARATIONS |
| | 363 | #·------------------------------ |
| | 364 | #·We·delimit·libtool·config·variables·with·single·quotes,·so·when |
| | 365 | #·we·write·them·to·config.status,·we·have·to·be·sure·to·quote·all |
| | 366 | #·embedded·single·quotes·properly.··In·configure,·this·macro·expands |
| | 367 | #·each·variable·declared·with·_LT_DECL·(and·_LT_TAGDECL)·into: |
| | 368 | # |
| | 369 | #····<var>='`$ECHO·"$<var>"·|·$SED·"$delay_single_quote_subst"`' |
| | 370 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
| | 371 | [m4_foreach([_lt_var],·m4_quote(lt_decl_all_varnames), |
| | 372 | ····[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
| | |
| | |
| | 373 | #·_LT_LIBTOOL_TAGS |
| | 374 | #·---------------- |
| | 375 | #·Output·comment·and·list·of·tags·supported·by·the·script |
| | 376 | m4_defun([_LT_LIBTOOL_TAGS], |
| | 377 | [_LT_FORMAT_COMMENT([The·names·of·the·tagged·configurations·supported·by·this·script])dnl |
| | 378 | available_tags='_LT_TAGS'dnl |
| | 379 | ]) |
| | |
| | |
| | 380 | #·_LT_LIBTOOL_DECLARE(VARNAME,·[TAG]) |
| | 381 | #·----------------------------------- |
| | 382 | #·Extract·the·dictionary·values·for·VARNAME·(optionally·with·TAG)·and |
| | 383 | #·expand·to·a·commented·shell·variable·setting: |
| | 384 | # |
| | 385 | #····#·Some·comment·about·what·VAR·is·for. |
| | 386 | #····visible_name=$lt_internal_name |
| | 387 | m4_define([_LT_LIBTOOL_DECLARE], |
| | 388 | [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict],·[$1], |
| | 389 | » » » » » ···[description])))[]dnl |
| | 390 | m4_pushdef([_libtool_name], |
| | 391 | ····m4_quote(lt_dict_fetch([lt_decl_dict],·[$1],·[libtool_name])))[]dnl |
| | 392 | m4_case(m4_quote(lt_dict_fetch([lt_decl_dict],·[$1],·[value])), |
| | 393 | ····[0],·[_libtool_name=[$]$1], |
| | 394 | ····[1],·[_libtool_name=$lt_[]$1], |
| | 395 | ····[2],·[_libtool_name=$lt_[]$1], |
| | 396 | ····[_libtool_name=lt_dict_fetch([lt_decl_dict],·[$1],·[value])])[]dnl |
| | 397 | m4_ifval([$2],·[_$2])[]m4_popdef([_libtool_name])[]dnl |
| | 398 | ]) |
| | |
| | |
| | 399 | #·_LT_LIBTOOL_CONFIG_VARS |
| | 400 | #·----------------------- |
| | 401 | #·Produce·commented·declarations·of·non-tagged·libtool·config·variables |
| | 402 | #·suitable·for·insertion·in·the·LIBTOOL·CONFIG·section·of·the·'libtool' |
| | 403 | #·script.··Tagged·libtool·config·variables·(even·for·the·LIBTOOL·CONFIG |
| | 404 | #·section)·are·produced·by·_LT_LIBTOOL_TAG_VARS. |
| | 405 | m4_defun([_LT_LIBTOOL_CONFIG_VARS], |
| | 406 | [m4_foreach([_lt_var], |
| | 407 | ····m4_quote(_lt_decl_filter([tagged?],·[no],·[],·lt_decl_varnames)), |
| | 408 | ····[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
| | |
| | |
| | 409 | #·_LT_LIBTOOL_TAG_VARS(TAG) |
| | 410 | #·------------------------- |
| | 411 | m4_define([_LT_LIBTOOL_TAG_VARS], |
| | 412 | [m4_foreach([_lt_var],·m4_quote(lt_decl_tag_varnames), |
| | 413 | ····[m4_n([_LT_LIBTOOL_DECLARE(_lt_var,·[$1])])])]) |
| | |
| | |
| | 414 | #·_LT_TAGVAR(VARNAME,·[TAGNAME]) |
| | 415 | #·------------------------------ |
| | 416 | m4_define([_LT_TAGVAR],·[m4_ifval([$2],·[$1_$2],·[$1])]) |
| | |
| | |
| | 417 | #·_LT_CONFIG_COMMANDS |
| | 418 | #·------------------- |
| | 419 | #·Send·accumulated·output·to·$CONFIG_STATUS.··Thanks·to·the·lists·of |
| | 420 | #·variables·for·single·and·double·quote·escaping·we·saved·from·calls |
| | 421 | #·to·_LT_DECL,·we·can·put·quote·escaped·variables·declarations |
| | 422 | #·into·'config.status',·and·then·the·shell·code·to·quote·escape·them·in |
| | 423 | #·for·loops·in·'config.status'.··Finally,·any·additional·code·accumulated |
| | 424 | #·from·calls·to·_LT_CONFIG_LIBTOOL_INIT·is·expanded. |
| | 425 | m4_defun([_LT_CONFIG_COMMANDS], |
| | 426 | [AC_PROVIDE_IFELSE([LT_OUTPUT], |
| | 427 | » dnl·If·the·libtool·generation·code·has·been·placed·in·$CONFIG_LT, |
| | 428 | » dnl·instead·of·duplicating·it·all·over·again·into·config.status, |
| | 429 | » dnl·then·we·will·have·config.status·run·$CONFIG_LT·later,·so·it |
| | 430 | » dnl·needs·to·know·what·name·is·stored·there: |
| | 431 | ········[AC_CONFIG_COMMANDS([libtool], |
| | 432 | ············[$SHELL·$CONFIG_LT·||·AS_EXIT(1)],·[CONFIG_LT='$CONFIG_LT'])], |
| | 433 | ····dnl·If·the·libtool·generation·code·is·destined·for·config.status, |
| | 434 | ····dnl·expand·the·accumulated·commands·and·init·code·now: |
| | 435 | ····[AC_CONFIG_COMMANDS([libtool], |
| | 436 | ········[_LT_OUTPUT_LIBTOOL_COMMANDS],·[_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) |
| | 437 | ])#_LT_CONFIG_COMMANDS |
| | |
| | |
| | 438 | #·Initialize. |
| | 439 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], |
| | 440 | [ |
| | |
| | 441 | #·The·HP-UX·ksh·and·POSIX·shell·print·the·target·directory·to·stdout |
| | 442 | #·if·CDPATH·is·set. |
| | 443 | (unset·CDPATH)·>/dev/null·2>&1·&&·unset·CDPATH |
| | |
| | 444 | sed_quote_subst='$sed_quote_subst' |
| | 445 | double_quote_subst='$double_quote_subst' |
| | 446 | delay_variable_subst='$delay_variable_subst' |
| | 447 | _LT_CONFIG_STATUS_DECLARATIONS |
| | 448 | LTCC='$LTCC' |
| | 449 | LTCFLAGS='$LTCFLAGS' |
| | 450 | compiler='$compiler_DEFAULT' |
| | |
| | 451 | #·A·function·that·is·used·when·there·is·no·print·builtin·or·printf. |
| | 452 | func_fallback_echo·() |
| | 453 | { |
| | 454 | ··eval·'cat·<<_LTECHO_EOF |
| | 455 | \$[]1 |
| | 456 | _LTECHO_EOF' |
| | 457 | } |
| | |
| | 458 | #·Quote·evaled·strings. |
| | 459 | for·var·in·lt_decl_all_varnames([[·\ |
| | 460 | ]],·lt_decl_quote_varnames);·do |
| | 461 | ····case·\`eval·\\\\\$ECHO·\\\\""\\\\\$\$var"\\\\"\`·in |
| | 462 | ····*[[\\\\\\\`\\"\\\$]]*) |
| | 463 | ······eval·"lt_\$var=\\\\\\"\\\`\\\$ECHO·\\"\\\$\$var\\"·|·\\\$SED·\\"\\\$sed_quote_subst\\"\\\`\\\\\\""·##·exclude·from·sc_prohibit_nested_quotes |
| | 464 | ······;; |
| | 465 | ····*) |
| | 466 | ······eval·"lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| | 467 | ······;; |
| | 468 | ····esac |
| | 469 | done |
| | |
| | 470 | #·Double-quote·double-evaled·strings. |
| | 471 | for·var·in·lt_decl_all_varnames([[·\ |
| | 472 | ]],·lt_decl_dquote_varnames);·do |
| | 473 | ····case·\`eval·\\\\\$ECHO·\\\\""\\\\\$\$var"\\\\"\`·in |
| | 474 | ····*[[\\\\\\\`\\"\\\$]]*) |
| | 475 | ······eval·"lt_\$var=\\\\\\"\\\`\\\$ECHO·\\"\\\$\$var\\"·|·\\\$SED·-e·\\"\\\$double_quote_subst\\"·-e·\\"\\\$sed_quote_subst\\"·-e·\\"\\\$delay_variable_subst\\"\\\`\\\\\\""·##·exclude·from·sc_prohibit_nested_quotes |
| | 476 | ······;; |
| | 477 | ····*) |
| | 478 | ······eval·"lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| | 479 | ······;; |
| | 480 | ····esac |
| | 481 | done |
| | |
| | 482 | _LT_OUTPUT_LIBTOOL_INIT |
| | 483 | ]) |
| | |
| | 484 | #·_LT_GENERATED_FILE_INIT(FILE,·[COMMENT]) |
| | 485 | #·------------------------------------ |
| | 486 | #·Generate·a·child·script·FILE·with·all·initialization·necessary·to |
| | 487 | #·reuse·the·environment·learned·by·the·parent·script,·and·make·the |
| | 488 | #·file·executable.··If·COMMENT·is·supplied,·it·is·inserted·after·the |
| | 489 | #·'#!'·sequence·but·before·initialization·text·begins.··After·this |
| | 490 | #·macro,·additional·text·can·be·appended·to·FILE·to·form·the·body·of |
| | 491 | #·the·child·script.··The·macro·ends·with·non-zero·status·if·the |
| | 492 | #·file·could·not·be·fully·written·(such·as·if·the·disk·is·full). |
| | 493 | m4_ifdef([AS_INIT_GENERATED], |
| | 494 | [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], |
| | 495 | [m4_defun([_LT_GENERATED_FILE_INIT], |
| | 496 | [m4_require([AS_PREPARE])]dnl |
| | 497 | [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl |
| | 498 | [lt_write_fail=0 |
| | 499 | cat·>$1·<<_ASEOF·||·lt_write_fail=1 |
| | 500 | #!·$SHELL |
| | 501 | #·Generated·by·$as_me. |
| | 502 | $2 |
| | 503 | SHELL=\${CONFIG_SHELL-$SHELL} |
| | 504 | export·SHELL |
| | 505 | _ASEOF |
| | 506 | cat·>>$1·<<\_ASEOF·||·lt_write_fail=1 |
| | 507 | AS_SHELL_SANITIZE |
| | 508 | _AS_PREPARE |
| | 509 | exec·AS_MESSAGE_FD>&1 |
| | 510 | _ASEOF |
| | 511 | test·0·=·"$lt_write_fail"·&&·chmod·+x·$1[]dnl |
| | 512 | m4_popdef([AS_MESSAGE_LOG_FD])])])#·_LT_GENERATED_FILE_INIT |
| | |
| | 513 | #·LT_OUTPUT |
| | 514 | #·--------- |
| | 515 | #·This·macro·allows·early·generation·of·the·libtool·script·(before |
| | 516 | #·AC_OUTPUT·is·called),·incase·it·is·used·in·configure·for·compilation |
| | 517 | #·tests. |
| | 518 | AC_DEFUN([LT_OUTPUT], |
| | 519 | [:·${CONFIG_LT=./config.lt} |
| | 520 | AC_MSG_NOTICE([creating·$CONFIG_LT]) |
| | 521 | _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], |
| | 522 | [#·Run·this·file·to·recreate·a·libtool·stub·with·the·current·configuration.]) |
| | |
| | 523 | cat·>>"$CONFIG_LT"·<<\_LTEOF |
| | 524 | lt_cl_silent=false |
| | 525 | exec·AS_MESSAGE_LOG_FD>>config.log |
| | 526 | { |
| | 527 | ··echo |
| | 528 | ··AS_BOX([Running·$as_me.]) |
| | 529 | }·>&AS_MESSAGE_LOG_FD |
| | |
| | 530 | lt_cl_help="\ |
| | 531 | '$as_me'·creates·a·local·libtool·stub·from·the·current·configuration, |
| | 532 | for·use·in·further·configure·time·tests·before·the·real·libtool·is |
| | 533 | generated. |
| | |
| | 534 | Usage:·$[0]·[[OPTIONS]] |
| | |
| | 535 | ··-h,·--help······print·this·help,·then·exit |
| | 536 | ··-V,·--version···print·version·number,·then·exit |
| | 537 | ··-q,·--quiet·····do·not·print·progress·messages |
| | 538 | ··-d,·--debug·····don't·remove·temporary·files |
| | |
| | 539 | Report·bugs·to·<bug-libtool@gnu.org>." |
| | |
| | 540 | lt_cl_version="\ |
| | 541 | m4_ifset([AC_PACKAGE_NAME],·[AC_PACKAGE_NAME·])config.lt[]dnl |
| | 542 | m4_ifset([AC_PACKAGE_VERSION],·[·AC_PACKAGE_VERSION]) |
| | 543 | configured·by·$[0],·generated·by·m4_PACKAGE_STRING. |
| | |
| | 544 | Copyright·(C)·2011·Free·Software·Foundation,·Inc. |
| | 545 | This·config.lt·script·is·free·software;·the·Free·Software·Foundation |
| | 546 | gives·unlimited·permision·to·copy,·distribute·and·modify·it." |
| | |
| | 547 | while·test·0·!=·$[#] |
| | 548 | do |
| | 549 | ··case·$[1]·in |
| | 550 | ····--version·|·--v*·|·-V·) |
| | 551 | ······echo·"$lt_cl_version";·exit·0·;; |
| | 552 | ····--help·|·--h*·|·-h·) |
| | 553 | ······echo·"$lt_cl_help";·exit·0·;; |
| | 554 | ····--debug·|·--d*·|·-d·) |
| | 555 | ······debug=:·;; |
| | 556 | ····--quiet·|·--q*·|·--silent·|·--s*·|·-q·) |
| | 557 | ······lt_cl_silent=:·;; |
| | |
| | 558 | ····-*)·AC_MSG_ERROR([unrecognized·option:·$[1] |
| | 559 | Try·'$[0]·--help'·for·more·information.])·;; |
| | |
| | 560 | ····*)·AC_MSG_ERROR([unrecognized·argument:·$[1] |
| | 561 | Try·'$[0]·--help'·for·more·information.])·;; |
| | 562 | ··esac |
| | 563 | ··shift |
| | 564 | done |
| | |
| | 565 | if·$lt_cl_silent;·then |
| | 566 | ··exec·AS_MESSAGE_FD>/dev/null |
| | 567 | fi |
| | 568 | _LTEOF |
| | |
| | 569 | cat·>>"$CONFIG_LT"·<<_LTEOF |
| | 570 | _LT_OUTPUT_LIBTOOL_COMMANDS_INIT |
| | 571 | _LTEOF |
| | |
| | 572 | cat·>>"$CONFIG_LT"·<<\_LTEOF |
| | 573 | AC_MSG_NOTICE([creating·$ofile]) |
| | 574 | _LT_OUTPUT_LIBTOOL_COMMANDS |
| | 575 | AS_EXIT(0) |
| | 576 | _LTEOF |
| | 577 | chmod·+x·"$CONFIG_LT" |
| | |
| | 578 | #·configure·is·writing·to·config.log,·but·config.lt·does·its·own·redirection, |
| | 579 | #·appending·to·config.log,·which·fails·on·DOS,·as·config.log·is·still·kept |
| | 580 | #·open·by·configure.··Here·we·exec·the·FD·to·/dev/null,·effectively·closing |
| | 581 | #·config.log,·so·it·can·be·properly·(re)opened·and·appended·to·by·config.lt. |
| | 582 | lt_cl_success=: |
| | 583 | test·yes·=·"$silent"·&& |
| | 584 | ··lt_config_lt_args="$lt_config_lt_args·--quiet" |
| | 585 | exec·AS_MESSAGE_LOG_FD>/dev/null |
| | 586 | $SHELL·"$CONFIG_LT"·$lt_config_lt_args·||·lt_cl_success=false |
| | 587 | exec·AS_MESSAGE_LOG_FD>>config.log |
| | 588 | $lt_cl_success·||·AS_EXIT(1) |
| | 589 | ])#·LT_OUTPUT |
| | |
| | |
| | 590 | #·_LT_CONFIG(TAG) |
| | 591 | #·--------------- |
| | 592 | #·If·TAG·is·the·built-in·tag,·create·an·initial·libtool·script·with·a |
| | 593 | #·default·configuration·from·the·untagged·config·vars.··Otherwise·add·code |
| | 594 | #·to·config.status·for·appending·the·configuration·named·by·TAG·from·the |
| | 595 | #·matching·tagged·config·vars. |
| | 596 | m4_defun([_LT_CONFIG], |
| | 597 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| | 598 | _LT_CONFIG_SAVE_COMMANDS([ |
| | 599 | ··m4_define([_LT_TAG],·m4_if([$1],·[],·[C],·[$1]))dnl |
| | 600 | ··m4_if(_LT_TAG,·[C],·[ |
| | 601 | ····#·See·if·we·are·running·on·zsh,·and·set·the·options·that·allow·our |
| | 602 | ····#·commands·through·without·removal·of·\·escapes. |
| | 603 | ····if·test·-n·"${ZSH_VERSION+set}";·then |
| | 604 | ······setopt·NO_GLOB_SUBST |
| | 605 | ····fi |
| | |
| | 606 | ····cfgfile=${ofile}T |
| | 607 | ····trap·"$RM·\"$cfgfile\";·exit·1"·1·2·15 |
| | 608 | ····$RM·"$cfgfile" |
| | |
| | 609 | ····cat·<<_LT_EOF·>>·"$cfgfile" |
| | 610 | #!·$SHELL |
| | 611 | #·Generated·automatically·by·$as_me·($PACKAGE)·$VERSION |
| | 612 | #·NOTE:·Changes·made·to·this·file·will·be·lost:·look·at·ltmain.sh. |
| | |
| | 613 | #·Provide·generalized·library-building·support·services. |
| | 614 | #·Written·by·Gordon·Matzigkeit,·1996 |
| | |
| | 615 | _LT_COPYING |
| | 616 | _LT_LIBTOOL_TAGS |
| | |
| | 617 | #·Configured·defaults·for·sys_lib_dlsearch_path·munging. |
| | 618 | :·\${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| | |
| | 619 | #·###·BEGIN·LIBTOOL·CONFIG |
| | 620 | _LT_LIBTOOL_CONFIG_VARS |
| | 621 | _LT_LIBTOOL_TAG_VARS |
| | 622 | #·###·END·LIBTOOL·CONFIG |
| | |
| | 623 | _LT_EOF |
| | |
| | 624 | ····cat·<<'_LT_EOF'·>>·"$cfgfile" |
| | |
| | 625 | #·###·BEGIN·FUNCTIONS·SHARED·WITH·CONFIGURE |
| | |
| | 626 | _LT_PREPARE_MUNGE_PATH_LIST |
| | 627 | _LT_PREPARE_CC_BASENAME |
| | |
| | 628 | #·###·END·FUNCTIONS·SHARED·WITH·CONFIGURE |
| | |
| | 629 | _LT_EOF |
| | |
| | 630 | ··case·$host_os·in |
| | 631 | ··aix3*) |
| | 632 | ····cat·<<\_LT_EOF·>>·"$cfgfile" |
| | 633 | #·AIX·sometimes·has·problems·with·the·GCC·collect2·program.··For·some |
| | 634 | #·reason,·if·we·set·the·COLLECT_NAMES·environment·variable,·the·problems |
| | 635 | #·vanish·in·a·puff·of·smoke. |
| | 636 | if·test·set·!=·"${COLLECT_NAMES+set}";·then |
| | 637 | ··COLLECT_NAMES= |
| | 638 | ··export·COLLECT_NAMES |
| | 639 | fi |
| | 640 | _LT_EOF |
| | 641 | ····;; |
| | 642 | ··esac |
| | |
| | 643 | ··_LT_PROG_LTMAIN |
| | |
| | 644 | ··#·We·use·sed·instead·of·cat·because·bash·on·DJGPP·gets·confused·if |
| | 645 | ··#·if·finds·mixed·CR/LF·and·LF-only·lines.··Since·sed·operates·in |
| | 646 | ··#·text·mode,·it·properly·converts·lines·to·CR/LF.··This·bash·problem |
| | 647 | ··#·is·reportedly·fixed,·but·why·not·run·on·old·versions·too? |
| | 648 | ··$SED·'$q'·"$ltmain"·>>·"$cfgfile"·\ |
| | 649 | ·····||·(rm·-f·"$cfgfile";·exit·1) |
| | |
| | 650 | ···mv·-f·"$cfgfile"·"$ofile"·|| |
| | 651 | ····(rm·-f·"$ofile"·&&·cp·"$cfgfile"·"$ofile"·&&·rm·-f·"$cfgfile") |
| | 652 | ··chmod·+x·"$ofile" |
| | 653 | ], |
| | 654 | [cat·<<_LT_EOF·>>·"$ofile" |
| | |
| | 655 | dnl·Unfortunately·we·have·to·use·$1·here,·since·_LT_TAG·is·not·expanded |
| | 656 | dnl·in·a·comment·(ie·after·a·#). |
| | 657 | #·###·BEGIN·LIBTOOL·TAG·CONFIG:·$1 |
| | 658 | _LT_LIBTOOL_TAG_VARS(_LT_TAG) |
| | 659 | #·###·END·LIBTOOL·TAG·CONFIG:·$1 |
| | 660 | _LT_EOF |
| | 661 | ])dnl·/m4_if |
| | 662 | ], |
| | 663 | [m4_if([$1],·[],·[ |
| | 664 | ····PACKAGE='$PACKAGE' |
| | 665 | ····VERSION='$VERSION' |
| | 666 | ····RM='$RM' |
| | 667 | ····ofile='$ofile'],·[]) |
| | 668 | ])dnl·/_LT_CONFIG_SAVE_COMMANDS |
| | 669 | ])#·_LT_CONFIG |
| | |
| | |
| | 670 | #·LT_SUPPORTED_TAG(TAG) |
| | 671 | #·--------------------- |
| | 672 | #·Trace·this·macro·to·discover·what·tags·are·supported·by·the·libtool |
| | 673 | #·--tag·option,·using: |
| | 674 | #····autoconf·--trace·'LT_SUPPORTED_TAG:$1' |
| | 675 | AC_DEFUN([LT_SUPPORTED_TAG],·[]) |
| | |
| | |
| | 676 | #·C·support·is·built-in·for·now |
| | 677 | m4_define([_LT_LANG_C_enabled],·[]) |
| | 678 | m4_define([_LT_TAGS],·[]) |
| | |
| | |
| | 679 | #·LT_LANG(LANG) |
| | 680 | #·------------- |
| | 681 | #·Enable·libtool·support·for·the·given·language·if·not·already·enabled. |
| | 682 | AC_DEFUN([LT_LANG], |
| | 683 | [AC_BEFORE([$0],·[LT_OUTPUT])dnl |
| | 684 | m4_case([$1], |
| | 685 | ··[C],» » » [_LT_LANG(C)], |
| | 686 | ··[C++],» » [_LT_LANG(CXX)], |
| | 687 | ··[Go],» » » [_LT_LANG(GO)], |
| | 688 | ··[Java],»»[_LT_LANG(GCJ)], |
| | 689 | ··[Fortran·77],» » [_LT_LANG(F77)], |
| | 690 | ··[Fortran],» » [_LT_LANG(FC)], |
| | 691 | ··[Windows·Resource],» [_LT_LANG(RC)], |
| | 692 | ··[m4_ifdef([_LT_LANG_]$1[_CONFIG], |
| | 693 | ····[_LT_LANG($1)], |
| | 694 | ····[m4_fatal([$0:·unsupported·language:·"$1"])])])dnl |
| | 695 | ])#·LT_LANG |
| | |
| | |
| | 696 | #·_LT_LANG(LANGNAME) |
| | 697 | #·------------------ |
| | 698 | m4_defun([_LT_LANG], |
| | 699 | [m4_ifdef([_LT_LANG_]$1[_enabled],·[], |
| | 700 | ··[LT_SUPPORTED_TAG([$1])dnl |
| | 701 | ··m4_append([_LT_TAGS],·[$1·])dnl |
| | 702 | ··m4_define([_LT_LANG_]$1[_enabled],·[])dnl |
| | 703 | ··_LT_LANG_$1_CONFIG($1)])dnl |
| | 704 | ])#·_LT_LANG |
| | |
| | |
| | 705 | m4_ifndef([AC_PROG_GO],·[ |
| | 706 | ############################################################ |
| | 707 | #·NOTE:·This·macro·has·been·submitted·for·inclusion·into···# |
| | 708 | #··GNU·Autoconf·as·AC_PROG_GO.··When·it·is·available·in····# |
| | 709 | #··a·released·version·of·Autoconf·we·should·remove·this····# |
| | 710 | #··macro·and·use·it·instead.·······························# |
| | 711 | ############################################################ |
| | 712 | m4_defun([AC_PROG_GO], |
| | 713 | [AC_LANG_PUSH(Go)dnl |
| | 714 | AC_ARG_VAR([GOC],·····[Go·compiler·command])dnl |
| | 715 | AC_ARG_VAR([GOFLAGS],·[Go·compiler·flags])dnl |
| | 716 | _AC_ARG_VAR_LDFLAGS()dnl |
| | 717 | AC_CHECK_TOOL(GOC,·gccgo) |
| | 718 | if·test·-z·"$GOC";·then |
| | 719 | ··if·test·-n·"$ac_tool_prefix";·then |
| | 720 | ····AC_CHECK_PROG(GOC,·[${ac_tool_prefix}gccgo],·[${ac_tool_prefix}gccgo]) |
| | 721 | ··fi |
| | 722 | fi |
| | 723 | if·test·-z·"$GOC";·then |
| | 724 | ··AC_CHECK_PROG(GOC,·gccgo,·gccgo,·false) |
| | 725 | fi |
| | 726 | ])#m4_defun |
| | 727 | ])#m4_ifndef |
| | |
| | |
| | 728 | #·_LT_LANG_DEFAULT_CONFIG |
| | 729 | #·----------------------- |
| | 730 | m4_defun([_LT_LANG_DEFAULT_CONFIG], |
| | 731 | [AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| | 732 | ··[LT_LANG(CXX)], |
| | 733 | ··[m4_define([AC_PROG_CXX],·defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
| | |
| | 734 | AC_PROVIDE_IFELSE([AC_PROG_F77], |
| | 735 | ··[LT_LANG(F77)], |
| | 736 | ··[m4_define([AC_PROG_F77],·defn([AC_PROG_F77])[LT_LANG(F77)])]) |
| | |
| | 737 | AC_PROVIDE_IFELSE([AC_PROG_FC], |
| | 738 | ··[LT_LANG(FC)], |
| | 739 | ··[m4_define([AC_PROG_FC],·defn([AC_PROG_FC])[LT_LANG(FC)])]) |
| | |
| | 740 | dnl·The·call·to·[A][M_PROG_GCJ]·is·quoted·like·that·to·stop·aclocal |
| | 741 | dnl·pulling·things·in·needlessly. |
| | 742 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
| | 743 | ··[LT_LANG(GCJ)], |
| | 744 | ··[AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
| | 745 | ····[LT_LANG(GCJ)], |
| | 746 | ····[AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
| | 747 | ······[LT_LANG(GCJ)], |
| | 748 | ······[m4_ifdef([AC_PROG_GCJ], |
| | 749 | » [m4_define([AC_PROG_GCJ],·defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
| | 750 | ·······m4_ifdef([A][M_PROG_GCJ], |
| | 751 | » [m4_define([A][M_PROG_GCJ],·defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
| | 752 | ·······m4_ifdef([LT_PROG_GCJ], |
| | 753 | » [m4_define([LT_PROG_GCJ],·defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
| | |
| | 754 | AC_PROVIDE_IFELSE([AC_PROG_GO], |
| | 755 | ··[LT_LANG(GO)], |
| | 756 | ··[m4_define([AC_PROG_GO],·defn([AC_PROG_GO])[LT_LANG(GO)])]) |
| | |
| | 757 | AC_PROVIDE_IFELSE([LT_PROG_RC], |
| | 758 | ··[LT_LANG(RC)], |
| | 759 | ··[m4_define([LT_PROG_RC],·defn([LT_PROG_RC])[LT_LANG(RC)])]) |
| | 760 | ])#·_LT_LANG_DEFAULT_CONFIG |
| | |
| | 761 | #·Obsolete·macros: |
| | 762 | AU_DEFUN([AC_LIBTOOL_CXX],·[LT_LANG(C++)]) |
| | 763 | AU_DEFUN([AC_LIBTOOL_F77],·[LT_LANG(Fortran·77)]) |
| | 764 | AU_DEFUN([AC_LIBTOOL_FC],·[LT_LANG(Fortran)]) |
| | 765 | AU_DEFUN([AC_LIBTOOL_GCJ],·[LT_LANG(Java)]) |
| | 766 | AU_DEFUN([AC_LIBTOOL_RC],·[LT_LANG(Windows·Resource)]) |
| | 767 | dnl·aclocal-1.4·backwards·compatibility: |
| | 768 | dnl·AC_DEFUN([AC_LIBTOOL_CXX],·[]) |
| | 769 | dnl·AC_DEFUN([AC_LIBTOOL_F77],·[]) |
| | 770 | dnl·AC_DEFUN([AC_LIBTOOL_FC],·[]) |
| | 771 | dnl·AC_DEFUN([AC_LIBTOOL_GCJ],·[]) |
| | 772 | dnl·AC_DEFUN([AC_LIBTOOL_RC],·[]) |
| | |
| | |
| | 773 | #·_LT_TAG_COMPILER |
| | 774 | #·---------------- |
| | 775 | m4_defun([_LT_TAG_COMPILER], |
| | 776 | [AC_REQUIRE([AC_PROG_CC])dnl |
| | |
| | 777 | _LT_DECL([LTCC],·[CC],·[1],·[A·C·compiler])dnl |
| | 778 | _LT_DECL([LTCFLAGS],·[CFLAGS],·[1],·[LTCC·compiler·flags])dnl |
| | 779 | _LT_TAGDECL([CC],·[compiler],·[1],·[A·language·specific·compiler])dnl |
| | 780 | _LT_TAGDECL([with_gcc],·[GCC],·[0],·[Is·the·compiler·the·GNU·compiler?])dnl |
| | |
| | 781 | #·If·no·C·compiler·was·specified,·use·CC. |
| | 782 | LTCC=${LTCC-"$CC"} |
| | |
| | 783 | #·If·no·C·compiler·flags·were·specified,·use·CFLAGS. |
| | 784 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| | |
| | 785 | #·Allow·CC·to·be·a·program·name·with·arguments. |
| | 786 | compiler=$CC |
| | 787 | ])#·_LT_TAG_COMPILER |
| | |
| | |
| | 788 | #·_LT_COMPILER_BOILERPLATE |
| | 789 | #·------------------------ |
| | 790 | #·Check·for·compiler·boilerplate·output·or·warnings·with |
| | 791 | #·the·simple·compiler·test·code. |
| | 792 | m4_defun([_LT_COMPILER_BOILERPLATE], |
| | 793 | [m4_require([_LT_DECL_SED])dnl |
| | 794 | ac_outfile=conftest.$ac_objext |
| | 795 | echo·"$lt_simple_compile_test_code"·>conftest.$ac_ext |
| | 796 | eval·"$ac_compile"·2>&1·>/dev/null·|·$SED·'/^$/d;·/^·*+/d'·>conftest.err |
| | 797 | _lt_compiler_boilerplate=`cat·conftest.err` |
| | 798 | $RM·conftest* |
| | 799 | ])#·_LT_COMPILER_BOILERPLATE |
| | |
| | |
| | 800 | #·_LT_LINKER_BOILERPLATE |
| | 801 | #·---------------------- |
| | 802 | #·Check·for·linker·boilerplate·output·or·warnings·with |
| | 803 | #·the·simple·link·test·code. |
| | 804 | m4_defun([_LT_LINKER_BOILERPLATE], |
| | 805 | [m4_require([_LT_DECL_SED])dnl |
| | 806 | ac_outfile=conftest.$ac_objext |
| | 807 | echo·"$lt_simple_link_test_code"·>conftest.$ac_ext |
| | 808 | eval·"$ac_link"·2>&1·>/dev/null·|·$SED·'/^$/d;·/^·*+/d'·>conftest.err |
| | 809 | _lt_linker_boilerplate=`cat·conftest.err` |
| | 810 | $RM·-r·conftest* |
| | 811 | ])#·_LT_LINKER_BOILERPLATE |
| | |
| | 812 | #·_LT_REQUIRED_DARWIN_CHECKS |
| | 813 | #·------------------------- |
| | 814 | m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ |
| | 815 | ··case·$host_os·in |
| | 816 | ····rhapsody*·|·darwin*) |
| | 817 | ····AC_CHECK_TOOL([DSYMUTIL],·[dsymutil],·[:]) |
| | 818 | ····AC_CHECK_TOOL([NMEDIT],·[nmedit],·[:]) |
| | 819 | ····AC_CHECK_TOOL([LIPO],·[lipo],·[:]) |
| | 820 | ····AC_CHECK_TOOL([OTOOL],·[otool],·[:]) |
| | 821 | ····AC_CHECK_TOOL([OTOOL64],·[otool64],·[:]) |
| | 822 | ····_LT_DECL([],·[DSYMUTIL],·[1], |
| | 823 | ······[Tool·to·manipulate·archived·DWARF·debug·symbol·files·on·Mac·OS·X]) |
| | 824 | ····_LT_DECL([],·[NMEDIT],·[1], |
| | 825 | ······[Tool·to·change·global·to·local·symbols·on·Mac·OS·X]) |
| | 826 | ····_LT_DECL([],·[LIPO],·[1], |
| | 827 | ······[Tool·to·manipulate·fat·objects·and·archives·on·Mac·OS·X]) |
| | 828 | ····_LT_DECL([],·[OTOOL],·[1], |
| | 829 | ······[ldd/readelf·like·tool·for·Mach-O·binaries·on·Mac·OS·X]) |
| | 830 | ····_LT_DECL([],·[OTOOL64],·[1], |
| | 831 | ······[ldd/readelf·like·tool·for·64·bit·Mach-O·binaries·on·Mac·OS·X·10.4]) |
| | |
| | 832 | ····AC_CACHE_CHECK([for·-single_module·linker·flag],[lt_cv_apple_cc_single_mod], |
| | 833 | ······[lt_cv_apple_cc_single_mod=no |
| | 834 | ······if·test·-z·"$LT_MULTI_MODULE";·then |
| | 835 | » #·By·default·we·will·add·the·-single_module·flag.·You·can·override |
| | 836 | » #·by·either·setting·the·environment·variable·LT_MULTI_MODULE |
| | 837 | » #·non-empty·at·configure·time,·or·by·adding·-multi_module·to·the |
| | 838 | » #·link·flags. |
| | 839 | » rm·-rf·libconftest.dylib* |
| | 840 | » echo·"int·foo(void){return·1;}"·>·conftest.c |
| | 841 | » echo·"$LTCC·$LTCFLAGS·$LDFLAGS·-o·libconftest.dylib·\ |
| | 842 | -dynamiclib·-Wl,-single_module·conftest.c"·>&AS_MESSAGE_LOG_FD |
| | 843 | » $LTCC·$LTCFLAGS·$LDFLAGS·-o·libconftest.dylib·\ |
| | 844 | » ··-dynamiclib·-Wl,-single_module·conftest.c·2>conftest.err |
| | 845 | ········_lt_result=$? |
| | 846 | » #·If·there·is·a·non-empty·error·log,·and·"single_module" |
| | 847 | » #·appears·in·it,·assume·the·flag·caused·a·linker·warning |
| | 848 | ········if·test·-s·conftest.err·&&·$GREP·single_module·conftest.err;·then |
| | 849 | » ··cat·conftest.err·>&AS_MESSAGE_LOG_FD |
| | 850 | » #·Otherwise,·if·the·output·was·created·with·a·0·exit·code·from |
| | 851 | » #·the·compiler,·it·worked. |
| | 852 | » elif·test·-f·libconftest.dylib·&&·test·0·=·"$_lt_result";·then |
| | 853 | » ··lt_cv_apple_cc_single_mod=yes |
| | 854 | » else |
| | 855 | » ··cat·conftest.err·>&AS_MESSAGE_LOG_FD |
| | 856 | » fi |
| | 857 | » rm·-rf·libconftest.dylib* |
|
Max diff block lines reached; -1/315387 bytes (-0.00%) of diff not shown.
|