OLD | NEW |
1 # generated automatically by aclocal 1.9.2 -*- Autoconf -*- | 1 # generated automatically by aclocal 1.10.1 -*- Autoconf -*- |
2 | 2 |
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 | 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
4 # Free Software Foundation, Inc. | 4 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
5 # This file is free software; the Free Software Foundation | 5 # This file is free software; the Free Software Foundation |
6 # gives unlimited permission to copy and/or distribute it, | 6 # gives unlimited permission to copy and/or distribute it, |
7 # with or without modifications, as long as this notice is preserved. | 7 # with or without modifications, as long as this notice is preserved. |
8 | 8 |
9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | 10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
12 # PARTICULAR PURPOSE. | 12 # PARTICULAR PURPOSE. |
13 | 13 |
| 14 m4_ifndef([AC_AUTOCONF_VERSION], |
| 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| 16 m4_if(AC_AUTOCONF_VERSION, [2.61],, |
| 17 [m4_warning([this file was generated for autoconf 2.61. |
| 18 You have another version of autoconf. It may work, but is not guaranteed to. |
| 19 If you have problems, you may need to regenerate the build system entirely. |
| 20 To do so, use the procedure documented by the package, typically `autoreconf'.])
]) |
| 21 |
14 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 22 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
15 | 23 |
16 # serial 47 AC_PROG_LIBTOOL | 24 # serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL |
17 | 25 |
18 | 26 |
19 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | 27 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
20 # ----------------------------------------------------------- | 28 # ----------------------------------------------------------- |
21 # If this macro is not defined by Autoconf, define it here. | 29 # If this macro is not defined by Autoconf, define it here. |
22 m4_ifdef([AC_PROVIDE_IFELSE], | 30 m4_ifdef([AC_PROVIDE_IFELSE], |
23 [], | 31 [], |
24 [m4_define([AC_PROVIDE_IFELSE], | 32 [m4_define([AC_PROVIDE_IFELSE], |
25 [m4_ifdef([AC_PROVIDE_$1], | 33 [m4_ifdef([AC_PROVIDE_$1], |
26 [$2], [$3])])]) | 34 [$2], [$3])])]) |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 AC_REQUIRE([AC_PROG_LD])dnl | 102 AC_REQUIRE([AC_PROG_LD])dnl |
95 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl | 103 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
96 AC_REQUIRE([AC_PROG_NM])dnl | 104 AC_REQUIRE([AC_PROG_NM])dnl |
97 | 105 |
98 AC_REQUIRE([AC_PROG_LN_S])dnl | 106 AC_REQUIRE([AC_PROG_LN_S])dnl |
99 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl | 107 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
100 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 108 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
101 AC_REQUIRE([AC_OBJEXT])dnl | 109 AC_REQUIRE([AC_OBJEXT])dnl |
102 AC_REQUIRE([AC_EXEEXT])dnl | 110 AC_REQUIRE([AC_EXEEXT])dnl |
103 dnl | 111 dnl |
104 | |
105 AC_LIBTOOL_SYS_MAX_CMD_LEN | 112 AC_LIBTOOL_SYS_MAX_CMD_LEN |
106 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | 113 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
107 AC_LIBTOOL_OBJDIR | 114 AC_LIBTOOL_OBJDIR |
108 | 115 |
109 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | 116 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
110 _LT_AC_PROG_ECHO_BACKSLASH | 117 _LT_AC_PROG_ECHO_BACKSLASH |
111 | 118 |
112 case $host_os in | 119 case $host_os in |
113 aix3*) | 120 aix3*) |
114 # AIX sometimes has problems with the GCC collect2 program. For some | 121 # AIX sometimes has problems with the GCC collect2 program. For some |
115 # reason, if we set the COLLECT_NAMES environment variable, the problems | 122 # reason, if we set the COLLECT_NAMES environment variable, the problems |
116 # vanish in a puff of smoke. | 123 # vanish in a puff of smoke. |
117 if test "X${COLLECT_NAMES+set}" != Xset; then | 124 if test "X${COLLECT_NAMES+set}" != Xset; then |
118 COLLECT_NAMES= | 125 COLLECT_NAMES= |
119 export COLLECT_NAMES | 126 export COLLECT_NAMES |
120 fi | 127 fi |
121 ;; | 128 ;; |
122 esac | 129 esac |
123 | 130 |
124 # Sed substitution that helps us do robust quoting. It backslashifies | 131 # Sed substitution that helps us do robust quoting. It backslashifies |
125 # metacharacters that are still active within double-quoted strings. | 132 # metacharacters that are still active within double-quoted strings. |
126 Xsed='sed -e s/^X//' | 133 Xsed='sed -e 1s/^X//' |
127 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | 134 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
128 | 135 |
129 # Same as above, but do not quote variable references. | 136 # Same as above, but do not quote variable references. |
130 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] | 137 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
131 | 138 |
132 # Sed substitution to delay expansion of an escaped shell variable in a | 139 # Sed substitution to delay expansion of an escaped shell variable in a |
133 # double_quote_subst'ed string. | 140 # double_quote_subst'ed string. |
134 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 141 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
135 | 142 |
136 # Sed substitution to avoid accidental globbing in evaled expressions | 143 # Sed substitution to avoid accidental globbing in evaled expressions |
137 no_glob_subst='s/\*/\\\*/g' | 144 no_glob_subst='s/\*/\\\*/g' |
138 | 145 |
139 # Constants: | 146 # Constants: |
140 rm="rm -f" | 147 rm="rm -f" |
141 | 148 |
142 # Global variables: | 149 # Global variables: |
143 default_ofile=libtool | 150 default_ofile=libtool |
144 can_build_shared=yes | 151 can_build_shared=yes |
145 | 152 |
146 # All known linkers require a `.a' archive for static linking (except M$VC, | 153 # All known linkers require a `.a' archive for static linking (except MSVC, |
147 # which needs '.lib'). | 154 # which needs '.lib'). |
148 libext=a | 155 libext=a |
149 ltmain="$ac_aux_dir/ltmain.sh" | 156 ltmain="$ac_aux_dir/ltmain.sh" |
150 ofile="$default_ofile" | 157 ofile="$default_ofile" |
151 with_gnu_ld="$lt_cv_prog_gnu_ld" | 158 with_gnu_ld="$lt_cv_prog_gnu_ld" |
152 | 159 |
153 AC_CHECK_TOOL(AR, ar, false) | 160 AC_CHECK_TOOL(AR, ar, false) |
154 AC_CHECK_TOOL(RANLIB, ranlib, :) | 161 AC_CHECK_TOOL(RANLIB, ranlib, :) |
155 AC_CHECK_TOOL(STRIP, strip, :) | 162 AC_CHECK_TOOL(STRIP, strip, :) |
156 | 163 |
157 old_CC="$CC" | 164 old_CC="$CC" |
158 old_CFLAGS="$CFLAGS" | 165 old_CFLAGS="$CFLAGS" |
159 | 166 |
160 # Set sane defaults for various variables | 167 # Set sane defaults for various variables |
161 test -z "$AR" && AR=ar | 168 test -z "$AR" && AR=ar |
162 test -z "$AR_FLAGS" && AR_FLAGS=cru | 169 test -z "$AR_FLAGS" && AR_FLAGS=cru |
163 test -z "$AS" && AS=as | 170 test -z "$AS" && AS=as |
164 test -z "$CC" && CC=cc | 171 test -z "$CC" && CC=cc |
165 test -z "$LTCC" && LTCC=$CC | 172 test -z "$LTCC" && LTCC=$CC |
| 173 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
166 test -z "$DLLTOOL" && DLLTOOL=dlltool | 174 test -z "$DLLTOOL" && DLLTOOL=dlltool |
167 test -z "$LD" && LD=ld | 175 test -z "$LD" && LD=ld |
168 test -z "$LN_S" && LN_S="ln -s" | 176 test -z "$LN_S" && LN_S="ln -s" |
169 test -z "$MAGIC_CMD" && MAGIC_CMD=file | 177 test -z "$MAGIC_CMD" && MAGIC_CMD=file |
170 test -z "$NM" && NM=nm | 178 test -z "$NM" && NM=nm |
171 test -z "$SED" && SED=sed | 179 test -z "$SED" && SED=sed |
172 test -z "$OBJDUMP" && OBJDUMP=objdump | 180 test -z "$OBJDUMP" && OBJDUMP=objdump |
173 test -z "$RANLIB" && RANLIB=: | 181 test -z "$RANLIB" && RANLIB=: |
174 test -z "$STRIP" && STRIP=: | 182 test -z "$STRIP" && STRIP=: |
175 test -z "$ac_objext" && ac_objext=o | 183 test -z "$ac_objext" && ac_objext=o |
176 | 184 |
177 # Determine commands to create old-style static archives. | 185 # Determine commands to create old-style static archives. |
178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 186 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
179 old_postinstall_cmds='chmod 644 $oldlib' | 187 old_postinstall_cmds='chmod 644 $oldlib' |
180 old_postuninstall_cmds= | 188 old_postuninstall_cmds= |
181 | 189 |
182 if test -n "$RANLIB"; then | 190 if test -n "$RANLIB"; then |
183 case $host_os in | 191 case $host_os in |
184 openbsd*) | 192 openbsd*) |
185 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
186 ;; | 194 ;; |
187 *) | 195 *) |
188 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
189 ;; | 197 ;; |
190 esac | 198 esac |
191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 199 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
192 fi | 200 fi |
193 | 201 |
| 202 _LT_CC_BASENAME([$compiler]) |
| 203 |
194 # Only perform the check for file, if the check method requires it | 204 # Only perform the check for file, if the check method requires it |
195 case $deplibs_check_method in | 205 case $deplibs_check_method in |
196 file_magic*) | 206 file_magic*) |
197 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
198 AC_PATH_MAGIC | 208 AC_PATH_MAGIC |
199 fi | 209 fi |
200 ;; | 210 ;; |
201 esac | 211 esac |
202 | 212 |
| 213 _LT_REQUIRED_DARWIN_CHECKS |
| 214 |
203 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) | 215 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
204 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | 216 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
205 enable_win32_dll=yes, enable_win32_dll=no) | 217 enable_win32_dll=yes, enable_win32_dll=no) |
206 | 218 |
207 AC_ARG_ENABLE([libtool-lock], | 219 AC_ARG_ENABLE([libtool-lock], |
208 [AC_HELP_STRING([--disable-libtool-lock], | 220 [AC_HELP_STRING([--disable-libtool-lock], |
209 [avoid locking (might break parallel builds)])]) | 221 [avoid locking (might break parallel builds)])]) |
210 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 222 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
211 | 223 |
212 AC_ARG_WITH([pic], | 224 AC_ARG_WITH([pic], |
(...skipping 11 matching lines...) Expand all Loading... |
224 | 236 |
225 | 237 |
226 # _LT_AC_SYS_COMPILER | 238 # _LT_AC_SYS_COMPILER |
227 # ------------------- | 239 # ------------------- |
228 AC_DEFUN([_LT_AC_SYS_COMPILER], | 240 AC_DEFUN([_LT_AC_SYS_COMPILER], |
229 [AC_REQUIRE([AC_PROG_CC])dnl | 241 [AC_REQUIRE([AC_PROG_CC])dnl |
230 | 242 |
231 # If no C compiler was specified, use CC. | 243 # If no C compiler was specified, use CC. |
232 LTCC=${LTCC-"$CC"} | 244 LTCC=${LTCC-"$CC"} |
233 | 245 |
| 246 # If no C compiler flags were specified, use CFLAGS. |
| 247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 248 |
234 # Allow CC to be a program name with arguments. | 249 # Allow CC to be a program name with arguments. |
235 compiler=$CC | 250 compiler=$CC |
236 ])# _LT_AC_SYS_COMPILER | 251 ])# _LT_AC_SYS_COMPILER |
237 | 252 |
238 | 253 |
| 254 # _LT_CC_BASENAME(CC) |
| 255 # ------------------- |
| 256 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 257 AC_DEFUN([_LT_CC_BASENAME], |
| 258 [for cc_temp in $1""; do |
| 259 case $cc_temp in |
| 260 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
| 261 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
| 262 \-*) ;; |
| 263 *) break;; |
| 264 esac |
| 265 done |
| 266 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 267 ]) |
| 268 |
| 269 |
| 270 # _LT_COMPILER_BOILERPLATE |
| 271 # ------------------------ |
| 272 # Check for compiler boilerplate output or warnings with |
| 273 # the simple compiler test code. |
| 274 AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
| 275 [AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 276 ac_outfile=conftest.$ac_objext |
| 277 echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 278 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 279 _lt_compiler_boilerplate=`cat conftest.err` |
| 280 $rm conftest* |
| 281 ])# _LT_COMPILER_BOILERPLATE |
| 282 |
| 283 |
| 284 # _LT_LINKER_BOILERPLATE |
| 285 # ---------------------- |
| 286 # Check for linker boilerplate output or warnings with |
| 287 # the simple link test code. |
| 288 AC_DEFUN([_LT_LINKER_BOILERPLATE], |
| 289 [AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 290 ac_outfile=conftest.$ac_objext |
| 291 echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 292 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 293 _lt_linker_boilerplate=`cat conftest.err` |
| 294 $rm -r conftest* |
| 295 ])# _LT_LINKER_BOILERPLATE |
| 296 |
| 297 # _LT_REQUIRED_DARWIN_CHECKS |
| 298 # -------------------------- |
| 299 # Check for some things on darwin |
| 300 AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ |
| 301 case $host_os in |
| 302 rhapsody* | darwin*) |
| 303 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
| 304 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
| 305 |
| 306 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
| 307 [lt_cv_apple_cc_single_mod=no |
| 308 if test -z "${LT_MULTI_MODULE}"; then |
| 309 # By default we will add the -single_module flag. You can override |
| 310 # by either setting the environment variable LT_MULTI_MODULE |
| 311 # non-empty at configure time, or by adding -multi_module to the |
| 312 # link flags. |
| 313 echo "int foo(void){return 1;}" > conftest.c |
| 314 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 315 -dynamiclib ${wl}-single_module conftest.c |
| 316 if test -f libconftest.dylib; then |
| 317 lt_cv_apple_cc_single_mod=yes |
| 318 rm -rf libconftest.dylib* |
| 319 fi |
| 320 rm conftest.c |
| 321 fi]) |
| 322 AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
| 323 [lt_cv_ld_exported_symbols_list], |
| 324 [lt_cv_ld_exported_symbols_list=no |
| 325 save_LDFLAGS=$LDFLAGS |
| 326 echo "_main" > conftest.sym |
| 327 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 328 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
| 329 [lt_cv_ld_exported_symbols_list=yes], |
| 330 [lt_cv_ld_exported_symbols_list=no]) |
| 331 LDFLAGS="$save_LDFLAGS" |
| 332 ]) |
| 333 case $host_os in |
| 334 rhapsody* | darwin1.[[0123]]) |
| 335 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 336 darwin1.*) |
| 337 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress
' ;; |
| 338 darwin*) |
| 339 # if running on 10.5 or later, the deployment target defaults |
| 340 # to the OS version, if on x86, and 10.4, the deployment |
| 341 # target defaults to 10.4. Don't you love it? |
| 342 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 343 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
| 344 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 345 10.[[012]]*) |
| 346 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress
' ;; |
| 347 10.*) |
| 348 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 349 esac |
| 350 ;; |
| 351 esac |
| 352 if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 353 _lt_dar_single_mod='$single_module' |
| 354 fi |
| 355 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 356 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname
}-symbols.expsym' |
| 357 else |
| 358 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsy
m \${lib}" |
| 359 fi |
| 360 if test "$DSYMUTIL" != ":"; then |
| 361 _lt_dsymutil="~$DSYMUTIL \$lib || :" |
| 362 else |
| 363 _lt_dsymutil= |
| 364 fi |
| 365 ;; |
| 366 esac |
| 367 ]) |
| 368 |
239 # _LT_AC_SYS_LIBPATH_AIX | 369 # _LT_AC_SYS_LIBPATH_AIX |
240 # ---------------------- | 370 # ---------------------- |
241 # Links a minimal program and checks the executable | 371 # Links a minimal program and checks the executable |
242 # for the system default hardcoded library path. In most cases, | 372 # for the system default hardcoded library path. In most cases, |
243 # this is /usr/lib:/lib, but when the MPI compilers are used | 373 # this is /usr/lib:/lib, but when the MPI compilers are used |
244 # the location of the communication and MPI libs are included too. | 374 # the location of the communication and MPI libs are included too. |
245 # If we don't find anything, use the default library path according | 375 # If we don't find anything, use the default library path according |
246 # to the aix ld manual. | 376 # to the aix ld manual. |
247 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], | 377 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
248 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | 378 [AC_REQUIRE([LT_AC_PROG_SED])dnl |
249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File S
trings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | 379 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
250 }'` | 380 lt_aix_libpath_sed=' |
| 381 /Import File Strings/,/^$/ { |
| 382 » /^0/ { |
| 383 » s/^0 *\(.*\)$/\1/ |
| 384 » p |
| 385 » } |
| 386 }' |
| 387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat
h_sed"` |
251 # Check for a 64-bit object if we didn't find anything. | 388 # Check for a 64-bit object if we didn't find anything. |
252 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/de
v/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p;
} | 389 if test -z "$aix_libpath"; then |
253 }'`; fi],[]) | 390 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l
ibpath_sed"` |
| 391 fi],[]) |
254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
255 ])# _LT_AC_SYS_LIBPATH_AIX | 393 ])# _LT_AC_SYS_LIBPATH_AIX |
256 | 394 |
257 | 395 |
258 # _LT_AC_SHELL_INIT(ARG) | 396 # _LT_AC_SHELL_INIT(ARG) |
259 # ---------------------- | 397 # ---------------------- |
260 AC_DEFUN([_LT_AC_SHELL_INIT], | 398 AC_DEFUN([_LT_AC_SHELL_INIT], |
261 [ifdef([AC_DIVERSION_NOTICE], | 399 [ifdef([AC_DIVERSION_NOTICE], |
262 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | 400 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
263 [AC_DIVERT_PUSH(NOTICE)]) | 401 [AC_DIVERT_PUSH(NOTICE)]) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 # used as fallback echo | 439 # used as fallback echo |
302 shift | 440 shift |
303 cat <<EOF | 441 cat <<EOF |
304 [$]* | 442 [$]* |
305 EOF | 443 EOF |
306 exit 0 | 444 exit 0 |
307 fi | 445 fi |
308 | 446 |
309 # The HP-UX ksh and POSIX shell print the target directory to stdout | 447 # The HP-UX ksh and POSIX shell print the target directory to stdout |
310 # if CDPATH is set. | 448 # if CDPATH is set. |
311 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 449 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
312 | 450 |
313 if test -z "$ECHO"; then | 451 if test -z "$ECHO"; then |
314 if test "X${echo_test_string+set}" != Xset; then | 452 if test "X${echo_test_string+set}" != Xset; then |
315 # find a string as large as possible, as long as the shell can cope with it | 453 # find a string as large as possible, as long as the shell can cope with it |
316 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"'
'echo test'; do | 454 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"'
'echo test'; do |
317 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | 455 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
318 if (echo_test_string="`eval $cmd`") 2>/dev/null && | 456 if (echo_test_string=`eval $cmd`) 2>/dev/null && |
319 echo_test_string="`eval $cmd`" && | 457 echo_test_string=`eval $cmd` && |
320 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | 458 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
321 then | 459 then |
322 break | 460 break |
323 fi | 461 fi |
324 done | 462 done |
325 fi | 463 fi |
326 | 464 |
327 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 465 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
328 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 466 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
329 test "X$echo_testing_string" = "X$echo_test_string"; then | 467 test "X$echo_testing_string" = "X$echo_test_string"; then |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 ;; | 612 ;; |
475 *64-bit*) | 613 *64-bit*) |
476 LD="${LD-ld} -64" | 614 LD="${LD-ld} -64" |
477 ;; | 615 ;; |
478 esac | 616 esac |
479 fi | 617 fi |
480 fi | 618 fi |
481 rm -rf conftest* | 619 rm -rf conftest* |
482 ;; | 620 ;; |
483 | 621 |
484 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 622 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 623 s390*-*linux*|sparc*-*linux*) |
485 # Find out which ABI we are using. | 624 # Find out which ABI we are using. |
486 echo 'int i;' > conftest.$ac_ext | 625 echo 'int i;' > conftest.$ac_ext |
487 if AC_TRY_EVAL(ac_compile); then | 626 if AC_TRY_EVAL(ac_compile); then |
488 case "`/usr/bin/file conftest.o`" in | 627 case `/usr/bin/file conftest.o` in |
489 *32-bit*) | 628 *32-bit*) |
490 case $host in | 629 case $host in |
| 630 x86_64-*kfreebsd*-gnu) |
| 631 LD="${LD-ld} -m elf_i386_fbsd" |
| 632 ;; |
491 x86_64-*linux*) | 633 x86_64-*linux*) |
492 LD="${LD-ld} -m elf_i386" | 634 LD="${LD-ld} -m elf_i386" |
493 ;; | 635 ;; |
494 ppc64-*linux*|powerpc64-*linux*) | 636 ppc64-*linux*|powerpc64-*linux*) |
495 LD="${LD-ld} -m elf32ppclinux" | 637 LD="${LD-ld} -m elf32ppclinux" |
496 ;; | 638 ;; |
497 s390x-*linux*) | 639 s390x-*linux*) |
498 LD="${LD-ld} -m elf_s390" | 640 LD="${LD-ld} -m elf_s390" |
499 ;; | 641 ;; |
500 sparc64-*linux*) | 642 sparc64-*linux*) |
501 LD="${LD-ld} -m elf32_sparc" | 643 LD="${LD-ld} -m elf32_sparc" |
502 ;; | 644 ;; |
503 esac | 645 esac |
504 ;; | 646 ;; |
505 *64-bit*) | 647 *64-bit*) |
506 case $host in | 648 case $host in |
| 649 x86_64-*kfreebsd*-gnu) |
| 650 LD="${LD-ld} -m elf_x86_64_fbsd" |
| 651 ;; |
507 x86_64-*linux*) | 652 x86_64-*linux*) |
508 LD="${LD-ld} -m elf_x86_64" | 653 LD="${LD-ld} -m elf_x86_64" |
509 ;; | 654 ;; |
510 ppc*-*linux*|powerpc*-*linux*) | 655 ppc*-*linux*|powerpc*-*linux*) |
511 LD="${LD-ld} -m elf64ppc" | 656 LD="${LD-ld} -m elf64ppc" |
512 ;; | 657 ;; |
513 s390*-*linux*) | 658 s390*-*linux*) |
514 LD="${LD-ld} -m elf64_s390" | 659 LD="${LD-ld} -m elf64_s390" |
515 ;; | 660 ;; |
516 sparc*-*linux*) | 661 sparc*-*linux*) |
(...skipping 12 matching lines...) Expand all Loading... |
529 CFLAGS="$CFLAGS -belf" | 674 CFLAGS="$CFLAGS -belf" |
530 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | 675 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
531 [AC_LANG_PUSH(C) | 676 [AC_LANG_PUSH(C) |
532 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | 677 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
533 AC_LANG_POP]) | 678 AC_LANG_POP]) |
534 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 679 if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 680 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
536 CFLAGS="$SAVE_CFLAGS" | 681 CFLAGS="$SAVE_CFLAGS" |
537 fi | 682 fi |
538 ;; | 683 ;; |
| 684 sparc*-*solaris*) |
| 685 # Find out which ABI we are using. |
| 686 echo 'int i;' > conftest.$ac_ext |
| 687 if AC_TRY_EVAL(ac_compile); then |
| 688 case `/usr/bin/file conftest.o` in |
| 689 *64-bit*) |
| 690 case $lt_cv_prog_gnu_ld in |
| 691 yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 692 *) |
| 693 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 694 LD="${LD-ld} -64" |
| 695 fi |
| 696 ;; |
| 697 esac |
| 698 ;; |
| 699 esac |
| 700 fi |
| 701 rm -rf conftest* |
| 702 ;; |
| 703 |
539 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | 704 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
540 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) | 705 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
541 AC_CHECK_TOOL(DLLTOOL, dlltool, false) | 706 AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
542 AC_CHECK_TOOL(AS, as, false) | 707 AC_CHECK_TOOL(AS, as, false) |
543 AC_CHECK_TOOL(OBJDUMP, objdump, false) | 708 AC_CHECK_TOOL(OBJDUMP, objdump, false) |
544 ;; | 709 ;; |
545 ]) | 710 ]) |
546 esac | 711 esac |
547 | 712 |
548 need_locks="$enable_libtool_lock" | 713 need_locks="$enable_libtool_lock" |
549 | 714 |
550 ])# _LT_AC_LOCK | 715 ])# _LT_AC_LOCK |
551 | 716 |
552 | 717 |
553 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | 718 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
554 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | 719 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
555 # ---------------------------------------------------------------- | 720 # ---------------------------------------------------------------- |
556 # Check whether the given compiler option works | 721 # Check whether the given compiler option works |
557 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], | 722 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
558 [AC_REQUIRE([LT_AC_PROG_SED]) | 723 [AC_REQUIRE([LT_AC_PROG_SED]) |
559 AC_CACHE_CHECK([$1], [$2], | 724 AC_CACHE_CHECK([$1], [$2], |
560 [$2=no | 725 [$2=no |
561 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | 726 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
563 lt_compiler_flag="$3" | 728 lt_compiler_flag="$3" |
564 # Insert the option either (1) after the last *FLAGS variable, or | 729 # Insert the option either (1) after the last *FLAGS variable, or |
565 # (2) before a word containing "conftest.", or (3) at the end. | 730 # (2) before a word containing "conftest.", or (3) at the end. |
566 # Note that $ac_compile itself does not contain backslashes and begins | 731 # Note that $ac_compile itself does not contain backslashes and begins |
567 # with a dollar sign (not a hyphen), so the echo should work correctly. | 732 # with a dollar sign (not a hyphen), so the echo should work correctly. |
568 # The option is referenced via a variable to avoid confusing sed. | 733 # The option is referenced via a variable to avoid confusing sed. |
569 lt_compile=`echo "$ac_compile" | $SED \ | 734 lt_compile=`echo "$ac_compile" | $SED \ |
570 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
571 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 736 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
572 -e 's:$: $lt_compiler_flag:'` | 737 -e 's:$: $lt_compiler_flag:'` |
573 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 738 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
574 (eval "$lt_compile" 2>conftest.err) | 739 (eval "$lt_compile" 2>conftest.err) |
575 ac_status=$? | 740 ac_status=$? |
576 cat conftest.err >&AS_MESSAGE_LOG_FD | 741 cat conftest.err >&AS_MESSAGE_LOG_FD |
577 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 742 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
578 if (exit $ac_status) && test -s "$ac_outfile"; then | 743 if (exit $ac_status) && test -s "$ac_outfile"; then |
579 # The compiler can only warn and ignore the option if not recognized | 744 # The compiler can only warn and ignore the option if not recognized |
580 # So say no if there are warnings | 745 # So say no if there are warnings other than the usual output. |
581 if test ! -s conftest.err; then | 746 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n |
582 $2=yes | 749 $2=yes |
583 fi | 750 fi |
584 fi | 751 fi |
585 $rm conftest* | 752 $rm conftest* |
586 ]) | 753 ]) |
587 | 754 |
588 if test x"[$]$2" = xyes; then | 755 if test x"[$]$2" = xyes; then |
589 ifelse([$5], , :, [$5]) | 756 ifelse([$5], , :, [$5]) |
590 else | 757 else |
591 ifelse([$6], , :, [$6]) | 758 ifelse([$6], , :, [$6]) |
592 fi | 759 fi |
593 ])# AC_LIBTOOL_COMPILER_OPTION | 760 ])# AC_LIBTOOL_COMPILER_OPTION |
594 | 761 |
595 | 762 |
596 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | 763 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
597 # [ACTION-SUCCESS], [ACTION-FAILURE]) | 764 # [ACTION-SUCCESS], [ACTION-FAILURE]) |
598 # ------------------------------------------------------------ | 765 # ------------------------------------------------------------ |
599 # Check whether the given compiler option works | 766 # Check whether the given compiler option works |
600 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], | 767 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
601 [AC_CACHE_CHECK([$1], [$2], | 768 [AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 769 AC_CACHE_CHECK([$1], [$2], |
602 [$2=no | 770 [$2=no |
603 save_LDFLAGS="$LDFLAGS" | 771 save_LDFLAGS="$LDFLAGS" |
604 LDFLAGS="$LDFLAGS $3" | 772 LDFLAGS="$LDFLAGS $3" |
605 printf "$lt_simple_link_test_code" > conftest.$ac_ext | 773 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
606 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 774 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
607 # The compiler can only warn and ignore the option if not recognized | 775 # The linker can only warn and ignore the option if not recognized |
608 # So say no if there are warnings | 776 # So say no if there are warnings |
609 if test -s conftest.err; then | 777 if test -s conftest.err; then |
610 # Append any errors to the config.log. | 778 # Append any errors to the config.log. |
611 cat conftest.err 1>&AS_MESSAGE_LOG_FD | 779 cat conftest.err 1>&AS_MESSAGE_LOG_FD |
| 780 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 782 if diff conftest.exp conftest.er2 >/dev/null; then |
| 783 $2=yes |
| 784 fi |
612 else | 785 else |
613 $2=yes | 786 $2=yes |
614 fi | 787 fi |
615 fi | 788 fi |
616 $rm conftest* | 789 $rm -r conftest* |
617 LDFLAGS="$save_LDFLAGS" | 790 LDFLAGS="$save_LDFLAGS" |
618 ]) | 791 ]) |
619 | 792 |
620 if test x"[$]$2" = xyes; then | 793 if test x"[$]$2" = xyes; then |
621 ifelse([$4], , :, [$4]) | 794 ifelse([$4], , :, [$4]) |
622 else | 795 else |
623 ifelse([$5], , :, [$5]) | 796 ifelse([$5], , :, [$5]) |
624 fi | 797 fi |
625 ])# AC_LIBTOOL_LINKER_OPTION | 798 ])# AC_LIBTOOL_LINKER_OPTION |
626 | 799 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 # all of the supported platforms: 8192 (on NT/2K/XP). | 833 # all of the supported platforms: 8192 (on NT/2K/XP). |
661 lt_cv_sys_max_cmd_len=8192; | 834 lt_cv_sys_max_cmd_len=8192; |
662 ;; | 835 ;; |
663 | 836 |
664 amigaos*) | 837 amigaos*) |
665 # On AmigaOS with pdksh, this test takes hours, literally. | 838 # On AmigaOS with pdksh, this test takes hours, literally. |
666 # So we just punt and use a minimum line length of 8192. | 839 # So we just punt and use a minimum line length of 8192. |
667 lt_cv_sys_max_cmd_len=8192; | 840 lt_cv_sys_max_cmd_len=8192; |
668 ;; | 841 ;; |
669 | 842 |
670 *) | 843 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
671 # If test is not a shell built-in, we'll probably end up computing a | 844 # This has been around since 386BSD, at least. Likely further. |
672 # maximum length that is only half of the actual maximum length, but | 845 if test -x /sbin/sysctl; then |
673 # we can't tell. | 846 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
674 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/nul
l` \ | 847 elif test -x /usr/sbin/sysctl; then |
| 848 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 849 else |
| 850 lt_cv_sys_max_cmd_len=65536» # usable default for all BSDs |
| 851 fi |
| 852 # And add a safety zone |
| 853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 854 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 855 ;; |
| 856 |
| 857 interix*) |
| 858 # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 859 lt_cv_sys_max_cmd_len=196608 |
| 860 ;; |
| 861 |
| 862 osf*) |
| 863 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 864 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 865 # nice to cause kernel panics so lets avoid the loop below. |
| 866 # First set a reasonable default. |
| 867 lt_cv_sys_max_cmd_len=16384 |
| 868 # |
| 869 if test -x /sbin/sysconfig; then |
| 870 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 871 *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 872 esac |
| 873 fi |
| 874 ;; |
| 875 sco3.2v5*) |
| 876 lt_cv_sys_max_cmd_len=102400 |
| 877 ;; |
| 878 sysv5* | sco5v6* | sysv4.2uw2*) |
| 879 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 880 if test -n "$kargmax"; then |
| 881 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ » ]]//'` |
| 882 else |
| 883 lt_cv_sys_max_cmd_len=32768 |
| 884 fi |
| 885 ;; |
| 886 *) |
| 887 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 888 if test -n "$lt_cv_sys_max_cmd_len"; then |
| 889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 890 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 891 else |
| 892 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 893 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
675 = "XX$teststring") >/dev/null 2>&1 && | 894 = "XX$teststring") >/dev/null 2>&1 && |
676 » new_result=`expr "X$teststring" : ".*" 2>&1` && | 895 » new_result=`expr "X$teststring" : ".*" 2>&1` && |
677 » lt_cv_sys_max_cmd_len=$new_result && | 896 » lt_cv_sys_max_cmd_len=$new_result && |
678 » test $i != 17 # 1/2 MB should be enough | 897 » test $i != 17 # 1/2 MB should be enough |
679 do | 898 do |
680 i=`expr $i + 1` | 899 i=`expr $i + 1` |
681 teststring=$teststring$teststring | 900 teststring=$teststring$teststring |
682 done | 901 done |
683 teststring= | 902 teststring= |
684 # Add a significant safety factor because C++ compilers can tack on massive | 903 # Add a significant safety factor because C++ compilers can tack on massiv
e |
685 # amounts of additional arguments before passing them to the linker. | 904 # amounts of additional arguments before passing them to the linker. |
686 # It appears as though 1/2 is a usable value. | 905 # It appears as though 1/2 is a usable value. |
687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 907 fi |
688 ;; | 908 ;; |
689 esac | 909 esac |
690 ]) | 910 ]) |
691 if test -n $lt_cv_sys_max_cmd_len ; then | 911 if test -n $lt_cv_sys_max_cmd_len ; then |
692 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | 912 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
693 else | 913 else |
694 AC_MSG_RESULT(none) | 914 AC_MSG_RESULT(none) |
695 fi | 915 fi |
696 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN | 916 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
697 | 917 |
698 | 918 |
699 # _LT_AC_CHECK_DLFCN | 919 # _LT_AC_CHECK_DLFCN |
700 # -------------------- | 920 # ------------------ |
701 AC_DEFUN([_LT_AC_CHECK_DLFCN], | 921 AC_DEFUN([_LT_AC_CHECK_DLFCN], |
702 [AC_CHECK_HEADERS(dlfcn.h)dnl | 922 [AC_CHECK_HEADERS(dlfcn.h)dnl |
703 ])# _LT_AC_CHECK_DLFCN | 923 ])# _LT_AC_CHECK_DLFCN |
704 | 924 |
705 | 925 |
706 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | 926 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
707 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | 927 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
708 # ------------------------------------------------------------------ | 928 # --------------------------------------------------------------------- |
709 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | 929 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
710 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 930 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
711 if test "$cross_compiling" = yes; then : | 931 if test "$cross_compiling" = yes; then : |
712 [$4] | 932 [$4] |
713 else | 933 else |
714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 934 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
715 lt_status=$lt_dlunknown | 935 lt_status=$lt_dlunknown |
716 cat > conftest.$ac_ext <<EOF | 936 cat > conftest.$ac_ext <<EOF |
717 [#line __oline__ "configure" | 937 [#line __oline__ "configure" |
718 #include "confdefs.h" | 938 #include "confdefs.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 { | 984 { |
765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
766 int status = $lt_dlunknown; | 986 int status = $lt_dlunknown; |
767 | 987 |
768 if (self) | 988 if (self) |
769 { | 989 { |
770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | 990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
771 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 991 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
772 /* dlclose (self); */ | 992 /* dlclose (self); */ |
773 } | 993 } |
| 994 else |
| 995 puts (dlerror ()); |
774 | 996 |
775 exit (status); | 997 exit (status); |
776 }] | 998 }] |
777 EOF | 999 EOF |
778 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | 1000 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
779 (./conftest; exit; ) 2>/dev/null | 1001 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
780 lt_status=$? | 1002 lt_status=$? |
781 case x$lt_status in | 1003 case x$lt_status in |
782 x$lt_dlno_uscore) $1 ;; | 1004 x$lt_dlno_uscore) $1 ;; |
783 x$lt_dlneed_uscore) $2 ;; | 1005 x$lt_dlneed_uscore) $2 ;; |
784 x$lt_unknown|x*) $3 ;; | 1006 x$lt_dlunknown|x*) $3 ;; |
785 esac | 1007 esac |
786 else : | 1008 else : |
787 # compilation failed | 1009 # compilation failed |
788 $3 | 1010 $3 |
789 fi | 1011 fi |
790 fi | 1012 fi |
791 rm -fr conftest* | 1013 rm -fr conftest* |
792 ])# _LT_AC_TRY_DLOPEN_SELF | 1014 ])# _LT_AC_TRY_DLOPEN_SELF |
793 | 1015 |
794 | 1016 |
795 # AC_LIBTOOL_DLOPEN_SELF | 1017 # AC_LIBTOOL_DLOPEN_SELF |
796 # ------------------- | 1018 # ---------------------- |
797 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | 1019 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
798 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 1020 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
799 if test "x$enable_dlopen" != xyes; then | 1021 if test "x$enable_dlopen" != xyes; then |
800 enable_dlopen=unknown | 1022 enable_dlopen=unknown |
801 enable_dlopen_self=unknown | 1023 enable_dlopen_self=unknown |
802 enable_dlopen_self_static=unknown | 1024 enable_dlopen_self_static=unknown |
803 else | 1025 else |
804 lt_cv_dlopen=no | 1026 lt_cv_dlopen=no |
805 lt_cv_dlopen_libs= | 1027 lt_cv_dlopen_libs= |
806 | 1028 |
(...skipping 21 matching lines...) Expand all Loading... |
828 lt_cv_dlopen="dyld" | 1050 lt_cv_dlopen="dyld" |
829 lt_cv_dlopen_libs= | 1051 lt_cv_dlopen_libs= |
830 lt_cv_dlopen_self=yes | 1052 lt_cv_dlopen_self=yes |
831 ]) | 1053 ]) |
832 ;; | 1054 ;; |
833 | 1055 |
834 *) | 1056 *) |
835 AC_CHECK_FUNC([shl_load], | 1057 AC_CHECK_FUNC([shl_load], |
836 [lt_cv_dlopen="shl_load"], | 1058 [lt_cv_dlopen="shl_load"], |
837 [AC_CHECK_LIB([dld], [shl_load], | 1059 [AC_CHECK_LIB([dld], [shl_load], |
838 » [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], | 1060 » [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
839 [AC_CHECK_FUNC([dlopen], | 1061 [AC_CHECK_FUNC([dlopen], |
840 [lt_cv_dlopen="dlopen"], | 1062 [lt_cv_dlopen="dlopen"], |
841 [AC_CHECK_LIB([dl], [dlopen], | 1063 [AC_CHECK_LIB([dl], [dlopen], |
842 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | 1064 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
843 [AC_CHECK_LIB([svld], [dlopen], | 1065 [AC_CHECK_LIB([svld], [dlopen], |
844 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | 1066 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
845 [AC_CHECK_LIB([dld], [dld_link], | 1067 [AC_CHECK_LIB([dld], [dld_link], |
846 » » [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) | 1068 » » [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
847 ]) | 1069 ]) |
848 ]) | 1070 ]) |
849 ]) | 1071 ]) |
850 ]) | 1072 ]) |
851 ]) | 1073 ]) |
852 ;; | 1074 ;; |
853 esac | 1075 esac |
854 | 1076 |
855 if test "x$lt_cv_dlopen" != xno; then | 1077 if test "x$lt_cv_dlopen" != xno; then |
856 enable_dlopen=yes | 1078 enable_dlopen=yes |
857 else | 1079 else |
858 enable_dlopen=no | 1080 enable_dlopen=no |
859 fi | 1081 fi |
860 | 1082 |
861 case $lt_cv_dlopen in | 1083 case $lt_cv_dlopen in |
862 dlopen) | 1084 dlopen) |
863 save_CPPFLAGS="$CPPFLAGS" | 1085 save_CPPFLAGS="$CPPFLAGS" |
864 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 1086 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
865 | 1087 |
866 save_LDFLAGS="$LDFLAGS" | 1088 save_LDFLAGS="$LDFLAGS" |
867 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 1089 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
868 | 1090 |
869 save_LIBS="$LIBS" | 1091 save_LIBS="$LIBS" |
870 LIBS="$lt_cv_dlopen_libs $LIBS" | 1092 LIBS="$lt_cv_dlopen_libs $LIBS" |
871 | 1093 |
872 AC_CACHE_CHECK([whether a program can dlopen itself], | 1094 AC_CACHE_CHECK([whether a program can dlopen itself], |
873 lt_cv_dlopen_self, [dnl | 1095 lt_cv_dlopen_self, [dnl |
874 _LT_AC_TRY_DLOPEN_SELF( | 1096 _LT_AC_TRY_DLOPEN_SELF( |
875 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | 1097 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
876 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | 1098 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
877 ]) | 1099 ]) |
878 | 1100 |
879 if test "x$lt_cv_dlopen_self" = xyes; then | 1101 if test "x$lt_cv_dlopen_self" = xyes; then |
880 LDFLAGS="$LDFLAGS $link_static_flag" | 1102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\
" |
881 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | 1103 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
882 lt_cv_dlopen_self_static, [dnl | 1104 lt_cv_dlopen_self_static, [dnl |
883 _LT_AC_TRY_DLOPEN_SELF( | 1105 _LT_AC_TRY_DLOPEN_SELF( |
884 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | 1106 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
885 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | 1107 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
886 ]) | 1108 ]) |
887 fi | 1109 fi |
888 | 1110 |
889 CPPFLAGS="$save_CPPFLAGS" | 1111 CPPFLAGS="$save_CPPFLAGS" |
890 LDFLAGS="$save_LDFLAGS" | 1112 LDFLAGS="$save_LDFLAGS" |
(...skipping 11 matching lines...) Expand all Loading... |
902 *) enable_dlopen_self_static=unknown ;; | 1124 *) enable_dlopen_self_static=unknown ;; |
903 esac | 1125 esac |
904 fi | 1126 fi |
905 ])# AC_LIBTOOL_DLOPEN_SELF | 1127 ])# AC_LIBTOOL_DLOPEN_SELF |
906 | 1128 |
907 | 1129 |
908 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) | 1130 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
909 # --------------------------------- | 1131 # --------------------------------- |
910 # Check to see if options -c and -o are simultaneously supported by compiler | 1132 # Check to see if options -c and -o are simultaneously supported by compiler |
911 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], | 1133 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
912 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | 1134 [AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 1135 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
913 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | 1136 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
914 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | 1137 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
915 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | 1138 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
916 $rm -r conftest 2>/dev/null | 1139 $rm -r conftest 2>/dev/null |
917 mkdir conftest | 1140 mkdir conftest |
918 cd conftest | 1141 cd conftest |
919 mkdir out | 1142 mkdir out |
920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 1143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
921 | 1144 |
922 lt_compiler_flag="-o out/conftest2.$ac_objext" | 1145 lt_compiler_flag="-o out/conftest2.$ac_objext" |
923 # Insert the option either (1) after the last *FLAGS variable, or | 1146 # Insert the option either (1) after the last *FLAGS variable, or |
924 # (2) before a word containing "conftest.", or (3) at the end. | 1147 # (2) before a word containing "conftest.", or (3) at the end. |
925 # Note that $ac_compile itself does not contain backslashes and begins | 1148 # Note that $ac_compile itself does not contain backslashes and begins |
926 # with a dollar sign (not a hyphen), so the echo should work correctly. | 1149 # with a dollar sign (not a hyphen), so the echo should work correctly. |
927 lt_compile=`echo "$ac_compile" | $SED \ | 1150 lt_compile=`echo "$ac_compile" | $SED \ |
928 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 1151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
929 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 1152 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
930 -e 's:$: $lt_compiler_flag:'` | 1153 -e 's:$: $lt_compiler_flag:'` |
931 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 1154 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
932 (eval "$lt_compile" 2>out/conftest.err) | 1155 (eval "$lt_compile" 2>out/conftest.err) |
933 ac_status=$? | 1156 ac_status=$? |
934 cat out/conftest.err >&AS_MESSAGE_LOG_FD | 1157 cat out/conftest.err >&AS_MESSAGE_LOG_FD |
935 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 1158 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
936 if (exit $ac_status) && test -s out/conftest2.$ac_objext | 1159 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
937 then | 1160 then |
938 # The compiler can only warn and ignore the option if not recognized | 1161 # The compiler can only warn and ignore the option if not recognized |
939 # So say no if there are warnings | 1162 # So say no if there are warnings |
940 if test ! -s out/conftest.err; then | 1163 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 1164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 1165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then |
941 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 1166 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
942 fi | 1167 fi |
943 fi | 1168 fi |
944 chmod u+w . | 1169 chmod u+w . 2>&AS_MESSAGE_LOG_FD |
945 $rm conftest* | 1170 $rm conftest* |
946 # SGI C++ compiler will create directory out/ii_files/ for | 1171 # SGI C++ compiler will create directory out/ii_files/ for |
947 # template instantiation | 1172 # template instantiation |
948 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 1173 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
949 $rm out/* && rmdir out | 1174 $rm out/* && rmdir out |
950 cd .. | 1175 cd .. |
951 rmdir conftest | 1176 rmdir conftest |
952 $rm conftest* | 1177 $rm conftest* |
953 ]) | 1178 ]) |
954 ])# AC_LIBTOOL_PROG_CC_C_O | 1179 ])# AC_LIBTOOL_PROG_CC_C_O |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 ])# AC_LIBTOOL_OBJDIR | 1223 ])# AC_LIBTOOL_OBJDIR |
999 | 1224 |
1000 | 1225 |
1001 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) | 1226 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
1002 # ---------------------------------------------- | 1227 # ---------------------------------------------- |
1003 # Check hardcoding attributes. | 1228 # Check hardcoding attributes. |
1004 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], | 1229 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
1005 [AC_MSG_CHECKING([how to hardcode library paths into programs]) | 1230 [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
1006 _LT_AC_TAGVAR(hardcode_action, $1)= | 1231 _LT_AC_TAGVAR(hardcode_action, $1)= |
1007 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | 1232 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
1008 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ | 1233 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
1009 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then | 1234 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
1010 | 1235 |
1011 # We can hardcode non-existant directories. | 1236 # We can hardcode non-existant directories. |
1012 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | 1237 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
1013 # If the only mechanism to avoid hardcoding is shlibpath_var, we | 1238 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
1014 # have to relink, otherwise we might link with an installed library | 1239 # have to relink, otherwise we might link with an installed library |
1015 # when we should be linking with a yet-to-be-installed one | 1240 # when we should be linking with a yet-to-be-installed one |
1016 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && | 1241 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
1017 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then | 1242 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then |
1018 # Linking always hardcodes the temporary library directory. | 1243 # Linking always hardcodes the temporary library directory. |
1019 _LT_AC_TAGVAR(hardcode_action, $1)=relink | 1244 _LT_AC_TAGVAR(hardcode_action, $1)=relink |
(...skipping 28 matching lines...) Expand all Loading... |
1048 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 1273 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
1049 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 1274 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
1050 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 1275 test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
1051 AC_MSG_RESULT([yes]) | 1276 AC_MSG_RESULT([yes]) |
1052 else | 1277 else |
1053 # FIXME - insert some real tests, host_os isn't really good enough | 1278 # FIXME - insert some real tests, host_os isn't really good enough |
1054 case $host_os in | 1279 case $host_os in |
1055 darwin*) | 1280 darwin*) |
1056 if test -n "$STRIP" ; then | 1281 if test -n "$STRIP" ; then |
1057 striplib="$STRIP -x" | 1282 striplib="$STRIP -x" |
| 1283 old_striplib="$STRIP -S" |
1058 AC_MSG_RESULT([yes]) | 1284 AC_MSG_RESULT([yes]) |
1059 else | 1285 else |
1060 AC_MSG_RESULT([no]) | 1286 AC_MSG_RESULT([no]) |
1061 fi | 1287 fi |
1062 ;; | 1288 ;; |
1063 *) | 1289 *) |
1064 AC_MSG_RESULT([no]) | 1290 AC_MSG_RESULT([no]) |
1065 ;; | 1291 ;; |
1066 esac | 1292 esac |
1067 fi | 1293 fi |
1068 ])# AC_LIBTOOL_SYS_LIB_STRIP | 1294 ])# AC_LIBTOOL_SYS_LIB_STRIP |
1069 | 1295 |
1070 | 1296 |
1071 # AC_LIBTOOL_SYS_DYNAMIC_LINKER | 1297 # AC_LIBTOOL_SYS_DYNAMIC_LINKER |
1072 # ----------------------------- | 1298 # ----------------------------- |
1073 # PORTME Fill in your ld.so characteristics | 1299 # PORTME Fill in your ld.so characteristics |
1074 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], | 1300 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
1075 [AC_MSG_CHECKING([dynamic linker characteristics]) | 1301 [AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 1302 AC_MSG_CHECKING([dynamic linker characteristics]) |
1076 library_names_spec= | 1303 library_names_spec= |
1077 libname_spec='lib$name' | 1304 libname_spec='lib$name' |
1078 soname_spec= | 1305 soname_spec= |
1079 shrext_cmds=".so" | 1306 shrext_cmds=".so" |
1080 postinstall_cmds= | 1307 postinstall_cmds= |
1081 postuninstall_cmds= | 1308 postuninstall_cmds= |
1082 finish_cmds= | 1309 finish_cmds= |
1083 finish_eval= | 1310 finish_eval= |
1084 shlibpath_var= | 1311 shlibpath_var= |
1085 shlibpath_overrides_runpath=unknown | 1312 shlibpath_overrides_runpath=unknown |
1086 version_type=none | 1313 version_type=none |
1087 dynamic_linker="$host_os ld.so" | 1314 dynamic_linker="$host_os ld.so" |
1088 sys_lib_dlsearch_path_spec="/lib /usr/lib" | 1315 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 1316 m4_if($1,[],[ |
1089 if test "$GCC" = yes; then | 1317 if test "$GCC" = yes; then |
1090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -
e "s/^libraries://" -e "s,=/,/,g"` | 1318 case $host_os in |
1091 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 1319 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 1320 *) lt_awk_arg="/^libraries:/" ;; |
| 1321 esac |
| 1322 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li
braries://" -e "s,=/,/,g"` |
| 1323 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
1092 # if the path contains ";" then we assume it to be the separator | 1324 # if the path contains ";" then we assume it to be the separator |
1093 # otherwise default to the standard path separator (i.e. ":") - it is | 1325 # otherwise default to the standard path separator (i.e. ":") - it is |
1094 # assumed that no part of a normal pathname contains ";" but that should | 1326 # assumed that no part of a normal pathname contains ";" but that should |
1095 # okay in the real world where ";" in dirpaths is itself problematic. | 1327 # okay in the real world where ";" in dirpaths is itself problematic. |
1096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /
g'` | 1328 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
1097 else | 1329 else |
1098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PA
TH_SEPARATOR/ /g"` | 1330 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARAT
OR/ /g"` |
1099 fi | 1331 fi |
| 1332 # Ok, now we have the path, separated by spaces, we can step through it |
| 1333 # and add multilib dir if necessary. |
| 1334 lt_tmp_lt_search_path_spec= |
| 1335 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/d
ev/null` |
| 1336 for lt_sys_path in $lt_search_path_spec; do |
| 1337 if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 1338 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_m
ulti_os_dir" |
| 1339 else |
| 1340 test -d "$lt_sys_path" && \ |
| 1341 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 1342 fi |
| 1343 done |
| 1344 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
| 1345 BEGIN {RS=" "; FS="/|\n";} { |
| 1346 lt_foo=""; |
| 1347 lt_count=0; |
| 1348 for (lt_i = NF; lt_i > 0; lt_i--) { |
| 1349 if ($lt_i != "" && $lt_i != ".") { |
| 1350 if ($lt_i == "..") { |
| 1351 lt_count++; |
| 1352 } else { |
| 1353 if (lt_count == 0) { |
| 1354 lt_foo="/" $lt_i lt_foo; |
| 1355 } else { |
| 1356 lt_count--; |
| 1357 } |
| 1358 } |
| 1359 } |
| 1360 } |
| 1361 if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
| 1362 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
| 1363 }'` |
| 1364 sys_lib_search_path_spec=`echo $lt_search_path_spec` |
1100 else | 1365 else |
1101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 1366 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
1102 fi | 1367 fi]) |
1103 need_lib_prefix=unknown | 1368 need_lib_prefix=unknown |
1104 hardcode_into_libs=no | 1369 hardcode_into_libs=no |
1105 | 1370 |
1106 # when you set need_version to no, make sure it does not cause -set_version | 1371 # when you set need_version to no, make sure it does not cause -set_version |
1107 # flags to be left without arguments | 1372 # flags to be left without arguments |
1108 need_version=unknown | 1373 need_version=unknown |
1109 | 1374 |
1110 case $host_os in | 1375 case $host_os in |
1111 aix3*) | 1376 aix3*) |
1112 version_type=linux | 1377 version_type=linux |
1113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 1378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
1114 shlibpath_var=LIBPATH | 1379 shlibpath_var=LIBPATH |
1115 | 1380 |
1116 # AIX 3 has no versioning support, so we append a major version to the name. | 1381 # AIX 3 has no versioning support, so we append a major version to the name. |
1117 soname_spec='${libname}${release}${shared_ext}$major' | 1382 soname_spec='${libname}${release}${shared_ext}$major' |
1118 ;; | 1383 ;; |
1119 | 1384 |
1120 aix4* | aix5*) | 1385 aix[[4-9]]*) |
1121 version_type=linux | 1386 version_type=linux |
1122 need_lib_prefix=no | 1387 need_lib_prefix=no |
1123 need_version=no | 1388 need_version=no |
1124 hardcode_into_libs=yes | 1389 hardcode_into_libs=yes |
1125 if test "$host_cpu" = ia64; then | 1390 if test "$host_cpu" = ia64; then |
1126 # AIX 5 supports IA64 | 1391 # AIX 5 supports IA64 |
1127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele
ase}${shared_ext}$versuffix $libname${shared_ext}' | 1392 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele
ase}${shared_ext}$versuffix $libname${shared_ext}' |
1128 shlibpath_var=LD_LIBRARY_PATH | 1393 shlibpath_var=LD_LIBRARY_PATH |
1129 else | 1394 else |
1130 # With GCC up to 2.95.x, collect2 would create an import file | 1395 # With GCC up to 2.95.x, collect2 would create an import file |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1166 # Create ${libname}_ixlibrary.a entries in /sys/libs. | 1431 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
1167 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ech
o "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/l
ibs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibra
ry.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 1432 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ech
o "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/l
ibs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibra
ry.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
1168 ;; | 1433 ;; |
1169 | 1434 |
1170 beos*) | 1435 beos*) |
1171 library_names_spec='${libname}${shared_ext}' | 1436 library_names_spec='${libname}${shared_ext}' |
1172 dynamic_linker="$host_os ld.so" | 1437 dynamic_linker="$host_os ld.so" |
1173 shlibpath_var=LIBRARY_PATH | 1438 shlibpath_var=LIBRARY_PATH |
1174 ;; | 1439 ;; |
1175 | 1440 |
1176 bsdi4*) | 1441 bsdi[[45]]*) |
1177 version_type=linux | 1442 version_type=linux |
1178 need_version=no | 1443 need_version=no |
1179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 1444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
1180 soname_spec='${libname}${release}${shared_ext}$major' | 1445 soname_spec='${libname}${release}${shared_ext}$major' |
1181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 1446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
1182 shlibpath_var=LD_LIBRARY_PATH | 1447 shlibpath_var=LD_LIBRARY_PATH |
1183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" | 1448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" |
1184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 1449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
1185 # the default ld.so.conf also contains /usr/contrib/lib and | 1450 # the default ld.so.conf also contains /usr/contrib/lib and |
1186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 1451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
1187 # libtool to hard-code these into programs | 1452 # libtool to hard-code these into programs |
1188 ;; | 1453 ;; |
1189 | 1454 |
1190 cygwin* | mingw* | pw32*) | 1455 cygwin* | mingw* | pw32*) |
1191 version_type=windows | 1456 version_type=windows |
1192 shrext_cmds=".dll" | 1457 shrext_cmds=".dll" |
1193 need_version=no | 1458 need_version=no |
1194 need_lib_prefix=no | 1459 need_lib_prefix=no |
1195 | 1460 |
1196 case $GCC,$host_os in | 1461 case $GCC,$host_os in |
1197 yes,cygwin* | yes,mingw* | yes,pw32*) | 1462 yes,cygwin* | yes,mingw* | yes,pw32*) |
1198 library_names_spec='$libname.dll.a' | 1463 library_names_spec='$libname.dll.a' |
1199 # DLL is installed to $(libdir)/../bin by postinstall_cmds | 1464 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
1200 postinstall_cmds='base_file=`basename \${file}`~ | 1465 postinstall_cmds='base_file=`basename \${file}`~ |
1201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''
`~ | 1466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''
`~ |
1202 dldir=$destdir/`dirname \$dlpath`~ | 1467 dldir=$destdir/`dirname \$dlpath`~ |
1203 test -d \$dldir || mkdir -p \$dldir~ | 1468 test -d \$dldir || mkdir -p \$dldir~ |
1204 $install_prog $dir/$dlname \$dldir/$dlname' | 1469 $install_prog $dir/$dlname \$dldir/$dlname~ |
| 1470 chmod a+x \$dldir/$dlname' |
1205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 1471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
1206 dlpath=$dir/\$dldll~ | 1472 dlpath=$dir/\$dldll~ |
1207 $rm \$dlpath' | 1473 $rm \$dlpath' |
1208 shlibpath_overrides_runpath=yes | 1474 shlibpath_overrides_runpath=yes |
1209 | 1475 |
1210 case $host_os in | 1476 case $host_os in |
1211 cygwin*) | 1477 cygwin*) |
1212 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 1478 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
1213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S
ED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 1479 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S
ED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
1214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 1480 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
1215 ;; | 1481 ;; |
1216 mingw*) | 1482 mingw*) |
1217 # MinGW DLLs use traditional 'lib' prefix | 1483 # MinGW DLLs use traditional 'lib' prefix |
1218 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffi
x}${shared_ext}' | 1484 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffi
x}${shared_ext}' |
1219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $S
ED -e "s/^libraries://" -e "s,=/,/,g"` | 1485 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $S
ED -e "s/^libraries://" -e "s,=/,/,g"` |
1220 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; the
n | 1486 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; the
n |
1221 # It is most probably a Windows format PATH printed by | 1487 # It is most probably a Windows format PATH printed by |
1222 # mingw gcc, but we are running on Cygwin. Gcc prints its search | 1488 # mingw gcc, but we are running on Cygwin. Gcc prints its search |
1223 # path with ; separators, and with drive letters. We can handle the | 1489 # path with ; separators, and with drive letters. We can handle the |
1224 # drive letters (cygwin fileutils understands them), so leave them, | 1490 # drive letters (cygwin fileutils understands them), so leave them, |
1225 # especially as we might pass files found there to a mingw objdump, | 1491 # especially as we might pass files found there to a mingw objdump, |
1226 # which wouldn't understand a cygwinified path. Ahh. | 1492 # which wouldn't understand a cygwinified path. Ahh. |
1227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/
;/ /g'` | 1493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/
;/ /g'` |
1228 else | 1494 else |
1229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g"` | 1495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g"` |
1230 fi | 1496 fi |
1231 ;; | 1497 ;; |
1232 pw32*) | 1498 pw32*) |
1233 # pw32 DLLs use 'pw' prefix rather than 'lib' | 1499 # pw32 DLLs use 'pw' prefix rather than 'lib' |
1234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release
} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 1500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release
} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
1235 ;; | 1501 ;; |
1236 esac | 1502 esac |
1237 ;; | 1503 ;; |
1238 | 1504 |
1239 *) | 1505 *) |
1240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${ver
suffix}${shared_ext} $libname.lib' | 1506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${ver
suffix}${shared_ext} $libname.lib' |
1241 ;; | 1507 ;; |
1242 esac | 1508 esac |
1243 dynamic_linker='Win32 ld.exe' | 1509 dynamic_linker='Win32 ld.exe' |
1244 # FIXME: first we should search . and the directory the executable is in | 1510 # FIXME: first we should search . and the directory the executable is in |
1245 shlibpath_var=PATH | 1511 shlibpath_var=PATH |
1246 ;; | 1512 ;; |
1247 | 1513 |
1248 darwin* | rhapsody*) | 1514 darwin* | rhapsody*) |
1249 dynamic_linker="$host_os dyld" | 1515 dynamic_linker="$host_os dyld" |
1250 version_type=darwin | 1516 version_type=darwin |
1251 need_lib_prefix=no | 1517 need_lib_prefix=no |
1252 need_version=no | 1518 need_version=no |
1253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${re
lease}${major}$shared_ext ${libname}$shared_ext' | 1519 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${re
lease}${major}$shared_ext ${libname}$shared_ext' |
1254 soname_spec='${libname}${release}${major}$shared_ext' | 1520 soname_spec='${libname}${release}${major}$shared_ext' |
1255 shlibpath_overrides_runpath=yes | 1521 shlibpath_overrides_runpath=yes |
1256 shlibpath_var=DYLD_LIBRARY_PATH | 1522 shlibpath_var=DYLD_LIBRARY_PATH |
1257 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 1523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
1258 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 1524 m4_if([$1], [],[ |
1259 if test "$GCC" = yes; then | 1525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
1260 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR"
| sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -
e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /us
r/lib /usr/local/lib,g"` | |
1261 else | |
1262 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
1263 fi | |
1264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 1526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
1265 ;; | 1527 ;; |
1266 | 1528 |
1267 dgux*) | 1529 dgux*) |
1268 version_type=linux | 1530 version_type=linux |
1269 need_lib_prefix=no | 1531 need_lib_prefix=no |
1270 need_version=no | 1532 need_version=no |
1271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname$shared_ext' | 1533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname$shared_ext' |
1272 soname_spec='${libname}${release}${shared_ext}$major' | 1534 soname_spec='${libname}${release}${shared_ext}$major' |
1273 shlibpath_var=LD_LIBRARY_PATH | 1535 shlibpath_var=LD_LIBRARY_PATH |
1274 ;; | 1536 ;; |
1275 | 1537 |
1276 freebsd1*) | 1538 freebsd1*) |
1277 dynamic_linker=no | 1539 dynamic_linker=no |
1278 ;; | 1540 ;; |
1279 | 1541 |
1280 kfreebsd*-gnu) | 1542 freebsd* | dragonfly*) |
1281 version_type=linux | 1543 # DragonFly does not have aout. When/if they implement a new |
1282 need_lib_prefix=no | 1544 # versioning mechanism, adjust this. |
1283 need_version=no | 1545 if test -x /usr/bin/objformat; then |
1284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | 1546 objformat=`/usr/bin/objformat` |
1285 soname_spec='${libname}${release}${shared_ext}$major' | 1547 else |
1286 shlibpath_var=LD_LIBRARY_PATH | 1548 case $host_os in |
1287 shlibpath_overrides_runpath=no | 1549 freebsd[[123]]*) objformat=aout ;; |
1288 hardcode_into_libs=yes | 1550 *) objformat=elf ;; |
1289 dynamic_linker='GNU ld.so' | 1551 esac |
1290 ;; | 1552 fi |
1291 | |
1292 freebsd*) | |
1293 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
1294 version_type=freebsd-$objformat | 1553 version_type=freebsd-$objformat |
1295 case $version_type in | 1554 case $version_type in |
1296 freebsd-elf*) | 1555 freebsd-elf*) |
1297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext} $libname${shared_ext}' | 1556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext} $libname${shared_ext}' |
1298 need_version=no | 1557 need_version=no |
1299 need_lib_prefix=no | 1558 need_lib_prefix=no |
1300 ;; | 1559 ;; |
1301 freebsd-*) | 1560 freebsd-*) |
1302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${
shared_ext}$versuffix' | 1561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${
shared_ext}$versuffix' |
1303 need_version=yes | 1562 need_version=yes |
1304 ;; | 1563 ;; |
1305 esac | 1564 esac |
1306 shlibpath_var=LD_LIBRARY_PATH | 1565 shlibpath_var=LD_LIBRARY_PATH |
1307 case $host_os in | 1566 case $host_os in |
1308 freebsd2*) | 1567 freebsd2*) |
1309 shlibpath_overrides_runpath=yes | 1568 shlibpath_overrides_runpath=yes |
1310 ;; | 1569 ;; |
1311 freebsd3.[01]* | freebsdelf3.[01]*) | 1570 freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
1312 shlibpath_overrides_runpath=yes | 1571 shlibpath_overrides_runpath=yes |
1313 hardcode_into_libs=yes | 1572 hardcode_into_libs=yes |
1314 ;; | 1573 ;; |
1315 *) # from 3.2 on | 1574 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
| 1575 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
1316 shlibpath_overrides_runpath=no | 1576 shlibpath_overrides_runpath=no |
1317 hardcode_into_libs=yes | 1577 hardcode_into_libs=yes |
1318 ;; | 1578 ;; |
| 1579 *) # from 4.6 on, and DragonFly |
| 1580 shlibpath_overrides_runpath=yes |
| 1581 hardcode_into_libs=yes |
| 1582 ;; |
1319 esac | 1583 esac |
1320 ;; | 1584 ;; |
1321 | 1585 |
1322 gnu*) | 1586 gnu*) |
1323 version_type=linux | 1587 version_type=linux |
1324 need_lib_prefix=no | 1588 need_lib_prefix=no |
1325 need_version=no | 1589 need_version=no |
1326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' | 1590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' |
1327 soname_spec='${libname}${release}${shared_ext}$major' | 1591 soname_spec='${libname}${release}${shared_ext}$major' |
1328 shlibpath_var=LD_LIBRARY_PATH | 1592 shlibpath_var=LD_LIBRARY_PATH |
1329 hardcode_into_libs=yes | 1593 hardcode_into_libs=yes |
1330 ;; | 1594 ;; |
1331 | 1595 |
1332 hpux9* | hpux10* | hpux11*) | 1596 hpux9* | hpux10* | hpux11*) |
1333 # Give a soname corresponding to the major version so that dld.sl refuses to | 1597 # Give a soname corresponding to the major version so that dld.sl refuses to |
1334 # link against other versions. | 1598 # link against other versions. |
1335 version_type=sunos | 1599 version_type=sunos |
1336 need_lib_prefix=no | 1600 need_lib_prefix=no |
1337 need_version=no | 1601 need_version=no |
1338 case "$host_cpu" in | 1602 case $host_cpu in |
1339 ia64*) | 1603 ia64*) |
1340 shrext_cmds='.so' | 1604 shrext_cmds='.so' |
1341 hardcode_into_libs=yes | 1605 hardcode_into_libs=yes |
1342 dynamic_linker="$host_os dld.so" | 1606 dynamic_linker="$host_os dld.so" |
1343 shlibpath_var=LD_LIBRARY_PATH | 1607 shlibpath_var=LD_LIBRARY_PATH |
1344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 1608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
1345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | 1609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
1346 soname_spec='${libname}${release}${shared_ext}$major' | 1610 soname_spec='${libname}${release}${shared_ext}$major' |
1347 if test "X$HPUX_IA64_MODE" = X32; then | 1611 if test "X$HPUX_IA64_MODE" = X32; then |
1348 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local
/lib" | 1612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local
/lib" |
(...skipping 19 matching lines...) Expand all Loading... |
1368 shlibpath_var=SHLIB_PATH | 1632 shlibpath_var=SHLIB_PATH |
1369 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 1633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
1370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | 1634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
1371 soname_spec='${libname}${release}${shared_ext}$major' | 1635 soname_spec='${libname}${release}${shared_ext}$major' |
1372 ;; | 1636 ;; |
1373 esac | 1637 esac |
1374 # HP-UX runs *really* slowly unless shared libraries are mode 555. | 1638 # HP-UX runs *really* slowly unless shared libraries are mode 555. |
1375 postinstall_cmds='chmod 555 $lib' | 1639 postinstall_cmds='chmod 555 $lib' |
1376 ;; | 1640 ;; |
1377 | 1641 |
| 1642 interix[[3-9]]*) |
| 1643 version_type=linux |
| 1644 need_lib_prefix=no |
| 1645 need_version=no |
| 1646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' |
| 1647 soname_spec='${libname}${release}${shared_ext}$major' |
| 1648 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 1649 shlibpath_var=LD_LIBRARY_PATH |
| 1650 shlibpath_overrides_runpath=no |
| 1651 hardcode_into_libs=yes |
| 1652 ;; |
| 1653 |
1378 irix5* | irix6* | nonstopux*) | 1654 irix5* | irix6* | nonstopux*) |
1379 case $host_os in | 1655 case $host_os in |
1380 nonstopux*) version_type=nonstopux ;; | 1656 nonstopux*) version_type=nonstopux ;; |
1381 *) | 1657 *) |
1382 if test "$lt_cv_prog_gnu_ld" = yes; then | 1658 if test "$lt_cv_prog_gnu_ld" = yes; then |
1383 version_type=linux | 1659 version_type=linux |
1384 else | 1660 else |
1385 version_type=irix | 1661 version_type=irix |
1386 fi ;; | 1662 fi ;; |
1387 esac | 1663 esac |
(...skipping 23 matching lines...) Expand all Loading... |
1411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 1687 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
1412 hardcode_into_libs=yes | 1688 hardcode_into_libs=yes |
1413 ;; | 1689 ;; |
1414 | 1690 |
1415 # No shared lib support for Linux oldld, aout, or coff. | 1691 # No shared lib support for Linux oldld, aout, or coff. |
1416 linux*oldld* | linux*aout* | linux*coff*) | 1692 linux*oldld* | linux*aout* | linux*coff*) |
1417 dynamic_linker=no | 1693 dynamic_linker=no |
1418 ;; | 1694 ;; |
1419 | 1695 |
1420 # This must be Linux ELF. | 1696 # This must be Linux ELF. |
1421 linux*) | 1697 linux* | k*bsd*-gnu) |
1422 version_type=linux | 1698 version_type=linux |
1423 need_lib_prefix=no | 1699 need_lib_prefix=no |
1424 need_version=no | 1700 need_version=no |
1425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 1701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
1426 soname_spec='${libname}${release}${shared_ext}$major' | 1702 soname_spec='${libname}${release}${shared_ext}$major' |
1427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 1703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
1428 shlibpath_var=LD_LIBRARY_PATH | 1704 shlibpath_var=LD_LIBRARY_PATH |
1429 shlibpath_overrides_runpath=no | 1705 shlibpath_overrides_runpath=no |
1430 # This implies no fast_install, which is unacceptable. | 1706 # This implies no fast_install, which is unacceptable. |
1431 # Some rework will be needed to allow for fast_install | 1707 # Some rework will be needed to allow for fast_install |
1432 # before this can be enabled. | 1708 # before this can be enabled. |
1433 hardcode_into_libs=yes | 1709 hardcode_into_libs=yes |
1434 | 1710 |
1435 # find out which ABI we are using | |
1436 libsuff= | |
1437 case "$host_cpu" in | |
1438 x86_64*|s390x*|powerpc64*) | |
1439 echo '[#]line __oline__ "configure"' > conftest.$ac_ext | |
1440 if AC_TRY_EVAL(ac_compile); then | |
1441 case `/usr/bin/file conftest.$ac_objext` in | |
1442 *64-bit*) | |
1443 libsuff=64 | |
1444 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/l
ib${libsuff}" | |
1445 ;; | |
1446 esac | |
1447 fi | |
1448 rm -rf conftest* | |
1449 ;; | |
1450 esac | |
1451 | |
1452 # Append ld.so.conf contents to the search path | 1711 # Append ld.so.conf contents to the search path |
1453 if test -f /etc/ld.so.conf; then | 1712 if test -f /etc/ld.so.conf; then |
1454 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.co
nf | tr '\n' ' '` | 1713 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null"
, \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf
| $SED -e 's/#.*//;/^[ »]*hwcap[ » ]/d;s/[:,» ]/ /g;s/=[^=]*$//;s/=[^=
]* / /g;/^$/d' | tr '\n' ' '` |
1455 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | 1714 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
1456 fi | 1715 fi |
1457 | 1716 |
1458 # We used to test for /lib/ld.so.1 and disable shared libraries on | 1717 # We used to test for /lib/ld.so.1 and disable shared libraries on |
1459 # powerpc, because MkLinux only supported shared libraries with the | 1718 # powerpc, because MkLinux only supported shared libraries with the |
1460 # GNU dynamic linker. Since this was broken with cross compilers, | 1719 # GNU dynamic linker. Since this was broken with cross compilers, |
1461 # most powerpc-linux boxes support dynamic linking these days and | 1720 # most powerpc-linux boxes support dynamic linking these days and |
1462 # people can always --disable-shared, the test was removed, and we | 1721 # people can always --disable-shared, the test was removed, and we |
1463 # assume the GNU/Linux dynamic linker is in use. | 1722 # assume the GNU/Linux dynamic linker is in use. |
1464 dynamic_linker='GNU/Linux ld.so' | 1723 dynamic_linker='GNU/Linux ld.so' |
1465 ;; | 1724 ;; |
1466 | 1725 |
1467 knetbsd*-gnu) | 1726 netbsdelf*-gnu) |
1468 version_type=linux | 1727 version_type=linux |
1469 need_lib_prefix=no | 1728 need_lib_prefix=no |
1470 need_version=no | 1729 need_version=no |
1471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | 1730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' |
1472 soname_spec='${libname}${release}${shared_ext}$major' | 1731 soname_spec='${libname}${release}${shared_ext}$major' |
1473 shlibpath_var=LD_LIBRARY_PATH | 1732 shlibpath_var=LD_LIBRARY_PATH |
1474 shlibpath_overrides_runpath=no | 1733 shlibpath_overrides_runpath=no |
1475 hardcode_into_libs=yes | 1734 hardcode_into_libs=yes |
1476 dynamic_linker='GNU ld.so' | 1735 dynamic_linker='NetBSD ld.elf_so' |
1477 ;; | 1736 ;; |
1478 | 1737 |
1479 netbsd*) | 1738 netbsd*) |
1480 version_type=sunos | 1739 version_type=sunos |
1481 need_lib_prefix=no | 1740 need_lib_prefix=no |
1482 need_version=no | 1741 need_version=no |
1483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 1742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
1484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
shared_ext}$versuffix' | 1743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
shared_ext}$versuffix' |
1485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 1744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
1486 dynamic_linker='NetBSD (a.out) ld.so' | 1745 dynamic_linker='NetBSD (a.out) ld.so' |
(...skipping 19 matching lines...) Expand all Loading... |
1506 need_lib_prefix=no | 1765 need_lib_prefix=no |
1507 need_version=no | 1766 need_version=no |
1508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 1767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
1509 soname_spec='${libname}${release}${shared_ext}$major' | 1768 soname_spec='${libname}${release}${shared_ext}$major' |
1510 shlibpath_var=LD_LIBRARY_PATH | 1769 shlibpath_var=LD_LIBRARY_PATH |
1511 shlibpath_overrides_runpath=yes | 1770 shlibpath_overrides_runpath=yes |
1512 ;; | 1771 ;; |
1513 | 1772 |
1514 openbsd*) | 1773 openbsd*) |
1515 version_type=sunos | 1774 version_type=sunos |
| 1775 sys_lib_dlsearch_path_spec="/usr/lib" |
1516 need_lib_prefix=no | 1776 need_lib_prefix=no |
1517 need_version=yes | 1777 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 1778 case $host_os in |
| 1779 openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 1780 *) need_version=no ;; |
| 1781 esac |
1518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | 1782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' |
1519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 1783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
1520 shlibpath_var=LD_LIBRARY_PATH | 1784 shlibpath_var=LD_LIBRARY_PATH |
1521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_
cpu" = "openbsd2.8-powerpc"; then | 1785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_
cpu" = "openbsd2.8-powerpc"; then |
1522 case $host_os in | 1786 case $host_os in |
1523 openbsd2.[[89]] | openbsd2.[[89]].*) | 1787 openbsd2.[[89]] | openbsd2.[[89]].*) |
1524 shlibpath_overrides_runpath=no | 1788 shlibpath_overrides_runpath=no |
1525 ;; | 1789 ;; |
1526 *) | 1790 *) |
1527 shlibpath_overrides_runpath=yes | 1791 shlibpath_overrides_runpath=yes |
(...skipping 17 matching lines...) Expand all Loading... |
1545 version_type=osf | 1809 version_type=osf |
1546 need_lib_prefix=no | 1810 need_lib_prefix=no |
1547 need_version=no | 1811 need_version=no |
1548 soname_spec='${libname}${release}${shared_ext}$major' | 1812 soname_spec='${libname}${release}${shared_ext}$major' |
1549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 1813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
1550 shlibpath_var=LD_LIBRARY_PATH | 1814 shlibpath_var=LD_LIBRARY_PATH |
1551 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" | 1815 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" |
1552 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 1816 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
1553 ;; | 1817 ;; |
1554 | 1818 |
1555 sco3.2v5*) | 1819 rdos*) |
1556 version_type=osf | 1820 dynamic_linker=no |
1557 soname_spec='${libname}${release}${shared_ext}$major' | |
1558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
1559 shlibpath_var=LD_LIBRARY_PATH | |
1560 ;; | 1821 ;; |
1561 | 1822 |
1562 solaris*) | 1823 solaris*) |
1563 version_type=linux | 1824 version_type=linux |
1564 need_lib_prefix=no | 1825 need_lib_prefix=no |
1565 need_version=no | 1826 need_version=no |
1566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 1827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
1567 soname_spec='${libname}${release}${shared_ext}$major' | 1828 soname_spec='${libname}${release}${shared_ext}$major' |
1568 shlibpath_var=LD_LIBRARY_PATH | 1829 shlibpath_var=LD_LIBRARY_PATH |
1569 shlibpath_overrides_runpath=yes | 1830 shlibpath_overrides_runpath=yes |
1570 hardcode_into_libs=yes | 1831 hardcode_into_libs=yes |
1571 # ldd complains unless libraries are executable | 1832 # ldd complains unless libraries are executable |
1572 postinstall_cmds='chmod +x $lib' | 1833 postinstall_cmds='chmod +x $lib' |
1573 ;; | 1834 ;; |
1574 | 1835 |
1575 sunos4*) | 1836 sunos4*) |
1576 version_type=sunos | 1837 version_type=sunos |
1577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | 1838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' |
1578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 1839 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
1579 shlibpath_var=LD_LIBRARY_PATH | 1840 shlibpath_var=LD_LIBRARY_PATH |
1580 shlibpath_overrides_runpath=yes | 1841 shlibpath_overrides_runpath=yes |
1581 if test "$with_gnu_ld" = yes; then | 1842 if test "$with_gnu_ld" = yes; then |
1582 need_lib_prefix=no | 1843 need_lib_prefix=no |
1583 fi | 1844 fi |
1584 need_version=yes | 1845 need_version=yes |
1585 ;; | 1846 ;; |
1586 | 1847 |
1587 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 1848 sysv4 | sysv4.3*) |
1588 version_type=linux | 1849 version_type=linux |
1589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 1850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
1590 soname_spec='${libname}${release}${shared_ext}$major' | 1851 soname_spec='${libname}${release}${shared_ext}$major' |
1591 shlibpath_var=LD_LIBRARY_PATH | 1852 shlibpath_var=LD_LIBRARY_PATH |
1592 case $host_vendor in | 1853 case $host_vendor in |
1593 sni) | 1854 sni) |
1594 shlibpath_overrides_runpath=no | 1855 shlibpath_overrides_runpath=no |
1595 need_lib_prefix=no | 1856 need_lib_prefix=no |
1596 export_dynamic_flag_spec='${wl}-Blargedynsym' | 1857 export_dynamic_flag_spec='${wl}-Blargedynsym' |
1597 runpath_var=LD_RUN_PATH | 1858 runpath_var=LD_RUN_PATH |
(...skipping 12 matching lines...) Expand all Loading... |
1610 | 1871 |
1611 sysv4*MP*) | 1872 sysv4*MP*) |
1612 if test -d /usr/nec ;then | 1873 if test -d /usr/nec ;then |
1613 version_type=linux | 1874 version_type=linux |
1614 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$
major $libname${shared_ext}' | 1875 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$
major $libname${shared_ext}' |
1615 soname_spec='$libname${shared_ext}.$major' | 1876 soname_spec='$libname${shared_ext}.$major' |
1616 shlibpath_var=LD_LIBRARY_PATH | 1877 shlibpath_var=LD_LIBRARY_PATH |
1617 fi | 1878 fi |
1618 ;; | 1879 ;; |
1619 | 1880 |
| 1881 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 1882 version_type=freebsd-elf |
| 1883 need_lib_prefix=no |
| 1884 need_version=no |
| 1885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext} $libname${shared_ext}' |
| 1886 soname_spec='${libname}${release}${shared_ext}$major' |
| 1887 shlibpath_var=LD_LIBRARY_PATH |
| 1888 hardcode_into_libs=yes |
| 1889 if test "$with_gnu_ld" = yes; then |
| 1890 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib
/lib' |
| 1891 shlibpath_overrides_runpath=no |
| 1892 else |
| 1893 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 1894 shlibpath_overrides_runpath=yes |
| 1895 case $host_os in |
| 1896 sco3.2v5*) |
| 1897 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 1898 ;; |
| 1899 esac |
| 1900 fi |
| 1901 sys_lib_dlsearch_path_spec='/usr/lib' |
| 1902 ;; |
| 1903 |
1620 uts4*) | 1904 uts4*) |
1621 version_type=linux | 1905 version_type=linux |
1622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 1906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
1623 soname_spec='${libname}${release}${shared_ext}$major' | 1907 soname_spec='${libname}${release}${shared_ext}$major' |
1624 shlibpath_var=LD_LIBRARY_PATH | 1908 shlibpath_var=LD_LIBRARY_PATH |
1625 ;; | 1909 ;; |
1626 | 1910 |
1627 *) | 1911 *) |
1628 dynamic_linker=no | 1912 dynamic_linker=no |
1629 ;; | 1913 ;; |
1630 esac | 1914 esac |
1631 AC_MSG_RESULT([$dynamic_linker]) | 1915 AC_MSG_RESULT([$dynamic_linker]) |
1632 test "$dynamic_linker" = no && can_build_shared=no | 1916 test "$dynamic_linker" = no && can_build_shared=no |
| 1917 |
| 1918 AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], |
| 1919 [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) |
| 1920 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 1921 AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], |
| 1922 [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) |
| 1923 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 1924 |
| 1925 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 1926 if test "$GCC" = yes; then |
| 1927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL
ER_PATH LIBRARY_PATH" |
| 1928 fi |
1633 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | 1929 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
1634 | 1930 |
1635 | 1931 |
1636 # _LT_AC_TAGCONFIG | 1932 # _LT_AC_TAGCONFIG |
1637 # ---------------- | 1933 # ---------------- |
1638 AC_DEFUN([_LT_AC_TAGCONFIG], | 1934 AC_DEFUN([_LT_AC_TAGCONFIG], |
1639 [AC_ARG_WITH([tags], | 1935 [AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 1936 AC_ARG_WITH([tags], |
1640 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], | 1937 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], |
1641 [include additional configurations @<:@automatic@:>@])], | 1938 [include additional configurations @<:@automatic@:>@])], |
1642 [tagnames="$withval"]) | 1939 [tagnames="$withval"]) |
1643 | 1940 |
1644 if test -f "$ltmain" && test -n "$tagnames"; then | 1941 if test -f "$ltmain" && test -n "$tagnames"; then |
1645 if test ! -f "${ofile}"; then | 1942 if test ! -f "${ofile}"; then |
1646 AC_MSG_WARN([output file `$ofile' does not exist]) | 1943 AC_MSG_WARN([output file `$ofile' does not exist]) |
1647 fi | 1944 fi |
1648 | 1945 |
1649 if test -z "$LTCC"; then | 1946 if test -z "$LTCC"; then |
1650 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | 1947 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
1651 if test -z "$LTCC"; then | 1948 if test -z "$LTCC"; then |
1652 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) | 1949 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
1653 else | 1950 else |
1654 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | 1951 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
1655 fi | 1952 fi |
1656 fi | 1953 fi |
| 1954 if test -z "$LTCFLAGS"; then |
| 1955 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 1956 fi |
1657 | 1957 |
1658 # Extract list of available tagged configurations in $ofile. | 1958 # Extract list of available tagged configurations in $ofile. |
1659 # Note that this assumes the entire list is on one line. | 1959 # Note that this assumes the entire list is on one line. |
1660 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags
=\(.*$\)/\1/' -e 's/\"//g'` | 1960 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags
=\(.*$\)/\1/' -e 's/\"//g'` |
1661 | 1961 |
1662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 1962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
1663 for tagname in $tagnames; do | 1963 for tagname in $tagnames; do |
1664 IFS="$lt_save_ifs" | 1964 IFS="$lt_save_ifs" |
1665 # Check whether tagname contains only valid characters | 1965 # Check whether tagname contains only valid characters |
1666 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefgh
ijklmnopqrstuvwxyz1234567890,/]]::g'` in | 1966 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefgh
ijklmnopqrstuvwxyz1234567890,/]]::g'` in |
1667 "") ;; | 1967 "") ;; |
1668 *) AC_MSG_ERROR([invalid tag name: $tagname]) | 1968 *) AC_MSG_ERROR([invalid tag name: $tagname]) |
1669 ;; | 1969 ;; |
1670 esac | 1970 esac |
1671 | 1971 |
1672 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/nul
l | 1972 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/nul
l |
1673 then | 1973 then |
1674 AC_MSG_ERROR([tag name \"$tagname\" already exists]) | 1974 AC_MSG_ERROR([tag name \"$tagname\" already exists]) |
1675 fi | 1975 fi |
1676 | 1976 |
1677 # Update the list of available tags. | 1977 # Update the list of available tags. |
1678 if test -n "$tagname"; then | 1978 if test -n "$tagname"; then |
1679 echo appending configuration tag \"$tagname\" to $ofile | 1979 echo appending configuration tag \"$tagname\" to $ofile |
1680 | 1980 |
1681 case $tagname in | 1981 case $tagname in |
1682 CXX) | 1982 CXX) |
1683 » if test -n "$CXX" && test "X$CXX" != "Xno"; then | 1983 » if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 1984 » ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 1985 » (test "X$CXX" != "Xg++"))) ; then |
1684 AC_LIBTOOL_LANG_CXX_CONFIG | 1986 AC_LIBTOOL_LANG_CXX_CONFIG |
1685 else | 1987 else |
1686 tagname="" | 1988 tagname="" |
1687 fi | 1989 fi |
1688 ;; | 1990 ;; |
1689 | 1991 |
1690 F77) | 1992 F77) |
1691 if test -n "$F77" && test "X$F77" != "Xno"; then | 1993 if test -n "$F77" && test "X$F77" != "Xno"; then |
1692 AC_LIBTOOL_LANG_F77_CONFIG | 1994 AC_LIBTOOL_LANG_F77_CONFIG |
1693 else | 1995 else |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1735 # AC_LIBTOOL_DLOPEN | 2037 # AC_LIBTOOL_DLOPEN |
1736 # ----------------- | 2038 # ----------------- |
1737 # enable checks for dlopen support | 2039 # enable checks for dlopen support |
1738 AC_DEFUN([AC_LIBTOOL_DLOPEN], | 2040 AC_DEFUN([AC_LIBTOOL_DLOPEN], |
1739 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) | 2041 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) |
1740 ])# AC_LIBTOOL_DLOPEN | 2042 ])# AC_LIBTOOL_DLOPEN |
1741 | 2043 |
1742 | 2044 |
1743 # AC_LIBTOOL_WIN32_DLL | 2045 # AC_LIBTOOL_WIN32_DLL |
1744 # -------------------- | 2046 # -------------------- |
1745 # declare package support for building win32 dll's | 2047 # declare package support for building win32 DLLs |
1746 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | 2048 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
1747 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | 2049 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
1748 ])# AC_LIBTOOL_WIN32_DLL | 2050 ])# AC_LIBTOOL_WIN32_DLL |
1749 | 2051 |
1750 | 2052 |
1751 # AC_ENABLE_SHARED([DEFAULT]) | 2053 # AC_ENABLE_SHARED([DEFAULT]) |
1752 # --------------------------- | 2054 # --------------------------- |
1753 # implement the --enable-shared flag | 2055 # implement the --enable-shared flag |
1754 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | 2056 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
1755 AC_DEFUN([AC_ENABLE_SHARED], | 2057 AC_DEFUN([AC_ENABLE_SHARED], |
(...skipping 17 matching lines...) Expand all Loading... |
1773 done | 2075 done |
1774 IFS="$lt_save_ifs" | 2076 IFS="$lt_save_ifs" |
1775 ;; | 2077 ;; |
1776 esac], | 2078 esac], |
1777 [enable_shared=]AC_ENABLE_SHARED_DEFAULT) | 2079 [enable_shared=]AC_ENABLE_SHARED_DEFAULT) |
1778 ])# AC_ENABLE_SHARED | 2080 ])# AC_ENABLE_SHARED |
1779 | 2081 |
1780 | 2082 |
1781 # AC_DISABLE_SHARED | 2083 # AC_DISABLE_SHARED |
1782 # ----------------- | 2084 # ----------------- |
1783 #- set the default shared flag to --disable-shared | 2085 # set the default shared flag to --disable-shared |
1784 AC_DEFUN([AC_DISABLE_SHARED], | 2086 AC_DEFUN([AC_DISABLE_SHARED], |
1785 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 2087 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
1786 AC_ENABLE_SHARED(no) | 2088 AC_ENABLE_SHARED(no) |
1787 ])# AC_DISABLE_SHARED | 2089 ])# AC_DISABLE_SHARED |
1788 | 2090 |
1789 | 2091 |
1790 # AC_ENABLE_STATIC([DEFAULT]) | 2092 # AC_ENABLE_STATIC([DEFAULT]) |
1791 # --------------------------- | 2093 # --------------------------- |
1792 # implement the --enable-static flag | 2094 # implement the --enable-static flag |
1793 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | 2095 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1885 then ac_cv_prog_egrep='grep -E' | 2187 then ac_cv_prog_egrep='grep -E' |
1886 else ac_cv_prog_egrep='egrep' | 2188 else ac_cv_prog_egrep='egrep' |
1887 fi]) | 2189 fi]) |
1888 EGREP=$ac_cv_prog_egrep | 2190 EGREP=$ac_cv_prog_egrep |
1889 AC_SUBST([EGREP]) | 2191 AC_SUBST([EGREP]) |
1890 ])]) | 2192 ])]) |
1891 | 2193 |
1892 | 2194 |
1893 # AC_PATH_TOOL_PREFIX | 2195 # AC_PATH_TOOL_PREFIX |
1894 # ------------------- | 2196 # ------------------- |
1895 # find a file program which can recognise shared library | 2197 # find a file program which can recognize shared library |
1896 AC_DEFUN([AC_PATH_TOOL_PREFIX], | 2198 AC_DEFUN([AC_PATH_TOOL_PREFIX], |
1897 [AC_REQUIRE([AC_PROG_EGREP])dnl | 2199 [AC_REQUIRE([AC_PROG_EGREP])dnl |
1898 AC_MSG_CHECKING([for $1]) | 2200 AC_MSG_CHECKING([for $1]) |
1899 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | 2201 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
1900 [case $MAGIC_CMD in | 2202 [case $MAGIC_CMD in |
1901 [[\\/*] | ?:[\\/]*]) | 2203 [[\\/*] | ?:[\\/]*]) |
1902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path
. | 2204 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path
. |
1903 ;; | 2205 ;; |
1904 *) | 2206 *) |
1905 lt_save_MAGIC_CMD="$MAGIC_CMD" | 2207 lt_save_MAGIC_CMD="$MAGIC_CMD" |
1906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 2208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
1907 dnl $ac_dummy forces splitting on constant user-supplied paths. | 2209 dnl $ac_dummy forces splitting on constant user-supplied paths. |
1908 dnl POSIX.2 word splitting is done only on the output of word expansions, | 2210 dnl POSIX.2 word splitting is done only on the output of word expansions, |
1909 dnl not every word. This closes a longstanding sh security hole. | 2211 dnl not every word. This closes a longstanding sh security hole. |
1910 ac_dummy="ifelse([$2], , $PATH, [$2])" | 2212 ac_dummy="ifelse([$2], , $PATH, [$2])" |
1911 for ac_dir in $ac_dummy; do | 2213 for ac_dir in $ac_dummy; do |
1912 IFS="$lt_save_ifs" | 2214 IFS="$lt_save_ifs" |
1913 test -z "$ac_dir" && ac_dir=. | 2215 test -z "$ac_dir" && ac_dir=. |
1914 if test -f $ac_dir/$1; then | 2216 if test -f $ac_dir/$1; then |
1915 lt_cv_path_MAGIC_CMD="$ac_dir/$1" | 2217 lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
1916 if test -n "$file_magic_test_file"; then | 2218 if test -n "$file_magic_test_file"; then |
1917 case $deplibs_check_method in | 2219 case $deplibs_check_method in |
1918 "file_magic "*) | 2220 "file_magic "*) |
1919 » file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\
)\"`" | 2221 » file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
1920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 2222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 2223 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
1922 $EGREP "$file_magic_regex" > /dev/null; then | 2224 $EGREP "$file_magic_regex" > /dev/null; then |
1923 : | 2225 : |
1924 else | 2226 else |
1925 cat <<EOF 1>&2 | 2227 cat <<EOF 1>&2 |
1926 | 2228 |
1927 *** Warning: the command libtool uses to detect shared libraries, | 2229 *** Warning: the command libtool uses to detect shared libraries, |
1928 *** $file_magic_cmd, produces output that libtool cannot recognize. | 2230 *** $file_magic_cmd, produces output that libtool cannot recognize. |
1929 *** The result is that libtool may fail to recognize shared libraries | 2231 *** The result is that libtool may fail to recognize shared libraries |
(...skipping 18 matching lines...) Expand all Loading... |
1948 if test -n "$MAGIC_CMD"; then | 2250 if test -n "$MAGIC_CMD"; then |
1949 AC_MSG_RESULT($MAGIC_CMD) | 2251 AC_MSG_RESULT($MAGIC_CMD) |
1950 else | 2252 else |
1951 AC_MSG_RESULT(no) | 2253 AC_MSG_RESULT(no) |
1952 fi | 2254 fi |
1953 ])# AC_PATH_TOOL_PREFIX | 2255 ])# AC_PATH_TOOL_PREFIX |
1954 | 2256 |
1955 | 2257 |
1956 # AC_PATH_MAGIC | 2258 # AC_PATH_MAGIC |
1957 # ------------- | 2259 # ------------- |
1958 # find a file program which can recognise a shared library | 2260 # find a file program which can recognize a shared library |
1959 AC_DEFUN([AC_PATH_MAGIC], | 2261 AC_DEFUN([AC_PATH_MAGIC], |
1960 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | 2262 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
1961 if test -z "$lt_cv_path_MAGIC_CMD"; then | 2263 if test -z "$lt_cv_path_MAGIC_CMD"; then |
1962 if test -n "$ac_tool_prefix"; then | 2264 if test -n "$ac_tool_prefix"; then |
1963 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | 2265 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
1964 else | 2266 else |
1965 MAGIC_CMD=: | 2267 MAGIC_CMD=: |
1966 fi | 2268 fi |
1967 fi | 2269 fi |
1968 ])# AC_PATH_MAGIC | 2270 ])# AC_PATH_MAGIC |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2019 fi | 2321 fi |
2020 AC_CACHE_VAL(lt_cv_path_LD, | 2322 AC_CACHE_VAL(lt_cv_path_LD, |
2021 [if test -z "$LD"; then | 2323 [if test -z "$LD"; then |
2022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 2324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2023 for ac_dir in $PATH; do | 2325 for ac_dir in $PATH; do |
2024 IFS="$lt_save_ifs" | 2326 IFS="$lt_save_ifs" |
2025 test -z "$ac_dir" && ac_dir=. | 2327 test -z "$ac_dir" && ac_dir=. |
2026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 2328 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
2027 lt_cv_path_LD="$ac_dir/$ac_prog" | 2329 lt_cv_path_LD="$ac_dir/$ac_prog" |
2028 # Check to see if the program is GNU ld. I'd rather use --version, | 2330 # Check to see if the program is GNU ld. I'd rather use --version, |
2029 # but apparently some GNU ld's only accept -v. | 2331 # but apparently some variants of GNU ld only accept -v. |
2030 # Break only if it was the GNU/non-GNU ld that we prefer. | 2332 # Break only if it was the GNU/non-GNU ld that we prefer. |
2031 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 2333 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
2032 *GNU* | *'with BFD'*) | 2334 *GNU* | *'with BFD'*) |
2033 test "$with_gnu_ld" != no && break | 2335 test "$with_gnu_ld" != no && break |
2034 ;; | 2336 ;; |
2035 *) | 2337 *) |
2036 test "$with_gnu_ld" != yes && break | 2338 test "$with_gnu_ld" != yes && break |
2037 ;; | 2339 ;; |
2038 esac | 2340 esac |
2039 fi | 2341 fi |
(...skipping 11 matching lines...) Expand all Loading... |
2051 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | 2353 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
2052 AC_PROG_LD_GNU | 2354 AC_PROG_LD_GNU |
2053 ])# AC_PROG_LD | 2355 ])# AC_PROG_LD |
2054 | 2356 |
2055 | 2357 |
2056 # AC_PROG_LD_GNU | 2358 # AC_PROG_LD_GNU |
2057 # -------------- | 2359 # -------------- |
2058 AC_DEFUN([AC_PROG_LD_GNU], | 2360 AC_DEFUN([AC_PROG_LD_GNU], |
2059 [AC_REQUIRE([AC_PROG_EGREP])dnl | 2361 [AC_REQUIRE([AC_PROG_EGREP])dnl |
2060 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | 2362 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
2061 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | 2363 [# I'd rather use --version here, but apparently some GNU lds only accept -v. |
2062 case `$LD -v 2>&1 </dev/null` in | 2364 case `$LD -v 2>&1 </dev/null` in |
2063 *GNU* | *'with BFD'*) | 2365 *GNU* | *'with BFD'*) |
2064 lt_cv_prog_gnu_ld=yes | 2366 lt_cv_prog_gnu_ld=yes |
2065 ;; | 2367 ;; |
2066 *) | 2368 *) |
2067 lt_cv_prog_gnu_ld=no | 2369 lt_cv_prog_gnu_ld=no |
2068 ;; | 2370 ;; |
2069 esac]) | 2371 esac]) |
2070 with_gnu_ld=$lt_cv_prog_gnu_ld | 2372 with_gnu_ld=$lt_cv_prog_gnu_ld |
2071 ])# AC_PROG_LD_GNU | 2373 ])# AC_PROG_LD_GNU |
2072 | 2374 |
2073 | 2375 |
2074 # AC_PROG_LD_RELOAD_FLAG | 2376 # AC_PROG_LD_RELOAD_FLAG |
2075 # ---------------------- | 2377 # ---------------------- |
2076 # find reload flag for linker | 2378 # find reload flag for linker |
2077 # -- PORTME Some linkers may need a different reload flag. | 2379 # -- PORTME Some linkers may need a different reload flag. |
2078 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], | 2380 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], |
2079 [AC_CACHE_CHECK([for $LD option to reload object files], | 2381 [AC_CACHE_CHECK([for $LD option to reload object files], |
2080 lt_cv_ld_reload_flag, | 2382 lt_cv_ld_reload_flag, |
2081 [lt_cv_ld_reload_flag='-r']) | 2383 [lt_cv_ld_reload_flag='-r']) |
2082 reload_flag=$lt_cv_ld_reload_flag | 2384 reload_flag=$lt_cv_ld_reload_flag |
2083 case $reload_flag in | 2385 case $reload_flag in |
2084 "" | " "*) ;; | 2386 "" | " "*) ;; |
2085 *) reload_flag=" $reload_flag" ;; | 2387 *) reload_flag=" $reload_flag" ;; |
2086 esac | 2388 esac |
2087 reload_cmds='$LD$reload_flag -o $output$reload_objs' | 2389 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 2390 case $host_os in |
| 2391 darwin*) |
| 2392 if test "$GCC" = yes; then |
| 2393 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 2394 else |
| 2395 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 2396 fi |
| 2397 ;; |
| 2398 esac |
2088 ])# AC_PROG_LD_RELOAD_FLAG | 2399 ])# AC_PROG_LD_RELOAD_FLAG |
2089 | 2400 |
2090 | 2401 |
2091 # AC_DEPLIBS_CHECK_METHOD | 2402 # AC_DEPLIBS_CHECK_METHOD |
2092 # ----------------------- | 2403 # ----------------------- |
2093 # how to check for library dependencies | 2404 # how to check for library dependencies |
2094 # -- PORTME fill in with the dynamic library characteristics | 2405 # -- PORTME fill in with the dynamic library characteristics |
2095 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], | 2406 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
2096 [AC_CACHE_CHECK([how to recognise dependent libraries], | 2407 [AC_CACHE_CHECK([how to recognize dependent libraries], |
2097 lt_cv_deplibs_check_method, | 2408 lt_cv_deplibs_check_method, |
2098 [lt_cv_file_magic_cmd='$MAGIC_CMD' | 2409 [lt_cv_file_magic_cmd='$MAGIC_CMD' |
2099 lt_cv_file_magic_test_file= | 2410 lt_cv_file_magic_test_file= |
2100 lt_cv_deplibs_check_method='unknown' | 2411 lt_cv_deplibs_check_method='unknown' |
2101 # Need to set the preceding variable on all platforms that support | 2412 # Need to set the preceding variable on all platforms that support |
2102 # interlibrary dependencies. | 2413 # interlibrary dependencies. |
2103 # 'none' -- dependencies not supported. | 2414 # 'none' -- dependencies not supported. |
2104 # `unknown' -- same as none, but documents that we really don't know. | 2415 # `unknown' -- same as none, but documents that we really don't know. |
2105 # 'pass_all' -- all dependencies passed with no checks. | 2416 # 'pass_all' -- all dependencies passed with no checks. |
2106 # 'test_compile' -- check by making test program. | 2417 # 'test_compile' -- check by making test program. |
2107 # 'file_magic [[regex]]' -- check by looking for files in library path | 2418 # 'file_magic [[regex]]' -- check by looking for files in library path |
2108 # which responds to the $file_magic_cmd with a given extended regex. | 2419 # which responds to the $file_magic_cmd with a given extended regex. |
2109 # If you have `file' or equivalent on your system and you're not sure | 2420 # If you have `file' or equivalent on your system and you're not sure |
2110 # whether `pass_all' will *always* work, you probably want this one. | 2421 # whether `pass_all' will *always* work, you probably want this one. |
2111 | 2422 |
2112 case $host_os in | 2423 case $host_os in |
2113 aix4* | aix5*) | 2424 aix[[4-9]]*) |
2114 lt_cv_deplibs_check_method=pass_all | 2425 lt_cv_deplibs_check_method=pass_all |
2115 ;; | 2426 ;; |
2116 | 2427 |
2117 beos*) | 2428 beos*) |
2118 lt_cv_deplibs_check_method=pass_all | 2429 lt_cv_deplibs_check_method=pass_all |
2119 ;; | 2430 ;; |
2120 | 2431 |
2121 bsdi4*) | 2432 bsdi[[45]]*) |
2122 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (share
d object|dynamic lib)' | 2433 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (share
d object|dynamic lib)' |
2123 lt_cv_file_magic_cmd='/usr/bin/file -L' | 2434 lt_cv_file_magic_cmd='/usr/bin/file -L' |
2124 lt_cv_file_magic_test_file=/shlib/libc.so | 2435 lt_cv_file_magic_test_file=/shlib/libc.so |
2125 ;; | 2436 ;; |
2126 | 2437 |
2127 cygwin*) | 2438 cygwin*) |
2128 # func_win32_libid is a shell function defined in ltmain.sh | 2439 # func_win32_libid is a shell function defined in ltmain.sh |
2129 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 2440 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
2130 lt_cv_file_magic_cmd='func_win32_libid' | 2441 lt_cv_file_magic_cmd='func_win32_libid' |
2131 ;; | 2442 ;; |
2132 | 2443 |
2133 mingw* | pw32*) | 2444 mingw* | pw32*) |
2134 # Base MSYS/MinGW do not provide the 'file' command needed by | 2445 # Base MSYS/MinGW do not provide the 'file' command needed by |
2135 # func_win32_libid shell function, so use a weaker test based on 'objdump'. | 2446 # func_win32_libid shell function, so use a weaker test based on 'objdump', |
2136 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i
386)?' | 2447 # unless we find 'file', for example because we are cross-compiling. |
2137 lt_cv_file_magic_cmd='$OBJDUMP -f' | 2448 if ( file / ) >/dev/null 2>&1; then |
| 2449 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 2450 lt_cv_file_magic_cmd='func_win32_libid' |
| 2451 else |
| 2452 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture:
i386)?' |
| 2453 lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 2454 fi |
2138 ;; | 2455 ;; |
2139 | 2456 |
2140 darwin* | rhapsody*) | 2457 darwin* | rhapsody*) |
2141 lt_cv_deplibs_check_method=pass_all | 2458 lt_cv_deplibs_check_method=pass_all |
2142 ;; | 2459 ;; |
2143 | 2460 |
2144 freebsd* | kfreebsd*-gnu) | 2461 freebsd* | dragonfly*) |
2145 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 2462 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2146 case $host_cpu in | 2463 case $host_cpu in |
2147 i*86 ) | 2464 i*86 ) |
2148 # Not sure whether the presence of OpenBSD here was a mistake. | 2465 # Not sure whether the presence of OpenBSD here was a mistake. |
2149 # Let's accept both of them until this is cleared up. | 2466 # Let's accept both of them until this is cleared up. |
2150 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compa
ct )?demand paged shared library' | 2467 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]
]86 (compact )?demand paged shared library' |
2151 lt_cv_file_magic_cmd=/usr/bin/file | 2468 lt_cv_file_magic_cmd=/usr/bin/file |
2152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 2469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
2153 ;; | 2470 ;; |
2154 esac | 2471 esac |
2155 else | 2472 else |
2156 lt_cv_deplibs_check_method=pass_all | 2473 lt_cv_deplibs_check_method=pass_all |
2157 fi | 2474 fi |
2158 ;; | 2475 ;; |
2159 | 2476 |
2160 gnu*) | 2477 gnu*) |
2161 lt_cv_deplibs_check_method=pass_all | 2478 lt_cv_deplibs_check_method=pass_all |
2162 ;; | 2479 ;; |
2163 | 2480 |
2164 hpux10.20* | hpux11*) | 2481 hpux10.20* | hpux11*) |
2165 lt_cv_file_magic_cmd=/usr/bin/file | 2482 lt_cv_file_magic_cmd=/usr/bin/file |
2166 case "$host_cpu" in | 2483 case $host_cpu in |
2167 ia64*) | 2484 ia64*) |
2168 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[
0-9]]) shared object file - IA64' | 2485 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[
0-9]]) shared object file - IA64' |
2169 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 2486 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
2170 ;; | 2487 ;; |
2171 hppa*64*) | 2488 hppa*64*) |
2172 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sh
ared object file - PA-RISC [0-9].[0-9]'] | 2489 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sh
ared object file - PA-RISC [0-9].[0-9]'] |
2173 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 2490 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
2174 ;; | 2491 ;; |
2175 *) | 2492 *) |
2176 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]
].[[0-9]]) shared library' | 2493 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]
].[[0-9]]) shared library' |
2177 lt_cv_file_magic_test_file=/usr/lib/libc.sl | 2494 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
2178 ;; | 2495 ;; |
2179 esac | 2496 esac |
2180 ;; | 2497 ;; |
2181 | 2498 |
| 2499 interix[[3-9]]*) |
| 2500 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 2501 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
| 2502 ;; |
| 2503 |
2182 irix5* | irix6* | nonstopux*) | 2504 irix5* | irix6* | nonstopux*) |
2183 case $LD in | 2505 case $LD in |
2184 *-32|*"-32 ") libmagic=32-bit;; | 2506 *-32|*"-32 ") libmagic=32-bit;; |
2185 *-n32|*"-n32 ") libmagic=N32;; | 2507 *-n32|*"-n32 ") libmagic=N32;; |
2186 *-64|*"-64 ") libmagic=64-bit;; | 2508 *-64|*"-64 ") libmagic=64-bit;; |
2187 *) libmagic=never-match;; | 2509 *) libmagic=never-match;; |
2188 esac | 2510 esac |
2189 lt_cv_deplibs_check_method=pass_all | 2511 lt_cv_deplibs_check_method=pass_all |
2190 ;; | 2512 ;; |
2191 | 2513 |
2192 # This must be Linux ELF. | 2514 # This must be Linux ELF. |
2193 linux*) | 2515 linux* | k*bsd*-gnu) |
2194 case $host_cpu in | |
2195 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) | |
2196 lt_cv_deplibs_check_method=pass_all ;; | |
2197 *) | |
2198 # glibc up to 2.1.1 does not perform some relocations on ARM | |
2199 # this will be overridden with pass_all, but let us keep it just in case | |
2200 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (sha
red object|dynamic lib )' ;; | |
2201 esac | |
2202 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
2203 lt_cv_deplibs_check_method=pass_all | 2516 lt_cv_deplibs_check_method=pass_all |
2204 ;; | 2517 ;; |
2205 | 2518 |
2206 netbsd*) | 2519 netbsd* | netbsdelf*-gnu) |
2207 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 2520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2208 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|_pic\.a)$' | 2521 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|_pic\.a)$' |
2209 else | 2522 else |
2210 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | 2523 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
2211 fi | 2524 fi |
2212 ;; | 2525 ;; |
2213 | 2526 |
2214 newos6*) | 2527 newos6*) |
2215 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (execu
table|dynamic lib)' | 2528 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (execu
table|dynamic lib)' |
2216 lt_cv_file_magic_cmd=/usr/bin/file | 2529 lt_cv_file_magic_cmd=/usr/bin/file |
2217 lt_cv_file_magic_test_file=/usr/lib/libnls.so | 2530 lt_cv_file_magic_test_file=/usr/lib/libnls.so |
2218 ;; | 2531 ;; |
2219 | 2532 |
2220 nto-qnx*) | 2533 nto-qnx*) |
2221 lt_cv_deplibs_check_method=unknown | 2534 lt_cv_deplibs_check_method=unknown |
2222 ;; | 2535 ;; |
2223 | 2536 |
2224 openbsd*) | 2537 openbsd*) |
2225 lt_cv_file_magic_cmd=/usr/bin/file | |
2226 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
2227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_
cpu" = "openbsd2.8-powerpc"; then | 2538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_
cpu" = "openbsd2.8-powerpc"; then |
2228 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shar
ed object' | 2539 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|\.so|_pic\.a)$' |
2229 else | 2540 else |
2230 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | 2541 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|_pic\.a)$' |
2231 fi | 2542 fi |
2232 ;; | 2543 ;; |
2233 | 2544 |
2234 osf3* | osf4* | osf5*) | 2545 osf3* | osf4* | osf5*) |
2235 lt_cv_deplibs_check_method=pass_all | 2546 lt_cv_deplibs_check_method=pass_all |
2236 ;; | 2547 ;; |
2237 | 2548 |
2238 sco3.2v5*) | 2549 rdos*) |
2239 lt_cv_deplibs_check_method=pass_all | 2550 lt_cv_deplibs_check_method=pass_all |
2240 ;; | 2551 ;; |
2241 | 2552 |
2242 solaris*) | 2553 solaris*) |
2243 lt_cv_deplibs_check_method=pass_all | 2554 lt_cv_deplibs_check_method=pass_all |
2244 ;; | 2555 ;; |
2245 | 2556 |
2246 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 2557 sysv4 | sysv4.3*) |
2247 case $host_vendor in | 2558 case $host_vendor in |
2248 motorola) | 2559 motorola) |
2249 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (sha
red object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' | 2560 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (sha
red object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
2250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 2561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
2251 ;; | 2562 ;; |
2252 ncr) | 2563 ncr) |
2253 lt_cv_deplibs_check_method=pass_all | 2564 lt_cv_deplibs_check_method=pass_all |
2254 ;; | 2565 ;; |
2255 sequent) | 2566 sequent) |
2256 lt_cv_file_magic_cmd='/bin/file' | 2567 lt_cv_file_magic_cmd='/bin/file' |
2257 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (sha
red object|dynamic lib )' | 2568 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (sha
red object|dynamic lib )' |
2258 ;; | 2569 ;; |
2259 sni) | 2570 sni) |
2260 lt_cv_file_magic_cmd='/bin/file' | 2571 lt_cv_file_magic_cmd='/bin/file' |
2261 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dyna
mic lib" | 2572 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dyna
mic lib" |
2262 lt_cv_file_magic_test_file=/lib/libc.so | 2573 lt_cv_file_magic_test_file=/lib/libc.so |
2263 ;; | 2574 ;; |
2264 siemens) | 2575 siemens) |
2265 lt_cv_deplibs_check_method=pass_all | 2576 lt_cv_deplibs_check_method=pass_all |
2266 ;; | 2577 ;; |
| 2578 pc) |
| 2579 lt_cv_deplibs_check_method=pass_all |
| 2580 ;; |
2267 esac | 2581 esac |
2268 ;; | 2582 ;; |
2269 | 2583 |
2270 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) | 2584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
2271 lt_cv_deplibs_check_method=pass_all | 2585 lt_cv_deplibs_check_method=pass_all |
2272 ;; | 2586 ;; |
2273 esac | 2587 esac |
2274 ]) | 2588 ]) |
2275 file_magic_cmd=$lt_cv_file_magic_cmd | 2589 file_magic_cmd=$lt_cv_file_magic_cmd |
2276 deplibs_check_method=$lt_cv_deplibs_check_method | 2590 deplibs_check_method=$lt_cv_deplibs_check_method |
2277 test -z "$deplibs_check_method" && deplibs_check_method=unknown | 2591 test -z "$deplibs_check_method" && deplibs_check_method=unknown |
2278 ])# AC_DEPLIBS_CHECK_METHOD | 2592 ])# AC_DEPLIBS_CHECK_METHOD |
2279 | 2593 |
2280 | 2594 |
2281 # AC_PROG_NM | 2595 # AC_PROG_NM |
2282 # ---------- | 2596 # ---------- |
2283 # find the pathname to a BSD-compatible name lister | 2597 # find the pathname to a BSD-compatible name lister |
2284 AC_DEFUN([AC_PROG_NM], | 2598 AC_DEFUN([AC_PROG_NM], |
2285 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, | 2599 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, |
2286 [if test -n "$NM"; then | 2600 [if test -n "$NM"; then |
2287 # Let the user override the test. | 2601 # Let the user override the test. |
2288 lt_cv_path_NM="$NM" | 2602 lt_cv_path_NM="$NM" |
2289 else | 2603 else |
2290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 2604 lt_nm_to_check="${ac_tool_prefix}nm" |
2291 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 2605 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
2292 IFS="$lt_save_ifs" | 2606 lt_nm_to_check="$lt_nm_to_check nm" |
2293 test -z "$ac_dir" && ac_dir=. | 2607 fi |
2294 tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 2608 for lt_tmp_nm in $lt_nm_to_check; do |
2295 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 2609 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2296 # Check to see if the nm accepts a BSD-compat flag. | 2610 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
2297 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 2611 IFS="$lt_save_ifs" |
2298 # nm: unknown option "B" ignored | 2612 test -z "$ac_dir" && ac_dir=. |
2299 # Tru64's nm complains that /dev/null is an invalid object file | 2613 tmp_nm="$ac_dir/$lt_tmp_nm" |
2300 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 2614 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
2301 */dev/null* | *'Invalid file or object type'*) | 2615 » # Check to see if the nm accepts a BSD-compat flag. |
2302 » lt_cv_path_NM="$tmp_nm -B" | 2616 » # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
2303 » break | 2617 » # nm: unknown option "B" ignored |
2304 ;; | 2618 » # Tru64's nm complains that /dev/null is an invalid object file |
2305 *) | 2619 » case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
2306 » case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 2620 » */dev/null* | *'Invalid file or object type'*) |
2307 » */dev/null*) | 2621 » lt_cv_path_NM="$tmp_nm -B" |
2308 » lt_cv_path_NM="$tmp_nm -p" | |
2309 break | 2622 break |
2310 ;; | 2623 ;; |
2311 *) | 2624 *) |
2312 » lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 2625 » case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
2313 » continue # so that we can try to find one that supports BSD flags | 2626 » */dev/null*) |
| 2627 » lt_cv_path_NM="$tmp_nm -p" |
| 2628 » break |
| 2629 » ;; |
| 2630 » *) |
| 2631 » lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 2632 » continue # so that we can try to find one that supports BSD flags |
| 2633 » ;; |
| 2634 » esac |
2314 ;; | 2635 ;; |
2315 esac | 2636 esac |
2316 esac | 2637 fi |
2317 fi | 2638 done |
| 2639 IFS="$lt_save_ifs" |
2318 done | 2640 done |
2319 IFS="$lt_save_ifs" | |
2320 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 2641 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
2321 fi]) | 2642 fi]) |
2322 NM="$lt_cv_path_NM" | 2643 NM="$lt_cv_path_NM" |
2323 ])# AC_PROG_NM | 2644 ])# AC_PROG_NM |
2324 | 2645 |
2325 | 2646 |
2326 # AC_CHECK_LIBM | 2647 # AC_CHECK_LIBM |
2327 # ------------- | 2648 # ------------- |
2328 # check for math library | 2649 # check for math library |
2329 AC_DEFUN([AC_CHECK_LIBM], | 2650 AC_DEFUN([AC_CHECK_LIBM], |
(...skipping 11 matching lines...) Expand all Loading... |
2341 AC_CHECK_LIB(m, cos, LIBM="-lm") | 2662 AC_CHECK_LIB(m, cos, LIBM="-lm") |
2342 ;; | 2663 ;; |
2343 esac | 2664 esac |
2344 ])# AC_CHECK_LIBM | 2665 ])# AC_CHECK_LIBM |
2345 | 2666 |
2346 | 2667 |
2347 # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) | 2668 # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
2348 # ----------------------------------- | 2669 # ----------------------------------- |
2349 # sets LIBLTDL to the link flags for the libltdl convenience library and | 2670 # sets LIBLTDL to the link flags for the libltdl convenience library and |
2350 # LTDLINCL to the include flags for the libltdl header and adds | 2671 # LTDLINCL to the include flags for the libltdl header and adds |
2351 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL | 2672 # --enable-ltdl-convenience to the configure arguments. Note that |
2352 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If | 2673 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
2353 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will | 2674 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with |
2354 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with | 2675 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' |
2355 # '${top_srcdir}/' (note the single quotes!). If your package is not | 2676 # (note the single quotes!). If your package is not flat and you're not |
2356 # flat and you're not using automake, define top_builddir and | 2677 # using automake, define top_builddir and top_srcdir appropriately in |
2357 # top_srcdir appropriately in the Makefiles. | 2678 # the Makefiles. |
2358 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | 2679 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
2359 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 2680 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2360 case $enable_ltdl_convenience in | 2681 case $enable_ltdl_convenience in |
2361 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; | 2682 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
2362 "") enable_ltdl_convenience=yes | 2683 "") enable_ltdl_convenience=yes |
2363 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | 2684 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
2364 esac | 2685 esac |
2365 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la | 2686 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
2366 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | 2687 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
2367 # For backwards non-gettext consistent compatibility... | 2688 # For backwards non-gettext consistent compatibility... |
2368 INCLTDL="$LTDLINCL" | 2689 INCLTDL="$LTDLINCL" |
2369 ])# AC_LIBLTDL_CONVENIENCE | 2690 ])# AC_LIBLTDL_CONVENIENCE |
2370 | 2691 |
2371 | 2692 |
2372 # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) | 2693 # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
2373 # ----------------------------------- | 2694 # ----------------------------------- |
2374 # sets LIBLTDL to the link flags for the libltdl installable library and | 2695 # sets LIBLTDL to the link flags for the libltdl installable library and |
2375 # LTDLINCL to the include flags for the libltdl header and adds | 2696 # LTDLINCL to the include flags for the libltdl header and adds |
2376 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL | 2697 # --enable-ltdl-install to the configure arguments. Note that |
2377 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If | 2698 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
2378 # DIRECTORY is not provided and an installed libltdl is not found, it is | 2699 # and an installed libltdl is not found, it is assumed to be `libltdl'. |
2379 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' | 2700 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with |
2380 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single | 2701 # '${top_srcdir}/' (note the single quotes!). If your package is not |
2381 # quotes!). If your package is not flat and you're not using automake, | 2702 # flat and you're not using automake, define top_builddir and top_srcdir |
2382 # define top_builddir and top_srcdir appropriately in the Makefiles. | 2703 # appropriately in the Makefiles. |
2383 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | 2704 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
2384 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], | 2705 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
2385 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 2706 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2386 AC_CHECK_LIB(ltdl, lt_dlinit, | 2707 AC_CHECK_LIB(ltdl, lt_dlinit, |
2387 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | 2708 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
2388 [if test x"$enable_ltdl_install" = xno; then | 2709 [if test x"$enable_ltdl_install" = xno; then |
2389 AC_MSG_WARN([libltdl not installed, but installation disabled]) | 2710 AC_MSG_WARN([libltdl not installed, but installation disabled]) |
2390 else | 2711 else |
2391 enable_ltdl_install=yes | 2712 enable_ltdl_install=yes |
2392 fi | 2713 fi |
(...skipping 17 matching lines...) Expand all Loading... |
2410 # enable support for C++ libraries | 2731 # enable support for C++ libraries |
2411 AC_DEFUN([AC_LIBTOOL_CXX], | 2732 AC_DEFUN([AC_LIBTOOL_CXX], |
2412 [AC_REQUIRE([_LT_AC_LANG_CXX]) | 2733 [AC_REQUIRE([_LT_AC_LANG_CXX]) |
2413 ])# AC_LIBTOOL_CXX | 2734 ])# AC_LIBTOOL_CXX |
2414 | 2735 |
2415 | 2736 |
2416 # _LT_AC_LANG_CXX | 2737 # _LT_AC_LANG_CXX |
2417 # --------------- | 2738 # --------------- |
2418 AC_DEFUN([_LT_AC_LANG_CXX], | 2739 AC_DEFUN([_LT_AC_LANG_CXX], |
2419 [AC_REQUIRE([AC_PROG_CXX]) | 2740 [AC_REQUIRE([AC_PROG_CXX]) |
2420 AC_REQUIRE([AC_PROG_CXXCPP]) | 2741 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
2421 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | 2742 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
2422 ])# _LT_AC_LANG_CXX | 2743 ])# _LT_AC_LANG_CXX |
2423 | 2744 |
| 2745 # _LT_AC_PROG_CXXCPP |
| 2746 # ------------------ |
| 2747 AC_DEFUN([_LT_AC_PROG_CXXCPP], |
| 2748 [ |
| 2749 AC_REQUIRE([AC_PROG_CXX]) |
| 2750 if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 2751 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 2752 (test "X$CXX" != "Xg++"))) ; then |
| 2753 AC_PROG_CXXCPP |
| 2754 fi |
| 2755 ])# _LT_AC_PROG_CXXCPP |
2424 | 2756 |
2425 # AC_LIBTOOL_F77 | 2757 # AC_LIBTOOL_F77 |
2426 # -------------- | 2758 # -------------- |
2427 # enable support for Fortran 77 libraries | 2759 # enable support for Fortran 77 libraries |
2428 AC_DEFUN([AC_LIBTOOL_F77], | 2760 AC_DEFUN([AC_LIBTOOL_F77], |
2429 [AC_REQUIRE([_LT_AC_LANG_F77]) | 2761 [AC_REQUIRE([_LT_AC_LANG_F77]) |
2430 ])# AC_LIBTOOL_F77 | 2762 ])# AC_LIBTOOL_F77 |
2431 | 2763 |
2432 | 2764 |
2433 # _LT_AC_LANG_F77 | 2765 # _LT_AC_LANG_F77 |
(...skipping 19 matching lines...) Expand all Loading... |
2453 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], | 2785 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
2454 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], | 2786 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
2455 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], | 2787 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
2456 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], | 2788 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
2457 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) | 2789 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
2458 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) | 2790 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
2459 ])# _LT_AC_LANG_GCJ | 2791 ])# _LT_AC_LANG_GCJ |
2460 | 2792 |
2461 | 2793 |
2462 # AC_LIBTOOL_RC | 2794 # AC_LIBTOOL_RC |
2463 # -------------- | 2795 # ------------- |
2464 # enable support for Windows resource files | 2796 # enable support for Windows resource files |
2465 AC_DEFUN([AC_LIBTOOL_RC], | 2797 AC_DEFUN([AC_LIBTOOL_RC], |
2466 [AC_REQUIRE([LT_AC_PROG_RC]) | 2798 [AC_REQUIRE([LT_AC_PROG_RC]) |
2467 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) | 2799 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
2468 ])# AC_LIBTOOL_RC | 2800 ])# AC_LIBTOOL_RC |
2469 | 2801 |
2470 | 2802 |
2471 # AC_LIBTOOL_LANG_C_CONFIG | 2803 # AC_LIBTOOL_LANG_C_CONFIG |
2472 # ------------------------ | 2804 # ------------------------ |
2473 # Ensure that the configuration vars for the C compiler are | 2805 # Ensure that the configuration vars for the C compiler are |
2474 # suitably defined. Those variables are subsequently used by | 2806 # suitably defined. Those variables are subsequently used by |
2475 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 2807 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
2476 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) | 2808 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) |
2477 AC_DEFUN([_LT_AC_LANG_C_CONFIG], | 2809 AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
2478 [lt_save_CC="$CC" | 2810 [lt_save_CC="$CC" |
2479 AC_LANG_PUSH(C) | 2811 AC_LANG_PUSH(C) |
2480 | 2812 |
2481 # Source file extension for C test sources. | 2813 # Source file extension for C test sources. |
2482 ac_ext=c | 2814 ac_ext=c |
2483 | 2815 |
2484 # Object file extension for compiled C test sources. | 2816 # Object file extension for compiled C test sources. |
2485 objext=o | 2817 objext=o |
2486 _LT_AC_TAGVAR(objext, $1)=$objext | 2818 _LT_AC_TAGVAR(objext, $1)=$objext |
2487 | 2819 |
2488 # Code to be used in simple compile tests | 2820 # Code to be used in simple compile tests |
2489 lt_simple_compile_test_code="int some_variable = 0;\n" | 2821 lt_simple_compile_test_code="int some_variable = 0;" |
2490 | 2822 |
2491 # Code to be used in simple link tests | 2823 # Code to be used in simple link tests |
2492 lt_simple_link_test_code='int main(){return(0);}\n' | 2824 lt_simple_link_test_code='int main(){return(0);}' |
2493 | 2825 |
2494 _LT_AC_SYS_COMPILER | 2826 _LT_AC_SYS_COMPILER |
2495 | 2827 |
2496 # | 2828 # save warnings/boilerplate of simple test code |
2497 # Check for any special shared library compilation flags. | 2829 _LT_COMPILER_BOILERPLATE |
2498 # | 2830 _LT_LINKER_BOILERPLATE |
2499 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= | |
2500 if test "$GCC" = no; then | |
2501 case $host_os in | |
2502 sco3.2v5*) | |
2503 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' | |
2504 ;; | |
2505 esac | |
2506 fi | |
2507 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then | |
2508 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build sh
ared libraries]) | |
2509 if echo "$old_CC $old_CFLAGS " | grep "[[ » ]]$_LT_AC_TAGVAR(lt_prog_cc_shli
b, $1)[[ » ]]" >/dev/null; then : | |
2510 else | |
2511 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS
env variable and reconfigure]) | |
2512 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no | |
2513 fi | |
2514 fi | |
2515 | |
2516 | |
2517 # | |
2518 # Check to make sure the static flag actually works. | |
2519 # | |
2520 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compil
er_static, $1) works], | |
2521 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | |
2522 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), | |
2523 [], | |
2524 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | |
2525 | |
2526 | 2831 |
2527 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | 2832 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
2528 AC_LIBTOOL_PROG_COMPILER_PIC($1) | 2833 AC_LIBTOOL_PROG_COMPILER_PIC($1) |
2529 AC_LIBTOOL_PROG_CC_C_O($1) | 2834 AC_LIBTOOL_PROG_CC_C_O($1) |
2530 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | 2835 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
2531 AC_LIBTOOL_PROG_LD_SHLIBS($1) | 2836 AC_LIBTOOL_PROG_LD_SHLIBS($1) |
2532 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 2837 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
2533 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 2838 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
2534 AC_LIBTOOL_SYS_LIB_STRIP | 2839 AC_LIBTOOL_SYS_LIB_STRIP |
2535 AC_LIBTOOL_DLOPEN_SELF($1) | 2840 AC_LIBTOOL_DLOPEN_SELF |
2536 | 2841 |
2537 # Report which librarie types wil actually be built | 2842 # Report which library types will actually be built |
2538 AC_MSG_CHECKING([if libtool supports shared libraries]) | 2843 AC_MSG_CHECKING([if libtool supports shared libraries]) |
2539 AC_MSG_RESULT([$can_build_shared]) | 2844 AC_MSG_RESULT([$can_build_shared]) |
2540 | 2845 |
2541 AC_MSG_CHECKING([whether to build shared libraries]) | 2846 AC_MSG_CHECKING([whether to build shared libraries]) |
2542 test "$can_build_shared" = "no" && enable_shared=no | 2847 test "$can_build_shared" = "no" && enable_shared=no |
2543 | 2848 |
2544 # On AIX, shared libraries and static libraries use the same namespace, and | 2849 # On AIX, shared libraries and static libraries use the same namespace, and |
2545 # are all built from PIC. | 2850 # are all built from PIC. |
2546 case "$host_os" in | 2851 case $host_os in |
2547 aix3*) | 2852 aix3*) |
2548 test "$enable_shared" = yes && enable_static=no | 2853 test "$enable_shared" = yes && enable_static=no |
2549 if test -n "$RANLIB"; then | 2854 if test -n "$RANLIB"; then |
2550 archive_cmds="$archive_cmds~\$RANLIB \$lib" | 2855 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
2551 postinstall_cmds='$RANLIB $lib' | 2856 postinstall_cmds='$RANLIB $lib' |
2552 fi | 2857 fi |
2553 ;; | 2858 ;; |
2554 | 2859 |
2555 aix4* | aix5*) | 2860 aix[[4-9]]*) |
2556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 2861 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
2557 test "$enable_shared" = yes && enable_static=no | 2862 test "$enable_shared" = yes && enable_static=no |
2558 fi | 2863 fi |
2559 ;; | |
2560 darwin* | rhapsody*) | |
2561 if test "$GCC" = yes; then | |
2562 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
2563 case "$host_os" in | |
2564 rhapsody* | darwin1.[[012]]) | |
2565 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' | |
2566 ;; | |
2567 *) # Darwin 1.3 on | |
2568 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
2569 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined supp
ress' | |
2570 else | |
2571 case ${MACOSX_DEPLOYMENT_TARGET} in | |
2572 10.[[012]]) | |
2573 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined
suppress' | |
2574 ;; | |
2575 10.*) | |
2576 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' | |
2577 ;; | |
2578 esac | |
2579 fi | |
2580 ;; | |
2581 esac | |
2582 output_verbose_link_cmd='echo' | |
2583 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $l
ib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' | |
2584 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $l
ibobjs $deplibs$compiler_flags' | |
2585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exi
st in older darwin ld's | |
2586 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -
e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~
$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags
-install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symb
ols.expsym ${lib}' | |
2587 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e
"s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$
CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedi
t -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
2588 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
2589 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | |
2590 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
2591 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' | |
2592 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
2593 else | |
2594 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
2595 fi | |
2596 ;; | 2864 ;; |
2597 esac | 2865 esac |
2598 AC_MSG_RESULT([$enable_shared]) | 2866 AC_MSG_RESULT([$enable_shared]) |
2599 | 2867 |
2600 AC_MSG_CHECKING([whether to build static libraries]) | 2868 AC_MSG_CHECKING([whether to build static libraries]) |
2601 # Make sure either enable_shared or enable_static is yes. | 2869 # Make sure either enable_shared or enable_static is yes. |
2602 test "$enable_shared" = yes || enable_static=yes | 2870 test "$enable_shared" = yes || enable_static=yes |
2603 AC_MSG_RESULT([$enable_static]) | 2871 AC_MSG_RESULT([$enable_static]) |
2604 | 2872 |
2605 AC_LIBTOOL_CONFIG($1) | 2873 AC_LIBTOOL_CONFIG($1) |
2606 | 2874 |
2607 AC_LANG_POP | 2875 AC_LANG_POP |
2608 CC="$lt_save_CC" | 2876 CC="$lt_save_CC" |
2609 ])# AC_LIBTOOL_LANG_C_CONFIG | 2877 ])# AC_LIBTOOL_LANG_C_CONFIG |
2610 | 2878 |
2611 | 2879 |
2612 # AC_LIBTOOL_LANG_CXX_CONFIG | 2880 # AC_LIBTOOL_LANG_CXX_CONFIG |
2613 # -------------------------- | 2881 # -------------------------- |
2614 # Ensure that the configuration vars for the C compiler are | 2882 # Ensure that the configuration vars for the C compiler are |
2615 # suitably defined. Those variables are subsequently used by | 2883 # suitably defined. Those variables are subsequently used by |
2616 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 2884 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
2617 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) | 2885 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) |
2618 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | 2886 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
2619 [AC_LANG_PUSH(C++) | 2887 [AC_LANG_PUSH(C++) |
2620 AC_REQUIRE([AC_PROG_CXX]) | 2888 AC_REQUIRE([AC_PROG_CXX]) |
2621 AC_REQUIRE([AC_PROG_CXXCPP]) | 2889 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
2622 | 2890 |
2623 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 2891 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
2624 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | 2892 _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
2625 _LT_AC_TAGVAR(always_export_symbols, $1)=no | 2893 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
2626 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | 2894 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
2627 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | 2895 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
2628 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 2896 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
2629 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | 2897 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
2630 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | 2898 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
2631 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 2899 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
2632 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | 2900 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 2901 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
2633 _LT_AC_TAGVAR(hardcode_automatic, $1)=no | 2902 _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
2634 _LT_AC_TAGVAR(module_cmds, $1)= | 2903 _LT_AC_TAGVAR(module_cmds, $1)= |
2635 _LT_AC_TAGVAR(module_expsym_cmds, $1)= | 2904 _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
2636 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | 2905 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
2637 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 2906 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
2638 _LT_AC_TAGVAR(no_undefined_flag, $1)= | 2907 _LT_AC_TAGVAR(no_undefined_flag, $1)= |
2639 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | 2908 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
2640 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 2909 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
2641 | 2910 |
2642 # Dependencies to place before and after the object being linked: | 2911 # Dependencies to place before and after the object being linked: |
2643 _LT_AC_TAGVAR(predep_objects, $1)= | 2912 _LT_AC_TAGVAR(predep_objects, $1)= |
2644 _LT_AC_TAGVAR(postdep_objects, $1)= | 2913 _LT_AC_TAGVAR(postdep_objects, $1)= |
2645 _LT_AC_TAGVAR(predeps, $1)= | 2914 _LT_AC_TAGVAR(predeps, $1)= |
2646 _LT_AC_TAGVAR(postdeps, $1)= | 2915 _LT_AC_TAGVAR(postdeps, $1)= |
2647 _LT_AC_TAGVAR(compiler_lib_search_path, $1)= | 2916 _LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
| 2917 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= |
2648 | 2918 |
2649 # Source file extension for C++ test sources. | 2919 # Source file extension for C++ test sources. |
2650 ac_ext=cc | 2920 ac_ext=cpp |
2651 | 2921 |
2652 # Object file extension for compiled C++ test sources. | 2922 # Object file extension for compiled C++ test sources. |
2653 objext=o | 2923 objext=o |
2654 _LT_AC_TAGVAR(objext, $1)=$objext | 2924 _LT_AC_TAGVAR(objext, $1)=$objext |
2655 | 2925 |
2656 # Code to be used in simple compile tests | 2926 # Code to be used in simple compile tests |
2657 lt_simple_compile_test_code="int some_variable = 0;\n" | 2927 lt_simple_compile_test_code="int some_variable = 0;" |
2658 | 2928 |
2659 # Code to be used in simple link tests | 2929 # Code to be used in simple link tests |
2660 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | 2930 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' |
2661 | 2931 |
2662 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 2932 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
2663 _LT_AC_SYS_COMPILER | 2933 _LT_AC_SYS_COMPILER |
2664 | 2934 |
| 2935 # save warnings/boilerplate of simple test code |
| 2936 _LT_COMPILER_BOILERPLATE |
| 2937 _LT_LINKER_BOILERPLATE |
| 2938 |
2665 # Allow CC to be a program name with arguments. | 2939 # Allow CC to be a program name with arguments. |
2666 lt_save_CC=$CC | 2940 lt_save_CC=$CC |
2667 lt_save_LD=$LD | 2941 lt_save_LD=$LD |
2668 lt_save_GCC=$GCC | 2942 lt_save_GCC=$GCC |
2669 GCC=$GXX | 2943 GCC=$GXX |
2670 lt_save_with_gnu_ld=$with_gnu_ld | 2944 lt_save_with_gnu_ld=$with_gnu_ld |
2671 lt_save_path_LD=$lt_cv_path_LD | 2945 lt_save_path_LD=$lt_cv_path_LD |
2672 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 2946 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
2673 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 2947 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
2674 else | 2948 else |
2675 unset lt_cv_prog_gnu_ld | 2949 $as_unset lt_cv_prog_gnu_ld |
2676 fi | 2950 fi |
2677 if test -n "${lt_cv_path_LDCXX+set}"; then | 2951 if test -n "${lt_cv_path_LDCXX+set}"; then |
2678 lt_cv_path_LD=$lt_cv_path_LDCXX | 2952 lt_cv_path_LD=$lt_cv_path_LDCXX |
2679 else | 2953 else |
2680 unset lt_cv_path_LD | 2954 $as_unset lt_cv_path_LD |
2681 fi | 2955 fi |
2682 test -z "${LDCXX+set}" || LD=$LDCXX | 2956 test -z "${LDCXX+set}" || LD=$LDCXX |
2683 CC=${CXX-"c++"} | 2957 CC=${CXX-"c++"} |
2684 compiler=$CC | 2958 compiler=$CC |
2685 _LT_AC_TAGVAR(compiler, $1)=$CC | 2959 _LT_AC_TAGVAR(compiler, $1)=$CC |
2686 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 2960 _LT_CC_BASENAME([$compiler]) |
2687 | 2961 |
2688 # We don't want -fno-exception wen compiling C++ code, so set the | 2962 # We don't want -fno-exception wen compiling C++ code, so set the |
2689 # no_builtin_flag separately | 2963 # no_builtin_flag separately |
2690 if test "$GXX" = yes; then | 2964 if test "$GXX" = yes; then |
2691 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | 2965 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
2692 else | 2966 else |
2693 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | 2967 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
2694 fi | 2968 fi |
2695 | 2969 |
2696 if test "$GXX" = yes; then | 2970 if test "$GXX" = yes; then |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2743 fi | 3017 fi |
2744 | 3018 |
2745 # PORTME: fill in a description of your system's C++ link characteristics | 3019 # PORTME: fill in a description of your system's C++ link characteristics |
2746 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | 3020 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
2747 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | 3021 _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
2748 case $host_os in | 3022 case $host_os in |
2749 aix3*) | 3023 aix3*) |
2750 # FIXME: insert proper C++ library support | 3024 # FIXME: insert proper C++ library support |
2751 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3025 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2752 ;; | 3026 ;; |
2753 aix4* | aix5*) | 3027 aix[[4-9]]*) |
2754 if test "$host_cpu" = ia64; then | 3028 if test "$host_cpu" = ia64; then |
2755 # On IA64, the linker does run time linking by default, so we don't | 3029 # On IA64, the linker does run time linking by default, so we don't |
2756 # have to do anything special. | 3030 # have to do anything special. |
2757 aix_use_runtimelinking=no | 3031 aix_use_runtimelinking=no |
2758 exp_sym_flag='-Bexport' | 3032 exp_sym_flag='-Bexport' |
2759 no_entry_flag="" | 3033 no_entry_flag="" |
2760 else | 3034 else |
2761 aix_use_runtimelinking=no | 3035 aix_use_runtimelinking=no |
2762 | 3036 |
2763 # Test if we are trying to use run time linking or normal | 3037 # Test if we are trying to use run time linking or normal |
2764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 3038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
2765 # need to do runtime linking. | 3039 # need to do runtime linking. |
2766 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | 3040 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
2767 for ld_flag in $LDFLAGS; do | 3041 for ld_flag in $LDFLAGS; do |
2768 case $ld_flag in | 3042 case $ld_flag in |
2769 *-brtl*) | 3043 *-brtl*) |
2770 aix_use_runtimelinking=yes | 3044 aix_use_runtimelinking=yes |
2771 break | 3045 break |
2772 ;; | 3046 ;; |
2773 esac | 3047 esac |
2774 done | 3048 done |
| 3049 ;; |
2775 esac | 3050 esac |
2776 | 3051 |
2777 exp_sym_flag='-bexport' | 3052 exp_sym_flag='-bexport' |
2778 no_entry_flag='-bnoentry' | 3053 no_entry_flag='-bnoentry' |
2779 fi | 3054 fi |
2780 | 3055 |
2781 # When large executables or shared objects are built, AIX ld can | 3056 # When large executables or shared objects are built, AIX ld can |
2782 # have problems creating the table of contents. If linking a library | 3057 # have problems creating the table of contents. If linking a library |
2783 # or program results in "error TOC overflow" add -mminimal-toc to | 3058 # or program results in "error TOC overflow" add -mminimal-toc to |
2784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | 3059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
2785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 3060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
2786 | 3061 |
2787 _LT_AC_TAGVAR(archive_cmds, $1)='' | 3062 _LT_AC_TAGVAR(archive_cmds, $1)='' |
2788 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 3063 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
2789 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | 3064 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
2790 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 3065 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
2791 | 3066 |
2792 if test "$GXX" = yes; then | 3067 if test "$GXX" = yes; then |
2793 case $host_os in aix4.[012]|aix4.[012].*) | 3068 case $host_os in aix4.[[012]]|aix4.[[012]].*) |
2794 # We only want to do this on AIX 4.2 and lower, the check | 3069 # We only want to do this on AIX 4.2 and lower, the check |
2795 # below for broken collect2 doesn't work under 4.3+ | 3070 # below for broken collect2 doesn't work under 4.3+ |
2796 collect2name=`${CC} -print-prog-name=collect2` | 3071 collect2name=`${CC} -print-prog-name=collect2` |
2797 if test -f "$collect2name" && \ | 3072 if test -f "$collect2name" && \ |
2798 strings "$collect2name" | grep resolve_lib_name >/dev/null | 3073 strings "$collect2name" | grep resolve_lib_name >/dev/null |
2799 then | 3074 then |
2800 # We have reworked collect2 | 3075 # We have reworked collect2 |
2801 » _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 3076 » : |
2802 else | 3077 else |
2803 # We have old collect2 | 3078 # We have old collect2 |
2804 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | 3079 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
2805 # It fails to find uninstalled libraries when the uninstalled | 3080 # It fails to find uninstalled libraries when the uninstalled |
2806 # path is not listed in the libpath. Setting hardcode_minus_L | 3081 # path is not listed in the libpath. Setting hardcode_minus_L |
2807 # to unsupported forces relinking | 3082 # to unsupported forces relinking |
2808 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 3083 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
2809 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 3084 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2810 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 3085 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
2811 fi | 3086 fi |
| 3087 ;; |
2812 esac | 3088 esac |
2813 shared_flag='-shared' | 3089 shared_flag='-shared' |
| 3090 if test "$aix_use_runtimelinking" = yes; then |
| 3091 shared_flag="$shared_flag "'${wl}-G' |
| 3092 fi |
2814 else | 3093 else |
2815 # not using gcc | 3094 # not using gcc |
2816 if test "$host_cpu" = ia64; then | 3095 if test "$host_cpu" = ia64; then |
2817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 3096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
2818 # chokes on -Wl,-G. The following line is correct: | 3097 # chokes on -Wl,-G. The following line is correct: |
2819 shared_flag='-G' | 3098 shared_flag='-G' |
2820 else | 3099 else |
2821 if test "$aix_use_runtimelinking" = yes; then | 3100 if test "$aix_use_runtimelinking" = yes; then |
2822 shared_flag='${wl}-G' | 3101 shared_flag='${wl}-G' |
2823 else | 3102 else |
2824 shared_flag='${wl}-bM:SRE' | 3103 shared_flag='${wl}-bM:SRE' |
2825 fi | 3104 fi |
2826 fi | 3105 fi |
2827 fi | 3106 fi |
2828 | 3107 |
2829 # It seems that -bexpall does not export symbols beginning with | 3108 # It seems that -bexpall does not export symbols beginning with |
2830 # underscore (_), so it is better to generate a list of symbols to export. | 3109 # underscore (_), so it is better to generate a list of symbols to export. |
2831 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | 3110 _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
2832 if test "$aix_use_runtimelinking" = yes; then | 3111 if test "$aix_use_runtimelinking" = yes; then |
2833 # Warning - without using the other runtime loading flags (-brtl), | 3112 # Warning - without using the other runtime loading flags (-brtl), |
2834 # -berok will link without error, but may produce a broken library. | 3113 # -berok will link without error, but may produce a broken library. |
2835 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | 3114 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
2836 # Determine the default libpath from the value encoded in an empty executa
ble. | 3115 # Determine the default libpath from the value encoded in an empty executa
ble. |
2837 _LT_AC_SYS_LIBPATH_AIX | 3116 _LT_AC_SYS_LIBPATH_AIX |
2838 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$ai
x_libpath" | 3117 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$ai
x_libpath" |
2839 | 3118 |
2840 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $
libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; the
n echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}
$exp_sym_flag:\$export_symbols $shared_flag" | 3119 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $
libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_und
efined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\$
{wl}$exp_sym_flag:\$export_symbols $shared_flag" |
2841 else | 3120 else |
2842 if test "$host_cpu" = ia64; then | 3121 if test "$host_cpu" = ia64; then |
2843 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/
lib' | 3122 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/
lib' |
2844 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 3123 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
2845 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_o
bjdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\
${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | 3124 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_o
bjdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${
allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
2846 else | 3125 else |
2847 # Determine the default libpath from the value encoded in an empty execu
table. | 3126 # Determine the default libpath from the value encoded in an empty execu
table. |
2848 _LT_AC_SYS_LIBPATH_AIX | 3127 _LT_AC_SYS_LIBPATH_AIX |
2849 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$
aix_libpath" | 3128 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$
aix_libpath" |
2850 # Warning - without using the other run time loading flags, | 3129 # Warning - without using the other run time loading flags, |
2851 # -berok will link without error, but may produce a broken library. | 3130 # -berok will link without error, but may produce a broken library. |
2852 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 3131 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
2853 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 3132 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
2854 # -bexpall does not export symbols beginning with underscore (_) | |
2855 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | |
2856 # Exported symbols can be pulled into shared objects from archives | 3133 # Exported symbols can be pulled into shared objects from archives |
2857 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' | 3134 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
2858 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 3135 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
2859 » # This is similar to how AIX traditionally builds it's shared libraries. | 3136 » # This is similar to how AIX traditionally builds its shared libraries. |
2860 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_o
bjdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-b
noentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $
output_objdir/$soname' | 3137 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_o
bjdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_
symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $
output_objdir/$soname' |
2861 fi | 3138 fi |
2862 fi | 3139 fi |
2863 ;; | 3140 ;; |
| 3141 |
| 3142 beos*) |
| 3143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 3144 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 3145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 3146 # support --undefined. This deserves some investigation. FIXME |
| 3147 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_
flags ${wl}-soname $wl$soname -o $lib' |
| 3148 else |
| 3149 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3150 fi |
| 3151 ;; |
| 3152 |
2864 chorus*) | 3153 chorus*) |
2865 case $cc_basename in | 3154 case $cc_basename in |
2866 *) | 3155 *) |
2867 # FIXME: insert proper C++ library support | 3156 # FIXME: insert proper C++ library support |
2868 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3157 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2869 ;; | 3158 ;; |
2870 esac | 3159 esac |
2871 ;; | 3160 ;; |
2872 | 3161 |
2873 cygwin* | mingw* | pw32*) | 3162 cygwin* | mingw* | pw32*) |
2874 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 3163 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
2875 # as there is no search path for DLLs. | 3164 # as there is no search path for DLLs. |
2876 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 3165 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2877 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 3166 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
2878 _LT_AC_TAGVAR(always_export_symbols, $1)=no | 3167 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
2879 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 3168 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
2880 | 3169 |
2881 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 3170 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
2882 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-
-image-base=0x10000000 ${wl}--out-implib,$lib' | 3171 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-
-enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
2883 # If the export-symbols file already is a .def file (1st line | 3172 # If the export-symbols file already is a .def file (1st line |
2884 # is EXPORTS), use it as is; otherwise, prepend... | 3173 # is EXPORTS), use it as is; otherwise, prepend... |
2885 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols
`" = xEXPORTS; then | 3174 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols
`" = xEXPORTS; then |
2886 cp $export_symbols $output_objdir/$soname.def; | 3175 cp $export_symbols $output_objdir/$soname.def; |
2887 else | 3176 else |
2888 echo EXPORTS > $output_objdir/$soname.def; | 3177 echo EXPORTS > $output_objdir/$soname.def; |
2889 cat $export_symbols >> $output_objdir/$soname.def; | 3178 cat $export_symbols >> $output_objdir/$soname.def; |
2890 fi~ | 3179 fi~ |
2891 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image
-base=0x10000000 ${wl}--out-implib,$lib' | 3180 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enabl
e-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
2892 else | 3181 else |
2893 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3182 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2894 fi | 3183 fi |
2895 ;; | 3184 ;; |
2896 | 3185 darwin* | rhapsody*) |
2897 darwin* | rhapsody*) | 3186 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
2898 if test "$GXX" = yes; then | 3187 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
2899 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3188 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
2900 case "$host_os" in | 3189 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
2901 rhapsody* | darwin1.[[012]]) | 3190 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
2902 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' | 3191 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
2903 ;; | 3192 _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
2904 *) # Darwin 1.3 on | 3193 if test "$GXX" = yes ; then |
2905 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 3194 output_verbose_link_cmd='echo' |
2906 » _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined supp
ress' | 3195 _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -
o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$ve
rstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 3196 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bund
le \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 3197 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols >
\$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_fl
ag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname
\$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 3198 _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols
> \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$li
b -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymut
il}" |
| 3199 if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 3200 _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib
-o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib
\${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$ver
string${_lt_dsymutil}" |
| 3201 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols
> \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nost
dlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$
lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \
$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
| 3202 fi |
2907 else | 3203 else |
2908 case ${MACOSX_DEPLOYMENT_TARGET} in | 3204 case $cc_basename in |
2909 10.[[012]]) | 3205 xlc*) |
2910 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined
suppress' | 3206 output_verbose_link_cmd='echo' |
2911 ;; | 3207 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $a
llow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name
${wl}`echo $rpath/$soname` $xlcverstring' |
2912 10.*) | 3208 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bun
dle $libobjs $deplibs$compiler_flags' |
2913 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' | 3209 # Don't fix this by using the ld -exported_symbols_list flag, it doesn
't exist in older darwin lds |
2914 ;; | 3210 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]
*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.e
xpsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs
$deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nm
edit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
2915 esac | 3211 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*
,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.ex
psym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags
~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3212 ;; |
| 3213 *) |
| 3214 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3215 ;; |
| 3216 esac |
2916 fi | 3217 fi |
2917 ;; | 3218 ;; |
2918 esac | |
2919 lt_int_apple_cc_single_mod=no | |
2920 output_verbose_link_cmd='echo' | |
2921 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | |
2922 lt_int_apple_cc_single_mod=yes | |
2923 fi | |
2924 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
2925 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_und
efined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$sona
me $verstring' | |
2926 else | |
2927 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_e
xterns -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_fl
ag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname
$verstring' | |
2928 fi | |
2929 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag
-o $lib -bundle $libobjs $deplibs$compiler_flags' | |
2930 | |
2931 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exi
st in older darwin ld's | |
2932 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
2933 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,,"
-e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsy
m~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs
$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdi
r/${libname}-symbols.expsym ${lib}' | |
2934 else | |
2935 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,,"
-e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsy
m~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $
libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $
compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/
${libname}-symbols.expsym ${lib}' | |
2936 fi | |
2937 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e
"s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$
CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedi
t -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
2938 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
2939 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | |
2940 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
2941 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' | |
2942 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
2943 else | |
2944 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
2945 fi | |
2946 ;; | |
2947 | 3219 |
2948 dgux*) | 3220 dgux*) |
2949 case $cc_basename in | 3221 case $cc_basename in |
2950 ec++) | 3222 ec++*) |
2951 # FIXME: insert proper C++ library support | 3223 # FIXME: insert proper C++ library support |
2952 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3224 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2953 ;; | 3225 ;; |
2954 ghcx) | 3226 ghcx*) |
2955 # Green Hills C++ Compiler | 3227 # Green Hills C++ Compiler |
2956 # FIXME: insert proper C++ library support | 3228 # FIXME: insert proper C++ library support |
2957 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3229 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2958 ;; | 3230 ;; |
2959 *) | 3231 *) |
2960 # FIXME: insert proper C++ library support | 3232 # FIXME: insert proper C++ library support |
2961 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3233 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2962 ;; | 3234 ;; |
2963 esac | 3235 esac |
2964 ;; | 3236 ;; |
2965 freebsd[12]*) | 3237 freebsd[[12]]*) |
2966 # C++ shared libraries reported to be fairly broken before switch to ELF | 3238 # C++ shared libraries reported to be fairly broken before switch to ELF |
2967 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3239 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2968 ;; | 3240 ;; |
2969 freebsd-elf*) | 3241 freebsd-elf*) |
2970 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3242 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
2971 ;; | 3243 ;; |
2972 freebsd* | kfreebsd*-gnu) | 3244 freebsd* | dragonfly*) |
2973 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 3245 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
2974 # conventions | 3246 # conventions |
2975 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | 3247 _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
2976 ;; | 3248 ;; |
2977 gnu*) | 3249 gnu*) |
2978 ;; | 3250 ;; |
2979 hpux9*) | 3251 hpux9*) |
2980 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 3252 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
2981 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3253 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2982 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 3254 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
2983 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 3255 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
2984 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | 3256 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
2985 # but as the default | 3257 # but as the default |
2986 # location of the library. | 3258 # location of the library. |
2987 | 3259 |
2988 case $cc_basename in | 3260 case $cc_basename in |
2989 CC) | 3261 CC*) |
2990 # FIXME: insert proper C++ library support | 3262 # FIXME: insert proper C++ library support |
2991 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3263 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2992 ;; | 3264 ;; |
2993 aCC) | 3265 aCC*) |
2994 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b
${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplib
s $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $out
put_objdir/$soname $lib' | 3266 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b
${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplib
s $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $out
put_objdir/$soname $lib' |
2995 # Commands to make compiler produce verbose output that lists | 3267 # Commands to make compiler produce verbose output that lists |
2996 # what "hidden" libraries, object files and flags are used when | 3268 # what "hidden" libraries, object files and flags are used when |
2997 # linking a shared library. | 3269 # linking a shared library. |
2998 # | 3270 # |
2999 # There doesn't appear to be a way to prevent this compiler from | 3271 # There doesn't appear to be a way to prevent this compiler from |
3000 # explicitly linking system object files so we need to strip them | 3272 # explicitly linking system object files so we need to strip them |
3001 # from the output so that they don't get included in the library | 3273 # from the output so that they don't get included in the library |
3002 # dependencies. | 3274 # dependencies. |
3003 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&
1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext)
list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 3275 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&
1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext
) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
3004 ;; | 3276 ;; |
3005 *) | 3277 *) |
3006 if test "$GXX" = yes; then | 3278 if test "$GXX" = yes; then |
3007 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared
-nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_o
bjects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$s
oname = $lib || mv $output_objdir/$soname $lib' | 3279 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared
-nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_o
bjects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$s
oname = $lib || mv $output_objdir/$soname $lib' |
3008 else | 3280 else |
3009 # FIXME: insert proper C++ library support | 3281 # FIXME: insert proper C++ library support |
3010 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3282 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3011 fi | 3283 fi |
3012 ;; | 3284 ;; |
3013 esac | 3285 esac |
3014 ;; | 3286 ;; |
3015 hpux10*|hpux11*) | 3287 hpux10*|hpux11*) |
3016 if test $with_gnu_ld = no; then | 3288 if test $with_gnu_ld = no; then |
3017 case "$host_cpu" in | 3289 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
3018 hppa*64*) | 3290 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3019 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 3291 |
3020 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | 3292 case $host_cpu in |
3021 » _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3293 hppa*64*|ia64*) ;; |
3022 ;; | |
3023 ia64*) | |
3024 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
3025 ;; | |
3026 *) | 3294 *) |
3027 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
3028 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
3029 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 3295 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
3030 ;; | 3296 ;; |
3031 esac | 3297 esac |
3032 fi | 3298 fi |
3033 case "$host_cpu" in | 3299 case $host_cpu in |
3034 hppa*64*) | 3300 hppa*64*|ia64*) |
3035 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 3301 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
3036 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 3302 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3037 ;; | 3303 ;; |
3038 ia64*) | |
3039 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
3040 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
3041 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
3042 # but as the default | |
3043 # location of the library. | |
3044 ;; | |
3045 *) | 3304 *) |
3046 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 3305 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
3047 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | 3306 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
3048 # but as the default | 3307 # but as the default |
3049 # location of the library. | 3308 # location of the library. |
3050 ;; | 3309 ;; |
3051 esac | 3310 esac |
3052 | 3311 |
3053 case $cc_basename in | 3312 case $cc_basename in |
3054 CC) | 3313 CC*) |
3055 # FIXME: insert proper C++ library support | 3314 # FIXME: insert proper C++ library support |
3056 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3315 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3057 ;; | 3316 ;; |
3058 aCC) | 3317 aCC*) |
3059 » case "$host_cpu" in | 3318 » case $host_cpu in |
3060 » hppa*64*|ia64*) | 3319 » hppa*64*) |
3061 » _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_fla
gs $libobjs $deplibs' | 3320 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $
predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 3321 » ;; |
| 3322 » ia64*) |
| 3323 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nod
efaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler
_flags' |
3062 ;; | 3324 ;; |
3063 *) | 3325 *) |
3064 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b $
{wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $
compiler_flags' | 3326 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b $
{wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $
compiler_flags' |
3065 ;; | 3327 ;; |
3066 esac | 3328 esac |
3067 # Commands to make compiler produce verbose output that lists | 3329 # Commands to make compiler produce verbose output that lists |
3068 # what "hidden" libraries, object files and flags are used when | 3330 # what "hidden" libraries, object files and flags are used when |
3069 # linking a shared library. | 3331 # linking a shared library. |
3070 # | 3332 # |
3071 # There doesn't appear to be a way to prevent this compiler from | 3333 # There doesn't appear to be a way to prevent this compiler from |
3072 # explicitly linking system object files so we need to strip them | 3334 # explicitly linking system object files so we need to strip them |
3073 # from the output so that they don't get included in the library | 3335 # from the output so that they don't get included in the library |
3074 # dependencies. | 3336 # dependencies. |
3075 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2
>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext)
list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 3337 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2
>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext)
list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
3076 ;; | 3338 ;; |
3077 *) | 3339 *) |
3078 if test "$GXX" = yes; then | 3340 if test "$GXX" = yes; then |
3079 if test $with_gnu_ld = no; then | 3341 if test $with_gnu_ld = no; then |
3080 » case "$host_cpu" in | 3342 » case $host_cpu in |
3081 » ia64*|hppa*64*) | 3343 » hppa*64*) |
3082 » _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker
_flags $libobjs $deplibs' | 3344 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}
+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $comp
iler_flags' |
| 3345 » ;; |
| 3346 » ia64*) |
| 3347 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}
+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $
postdep_objects $compiler_flags' |
3083 ;; | 3348 ;; |
3084 *) | 3349 *) |
3085 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}
+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $d
eplibs $postdep_objects $compiler_flags' | 3350 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}
+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $d
eplibs $postdep_objects $compiler_flags' |
3086 ;; | 3351 ;; |
3087 esac | 3352 esac |
3088 fi | 3353 fi |
3089 else | 3354 else |
3090 # FIXME: insert proper C++ library support | 3355 # FIXME: insert proper C++ library support |
3091 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3356 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3092 fi | 3357 fi |
3093 ;; | 3358 ;; |
3094 esac | 3359 esac |
3095 ;; | 3360 ;; |
| 3361 interix[[3-9]]*) |
| 3362 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3363 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3364 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 3365 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3366 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 3367 # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 3368 # default) and relocated if they conflict, which is a slow very memory |
| 3369 # consuming and fragmenting process. To avoid this, we pick a random, |
| 3370 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 3371 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 3372 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $co
mpiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \*
262144 + 1342177280` -o $lib' |
| 3373 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$outpu
t_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags
${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--
image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 3374 ;; |
3096 irix5* | irix6*) | 3375 irix5* | irix6*) |
3097 case $cc_basename in | 3376 case $cc_basename in |
3098 CC) | 3377 CC*) |
3099 # SGI C++ | 3378 # SGI C++ |
3100 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_obje
cts $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n
"$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_loca
tions -o $lib' | 3379 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_obje
cts $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n
"$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/
so_locations -o $lib' |
3101 | 3380 |
3102 # Archives containing C++ object files must be created using | 3381 # Archives containing C++ object files must be created using |
3103 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | 3382 # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
3104 # necessary to make sure instantiated templates are included | 3383 # necessary to make sure instantiated templates are included |
3105 # in the archive. | 3384 # in the archive. |
3106 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | 3385 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
3107 ;; | 3386 ;; |
3108 *) | 3387 *) |
3109 if test "$GXX" = yes; then | 3388 if test "$GXX" = yes; then |
3110 if test "$with_gnu_ld" = no; then | 3389 if test "$with_gnu_ld" = no; then |
3111 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objec
ts $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname
`test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_re
gistry ${wl}${objdir}/so_locations -o $lib' | 3390 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objec
ts $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname
`test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_re
gistry ${wl}${output_objdir}/so_locations -o $lib' |
3112 else | 3391 else |
3113 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objec
ts $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname
`test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | 3392 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objec
ts $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname
`test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
3114 fi | 3393 fi |
3115 fi | 3394 fi |
3116 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 3395 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
3117 ;; | 3396 ;; |
3118 esac | 3397 esac |
3119 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 3398 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3120 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3399 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3121 ;; | 3400 ;; |
3122 linux*) | 3401 linux* | k*bsd*-gnu) |
3123 case $cc_basename in | 3402 case $cc_basename in |
3124 KCC) | 3403 KCC*) |
3125 # Kuck and Associates, Inc. (KAI) C++ Compiler | 3404 # Kuck and Associates, Inc. (KAI) C++ Compiler |
3126 | 3405 |
3127 # KCC will only create a shared library if the output file | 3406 # KCC will only create a shared library if the output file |
3128 # ends with ".so" (or ".sl" for HP-UX), so rename the library | 3407 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
3129 # to its proper name (with version) after linking. | 3408 # to its proper name (with version) after linking. |
3130 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\'
's/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${temp
ext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compile
r_flags --soname $soname -o \$templib; mv \$templib $lib' | 3409 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\'
's/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${temp
ext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compile
r_flags --soname $soname -o \$templib; mv \$templib $lib' |
3131 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED
-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/
\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $
compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_s
ymbols; mv \$templib $lib' | 3410 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED
-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/
\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $
compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_s
ymbols; mv \$templib $lib' |
3132 # Commands to make compiler produce verbose output that lists | 3411 # Commands to make compiler produce verbose output that lists |
3133 # what "hidden" libraries, object files and flags are used when | 3412 # what "hidden" libraries, object files and flags are used when |
3134 # linking a shared library. | 3413 # linking a shared library. |
3135 # | 3414 # |
3136 # There doesn't appear to be a way to prevent this compiler from | 3415 # There doesn't appear to be a way to prevent this compiler from |
3137 # explicitly linking system object files so we need to strip them | 3416 # explicitly linking system object files so we need to strip them |
3138 # from the output so that they don't get included in the library | 3417 # from the output so that they don't get included in the library |
3139 # dependencies. | 3418 # dependencies. |
3140 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o li
bconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; f
or z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);
; *) list="$list $z";;esac; done; echo $list' | 3419 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o li
bconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; f
or z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);
; *) list="$list $z";;esac; done; echo $list' |
3141 | 3420 |
3142 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' | 3421 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' |
3143 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 3422 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
3144 | 3423 |
3145 # Archives containing C++ object files must be created using | 3424 # Archives containing C++ object files must be created using |
3146 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 3425 # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
3147 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | 3426 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
3148 ;; | 3427 ;; |
3149 icpc) | 3428 icpc*) |
3150 # Intel C++ | 3429 # Intel C++ |
3151 with_gnu_ld=yes | 3430 with_gnu_ld=yes |
| 3431 # version 8.0 and above of icpc choke on multiply defined symbols |
| 3432 # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 3433 # earlier do not add the objects themselves. |
| 3434 case `$CC -V 2>&1` in |
| 3435 *"Version 7."*) |
| 3436 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3437 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $l
ibobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-r
etain-symbols-file $wl$export_symbols -o $lib' |
| 3438 ;; |
| 3439 *) # Version 8.0 or newer |
| 3440 tmp_idyn= |
| 3441 case $host_cpu in |
| 3442 ia64*) tmp_idyn=' -i_dynamic';; |
| 3443 esac |
| 3444 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $de
plibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3445 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libo
bjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $
wl$export_symbols -o $lib' |
| 3446 ;; |
| 3447 esac |
3152 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3448 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3153 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $d
eplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
3154 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $lib
objs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-ret
ain-symbols-file $wl$export_symbols -o $lib' | |
3155 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 3449 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
3156 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 3450 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
3157 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$conveni
ence ${wl}--no-whole-archive' | 3451 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$conveni
ence ${wl}--no-whole-archive' |
3158 ;; | 3452 ;; |
3159 cxx) | 3453 pgCC* | pgcpp*) |
| 3454 # Portland Group C++ compiler |
| 3455 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $
libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $
lib' |
| 3456 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_ob
jects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$sona
me ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 3457 |
| 3458 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 3459 » _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 3460 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for con
v in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenien
ce,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 3461 ;; |
| 3462 cxx*) |
3160 # Compaq C++ | 3463 # Compaq C++ |
3161 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $d
eplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 3464 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $d
eplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
3162 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $lib
objs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib
${wl}-retain-symbols-file $wl$export_symbols' | 3465 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $lib
objs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib
${wl}-retain-symbols-file $wl$export_symbols' |
3163 | 3466 |
3164 runpath_var=LD_RUN_PATH | 3467 runpath_var=LD_RUN_PATH |
3165 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 3468 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
3166 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3469 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3167 | 3470 |
3168 # Commands to make compiler produce verbose output that lists | 3471 # Commands to make compiler produce verbose output that lists |
3169 # what "hidden" libraries, object files and flags are used when | 3472 # what "hidden" libraries, object files and flags are used when |
3170 # linking a shared library. | 3473 # linking a shared library. |
3171 # | 3474 # |
3172 # There doesn't appear to be a way to prevent this compiler from | 3475 # There doesn't appear to be a way to prevent this compiler from |
3173 # explicitly linking system object files so we need to strip them | 3476 # explicitly linking system object files so we need to strip them |
3174 # from the output so that they don't get included in the library | 3477 # from the output so that they don't get included in the library |
3175 # dependencies. | 3478 # dependencies. |
3176 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje
xt 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\
)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$lis
t $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 3479 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje
xt 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\
)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$lis
t $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
3177 ;; | 3480 ;; |
| 3481 *) |
| 3482 case `$CC -V 2>&1 | sed 5q` in |
| 3483 *Sun\ C*) |
| 3484 # Sun C++ 5.9 |
| 3485 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 3486 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$sona
me -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 3487 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag}
-h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_f
lags ${wl}-retain-symbols-file ${wl}$export_symbols' |
| 3488 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 3489 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_c
onvenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenien
ce=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole
-archive' |
| 3490 |
| 3491 # Not sure whether something based on |
| 3492 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 3493 # would be better. |
| 3494 output_verbose_link_cmd='echo' |
| 3495 |
| 3496 # Archives containing C++ object files must be created using |
| 3497 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 3498 # necessary to make sure instantiated templates are included |
| 3499 # in the archive. |
| 3500 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 3501 ;; |
| 3502 esac |
| 3503 ;; |
3178 esac | 3504 esac |
3179 ;; | 3505 ;; |
3180 lynxos*) | 3506 lynxos*) |
3181 # FIXME: insert proper C++ library support | 3507 # FIXME: insert proper C++ library support |
3182 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3508 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3183 ;; | 3509 ;; |
3184 m88k*) | 3510 m88k*) |
3185 # FIXME: insert proper C++ library support | 3511 # FIXME: insert proper C++ library support |
3186 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3512 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3187 ;; | 3513 ;; |
3188 mvs*) | 3514 mvs*) |
3189 case $cc_basename in | 3515 case $cc_basename in |
3190 cxx) | 3516 cxx*) |
3191 # FIXME: insert proper C++ library support | 3517 # FIXME: insert proper C++ library support |
3192 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3518 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3193 ;; | 3519 ;; |
3194 *) | 3520 *) |
3195 # FIXME: insert proper C++ library support | 3521 # FIXME: insert proper C++ library support |
3196 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3522 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3197 ;; | 3523 ;; |
3198 esac | 3524 esac |
3199 ;; | 3525 ;; |
3200 netbsd*) | 3526 netbsd* | netbsdelf*-gnu) |
3201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 3527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
3202 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects
$libobjs $deplibs $postdep_objects $linker_flags' | 3528 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects
$libobjs $deplibs $postdep_objects $linker_flags' |
3203 wlarc= | 3529 wlarc= |
3204 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 3530 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
3205 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 3531 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
3206 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 3532 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3207 fi | 3533 fi |
3208 # Workaround some broken pre-1.5 toolchains | 3534 # Workaround some broken pre-1.5 toolchains |
3209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep
conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 3535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep
conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
3210 ;; | 3536 ;; |
| 3537 openbsd2*) |
| 3538 # C++ shared libraries are fairly broken |
| 3539 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3540 ;; |
| 3541 openbsd*) |
| 3542 if test -f /usr/libexec/ld.so; then |
| 3543 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 3544 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3545 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 3546 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 3547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$h
ost_cpu" = "openbsd2.8-powerpc"; then |
| 3548 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_ob
jects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-fi
le,$export_symbols -o $lib' |
| 3549 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3550 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$conv
enience '"$wlarc"'--no-whole-archive' |
| 3551 fi |
| 3552 output_verbose_link_cmd='echo' |
| 3553 else |
| 3554 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3555 fi |
| 3556 ;; |
3211 osf3*) | 3557 osf3*) |
3212 case $cc_basename in | 3558 case $cc_basename in |
3213 KCC) | 3559 KCC*) |
3214 # Kuck and Associates, Inc. (KAI) C++ Compiler | 3560 # Kuck and Associates, Inc. (KAI) C++ Compiler |
3215 | 3561 |
3216 # KCC will only create a shared library if the output file | 3562 # KCC will only create a shared library if the output file |
3217 # ends with ".so" (or ".sl" for HP-UX), so rename the library | 3563 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
3218 # to its proper name (with version) after linking. | 3564 # to its proper name (with version) after linking. |
3219 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\'
's/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${temp
ext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compile
r_flags --soname $soname -o \$templib; mv \$templib $lib' | 3565 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\'
's/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${temp
ext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compile
r_flags --soname $soname -o \$templib; mv \$templib $lib' |
3220 | 3566 |
3221 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 3567 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
3222 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3568 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3223 | 3569 |
3224 # Archives containing C++ object files must be created using | 3570 # Archives containing C++ object files must be created using |
3225 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 3571 # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
3226 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | 3572 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
3227 | 3573 |
3228 ;; | 3574 ;; |
3229 RCC) | 3575 RCC*) |
3230 # Rational C++ 2.4.1 | 3576 # Rational C++ 2.4.1 |
3231 # FIXME: insert proper C++ library support | 3577 # FIXME: insert proper C++ library support |
3232 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3578 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3233 ;; | 3579 ;; |
3234 cxx) | 3580 cxx*) |
3235 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\
*' | 3581 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\
*' |
3236 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pre
dep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $son
ame `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry
${objdir}/so_locations -o $lib' | 3582 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pre
dep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $son
ame `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry
${output_objdir}/so_locations -o $lib' |
3237 | 3583 |
3238 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 3584 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3239 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3585 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3240 | 3586 |
3241 # Commands to make compiler produce verbose output that lists | 3587 # Commands to make compiler produce verbose output that lists |
3242 # what "hidden" libraries, object files and flags are used when | 3588 # what "hidden" libraries, object files and flags are used when |
3243 # linking a shared library. | 3589 # linking a shared library. |
3244 # | 3590 # |
3245 # There doesn't appear to be a way to prevent this compiler from | 3591 # There doesn't appear to be a way to prevent this compiler from |
3246 # explicitly linking system object files so we need to strip them | 3592 # explicitly linking system object files so we need to strip them |
3247 # from the output so that they don't get included in the library | 3593 # from the output so that they don't get included in the library |
3248 # dependencies. | 3594 # dependencies. |
3249 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje
xt 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld
.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$obj
ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 3595 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje
xt 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld
.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$obj
ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
3250 ;; | 3596 ;; |
3251 *) | 3597 *) |
3252 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 3598 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
3253 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl
}\*' | 3599 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl
}\*' |
3254 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefin
ed_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl
}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$vers
tring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | 3600 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefin
ed_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl
}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$vers
tring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
3255 | 3601 |
3256 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir
' | 3602 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir
' |
3257 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3603 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3258 | 3604 |
3259 # Commands to make compiler produce verbose output that lists | 3605 # Commands to make compiler produce verbose output that lists |
3260 # what "hidden" libraries, object files and flags are used when | 3606 # what "hidden" libraries, object files and flags are used when |
3261 # linking a shared library. | 3607 # linking a shared library. |
3262 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1
| grep "\-L"' | 3608 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1
| grep "\-L"' |
3263 | 3609 |
3264 else | 3610 else |
3265 # FIXME: insert proper C++ library support | 3611 # FIXME: insert proper C++ library support |
3266 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3612 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3267 fi | 3613 fi |
3268 ;; | 3614 ;; |
3269 esac | 3615 esac |
3270 ;; | 3616 ;; |
3271 osf4* | osf5*) | 3617 osf4* | osf5*) |
3272 case $cc_basename in | 3618 case $cc_basename in |
3273 KCC) | 3619 KCC*) |
3274 # Kuck and Associates, Inc. (KAI) C++ Compiler | 3620 # Kuck and Associates, Inc. (KAI) C++ Compiler |
3275 | 3621 |
3276 # KCC will only create a shared library if the output file | 3622 # KCC will only create a shared library if the output file |
3277 # ends with ".so" (or ".sl" for HP-UX), so rename the library | 3623 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
3278 # to its proper name (with version) after linking. | 3624 # to its proper name (with version) after linking. |
3279 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\'
's/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${temp
ext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compile
r_flags --soname $soname -o \$templib; mv \$templib $lib' | 3625 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\'
's/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${temp
ext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compile
r_flags --soname $soname -o \$templib; mv \$templib $lib' |
3280 | 3626 |
3281 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 3627 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
3282 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3628 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3283 | 3629 |
3284 # Archives containing C++ object files must be created using | 3630 # Archives containing C++ object files must be created using |
3285 # the KAI C++ compiler. | 3631 # the KAI C++ compiler. |
3286 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' | 3632 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
3287 ;; | 3633 ;; |
3288 RCC) | 3634 RCC*) |
3289 # Rational C++ 2.4.1 | 3635 # Rational C++ 2.4.1 |
3290 # FIXME: insert proper C++ library support | 3636 # FIXME: insert proper C++ library support |
3291 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3637 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3292 ;; | 3638 ;; |
3293 cxx) | 3639 cxx*) |
3294 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 3640 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
3295 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pre
dep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $so
name `test -n "$verstring" && echo -set_version $verstring` -update_registry ${o
bjdir}/so_locations -o $lib' | 3641 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pre
dep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $so
name `test -n "$verstring" && echo -set_version $verstring` -update_registry ${o
utput_objdir}/so_locations -o $lib' |
3296 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`;
do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 3642 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`;
do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
3297 echo "-hidden">> $lib.exp~ | 3643 echo "-hidden">> $lib.exp~ |
3298 » $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $po
stdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `te
st -n "$verstring" && echo -set_version»$verstring` -update_registry $objdir/so_
locations -o $lib~ | 3644 » $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $po
stdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `te
st -n "$verstring" && echo -set_version»$verstring` -update_registry ${output_ob
jdir}/so_locations -o $lib~ |
3299 $rm $lib.exp' | 3645 $rm $lib.exp' |
3300 | 3646 |
3301 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 3647 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
3302 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3648 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3303 | 3649 |
3304 # Commands to make compiler produce verbose output that lists | 3650 # Commands to make compiler produce verbose output that lists |
3305 # what "hidden" libraries, object files and flags are used when | 3651 # what "hidden" libraries, object files and flags are used when |
3306 # linking a shared library. | 3652 # linking a shared library. |
3307 # | 3653 # |
3308 # There doesn't appear to be a way to prevent this compiler from | 3654 # There doesn't appear to be a way to prevent this compiler from |
3309 # explicitly linking system object files so we need to strip them | 3655 # explicitly linking system object files so we need to strip them |
3310 # from the output so that they don't get included in the library | 3656 # from the output so that they don't get included in the library |
3311 # dependencies. | 3657 # dependencies. |
3312 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje
xt 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld
.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$obj
ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 3658 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje
xt 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld
.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$obj
ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
3313 ;; | 3659 ;; |
3314 *) | 3660 *) |
3315 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 3661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
3316 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl
}\*' | 3662 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl
}\*' |
3317 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefine
d_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}
-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version
${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | 3663 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefine
d_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}
-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version
${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $li
b' |
3318 | 3664 |
3319 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir
' | 3665 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir
' |
3320 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3666 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3321 | 3667 |
3322 # Commands to make compiler produce verbose output that lists | 3668 # Commands to make compiler produce verbose output that lists |
3323 # what "hidden" libraries, object files and flags are used when | 3669 # what "hidden" libraries, object files and flags are used when |
3324 # linking a shared library. | 3670 # linking a shared library. |
3325 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1
| grep "\-L"' | 3671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1
| grep "\-L"' |
3326 | 3672 |
3327 else | 3673 else |
3328 # FIXME: insert proper C++ library support | 3674 # FIXME: insert proper C++ library support |
3329 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3675 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3330 fi | 3676 fi |
3331 ;; | 3677 ;; |
3332 esac | 3678 esac |
3333 ;; | 3679 ;; |
3334 psos*) | 3680 psos*) |
3335 # FIXME: insert proper C++ library support | 3681 # FIXME: insert proper C++ library support |
3336 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3682 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3337 ;; | 3683 ;; |
3338 sco*) | |
3339 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
3340 case $cc_basename in | |
3341 CC) | |
3342 # FIXME: insert proper C++ library support | |
3343 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3344 ;; | |
3345 *) | |
3346 # FIXME: insert proper C++ library support | |
3347 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3348 ;; | |
3349 esac | |
3350 ;; | |
3351 sunos4*) | 3684 sunos4*) |
3352 case $cc_basename in | 3685 case $cc_basename in |
3353 CC) | 3686 CC*) |
3354 # Sun C++ 4.x | 3687 # Sun C++ 4.x |
3355 # FIXME: insert proper C++ library support | 3688 # FIXME: insert proper C++ library support |
3356 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3689 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3357 ;; | 3690 ;; |
3358 lcc) | 3691 lcc*) |
3359 # Lucid | 3692 # Lucid |
3360 # FIXME: insert proper C++ library support | 3693 # FIXME: insert proper C++ library support |
3361 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3694 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3362 ;; | 3695 ;; |
3363 *) | 3696 *) |
3364 # FIXME: insert proper C++ library support | 3697 # FIXME: insert proper C++ library support |
3365 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3698 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3366 ;; | 3699 ;; |
3367 esac | 3700 esac |
3368 ;; | 3701 ;; |
3369 solaris*) | 3702 solaris*) |
3370 case $cc_basename in | 3703 case $cc_basename in |
3371 CC) | 3704 CC*) |
3372 # Sun C++ 4.2, 5.x and Centerline C++ | 3705 # Sun C++ 4.2, 5.x and Centerline C++ |
| 3706 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes |
3373 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 3707 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
3374 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h
$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla
gs' | 3708 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$sonam
e -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3375 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat
$export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $
lib.exp~ | 3709 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat
$export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $
lib.exp~ |
3376 » $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o
$lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib
.exp' | 3710 » $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $
predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
3377 | 3711 |
3378 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 3712 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
3379 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 3713 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3380 case $host_os in | 3714 case $host_os in |
3381 » solaris2.[0-5] | solaris2.[0-5].*) ;; | 3715 » solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
3382 *) | 3716 *) |
3383 » # The C++ compiler is used as linker so we must use $wl | 3717 » # The compiler driver will combine and reorder linker options, |
3384 » # flag to pass the commands to the underlying system | 3718 » # but understands `-z linker_flag'. |
3385 » # linker. | |
3386 # Supported since Solaris 2.6 (maybe 2.5.1?) | 3719 # Supported since Solaris 2.6 (maybe 2.5.1?) |
3387 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$
convenience ${wl}-z ${wl}defaultextract' | 3720 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenienc
e -z defaultextract' |
3388 ;; | 3721 ;; |
3389 esac | 3722 esac |
3390 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 3723 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
3391 | 3724 |
3392 » # Commands to make compiler produce verbose output that lists | 3725 » output_verbose_link_cmd='echo' |
3393 » # what "hidden" libraries, object files and flags are used when | |
3394 » # linking a shared library. | |
3395 » # | |
3396 » # There doesn't appear to be a way to prevent this compiler from | |
3397 » # explicitly linking system object files so we need to strip them | |
3398 » # from the output so that they don't get included in the library | |
3399 » # dependencies. | |
3400 » output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>
&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$obje
xt) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
3401 | 3726 |
3402 # Archives containing C++ object files must be created using | 3727 # Archives containing C++ object files must be created using |
3403 # "CC -xar", where "CC" is the Sun C++ compiler. This is | 3728 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
3404 # necessary to make sure instantiated templates are included | 3729 # necessary to make sure instantiated templates are included |
3405 # in the archive. | 3730 # in the archive. |
3406 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | 3731 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
3407 ;; | 3732 ;; |
3408 gcx) | 3733 gcx*) |
3409 # Green Hills C++ Compiler | 3734 # Green Hills C++ Compiler |
3410 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $d
eplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 3735 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $d
eplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
3411 | 3736 |
3412 # The C++ compiler must be used to create the archive. | 3737 # The C++ compiler must be used to create the archive. |
3413 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $o
ldobjs' | 3738 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $o
ldobjs' |
3414 ;; | 3739 ;; |
3415 *) | 3740 *) |
3416 # GNU C++ compiler with Solaris linker | 3741 # GNU C++ compiler with Solaris linker |
3417 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 3742 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
3418 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | 3743 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
(...skipping 13 matching lines...) Expand all Loading... |
3432 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp
~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };"
>> $lib.exp~ | 3757 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp
~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };"
>> $lib.exp~ |
3433 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 3758 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
3434 | 3759 |
3435 # Commands to make compiler produce verbose output that lists | 3760 # Commands to make compiler produce verbose output that lists |
3436 # what "hidden" libraries, object files and flags are used when | 3761 # what "hidden" libraries, object files and flags are used when |
3437 # linking a shared library. | 3762 # linking a shared library. |
3438 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | g
rep \"\-L\"" | 3763 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | g
rep \"\-L\"" |
3439 fi | 3764 fi |
3440 | 3765 |
3441 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | 3766 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
| 3767 case $host_os in |
| 3768 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 3769 *) |
| 3770 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$
convenience ${wl}-z ${wl}defaultextract' |
| 3771 ;; |
| 3772 esac |
3442 fi | 3773 fi |
3443 ;; | 3774 ;; |
3444 esac | 3775 esac |
3445 ;; | 3776 ;; |
3446 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) | 3777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco
3.2v5.0.[[024]]*) |
| 3778 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
3447 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3779 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3780 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3781 runpath_var='LD_RUN_PATH' |
| 3782 |
| 3783 case $cc_basename in |
| 3784 CC*) |
| 3785 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs
$deplibs $compiler_flags' |
| 3786 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_sym
bols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3787 ;; |
| 3788 *) |
| 3789 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $li
bobjs $deplibs $compiler_flags' |
| 3790 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$expor
t_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3791 ;; |
| 3792 esac |
| 3793 ;; |
| 3794 sysv5* | sco3.2v5* | sco5v6*) |
| 3795 # Note: We can NOT use -z defs as we might desire, because we do not |
| 3796 # link with -lc, and that would cause any symbols used from libc to |
| 3797 # always be unresolved, which means just about no library would |
| 3798 # ever link correctly. If we're not using GNU ld we use -z text |
| 3799 # though, which does catch some bad symbols but isn't as heavy-handed |
| 3800 # as -z defs. |
| 3801 # For security reasons, it is highly recommended that you always |
| 3802 # use absolute paths for naming shared libraries, and exclude the |
| 3803 # DT_RUNPATH tag from executables and libraries. But doing so |
| 3804 # requires that you compile everything twice, which is a pain. |
| 3805 # So that behaviour is only enabled if SCOABSPATH is set to a |
| 3806 # non-empty value in the environment. Most likely only useful for |
| 3807 # creating official distributions of packages. |
| 3808 # This is a hack until libtool officially supports absolute path |
| 3809 # names for shared libraries. |
| 3810 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 3811 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 3812 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3813 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3814 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo
${wl}-R,$libdir`' |
| 3815 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 3816 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 3817 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 3818 runpath_var='LD_RUN_PATH' |
| 3819 |
| 3820 case $cc_basename in |
| 3821 CC*) |
| 3822 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install
_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3823 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_sym
bols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs
$compiler_flags' |
| 3824 ;; |
| 3825 *) |
| 3826 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${in
stall_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3827 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$expor
t_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $de
plibs $compiler_flags' |
| 3828 ;; |
| 3829 esac |
3448 ;; | 3830 ;; |
3449 tandem*) | 3831 tandem*) |
3450 case $cc_basename in | 3832 case $cc_basename in |
3451 NCC) | 3833 NCC*) |
3452 # NonStop-UX NCC 3.20 | 3834 # NonStop-UX NCC 3.20 |
3453 # FIXME: insert proper C++ library support | 3835 # FIXME: insert proper C++ library support |
3454 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3836 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3455 ;; | 3837 ;; |
3456 *) | 3838 *) |
3457 # FIXME: insert proper C++ library support | 3839 # FIXME: insert proper C++ library support |
3458 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3840 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3459 ;; | 3841 ;; |
3460 esac | 3842 esac |
3461 ;; | 3843 ;; |
(...skipping 12 matching lines...) Expand all Loading... |
3474 _LT_AC_TAGVAR(GCC, $1)="$GXX" | 3856 _LT_AC_TAGVAR(GCC, $1)="$GXX" |
3475 _LT_AC_TAGVAR(LD, $1)="$LD" | 3857 _LT_AC_TAGVAR(LD, $1)="$LD" |
3476 | 3858 |
3477 AC_LIBTOOL_POSTDEP_PREDEP($1) | 3859 AC_LIBTOOL_POSTDEP_PREDEP($1) |
3478 AC_LIBTOOL_PROG_COMPILER_PIC($1) | 3860 AC_LIBTOOL_PROG_COMPILER_PIC($1) |
3479 AC_LIBTOOL_PROG_CC_C_O($1) | 3861 AC_LIBTOOL_PROG_CC_C_O($1) |
3480 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | 3862 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
3481 AC_LIBTOOL_PROG_LD_SHLIBS($1) | 3863 AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3482 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 3864 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3483 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 3865 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3484 AC_LIBTOOL_SYS_LIB_STRIP | |
3485 AC_LIBTOOL_DLOPEN_SELF($1) | |
3486 | 3866 |
3487 AC_LIBTOOL_CONFIG($1) | 3867 AC_LIBTOOL_CONFIG($1) |
3488 | 3868 |
3489 AC_LANG_POP | 3869 AC_LANG_POP |
3490 CC=$lt_save_CC | 3870 CC=$lt_save_CC |
3491 LDCXX=$LD | 3871 LDCXX=$LD |
3492 LD=$lt_save_LD | 3872 LD=$lt_save_LD |
3493 GCC=$lt_save_GCC | 3873 GCC=$lt_save_GCC |
3494 with_gnu_ldcxx=$with_gnu_ld | 3874 with_gnu_ldcxx=$with_gnu_ld |
3495 with_gnu_ld=$lt_save_with_gnu_ld | 3875 with_gnu_ld=$lt_save_with_gnu_ld |
3496 lt_cv_path_LDCXX=$lt_cv_path_LD | 3876 lt_cv_path_LDCXX=$lt_cv_path_LD |
3497 lt_cv_path_LD=$lt_save_path_LD | 3877 lt_cv_path_LD=$lt_save_path_LD |
3498 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 3878 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
3499 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 3879 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
3500 ])# AC_LIBTOOL_LANG_CXX_CONFIG | 3880 ])# AC_LIBTOOL_LANG_CXX_CONFIG |
3501 | 3881 |
3502 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | 3882 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
3503 # ------------------------ | 3883 # ------------------------------------ |
3504 # Figure out "hidden" library dependencies from verbose | 3884 # Figure out "hidden" library dependencies from verbose |
3505 # compiler output when linking a shared library. | 3885 # compiler output when linking a shared library. |
3506 # Parse the compiler output and extract the necessary | 3886 # Parse the compiler output and extract the necessary |
3507 # objects, libraries and library flags. | 3887 # objects, libraries and library flags. |
3508 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ | 3888 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], |
| 3889 [AC_REQUIRE([LT_AC_PROG_SED])dnl |
3509 dnl we can't use the lt_simple_compile_test_code here, | 3890 dnl we can't use the lt_simple_compile_test_code here, |
3510 dnl because it contains code intended for an executable, | 3891 dnl because it contains code intended for an executable, |
3511 dnl not a library. It's possible we should let each | 3892 dnl not a library. It's possible we should let each |
3512 dnl tag define a new lt_????_link_test_code variable, | 3893 dnl tag define a new lt_????_link_test_code variable, |
3513 dnl but it's only used here... | 3894 dnl but it's only used here... |
3514 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF | 3895 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF |
3515 int a; | 3896 int a; |
3516 void foo (void) { a = 0; } | 3897 void foo (void) { a = 0; } |
3517 EOF | 3898 EOF |
3518 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF | 3899 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF |
(...skipping 28 matching lines...) Expand all Loading... |
3547 # Parse the compiler output and extract the necessary | 3928 # Parse the compiler output and extract the necessary |
3548 # objects, libraries and library flags. | 3929 # objects, libraries and library flags. |
3549 | 3930 |
3550 # Sentinel used to keep track of whether or not we are before | 3931 # Sentinel used to keep track of whether or not we are before |
3551 # the conftest object file. | 3932 # the conftest object file. |
3552 pre_test_object_deps_done=no | 3933 pre_test_object_deps_done=no |
3553 | 3934 |
3554 # The `*' in the case matches for architectures that use `case' in | 3935 # The `*' in the case matches for architectures that use `case' in |
3555 # $output_verbose_cmd can trigger glob expansion during the loop | 3936 # $output_verbose_cmd can trigger glob expansion during the loop |
3556 # eval without this substitution. | 3937 # eval without this substitution. |
3557 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no
_glob_subst\"`" | 3938 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glo
b_subst"` |
3558 | 3939 |
3559 for p in `eval $output_verbose_link_cmd`; do | 3940 for p in `eval $output_verbose_link_cmd`; do |
3560 case $p in | 3941 case $p in |
3561 | 3942 |
3562 -L* | -R* | -l*) | 3943 -L* | -R* | -l*) |
3563 # Some compilers place space between "-{L,R}" and the path. | 3944 # Some compilers place space between "-{L,R}" and the path. |
3564 # Remove the space. | 3945 # Remove the space. |
3565 if test $p = "-L" \ | 3946 if test $p = "-L" \ |
3566 || test $p = "-R"; then | 3947 || test $p = "-R"; then |
3567 prev=$p | 3948 prev=$p |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3623 done | 4004 done |
3624 | 4005 |
3625 # Clean up. | 4006 # Clean up. |
3626 rm -f a.out a.exe | 4007 rm -f a.out a.exe |
3627 else | 4008 else |
3628 echo "libtool.m4: error: problem compiling $1 test program" | 4009 echo "libtool.m4: error: problem compiling $1 test program" |
3629 fi | 4010 fi |
3630 | 4011 |
3631 $rm -f confest.$objext | 4012 $rm -f confest.$objext |
3632 | 4013 |
| 4014 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= |
| 4015 if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
| 4016 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_l
ib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 4017 fi |
| 4018 |
| 4019 # PORTME: override above test on systems where it is broken |
| 4020 ifelse([$1],[CXX], |
| 4021 [case $host_os in |
| 4022 interix[[3-9]]*) |
| 4023 # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 4024 # hack all around it, let's just trust "g++" to DTRT. |
| 4025 _LT_AC_TAGVAR(predep_objects,$1)= |
| 4026 _LT_AC_TAGVAR(postdep_objects,$1)= |
| 4027 _LT_AC_TAGVAR(postdeps,$1)= |
| 4028 ;; |
| 4029 |
| 4030 linux*) |
| 4031 case `$CC -V 2>&1 | sed 5q` in |
| 4032 *Sun\ C*) |
| 4033 # Sun C++ 5.9 |
| 4034 # |
| 4035 # The more standards-conforming stlport4 library is |
| 4036 # incompatible with the Cstd library. Avoid specifying |
| 4037 # it if it's in CXXFLAGS. Ignore libCrun as |
| 4038 # -library=stlport4 depends on it. |
| 4039 case " $CXX $CXXFLAGS " in |
| 4040 *" -library=stlport4 "*) |
| 4041 solaris_use_stlport4=yes |
| 4042 ;; |
| 4043 esac |
| 4044 if test "$solaris_use_stlport4" != yes; then |
| 4045 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' |
| 4046 fi |
| 4047 ;; |
| 4048 esac |
| 4049 ;; |
| 4050 |
| 4051 solaris*) |
| 4052 case $cc_basename in |
| 4053 CC*) |
| 4054 # The more standards-conforming stlport4 library is |
| 4055 # incompatible with the Cstd library. Avoid specifying |
| 4056 # it if it's in CXXFLAGS. Ignore libCrun as |
| 4057 # -library=stlport4 depends on it. |
| 4058 case " $CXX $CXXFLAGS " in |
| 4059 *" -library=stlport4 "*) |
| 4060 solaris_use_stlport4=yes |
| 4061 ;; |
| 4062 esac |
| 4063 |
| 4064 # Adding this requires a known-good setup of shared libraries for |
| 4065 # Sun compiler versions before 5.6, else PIC objects from an old |
| 4066 # archive will be linked into the output, leading to subtle bugs. |
| 4067 if test "$solaris_use_stlport4" != yes; then |
| 4068 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' |
| 4069 fi |
| 4070 ;; |
| 4071 esac |
| 4072 ;; |
| 4073 esac |
| 4074 ]) |
3633 case " $_LT_AC_TAGVAR(postdeps, $1) " in | 4075 case " $_LT_AC_TAGVAR(postdeps, $1) " in |
3634 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; | 4076 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
3635 esac | 4077 esac |
3636 ])# AC_LIBTOOL_POSTDEP_PREDEP | 4078 ])# AC_LIBTOOL_POSTDEP_PREDEP |
3637 | 4079 |
3638 # AC_LIBTOOL_LANG_F77_CONFIG | 4080 # AC_LIBTOOL_LANG_F77_CONFIG |
3639 # ------------------------ | 4081 # -------------------------- |
3640 # Ensure that the configuration vars for the C compiler are | 4082 # Ensure that the configuration vars for the C compiler are |
3641 # suitably defined. Those variables are subsequently used by | 4083 # suitably defined. Those variables are subsequently used by |
3642 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 4084 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
3643 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) | 4085 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) |
3644 AC_DEFUN([_LT_AC_LANG_F77_CONFIG], | 4086 AC_DEFUN([_LT_AC_LANG_F77_CONFIG], |
3645 [AC_REQUIRE([AC_PROG_F77]) | 4087 [AC_REQUIRE([AC_PROG_F77]) |
3646 AC_LANG_PUSH(Fortran 77) | 4088 AC_LANG_PUSH(Fortran 77) |
3647 | 4089 |
3648 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 4090 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3649 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | 4091 _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
(...skipping 15 matching lines...) Expand all Loading... |
3665 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 4107 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
3666 | 4108 |
3667 # Source file extension for f77 test sources. | 4109 # Source file extension for f77 test sources. |
3668 ac_ext=f | 4110 ac_ext=f |
3669 | 4111 |
3670 # Object file extension for compiled f77 test sources. | 4112 # Object file extension for compiled f77 test sources. |
3671 objext=o | 4113 objext=o |
3672 _LT_AC_TAGVAR(objext, $1)=$objext | 4114 _LT_AC_TAGVAR(objext, $1)=$objext |
3673 | 4115 |
3674 # Code to be used in simple compile tests | 4116 # Code to be used in simple compile tests |
3675 lt_simple_compile_test_code=" subroutine t\n return\n end\n" | 4117 lt_simple_compile_test_code="\ |
| 4118 subroutine t |
| 4119 return |
| 4120 end |
| 4121 " |
3676 | 4122 |
3677 # Code to be used in simple link tests | 4123 # Code to be used in simple link tests |
3678 lt_simple_link_test_code=" program t\n end\n" | 4124 lt_simple_link_test_code="\ |
| 4125 program t |
| 4126 end |
| 4127 " |
3679 | 4128 |
3680 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 4129 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3681 _LT_AC_SYS_COMPILER | 4130 _LT_AC_SYS_COMPILER |
3682 | 4131 |
| 4132 # save warnings/boilerplate of simple test code |
| 4133 _LT_COMPILER_BOILERPLATE |
| 4134 _LT_LINKER_BOILERPLATE |
| 4135 |
3683 # Allow CC to be a program name with arguments. | 4136 # Allow CC to be a program name with arguments. |
3684 lt_save_CC="$CC" | 4137 lt_save_CC="$CC" |
3685 CC=${F77-"f77"} | 4138 CC=${F77-"f77"} |
3686 compiler=$CC | 4139 compiler=$CC |
3687 _LT_AC_TAGVAR(compiler, $1)=$CC | 4140 _LT_AC_TAGVAR(compiler, $1)=$CC |
3688 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 4141 _LT_CC_BASENAME([$compiler]) |
3689 | 4142 |
3690 AC_MSG_CHECKING([if libtool supports shared libraries]) | 4143 AC_MSG_CHECKING([if libtool supports shared libraries]) |
3691 AC_MSG_RESULT([$can_build_shared]) | 4144 AC_MSG_RESULT([$can_build_shared]) |
3692 | 4145 |
3693 AC_MSG_CHECKING([whether to build shared libraries]) | 4146 AC_MSG_CHECKING([whether to build shared libraries]) |
3694 test "$can_build_shared" = "no" && enable_shared=no | 4147 test "$can_build_shared" = "no" && enable_shared=no |
3695 | 4148 |
3696 # On AIX, shared libraries and static libraries use the same namespace, and | 4149 # On AIX, shared libraries and static libraries use the same namespace, and |
3697 # are all built from PIC. | 4150 # are all built from PIC. |
3698 case "$host_os" in | 4151 case $host_os in |
3699 aix3*) | 4152 aix3*) |
3700 test "$enable_shared" = yes && enable_static=no | 4153 test "$enable_shared" = yes && enable_static=no |
3701 if test -n "$RANLIB"; then | 4154 if test -n "$RANLIB"; then |
3702 archive_cmds="$archive_cmds~\$RANLIB \$lib" | 4155 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
3703 postinstall_cmds='$RANLIB $lib' | 4156 postinstall_cmds='$RANLIB $lib' |
3704 fi | 4157 fi |
3705 ;; | 4158 ;; |
3706 aix4* | aix5*) | 4159 aix[[4-9]]*) |
3707 test "$enable_shared" = yes && enable_static=no | 4160 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 4161 test "$enable_shared" = yes && enable_static=no |
| 4162 fi |
3708 ;; | 4163 ;; |
3709 esac | 4164 esac |
3710 AC_MSG_RESULT([$enable_shared]) | 4165 AC_MSG_RESULT([$enable_shared]) |
3711 | 4166 |
3712 AC_MSG_CHECKING([whether to build static libraries]) | 4167 AC_MSG_CHECKING([whether to build static libraries]) |
3713 # Make sure either enable_shared or enable_static is yes. | 4168 # Make sure either enable_shared or enable_static is yes. |
3714 test "$enable_shared" = yes || enable_static=yes | 4169 test "$enable_shared" = yes || enable_static=yes |
3715 AC_MSG_RESULT([$enable_static]) | 4170 AC_MSG_RESULT([$enable_static]) |
3716 | 4171 |
3717 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | |
3718 | |
3719 _LT_AC_TAGVAR(GCC, $1)="$G77" | 4172 _LT_AC_TAGVAR(GCC, $1)="$G77" |
3720 _LT_AC_TAGVAR(LD, $1)="$LD" | 4173 _LT_AC_TAGVAR(LD, $1)="$LD" |
3721 | 4174 |
3722 AC_LIBTOOL_PROG_COMPILER_PIC($1) | 4175 AC_LIBTOOL_PROG_COMPILER_PIC($1) |
3723 AC_LIBTOOL_PROG_CC_C_O($1) | 4176 AC_LIBTOOL_PROG_CC_C_O($1) |
3724 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | 4177 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
3725 AC_LIBTOOL_PROG_LD_SHLIBS($1) | 4178 AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3726 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 4179 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3727 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 4180 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3728 AC_LIBTOOL_SYS_LIB_STRIP | |
3729 | |
3730 | 4181 |
3731 AC_LIBTOOL_CONFIG($1) | 4182 AC_LIBTOOL_CONFIG($1) |
3732 | 4183 |
3733 AC_LANG_POP | 4184 AC_LANG_POP |
3734 CC="$lt_save_CC" | 4185 CC="$lt_save_CC" |
3735 ])# AC_LIBTOOL_LANG_F77_CONFIG | 4186 ])# AC_LIBTOOL_LANG_F77_CONFIG |
3736 | 4187 |
3737 | 4188 |
3738 # AC_LIBTOOL_LANG_GCJ_CONFIG | 4189 # AC_LIBTOOL_LANG_GCJ_CONFIG |
3739 # -------------------------- | 4190 # -------------------------- |
3740 # Ensure that the configuration vars for the C compiler are | 4191 # Ensure that the configuration vars for the C compiler are |
3741 # suitably defined. Those variables are subsequently used by | 4192 # suitably defined. Those variables are subsequently used by |
3742 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 4193 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
3743 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) | 4194 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) |
3744 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], | 4195 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], |
3745 [AC_LANG_SAVE | 4196 [AC_LANG_SAVE |
3746 | 4197 |
3747 # Source file extension for Java test sources. | 4198 # Source file extension for Java test sources. |
3748 ac_ext=java | 4199 ac_ext=java |
3749 | 4200 |
3750 # Object file extension for compiled Java test sources. | 4201 # Object file extension for compiled Java test sources. |
3751 objext=o | 4202 objext=o |
3752 _LT_AC_TAGVAR(objext, $1)=$objext | 4203 _LT_AC_TAGVAR(objext, $1)=$objext |
3753 | 4204 |
3754 # Code to be used in simple compile tests | 4205 # Code to be used in simple compile tests |
3755 lt_simple_compile_test_code="class foo {}\n" | 4206 lt_simple_compile_test_code="class foo {}" |
3756 | 4207 |
3757 # Code to be used in simple link tests | 4208 # Code to be used in simple link tests |
3758 lt_simple_link_test_code='public class conftest { public static void main(String
[] argv) {}; }\n' | 4209 lt_simple_link_test_code='public class conftest { public static void main(String
[[]] argv) {}; }' |
3759 | 4210 |
3760 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 4211 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3761 _LT_AC_SYS_COMPILER | 4212 _LT_AC_SYS_COMPILER |
3762 | 4213 |
| 4214 # save warnings/boilerplate of simple test code |
| 4215 _LT_COMPILER_BOILERPLATE |
| 4216 _LT_LINKER_BOILERPLATE |
| 4217 |
3763 # Allow CC to be a program name with arguments. | 4218 # Allow CC to be a program name with arguments. |
3764 lt_save_CC="$CC" | 4219 lt_save_CC="$CC" |
3765 CC=${GCJ-"gcj"} | 4220 CC=${GCJ-"gcj"} |
3766 compiler=$CC | 4221 compiler=$CC |
3767 _LT_AC_TAGVAR(compiler, $1)=$CC | 4222 _LT_AC_TAGVAR(compiler, $1)=$CC |
| 4223 _LT_CC_BASENAME([$compiler]) |
3768 | 4224 |
3769 # GCJ did not exist at the time GCC didn't implicitly link libc in. | 4225 # GCJ did not exist at the time GCC didn't implicitly link libc in. |
3770 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 4226 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3771 | 4227 |
| 4228 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 4229 |
3772 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | 4230 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
3773 AC_LIBTOOL_PROG_COMPILER_PIC($1) | 4231 AC_LIBTOOL_PROG_COMPILER_PIC($1) |
3774 AC_LIBTOOL_PROG_CC_C_O($1) | 4232 AC_LIBTOOL_PROG_CC_C_O($1) |
3775 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | 4233 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
3776 AC_LIBTOOL_PROG_LD_SHLIBS($1) | 4234 AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3777 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 4235 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3778 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 4236 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3779 AC_LIBTOOL_SYS_LIB_STRIP | |
3780 AC_LIBTOOL_DLOPEN_SELF($1) | |
3781 | 4237 |
3782 AC_LIBTOOL_CONFIG($1) | 4238 AC_LIBTOOL_CONFIG($1) |
3783 | 4239 |
3784 AC_LANG_RESTORE | 4240 AC_LANG_RESTORE |
3785 CC="$lt_save_CC" | 4241 CC="$lt_save_CC" |
3786 ])# AC_LIBTOOL_LANG_GCJ_CONFIG | 4242 ])# AC_LIBTOOL_LANG_GCJ_CONFIG |
3787 | 4243 |
3788 | 4244 |
3789 # AC_LIBTOOL_LANG_RC_CONFIG | 4245 # AC_LIBTOOL_LANG_RC_CONFIG |
3790 # -------------------------- | 4246 # ------------------------- |
3791 # Ensure that the configuration vars for the Windows resource compiler are | 4247 # Ensure that the configuration vars for the Windows resource compiler are |
3792 # suitably defined. Those variables are subsequently used by | 4248 # suitably defined. Those variables are subsequently used by |
3793 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 4249 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
3794 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) | 4250 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) |
3795 AC_DEFUN([_LT_AC_LANG_RC_CONFIG], | 4251 AC_DEFUN([_LT_AC_LANG_RC_CONFIG], |
3796 [AC_LANG_SAVE | 4252 [AC_LANG_SAVE |
3797 | 4253 |
3798 # Source file extension for RC test sources. | 4254 # Source file extension for RC test sources. |
3799 ac_ext=rc | 4255 ac_ext=rc |
3800 | 4256 |
3801 # Object file extension for compiled RC test sources. | 4257 # Object file extension for compiled RC test sources. |
3802 objext=o | 4258 objext=o |
3803 _LT_AC_TAGVAR(objext, $1)=$objext | 4259 _LT_AC_TAGVAR(objext, $1)=$objext |
3804 | 4260 |
3805 # Code to be used in simple compile tests | 4261 # Code to be used in simple compile tests |
3806 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | 4262 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
3807 | 4263 |
3808 # Code to be used in simple link tests | 4264 # Code to be used in simple link tests |
3809 lt_simple_link_test_code="$lt_simple_compile_test_code" | 4265 lt_simple_link_test_code="$lt_simple_compile_test_code" |
3810 | 4266 |
3811 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 4267 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3812 _LT_AC_SYS_COMPILER | 4268 _LT_AC_SYS_COMPILER |
3813 | 4269 |
| 4270 # save warnings/boilerplate of simple test code |
| 4271 _LT_COMPILER_BOILERPLATE |
| 4272 _LT_LINKER_BOILERPLATE |
| 4273 |
3814 # Allow CC to be a program name with arguments. | 4274 # Allow CC to be a program name with arguments. |
3815 lt_save_CC="$CC" | 4275 lt_save_CC="$CC" |
3816 CC=${RC-"windres"} | 4276 CC=${RC-"windres"} |
3817 compiler=$CC | 4277 compiler=$CC |
3818 _LT_AC_TAGVAR(compiler, $1)=$CC | 4278 _LT_AC_TAGVAR(compiler, $1)=$CC |
| 4279 _LT_CC_BASENAME([$compiler]) |
3819 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 4280 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
3820 | 4281 |
3821 AC_LIBTOOL_CONFIG($1) | 4282 AC_LIBTOOL_CONFIG($1) |
3822 | 4283 |
3823 AC_LANG_RESTORE | 4284 AC_LANG_RESTORE |
3824 CC="$lt_save_CC" | 4285 CC="$lt_save_CC" |
3825 ])# AC_LIBTOOL_LANG_RC_CONFIG | 4286 ])# AC_LIBTOOL_LANG_RC_CONFIG |
3826 | 4287 |
3827 | 4288 |
3828 # AC_LIBTOOL_CONFIG([TAGNAME]) | 4289 # AC_LIBTOOL_CONFIG([TAGNAME]) |
3829 # ---------------------------- | 4290 # ---------------------------- |
3830 # If TAGNAME is not passed, then create an initial libtool script | 4291 # If TAGNAME is not passed, then create an initial libtool script |
3831 # with a default configuration from the untagged config vars. Otherwise | 4292 # with a default configuration from the untagged config vars. Otherwise |
3832 # add code to config.status for appending the configuration named by | 4293 # add code to config.status for appending the configuration named by |
3833 # TAGNAME from the matching tagged config vars. | 4294 # TAGNAME from the matching tagged config vars. |
3834 AC_DEFUN([AC_LIBTOOL_CONFIG], | 4295 AC_DEFUN([AC_LIBTOOL_CONFIG], |
3835 [# The else clause should only fire when bootstrapping the | 4296 [# The else clause should only fire when bootstrapping the |
3836 # libtool distribution, otherwise you forgot to ship ltmain.sh | 4297 # libtool distribution, otherwise you forgot to ship ltmain.sh |
3837 # with your package, and you will get complaints that there are | 4298 # with your package, and you will get complaints that there are |
3838 # no rules to generate ltmain.sh. | 4299 # no rules to generate ltmain.sh. |
3839 if test -f "$ltmain"; then | 4300 if test -f "$ltmain"; then |
3840 # See if we are running on zsh, and set the options which allow our commands t
hrough | 4301 # See if we are running on zsh, and set the options which allow our commands t
hrough |
3841 # without removal of \ escapes. | 4302 # without removal of \ escapes. |
3842 if test -n "${ZSH_VERSION+set}" ; then | 4303 if test -n "${ZSH_VERSION+set}" ; then |
3843 setopt NO_GLOB_SUBST | 4304 setopt NO_GLOB_SUBST |
3844 fi | 4305 fi |
3845 # Now quote all the things that may contain metacharacters while being | 4306 # Now quote all the things that may contain metacharacters while being |
3846 # careful not to overquote the AC_SUBSTed values. We take copies of the | 4307 # careful not to overquote the AC_SUBSTed values. We take copies of the |
3847 # variables and quote the copies for generation of the libtool script. | 4308 # variables and quote the copies for generation of the libtool script. |
3848 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 4309 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS
NM \ |
3849 SED SHELL STRIP \ | 4310 SED SHELL STRIP \ |
3850 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 4311 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
3851 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 4312 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
3852 deplibs_check_method reload_flag reload_cmds need_locks \ | 4313 deplibs_check_method reload_flag reload_cmds need_locks \ |
3853 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 4314 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
3854 lt_cv_sys_global_symbol_to_c_name_address \ | 4315 lt_cv_sys_global_symbol_to_c_name_address \ |
3855 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 4316 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
3856 old_postinstall_cmds old_postuninstall_cmds \ | 4317 old_postinstall_cmds old_postuninstall_cmds \ |
3857 _LT_AC_TAGVAR(compiler, $1) \ | 4318 _LT_AC_TAGVAR(compiler, $1) \ |
3858 _LT_AC_TAGVAR(CC, $1) \ | 4319 _LT_AC_TAGVAR(CC, $1) \ |
3859 _LT_AC_TAGVAR(LD, $1) \ | 4320 _LT_AC_TAGVAR(LD, $1) \ |
3860 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ | 4321 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ |
3861 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ | 4322 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ |
3862 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ | 4323 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ |
3863 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ | 4324 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ |
3864 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ | 4325 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ |
3865 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ | 4326 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ |
3866 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ | 4327 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ |
3867 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ | 4328 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ |
3868 _LT_AC_TAGVAR(old_archive_cmds, $1) \ | 4329 _LT_AC_TAGVAR(old_archive_cmds, $1) \ |
3869 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ | 4330 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ |
3870 _LT_AC_TAGVAR(predep_objects, $1) \ | 4331 _LT_AC_TAGVAR(predep_objects, $1) \ |
3871 _LT_AC_TAGVAR(postdep_objects, $1) \ | 4332 _LT_AC_TAGVAR(postdep_objects, $1) \ |
3872 _LT_AC_TAGVAR(predeps, $1) \ | 4333 _LT_AC_TAGVAR(predeps, $1) \ |
3873 _LT_AC_TAGVAR(postdeps, $1) \ | 4334 _LT_AC_TAGVAR(postdeps, $1) \ |
3874 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ | 4335 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ |
| 4336 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ |
3875 _LT_AC_TAGVAR(archive_cmds, $1) \ | 4337 _LT_AC_TAGVAR(archive_cmds, $1) \ |
3876 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ | 4338 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ |
3877 _LT_AC_TAGVAR(postinstall_cmds, $1) \ | 4339 _LT_AC_TAGVAR(postinstall_cmds, $1) \ |
3878 _LT_AC_TAGVAR(postuninstall_cmds, $1) \ | 4340 _LT_AC_TAGVAR(postuninstall_cmds, $1) \ |
3879 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ | 4341 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ |
3880 _LT_AC_TAGVAR(allow_undefined_flag, $1) \ | 4342 _LT_AC_TAGVAR(allow_undefined_flag, $1) \ |
3881 _LT_AC_TAGVAR(no_undefined_flag, $1) \ | 4343 _LT_AC_TAGVAR(no_undefined_flag, $1) \ |
3882 _LT_AC_TAGVAR(export_symbols_cmds, $1) \ | 4344 _LT_AC_TAGVAR(export_symbols_cmds, $1) \ |
3883 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ | 4345 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ |
3884 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ | 4346 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ |
3885 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ | 4347 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ |
3886 _LT_AC_TAGVAR(hardcode_automatic, $1) \ | 4348 _LT_AC_TAGVAR(hardcode_automatic, $1) \ |
3887 _LT_AC_TAGVAR(module_cmds, $1) \ | 4349 _LT_AC_TAGVAR(module_cmds, $1) \ |
3888 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ | 4350 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ |
3889 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ | 4351 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ |
| 4352 _LT_AC_TAGVAR(fix_srcfile_path, $1) \ |
3890 _LT_AC_TAGVAR(exclude_expsyms, $1) \ | 4353 _LT_AC_TAGVAR(exclude_expsyms, $1) \ |
3891 _LT_AC_TAGVAR(include_expsyms, $1); do | 4354 _LT_AC_TAGVAR(include_expsyms, $1); do |
3892 | 4355 |
3893 case $var in | 4356 case $var in |
3894 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ | 4357 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ |
3895 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ | 4358 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ |
3896 _LT_AC_TAGVAR(archive_cmds, $1) | \ | 4359 _LT_AC_TAGVAR(archive_cmds, $1) | \ |
3897 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ | 4360 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
3898 _LT_AC_TAGVAR(module_cmds, $1) | \ | 4361 _LT_AC_TAGVAR(module_cmds, $1) | \ |
3899 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ | 4362 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
(...skipping 26 matching lines...) Expand all Loading... |
3926 [cfgfile="$ofile"]) | 4389 [cfgfile="$ofile"]) |
3927 | 4390 |
3928 cat <<__EOF__ >> "$cfgfile" | 4391 cat <<__EOF__ >> "$cfgfile" |
3929 ifelse([$1], [], | 4392 ifelse([$1], [], |
3930 [#! $SHELL | 4393 [#! $SHELL |
3931 | 4394 |
3932 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building sup
port services. | 4395 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building sup
port services. |
3933 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 4396 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
3934 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 4397 # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
3935 # | 4398 # |
3936 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | 4399 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
, 2007, 2008 |
3937 # Free Software Foundation, Inc. | 4400 # Free Software Foundation, Inc. |
3938 # | 4401 # |
3939 # This file is part of GNU Libtool: | 4402 # This file is part of GNU Libtool: |
3940 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 4403 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
3941 # | 4404 # |
3942 # This program is free software; you can redistribute it and/or modify | 4405 # This program is free software; you can redistribute it and/or modify |
3943 # it under the terms of the GNU General Public License as published by | 4406 # it under the terms of the GNU General Public License as published by |
3944 # the Free Software Foundation; either version 2 of the License, or | 4407 # the Free Software Foundation; either version 2 of the License, or |
3945 # (at your option) any later version. | 4408 # (at your option) any later version. |
3946 # | 4409 # |
3947 # This program is distributed in the hope that it will be useful, but | 4410 # This program is distributed in the hope that it will be useful, but |
3948 # WITHOUT ANY WARRANTY; without even the implied warranty of | 4411 # WITHOUT ANY WARRANTY; without even the implied warranty of |
3949 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 4412 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
3950 # General Public License for more details. | 4413 # General Public License for more details. |
3951 # | 4414 # |
3952 # You should have received a copy of the GNU General Public License | 4415 # You should have received a copy of the GNU General Public License |
3953 # along with this program; if not, write to the Free Software | 4416 # along with this program; if not, write to the Free Software |
3954 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 4417 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
3955 # | 4418 # |
3956 # As a special exception to the GNU General Public License, if you | 4419 # As a special exception to the GNU General Public License, if you |
3957 # distribute this file as part of a program that contains a | 4420 # distribute this file as part of a program that contains a |
3958 # configuration script generated by Autoconf, you may include it under | 4421 # configuration script generated by Autoconf, you may include it under |
3959 # the same distribution terms that you use for the rest of that program. | 4422 # the same distribution terms that you use for the rest of that program. |
3960 | 4423 |
3961 # A sed program that does not truncate output. | 4424 # A sed program that does not truncate output. |
3962 SED=$lt_SED | 4425 SED=$lt_SED |
3963 | 4426 |
3964 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 4427 # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
3965 Xsed="$SED -e s/^X//" | 4428 Xsed="$SED -e 1s/^X//" |
3966 | 4429 |
3967 # The HP-UX ksh and POSIX shell print the target directory to stdout | 4430 # The HP-UX ksh and POSIX shell print the target directory to stdout |
3968 # if CDPATH is set. | 4431 # if CDPATH is set. |
3969 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 4432 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
3970 | 4433 |
3971 # The names of the tagged configurations supported by this script. | 4434 # The names of the tagged configurations supported by this script. |
3972 available_tags= | 4435 available_tags= |
3973 | 4436 |
3974 # ### BEGIN LIBTOOL CONFIG], | 4437 # ### BEGIN LIBTOOL CONFIG], |
3975 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) | 4438 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) |
3976 | 4439 |
3977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 4440 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
3978 | 4441 |
3979 # Shell to use when invoking shell scripts. | 4442 # Shell to use when invoking shell scripts. |
(...skipping 10 matching lines...) Expand all Loading... |
3990 | 4453 |
3991 # Whether or not to disallow shared libs when runtime libs are static | 4454 # Whether or not to disallow shared libs when runtime libs are static |
3992 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static
_runtimes, $1) | 4455 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static
_runtimes, $1) |
3993 | 4456 |
3994 # Whether or not to optimize for fast installation. | 4457 # Whether or not to optimize for fast installation. |
3995 fast_install=$enable_fast_install | 4458 fast_install=$enable_fast_install |
3996 | 4459 |
3997 # The host system. | 4460 # The host system. |
3998 host_alias=$host_alias | 4461 host_alias=$host_alias |
3999 host=$host | 4462 host=$host |
| 4463 host_os=$host_os |
| 4464 |
| 4465 # The build system. |
| 4466 build_alias=$build_alias |
| 4467 build=$build |
| 4468 build_os=$build_os |
4000 | 4469 |
4001 # An echo program that does not interpret backslashes. | 4470 # An echo program that does not interpret backslashes. |
4002 echo=$lt_echo | 4471 echo=$lt_echo |
4003 | 4472 |
4004 # The archiver. | 4473 # The archiver. |
4005 AR=$lt_AR | 4474 AR=$lt_AR |
4006 AR_FLAGS=$lt_AR_FLAGS | 4475 AR_FLAGS=$lt_AR_FLAGS |
4007 | 4476 |
4008 # A C compiler. | 4477 # A C compiler. |
4009 LTCC=$lt_LTCC | 4478 LTCC=$lt_LTCC |
4010 | 4479 |
| 4480 # LTCC compiler flags. |
| 4481 LTCFLAGS=$lt_LTCFLAGS |
| 4482 |
4011 # A language-specific compiler. | 4483 # A language-specific compiler. |
4012 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | 4484 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
4013 | 4485 |
4014 # Is the compiler the GNU C compiler? | 4486 # Is the compiler the GNU C compiler? |
4015 with_gcc=$_LT_AC_TAGVAR(GCC, $1) | 4487 with_gcc=$_LT_AC_TAGVAR(GCC, $1) |
4016 | 4488 |
4017 # An ERE matcher. | 4489 # An ERE matcher. |
4018 EGREP=$lt_EGREP | 4490 EGREP=$lt_EGREP |
4019 | 4491 |
4020 # The linker used to build libraries. | 4492 # The linker used to build libraries. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4066 # Additional compiler flags for building library objects. | 4538 # Additional compiler flags for building library objects. |
4067 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | 4539 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) |
4068 pic_mode=$pic_mode | 4540 pic_mode=$pic_mode |
4069 | 4541 |
4070 # What is the maximum length of a command? | 4542 # What is the maximum length of a command? |
4071 max_cmd_len=$lt_cv_sys_max_cmd_len | 4543 max_cmd_len=$lt_cv_sys_max_cmd_len |
4072 | 4544 |
4073 # Does compiler simultaneously support -c and -o options? | 4545 # Does compiler simultaneously support -c and -o options? |
4074 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) | 4546 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) |
4075 | 4547 |
4076 # Must we lock files when doing compilation ? | 4548 # Must we lock files when doing compilation? |
4077 need_locks=$lt_need_locks | 4549 need_locks=$lt_need_locks |
4078 | 4550 |
4079 # Do we need the lib prefix for modules? | 4551 # Do we need the lib prefix for modules? |
4080 need_lib_prefix=$need_lib_prefix | 4552 need_lib_prefix=$need_lib_prefix |
4081 | 4553 |
4082 # Do we need a version for libraries? | 4554 # Do we need a version for libraries? |
4083 need_version=$need_version | 4555 need_version=$need_version |
4084 | 4556 |
4085 # Whether dlopen is supported. | 4557 # Whether dlopen is supported. |
4086 dlopen_support=$enable_dlopen | 4558 dlopen_support=$enable_dlopen |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4154 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | 4626 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) |
4155 | 4627 |
4156 # Dependencies to place before the objects being linked to create a | 4628 # Dependencies to place before the objects being linked to create a |
4157 # shared library. | 4629 # shared library. |
4158 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) | 4630 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) |
4159 | 4631 |
4160 # Dependencies to place after the objects being linked to create a | 4632 # Dependencies to place after the objects being linked to create a |
4161 # shared library. | 4633 # shared library. |
4162 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) | 4634 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) |
4163 | 4635 |
| 4636 # The directories searched by this compiler when creating a shared |
| 4637 # library |
| 4638 compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) |
| 4639 |
4164 # The library search path used internally by the compiler when linking | 4640 # The library search path used internally by the compiler when linking |
4165 # a shared library. | 4641 # a shared library. |
4166 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | 4642 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) |
4167 | 4643 |
4168 # Method to check whether dependent libraries are shared objects. | 4644 # Method to check whether dependent libraries are shared objects. |
4169 deplibs_check_method=$lt_deplibs_check_method | 4645 deplibs_check_method=$lt_deplibs_check_method |
4170 | 4646 |
4171 # Command to use when deplibs_check_method == file_magic. | 4647 # Command to use when deplibs_check_method == file_magic. |
4172 file_magic_cmd=$lt_file_magic_cmd | 4648 file_magic_cmd=$lt_file_magic_cmd |
4173 | 4649 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4242 # Whether libtool must link a program against all its dependency libraries. | 4718 # Whether libtool must link a program against all its dependency libraries. |
4243 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) | 4719 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) |
4244 | 4720 |
4245 # Compile-time system search path for libraries | 4721 # Compile-time system search path for libraries |
4246 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 4722 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
4247 | 4723 |
4248 # Run-time system search path for libraries | 4724 # Run-time system search path for libraries |
4249 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 4725 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
4250 | 4726 |
4251 # Fix the shell variable \$srcfile for the compiler. | 4727 # Fix the shell variable \$srcfile for the compiler. |
4252 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" | 4728 fix_srcfile_path=$lt_fix_srcfile_path |
4253 | 4729 |
4254 # Set to yes if exported symbols are required. | 4730 # Set to yes if exported symbols are required. |
4255 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) | 4731 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) |
4256 | 4732 |
4257 # The commands to list exported symbols. | 4733 # The commands to list exported symbols. |
4258 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) | 4734 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) |
4259 | 4735 |
4260 # The commands to extract the exported symbol list from a shared archive. | 4736 # The commands to extract the exported symbol list from a shared archive. |
4261 extract_expsyms_cmds=$lt_extract_expsyms_cmds | 4737 extract_expsyms_cmds=$lt_extract_expsyms_cmds |
4262 | 4738 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4325 [-fno-rtti -fno-exceptions], [], | 4801 [-fno-rtti -fno-exceptions], [], |
4326 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog
_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | 4802 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog
_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
4327 fi | 4803 fi |
4328 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI | 4804 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI |
4329 | 4805 |
4330 | 4806 |
4331 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | 4807 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
4332 # --------------------------------- | 4808 # --------------------------------- |
4333 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], | 4809 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], |
4334 [AC_REQUIRE([AC_CANONICAL_HOST]) | 4810 [AC_REQUIRE([AC_CANONICAL_HOST]) |
| 4811 AC_REQUIRE([LT_AC_PROG_SED]) |
4335 AC_REQUIRE([AC_PROG_NM]) | 4812 AC_REQUIRE([AC_PROG_NM]) |
4336 AC_REQUIRE([AC_OBJEXT]) | 4813 AC_REQUIRE([AC_OBJEXT]) |
4337 # Check for command to grab the raw symbol name followed by C symbol from nm. | 4814 # Check for command to grab the raw symbol name followed by C symbol from nm. |
4338 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | 4815 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
4339 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | 4816 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
4340 [ | 4817 [ |
4341 # These are sane defaults that work on at least a few old systems. | 4818 # These are sane defaults that work on at least a few old systems. |
4342 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | 4819 # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
4343 | 4820 |
4344 # Character class describing NM global symbol codes. | 4821 # Character class describing NM global symbol codes. |
4345 symcode='[[BCDEGRST]]' | 4822 symcode='[[BCDEGRST]]' |
4346 | 4823 |
4347 # Regexp to match symbols that can be accessed directly from C. | 4824 # Regexp to match symbols that can be accessed directly from C. |
4348 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | 4825 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
4349 | 4826 |
4350 # Transform the above into a raw symbol and a C symbol. | |
4351 symxfrm='\1 \2\3 \3' | |
4352 | |
4353 # Transform an extracted symbol line into a proper C declaration | 4827 # Transform an extracted symbol line into a proper C declaration |
4354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 4828 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
4355 | 4829 |
4356 # Transform an extracted symbol line into symbol name and symbol address | 4830 # Transform an extracted symbol line into symbol name and symbol address |
4357 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"
\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_
ptr) \&\2},/p'" | 4831 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"
\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_
ptr) \&\2},/p'" |
4358 | 4832 |
4359 # Define system-specific variables. | 4833 # Define system-specific variables. |
4360 case $host_os in | 4834 case $host_os in |
4361 aix*) | 4835 aix*) |
4362 symcode='[[BCDT]]' | 4836 symcode='[[BCDT]]' |
4363 ;; | 4837 ;; |
4364 cygwin* | mingw* | pw32*) | 4838 cygwin* | mingw* | pw32*) |
4365 symcode='[[ABCDGISTW]]' | 4839 symcode='[[ABCDGISTW]]' |
4366 ;; | 4840 ;; |
4367 hpux*) # Its linker distinguishes data from code symbols | 4841 hpux*) # Its linker distinguishes data from code symbols |
4368 if test "$host_cpu" = ia64; then | 4842 if test "$host_cpu" = ia64; then |
4369 symcode='[[ABCDEGRST]]' | 4843 symcode='[[ABCDEGRST]]' |
4370 fi | 4844 fi |
4371 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/
p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 4845 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/
p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
4372 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\
\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (
lt_ptr) \&\2},/p'" | 4846 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\
\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (
lt_ptr) \&\2},/p'" |
4373 ;; | 4847 ;; |
| 4848 linux* | k*bsd*-gnu) |
| 4849 if test "$host_cpu" = ia64; then |
| 4850 symcode='[[ABCDGIRSTW]]' |
| 4851 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1()
;/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4852 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {
\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\",
(lt_ptr) \&\2},/p'" |
| 4853 fi |
| 4854 ;; |
4374 irix* | nonstopux*) | 4855 irix* | nonstopux*) |
4375 symcode='[[BCDEGRST]]' | 4856 symcode='[[BCDEGRST]]' |
4376 ;; | 4857 ;; |
4377 osf*) | 4858 osf*) |
4378 symcode='[[BCDEGQRST]]' | 4859 symcode='[[BCDEGQRST]]' |
4379 ;; | 4860 ;; |
4380 solaris* | sysv5*) | 4861 solaris*) |
4381 symcode='[[BDRT]]' | 4862 symcode='[[BDRT]]' |
4382 ;; | 4863 ;; |
| 4864 sco3.2v5*) |
| 4865 symcode='[[DT]]' |
| 4866 ;; |
| 4867 sysv4.2uw2*) |
| 4868 symcode='[[DT]]' |
| 4869 ;; |
| 4870 sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 4871 symcode='[[ABDT]]' |
| 4872 ;; |
4383 sysv4) | 4873 sysv4) |
4384 symcode='[[DFNSTU]]' | 4874 symcode='[[DFNSTU]]' |
4385 ;; | 4875 ;; |
4386 esac | 4876 esac |
4387 | 4877 |
4388 # Handle CRLF in mingw tool chain | 4878 # Handle CRLF in mingw tool chain |
4389 opt_cr= | 4879 opt_cr= |
4390 case $build_os in | 4880 case $build_os in |
4391 mingw*) | 4881 mingw*) |
4392 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 4882 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
4393 ;; | 4883 ;; |
4394 esac | 4884 esac |
4395 | 4885 |
4396 # If we're using GNU nm, then use its standard symbol codes. | 4886 # If we're using GNU nm, then use its standard symbol codes. |
4397 case `$NM -V 2>&1` in | 4887 case `$NM -V 2>&1` in |
4398 *GNU* | *'with BFD'*) | 4888 *GNU* | *'with BFD'*) |
4399 symcode='[[ABCDGIRSTW]]' ;; | 4889 symcode='[[ABCDGIRSTW]]' ;; |
4400 esac | 4890 esac |
4401 | 4891 |
4402 # Try without a prefix undercore, then with it. | 4892 # Try without a prefix undercore, then with it. |
4403 for ac_symprfx in "" "_"; do | 4893 for ac_symprfx in "" "_"; do |
4404 | 4894 |
| 4895 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 4896 symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 4897 |
4405 # Write the raw and C identifiers. | 4898 # Write the raw and C identifiers. |
4406 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ » ]]\($symcode$symcode*\)[
[ » ]][[ » ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 4899 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ » ]]\($symcode$symcode*\)[
[ » ]][[ » ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
4407 | 4900 |
4408 # Check to see that the pipe works correctly. | 4901 # Check to see that the pipe works correctly. |
4409 pipe_works=no | 4902 pipe_works=no |
4410 | 4903 |
4411 rm -f conftest* | 4904 rm -f conftest* |
4412 cat > conftest.$ac_ext <<EOF | 4905 cat > conftest.$ac_ext <<EOF |
4413 #ifdef __cplusplus | 4906 #ifdef __cplusplus |
4414 extern "C" { | 4907 extern "C" { |
4415 #endif | 4908 #endif |
4416 char nm_test_var; | 4909 char nm_test_var; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4486 else | 4979 else |
4487 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | 4980 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
4488 fi | 4981 fi |
4489 else | 4982 else |
4490 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | 4983 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD |
4491 fi | 4984 fi |
4492 else | 4985 else |
4493 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | 4986 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
4494 cat conftest.$ac_ext >&5 | 4987 cat conftest.$ac_ext >&5 |
4495 fi | 4988 fi |
4496 rm -f conftest* conftst* | 4989 rm -rf conftest* conftst* |
4497 | 4990 |
4498 # Do not use the global_symbol_pipe unless it works. | 4991 # Do not use the global_symbol_pipe unless it works. |
4499 if test "$pipe_works" = yes; then | 4992 if test "$pipe_works" = yes; then |
4500 break | 4993 break |
4501 else | 4994 else |
4502 lt_cv_sys_global_symbol_pipe= | 4995 lt_cv_sys_global_symbol_pipe= |
4503 fi | 4996 fi |
4504 done | 4997 done |
4505 ]) | 4998 ]) |
4506 if test -z "$lt_cv_sys_global_symbol_pipe"; then | 4999 if test -z "$lt_cv_sys_global_symbol_pipe"; then |
(...skipping 28 matching lines...) Expand all Loading... |
4535 # AIX 5 now supports IA64 processor | 5028 # AIX 5 now supports IA64 processor |
4536 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5029 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4537 fi | 5030 fi |
4538 ;; | 5031 ;; |
4539 amigaos*) | 5032 amigaos*) |
4540 # FIXME: we need at least 68020 code to build shared libraries, but | 5033 # FIXME: we need at least 68020 code to build shared libraries, but |
4541 # adding the `-m68020' flag to GCC prevents building anything better, | 5034 # adding the `-m68020' flag to GCC prevents building anything better, |
4542 # like `-m68040'. | 5035 # like `-m68040'. |
4543 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-rest
ore-a4' | 5036 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-rest
ore-a4' |
4544 ;; | 5037 ;; |
4545 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 5038 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
4546 # PIC is the default for these OSes. | 5039 # PIC is the default for these OSes. |
4547 ;; | 5040 ;; |
4548 mingw* | os2* | pw32*) | 5041 mingw* | cygwin* | os2* | pw32*) |
4549 # This hack is so that the source file can tell whether it is being | 5042 # This hack is so that the source file can tell whether it is being |
4550 # built for inclusion in a dll (and should export symbols for example). | 5043 # built for inclusion in a dll (and should export symbols for example). |
4551 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | 5044 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 5045 # (--disable-auto-import) libraries |
| 5046 m4_if([$1], [GCJ], [], |
| 5047 » [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4552 ;; | 5048 ;; |
4553 darwin* | rhapsody*) | 5049 darwin* | rhapsody*) |
4554 # PIC is the default on this platform | 5050 # PIC is the default on this platform |
4555 # Common symbols not allowed in MH_DYLIB files | 5051 # Common symbols not allowed in MH_DYLIB files |
4556 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 5052 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4557 ;; | 5053 ;; |
4558 *djgpp*) | 5054 *djgpp*) |
4559 # DJGPP does not support shared libraries at all | 5055 # DJGPP does not support shared libraries at all |
4560 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 5056 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4561 ;; | 5057 ;; |
| 5058 interix[[3-9]]*) |
| 5059 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 5060 # Instead, we relocate shared libraries at runtime. |
| 5061 ;; |
4562 sysv4*MP*) | 5062 sysv4*MP*) |
4563 if test -d /usr/nec; then | 5063 if test -d /usr/nec; then |
4564 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | 5064 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
4565 fi | 5065 fi |
4566 ;; | 5066 ;; |
4567 hpux*) | 5067 hpux*) |
4568 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 5068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
4569 # not for PA HP-UX. | 5069 # not for PA HP-UX. |
4570 case "$host_cpu" in | 5070 case $host_cpu in |
4571 hppa*64*|ia64*) | 5071 hppa*64*|ia64*) |
4572 ;; | 5072 ;; |
4573 *) | 5073 *) |
4574 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 5074 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4575 ;; | 5075 ;; |
4576 esac | 5076 esac |
4577 ;; | 5077 ;; |
4578 *) | 5078 *) |
4579 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 5079 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4580 ;; | 5080 ;; |
4581 esac | 5081 esac |
4582 else | 5082 else |
4583 case $host_os in | 5083 case $host_os in |
4584 aix4* | aix5*) | 5084 aix[[4-9]]*) |
4585 # All AIX code is PIC. | 5085 # All AIX code is PIC. |
4586 if test "$host_cpu" = ia64; then | 5086 if test "$host_cpu" = ia64; then |
4587 # AIX 5 now supports IA64 processor | 5087 # AIX 5 now supports IA64 processor |
4588 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5088 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4589 else | 5089 else |
4590 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.ex
p' | 5090 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.ex
p' |
4591 fi | 5091 fi |
4592 ;; | 5092 ;; |
4593 chorus*) | 5093 chorus*) |
4594 case $cc_basename in | 5094 case $cc_basename in |
4595 » cxch68) | 5095 » cxch68*) |
4596 # Green Hills C++ Compiler | 5096 # Green Hills C++ Compiler |
4597 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation
-u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC
.a $MVME_DIR/lib/classix/libcx.s.a" | 5097 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation
-u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC
.a $MVME_DIR/lib/classix/libcx.s.a" |
4598 ;; | 5098 ;; |
4599 esac | 5099 esac |
4600 ;; | 5100 ;; |
| 5101 darwin*) |
| 5102 # PIC is the default on this platform |
| 5103 # Common symbols not allowed in MH_DYLIB files |
| 5104 case $cc_basename in |
| 5105 xlc*) |
| 5106 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 5107 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5108 ;; |
| 5109 esac |
| 5110 ;; |
4601 dgux*) | 5111 dgux*) |
4602 case $cc_basename in | 5112 case $cc_basename in |
4603 » ec++) | 5113 » ec++*) |
4604 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5114 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4605 ;; | 5115 ;; |
4606 » ghcx) | 5116 » ghcx*) |
4607 # Green Hills C++ Compiler | 5117 # Green Hills C++ Compiler |
4608 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 5118 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4609 ;; | 5119 ;; |
4610 *) | 5120 *) |
4611 ;; | 5121 ;; |
4612 esac | 5122 esac |
4613 ;; | 5123 ;; |
4614 freebsd* | kfreebsd*-gnu) | 5124 freebsd* | dragonfly*) |
4615 # FreeBSD uses GNU C++ | 5125 # FreeBSD uses GNU C++ |
4616 ;; | 5126 ;; |
4617 hpux9* | hpux10* | hpux11*) | 5127 hpux9* | hpux10* | hpux11*) |
4618 case $cc_basename in | 5128 case $cc_basename in |
4619 » CC) | 5129 » CC*) |
4620 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5130 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4621 » _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${
ac_cv_prog_cc_wl}archive" | 5131 » _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4622 if test "$host_cpu" != ia64; then | 5132 if test "$host_cpu" != ia64; then |
4623 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 5133 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4624 fi | 5134 fi |
4625 ;; | 5135 ;; |
4626 » aCC) | 5136 » aCC*) |
4627 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5137 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4628 » _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${
ac_cv_prog_cc_wl}archive" | 5138 » _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4629 » case "$host_cpu" in | 5139 » case $host_cpu in |
4630 hppa*64*|ia64*) | 5140 hppa*64*|ia64*) |
4631 # +Z the default | 5141 # +Z the default |
4632 ;; | 5142 ;; |
4633 *) | 5143 *) |
4634 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 5144 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4635 ;; | 5145 ;; |
4636 esac | 5146 esac |
4637 ;; | 5147 ;; |
4638 *) | 5148 *) |
4639 ;; | 5149 ;; |
4640 esac | 5150 esac |
4641 ;; | 5151 ;; |
| 5152 interix*) |
| 5153 # This is c89, which is MS Visual C++ (no shared libs) |
| 5154 # Anyone wants to do a port? |
| 5155 ;; |
4642 irix5* | irix6* | nonstopux*) | 5156 irix5* | irix6* | nonstopux*) |
4643 case $cc_basename in | 5157 case $cc_basename in |
4644 » CC) | 5158 » CC*) |
4645 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5159 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4646 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 5160 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4647 # CC pic flag -KPIC is the default. | 5161 # CC pic flag -KPIC is the default. |
4648 ;; | 5162 ;; |
4649 *) | 5163 *) |
4650 ;; | 5164 ;; |
4651 esac | 5165 esac |
4652 ;; | 5166 ;; |
4653 linux*) | 5167 linux* | k*bsd*-gnu) |
4654 case $cc_basename in | 5168 case $cc_basename in |
4655 » KCC) | 5169 » KCC*) |
4656 # KAI C++ Compiler | 5170 # KAI C++ Compiler |
4657 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 5171 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4658 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 5172 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4659 ;; | 5173 ;; |
4660 » icpc) | 5174 » icpc* | ecpc*) |
4661 # Intel C++ | 5175 # Intel C++ |
4662 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5176 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4663 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5177 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4664 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | 5178 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4665 ;; | 5179 ;; |
4666 » cxx) | 5180 » pgCC* | pgcpp*) |
| 5181 » # Portland Group C++ compiler. |
| 5182 » _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5183 » _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 5184 » _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 5185 » ;; |
| 5186 » cxx*) |
4667 # Compaq C++ | 5187 # Compaq C++ |
4668 # Make sure the PIC flag is empty. It appears that all Alpha | 5188 # Make sure the PIC flag is empty. It appears that all Alpha |
4669 # Linux and Compaq Tru64 Unix objects are PIC. | 5189 # Linux and Compaq Tru64 Unix objects are PIC. |
4670 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 5190 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4671 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 5191 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4672 ;; | 5192 ;; |
4673 *) | 5193 *) |
| 5194 case `$CC -V 2>&1 | sed 5q` in |
| 5195 *Sun\ C*) |
| 5196 # Sun C++ 5.9 |
| 5197 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 5198 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 5199 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 5200 ;; |
| 5201 esac |
4674 ;; | 5202 ;; |
4675 esac | 5203 esac |
4676 ;; | 5204 ;; |
4677 lynxos*) | 5205 lynxos*) |
4678 ;; | 5206 ;; |
4679 m88k*) | 5207 m88k*) |
4680 ;; | 5208 ;; |
4681 mvs*) | 5209 mvs*) |
4682 case $cc_basename in | 5210 case $cc_basename in |
4683 » cxx) | 5211 » cxx*) |
4684 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | 5212 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
4685 ;; | 5213 ;; |
4686 *) | 5214 *) |
4687 ;; | 5215 ;; |
4688 esac | 5216 esac |
4689 ;; | 5217 ;; |
4690 netbsd*) | 5218 netbsd* | netbsdelf*-gnu) |
4691 ;; | 5219 ;; |
4692 osf3* | osf4* | osf5*) | 5220 osf3* | osf4* | osf5*) |
4693 case $cc_basename in | 5221 case $cc_basename in |
4694 » KCC) | 5222 » KCC*) |
4695 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 5223 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4696 ;; | 5224 ;; |
4697 » RCC) | 5225 » RCC*) |
4698 # Rational C++ 2.4.1 | 5226 # Rational C++ 2.4.1 |
4699 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 5227 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4700 ;; | 5228 ;; |
4701 » cxx) | 5229 » cxx*) |
4702 # Digital/Compaq C++ | 5230 # Digital/Compaq C++ |
4703 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5231 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4704 # Make sure the PIC flag is empty. It appears that all Alpha | 5232 # Make sure the PIC flag is empty. It appears that all Alpha |
4705 # Linux and Compaq Tru64 Unix objects are PIC. | 5233 # Linux and Compaq Tru64 Unix objects are PIC. |
4706 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 5234 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4707 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 5235 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4708 ;; | 5236 ;; |
4709 *) | 5237 *) |
4710 ;; | 5238 ;; |
4711 esac | 5239 esac |
4712 ;; | 5240 ;; |
4713 psos*) | 5241 psos*) |
4714 ;; | 5242 ;; |
4715 sco*) | |
4716 case $cc_basename in | |
4717 CC) | |
4718 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4719 ;; | |
4720 *) | |
4721 ;; | |
4722 esac | |
4723 ;; | |
4724 solaris*) | 5243 solaris*) |
4725 case $cc_basename in | 5244 case $cc_basename in |
4726 » CC) | 5245 » CC*) |
4727 # Sun C++ 4.2, 5.x and Centerline C++ | 5246 # Sun C++ 4.2, 5.x and Centerline C++ |
4728 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5247 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4729 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5248 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4730 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 5249 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4731 ;; | 5250 ;; |
4732 » gcx) | 5251 » gcx*) |
4733 # Green Hills C++ Compiler | 5252 # Green Hills C++ Compiler |
4734 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | 5253 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
4735 ;; | 5254 ;; |
4736 *) | 5255 *) |
4737 ;; | 5256 ;; |
4738 esac | 5257 esac |
4739 ;; | 5258 ;; |
4740 sunos4*) | 5259 sunos4*) |
4741 case $cc_basename in | 5260 case $cc_basename in |
4742 » CC) | 5261 » CC*) |
4743 # Sun C++ 4.x | 5262 # Sun C++ 4.x |
4744 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 5263 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4745 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5264 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4746 ;; | 5265 ;; |
4747 » lcc) | 5266 » lcc*) |
4748 # Lucid | 5267 # Lucid |
4749 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 5268 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4750 ;; | 5269 ;; |
4751 *) | 5270 *) |
4752 ;; | 5271 ;; |
4753 esac | 5272 esac |
4754 ;; | 5273 ;; |
4755 tandem*) | 5274 tandem*) |
4756 case $cc_basename in | 5275 case $cc_basename in |
4757 » NCC) | 5276 » NCC*) |
4758 # NonStop-UX NCC 3.20 | 5277 # NonStop-UX NCC 3.20 |
4759 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5278 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4760 ;; | 5279 ;; |
4761 *) | 5280 *) |
4762 ;; | 5281 ;; |
4763 esac | 5282 esac |
4764 ;; | 5283 ;; |
4765 unixware*) | 5284 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 5285 » case $cc_basename in |
| 5286 » CC*) |
| 5287 » _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5288 » _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 5289 » _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 5290 » ;; |
| 5291 » esac |
4766 ;; | 5292 ;; |
4767 vxworks*) | 5293 vxworks*) |
4768 ;; | 5294 ;; |
4769 *) | 5295 *) |
4770 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 5296 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4771 ;; | 5297 ;; |
4772 esac | 5298 esac |
4773 fi | 5299 fi |
4774 ], | 5300 ], |
4775 [ | 5301 [ |
(...skipping 10 matching lines...) Expand all Loading... |
4786 fi | 5312 fi |
4787 ;; | 5313 ;; |
4788 | 5314 |
4789 amigaos*) | 5315 amigaos*) |
4790 # FIXME: we need at least 68020 code to build shared libraries, but | 5316 # FIXME: we need at least 68020 code to build shared libraries, but |
4791 # adding the `-m68020' flag to GCC prevents building anything better, | 5317 # adding the `-m68020' flag to GCC prevents building anything better, |
4792 # like `-m68040'. | 5318 # like `-m68040'. |
4793 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-rest
ore-a4' | 5319 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-rest
ore-a4' |
4794 ;; | 5320 ;; |
4795 | 5321 |
4796 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 5322 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
4797 # PIC is the default for these OSes. | 5323 # PIC is the default for these OSes. |
4798 ;; | 5324 ;; |
4799 | 5325 |
4800 mingw* | pw32* | os2*) | 5326 mingw* | cygwin* | pw32* | os2*) |
4801 # This hack is so that the source file can tell whether it is being | 5327 # This hack is so that the source file can tell whether it is being |
4802 # built for inclusion in a dll (and should export symbols for example). | 5328 # built for inclusion in a dll (and should export symbols for example). |
4803 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | 5329 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 5330 # (--disable-auto-import) libraries |
| 5331 m4_if([$1], [GCJ], [], |
| 5332 » [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4804 ;; | 5333 ;; |
4805 | 5334 |
4806 darwin* | rhapsody*) | 5335 darwin* | rhapsody*) |
4807 # PIC is the default on this platform | 5336 # PIC is the default on this platform |
4808 # Common symbols not allowed in MH_DYLIB files | 5337 # Common symbols not allowed in MH_DYLIB files |
4809 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 5338 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4810 ;; | 5339 ;; |
4811 | 5340 |
| 5341 interix[[3-9]]*) |
| 5342 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 5343 # Instead, we relocate shared libraries at runtime. |
| 5344 ;; |
| 5345 |
4812 msdosdjgpp*) | 5346 msdosdjgpp*) |
4813 # Just because we use GCC doesn't mean we suddenly get shared libraries | 5347 # Just because we use GCC doesn't mean we suddenly get shared libraries |
4814 # on systems that don't support them. | 5348 # on systems that don't support them. |
4815 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 5349 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4816 enable_shared=no | 5350 enable_shared=no |
4817 ;; | 5351 ;; |
4818 | 5352 |
4819 sysv4*MP*) | 5353 sysv4*MP*) |
4820 if test -d /usr/nec; then | 5354 if test -d /usr/nec; then |
4821 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | 5355 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
4822 fi | 5356 fi |
4823 ;; | 5357 ;; |
4824 | 5358 |
4825 hpux*) | 5359 hpux*) |
4826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 5360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
4827 # not for PA HP-UX. | 5361 # not for PA HP-UX. |
4828 case "$host_cpu" in | 5362 case $host_cpu in |
4829 hppa*64*|ia64*) | 5363 hppa*64*|ia64*) |
4830 # +Z the default | 5364 # +Z the default |
4831 ;; | 5365 ;; |
4832 *) | 5366 *) |
4833 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 5367 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4834 ;; | 5368 ;; |
4835 esac | 5369 esac |
4836 ;; | 5370 ;; |
4837 | 5371 |
4838 *) | 5372 *) |
4839 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 5373 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4840 ;; | 5374 ;; |
4841 esac | 5375 esac |
4842 else | 5376 else |
4843 # PORTME Check for flag to pass linker flags through the system compiler. | 5377 # PORTME Check for flag to pass linker flags through the system compiler. |
4844 case $host_os in | 5378 case $host_os in |
4845 aix*) | 5379 aix*) |
4846 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5380 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4847 if test "$host_cpu" = ia64; then | 5381 if test "$host_cpu" = ia64; then |
4848 # AIX 5 now supports IA64 processor | 5382 # AIX 5 now supports IA64 processor |
4849 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5383 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4850 else | 5384 else |
4851 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | 5385 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
4852 fi | 5386 fi |
4853 ;; | 5387 ;; |
| 5388 darwin*) |
| 5389 # PIC is the default on this platform |
| 5390 # Common symbols not allowed in MH_DYLIB files |
| 5391 case $cc_basename in |
| 5392 xlc*) |
| 5393 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 5394 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5395 ;; |
| 5396 esac |
| 5397 ;; |
4854 | 5398 |
4855 mingw* | pw32* | os2*) | 5399 mingw* | cygwin* | pw32* | os2*) |
4856 # This hack is so that the source file can tell whether it is being | 5400 # This hack is so that the source file can tell whether it is being |
4857 # built for inclusion in a dll (and should export symbols for example). | 5401 # built for inclusion in a dll (and should export symbols for example). |
4858 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | 5402 m4_if([$1], [GCJ], [], |
| 5403 » [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4859 ;; | 5404 ;; |
4860 | 5405 |
4861 hpux9* | hpux10* | hpux11*) | 5406 hpux9* | hpux10* | hpux11*) |
4862 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5407 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 5408 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
4864 # not for PA HP-UX. | 5409 # not for PA HP-UX. |
4865 case "$host_cpu" in | 5410 case $host_cpu in |
4866 hppa*64*|ia64*) | 5411 hppa*64*|ia64*) |
4867 # +Z the default | 5412 # +Z the default |
4868 ;; | 5413 ;; |
4869 *) | 5414 *) |
4870 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 5415 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4871 ;; | 5416 ;; |
4872 esac | 5417 esac |
4873 # Is there a better lt_prog_compiler_static that works with the bundled CC
? | 5418 # Is there a better lt_prog_compiler_static that works with the bundled CC
? |
4874 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 5419 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4875 ;; | 5420 ;; |
4876 | 5421 |
4877 irix5* | irix6* | nonstopux*) | 5422 irix5* | irix6* | nonstopux*) |
4878 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5423 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4879 # PIC (with -KPIC) is the default. | 5424 # PIC (with -KPIC) is the default. |
4880 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 5425 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4881 ;; | 5426 ;; |
4882 | 5427 |
4883 newsos6) | 5428 newsos6) |
4884 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5429 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4885 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5430 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4886 ;; | 5431 ;; |
4887 | 5432 |
4888 linux*) | 5433 linux* | k*bsd*-gnu) |
4889 case $CC in | 5434 case $cc_basename in |
4890 icc* | ecc*) | 5435 icc* | ecc*) |
4891 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5436 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4892 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5437 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4893 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | 5438 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4894 ;; | 5439 ;; |
| 5440 pgcc* | pgf77* | pgf90* | pgf95*) |
| 5441 # Portland Group compilers (*not* the Pentium gcc compiler, |
| 5442 # which looks to be a dead project) |
| 5443 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5444 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 5445 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 5446 ;; |
4895 ccc*) | 5447 ccc*) |
4896 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5448 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4897 # All Alpha code is PIC. | 5449 # All Alpha code is PIC. |
4898 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 5450 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4899 ;; | 5451 ;; |
| 5452 *) |
| 5453 case `$CC -V 2>&1 | sed 5q` in |
| 5454 *Sun\ C*) |
| 5455 # Sun C 5.9 |
| 5456 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 5457 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 5458 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5459 ;; |
| 5460 *Sun\ F*) |
| 5461 # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 5462 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 5463 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 5464 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' |
| 5465 ;; |
| 5466 esac |
| 5467 ;; |
4900 esac | 5468 esac |
4901 ;; | 5469 ;; |
4902 | 5470 |
4903 osf3* | osf4* | osf5*) | 5471 osf3* | osf4* | osf5*) |
4904 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5472 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4905 # All OSF/1 code is PIC. | 5473 # All OSF/1 code is PIC. |
4906 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 5474 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4907 ;; | 5475 ;; |
4908 | 5476 |
4909 sco3.2v5*) | 5477 rdos*) |
4910 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' | 5478 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4911 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' | |
4912 ;; | 5479 ;; |
4913 | 5480 |
4914 solaris*) | 5481 solaris*) |
4915 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4916 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5482 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4917 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5483 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 5484 case $cc_basename in |
| 5485 f77* | f90* | f95*) |
| 5486 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
| 5487 *) |
| 5488 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
| 5489 esac |
4918 ;; | 5490 ;; |
4919 | 5491 |
4920 sunos4*) | 5492 sunos4*) |
4921 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 5493 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4922 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | 5494 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
4923 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5495 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4924 ;; | 5496 ;; |
4925 | 5497 |
4926 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 5498 sysv4 | sysv4.2uw2* | sysv4.3*) |
4927 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5499 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4928 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5500 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4929 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5501 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4930 ;; | 5502 ;; |
4931 | 5503 |
4932 sysv4*MP*) | 5504 sysv4*MP*) |
4933 if test -d /usr/nec ;then | 5505 if test -d /usr/nec ;then |
4934 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | 5506 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
4935 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5507 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4936 fi | 5508 fi |
4937 ;; | 5509 ;; |
4938 | 5510 |
| 5511 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 5512 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5513 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 5514 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 5515 ;; |
| 5516 |
| 5517 unicos*) |
| 5518 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 5519 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 5520 ;; |
| 5521 |
4939 uts4*) | 5522 uts4*) |
4940 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 5523 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4941 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5524 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4942 ;; | 5525 ;; |
4943 | 5526 |
4944 *) | 5527 *) |
4945 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 5528 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4946 ;; | 5529 ;; |
4947 esac | 5530 esac |
4948 fi | 5531 fi |
4949 ]) | 5532 ]) |
4950 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) | 5533 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) |
4951 | 5534 |
4952 # | 5535 # |
4953 # Check to make sure the PIC flag actually works. | 5536 # Check to make sure the PIC flag actually works. |
4954 # | 5537 # |
4955 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then | 5538 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then |
4956 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compi
ler_pic, $1) works], | 5539 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compi
ler_pic, $1) works], |
4957 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), | 5540 _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), |
4958 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1
],[CXX],[ -DPIC],[])])], [], | 5541 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1
],[CXX],[ -DPIC],[])])], [], |
4959 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in | 5542 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in |
4960 "" | " "*) ;; | 5543 "" | " "*) ;; |
4961 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compile
r_pic, $1)" ;; | 5544 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compile
r_pic, $1)" ;; |
4962 esac], | 5545 esac], |
4963 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 5546 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4964 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | 5547 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
4965 fi | 5548 fi |
4966 case "$host_os" in | 5549 case $host_os in |
4967 # For platforms which do not support PIC, -DPIC is meaningless: | 5550 # For platforms which do not support PIC, -DPIC is meaningless: |
4968 *djgpp*) | 5551 *djgpp*) |
4969 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 5552 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4970 ;; | 5553 ;; |
4971 *) | 5554 *) |
4972 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic
, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" | 5555 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic
, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
4973 ;; | 5556 ;; |
4974 esac | 5557 esac |
| 5558 |
| 5559 # |
| 5560 # Check to make sure the static flag actually works. |
| 5561 # |
| 5562 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAG
VAR(lt_prog_compiler_static, $1)\" |
| 5563 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
| 5564 _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), |
| 5565 $lt_tmp_static_flag, |
| 5566 [], |
| 5567 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
4975 ]) | 5568 ]) |
4976 | 5569 |
4977 | 5570 |
4978 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) | 5571 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) |
4979 # ------------------------------------ | 5572 # ------------------------------------ |
4980 # See if the linker supports building shared libraries. | 5573 # See if the linker supports building shared libraries. |
4981 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], | 5574 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], |
4982 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | 5575 [AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 5576 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
4983 ifelse([$1],[CXX],[ | 5577 ifelse([$1],[CXX],[ |
4984 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sy
mbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 5578 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sy
mbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4985 case $host_os in | 5579 case $host_os in |
4986 aix4* | aix5*) | 5580 aix[[4-9]]*) |
4987 # If we're using GNU nm, then we don't want the "-C" option. | 5581 # If we're using GNU nm, then we don't want the "-C" option. |
4988 # -C means demangle to AIX nm, but means don't demangle with GNU nm | 5582 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
4989 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 5583 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
4990 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | a
wk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\
[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | 5584 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | a
wk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\
[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
4991 else | 5585 else |
4992 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience |
awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](
\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | 5586 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience |
awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](
\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
4993 fi | 5587 fi |
4994 ;; | 5588 ;; |
4995 pw32*) | 5589 pw32*) |
4996 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | 5590 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
4997 ;; | 5591 ;; |
4998 cygwin* | mingw*) | 5592 cygwin* | mingw*) |
4999 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_
symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '
\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | 5593 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_
symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[
]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]]
[[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' |
| 5594 ;; |
| 5595 linux* | k*bsd*-gnu) |
| 5596 _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
5000 ;; | 5597 ;; |
5001 *) | 5598 *) |
5002 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_
symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 5599 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_
symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5003 ;; | 5600 ;; |
5004 esac | 5601 esac |
| 5602 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
5005 ],[ | 5603 ],[ |
5006 runpath_var= | 5604 runpath_var= |
5007 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | 5605 _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
5008 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 5606 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
5009 _LT_AC_TAGVAR(archive_cmds, $1)= | 5607 _LT_AC_TAGVAR(archive_cmds, $1)= |
5010 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | 5608 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
5011 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= | 5609 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= |
5012 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= | 5610 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
5013 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | 5611 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
5014 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | 5612 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
(...skipping 10 matching lines...) Expand all Loading... |
5025 _LT_AC_TAGVAR(module_expsym_cmds, $1)= | 5623 _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
5026 _LT_AC_TAGVAR(always_export_symbols, $1)=no | 5624 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
5027 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sy
mbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 5625 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sy
mbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5028 # include_expsyms should be a list of space-separated symbols to be *always* | 5626 # include_expsyms should be a list of space-separated symbols to be *always* |
5029 # included in the symbol list | 5627 # included in the symbol list |
5030 _LT_AC_TAGVAR(include_expsyms, $1)= | 5628 _LT_AC_TAGVAR(include_expsyms, $1)= |
5031 # exclude_expsyms can be an extended regexp of symbols to exclude | 5629 # exclude_expsyms can be an extended regexp of symbols to exclude |
5032 # it will be wrapped by ` (' and `)$', so one must not match beginning or | 5630 # it will be wrapped by ` (' and `)$', so one must not match beginning or |
5033 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 5631 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
5034 # as well as any symbol that contains `d'. | 5632 # as well as any symbol that contains `d'. |
5035 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" | 5633 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
5036 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 5634 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
5037 # platforms (ab)use it in PIC code, but their linkers get confused if | 5635 # platforms (ab)use it in PIC code, but their linkers get confused if |
5038 # the symbol is explicitly referenced. Since portable code cannot | 5636 # the symbol is explicitly referenced. Since portable code cannot |
5039 # rely on this symbol name, it's probably fine to never include it in | 5637 # rely on this symbol name, it's probably fine to never include it in |
5040 # preloaded symbol tables. | 5638 # preloaded symbol tables. |
| 5639 # Exclude shared library initialization/finalization symbols. |
| 5640 dnl Note also adjust exclude_expsyms for C++ above. |
5041 extract_expsyms_cmds= | 5641 extract_expsyms_cmds= |
5042 | 5642 # Just being paranoid about ensuring that cc_basename is set. |
| 5643 _LT_CC_BASENAME([$compiler]) |
5043 case $host_os in | 5644 case $host_os in |
5044 cygwin* | mingw* | pw32*) | 5645 cygwin* | mingw* | pw32*) |
5045 # FIXME: the MSVC++ port hasn't been tested in a loooong time | 5646 # FIXME: the MSVC++ port hasn't been tested in a loooong time |
5046 # When not using gcc, we currently assume that we are using | 5647 # When not using gcc, we currently assume that we are using |
5047 # Microsoft Visual C++. | 5648 # Microsoft Visual C++. |
5048 if test "$GCC" != yes; then | 5649 if test "$GCC" != yes; then |
5049 with_gnu_ld=no | 5650 with_gnu_ld=no |
5050 fi | 5651 fi |
5051 ;; | 5652 ;; |
| 5653 interix*) |
| 5654 # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 5655 with_gnu_ld=yes |
| 5656 ;; |
5052 openbsd*) | 5657 openbsd*) |
5053 with_gnu_ld=no | 5658 with_gnu_ld=no |
5054 ;; | 5659 ;; |
5055 esac | 5660 esac |
5056 | 5661 |
5057 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | 5662 _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
5058 if test "$with_gnu_ld" = yes; then | 5663 if test "$with_gnu_ld" = yes; then |
5059 # If archive_cmds runs LD, not CC, wlarc should be empty | 5664 # If archive_cmds runs LD, not CC, wlarc should be empty |
5060 wlarc='${wl}' | 5665 wlarc='${wl}' |
5061 | 5666 |
| 5667 # Set some defaults for GNU ld with shared library support. These |
| 5668 # are reset later if shared libraries are not supported. Putting them |
| 5669 # here allows them to be overridden if necessary. |
| 5670 runpath_var=LD_RUN_PATH |
| 5671 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 5672 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 5673 # ancient GNU ld didn't support --whole-archive et. al. |
| 5674 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 5675 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$conv
enience '"$wlarc"'--no-whole-archive' |
| 5676 else |
| 5677 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 5678 fi |
| 5679 supports_anon_versioning=no |
| 5680 case `$LD -v 2>/dev/null` in |
| 5681 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 5682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 5683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 5684 *\ 2.11.*) ;; # other 2.11 versions |
| 5685 *) supports_anon_versioning=yes ;; |
| 5686 esac |
| 5687 |
5062 # See if GNU ld supports shared libraries. | 5688 # See if GNU ld supports shared libraries. |
5063 case $host_os in | 5689 case $host_os in |
5064 aix3* | aix4* | aix5*) | 5690 aix[[3-9]]*) |
5065 # On AIX/PPC, the GNU linker is very broken | 5691 # On AIX/PPC, the GNU linker is very broken |
5066 if test "$host_cpu" != ia64; then | 5692 if test "$host_cpu" != ia64; then |
5067 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5693 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5068 cat <<EOF 1>&2 | 5694 cat <<EOF 1>&2 |
5069 | 5695 |
5070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 5696 *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
5071 *** to be unable to reliably create shared libraries on AIX. | 5697 *** to be unable to reliably create shared libraries on AIX. |
5072 *** Therefore, libtool is disabling shared libraries support. If you | 5698 *** Therefore, libtool is disabling shared libraries support. If you |
5073 *** really care for shared libraries, you may want to modify your PATH | 5699 *** really care for shared libraries, you may want to modify your PATH |
5074 *** so that a non-GNU linker is found, and then restart. | 5700 *** so that a non-GNU linker is found, and then restart. |
(...skipping 27 matching lines...) Expand all Loading... |
5102 fi | 5728 fi |
5103 ;; | 5729 ;; |
5104 | 5730 |
5105 cygwin* | mingw* | pw32*) | 5731 cygwin* | mingw* | pw32*) |
5106 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 5732 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
5107 # as there is no search path for DLLs. | 5733 # as there is no search path for DLLs. |
5108 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5734 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5109 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 5735 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5110 _LT_AC_TAGVAR(always_export_symbols, $1)=no | 5736 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
5111 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5737 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5112 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $globa
l_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e
'\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | 5738 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $globa
l_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\''
-e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' |
5113 | 5739 |
5114 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 5740 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
5115 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler
_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,
$lib' | 5741 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler
_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-im
plib -Xlinker $lib' |
5116 # If the export-symbols file already is a .def file (1st line | 5742 # If the export-symbols file already is a .def file (1st line |
5117 # is EXPORTS), use it as is; otherwise, prepend... | 5743 # is EXPORTS), use it as is; otherwise, prepend... |
5118 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbo
ls`" = xEXPORTS; then | 5744 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbo
ls`" = xEXPORTS; then |
5119 cp $export_symbols $output_objdir/$soname.def; | 5745 cp $export_symbols $output_objdir/$soname.def; |
5120 else | 5746 else |
5121 echo EXPORTS > $output_objdir/$soname.def; | 5747 echo EXPORTS > $output_objdir/$soname.def; |
5122 cat $export_symbols >> $output_objdir/$soname.def; | 5748 cat $export_symbols >> $output_objdir/$soname.def; |
5123 fi~ | 5749 fi~ |
5124 » $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags
-o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 5750 » $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags
-o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -
Xlinker $lib' |
5125 else | 5751 else |
5126 » ld_shlibs=no | 5752 » _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5127 fi | 5753 fi |
5128 ;; | 5754 ;; |
5129 | 5755 |
5130 netbsd*) | 5756 interix[[3-9]]*) |
| 5757 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5758 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5759 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 5760 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5761 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 5762 # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 5763 # default) and relocated if they conflict, which is a slow very memory |
| 5764 # consuming and fragmenting process. To avoid this, we pick a random, |
| 5765 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 5766 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 5767 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $
compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \
* 262144 + 1342177280` -o $lib' |
| 5768 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$out
put_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flag
s ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}
--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 5769 ;; |
| 5770 |
| 5771 gnu* | linux* | k*bsd*-gnu) |
| 5772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 5773 » tmp_addflag= |
| 5774 » case $cc_basename,$host_cpu in |
| 5775 » pgcc*)» » » » # Portland Group C compiler |
| 5776 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for c
onv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conveni
ence,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 5777 » tmp_addflag=' $pic_flag' |
| 5778 » ;; |
| 5779 » pgf77* | pgf90* | pgf95*)» # Portland Group f77 and f90 compilers |
| 5780 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for c
onv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conveni
ence,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 5781 » tmp_addflag=' $pic_flag -Mnomain' ;; |
| 5782 » ecc*,ia64* | icc*,ia64*)» » # Intel C compiler on ia64 |
| 5783 » tmp_addflag=' -i_dynamic' ;; |
| 5784 » efc*,ia64* | ifort*,ia64*)» # Intel Fortran compiler on ia64 |
| 5785 » tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 5786 » ifc* | ifort*)» » » # Intel Fortran compiler |
| 5787 » tmp_addflag=' -nofor_main' ;; |
| 5788 » esac |
| 5789 » case `$CC -V 2>&1 | sed 5q` in |
| 5790 » *Sun\ C*)» » » # Sun C 5.9 |
| 5791 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_c
onvenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenien
ce=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole
-archive' |
| 5792 » tmp_sharedflag='-G' ;; |
| 5793 » *Sun\ F*)» » » # Sun Fortran 8.3 |
| 5794 » tmp_sharedflag='-G' ;; |
| 5795 » *) |
| 5796 » tmp_sharedflag='-shared' ;; |
| 5797 » esac |
| 5798 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $
libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5799 |
| 5800 » if test $supports_anon_versioning = yes; then |
| 5801 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_ob
jdir/$libname.ver~ |
| 5802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 5803 $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 5804 » $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flag
s ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver
-o $lib' |
| 5805 » fi |
| 5806 » _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
| 5807 else |
| 5808 » _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5809 fi |
| 5810 ;; |
| 5811 |
| 5812 netbsd* | netbsdelf*-gnu) |
5131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 5813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
5132 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $link
er_flags -o $lib' | 5814 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $link
er_flags -o $lib' |
5133 wlarc= | 5815 wlarc= |
5134 else | 5816 else |
5135 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler
_flags ${wl}-soname $wl$soname -o $lib' | 5817 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler
_flags ${wl}-soname $wl$soname -o $lib' |
5136 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $c
ompiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbo
ls -o $lib' | 5818 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $c
ompiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbo
ls -o $lib' |
5137 fi | 5819 fi |
5138 ;; | 5820 ;; |
5139 | 5821 |
5140 solaris* | sysv5*) | 5822 solaris*) |
5141 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 5823 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
5142 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5824 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5143 cat <<EOF 1>&2 | 5825 cat <<EOF 1>&2 |
5144 | 5826 |
5145 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 5827 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
5146 *** create shared libraries on Solaris systems. Therefore, libtool | 5828 *** create shared libraries on Solaris systems. Therefore, libtool |
5147 *** is disabling shared libraries support. We urge you to upgrade GNU | 5829 *** is disabling shared libraries support. We urge you to upgrade GNU |
5148 *** binutils to release 2.9.1 or newer. Another option is to modify | 5830 *** binutils to release 2.9.1 or newer. Another option is to modify |
5149 *** your PATH or compiler configuration so that the native linker is | 5831 *** your PATH or compiler configuration so that the native linker is |
5150 *** used, and then restart. | 5832 *** used, and then restart. |
5151 | 5833 |
5152 EOF | 5834 EOF |
5153 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 5835 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
5154 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler
_flags ${wl}-soname $wl$soname -o $lib' | 5836 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler
_flags ${wl}-soname $wl$soname -o $lib' |
5155 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $c
ompiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbo
ls -o $lib' | 5837 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $c
ompiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbo
ls -o $lib' |
5156 else | 5838 else |
5157 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5839 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5158 fi | 5840 fi |
5159 ;; | 5841 ;; |
5160 | 5842 |
| 5843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 5844 case `$LD -v 2>&1` in |
| 5845 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
| 5846 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5847 cat <<_LT_EOF 1>&2 |
| 5848 |
| 5849 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 5850 *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 5851 *** is disabling shared libraries support. We urge you to upgrade GNU |
| 5852 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 5853 *** your PATH or compiler configuration so that the native linker is |
| 5854 *** used, and then restart. |
| 5855 |
| 5856 _LT_EOF |
| 5857 ;; |
| 5858 *) |
| 5859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; th
en |
| 5860 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH"
&& echo ${wl}-rpath,$libdir`' |
| 5861 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $comp
iler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 5862 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplib
s $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain
-symbols-file,$export_symbols -o $lib' |
| 5863 else |
| 5864 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5865 fi |
| 5866 ;; |
| 5867 esac |
| 5868 ;; |
| 5869 |
5161 sunos4*) | 5870 sunos4*) |
5162 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib
$libobjs $deplibs $linker_flags' | 5871 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib
$libobjs $deplibs $linker_flags' |
5163 wlarc= | 5872 wlarc= |
5164 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5873 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5165 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5874 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5166 ;; | 5875 ;; |
5167 | 5876 |
5168 linux*) | |
5169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
5170 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname -o $lib' | |
5171 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" | |
5172 supports_anon_versioning=no | |
5173 case `$LD -v 2>/dev/null` in | |
5174 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
5175 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
5176 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
5177 *\ 2.11.*) ;; # other 2.11 versions | |
5178 *) supports_anon_versioning=yes ;; | |
5179 esac | |
5180 if test $supports_anon_versioning = yes; then | |
5181 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objd
ir/$libname.ver~ | |
5182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
5183 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
5184 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${
wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
5185 else | |
5186 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" | |
5187 fi | |
5188 else | |
5189 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
5190 fi | |
5191 ;; | |
5192 | |
5193 *) | 5877 *) |
5194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 5878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
5195 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler
_flags ${wl}-soname $wl$soname -o $lib' | 5879 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler
_flags ${wl}-soname $wl$soname -o $lib' |
5196 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $c
ompiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbo
ls -o $lib' | 5880 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $c
ompiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbo
ls -o $lib' |
5197 else | 5881 else |
5198 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5882 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5199 fi | 5883 fi |
5200 ;; | 5884 ;; |
5201 esac | 5885 esac |
5202 | 5886 |
5203 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then | 5887 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then |
5204 runpath_var=LD_RUN_PATH | 5888 runpath_var= |
5205 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | 5889 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5206 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 5890 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
5207 # ancient GNU ld didn't support --whole-archive et. al. | 5891 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
5208 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
5209 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$conv
enience '"$wlarc"'--no-whole-archive' | |
5210 else | |
5211 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
5212 fi | |
5213 fi | 5892 fi |
5214 else | 5893 else |
5215 # PORTME fill in a description of your system's linker (not GNU ld) | 5894 # PORTME fill in a description of your system's linker (not GNU ld) |
5216 case $host_os in | 5895 case $host_os in |
5217 aix3*) | 5896 aix3*) |
5218 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 5897 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5219 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | 5898 _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
5220 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $lib
objs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAG
S $lib $output_objdir/$soname' | 5899 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $lib
objs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAG
S $lib $output_objdir/$soname' |
5221 # Note: this linker hardcodes the directories in LIBPATH if there | 5900 # Note: this linker hardcodes the directories in LIBPATH if there |
5222 # are no directories specified by -L. | 5901 # are no directories specified by -L. |
5223 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5902 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5224 if test "$GCC" = yes && test -z "$link_static_flag"; then | 5903 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
5225 # Neither direct hardcoding nor static linking is supported with a | 5904 # Neither direct hardcoding nor static linking is supported with a |
5226 # broken collect2. | 5905 # broken collect2. |
5227 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | 5906 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
5228 fi | 5907 fi |
5229 ;; | 5908 ;; |
5230 | 5909 |
5231 aix4* | aix5*) | 5910 aix[[4-9]]*) |
5232 if test "$host_cpu" = ia64; then | 5911 if test "$host_cpu" = ia64; then |
5233 # On IA64, the linker does run time linking by default, so we don't | 5912 # On IA64, the linker does run time linking by default, so we don't |
5234 # have to do anything special. | 5913 # have to do anything special. |
5235 aix_use_runtimelinking=no | 5914 aix_use_runtimelinking=no |
5236 exp_sym_flag='-Bexport' | 5915 exp_sym_flag='-Bexport' |
5237 no_entry_flag="" | 5916 no_entry_flag="" |
5238 else | 5917 else |
5239 # If we're using GNU nm, then we don't want the "-C" option. | 5918 # If we're using GNU nm, then we don't want the "-C" option. |
5240 # -C means demangle to AIX nm, but means don't demangle with GNU nm | 5919 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
5241 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 5920 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
5242 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience
| awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([subst
r](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | 5921 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience
| awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([subst
r](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
5243 else | 5922 else |
5244 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenienc
e | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([subs
tr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | 5923 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenienc
e | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([subs
tr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
5245 fi | 5924 fi |
5246 aix_use_runtimelinking=no | 5925 aix_use_runtimelinking=no |
5247 | 5926 |
5248 # Test if we are trying to use run time linking or normal | 5927 # Test if we are trying to use run time linking or normal |
5249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 5928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
5250 # need to do runtime linking. | 5929 # need to do runtime linking. |
5251 » case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | 5930 » case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
5252 for ld_flag in $LDFLAGS; do | 5931 for ld_flag in $LDFLAGS; do |
5253 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 5932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
5254 aix_use_runtimelinking=yes | 5933 aix_use_runtimelinking=yes |
5255 break | 5934 break |
5256 fi | 5935 fi |
5257 done | 5936 done |
| 5937 ;; |
5258 esac | 5938 esac |
5259 | 5939 |
5260 exp_sym_flag='-bexport' | 5940 exp_sym_flag='-bexport' |
5261 no_entry_flag='-bnoentry' | 5941 no_entry_flag='-bnoentry' |
5262 fi | 5942 fi |
5263 | 5943 |
5264 # When large executables or shared objects are built, AIX ld can | 5944 # When large executables or shared objects are built, AIX ld can |
5265 # have problems creating the table of contents. If linking a library | 5945 # have problems creating the table of contents. If linking a library |
5266 # or program results in "error TOC overflow" add -mminimal-toc to | 5946 # or program results in "error TOC overflow" add -mminimal-toc to |
5267 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | 5947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
5268 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 5948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
5269 | 5949 |
5270 _LT_AC_TAGVAR(archive_cmds, $1)='' | 5950 _LT_AC_TAGVAR(archive_cmds, $1)='' |
5271 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5951 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5272 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | 5952 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
5273 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 5953 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5274 | 5954 |
5275 if test "$GCC" = yes; then | 5955 if test "$GCC" = yes; then |
5276 » case $host_os in aix4.[012]|aix4.[012].*) | 5956 » case $host_os in aix4.[[012]]|aix4.[[012]].*) |
5277 # We only want to do this on AIX 4.2 and lower, the check | 5957 # We only want to do this on AIX 4.2 and lower, the check |
5278 # below for broken collect2 doesn't work under 4.3+ | 5958 # below for broken collect2 doesn't work under 4.3+ |
5279 collect2name=`${CC} -print-prog-name=collect2` | 5959 collect2name=`${CC} -print-prog-name=collect2` |
5280 if test -f "$collect2name" && \ | 5960 if test -f "$collect2name" && \ |
5281 strings "$collect2name" | grep resolve_lib_name >/dev/null | 5961 strings "$collect2name" | grep resolve_lib_name >/dev/null |
5282 then | 5962 then |
5283 # We have reworked collect2 | 5963 # We have reworked collect2 |
5284 » _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5964 » : |
5285 else | 5965 else |
5286 # We have old collect2 | 5966 # We have old collect2 |
5287 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | 5967 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
5288 # It fails to find uninstalled libraries when the uninstalled | 5968 # It fails to find uninstalled libraries when the uninstalled |
5289 # path is not listed in the libpath. Setting hardcode_minus_L | 5969 # path is not listed in the libpath. Setting hardcode_minus_L |
5290 # to unsupported forces relinking | 5970 # to unsupported forces relinking |
5291 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5971 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5292 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5972 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5293 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 5973 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
5294 fi | 5974 fi |
| 5975 ;; |
5295 esac | 5976 esac |
5296 shared_flag='-shared' | 5977 shared_flag='-shared' |
| 5978 if test "$aix_use_runtimelinking" = yes; then |
| 5979 shared_flag="$shared_flag "'${wl}-G' |
| 5980 fi |
5297 else | 5981 else |
5298 # not using gcc | 5982 # not using gcc |
5299 if test "$host_cpu" = ia64; then | 5983 if test "$host_cpu" = ia64; then |
5300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 5984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
5301 # chokes on -Wl,-G. The following line is correct: | 5985 # chokes on -Wl,-G. The following line is correct: |
5302 shared_flag='-G' | 5986 shared_flag='-G' |
5303 else | 5987 else |
5304 » if test "$aix_use_runtimelinking" = yes; then | 5988 » if test "$aix_use_runtimelinking" = yes; then |
5305 shared_flag='${wl}-G' | 5989 shared_flag='${wl}-G' |
5306 else | 5990 else |
5307 shared_flag='${wl}-bM:SRE' | 5991 shared_flag='${wl}-bM:SRE' |
5308 » fi | 5992 » fi |
5309 fi | 5993 fi |
5310 fi | 5994 fi |
5311 | 5995 |
5312 # It seems that -bexpall does not export symbols beginning with | 5996 # It seems that -bexpall does not export symbols beginning with |
5313 # underscore (_), so it is better to generate a list of symbols to export. | 5997 # underscore (_), so it is better to generate a list of symbols to export. |
5314 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | 5998 _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
5315 if test "$aix_use_runtimelinking" = yes; then | 5999 if test "$aix_use_runtimelinking" = yes; then |
5316 # Warning - without using the other runtime loading flags (-brtl), | 6000 # Warning - without using the other runtime loading flags (-brtl), |
5317 # -berok will link without error, but may produce a broken library. | 6001 # -berok will link without error, but may produce a broken library. |
5318 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | 6002 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
5319 # Determine the default libpath from the value encoded in an empty execut
able. | 6003 # Determine the default libpath from the value encoded in an empty execut
able. |
5320 _LT_AC_SYS_LIBPATH_AIX | 6004 _LT_AC_SYS_LIBPATH_AIX |
5321 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$a
ix_libpath" | 6005 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$a
ix_libpath" |
5322 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname
$libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; t
hen echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${w
l}$exp_sym_flag:\$export_symbols $shared_flag" | 6006 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname
$libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_u
ndefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"
\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
5323 else | 6007 else |
5324 if test "$host_cpu" = ia64; then | 6008 if test "$host_cpu" = ia64; then |
5325 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib
:/lib' | 6009 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib
:/lib' |
5326 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 6010 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
5327 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output
_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '
"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | 6011 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output
_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}
${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
5328 else | 6012 else |
5329 # Determine the default libpath from the value encoded in an empty exec
utable. | 6013 # Determine the default libpath from the value encoded in an empty exec
utable. |
5330 _LT_AC_SYS_LIBPATH_AIX | 6014 _LT_AC_SYS_LIBPATH_AIX |
5331 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"
$aix_libpath" | 6015 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"
$aix_libpath" |
5332 # Warning - without using the other run time loading flags, | 6016 # Warning - without using the other run time loading flags, |
5333 # -berok will link without error, but may produce a broken library. | 6017 # -berok will link without error, but may produce a broken library. |
5334 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 6018 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5335 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 6019 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
5336 # -bexpall does not export symbols beginning with underscore (_) | |
5337 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | |
5338 # Exported symbols can be pulled into shared objects from archives | 6020 # Exported symbols can be pulled into shared objects from archives |
5339 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' | 6021 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
5340 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 6022 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
5341 » # This is similar to how AIX traditionally builds it's shared librarie
s. | 6023 » # This is similar to how AIX traditionally builds its shared libraries
. |
5342 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output
_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}
-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a
$output_objdir/$soname' | 6024 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output
_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$expor
t_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a
$output_objdir/$soname' |
5343 fi | 6025 fi |
5344 fi | 6026 fi |
5345 ;; | 6027 ;; |
5346 | 6028 |
5347 amigaos*) | 6029 amigaos*) |
5348 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo
"#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRAR
Y_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $ou
tput_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdi
r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &
& a2ixlibrary -32)' | 6030 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo
"#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRAR
Y_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $ou
tput_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdi
r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &
& a2ixlibrary -32)' |
5349 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 6031 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5350 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 6032 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5351 # see comment about different semantics on the GNU ld section | 6033 # see comment about different semantics on the GNU ld section |
5352 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 6034 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5353 ;; | 6035 ;; |
5354 | 6036 |
5355 bsdi4*) | 6037 bsdi[[45]]*) |
5356 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | 6038 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
5357 ;; | 6039 ;; |
5358 | 6040 |
5359 cygwin* | mingw* | pw32*) | 6041 cygwin* | mingw* | pw32*) |
5360 # When not using gcc, we currently assume that we are using | 6042 # When not using gcc, we currently assume that we are using |
5361 # Microsoft Visual C++. | 6043 # Microsoft Visual C++. |
5362 # hardcode_libdir_flag_spec is actually meaningless, as there is | 6044 # hardcode_libdir_flag_spec is actually meaningless, as there is |
5363 # no search path for DLLs. | 6045 # no search path for DLLs. |
5364 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | 6046 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
5365 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 6047 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5366 # Tell ltmain to make .lib files, not .a files. | 6048 # Tell ltmain to make .lib files, not .a files. |
5367 libext=lib | 6049 libext=lib |
5368 # Tell ltmain to make .dll files, not .so files. | 6050 # Tell ltmain to make .dll files, not .so files. |
5369 shrext_cmds=".dll" | 6051 shrext_cmds=".dll" |
5370 # FIXME: Setting linknames here is a bad hack. | 6052 # FIXME: Setting linknames here is a bad hack. |
5371 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `ech
o "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 6053 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `ech
o "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
5372 # The linker will automatically build a .lib file if we build a DLL. | 6054 # The linker will automatically build a .lib file if we build a DLL. |
5373 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' | 6055 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
5374 # FIXME: Should let the user specify the lib program. | 6056 # FIXME: Should let the user specify the lib program. |
5375 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' | 6057 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
5376 fix_srcfile_path='`cygpath -w "$srcfile"`' | 6058 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
5377 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 6059 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5378 ;; | 6060 ;; |
5379 | 6061 |
5380 darwin* | rhapsody*) | 6062 darwin* | rhapsody*) |
5381 if test "$GXX" = yes ; then | 6063 case $host_os in |
| 6064 rhapsody* | darwin1.[[012]]) |
| 6065 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| 6066 ;; |
| 6067 *) # Darwin 1.3 on |
| 6068 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 6069 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-u
ndefined ${wl}suppress' |
| 6070 else |
| 6071 case ${MACOSX_DEPLOYMENT_TARGET} in |
| 6072 10.[[012]]) |
| 6073 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${w
l}-undefined ${wl}suppress' |
| 6074 ;; |
| 6075 10.*) |
| 6076 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dyn
amic_lookup' |
| 6077 ;; |
| 6078 esac |
| 6079 fi |
| 6080 ;; |
| 6081 esac |
5382 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 6082 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5383 case "$host_os" in | |
5384 rhapsody* | darwin1.[[012]]) | |
5385 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' | |
5386 ;; | |
5387 *) # Darwin 1.3 on | |
5388 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
5389 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined supp
ress' | |
5390 else | |
5391 case ${MACOSX_DEPLOYMENT_TARGET} in | |
5392 10.[[012]]) | |
5393 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined
suppress' | |
5394 ;; | |
5395 10.*) | |
5396 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' | |
5397 ;; | |
5398 esac | |
5399 fi | |
5400 ;; | |
5401 esac | |
5402 lt_int_apple_cc_single_mod=no | |
5403 output_verbose_link_cmd='echo' | |
5404 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | |
5405 lt_int_apple_cc_single_mod=yes | |
5406 fi | |
5407 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
5408 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow
_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$
soname $verstring' | |
5409 else | |
5410 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private
_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_
flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$sona
me $verstring' | |
5411 fi | |
5412 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_fl
ag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
5413 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't e
xist in older darwin ld's | |
5414 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
5415 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]
*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.e
xpsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $dep
libs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_o
bjdir/${libname}-symbols.expsym ${lib}' | |
5416 else | |
5417 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]
*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.e
xpsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master
.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $depli
bs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_obj
dir/${libname}-symbols.expsym ${lib}' | |
5418 fi | |
5419 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*
,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.ex
psym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags
~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
5420 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 6083 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
5421 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | 6084 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
5422 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 6085 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5423 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' | 6086 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
5424 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 6087 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 6088 if test "$GCC" = yes ; then |
| 6089 output_verbose_link_cmd='echo' |
| 6090 _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag
-o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$
verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 6091 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bu
ndle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 6092 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols
> \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_
flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$sonam
e \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 6093 _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbol
s > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$
lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsym
util}" |
5425 else | 6094 else |
5426 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 6095 case $cc_basename in |
| 6096 xlc*) |
| 6097 output_verbose_link_cmd='echo' |
| 6098 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -
o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$s
oname` $xlcverstring' |
| 6099 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bund
le $libobjs $deplibs$compiler_flags' |
| 6100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn
't exist in older darwin lds |
| 6101 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*
,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.ex
psym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_fl
ags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdi
r/${libname}-symbols.expsym ${lib}' |
| 6102 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*
,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.ex
psym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags
~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 6103 ;; |
| 6104 *) |
| 6105 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6106 ;; |
| 6107 esac |
5427 fi | 6108 fi |
5428 ;; | 6109 ;; |
5429 | 6110 |
5430 dgux*) | 6111 dgux*) |
5431 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $depli
bs $linker_flags' | 6112 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $depli
bs $linker_flags' |
5432 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 6113 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5433 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6114 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5434 ;; | 6115 ;; |
5435 | 6116 |
5436 freebsd1*) | 6117 freebsd1*) |
(...skipping 13 matching lines...) Expand all Loading... |
5450 | 6131 |
5451 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 6132 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
5452 freebsd2*) | 6133 freebsd2*) |
5453 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs
$linker_flags' | 6134 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs
$linker_flags' |
5454 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6135 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5455 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 6136 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5456 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6137 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5457 ;; | 6138 ;; |
5458 | 6139 |
5459 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 6140 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
5460 freebsd* | kfreebsd*-gnu) | 6141 freebsd* | dragonfly*) |
5461 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $co
mpiler_flags' | 6142 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $co
mpiler_flags' |
5462 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 6143 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5463 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6144 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5464 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6145 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5465 ;; | 6146 ;; |
5466 | 6147 |
5467 hpux9*) | 6148 hpux9*) |
5468 if test "$GCC" = yes; then | 6149 if test "$GCC" = yes; then |
5469 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared
-fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $
compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $
lib' | 6150 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared
-fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $
compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $
lib' |
5470 else | 6151 else |
5471 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $i
nstall_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $ou
tput_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 6152 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $i
nstall_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $ou
tput_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
5472 fi | 6153 fi |
5473 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 6154 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5474 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 6155 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
5475 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6156 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5476 | 6157 |
5477 # hardcode_minus_L: Not really in the search PATH, | 6158 # hardcode_minus_L: Not really in the search PATH, |
5478 # but as the default location of the library. | 6159 # but as the default location of the library. |
5479 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 6160 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5480 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6161 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5481 ;; | 6162 ;; |
5482 | 6163 |
5483 hpux10* | hpux11*) | 6164 hpux10*) |
5484 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 6165 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
5485 » case "$host_cpu" in | 6166 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname
${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5486 » hppa*64*|ia64*) | 6167 else |
| 6168 » _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o
$lib $libobjs $deplibs $linker_flags' |
| 6169 fi |
| 6170 if test "$with_gnu_ld" = no; then |
| 6171 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 6172 » _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6173 |
| 6174 » _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 6175 » _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 6176 |
| 6177 » # hardcode_minus_L: Not really in the search PATH, |
| 6178 » # but as the default location of the library. |
| 6179 » _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 6180 fi |
| 6181 ;; |
| 6182 |
| 6183 hpux11*) |
| 6184 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 6185 » case $host_cpu in |
| 6186 » hppa*64*) |
5487 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $
lib $libobjs $deplibs $compiler_flags' | 6187 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $
lib $libobjs $deplibs $compiler_flags' |
5488 ;; | 6188 ;; |
| 6189 ia64*) |
| 6190 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl
}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 6191 ;; |
5489 *) | 6192 *) |
5490 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$sonam
e ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 6193 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$sonam
e ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5491 ;; | 6194 ;; |
5492 esac | 6195 esac |
5493 else | 6196 else |
5494 » case "$host_cpu" in | 6197 » case $host_cpu in |
5495 » hppa*64*|ia64*) | 6198 » hppa*64*) |
5496 » _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $d
eplibs $linker_flags' | 6199 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $
libobjs $deplibs $compiler_flags' |
| 6200 » ;; |
| 6201 » ia64*) |
| 6202 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nod
efaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
5497 ;; | 6203 ;; |
5498 *) | 6204 *) |
5499 » _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir
-o $lib $libobjs $deplibs $linker_flags' | 6205 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b $
{wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5500 ;; | 6206 ;; |
5501 esac | 6207 esac |
5502 fi | 6208 fi |
5503 if test "$with_gnu_ld" = no; then | 6209 if test "$with_gnu_ld" = no; then |
5504 » case "$host_cpu" in | 6210 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5505 » hppa*64*) | 6211 » _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
5506 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 6212 |
| 6213 » case $host_cpu in |
| 6214 » hppa*64*|ia64*) |
5507 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | 6215 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
5508 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
5509 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 6216 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
5510 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6217 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5511 ;; | 6218 ;; |
5512 ia64*) | |
5513 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5514 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
5515 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5516 | |
5517 # hardcode_minus_L: Not really in the search PATH, | |
5518 # but as the default location of the library. | |
5519 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
5520 ;; | |
5521 *) | 6219 *) |
5522 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
5523 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
5524 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6220 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5525 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6221 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5526 | 6222 |
5527 # hardcode_minus_L: Not really in the search PATH, | 6223 # hardcode_minus_L: Not really in the search PATH, |
5528 # but as the default location of the library. | 6224 # but as the default location of the library. |
5529 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 6225 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5530 ;; | 6226 ;; |
5531 esac | 6227 esac |
5532 fi | 6228 fi |
5533 ;; | 6229 ;; |
5534 | 6230 |
5535 irix5* | irix6* | nonstopux*) | 6231 irix5* | irix6* | nonstopux*) |
5536 if test "$GCC" = yes; then | 6232 if test "$GCC" = yes; then |
5537 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler
_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version
${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $l
ib' | 6233 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler
_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version
${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $l
ib' |
5538 else | 6234 else |
5539 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_f
lags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -upd
ate_registry ${output_objdir}/so_locations -o $lib' | 6235 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_f
lags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -upd
ate_registry ${output_objdir}/so_locations -o $lib' |
5540 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | 6236 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
5541 fi | 6237 fi |
5542 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6238 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5543 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 6239 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
5544 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 6240 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5545 ;; | 6241 ;; |
5546 | 6242 |
5547 netbsd*) | 6243 netbsd* | netbsdelf*-gnu) |
5548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 6244 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
5549 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depli
bs $linker_flags' # a.out | 6245 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depli
bs $linker_flags' # a.out |
5550 else | 6246 else |
5551 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $
linker_flags' # ELF | 6247 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $
linker_flags' # ELF |
5552 fi | 6248 fi |
5553 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 6249 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5554 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6250 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5555 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6251 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5556 ;; | 6252 ;; |
5557 | 6253 |
5558 newsos6) | 6254 newsos6) |
5559 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $depli
bs $linker_flags' | 6255 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $depli
bs $linker_flags' |
5560 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6256 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5561 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6257 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5562 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 6258 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
5563 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6259 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5564 ;; | 6260 ;; |
5565 | 6261 |
5566 openbsd*) | 6262 openbsd*) |
5567 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6263 if test -f /usr/libexec/ld.so; then |
5568 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6264 » _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$h
ost_cpu" = "openbsd2.8-powerpc"; then | 6265 » _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5570 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs
$deplibs $compiler_flags' | 6266 » if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-
$host_cpu" = "openbsd2.8-powerpc"; then |
5571 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 6267 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobj
s $deplibs $compiler_flags' |
5572 » _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6268 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib
$libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 6269 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 6270 » _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 6271 » else |
| 6272 » case $host_os in |
| 6273 » openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
| 6274 » _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $
deplibs $linker_flags' |
| 6275 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 6276 » ;; |
| 6277 » *) |
| 6278 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $lib
objs $deplibs $compiler_flags' |
| 6279 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 6280 » ;; |
| 6281 » esac |
| 6282 fi |
5573 else | 6283 else |
5574 case $host_os in | 6284 » _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5575 » openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) | |
5576 » _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $de
plibs $linker_flags' | |
5577 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
5578 » ;; | |
5579 » *) | |
5580 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libob
js $deplibs $compiler_flags' | |
5581 » _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
5582 » ;; | |
5583 esac | |
5584 fi | 6285 fi |
5585 ;; | 6286 ;; |
5586 | 6287 |
5587 os2*) | 6288 os2*) |
5588 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 6289 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5589 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 6290 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5590 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 6291 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5591 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $
output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$l
ibname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >
> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxex
p $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $d
eplibs $compiler_flags $output_objdir/$libname.def' | 6292 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $
output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$l
ibname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >
> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxex
p $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $d
eplibs $compiler_flags $output_objdir/$libname.def' |
5592 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$li
bname.a $output_objdir/$libname.def' | 6293 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$li
bname.a $output_objdir/$libname.def' |
5593 ;; | 6294 ;; |
(...skipping 12 matching lines...) Expand all Loading... |
5606 | 6307 |
5607 osf4* | osf5*) # as osf3* with the addition of -msym flag | 6308 osf4* | osf5*) # as osf3* with the addition of -msym flag |
5608 if test "$GCC" = yes; then | 6309 if test "$GCC" = yes; then |
5609 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\
*' | 6310 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\
*' |
5610 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $lib
objs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$ve
rstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}$
{output_objdir}/so_locations -o $lib' | 6311 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $lib
objs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$ve
rstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}$
{output_objdir}/so_locations -o $lib' |
5611 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6312 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5612 else | 6313 else |
5613 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 6314 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
5614 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $lib
objs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo
-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 6315 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $lib
objs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo
-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
5615 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`;
do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">>
$lib.exp~ | 6316 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`;
do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">>
$lib.exp~ |
5616 » $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobj
s $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring
` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | 6317 » $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobj
s $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring
` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
5617 | 6318 |
5618 # Both c and cxx compiler support -rpath directly | 6319 # Both c and cxx compiler support -rpath directly |
5619 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 6320 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
5620 fi | 6321 fi |
5621 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 6322 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
5622 ;; | 6323 ;; |
5623 | 6324 |
5624 sco3.2v5*) | |
5625 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $depli
bs $linker_flags' | |
5626 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5627 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
5628 runpath_var=LD_RUN_PATH | |
5629 hardcode_runpath_var=yes | |
5630 ;; | |
5631 | |
5632 solaris*) | 6325 solaris*) |
5633 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | 6326 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
5634 if test "$GCC" = yes; then | 6327 if test "$GCC" = yes; then |
| 6328 wlarc='${wl}' |
5635 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $li
b $libobjs $deplibs $compiler_flags' | 6329 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $li
b $libobjs $deplibs $compiler_flags' |
5636 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat
$export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $
lib.exp~ | 6330 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat
$export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $
lib.exp~ |
5637 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj
s $deplibs $compiler_flags~$rm $lib.exp' | 6331 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj
s $deplibs $compiler_flags~$rm $lib.exp' |
5638 else | 6332 else |
| 6333 wlarc='' |
5639 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $sonam
e -o $lib $libobjs $deplibs $linker_flags' | 6334 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $sonam
e -o $lib $libobjs $deplibs $linker_flags' |
5640 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat
$export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $
lib.exp~ | 6335 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat
$export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $
lib.exp~ |
5641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $d
eplibs $linker_flags~$rm $lib.exp' | 6336 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $d
eplibs $linker_flags~$rm $lib.exp' |
5642 fi | 6337 fi |
5643 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 6338 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5644 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6339 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5645 case $host_os in | 6340 case $host_os in |
5646 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 6341 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
5647 *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 6342 *) |
5648 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z
defaultextract' ;; | 6343 » # The compiler driver will combine and reorder linker options, |
| 6344 » # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 6345 » # but is careful enough not to reorder. |
| 6346 » # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 6347 » if test "$GCC" = yes; then |
| 6348 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$co
nvenience ${wl}-z ${wl}defaultextract' |
| 6349 » else |
| 6350 » _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience
-z defaultextract' |
| 6351 » fi |
| 6352 » ;; |
5649 esac | 6353 esac |
5650 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 6354 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5651 ;; | 6355 ;; |
5652 | 6356 |
5653 sunos4*) | 6357 sunos4*) |
5654 if test "x$host_vendor" = xsequent; then | 6358 if test "x$host_vendor" = xsequent; then |
5655 # Use $CC to link under sequent, because it throws in some extra .o | 6359 # Use $CC to link under sequent, because it throws in some extra .o |
5656 # files that make .init and .fini sections work. | 6360 # files that make .init and .fini sections work. |
5657 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs
$deplibs $compiler_flags' | 6361 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs
$deplibs $compiler_flags' |
5658 else | 6362 else |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5695 sysv4*MP*) | 6399 sysv4*MP*) |
5696 if test -d /usr/nec; then | 6400 if test -d /usr/nec; then |
5697 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $dep
libs $linker_flags' | 6401 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $dep
libs $linker_flags' |
5698 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6402 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5699 runpath_var=LD_RUN_PATH | 6403 runpath_var=LD_RUN_PATH |
5700 hardcode_runpath_var=yes | 6404 hardcode_runpath_var=yes |
5701 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | 6405 _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
5702 fi | 6406 fi |
5703 ;; | 6407 ;; |
5704 | 6408 |
5705 sysv4.2uw2*) | 6409 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | s
co3.2v5.0.[[024]]*) |
5706 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_
flags' | 6410 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
5707 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6411 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5708 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | |
5709 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6412 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5710 hardcode_runpath_var=yes | 6413 runpath_var='LD_RUN_PATH' |
5711 runpath_var=LD_RUN_PATH | 6414 |
| 6415 if test "$GCC" = yes; then |
| 6416 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $li
bobjs $deplibs $compiler_flags' |
| 6417 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$expor
t_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6418 else |
| 6419 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs
$deplibs $compiler_flags' |
| 6420 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_sym
bols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6421 fi |
5712 ;; | 6422 ;; |
5713 | 6423 |
5714 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) | 6424 sysv5* | sco3.2v5* | sco5v6*) |
5715 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' | 6425 # Note: We can NOT use -z defs as we might desire, because we do not |
| 6426 # link with -lc, and that would cause any symbols used from libc to |
| 6427 # always be unresolved, which means just about no library would |
| 6428 # ever link correctly. If we're not using GNU ld we use -z text |
| 6429 # though, which does catch some bad symbols but isn't as heavy-handed |
| 6430 # as -z defs. |
| 6431 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 6432 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 6433 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6434 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 6435 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && ec
ho ${wl}-R,$libdir`' |
| 6436 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 6437 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 6438 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 6439 runpath_var='LD_RUN_PATH' |
| 6440 |
5716 if test "$GCC" = yes; then | 6441 if test "$GCC" = yes; then |
5717 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $li
b $libobjs $deplibs $compiler_flags' | 6442 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${in
stall_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6443 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$expor
t_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $de
plibs $compiler_flags' |
5718 else | 6444 else |
5719 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $li
bobjs $deplibs $compiler_flags' | 6445 » _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install
_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6446 » _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_sym
bols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs
$compiler_flags' |
5720 fi | 6447 fi |
5721 runpath_var='LD_RUN_PATH' | |
5722 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5723 ;; | |
5724 | |
5725 sysv5*) | |
5726 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | |
5727 # $CC -shared without GNU ld will not create a library from C++ | |
5728 # object files and a static libstdc++, better avoid it by now | |
5729 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname
-o $lib $libobjs $deplibs $linker_flags' | |
5730 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $
export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $li
b.exp~ | |
5731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $li
bobjs $deplibs $linker_flags~$rm $lib.exp' | |
5732 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
5733 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5734 runpath_var='LD_RUN_PATH' | |
5735 ;; | 6448 ;; |
5736 | 6449 |
5737 uts4*) | 6450 uts4*) |
5738 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $depli
bs $linker_flags' | 6451 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $depli
bs $linker_flags' |
5739 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 6452 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5740 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6453 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5741 ;; | 6454 ;; |
5742 | 6455 |
5743 *) | 6456 *) |
5744 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 6457 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5745 ;; | 6458 ;; |
5746 esac | 6459 esac |
5747 fi | 6460 fi |
5748 ]) | 6461 ]) |
5749 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | 6462 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
5750 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | 6463 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
5751 | 6464 |
5752 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
5753 if test "$GCC" = yes; then | |
5754 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL
ER_PATH LIBRARY_PATH" | |
5755 fi | |
5756 | |
5757 # | 6465 # |
5758 # Do we need to explicitly link libc? | 6466 # Do we need to explicitly link libc? |
5759 # | 6467 # |
5760 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in | 6468 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in |
5761 x|xyes) | 6469 x|xyes) |
5762 # Assume -lc should be added | 6470 # Assume -lc should be added |
5763 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 6471 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
5764 | 6472 |
5765 if test "$enable_shared" = yes && test "$GCC" = yes; then | 6473 if test "$enable_shared" = yes && test "$GCC" = yes; then |
5766 case $_LT_AC_TAGVAR(archive_cmds, $1) in | 6474 case $_LT_AC_TAGVAR(archive_cmds, $1) in |
5767 *'~'*) | 6475 *'~'*) |
5768 # FIXME: we may have to deal with multi-command sequences. | 6476 # FIXME: we may have to deal with multi-command sequences. |
5769 ;; | 6477 ;; |
5770 '$CC '*) | 6478 '$CC '*) |
5771 # Test whether the compiler implicitly links with -lc since on some | 6479 # Test whether the compiler implicitly links with -lc since on some |
5772 # systems, -lgcc has to come before -lc. If gcc already passes -lc | 6480 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
5773 # to ld, don't add -lc before -lgcc. | 6481 # to ld, don't add -lc before -lgcc. |
5774 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) | 6482 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
5775 $rm conftest* | 6483 $rm conftest* |
5776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 6484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
5777 | 6485 |
5778 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | 6486 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
5779 soname=conftest | 6487 soname=conftest |
5780 lib=conftest | 6488 lib=conftest |
5781 libobjs=conftest.$ac_objext | 6489 libobjs=conftest.$ac_objext |
5782 deplibs= | 6490 deplibs= |
5783 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | 6491 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
| 6492 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) |
5784 compiler_flags=-v | 6493 compiler_flags=-v |
5785 linker_flags=-v | 6494 linker_flags=-v |
5786 verstring= | 6495 verstring= |
5787 output_objdir=. | 6496 output_objdir=. |
5788 libname=conftest | 6497 libname=conftest |
5789 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) | 6498 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) |
5790 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | 6499 _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
5791 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \"
\>/dev/null 2\>\&1) | 6500 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \"
\>/dev/null 2\>\&1) |
5792 then | 6501 then |
5793 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 6502 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5868 AC_DEFUN([LT_AC_PROG_GCJ], | 6577 AC_DEFUN([LT_AC_PROG_GCJ], |
5869 [AC_CHECK_TOOL(GCJ, gcj, no) | 6578 [AC_CHECK_TOOL(GCJ, gcj, no) |
5870 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | 6579 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" |
5871 AC_SUBST(GCJFLAGS) | 6580 AC_SUBST(GCJFLAGS) |
5872 ]) | 6581 ]) |
5873 | 6582 |
5874 AC_DEFUN([LT_AC_PROG_RC], | 6583 AC_DEFUN([LT_AC_PROG_RC], |
5875 [AC_CHECK_TOOL(RC, windres, no) | 6584 [AC_CHECK_TOOL(RC, windres, no) |
5876 ]) | 6585 ]) |
5877 | 6586 |
| 6587 |
| 6588 # Cheap backport of AS_EXECUTABLE_P and required macros |
| 6589 # from Autoconf 2.59; we should not use $as_executable_p directly. |
| 6590 |
| 6591 # _AS_TEST_PREPARE |
| 6592 # ---------------- |
| 6593 m4_ifndef([_AS_TEST_PREPARE], |
| 6594 [m4_defun([_AS_TEST_PREPARE], |
| 6595 [if test -x / >/dev/null 2>&1; then |
| 6596 as_executable_p='test -x' |
| 6597 else |
| 6598 as_executable_p='test -f' |
| 6599 fi |
| 6600 ])])# _AS_TEST_PREPARE |
| 6601 |
| 6602 # AS_EXECUTABLE_P |
| 6603 # --------------- |
| 6604 # Check whether a file is executable. |
| 6605 m4_ifndef([AS_EXECUTABLE_P], |
| 6606 [m4_defun([AS_EXECUTABLE_P], |
| 6607 [AS_REQUIRE([_AS_TEST_PREPARE])dnl |
| 6608 $as_executable_p $1[]dnl |
| 6609 ])])# AS_EXECUTABLE_P |
| 6610 |
5878 # NOTE: This macro has been submitted for inclusion into # | 6611 # NOTE: This macro has been submitted for inclusion into # |
5879 # GNU Autoconf as AC_PROG_SED. When it is available in # | 6612 # GNU Autoconf as AC_PROG_SED. When it is available in # |
5880 # a released version of Autoconf we should remove this # | 6613 # a released version of Autoconf we should remove this # |
5881 # macro and use it instead. # | 6614 # macro and use it instead. # |
5882 # LT_AC_PROG_SED | 6615 # LT_AC_PROG_SED |
5883 # -------------- | 6616 # -------------- |
5884 # Check for a fully-functional sed program, that truncates | 6617 # Check for a fully-functional sed program, that truncates |
5885 # as few characters as possible. Prefer GNU sed if found. | 6618 # as few characters as possible. Prefer GNU sed if found. |
5886 AC_DEFUN([LT_AC_PROG_SED], | 6619 AC_DEFUN([LT_AC_PROG_SED], |
5887 [AC_MSG_CHECKING([for a sed that does not truncate output]) | 6620 [AC_MSG_CHECKING([for a sed that does not truncate output]) |
5888 AC_CACHE_VAL(lt_cv_path_SED, | 6621 AC_CACHE_VAL(lt_cv_path_SED, |
5889 [# Loop through the user's path and test for sed and gsed. | 6622 [# Loop through the user's path and test for sed and gsed. |
5890 # Then use that list of sed's as ones to test for truncation. | 6623 # Then use that list of sed's as ones to test for truncation. |
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5892 for as_dir in $PATH | 6625 for as_dir in $PATH |
5893 do | 6626 do |
5894 IFS=$as_save_IFS | 6627 IFS=$as_save_IFS |
5895 test -z "$as_dir" && as_dir=. | 6628 test -z "$as_dir" && as_dir=. |
5896 for lt_ac_prog in sed gsed; do | 6629 for lt_ac_prog in sed gsed; do |
5897 for ac_exec_ext in '' $ac_executable_extensions; do | 6630 for ac_exec_ext in '' $ac_executable_extensions; do |
5898 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | 6631 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then |
5899 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 6632 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
5900 fi | 6633 fi |
5901 done | 6634 done |
5902 done | 6635 done |
5903 done | 6636 done |
| 6637 IFS=$as_save_IFS |
5904 lt_ac_max=0 | 6638 lt_ac_max=0 |
5905 lt_ac_count=0 | 6639 lt_ac_count=0 |
5906 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 6640 # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
5907 # along with /bin/sed that truncates output. | 6641 # along with /bin/sed that truncates output. |
5908 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 6642 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
5909 test ! -f $lt_ac_sed && break | 6643 test ! -f $lt_ac_sed && continue |
5910 cat /dev/null > conftest.in | 6644 cat /dev/null > conftest.in |
5911 lt_ac_count=0 | 6645 lt_ac_count=0 |
5912 echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 6646 echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
5913 # Check for GNU sed and select it if it is found. | 6647 # Check for GNU sed and select it if it is found. |
5914 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 6648 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
5915 lt_cv_path_SED=$lt_ac_sed | 6649 lt_cv_path_SED=$lt_ac_sed |
5916 break | 6650 break |
5917 fi | 6651 fi |
5918 while true; do | 6652 while true; do |
5919 cat conftest.in conftest.in >conftest.tmp | 6653 cat conftest.in conftest.in >conftest.tmp |
5920 mv conftest.tmp conftest.in | 6654 mv conftest.tmp conftest.in |
5921 cp conftest.in conftest.nl | 6655 cp conftest.in conftest.nl |
5922 echo >>conftest.nl | 6656 echo >>conftest.nl |
5923 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | 6657 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
5924 cmp -s conftest.out conftest.nl || break | 6658 cmp -s conftest.out conftest.nl || break |
5925 # 10000 chars as input seems more than enough | 6659 # 10000 chars as input seems more than enough |
5926 test $lt_ac_count -gt 10 && break | 6660 test $lt_ac_count -gt 10 && break |
5927 lt_ac_count=`expr $lt_ac_count + 1` | 6661 lt_ac_count=`expr $lt_ac_count + 1` |
5928 if test $lt_ac_count -gt $lt_ac_max; then | 6662 if test $lt_ac_count -gt $lt_ac_max; then |
5929 lt_ac_max=$lt_ac_count | 6663 lt_ac_max=$lt_ac_count |
5930 lt_cv_path_SED=$lt_ac_sed | 6664 lt_cv_path_SED=$lt_ac_sed |
5931 fi | 6665 fi |
5932 done | 6666 done |
5933 done | 6667 done |
| 6668 ]) |
5934 SED=$lt_cv_path_SED | 6669 SED=$lt_cv_path_SED |
5935 ]) | 6670 AC_SUBST([SED]) |
5936 AC_MSG_RESULT([$SED]) | 6671 AC_MSG_RESULT([$SED]) |
5937 ]) | 6672 ]) |
5938 | 6673 |
5939 | 6674 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
5940 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-no
t) | 6675 # |
5941 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page | 6676 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
5942 dnl also defines GSTUFF_PKG_ERRORS on error | 6677 # |
5943 AC_DEFUN([PKG_CHECK_MODULES], [ | |
5944 succeeded=no | |
5945 | |
5946 if test -z "$PKG_CONFIG"; then | |
5947 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | |
5948 fi | |
5949 | |
5950 if test "$PKG_CONFIG" = "no" ; then | |
5951 echo "*** The pkg-config script could not be found. Make sure it is" | |
5952 echo "*** in your path, or set the PKG_CONFIG environment variable" | |
5953 echo "*** to the full path to pkg-config." | |
5954 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-c
onfig." | |
5955 else | |
5956 PKG_CONFIG_MIN_VERSION=0.9.0 | |
5957 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
5958 AC_MSG_CHECKING(for $2) | |
5959 | |
5960 if $PKG_CONFIG --exists "$2" ; then | |
5961 AC_MSG_RESULT(yes) | |
5962 succeeded=yes | |
5963 | |
5964 AC_MSG_CHECKING($1_CFLAGS) | |
5965 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` | |
5966 AC_MSG_RESULT($$1_CFLAGS) | |
5967 | |
5968 AC_MSG_CHECKING($1_LIBS) | |
5969 $1_LIBS=`$PKG_CONFIG --libs "$2"` | |
5970 AC_MSG_RESULT($$1_LIBS) | |
5971 else | |
5972 $1_CFLAGS="" | |
5973 $1_LIBS="" | |
5974 ## If we have a custom action on failure, don't print errors, but | |
5975 ## do set a variable so people can do so. | |
5976 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` | |
5977 ifelse([$4], ,echo $$1_PKG_ERRORS,) | |
5978 fi | |
5979 | |
5980 AC_SUBST($1_CFLAGS) | |
5981 AC_SUBST($1_LIBS) | |
5982 else | |
5983 echo "*** Your version of pkg-config is too old. You need version $PKG_C
ONFIG_MIN_VERSION or newer." | |
5984 echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
5985 fi | |
5986 fi | |
5987 | |
5988 if test $succeeded = yes; then | |
5989 ifelse([$3], , :, [$3]) | |
5990 else | |
5991 ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider ad
justing the PKG_CONFIG_PATH environment variable if your libraries are in a nons
tandard prefix so pkg-config can find them.]), [$4]) | |
5992 fi | |
5993 ]) | |
5994 | |
5995 | |
5996 | |
5997 # -*- Autoconf -*- | |
5998 # Copyright (C) 2002, 2003 Free Software Foundation, Inc. | |
5999 # Generated from amversion.in; do not edit by hand. | |
6000 | |
6001 # This program is free software; you can redistribute it and/or modify | 6678 # This program is free software; you can redistribute it and/or modify |
6002 # it under the terms of the GNU General Public License as published by | 6679 # it under the terms of the GNU General Public License as published by |
6003 # the Free Software Foundation; either version 2, or (at your option) | 6680 # the Free Software Foundation; either version 2 of the License, or |
6004 # any later version. | 6681 # (at your option) any later version. |
6005 | 6682 # |
6006 # This program is distributed in the hope that it will be useful, | 6683 # This program is distributed in the hope that it will be useful, but |
6007 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 6684 # WITHOUT ANY WARRANTY; without even the implied warranty of |
6008 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 6685 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
6009 # GNU General Public License for more details. | 6686 # General Public License for more details. |
6010 | 6687 # |
6011 # You should have received a copy of the GNU General Public License | 6688 # You should have received a copy of the GNU General Public License |
6012 # along with this program; if not, write to the Free Software | 6689 # along with this program; if not, write to the Free Software |
6013 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | 6690 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 6691 # |
| 6692 # As a special exception to the GNU General Public License, if you |
| 6693 # distribute this file as part of a program that contains a |
| 6694 # configuration script generated by Autoconf, you may include it under |
| 6695 # the same distribution terms that you use for the rest of that program. |
| 6696 |
| 6697 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) |
| 6698 # ---------------------------------- |
| 6699 AC_DEFUN([PKG_PROG_PKG_CONFIG], |
| 6700 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
| 6701 m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) |
| 6702 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl |
| 6703 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 6704 » AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
| 6705 fi |
| 6706 if test -n "$PKG_CONFIG"; then |
| 6707 » _pkg_min_version=m4_default([$1], [0.9.0]) |
| 6708 » AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) |
| 6709 » if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 6710 » » AC_MSG_RESULT([yes]) |
| 6711 » else |
| 6712 » » AC_MSG_RESULT([no]) |
| 6713 » » PKG_CONFIG="" |
| 6714 » fi |
| 6715 » » |
| 6716 fi[]dnl |
| 6717 ])# PKG_PROG_PKG_CONFIG |
| 6718 |
| 6719 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
| 6720 # |
| 6721 # Check to see whether a particular set of modules exists. Similar |
| 6722 # to PKG_CHECK_MODULES(), but does not set variables or print errors. |
| 6723 # |
| 6724 # |
| 6725 # Similar to PKG_CHECK_MODULES, make sure that the first instance of |
| 6726 # this or PKG_CHECK_MODULES is called, or make sure to call |
| 6727 # PKG_CHECK_EXISTS manually |
| 6728 # -------------------------------------------------------------- |
| 6729 AC_DEFUN([PKG_CHECK_EXISTS], |
| 6730 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
| 6731 if test -n "$PKG_CONFIG" && \ |
| 6732 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
| 6733 m4_ifval([$2], [$2], [:]) |
| 6734 m4_ifvaln([$3], [else |
| 6735 $3])dnl |
| 6736 fi]) |
| 6737 |
| 6738 |
| 6739 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
| 6740 # --------------------------------------------- |
| 6741 m4_define([_PKG_CONFIG], |
| 6742 [if test -n "$PKG_CONFIG"; then |
| 6743 if test -n "$$1"; then |
| 6744 pkg_cv_[]$1="$$1" |
| 6745 else |
| 6746 PKG_CHECK_EXISTS([$3], |
| 6747 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], |
| 6748 » » » [pkg_failed=yes]) |
| 6749 fi |
| 6750 else |
| 6751 » pkg_failed=untried |
| 6752 fi[]dnl |
| 6753 ])# _PKG_CONFIG |
| 6754 |
| 6755 # _PKG_SHORT_ERRORS_SUPPORTED |
| 6756 # ----------------------------- |
| 6757 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], |
| 6758 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
| 6759 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 6760 _pkg_short_errors_supported=yes |
| 6761 else |
| 6762 _pkg_short_errors_supported=no |
| 6763 fi[]dnl |
| 6764 ])# _PKG_SHORT_ERRORS_SUPPORTED |
| 6765 |
| 6766 |
| 6767 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
| 6768 # [ACTION-IF-NOT-FOUND]) |
| 6769 # |
| 6770 # |
| 6771 # Note that if there is a possibility the first call to |
| 6772 # PKG_CHECK_MODULES might not happen, you should be sure to include an |
| 6773 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac |
| 6774 # |
| 6775 # |
| 6776 # -------------------------------------------------------------- |
| 6777 AC_DEFUN([PKG_CHECK_MODULES], |
| 6778 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
| 6779 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl |
| 6780 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl |
| 6781 |
| 6782 pkg_failed=no |
| 6783 AC_MSG_CHECKING([for $1]) |
| 6784 |
| 6785 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) |
| 6786 _PKG_CONFIG([$1][_LIBS], [libs], [$2]) |
| 6787 |
| 6788 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[
]_CFLAGS |
| 6789 and $1[]_LIBS to avoid the need to call pkg-config. |
| 6790 See the pkg-config man page for more details.]) |
| 6791 |
| 6792 if test $pkg_failed = yes; then |
| 6793 _PKG_SHORT_ERRORS_SUPPORTED |
| 6794 if test $_pkg_short_errors_supported = yes; then |
| 6795 » $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout -
-print-errors "$2"` |
| 6796 else |
| 6797 » $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
$2"` |
| 6798 fi |
| 6799 » # Put the nasty error message in config.log where it belongs |
| 6800 » echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
| 6801 |
| 6802 » ifelse([$4], , [AC_MSG_ERROR(dnl |
| 6803 [Package requirements ($2) were not met: |
| 6804 |
| 6805 $$1_PKG_ERRORS |
| 6806 |
| 6807 Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 6808 installed software in a non-standard prefix. |
| 6809 |
| 6810 _PKG_TEXT |
| 6811 ])], |
| 6812 » » [AC_MSG_RESULT([no]) |
| 6813 $4]) |
| 6814 elif test $pkg_failed = untried; then |
| 6815 » ifelse([$4], , [AC_MSG_FAILURE(dnl |
| 6816 [The pkg-config script could not be found or is too old. Make sure it |
| 6817 is in your PATH or set the PKG_CONFIG environment variable to the full |
| 6818 path to pkg-config. |
| 6819 |
| 6820 _PKG_TEXT |
| 6821 |
| 6822 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], |
| 6823 » » [$4]) |
| 6824 else |
| 6825 » $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
| 6826 » $1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
| 6827 AC_MSG_RESULT([yes]) |
| 6828 » ifelse([$3], , :, [$3]) |
| 6829 fi[]dnl |
| 6830 ])# PKG_CHECK_MODULES |
| 6831 |
| 6832 # Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. |
| 6833 # |
| 6834 # This file is free software; the Free Software Foundation |
| 6835 # gives unlimited permission to copy and/or distribute it, |
| 6836 # with or without modifications, as long as this notice is preserved. |
6014 | 6837 |
6015 # AM_AUTOMAKE_VERSION(VERSION) | 6838 # AM_AUTOMAKE_VERSION(VERSION) |
6016 # ---------------------------- | 6839 # ---------------------------- |
6017 # Automake X.Y traces this macro to ensure aclocal.m4 has been | 6840 # Automake X.Y traces this macro to ensure aclocal.m4 has been |
6018 # generated from the m4 files accompanying Automake X.Y. | 6841 # generated from the m4 files accompanying Automake X.Y. |
6019 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) | 6842 # (This private macro should not be called outside this file.) |
| 6843 AC_DEFUN([AM_AUTOMAKE_VERSION], |
| 6844 [am__api_version='1.10' |
| 6845 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
| 6846 dnl require some minimum version. Point them to the right macro. |
| 6847 m4_if([$1], [1.10.1], [], |
| 6848 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
| 6849 ]) |
| 6850 |
| 6851 # _AM_AUTOCONF_VERSION(VERSION) |
| 6852 # ----------------------------- |
| 6853 # aclocal traces this macro to find the Autoconf version. |
| 6854 # This is a private macro too. Using m4_define simplifies |
| 6855 # the logic in aclocal, which can simply ignore this definition. |
| 6856 m4_define([_AM_AUTOCONF_VERSION], []) |
6020 | 6857 |
6021 # AM_SET_CURRENT_AUTOMAKE_VERSION | 6858 # AM_SET_CURRENT_AUTOMAKE_VERSION |
6022 # ------------------------------- | 6859 # ------------------------------- |
6023 # Call AM_AUTOMAKE_VERSION so it can be traced. | 6860 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
6024 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | 6861 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
6025 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | 6862 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
6026 » [AM_AUTOMAKE_VERSION([1.9.2])]) | 6863 [AM_AUTOMAKE_VERSION([1.10.1])dnl |
6027 | 6864 m4_ifndef([AC_AUTOCONF_VERSION], |
6028 # AM_AUX_DIR_EXPAND | 6865 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
6029 | 6866 _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) |
6030 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. | 6867 |
6031 | 6868 # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
6032 # This program is free software; you can redistribute it and/or modify | 6869 |
6033 # it under the terms of the GNU General Public License as published by | 6870 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
6034 # the Free Software Foundation; either version 2, or (at your option) | 6871 # |
6035 # any later version. | 6872 # This file is free software; the Free Software Foundation |
6036 | 6873 # gives unlimited permission to copy and/or distribute it, |
6037 # This program is distributed in the hope that it will be useful, | 6874 # with or without modifications, as long as this notice is preserved. |
6038 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6039 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6040 # GNU General Public License for more details. | |
6041 | |
6042 # You should have received a copy of the GNU General Public License | |
6043 # along with this program; if not, write to the Free Software | |
6044 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6045 # 02111-1307, USA. | |
6046 | 6875 |
6047 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | 6876 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
6048 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | 6877 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
6049 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | 6878 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
6050 # | 6879 # |
6051 # Of course, Automake must honor this variable whenever it calls a | 6880 # Of course, Automake must honor this variable whenever it calls a |
6052 # tool from the auxiliary directory. The problem is that $srcdir (and | 6881 # tool from the auxiliary directory. The problem is that $srcdir (and |
6053 # therefore $ac_aux_dir as well) can be either absolute or relative, | 6882 # therefore $ac_aux_dir as well) can be either absolute or relative, |
6054 # depending on how configure is run. This is pretty annoying, since | 6883 # depending on how configure is run. This is pretty annoying, since |
6055 # it makes $ac_aux_dir quite unusable in subdirectories: in the top | 6884 # it makes $ac_aux_dir quite unusable in subdirectories: in the top |
(...skipping 26 matching lines...) Expand all Loading... |
6082 # absolute PATH. The drawback is that using absolute paths prevent a | 6911 # absolute PATH. The drawback is that using absolute paths prevent a |
6083 # configured tree to be moved without reconfiguration. | 6912 # configured tree to be moved without reconfiguration. |
6084 | 6913 |
6085 AC_DEFUN([AM_AUX_DIR_EXPAND], | 6914 AC_DEFUN([AM_AUX_DIR_EXPAND], |
6086 [dnl Rely on autoconf to set up CDPATH properly. | 6915 [dnl Rely on autoconf to set up CDPATH properly. |
6087 AC_PREREQ([2.50])dnl | 6916 AC_PREREQ([2.50])dnl |
6088 # expand $ac_aux_dir to an absolute path | 6917 # expand $ac_aux_dir to an absolute path |
6089 am_aux_dir=`cd $ac_aux_dir && pwd` | 6918 am_aux_dir=`cd $ac_aux_dir && pwd` |
6090 ]) | 6919 ]) |
6091 | 6920 |
6092 # AM_CONDITIONAL -*- Autoconf -*- | 6921 # AM_CONDITIONAL -*- Autoconf -*- |
6093 | 6922 |
6094 # Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. | 6923 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 |
| 6924 # Free Software Foundation, Inc. |
| 6925 # |
| 6926 # This file is free software; the Free Software Foundation |
| 6927 # gives unlimited permission to copy and/or distribute it, |
| 6928 # with or without modifications, as long as this notice is preserved. |
6095 | 6929 |
6096 # This program is free software; you can redistribute it and/or modify | 6930 # serial 8 |
6097 # it under the terms of the GNU General Public License as published by | |
6098 # the Free Software Foundation; either version 2, or (at your option) | |
6099 # any later version. | |
6100 | |
6101 # This program is distributed in the hope that it will be useful, | |
6102 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6103 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6104 # GNU General Public License for more details. | |
6105 | |
6106 # You should have received a copy of the GNU General Public License | |
6107 # along with this program; if not, write to the Free Software | |
6108 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6109 # 02111-1307, USA. | |
6110 | |
6111 # serial 6 | |
6112 | 6931 |
6113 # AM_CONDITIONAL(NAME, SHELL-CONDITION) | 6932 # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
6114 # ------------------------------------- | 6933 # ------------------------------------- |
6115 # Define a conditional. | 6934 # Define a conditional. |
6116 AC_DEFUN([AM_CONDITIONAL], | 6935 AC_DEFUN([AM_CONDITIONAL], |
6117 [AC_PREREQ(2.52)dnl | 6936 [AC_PREREQ(2.52)dnl |
6118 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | 6937 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
6119 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | 6938 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
6120 AC_SUBST([$1_TRUE]) | 6939 AC_SUBST([$1_TRUE])dnl |
6121 AC_SUBST([$1_FALSE]) | 6940 AC_SUBST([$1_FALSE])dnl |
| 6941 _AM_SUBST_NOTMAKE([$1_TRUE])dnl |
| 6942 _AM_SUBST_NOTMAKE([$1_FALSE])dnl |
6122 if $2; then | 6943 if $2; then |
6123 $1_TRUE= | 6944 $1_TRUE= |
6124 $1_FALSE='#' | 6945 $1_FALSE='#' |
6125 else | 6946 else |
6126 $1_TRUE='#' | 6947 $1_TRUE='#' |
6127 $1_FALSE= | 6948 $1_FALSE= |
6128 fi | 6949 fi |
6129 AC_CONFIG_COMMANDS_PRE( | 6950 AC_CONFIG_COMMANDS_PRE( |
6130 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | 6951 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
6131 AC_MSG_ERROR([[conditional "$1" was never defined. | 6952 AC_MSG_ERROR([[conditional "$1" was never defined. |
6132 Usually this means the macro was only invoked conditionally.]]) | 6953 Usually this means the macro was only invoked conditionally.]]) |
6133 fi])]) | 6954 fi])]) |
6134 | 6955 |
6135 # serial 7» » » » » » -*- Autoconf -*- | 6956 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 |
| 6957 # Free Software Foundation, Inc. |
| 6958 # |
| 6959 # This file is free software; the Free Software Foundation |
| 6960 # gives unlimited permission to copy and/or distribute it, |
| 6961 # with or without modifications, as long as this notice is preserved. |
6136 | 6962 |
6137 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 | 6963 # serial 9 |
6138 # Free Software Foundation, Inc. | |
6139 | |
6140 # This program is free software; you can redistribute it and/or modify | |
6141 # it under the terms of the GNU General Public License as published by | |
6142 # the Free Software Foundation; either version 2, or (at your option) | |
6143 # any later version. | |
6144 | |
6145 # This program is distributed in the hope that it will be useful, | |
6146 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6147 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6148 # GNU General Public License for more details. | |
6149 | |
6150 # You should have received a copy of the GNU General Public License | |
6151 # along with this program; if not, write to the Free Software | |
6152 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6153 # 02111-1307, USA. | |
6154 | |
6155 | 6964 |
6156 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | 6965 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
6157 # written in clear, in which case automake, when reading aclocal.m4, | 6966 # written in clear, in which case automake, when reading aclocal.m4, |
6158 # will think it sees a *use*, and therefore will trigger all it's | 6967 # will think it sees a *use*, and therefore will trigger all it's |
6159 # C support machinery. Also note that it means that autoscan, seeing | 6968 # C support machinery. Also note that it means that autoscan, seeing |
6160 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | 6969 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
6161 | 6970 |
6162 | 6971 |
6163 | |
6164 # _AM_DEPENDENCIES(NAME) | 6972 # _AM_DEPENDENCIES(NAME) |
6165 # ---------------------- | 6973 # ---------------------- |
6166 # See how the compiler implements dependency checking. | 6974 # See how the compiler implements dependency checking. |
6167 # NAME is "CC", "CXX", "GCJ", or "OBJC". | 6975 # NAME is "CC", "CXX", "GCJ", or "OBJC". |
6168 # We try a few techniques and use that to set a single cache variable. | 6976 # We try a few techniques and use that to set a single cache variable. |
6169 # | 6977 # |
6170 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | 6978 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
6171 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | 6979 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
6172 # dependency, and given that the user is not expected to run this macro, | 6980 # dependency, and given that the user is not expected to run this macro, |
6173 # just rely on AC_PROG_CC. | 6981 # just rely on AC_PROG_CC. |
6174 AC_DEFUN([_AM_DEPENDENCIES], | 6982 AC_DEFUN([_AM_DEPENDENCIES], |
6175 [AC_REQUIRE([AM_SET_DEPDIR])dnl | 6983 [AC_REQUIRE([AM_SET_DEPDIR])dnl |
6176 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | 6984 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
6177 AC_REQUIRE([AM_MAKE_INCLUDE])dnl | 6985 AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
6178 AC_REQUIRE([AM_DEP_TRACK])dnl | 6986 AC_REQUIRE([AM_DEP_TRACK])dnl |
6179 | 6987 |
6180 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | 6988 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
6181 [$1], CXX, [depcc="$CXX" am_compiler_list=], | 6989 [$1], CXX, [depcc="$CXX" am_compiler_list=], |
6182 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | 6990 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
| 6991 [$1], UPC, [depcc="$UPC" am_compiler_list=], |
6183 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | 6992 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
6184 [depcc="$$1" am_compiler_list=]) | 6993 [depcc="$$1" am_compiler_list=]) |
6185 | 6994 |
6186 AC_CACHE_CHECK([dependency style of $depcc], | 6995 AC_CACHE_CHECK([dependency style of $depcc], |
6187 [am_cv_$1_dependencies_compiler_type], | 6996 [am_cv_$1_dependencies_compiler_type], |
6188 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 6997 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
6189 # We make a subdir and do the tests there. Otherwise we can end up | 6998 # We make a subdir and do the tests there. Otherwise we can end up |
6190 # making bogus files that we don't know about and never remove. For | 6999 # making bogus files that we don't know about and never remove. For |
6191 # instance it was reported that on HP-UX the gcc test will end up | 7000 # instance it was reported that on HP-UX the gcc test will end up |
6192 # making a dummy file named `D' -- because `-MD' means `put the output | 7001 # making a dummy file named `D' -- because `-MD' means `put the output |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6238 none) break ;; | 7047 none) break ;; |
6239 esac | 7048 esac |
6240 # We check with `-c' and `-o' for the sake of the "dashmstdout" | 7049 # We check with `-c' and `-o' for the sake of the "dashmstdout" |
6241 # mode. It turns out that the SunPro C++ compiler does not properly | 7050 # mode. It turns out that the SunPro C++ compiler does not properly |
6242 # handle `-M -o', and we need to detect this. | 7051 # handle `-M -o', and we need to detect this. |
6243 if depmode=$depmode \ | 7052 if depmode=$depmode \ |
6244 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | 7053 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
6245 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 7054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
6246 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | 7055 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
6247 >/dev/null 2>conftest.err && | 7056 >/dev/null 2>conftest.err && |
| 7057 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
6248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 7058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
6249 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | 7059 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
6250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 7060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
6251 # icc doesn't choke on unknown options, it will just issue warnings | 7061 # icc doesn't choke on unknown options, it will just issue warnings |
6252 # or remarks (even with -Werror). So we grep stderr for any message | 7062 # or remarks (even with -Werror). So we grep stderr for any message |
6253 # that says an option was ignored or not supported. | 7063 # that says an option was ignored or not supported. |
6254 # When given -MP, icc 7.0 and 7.1 complain thusly: | 7064 # When given -MP, icc 7.0 and 7.1 complain thusly: |
6255 # icc: Command line warning: ignoring option '-M'; no argument required | 7065 # icc: Command line warning: ignoring option '-M'; no argument required |
6256 # The diagnosis changed in icc 8.0: | 7066 # The diagnosis changed in icc 8.0: |
6257 # icc: Command line remark: option '-MP' not supported | 7067 # icc: Command line remark: option '-MP' not supported |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6290 # ------------ | 7100 # ------------ |
6291 AC_DEFUN([AM_DEP_TRACK], | 7101 AC_DEFUN([AM_DEP_TRACK], |
6292 [AC_ARG_ENABLE(dependency-tracking, | 7102 [AC_ARG_ENABLE(dependency-tracking, |
6293 [ --disable-dependency-tracking speeds up one-time build | 7103 [ --disable-dependency-tracking speeds up one-time build |
6294 --enable-dependency-tracking do not reject slow dependency extractors]) | 7104 --enable-dependency-tracking do not reject slow dependency extractors]) |
6295 if test "x$enable_dependency_tracking" != xno; then | 7105 if test "x$enable_dependency_tracking" != xno; then |
6296 am_depcomp="$ac_aux_dir/depcomp" | 7106 am_depcomp="$ac_aux_dir/depcomp" |
6297 AMDEPBACKSLASH='\' | 7107 AMDEPBACKSLASH='\' |
6298 fi | 7108 fi |
6299 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | 7109 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
6300 AC_SUBST([AMDEPBACKSLASH]) | 7110 AC_SUBST([AMDEPBACKSLASH])dnl |
| 7111 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
6301 ]) | 7112 ]) |
6302 | 7113 |
6303 # Generate code to set up dependency tracking. -*- Autoconf -*- | 7114 # Generate code to set up dependency tracking. -*- Autoconf -*- |
6304 | 7115 |
6305 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 | 7116 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
6306 # Free Software Foundation, Inc. | 7117 # Free Software Foundation, Inc. |
| 7118 # |
| 7119 # This file is free software; the Free Software Foundation |
| 7120 # gives unlimited permission to copy and/or distribute it, |
| 7121 # with or without modifications, as long as this notice is preserved. |
6307 | 7122 |
6308 # This program is free software; you can redistribute it and/or modify | 7123 #serial 3 |
6309 # it under the terms of the GNU General Public License as published by | |
6310 # the Free Software Foundation; either version 2, or (at your option) | |
6311 # any later version. | |
6312 | |
6313 # This program is distributed in the hope that it will be useful, | |
6314 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6315 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6316 # GNU General Public License for more details. | |
6317 | |
6318 # You should have received a copy of the GNU General Public License | |
6319 # along with this program; if not, write to the Free Software | |
6320 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6321 # 02111-1307, USA. | |
6322 | |
6323 #serial 2 | |
6324 | 7124 |
6325 # _AM_OUTPUT_DEPENDENCY_COMMANDS | 7125 # _AM_OUTPUT_DEPENDENCY_COMMANDS |
6326 # ------------------------------ | 7126 # ------------------------------ |
6327 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | 7127 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
6328 [for mf in $CONFIG_FILES; do | 7128 [for mf in $CONFIG_FILES; do |
6329 # Strip MF so we end up with the name of the file. | 7129 # Strip MF so we end up with the name of the file. |
6330 mf=`echo "$mf" | sed -e 's/:.*$//'` | 7130 mf=`echo "$mf" | sed -e 's/:.*$//'` |
6331 # Check whether this is an Automake generated Makefile or not. | 7131 # Check whether this is an Automake generated Makefile or not. |
6332 # We used to match only the files named `Makefile.in', but | 7132 # We used to match only the files named `Makefile.in', but |
6333 # some people rename them; so instead we look at the file content. | 7133 # some people rename them; so instead we look at the file content. |
6334 # Grep'ing the first line is not enough: some people post-process | 7134 # Grep'ing the first line is not enough: some people post-process |
6335 # each Makefile.in and add a new line on top of each file to say so. | 7135 # each Makefile.in and add a new line on top of each file to say so. |
6336 # So let's grep whole file. | 7136 # Grep'ing the whole file is not good either: AIX grep has a line |
6337 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | 7137 # limit of 2048, but all sed's we know have understand at least 4000. |
| 7138 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1;
then |
6338 dirpart=`AS_DIRNAME("$mf")` | 7139 dirpart=`AS_DIRNAME("$mf")` |
6339 else | 7140 else |
6340 continue | 7141 continue |
6341 fi | 7142 fi |
6342 # Extract the definition of DEPDIR, am__include, and am__quote | 7143 # Extract the definition of DEPDIR, am__include, and am__quote |
6343 # from the Makefile without running `make'. | 7144 # from the Makefile without running `make'. |
6344 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | 7145 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
6345 test -z "$DEPDIR" && continue | 7146 test -z "$DEPDIR" && continue |
6346 am__include=`sed -n 's/^am__include = //p' < "$mf"` | 7147 am__include=`sed -n 's/^am__include = //p' < "$mf"` |
6347 test -z "am__include" && continue | 7148 test -z "am__include" && continue |
(...skipping 24 matching lines...) Expand all Loading... |
6372 # | 7173 # |
6373 # This code is only required when automatic dependency tracking | 7174 # This code is only required when automatic dependency tracking |
6374 # is enabled. FIXME. This creates each `.P' file that we will | 7175 # is enabled. FIXME. This creates each `.P' file that we will |
6375 # need in order to bootstrap the dependency handling code. | 7176 # need in order to bootstrap the dependency handling code. |
6376 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | 7177 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
6377 [AC_CONFIG_COMMANDS([depfiles], | 7178 [AC_CONFIG_COMMANDS([depfiles], |
6378 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | 7179 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
6379 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | 7180 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
6380 ]) | 7181 ]) |
6381 | 7182 |
6382 # Do all the work for Automake. -*- Autoconf -*- | 7183 # Do all the work for Automake. -*- Autoconf -*- |
6383 | 7184 |
6384 # This macro actually does too much some checks are only needed if | 7185 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 7186 # 2005, 2006, 2008 Free Software Foundation, Inc. |
| 7187 # |
| 7188 # This file is free software; the Free Software Foundation |
| 7189 # gives unlimited permission to copy and/or distribute it, |
| 7190 # with or without modifications, as long as this notice is preserved. |
| 7191 |
| 7192 # serial 13 |
| 7193 |
| 7194 # This macro actually does too much. Some checks are only needed if |
6385 # your package does certain things. But this isn't really a big deal. | 7195 # your package does certain things. But this isn't really a big deal. |
6386 | 7196 |
6387 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 | |
6388 # Free Software Foundation, Inc. | |
6389 | |
6390 # This program is free software; you can redistribute it and/or modify | |
6391 # it under the terms of the GNU General Public License as published by | |
6392 # the Free Software Foundation; either version 2, or (at your option) | |
6393 # any later version. | |
6394 | |
6395 # This program is distributed in the hope that it will be useful, | |
6396 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6397 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6398 # GNU General Public License for more details. | |
6399 | |
6400 # You should have received a copy of the GNU General Public License | |
6401 # along with this program; if not, write to the Free Software | |
6402 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6403 # 02111-1307, USA. | |
6404 | |
6405 # serial 11 | |
6406 | |
6407 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | 7197 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
6408 # AM_INIT_AUTOMAKE([OPTIONS]) | 7198 # AM_INIT_AUTOMAKE([OPTIONS]) |
6409 # ----------------------------------------------- | 7199 # ----------------------------------------------- |
6410 # The call with PACKAGE and VERSION arguments is the old style | 7200 # The call with PACKAGE and VERSION arguments is the old style |
6411 # call (pre autoconf-2.50), which is being phased out. PACKAGE | 7201 # call (pre autoconf-2.50), which is being phased out. PACKAGE |
6412 # and VERSION should now be passed to AC_INIT and removed from | 7202 # and VERSION should now be passed to AC_INIT and removed from |
6413 # the call to AM_INIT_AUTOMAKE. | 7203 # the call to AM_INIT_AUTOMAKE. |
6414 # We support both call styles for the transition. After | 7204 # We support both call styles for the transition. After |
6415 # the next Automake release, Autoconf can make the AC_INIT | 7205 # the next Automake release, Autoconf can make the AC_INIT |
6416 # arguments mandatory, and then we can depend on a new Autoconf | 7206 # arguments mandatory, and then we can depend on a new Autoconf |
6417 # release and drop the old call support. | 7207 # release and drop the old call support. |
6418 AC_DEFUN([AM_INIT_AUTOMAKE], | 7208 AC_DEFUN([AM_INIT_AUTOMAKE], |
6419 [AC_PREREQ([2.58])dnl | 7209 [AC_PREREQ([2.60])dnl |
6420 dnl Autoconf wants to disallow AM_ names. We explicitly allow | 7210 dnl Autoconf wants to disallow AM_ names. We explicitly allow |
6421 dnl the ones we care about. | 7211 dnl the ones we care about. |
6422 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | 7212 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
6423 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | 7213 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
6424 AC_REQUIRE([AC_PROG_INSTALL])dnl | 7214 AC_REQUIRE([AC_PROG_INSTALL])dnl |
6425 # test to see if srcdir already configured | 7215 if test "`cd $srcdir && pwd`" != "`pwd`"; then |
6426 if test "`cd $srcdir && pwd`" != "`pwd`" && | 7216 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
6427 test -f $srcdir/config.status; then | 7217 # is not polluted with repeated "-I." |
6428 AC_MSG_ERROR([source directory already configured; run "make distclean" there
first]) | 7218 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
| 7219 # test to see if srcdir already configured |
| 7220 if test -f $srcdir/config.status; then |
| 7221 AC_MSG_ERROR([source directory already configured; run "make distclean" ther
e first]) |
| 7222 fi |
6429 fi | 7223 fi |
6430 | 7224 |
6431 # test whether we have cygpath | 7225 # test whether we have cygpath |
6432 if test -z "$CYGPATH_W"; then | 7226 if test -z "$CYGPATH_W"; then |
6433 if (cygpath --version) >/dev/null 2>/dev/null; then | 7227 if (cygpath --version) >/dev/null 2>/dev/null; then |
6434 CYGPATH_W='cygpath -w' | 7228 CYGPATH_W='cygpath -w' |
6435 else | 7229 else |
6436 CYGPATH_W=echo | 7230 CYGPATH_W=echo |
6437 fi | 7231 fi |
6438 fi | 7232 fi |
6439 AC_SUBST([CYGPATH_W]) | 7233 AC_SUBST([CYGPATH_W]) |
6440 | 7234 |
6441 # Define the identity of the package. | 7235 # Define the identity of the package. |
6442 dnl Distinguish between old-style and new-style calls. | 7236 dnl Distinguish between old-style and new-style calls. |
6443 m4_ifval([$2], | 7237 m4_ifval([$2], |
6444 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | 7238 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
6445 AC_SUBST([PACKAGE], [$1])dnl | 7239 AC_SUBST([PACKAGE], [$1])dnl |
6446 AC_SUBST([VERSION], [$2])], | 7240 AC_SUBST([VERSION], [$2])], |
6447 [_AM_SET_OPTIONS([$1])dnl | 7241 [_AM_SET_OPTIONS([$1])dnl |
| 7242 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
| 7243 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, |
| 7244 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
6448 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | 7245 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
6449 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | 7246 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
6450 | 7247 |
6451 _AM_IF_OPTION([no-define],, | 7248 _AM_IF_OPTION([no-define],, |
6452 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | 7249 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
6453 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | 7250 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
6454 | 7251 |
6455 # Some tools Automake needs. | 7252 # Some tools Automake needs. |
6456 AC_REQUIRE([AM_SANITY_CHECK])dnl | 7253 AC_REQUIRE([AM_SANITY_CHECK])dnl |
6457 AC_REQUIRE([AC_ARG_PROGRAM])dnl | 7254 AC_REQUIRE([AC_ARG_PROGRAM])dnl |
(...skipping 15 matching lines...) Expand all Loading... |
6473 [_AM_PROG_TAR([v7])])]) | 7270 [_AM_PROG_TAR([v7])])]) |
6474 _AM_IF_OPTION([no-dependencies],, | 7271 _AM_IF_OPTION([no-dependencies],, |
6475 [AC_PROVIDE_IFELSE([AC_PROG_CC], | 7272 [AC_PROVIDE_IFELSE([AC_PROG_CC], |
6476 [_AM_DEPENDENCIES(CC)], | 7273 [_AM_DEPENDENCIES(CC)], |
6477 [define([AC_PROG_CC], | 7274 [define([AC_PROG_CC], |
6478 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | 7275 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
6479 AC_PROVIDE_IFELSE([AC_PROG_CXX], | 7276 AC_PROVIDE_IFELSE([AC_PROG_CXX], |
6480 [_AM_DEPENDENCIES(CXX)], | 7277 [_AM_DEPENDENCIES(CXX)], |
6481 [define([AC_PROG_CXX], | 7278 [define([AC_PROG_CXX], |
6482 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | 7279 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
| 7280 AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
| 7281 [_AM_DEPENDENCIES(OBJC)], |
| 7282 [define([AC_PROG_OBJC], |
| 7283 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl |
6483 ]) | 7284 ]) |
6484 ]) | 7285 ]) |
6485 | 7286 |
6486 | 7287 |
6487 # When config.status generates a header, we must update the stamp-h file. | 7288 # When config.status generates a header, we must update the stamp-h file. |
6488 # This file resides in the same directory as the config header | 7289 # This file resides in the same directory as the config header |
6489 # that is generated. The stamp files are numbered to have different names. | 7290 # that is generated. The stamp files are numbered to have different names. |
6490 | 7291 |
6491 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | 7292 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
6492 # loop where config.status creates the headers, so we can generate | 7293 # loop where config.status creates the headers, so we can generate |
6493 # our stamp files there. | 7294 # our stamp files there. |
6494 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | 7295 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
6495 [# Compute $1's index in $config_headers. | 7296 [# Compute $1's index in $config_headers. |
| 7297 _am_arg=$1 |
6496 _am_stamp_count=1 | 7298 _am_stamp_count=1 |
6497 for _am_header in $config_headers :; do | 7299 for _am_header in $config_headers :; do |
6498 case $_am_header in | 7300 case $_am_header in |
6499 $1 | $1:* ) | 7301 $_am_arg | $_am_arg:* ) |
6500 break ;; | 7302 break ;; |
6501 * ) | 7303 * ) |
6502 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | 7304 _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
6503 esac | 7305 esac |
6504 done | 7306 done |
6505 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) | 7307 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_co
unt]) |
| 7308 |
| 7309 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| 7310 # |
| 7311 # This file is free software; the Free Software Foundation |
| 7312 # gives unlimited permission to copy and/or distribute it, |
| 7313 # with or without modifications, as long as this notice is preserved. |
6506 | 7314 |
6507 # AM_PROG_INSTALL_SH | 7315 # AM_PROG_INSTALL_SH |
6508 # ------------------ | 7316 # ------------------ |
6509 # Define $install_sh. | 7317 # Define $install_sh. |
6510 | |
6511 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. | |
6512 | |
6513 # This program is free software; you can redistribute it and/or modify | |
6514 # it under the terms of the GNU General Public License as published by | |
6515 # the Free Software Foundation; either version 2, or (at your option) | |
6516 # any later version. | |
6517 | |
6518 # This program is distributed in the hope that it will be useful, | |
6519 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6520 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6521 # GNU General Public License for more details. | |
6522 | |
6523 # You should have received a copy of the GNU General Public License | |
6524 # along with this program; if not, write to the Free Software | |
6525 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6526 # 02111-1307, USA. | |
6527 | |
6528 AC_DEFUN([AM_PROG_INSTALL_SH], | 7318 AC_DEFUN([AM_PROG_INSTALL_SH], |
6529 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | 7319 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
6530 install_sh=${install_sh-"$am_aux_dir/install-sh"} | 7320 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
6531 AC_SUBST(install_sh)]) | 7321 AC_SUBST(install_sh)]) |
6532 | 7322 |
6533 # -*- Autoconf -*- | 7323 # Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
6534 # Copyright (C) 2003 Free Software Foundation, Inc. | 7324 # |
| 7325 # This file is free software; the Free Software Foundation |
| 7326 # gives unlimited permission to copy and/or distribute it, |
| 7327 # with or without modifications, as long as this notice is preserved. |
6535 | 7328 |
6536 # This program is free software; you can redistribute it and/or modify | 7329 # serial 2 |
6537 # it under the terms of the GNU General Public License as published by | |
6538 # the Free Software Foundation; either version 2, or (at your option) | |
6539 # any later version. | |
6540 | |
6541 # This program is distributed in the hope that it will be useful, | |
6542 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6543 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6544 # GNU General Public License for more details. | |
6545 | |
6546 # You should have received a copy of the GNU General Public License | |
6547 # along with this program; if not, write to the Free Software | |
6548 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6549 # 02111-1307, USA. | |
6550 | |
6551 # serial 1 | |
6552 | 7330 |
6553 # Check whether the underlying file-system supports filenames | 7331 # Check whether the underlying file-system supports filenames |
6554 # with a leading dot. For instance MS-DOS doesn't. | 7332 # with a leading dot. For instance MS-DOS doesn't. |
6555 AC_DEFUN([AM_SET_LEADING_DOT], | 7333 AC_DEFUN([AM_SET_LEADING_DOT], |
6556 [rm -rf .tst 2>/dev/null | 7334 [rm -rf .tst 2>/dev/null |
6557 mkdir .tst 2>/dev/null | 7335 mkdir .tst 2>/dev/null |
6558 if test -d .tst; then | 7336 if test -d .tst; then |
6559 am__leading_dot=. | 7337 am__leading_dot=. |
6560 else | 7338 else |
6561 am__leading_dot=_ | 7339 am__leading_dot=_ |
6562 fi | 7340 fi |
6563 rmdir .tst 2>/dev/null | 7341 rmdir .tst 2>/dev/null |
6564 AC_SUBST([am__leading_dot])]) | 7342 AC_SUBST([am__leading_dot])]) |
6565 | 7343 |
6566 # Check to see how 'make' treats includes.» -*- Autoconf -*- | 7344 # Check to see how 'make' treats includes.» -*- Autoconf -*- |
6567 | 7345 |
6568 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. | 7346 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
| 7347 # |
| 7348 # This file is free software; the Free Software Foundation |
| 7349 # gives unlimited permission to copy and/or distribute it, |
| 7350 # with or without modifications, as long as this notice is preserved. |
6569 | 7351 |
6570 # This program is free software; you can redistribute it and/or modify | 7352 # serial 3 |
6571 # it under the terms of the GNU General Public License as published by | |
6572 # the Free Software Foundation; either version 2, or (at your option) | |
6573 # any later version. | |
6574 | |
6575 # This program is distributed in the hope that it will be useful, | |
6576 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6577 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6578 # GNU General Public License for more details. | |
6579 | |
6580 # You should have received a copy of the GNU General Public License | |
6581 # along with this program; if not, write to the Free Software | |
6582 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6583 # 02111-1307, USA. | |
6584 | |
6585 # serial 2 | |
6586 | 7353 |
6587 # AM_MAKE_INCLUDE() | 7354 # AM_MAKE_INCLUDE() |
6588 # ----------------- | 7355 # ----------------- |
6589 # Check to see how make treats includes. | 7356 # Check to see how make treats includes. |
6590 AC_DEFUN([AM_MAKE_INCLUDE], | 7357 AC_DEFUN([AM_MAKE_INCLUDE], |
6591 [am_make=${MAKE-make} | 7358 [am_make=${MAKE-make} |
6592 cat > confinc << 'END' | 7359 cat > confinc << 'END' |
6593 am__doit: | 7360 am__doit: |
6594 @echo done | 7361 @echo done |
6595 .PHONY: am__doit | 7362 .PHONY: am__doit |
(...skipping 23 matching lines...) Expand all Loading... |
6619 am__quote="\"" | 7386 am__quote="\"" |
6620 _am_result=BSD | 7387 _am_result=BSD |
6621 fi | 7388 fi |
6622 fi | 7389 fi |
6623 AC_SUBST([am__include]) | 7390 AC_SUBST([am__include]) |
6624 AC_SUBST([am__quote]) | 7391 AC_SUBST([am__quote]) |
6625 AC_MSG_RESULT([$_am_result]) | 7392 AC_MSG_RESULT([$_am_result]) |
6626 rm -f confinc confmf | 7393 rm -f confinc confmf |
6627 ]) | 7394 ]) |
6628 | 7395 |
6629 # -*- Autoconf -*- | 7396 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
6630 | 7397 |
| 7398 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 |
| 7399 # Free Software Foundation, Inc. |
| 7400 # |
| 7401 # This file is free software; the Free Software Foundation |
| 7402 # gives unlimited permission to copy and/or distribute it, |
| 7403 # with or without modifications, as long as this notice is preserved. |
6631 | 7404 |
6632 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. | 7405 # serial 5 |
6633 | |
6634 # This program is free software; you can redistribute it and/or modify | |
6635 # it under the terms of the GNU General Public License as published by | |
6636 # the Free Software Foundation; either version 2, or (at your option) | |
6637 # any later version. | |
6638 | |
6639 # This program is distributed in the hope that it will be useful, | |
6640 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6641 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6642 # GNU General Public License for more details. | |
6643 | |
6644 # You should have received a copy of the GNU General Public License | |
6645 # along with this program; if not, write to the Free Software | |
6646 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6647 # 02111-1307, USA. | |
6648 | |
6649 # serial 3 | |
6650 | 7406 |
6651 # AM_MISSING_PROG(NAME, PROGRAM) | 7407 # AM_MISSING_PROG(NAME, PROGRAM) |
6652 # ------------------------------ | 7408 # ------------------------------ |
6653 AC_DEFUN([AM_MISSING_PROG], | 7409 AC_DEFUN([AM_MISSING_PROG], |
6654 [AC_REQUIRE([AM_MISSING_HAS_RUN]) | 7410 [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
6655 $1=${$1-"${am_missing_run}$2"} | 7411 $1=${$1-"${am_missing_run}$2"} |
6656 AC_SUBST($1)]) | 7412 AC_SUBST($1)]) |
6657 | 7413 |
6658 | 7414 |
6659 # AM_MISSING_HAS_RUN | 7415 # AM_MISSING_HAS_RUN |
6660 # ------------------ | 7416 # ------------------ |
6661 # Define MISSING if not defined so far and test if it supports --run. | 7417 # Define MISSING if not defined so far and test if it supports --run. |
6662 # If it does, set am_missing_run to use it, otherwise, to nothing. | 7418 # If it does, set am_missing_run to use it, otherwise, to nothing. |
6663 AC_DEFUN([AM_MISSING_HAS_RUN], | 7419 AC_DEFUN([AM_MISSING_HAS_RUN], |
6664 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | 7420 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 7421 AC_REQUIRE_AUX_FILE([missing])dnl |
6665 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | 7422 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
6666 # Use eval to expand $SHELL | 7423 # Use eval to expand $SHELL |
6667 if eval "$MISSING --run true"; then | 7424 if eval "$MISSING --run true"; then |
6668 am_missing_run="$MISSING --run " | 7425 am_missing_run="$MISSING --run " |
6669 else | 7426 else |
6670 am_missing_run= | 7427 am_missing_run= |
6671 AC_MSG_WARN([`missing' script is too old or missing]) | 7428 AC_MSG_WARN([`missing' script is too old or missing]) |
6672 fi | 7429 fi |
6673 ]) | 7430 ]) |
6674 | 7431 |
| 7432 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 7433 # |
| 7434 # This file is free software; the Free Software Foundation |
| 7435 # gives unlimited permission to copy and/or distribute it, |
| 7436 # with or without modifications, as long as this notice is preserved. |
| 7437 |
6675 # AM_PROG_MKDIR_P | 7438 # AM_PROG_MKDIR_P |
6676 # --------------- | 7439 # --------------- |
6677 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. | 7440 # Check for `mkdir -p'. |
| 7441 AC_DEFUN([AM_PROG_MKDIR_P], |
| 7442 [AC_PREREQ([2.60])dnl |
| 7443 AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
| 7444 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, |
| 7445 dnl while keeping a definition of mkdir_p for backward compatibility. |
| 7446 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. |
| 7447 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of |
| 7448 dnl Makefile.ins that do not define MKDIR_P, so we do our own |
| 7449 dnl adjustment using top_builddir (which is defined more often than |
| 7450 dnl MKDIR_P). |
| 7451 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl |
| 7452 case $mkdir_p in |
| 7453 [[\\/$]]* | ?:[[\\/]]*) ;; |
| 7454 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 7455 esac |
| 7456 ]) |
6678 | 7457 |
6679 # Copyright (C) 2003, 2004 Free Software Foundation, Inc. | 7458 # Helper functions for option handling. -*- Autoconf -*- |
6680 | 7459 |
6681 # This program is free software; you can redistribute it and/or modify | 7460 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
6682 # it under the terms of the GNU General Public License as published by | 7461 # |
6683 # the Free Software Foundation; either version 2, or (at your option) | 7462 # This file is free software; the Free Software Foundation |
6684 # any later version. | 7463 # gives unlimited permission to copy and/or distribute it, |
| 7464 # with or without modifications, as long as this notice is preserved. |
6685 | 7465 |
6686 # This program is distributed in the hope that it will be useful, | 7466 # serial 3 |
6687 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6688 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6689 # GNU General Public License for more details. | |
6690 | |
6691 # You should have received a copy of the GNU General Public License | |
6692 # along with this program; if not, write to the Free Software | |
6693 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6694 # 02111-1307, USA. | |
6695 | |
6696 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories | |
6697 # created by `make install' are always world readable, even if the | |
6698 # installer happens to have an overly restrictive umask (e.g. 077). | |
6699 # This was a mistake. There are at least two reasons why we must not | |
6700 # use `-m 0755': | |
6701 # - it causes special bits like SGID to be ignored, | |
6702 # - it may be too restrictive (some setups expect 775 directories). | |
6703 # | |
6704 # Do not use -m 0755 and let people choose whatever they expect by | |
6705 # setting umask. | |
6706 # | |
6707 # We cannot accept any implementation of `mkdir' that recognizes `-p'. | |
6708 # Some implementations (such as Solaris 8's) are not thread-safe: if a | |
6709 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' | |
6710 # concurrently, both version can detect that a/ is missing, but only | |
6711 # one can create it and the other will error out. Consequently we | |
6712 # restrict ourselves to GNU make (using the --version option ensures | |
6713 # this.) | |
6714 AC_DEFUN([AM_PROG_MKDIR_P], | |
6715 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
6716 # We used to keeping the `.' as first argument, in order to | |
6717 # allow $(mkdir_p) to be used without argument. As in | |
6718 # $(mkdir_p) $(somedir) | |
6719 # where $(somedir) is conditionally defined. However this is wrong | |
6720 # for two reasons: | |
6721 # 1. if the package is installed by a user who cannot write `.' | |
6722 # make install will fail, | |
6723 # 2. the above comment should most certainly read | |
6724 # $(mkdir_p) $(DESTDIR)$(somedir) | |
6725 # so it does not work when $(somedir) is undefined and | |
6726 # $(DESTDIR) is not. | |
6727 # To support the latter case, we have to write | |
6728 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
6729 # so the `.' trick is pointless. | |
6730 mkdir_p='mkdir -p --' | |
6731 else | |
6732 # On NextStep and OpenStep, the `mkdir' command does not | |
6733 # recognize any option. It will interpret all options as | |
6734 # directories to create, and then abort because `.' already | |
6735 # exists. | |
6736 for d in ./-p ./--version; | |
6737 do | |
6738 test -d $d && rmdir $d | |
6739 done | |
6740 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
6741 if test -f "$ac_aux_dir/mkinstalldirs"; then | |
6742 mkdir_p='$(mkinstalldirs)' | |
6743 else | |
6744 mkdir_p='$(install_sh) -d' | |
6745 fi | |
6746 fi | |
6747 AC_SUBST([mkdir_p])]) | |
6748 | |
6749 # Helper functions for option handling. -*- Autoconf -*- | |
6750 | |
6751 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. | |
6752 | |
6753 # This program is free software; you can redistribute it and/or modify | |
6754 # it under the terms of the GNU General Public License as published by | |
6755 # the Free Software Foundation; either version 2, or (at your option) | |
6756 # any later version. | |
6757 | |
6758 # This program is distributed in the hope that it will be useful, | |
6759 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6760 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6761 # GNU General Public License for more details. | |
6762 | |
6763 # You should have received a copy of the GNU General Public License | |
6764 # along with this program; if not, write to the Free Software | |
6765 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6766 # 02111-1307, USA. | |
6767 | |
6768 # serial 2 | |
6769 | 7467 |
6770 # _AM_MANGLE_OPTION(NAME) | 7468 # _AM_MANGLE_OPTION(NAME) |
6771 # ----------------------- | 7469 # ----------------------- |
6772 AC_DEFUN([_AM_MANGLE_OPTION], | 7470 AC_DEFUN([_AM_MANGLE_OPTION], |
6773 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | 7471 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
6774 | 7472 |
6775 # _AM_SET_OPTION(NAME) | 7473 # _AM_SET_OPTION(NAME) |
6776 # ------------------------------ | 7474 # ------------------------------ |
6777 # Set option NAME. Presently that only means defining a flag for this option. | 7475 # Set option NAME. Presently that only means defining a flag for this option. |
6778 AC_DEFUN([_AM_SET_OPTION], | 7476 AC_DEFUN([_AM_SET_OPTION], |
6779 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | 7477 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
6780 | 7478 |
6781 # _AM_SET_OPTIONS(OPTIONS) | 7479 # _AM_SET_OPTIONS(OPTIONS) |
6782 # ---------------------------------- | 7480 # ---------------------------------- |
6783 # OPTIONS is a space-separated list of Automake options. | 7481 # OPTIONS is a space-separated list of Automake options. |
6784 AC_DEFUN([_AM_SET_OPTIONS], | 7482 AC_DEFUN([_AM_SET_OPTIONS], |
6785 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | 7483 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
6786 | 7484 |
6787 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | 7485 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
6788 # ------------------------------------------- | 7486 # ------------------------------------------- |
6789 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | 7487 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
6790 AC_DEFUN([_AM_IF_OPTION], | 7488 AC_DEFUN([_AM_IF_OPTION], |
6791 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | 7489 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
6792 | 7490 |
| 7491 # Check to make sure that the build environment is sane. -*- Autoconf -*- |
| 7492 |
| 7493 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
| 7494 # Free Software Foundation, Inc. |
6793 # | 7495 # |
6794 # Check to make sure that the build environment is sane. | 7496 # This file is free software; the Free Software Foundation |
6795 # | 7497 # gives unlimited permission to copy and/or distribute it, |
| 7498 # with or without modifications, as long as this notice is preserved. |
6796 | 7499 |
6797 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. | 7500 # serial 4 |
6798 | |
6799 # This program is free software; you can redistribute it and/or modify | |
6800 # it under the terms of the GNU General Public License as published by | |
6801 # the Free Software Foundation; either version 2, or (at your option) | |
6802 # any later version. | |
6803 | |
6804 # This program is distributed in the hope that it will be useful, | |
6805 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6806 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6807 # GNU General Public License for more details. | |
6808 | |
6809 # You should have received a copy of the GNU General Public License | |
6810 # along with this program; if not, write to the Free Software | |
6811 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6812 # 02111-1307, USA. | |
6813 | |
6814 # serial 3 | |
6815 | 7501 |
6816 # AM_SANITY_CHECK | 7502 # AM_SANITY_CHECK |
6817 # --------------- | 7503 # --------------- |
6818 AC_DEFUN([AM_SANITY_CHECK], | 7504 AC_DEFUN([AM_SANITY_CHECK], |
6819 [AC_MSG_CHECKING([whether build environment is sane]) | 7505 [AC_MSG_CHECKING([whether build environment is sane]) |
6820 # Just in case | 7506 # Just in case |
6821 sleep 1 | 7507 sleep 1 |
6822 echo timestamp > conftest.file | 7508 echo timestamp > conftest.file |
6823 # Do `set' in a subshell so we don't clobber the current shell's | 7509 # Do `set' in a subshell so we don't clobber the current shell's |
6824 # arguments. Must try -L first in case configure is actually a | 7510 # arguments. Must try -L first in case configure is actually a |
(...skipping 22 matching lines...) Expand all Loading... |
6847 ) | 7533 ) |
6848 then | 7534 then |
6849 # Ok. | 7535 # Ok. |
6850 : | 7536 : |
6851 else | 7537 else |
6852 AC_MSG_ERROR([newly created file is older than distributed files! | 7538 AC_MSG_ERROR([newly created file is older than distributed files! |
6853 Check your system clock]) | 7539 Check your system clock]) |
6854 fi | 7540 fi |
6855 AC_MSG_RESULT(yes)]) | 7541 AC_MSG_RESULT(yes)]) |
6856 | 7542 |
| 7543 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| 7544 # |
| 7545 # This file is free software; the Free Software Foundation |
| 7546 # gives unlimited permission to copy and/or distribute it, |
| 7547 # with or without modifications, as long as this notice is preserved. |
| 7548 |
6857 # AM_PROG_INSTALL_STRIP | 7549 # AM_PROG_INSTALL_STRIP |
6858 | 7550 # --------------------- |
6859 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. | |
6860 | |
6861 # This program is free software; you can redistribute it and/or modify | |
6862 # it under the terms of the GNU General Public License as published by | |
6863 # the Free Software Foundation; either version 2, or (at your option) | |
6864 # any later version. | |
6865 | |
6866 # This program is distributed in the hope that it will be useful, | |
6867 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6868 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6869 # GNU General Public License for more details. | |
6870 | |
6871 # You should have received a copy of the GNU General Public License | |
6872 # along with this program; if not, write to the Free Software | |
6873 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6874 # 02111-1307, USA. | |
6875 | |
6876 # One issue with vendor `install' (even GNU) is that you can't | 7551 # One issue with vendor `install' (even GNU) is that you can't |
6877 # specify the program used to strip binaries. This is especially | 7552 # specify the program used to strip binaries. This is especially |
6878 # annoying in cross-compiling environments, where the build's strip | 7553 # annoying in cross-compiling environments, where the build's strip |
6879 # is unlikely to handle the host's binaries. | 7554 # is unlikely to handle the host's binaries. |
6880 # Fortunately install-sh will honor a STRIPPROG variable, so we | 7555 # Fortunately install-sh will honor a STRIPPROG variable, so we |
6881 # always use install-sh in `make install-strip', and initialize | 7556 # always use install-sh in `make install-strip', and initialize |
6882 # STRIPPROG with the value of the STRIP variable (set by the user). | 7557 # STRIPPROG with the value of the STRIP variable (set by the user). |
6883 AC_DEFUN([AM_PROG_INSTALL_STRIP], | 7558 AC_DEFUN([AM_PROG_INSTALL_STRIP], |
6884 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | 7559 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
6885 # Installed binaries are usually stripped using `strip' when the user | 7560 # Installed binaries are usually stripped using `strip' when the user |
6886 # run `make install-strip'. However `strip' might not be the right | 7561 # run `make install-strip'. However `strip' might not be the right |
6887 # tool to use in cross-compilation environments, therefore Automake | 7562 # tool to use in cross-compilation environments, therefore Automake |
6888 # will honor the `STRIP' environment variable to overrule this program. | 7563 # will honor the `STRIP' environment variable to overrule this program. |
6889 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | 7564 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
6890 if test "$cross_compiling" != no; then | 7565 if test "$cross_compiling" != no; then |
6891 AC_CHECK_TOOL([STRIP], [strip], :) | 7566 AC_CHECK_TOOL([STRIP], [strip], :) |
6892 fi | 7567 fi |
6893 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | 7568 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
6894 AC_SUBST([INSTALL_STRIP_PROGRAM])]) | 7569 AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
6895 | 7570 |
| 7571 # Copyright (C) 2006 Free Software Foundation, Inc. |
| 7572 # |
| 7573 # This file is free software; the Free Software Foundation |
| 7574 # gives unlimited permission to copy and/or distribute it, |
| 7575 # with or without modifications, as long as this notice is preserved. |
| 7576 |
| 7577 # _AM_SUBST_NOTMAKE(VARIABLE) |
| 7578 # --------------------------- |
| 7579 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
| 7580 # This macro is traced by Automake. |
| 7581 AC_DEFUN([_AM_SUBST_NOTMAKE]) |
| 7582 |
6896 # Check how to create a tarball. -*- Autoconf -*- | 7583 # Check how to create a tarball. -*- Autoconf -*- |
6897 | 7584 |
6898 # Copyright (C) 2004 Free Software Foundation, Inc. | 7585 # Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
| 7586 # |
| 7587 # This file is free software; the Free Software Foundation |
| 7588 # gives unlimited permission to copy and/or distribute it, |
| 7589 # with or without modifications, as long as this notice is preserved. |
6899 | 7590 |
6900 # This program is free software; you can redistribute it and/or modify | 7591 # serial 2 |
6901 # it under the terms of the GNU General Public License as published by | |
6902 # the Free Software Foundation; either version 2, or (at your option) | |
6903 # any later version. | |
6904 | |
6905 # This program is distributed in the hope that it will be useful, | |
6906 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
6907 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
6908 # GNU General Public License for more details. | |
6909 | |
6910 # You should have received a copy of the GNU General Public License | |
6911 # along with this program; if not, write to the Free Software | |
6912 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
6913 # 02111-1307, USA. | |
6914 | |
6915 # serial 1 | |
6916 | |
6917 | 7592 |
6918 # _AM_PROG_TAR(FORMAT) | 7593 # _AM_PROG_TAR(FORMAT) |
6919 # -------------------- | 7594 # -------------------- |
6920 # Check how to create a tarball in format FORMAT. | 7595 # Check how to create a tarball in format FORMAT. |
6921 # FORMAT should be one of `v7', `ustar', or `pax'. | 7596 # FORMAT should be one of `v7', `ustar', or `pax'. |
6922 # | 7597 # |
6923 # Substitute a variable $(am__tar) that is a command | 7598 # Substitute a variable $(am__tar) that is a command |
6924 # writing to stdout a FORMAT-tarball containing the directory | 7599 # writing to stdout a FORMAT-tarball containing the directory |
6925 # $tardir. | 7600 # $tardir. |
6926 # tardir=directory && $(am__tar) > result.tar | 7601 # tardir=directory && $(am__tar) > result.tar |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6994 fi | 7669 fi |
6995 done | 7670 done |
6996 rm -rf conftest.dir | 7671 rm -rf conftest.dir |
6997 | 7672 |
6998 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | 7673 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
6999 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | 7674 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
7000 AC_SUBST([am__tar]) | 7675 AC_SUBST([am__tar]) |
7001 AC_SUBST([am__untar]) | 7676 AC_SUBST([am__untar]) |
7002 ]) # _AM_PROG_TAR | 7677 ]) # _AM_PROG_TAR |
7003 | 7678 |
OLD | NEW |