[svn r9] Fixed a bug when trying to mount the LDFLAGS.
1.1 --- a/gst-plugins-mythtv/aclocal.m4 Thu Sep 21 14:26:37 2006 +0100
1.2 +++ b/gst-plugins-mythtv/aclocal.m4 Thu Sep 21 15:58:58 2006 +0100
1.3 @@ -1,4 +1,4 @@
1.4 -# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
1.5 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1.6
1.7 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1.8 # 2005 Free Software Foundation, Inc.
1.9 @@ -13,8 +13,7 @@
1.10
1.11 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1.12
1.13 -# serial 47 AC_PROG_LIBTOOL
1.14 -# Debian $Rev: 214 $
1.15 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
1.16
1.17
1.18 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1.19 @@ -124,7 +123,7 @@
1.20
1.21 # Sed substitution that helps us do robust quoting. It backslashifies
1.22 # metacharacters that are still active within double-quoted strings.
1.23 -Xsed='sed -e s/^X//'
1.24 +Xsed='sed -e 1s/^X//'
1.25 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1.26
1.27 # Same as above, but do not quote variable references.
1.28 @@ -144,7 +143,7 @@
1.29 default_ofile=libtool
1.30 can_build_shared=yes
1.31
1.32 -# All known linkers require a `.a' archive for static linking (except M$VC,
1.33 +# All known linkers require a `.a' archive for static linking (except MSVC,
1.34 # which needs '.lib').
1.35 libext=a
1.36 ltmain="$ac_aux_dir/ltmain.sh"
1.37 @@ -164,6 +163,7 @@
1.38 test -z "$AS" && AS=as
1.39 test -z "$CC" && CC=cc
1.40 test -z "$LTCC" && LTCC=$CC
1.41 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1.42 test -z "$DLLTOOL" && DLLTOOL=dlltool
1.43 test -z "$LD" && LD=ld
1.44 test -z "$LN_S" && LN_S="ln -s"
1.45 @@ -183,15 +183,17 @@
1.46 if test -n "$RANLIB"; then
1.47 case $host_os in
1.48 openbsd*)
1.49 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1.50 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1.51 ;;
1.52 *)
1.53 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1.54 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1.55 ;;
1.56 esac
1.57 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1.58 fi
1.59
1.60 +_LT_CC_BASENAME([$compiler])
1.61 +
1.62 # Only perform the check for file, if the check method requires it
1.63 case $deplibs_check_method in
1.64 file_magic*)
1.65 @@ -232,11 +234,56 @@
1.66 # If no C compiler was specified, use CC.
1.67 LTCC=${LTCC-"$CC"}
1.68
1.69 +# If no C compiler flags were specified, use CFLAGS.
1.70 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.71 +
1.72 # Allow CC to be a program name with arguments.
1.73 compiler=$CC
1.74 ])# _LT_AC_SYS_COMPILER
1.75
1.76
1.77 +# _LT_CC_BASENAME(CC)
1.78 +# -------------------
1.79 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1.80 +AC_DEFUN([_LT_CC_BASENAME],
1.81 +[for cc_temp in $1""; do
1.82 + case $cc_temp in
1.83 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1.84 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1.85 + \-*) ;;
1.86 + *) break;;
1.87 + esac
1.88 +done
1.89 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.90 +])
1.91 +
1.92 +
1.93 +# _LT_COMPILER_BOILERPLATE
1.94 +# ------------------------
1.95 +# Check for compiler boilerplate output or warnings with
1.96 +# the simple compiler test code.
1.97 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1.98 +[ac_outfile=conftest.$ac_objext
1.99 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1.100 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.101 +_lt_compiler_boilerplate=`cat conftest.err`
1.102 +$rm conftest*
1.103 +])# _LT_COMPILER_BOILERPLATE
1.104 +
1.105 +
1.106 +# _LT_LINKER_BOILERPLATE
1.107 +# ----------------------
1.108 +# Check for linker boilerplate output or warnings with
1.109 +# the simple link test code.
1.110 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
1.111 +[ac_outfile=conftest.$ac_objext
1.112 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
1.113 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.114 +_lt_linker_boilerplate=`cat conftest.err`
1.115 +$rm conftest*
1.116 +])# _LT_LINKER_BOILERPLATE
1.117 +
1.118 +
1.119 # _LT_AC_SYS_LIBPATH_AIX
1.120 # ----------------------
1.121 # Links a minimal program and checks the executable
1.122 @@ -309,15 +356,15 @@
1.123
1.124 # The HP-UX ksh and POSIX shell print the target directory to stdout
1.125 # if CDPATH is set.
1.126 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
1.127 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.128
1.129 if test -z "$ECHO"; then
1.130 if test "X${echo_test_string+set}" != Xset; then
1.131 # find a string as large as possible, as long as the shell can cope with it
1.132 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1.133 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1.134 - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1.135 - echo_test_string="`eval $cmd`" &&
1.136 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1.137 + echo_test_string=`eval $cmd` &&
1.138 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1.139 then
1.140 break
1.141 @@ -486,7 +533,7 @@
1.142 # Find out which ABI we are using.
1.143 echo 'int i;' > conftest.$ac_ext
1.144 if AC_TRY_EVAL(ac_compile); then
1.145 - case "`/usr/bin/file conftest.o`" in
1.146 + case `/usr/bin/file conftest.o` in
1.147 *32-bit*)
1.148 case $host in
1.149 x86_64-*linux*)
1.150 @@ -537,6 +584,22 @@
1.151 CFLAGS="$SAVE_CFLAGS"
1.152 fi
1.153 ;;
1.154 +sparc*-*solaris*)
1.155 + # Find out which ABI we are using.
1.156 + echo 'int i;' > conftest.$ac_ext
1.157 + if AC_TRY_EVAL(ac_compile); then
1.158 + case `/usr/bin/file conftest.o` in
1.159 + *64-bit*)
1.160 + case $lt_cv_prog_gnu_ld in
1.161 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
1.162 + *) LD="${LD-ld} -64" ;;
1.163 + esac
1.164 + ;;
1.165 + esac
1.166 + fi
1.167 + rm -rf conftest*
1.168 + ;;
1.169 +
1.170 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1.171 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1.172 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1.173 @@ -568,7 +631,7 @@
1.174 # with a dollar sign (not a hyphen), so the echo should work correctly.
1.175 # The option is referenced via a variable to avoid confusing sed.
1.176 lt_compile=`echo "$ac_compile" | $SED \
1.177 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1.178 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.179 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1.180 -e 's:$: $lt_compiler_flag:'`
1.181 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1.182 @@ -578,8 +641,10 @@
1.183 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1.184 if (exit $ac_status) && test -s "$ac_outfile"; then
1.185 # The compiler can only warn and ignore the option if not recognized
1.186 - # So say no if there are warnings
1.187 - if test ! -s conftest.err; then
1.188 + # So say no if there are warnings other than the usual output.
1.189 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1.190 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1.191 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.192 $2=yes
1.193 fi
1.194 fi
1.195 @@ -605,11 +670,16 @@
1.196 LDFLAGS="$LDFLAGS $3"
1.197 printf "$lt_simple_link_test_code" > conftest.$ac_ext
1.198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1.199 - # The compiler can only warn and ignore the option if not recognized
1.200 + # The linker can only warn and ignore the option if not recognized
1.201 # So say no if there are warnings
1.202 if test -s conftest.err; then
1.203 # Append any errors to the config.log.
1.204 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1.205 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1.206 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1.207 + if diff conftest.exp conftest.er2 >/dev/null; then
1.208 + $2=yes
1.209 + fi
1.210 else
1.211 $2=yes
1.212 fi
1.213 @@ -668,11 +738,55 @@
1.214 lt_cv_sys_max_cmd_len=8192;
1.215 ;;
1.216
1.217 - *)
1.218 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1.219 + # This has been around since 386BSD, at least. Likely further.
1.220 + if test -x /sbin/sysctl; then
1.221 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1.222 + elif test -x /usr/sbin/sysctl; then
1.223 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1.224 + else
1.225 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1.226 + fi
1.227 + # And add a safety zone
1.228 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1.229 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1.230 + ;;
1.231 +
1.232 + interix*)
1.233 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
1.234 + lt_cv_sys_max_cmd_len=196608
1.235 + ;;
1.236 +
1.237 + osf*)
1.238 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1.239 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1.240 + # nice to cause kernel panics so lets avoid the loop below.
1.241 + # First set a reasonable default.
1.242 + lt_cv_sys_max_cmd_len=16384
1.243 + #
1.244 + if test -x /sbin/sysconfig; then
1.245 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1.246 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
1.247 + esac
1.248 + fi
1.249 + ;;
1.250 + sco3.2v5*)
1.251 + lt_cv_sys_max_cmd_len=102400
1.252 + ;;
1.253 + sysv5* | sco5v6* | sysv4.2uw2*)
1.254 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1.255 + if test -n "$kargmax"; then
1.256 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1.257 + else
1.258 + lt_cv_sys_max_cmd_len=32768
1.259 + fi
1.260 + ;;
1.261 + *)
1.262 # If test is not a shell built-in, we'll probably end up computing a
1.263 # maximum length that is only half of the actual maximum length, but
1.264 # we can't tell.
1.265 - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1.266 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1.267 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1.268 = "XX$teststring") >/dev/null 2>&1 &&
1.269 new_result=`expr "X$teststring" : ".*" 2>&1` &&
1.270 lt_cv_sys_max_cmd_len=$new_result &&
1.271 @@ -698,7 +812,7 @@
1.272
1.273
1.274 # _LT_AC_CHECK_DLFCN
1.275 -# --------------------
1.276 +# ------------------
1.277 AC_DEFUN([_LT_AC_CHECK_DLFCN],
1.278 [AC_CHECK_HEADERS(dlfcn.h)dnl
1.279 ])# _LT_AC_CHECK_DLFCN
1.280 @@ -706,7 +820,7 @@
1.281
1.282 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1.283 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1.284 -# ------------------------------------------------------------------
1.285 +# ---------------------------------------------------------------------
1.286 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1.287 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1.288 if test "$cross_compiling" = yes; then :
1.289 @@ -772,17 +886,19 @@
1.290 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1.291 /* dlclose (self); */
1.292 }
1.293 + else
1.294 + puts (dlerror ());
1.295
1.296 exit (status);
1.297 }]
1.298 EOF
1.299 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1.300 - (./conftest; exit; ) 2>/dev/null
1.301 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1.302 lt_status=$?
1.303 case x$lt_status in
1.304 x$lt_dlno_uscore) $1 ;;
1.305 x$lt_dlneed_uscore) $2 ;;
1.306 - x$lt_unknown|x*) $3 ;;
1.307 + x$lt_dlunknown|x*) $3 ;;
1.308 esac
1.309 else :
1.310 # compilation failed
1.311 @@ -794,7 +910,7 @@
1.312
1.313
1.314 # AC_LIBTOOL_DLOPEN_SELF
1.315 -# -------------------
1.316 +# ----------------------
1.317 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1.318 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1.319 if test "x$enable_dlopen" != xyes; then
1.320 @@ -865,7 +981,7 @@
1.321 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.322
1.323 save_LDFLAGS="$LDFLAGS"
1.324 - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.325 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.326
1.327 save_LIBS="$LIBS"
1.328 LIBS="$lt_cv_dlopen_libs $LIBS"
1.329 @@ -878,7 +994,7 @@
1.330 ])
1.331
1.332 if test "x$lt_cv_dlopen_self" = xyes; then
1.333 - LDFLAGS="$LDFLAGS $link_static_flag"
1.334 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.335 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1.336 lt_cv_dlopen_self_static, [dnl
1.337 _LT_AC_TRY_DLOPEN_SELF(
1.338 @@ -926,7 +1042,7 @@
1.339 # Note that $ac_compile itself does not contain backslashes and begins
1.340 # with a dollar sign (not a hyphen), so the echo should work correctly.
1.341 lt_compile=`echo "$ac_compile" | $SED \
1.342 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1.343 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.344 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1.345 -e 's:$: $lt_compiler_flag:'`
1.346 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1.347 @@ -938,11 +1054,13 @@
1.348 then
1.349 # The compiler can only warn and ignore the option if not recognized
1.350 # So say no if there are warnings
1.351 - if test ! -s out/conftest.err; then
1.352 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1.353 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1.354 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.355 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1.356 fi
1.357 fi
1.358 - chmod u+w .
1.359 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
1.360 $rm conftest*
1.361 # SGI C++ compiler will create directory out/ii_files/ for
1.362 # template instantiation
1.363 @@ -1006,8 +1124,8 @@
1.364 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1.365 _LT_AC_TAGVAR(hardcode_action, $1)=
1.366 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1.367 - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1.368 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1.369 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1.370 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1.371
1.372 # We can hardcode non-existant directories.
1.373 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1.374 @@ -1174,7 +1292,7 @@
1.375 shlibpath_var=LIBRARY_PATH
1.376 ;;
1.377
1.378 -bsdi4*)
1.379 +bsdi[[45]]*)
1.380 version_type=linux
1.381 need_version=no
1.382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.383 @@ -1202,7 +1320,8 @@
1.384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1.385 dldir=$destdir/`dirname \$dlpath`~
1.386 test -d \$dldir || mkdir -p \$dldir~
1.387 - $install_prog $dir/$dlname \$dldir/$dlname'
1.388 + $install_prog $dir/$dlname \$dldir/$dlname~
1.389 + chmod a+x \$dldir/$dlname'
1.390 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1.391 dlpath=$dir/\$dldll~
1.392 $rm \$dlpath'
1.393 @@ -1232,7 +1351,7 @@
1.394 ;;
1.395 pw32*)
1.396 # pw32 DLLs use 'pw' prefix rather than 'lib'
1.397 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.398 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1.399 ;;
1.400 esac
1.401 ;;
1.402 @@ -1255,7 +1374,7 @@
1.403 soname_spec='${libname}${release}${major}$shared_ext'
1.404 shlibpath_overrides_runpath=yes
1.405 shlibpath_var=DYLD_LIBRARY_PATH
1.406 - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1.407 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.408 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1.409 if test "$GCC" = yes; then
1.410 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 /usr/lib /usr/local/lib,g"`
1.411 @@ -1278,20 +1397,17 @@
1.412 dynamic_linker=no
1.413 ;;
1.414
1.415 -kfreebsd*-gnu)
1.416 - version_type=linux
1.417 - need_lib_prefix=no
1.418 - need_version=no
1.419 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.420 - soname_spec='${libname}${release}${shared_ext}$major'
1.421 - shlibpath_var=LD_LIBRARY_PATH
1.422 - shlibpath_overrides_runpath=no
1.423 - hardcode_into_libs=yes
1.424 - dynamic_linker='GNU ld.so'
1.425 - ;;
1.426 -
1.427 -freebsd*)
1.428 - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1.429 +freebsd* | dragonfly*)
1.430 + # DragonFly does not have aout. When/if they implement a new
1.431 + # versioning mechanism, adjust this.
1.432 + if test -x /usr/bin/objformat; then
1.433 + objformat=`/usr/bin/objformat`
1.434 + else
1.435 + case $host_os in
1.436 + freebsd[[123]]*) objformat=aout ;;
1.437 + *) objformat=elf ;;
1.438 + esac
1.439 + fi
1.440 version_type=freebsd-$objformat
1.441 case $version_type in
1.442 freebsd-elf*)
1.443 @@ -1309,14 +1425,19 @@
1.444 freebsd2*)
1.445 shlibpath_overrides_runpath=yes
1.446 ;;
1.447 - freebsd3.[01]* | freebsdelf3.[01]*)
1.448 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1.449 shlibpath_overrides_runpath=yes
1.450 hardcode_into_libs=yes
1.451 ;;
1.452 - *) # from 3.2 on
1.453 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1.454 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1.455 shlibpath_overrides_runpath=no
1.456 hardcode_into_libs=yes
1.457 ;;
1.458 + freebsd*) # from 4.6 on
1.459 + shlibpath_overrides_runpath=yes
1.460 + hardcode_into_libs=yes
1.461 + ;;
1.462 esac
1.463 ;;
1.464
1.465 @@ -1336,7 +1457,7 @@
1.466 version_type=sunos
1.467 need_lib_prefix=no
1.468 need_version=no
1.469 - case "$host_cpu" in
1.470 + case $host_cpu in
1.471 ia64*)
1.472 shrext_cmds='.so'
1.473 hardcode_into_libs=yes
1.474 @@ -1376,6 +1497,18 @@
1.475 postinstall_cmds='chmod 555 $lib'
1.476 ;;
1.477
1.478 +interix3*)
1.479 + version_type=linux
1.480 + need_lib_prefix=no
1.481 + need_version=no
1.482 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.483 + soname_spec='${libname}${release}${shared_ext}$major'
1.484 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1.485 + shlibpath_var=LD_LIBRARY_PATH
1.486 + shlibpath_overrides_runpath=no
1.487 + hardcode_into_libs=yes
1.488 + ;;
1.489 +
1.490 irix5* | irix6* | nonstopux*)
1.491 case $host_os in
1.492 nonstopux*) version_type=nonstopux ;;
1.493 @@ -1419,7 +1552,7 @@
1.494 ;;
1.495
1.496 # This must be Linux ELF.
1.497 -linux*)
1.498 +linux* | k*bsd*-gnu)
1.499 version_type=linux
1.500 need_lib_prefix=no
1.501 need_version=no
1.502 @@ -1435,7 +1568,7 @@
1.503
1.504 # Append ld.so.conf contents to the search path
1.505 if test -f /etc/ld.so.conf; then
1.506 - lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
1.507 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1.508 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1.509 fi
1.510
1.511 @@ -1460,18 +1593,6 @@
1.512 dynamic_linker='NetBSD ld.elf_so'
1.513 ;;
1.514
1.515 -knetbsd*-gnu)
1.516 - version_type=linux
1.517 - need_lib_prefix=no
1.518 - need_version=no
1.519 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.520 - soname_spec='${libname}${release}${shared_ext}$major'
1.521 - shlibpath_var=LD_LIBRARY_PATH
1.522 - shlibpath_overrides_runpath=no
1.523 - hardcode_into_libs=yes
1.524 - dynamic_linker='GNU ld.so'
1.525 - ;;
1.526 -
1.527 netbsd*)
1.528 version_type=sunos
1.529 need_lib_prefix=no
1.530 @@ -1509,8 +1630,13 @@
1.531
1.532 openbsd*)
1.533 version_type=sunos
1.534 + sys_lib_dlsearch_path_spec="/usr/lib"
1.535 need_lib_prefix=no
1.536 - need_version=yes
1.537 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1.538 + case $host_os in
1.539 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1.540 + *) need_version=no ;;
1.541 + esac
1.542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.544 shlibpath_var=LD_LIBRARY_PATH
1.545 @@ -1548,13 +1674,6 @@
1.546 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1.547 ;;
1.548
1.549 -sco3.2v5*)
1.550 - version_type=osf
1.551 - soname_spec='${libname}${release}${shared_ext}$major'
1.552 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.553 - shlibpath_var=LD_LIBRARY_PATH
1.554 - ;;
1.555 -
1.556 solaris*)
1.557 version_type=linux
1.558 need_lib_prefix=no
1.559 @@ -1580,7 +1699,7 @@
1.560 need_version=yes
1.561 ;;
1.562
1.563 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.564 +sysv4 | sysv4.3*)
1.565 version_type=linux
1.566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.567 soname_spec='${libname}${release}${shared_ext}$major'
1.568 @@ -1613,6 +1732,29 @@
1.569 fi
1.570 ;;
1.571
1.572 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.573 + version_type=freebsd-elf
1.574 + need_lib_prefix=no
1.575 + need_version=no
1.576 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1.577 + soname_spec='${libname}${release}${shared_ext}$major'
1.578 + shlibpath_var=LD_LIBRARY_PATH
1.579 + hardcode_into_libs=yes
1.580 + if test "$with_gnu_ld" = yes; then
1.581 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1.582 + shlibpath_overrides_runpath=no
1.583 + else
1.584 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1.585 + shlibpath_overrides_runpath=yes
1.586 + case $host_os in
1.587 + sco3.2v5*)
1.588 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1.589 + ;;
1.590 + esac
1.591 + fi
1.592 + sys_lib_dlsearch_path_spec='/usr/lib'
1.593 + ;;
1.594 +
1.595 uts4*)
1.596 version_type=linux
1.597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.598 @@ -1626,6 +1768,11 @@
1.599 esac
1.600 AC_MSG_RESULT([$dynamic_linker])
1.601 test "$dynamic_linker" = no && can_build_shared=no
1.602 +
1.603 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.604 +if test "$GCC" = yes; then
1.605 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.606 +fi
1.607 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1.608
1.609
1.610 @@ -1650,6 +1797,9 @@
1.611 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1.612 fi
1.613 fi
1.614 + if test -z "$LTCFLAGS"; then
1.615 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1.616 + fi
1.617
1.618 # Extract list of available tagged configurations in $ofile.
1.619 # Note that this assumes the entire list is on one line.
1.620 @@ -1676,7 +1826,9 @@
1.621
1.622 case $tagname in
1.623 CXX)
1.624 - if test -n "$CXX" && test "X$CXX" != "Xno"; then
1.625 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1.626 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1.627 + (test "X$CXX" != "Xg++"))) ; then
1.628 AC_LIBTOOL_LANG_CXX_CONFIG
1.629 else
1.630 tagname=""
1.631 @@ -1738,7 +1890,7 @@
1.632
1.633 # AC_LIBTOOL_WIN32_DLL
1.634 # --------------------
1.635 -# declare package support for building win32 dll's
1.636 +# declare package support for building win32 DLLs
1.637 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1.638 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1.639 ])# AC_LIBTOOL_WIN32_DLL
1.640 @@ -1776,7 +1928,7 @@
1.641
1.642 # AC_DISABLE_SHARED
1.643 # -----------------
1.644 -#- set the default shared flag to --disable-shared
1.645 +# set the default shared flag to --disable-shared
1.646 AC_DEFUN([AC_DISABLE_SHARED],
1.647 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1.648 AC_ENABLE_SHARED(no)
1.649 @@ -1912,7 +2064,7 @@
1.650 if test -n "$file_magic_test_file"; then
1.651 case $deplibs_check_method in
1.652 "file_magic "*)
1.653 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1.654 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.655 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1.656 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1.657 $EGREP "$file_magic_regex" > /dev/null; then
1.658 @@ -2022,7 +2174,7 @@
1.659 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.660 lt_cv_path_LD="$ac_dir/$ac_prog"
1.661 # Check to see if the program is GNU ld. I'd rather use --version,
1.662 - # but apparently some GNU ld's only accept -v.
1.663 + # but apparently some variants of GNU ld only accept -v.
1.664 # Break only if it was the GNU/non-GNU ld that we prefer.
1.665 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1.666 *GNU* | *'with BFD'*)
1.667 @@ -2054,7 +2206,7 @@
1.668 AC_DEFUN([AC_PROG_LD_GNU],
1.669 [AC_REQUIRE([AC_PROG_EGREP])dnl
1.670 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
1.671 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1.672 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
1.673 case `$LD -v 2>&1 </dev/null` in
1.674 *GNU* | *'with BFD'*)
1.675 lt_cv_prog_gnu_ld=yes
1.676 @@ -2081,6 +2233,15 @@
1.677 *) reload_flag=" $reload_flag" ;;
1.678 esac
1.679 reload_cmds='$LD$reload_flag -o $output$reload_objs'
1.680 +case $host_os in
1.681 + darwin*)
1.682 + if test "$GCC" = yes; then
1.683 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
1.684 + else
1.685 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
1.686 + fi
1.687 + ;;
1.688 +esac
1.689 ])# AC_PROG_LD_RELOAD_FLAG
1.690
1.691
1.692 @@ -2114,7 +2275,7 @@
1.693 lt_cv_deplibs_check_method=pass_all
1.694 ;;
1.695
1.696 -bsdi4*)
1.697 +bsdi[[45]]*)
1.698 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
1.699 lt_cv_file_magic_cmd='/usr/bin/file -L'
1.700 lt_cv_file_magic_test_file=/shlib/libc.so
1.701 @@ -2137,13 +2298,13 @@
1.702 lt_cv_deplibs_check_method=pass_all
1.703 ;;
1.704
1.705 -freebsd* | kfreebsd*-gnu)
1.706 +freebsd* | dragonfly*)
1.707 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.708 case $host_cpu in
1.709 i*86 )
1.710 # Not sure whether the presence of OpenBSD here was a mistake.
1.711 # Let's accept both of them until this is cleared up.
1.712 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
1.713 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
1.714 lt_cv_file_magic_cmd=/usr/bin/file
1.715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.716 ;;
1.717 @@ -2159,7 +2320,7 @@
1.718
1.719 hpux10.20* | hpux11*)
1.720 lt_cv_file_magic_cmd=/usr/bin/file
1.721 - case "$host_cpu" in
1.722 + case $host_cpu in
1.723 ia64*)
1.724 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
1.725 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1.726 @@ -2175,6 +2336,11 @@
1.727 esac
1.728 ;;
1.729
1.730 +interix3*)
1.731 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
1.732 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
1.733 + ;;
1.734 +
1.735 irix5* | irix6* | nonstopux*)
1.736 case $LD in
1.737 *-32|*"-32 ") libmagic=32-bit;;
1.738 @@ -2186,11 +2352,11 @@
1.739 ;;
1.740
1.741 # This must be Linux ELF.
1.742 -linux*)
1.743 +linux* | k*bsd*-gnu)
1.744 lt_cv_deplibs_check_method=pass_all
1.745 ;;
1.746
1.747 -netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
1.748 +netbsd* | netbsdelf*-gnu)
1.749 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.750 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1.751 else
1.752 @@ -2209,12 +2375,10 @@
1.753 ;;
1.754
1.755 openbsd*)
1.756 - lt_cv_file_magic_cmd=/usr/bin/file
1.757 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.759 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
1.760 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
1.761 else
1.762 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1.763 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1.764 fi
1.765 ;;
1.766
1.767 @@ -2222,15 +2386,11 @@
1.768 lt_cv_deplibs_check_method=pass_all
1.769 ;;
1.770
1.771 -sco3.2v5*)
1.772 - lt_cv_deplibs_check_method=pass_all
1.773 - ;;
1.774 -
1.775 solaris*)
1.776 lt_cv_deplibs_check_method=pass_all
1.777 ;;
1.778
1.779 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.780 +sysv4 | sysv4.3*)
1.781 case $host_vendor in
1.782 motorola)
1.783 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
1.784 @@ -2251,10 +2411,13 @@
1.785 siemens)
1.786 lt_cv_deplibs_check_method=pass_all
1.787 ;;
1.788 + pc)
1.789 + lt_cv_deplibs_check_method=pass_all
1.790 + ;;
1.791 esac
1.792 ;;
1.793
1.794 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
1.795 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.796 lt_cv_deplibs_check_method=pass_all
1.797 ;;
1.798 esac
1.799 @@ -2274,36 +2437,43 @@
1.800 # Let the user override the test.
1.801 lt_cv_path_NM="$NM"
1.802 else
1.803 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.804 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1.805 - IFS="$lt_save_ifs"
1.806 - test -z "$ac_dir" && ac_dir=.
1.807 - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
1.808 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1.809 - # Check to see if the nm accepts a BSD-compat flag.
1.810 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1.811 - # nm: unknown option "B" ignored
1.812 - # Tru64's nm complains that /dev/null is an invalid object file
1.813 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1.814 - */dev/null* | *'Invalid file or object type'*)
1.815 - lt_cv_path_NM="$tmp_nm -B"
1.816 - break
1.817 - ;;
1.818 - *)
1.819 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1.820 - */dev/null*)
1.821 - lt_cv_path_NM="$tmp_nm -p"
1.822 + lt_nm_to_check="${ac_tool_prefix}nm"
1.823 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
1.824 + lt_nm_to_check="$lt_nm_to_check nm"
1.825 + fi
1.826 + for lt_tmp_nm in $lt_nm_to_check; do
1.827 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.828 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1.829 + IFS="$lt_save_ifs"
1.830 + test -z "$ac_dir" && ac_dir=.
1.831 + tmp_nm="$ac_dir/$lt_tmp_nm"
1.832 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1.833 + # Check to see if the nm accepts a BSD-compat flag.
1.834 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1.835 + # nm: unknown option "B" ignored
1.836 + # Tru64's nm complains that /dev/null is an invalid object file
1.837 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1.838 + */dev/null* | *'Invalid file or object type'*)
1.839 + lt_cv_path_NM="$tmp_nm -B"
1.840 break
1.841 ;;
1.842 *)
1.843 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.844 - continue # so that we can try to find one that supports BSD flags
1.845 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1.846 + */dev/null*)
1.847 + lt_cv_path_NM="$tmp_nm -p"
1.848 + break
1.849 + ;;
1.850 + *)
1.851 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.852 + continue # so that we can try to find one that supports BSD flags
1.853 + ;;
1.854 + esac
1.855 ;;
1.856 esac
1.857 - esac
1.858 - fi
1.859 + fi
1.860 + done
1.861 + IFS="$lt_save_ifs"
1.862 done
1.863 - IFS="$lt_save_ifs"
1.864 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.865 fi])
1.866 NM="$lt_cv_path_NM"
1.867 @@ -2335,13 +2505,13 @@
1.868 # -----------------------------------
1.869 # sets LIBLTDL to the link flags for the libltdl convenience library and
1.870 # LTDLINCL to the include flags for the libltdl header and adds
1.871 -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
1.872 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
1.873 -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
1.874 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
1.875 -# '${top_srcdir}/' (note the single quotes!). If your package is not
1.876 -# flat and you're not using automake, define top_builddir and
1.877 -# top_srcdir appropriately in the Makefiles.
1.878 +# --enable-ltdl-convenience to the configure arguments. Note that
1.879 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
1.880 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
1.881 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
1.882 +# (note the single quotes!). If your package is not flat and you're not
1.883 +# using automake, define top_builddir and top_srcdir appropriately in
1.884 +# the Makefiles.
1.885 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
1.886 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1.887 case $enable_ltdl_convenience in
1.888 @@ -2360,13 +2530,13 @@
1.889 # -----------------------------------
1.890 # sets LIBLTDL to the link flags for the libltdl installable library and
1.891 # LTDLINCL to the include flags for the libltdl header and adds
1.892 -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
1.893 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
1.894 -# DIRECTORY is not provided and an installed libltdl is not found, it is
1.895 -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
1.896 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
1.897 -# quotes!). If your package is not flat and you're not using automake,
1.898 -# define top_builddir and top_srcdir appropriately in the Makefiles.
1.899 +# --enable-ltdl-install to the configure arguments. Note that
1.900 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
1.901 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
1.902 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
1.903 +# '${top_srcdir}/' (note the single quotes!). If your package is not
1.904 +# flat and you're not using automake, define top_builddir and top_srcdir
1.905 +# appropriately in the Makefiles.
1.906 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1.907 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
1.908 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1.909 @@ -2404,10 +2574,21 @@
1.910 # ---------------
1.911 AC_DEFUN([_LT_AC_LANG_CXX],
1.912 [AC_REQUIRE([AC_PROG_CXX])
1.913 -AC_REQUIRE([AC_PROG_CXXCPP])
1.914 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1.915 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
1.916 ])# _LT_AC_LANG_CXX
1.917
1.918 +# _LT_AC_PROG_CXXCPP
1.919 +# ------------------
1.920 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
1.921 +[
1.922 +AC_REQUIRE([AC_PROG_CXX])
1.923 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1.924 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1.925 + (test "X$CXX" != "Xg++"))) ; then
1.926 + AC_PROG_CXXCPP
1.927 +fi
1.928 +])# _LT_AC_PROG_CXXCPP
1.929
1.930 # AC_LIBTOOL_F77
1.931 # --------------
1.932 @@ -2447,7 +2628,7 @@
1.933
1.934
1.935 # AC_LIBTOOL_RC
1.936 -# --------------
1.937 +# -------------
1.938 # enable support for Windows resource files
1.939 AC_DEFUN([AC_LIBTOOL_RC],
1.940 [AC_REQUIRE([LT_AC_PROG_RC])
1.941 @@ -2480,36 +2661,9 @@
1.942
1.943 _LT_AC_SYS_COMPILER
1.944
1.945 -#
1.946 -# Check for any special shared library compilation flags.
1.947 -#
1.948 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
1.949 -if test "$GCC" = no; then
1.950 - case $host_os in
1.951 - sco3.2v5*)
1.952 - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
1.953 - ;;
1.954 - esac
1.955 -fi
1.956 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
1.957 - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
1.958 - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
1.959 - else
1.960 - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
1.961 - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
1.962 - fi
1.963 -fi
1.964 -
1.965 -
1.966 -#
1.967 -# Check to make sure the static flag actually works.
1.968 -#
1.969 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
1.970 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
1.971 - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
1.972 - [],
1.973 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
1.974 -
1.975 +# save warnings/boilerplate of simple test code
1.976 +_LT_COMPILER_BOILERPLATE
1.977 +_LT_LINKER_BOILERPLATE
1.978
1.979 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
1.980 AC_LIBTOOL_PROG_COMPILER_PIC($1)
1.981 @@ -2519,9 +2673,9 @@
1.982 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1.983 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1.984 AC_LIBTOOL_SYS_LIB_STRIP
1.985 -AC_LIBTOOL_DLOPEN_SELF($1)
1.986 -
1.987 -# Report which librarie types wil actually be built
1.988 +AC_LIBTOOL_DLOPEN_SELF
1.989 +
1.990 +# Report which library types will actually be built
1.991 AC_MSG_CHECKING([if libtool supports shared libraries])
1.992 AC_MSG_RESULT([$can_build_shared])
1.993
1.994 @@ -2530,7 +2684,7 @@
1.995
1.996 # On AIX, shared libraries and static libraries use the same namespace, and
1.997 # are all built from PIC.
1.998 -case "$host_os" in
1.999 +case $host_os in
1.1000 aix3*)
1.1001 test "$enable_shared" = yes && enable_static=no
1.1002 if test -n "$RANLIB"; then
1.1003 @@ -2543,43 +2697,6 @@
1.1004 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1.1005 test "$enable_shared" = yes && enable_static=no
1.1006 fi
1.1007 - ;;
1.1008 - darwin* | rhapsody*)
1.1009 - if test "$GCC" = yes; then
1.1010 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.1011 - case "$host_os" in
1.1012 - rhapsody* | darwin1.[[012]])
1.1013 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
1.1014 - ;;
1.1015 - *) # Darwin 1.3 on
1.1016 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1.1017 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1.1018 - else
1.1019 - case ${MACOSX_DEPLOYMENT_TARGET} in
1.1020 - 10.[[012]])
1.1021 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1.1022 - ;;
1.1023 - 10.*)
1.1024 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
1.1025 - ;;
1.1026 - esac
1.1027 - fi
1.1028 - ;;
1.1029 - esac
1.1030 - output_verbose_link_cmd='echo'
1.1031 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
1.1032 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.1033 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1.1034 - _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}-symbols.expsym ${lib}'
1.1035 - _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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1036 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.1037 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1.1038 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1.1039 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1.1040 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.1041 - else
1.1042 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1043 - fi
1.1044 ;;
1.1045 esac
1.1046 AC_MSG_RESULT([$enable_shared])
1.1047 @@ -2605,7 +2722,7 @@
1.1048 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
1.1049 [AC_LANG_PUSH(C++)
1.1050 AC_REQUIRE([AC_PROG_CXX])
1.1051 -AC_REQUIRE([AC_PROG_CXXCPP])
1.1052 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1.1053
1.1054 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.1055 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
1.1056 @@ -2617,6 +2734,7 @@
1.1057 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
1.1058 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1.1059 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
1.1060 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1.1061 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
1.1062 _LT_AC_TAGVAR(module_cmds, $1)=
1.1063 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
1.1064 @@ -2634,7 +2752,7 @@
1.1065 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
1.1066
1.1067 # Source file extension for C++ test sources.
1.1068 -ac_ext=cc
1.1069 +ac_ext=cpp
1.1070
1.1071 # Object file extension for compiled C++ test sources.
1.1072 objext=o
1.1073 @@ -2644,11 +2762,15 @@
1.1074 lt_simple_compile_test_code="int some_variable = 0;\n"
1.1075
1.1076 # Code to be used in simple link tests
1.1077 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
1.1078 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
1.1079
1.1080 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.1081 _LT_AC_SYS_COMPILER
1.1082
1.1083 +# save warnings/boilerplate of simple test code
1.1084 +_LT_COMPILER_BOILERPLATE
1.1085 +_LT_LINKER_BOILERPLATE
1.1086 +
1.1087 # Allow CC to be a program name with arguments.
1.1088 lt_save_CC=$CC
1.1089 lt_save_LD=$LD
1.1090 @@ -2659,18 +2781,18 @@
1.1091 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
1.1092 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
1.1093 else
1.1094 - unset lt_cv_prog_gnu_ld
1.1095 + $as_unset lt_cv_prog_gnu_ld
1.1096 fi
1.1097 if test -n "${lt_cv_path_LDCXX+set}"; then
1.1098 lt_cv_path_LD=$lt_cv_path_LDCXX
1.1099 else
1.1100 - unset lt_cv_path_LD
1.1101 + $as_unset lt_cv_path_LD
1.1102 fi
1.1103 test -z "${LDCXX+set}" || LD=$LDCXX
1.1104 CC=${CXX-"c++"}
1.1105 compiler=$CC
1.1106 _LT_AC_TAGVAR(compiler, $1)=$CC
1.1107 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
1.1108 +_LT_CC_BASENAME([$compiler])
1.1109
1.1110 # We don't want -fno-exception wen compiling C++ code, so set the
1.1111 # no_builtin_flag separately
1.1112 @@ -2759,6 +2881,7 @@
1.1113 ;;
1.1114 esac
1.1115 done
1.1116 + ;;
1.1117 esac
1.1118
1.1119 exp_sym_flag='-bexport'
1.1120 @@ -2777,7 +2900,7 @@
1.1121 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.1122
1.1123 if test "$GXX" = yes; then
1.1124 - case $host_os in aix4.[012]|aix4.[012].*)
1.1125 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
1.1126 # We only want to do this on AIX 4.2 and lower, the check
1.1127 # below for broken collect2 doesn't work under 4.3+
1.1128 collect2name=`${CC} -print-prog-name=collect2`
1.1129 @@ -2796,8 +2919,12 @@
1.1130 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.1131 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1.1132 fi
1.1133 + ;;
1.1134 esac
1.1135 shared_flag='-shared'
1.1136 + if test "$aix_use_runtimelinking" = yes; then
1.1137 + shared_flag="$shared_flag "'${wl}-G'
1.1138 + fi
1.1139 else
1.1140 # not using gcc
1.1141 if test "$host_cpu" = ia64; then
1.1142 @@ -2824,12 +2951,12 @@
1.1143 _LT_AC_SYS_LIBPATH_AIX
1.1144 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1145
1.1146 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.1147 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.1148 else
1.1149 if test "$host_cpu" = ia64; then
1.1150 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
1.1151 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
1.1152 - _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"
1.1153 + _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"
1.1154 else
1.1155 # Determine the default libpath from the value encoded in an empty executable.
1.1156 _LT_AC_SYS_LIBPATH_AIX
1.1157 @@ -2838,16 +2965,26 @@
1.1158 # -berok will link without error, but may produce a broken library.
1.1159 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
1.1160 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
1.1161 - # -bexpall does not export symbols beginning with underscore (_)
1.1162 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1.1163 # Exported symbols can be pulled into shared objects from archives
1.1164 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
1.1165 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
1.1166 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1.1167 - # This is similar to how AIX traditionally builds it's shared libraries.
1.1168 - _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'
1.1169 + # This is similar to how AIX traditionally builds its shared libraries.
1.1170 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$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'
1.1171 fi
1.1172 fi
1.1173 ;;
1.1174 +
1.1175 + beos*)
1.1176 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.1177 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1.1178 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1.1179 + # support --undefined. This deserves some investigation. FIXME
1.1180 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1181 + else
1.1182 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1183 + fi
1.1184 + ;;
1.1185 +
1.1186 chorus*)
1.1187 case $cc_basename in
1.1188 *)
1.1189 @@ -2866,7 +3003,7 @@
1.1190 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1.1191
1.1192 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1193 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1.1194 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1195 # If the export-symbols file already is a .def file (1st line
1.1196 # is EXPORTS), use it as is; otherwise, prepend...
1.1197 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1.1198 @@ -2875,70 +3012,81 @@
1.1199 echo EXPORTS > $output_objdir/$soname.def;
1.1200 cat $export_symbols >> $output_objdir/$soname.def;
1.1201 fi~
1.1202 - $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'
1.1203 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1204 else
1.1205 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1206 fi
1.1207 ;;
1.1208 -
1.1209 - darwin* | rhapsody*)
1.1210 - if test "$GXX" = yes; then
1.1211 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.1212 - case "$host_os" in
1.1213 - rhapsody* | darwin1.[[012]])
1.1214 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
1.1215 - ;;
1.1216 - *) # Darwin 1.3 on
1.1217 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1.1218 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1.1219 + darwin* | rhapsody*)
1.1220 + case $host_os in
1.1221 + rhapsody* | darwin1.[[012]])
1.1222 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
1.1223 + ;;
1.1224 + *) # Darwin 1.3 on
1.1225 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1.1226 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.1227 + else
1.1228 + case ${MACOSX_DEPLOYMENT_TARGET} in
1.1229 + 10.[[012]])
1.1230 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.1231 + ;;
1.1232 + 10.*)
1.1233 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
1.1234 + ;;
1.1235 + esac
1.1236 + fi
1.1237 + ;;
1.1238 + esac
1.1239 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.1240 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.1241 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1.1242 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1.1243 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
1.1244 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.1245 +
1.1246 + if test "$GXX" = yes ; then
1.1247 + lt_int_apple_cc_single_mod=no
1.1248 + output_verbose_link_cmd='echo'
1.1249 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
1.1250 + lt_int_apple_cc_single_mod=yes
1.1251 + fi
1.1252 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.1253 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.1254 else
1.1255 - case ${MACOSX_DEPLOYMENT_TARGET} in
1.1256 - 10.[[012]])
1.1257 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1.1258 - ;;
1.1259 - 10.*)
1.1260 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
1.1261 - ;;
1.1262 - esac
1.1263 + _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 $verstring'
1.1264 + fi
1.1265 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.1266 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.1267 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.1268 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1269 + else
1.1270 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1271 + fi
1.1272 + _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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1273 + else
1.1274 + case $cc_basename in
1.1275 + xlc*)
1.1276 + output_verbose_link_cmd='echo'
1.1277 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
1.1278 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.1279 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.1280 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1281 + _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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1282 + ;;
1.1283 + *)
1.1284 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1285 + ;;
1.1286 + esac
1.1287 fi
1.1288 - ;;
1.1289 - esac
1.1290 - lt_int_apple_cc_single_mod=no
1.1291 - output_verbose_link_cmd='echo'
1.1292 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
1.1293 - lt_int_apple_cc_single_mod=yes
1.1294 - fi
1.1295 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.1296 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.1297 - else
1.1298 - _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/$soname $verstring'
1.1299 - fi
1.1300 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.1301 -
1.1302 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1.1303 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.1304 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1305 - else
1.1306 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$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}'
1.1307 - fi
1.1308 - _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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1309 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.1310 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1.1311 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1.1312 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1.1313 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.1314 - else
1.1315 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1316 - fi
1.1317 - ;;
1.1318 + ;;
1.1319
1.1320 dgux*)
1.1321 case $cc_basename in
1.1322 - ec++)
1.1323 + ec++*)
1.1324 # FIXME: insert proper C++ library support
1.1325 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1326 ;;
1.1327 - ghcx)
1.1328 + ghcx*)
1.1329 # Green Hills C++ Compiler
1.1330 # FIXME: insert proper C++ library support
1.1331 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1332 @@ -2949,14 +3097,14 @@
1.1333 ;;
1.1334 esac
1.1335 ;;
1.1336 - freebsd[12]*)
1.1337 + freebsd[[12]]*)
1.1338 # C++ shared libraries reported to be fairly broken before switch to ELF
1.1339 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1340 ;;
1.1341 freebsd-elf*)
1.1342 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.1343 ;;
1.1344 - freebsd* | kfreebsd*-gnu)
1.1345 + freebsd* | dragonfly*)
1.1346 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1.1347 # conventions
1.1348 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
1.1349 @@ -2973,11 +3121,11 @@
1.1350 # location of the library.
1.1351
1.1352 case $cc_basename in
1.1353 - CC)
1.1354 + CC*)
1.1355 # FIXME: insert proper C++ library support
1.1356 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1357 ;;
1.1358 - aCC)
1.1359 + aCC*)
1.1360 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.1361 # Commands to make compiler produce verbose output that lists
1.1362 # what "hidden" libraries, object files and flags are used when
1.1363 @@ -2987,7 +3135,7 @@
1.1364 # explicitly linking system object files so we need to strip them
1.1365 # from the output so that they don't get included in the library
1.1366 # dependencies.
1.1367 - 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'
1.1368 + 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'
1.1369 ;;
1.1370 *)
1.1371 if test "$GXX" = yes; then
1.1372 @@ -3001,34 +3149,23 @@
1.1373 ;;
1.1374 hpux10*|hpux11*)
1.1375 if test $with_gnu_ld = no; then
1.1376 - case "$host_cpu" in
1.1377 - hppa*64*)
1.1378 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.1379 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.1380 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.1381 +
1.1382 + case $host_cpu in
1.1383 + hppa*64*|ia64*)
1.1384 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1.1385 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.1386 - ;;
1.1387 - ia64*)
1.1388 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.1389 ;;
1.1390 *)
1.1391 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.1392 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.1393 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.1394 ;;
1.1395 esac
1.1396 fi
1.1397 - case "$host_cpu" in
1.1398 - hppa*64*)
1.1399 + case $host_cpu in
1.1400 + hppa*64*|ia64*)
1.1401 _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.1402 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.1403 ;;
1.1404 - ia64*)
1.1405 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.1406 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.1407 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
1.1408 - # but as the default
1.1409 - # location of the library.
1.1410 - ;;
1.1411 *)
1.1412 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.1413 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
1.1414 @@ -3038,14 +3175,17 @@
1.1415 esac
1.1416
1.1417 case $cc_basename in
1.1418 - CC)
1.1419 + CC*)
1.1420 # FIXME: insert proper C++ library support
1.1421 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1422 ;;
1.1423 - aCC)
1.1424 - case "$host_cpu" in
1.1425 - hppa*64*|ia64*)
1.1426 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1.1427 + aCC*)
1.1428 + case $host_cpu in
1.1429 + hppa*64*)
1.1430 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1431 + ;;
1.1432 + ia64*)
1.1433 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1434 ;;
1.1435 *)
1.1436 _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'
1.1437 @@ -3064,9 +3204,12 @@
1.1438 *)
1.1439 if test "$GXX" = yes; then
1.1440 if test $with_gnu_ld = no; then
1.1441 - case "$host_cpu" in
1.1442 - ia64*|hppa*64*)
1.1443 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1.1444 + case $host_cpu in
1.1445 + hppa*64*)
1.1446 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1447 + ;;
1.1448 + ia64*)
1.1449 + _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'
1.1450 ;;
1.1451 *)
1.1452 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1453 @@ -3080,11 +3223,25 @@
1.1454 ;;
1.1455 esac
1.1456 ;;
1.1457 + interix3*)
1.1458 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.1459 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.1460 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.1461 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.1462 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1.1463 + # Instead, shared libraries are loaded at an image base (0x10000000 by
1.1464 + # default) and relocated if they conflict, which is a slow very memory
1.1465 + # consuming and fragmenting process. To avoid this, we pick a random,
1.1466 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1.1467 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.1468 + _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'
1.1469 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_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'
1.1470 + ;;
1.1471 irix5* | irix6*)
1.1472 case $cc_basename in
1.1473 - CC)
1.1474 + CC*)
1.1475 # SGI C++
1.1476 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
1.1477 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.1478
1.1479 # Archives containing C++ object files must be created using
1.1480 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
1.1481 @@ -3095,7 +3252,7 @@
1.1482 *)
1.1483 if test "$GXX" = yes; then
1.1484 if test "$with_gnu_ld" = no; then
1.1485 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
1.1486 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.1487 else
1.1488 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
1.1489 fi
1.1490 @@ -3106,9 +3263,9 @@
1.1491 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.1492 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.1493 ;;
1.1494 - linux*)
1.1495 + linux* | k*bsd*-gnu)
1.1496 case $cc_basename in
1.1497 - KCC)
1.1498 + KCC*)
1.1499 # Kuck and Associates, Inc. (KAI) C++ Compiler
1.1500
1.1501 # KCC will only create a shared library if the output file
1.1502 @@ -3133,17 +3290,41 @@
1.1503 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
1.1504 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
1.1505 ;;
1.1506 - icpc)
1.1507 + icpc*)
1.1508 # Intel C++
1.1509 with_gnu_ld=yes
1.1510 + # version 8.0 and above of icpc choke on multiply defined symbols
1.1511 + # if we add $predep_objects and $postdep_objects, however 7.1 and
1.1512 + # earlier do not add the objects themselves.
1.1513 + case `$CC -V 2>&1` in
1.1514 + *"Version 7."*)
1.1515 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1516 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.1517 + ;;
1.1518 + *) # Version 8.0 or newer
1.1519 + tmp_idyn=
1.1520 + case $host_cpu in
1.1521 + ia64*) tmp_idyn=' -i_dynamic';;
1.1522 + esac
1.1523 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1524 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.1525 + ;;
1.1526 + esac
1.1527 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.1528 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1529 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.1530 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.1531 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1.1532 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
1.1533 ;;
1.1534 - cxx)
1.1535 + pgCC*)
1.1536 + # Portland Group C++ compiler
1.1537 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1.1538 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
1.1539 +
1.1540 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
1.1541 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1.1542 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.1543 + ;;
1.1544 + cxx*)
1.1545 # Compaq C++
1.1546 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1547 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
1.1548 @@ -3174,7 +3355,7 @@
1.1549 ;;
1.1550 mvs*)
1.1551 case $cc_basename in
1.1552 - cxx)
1.1553 + cxx*)
1.1554 # FIXME: insert proper C++ library support
1.1555 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1556 ;;
1.1557 @@ -3184,7 +3365,7 @@
1.1558 ;;
1.1559 esac
1.1560 ;;
1.1561 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
1.1562 + netbsd* | netbsdelf*-gnu)
1.1563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.1564 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
1.1565 wlarc=
1.1566 @@ -3195,9 +3376,25 @@
1.1567 # Workaround some broken pre-1.5 toolchains
1.1568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
1.1569 ;;
1.1570 + openbsd2*)
1.1571 + # C++ shared libraries are fairly broken
1.1572 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1573 + ;;
1.1574 + openbsd*)
1.1575 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.1576 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.1577 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1.1578 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.1579 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.1580 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
1.1581 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.1582 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1.1583 + fi
1.1584 + output_verbose_link_cmd='echo'
1.1585 + ;;
1.1586 osf3*)
1.1587 case $cc_basename in
1.1588 - KCC)
1.1589 + KCC*)
1.1590 # Kuck and Associates, Inc. (KAI) C++ Compiler
1.1591
1.1592 # KCC will only create a shared library if the output file
1.1593 @@ -3213,14 +3410,14 @@
1.1594 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
1.1595
1.1596 ;;
1.1597 - RCC)
1.1598 + RCC*)
1.1599 # Rational C++ 2.4.1
1.1600 # FIXME: insert proper C++ library support
1.1601 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1602 ;;
1.1603 - cxx)
1.1604 + cxx*)
1.1605 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
1.1606 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
1.1607 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.1608
1.1609 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.1610 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.1611 @@ -3238,7 +3435,7 @@
1.1612 *)
1.1613 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1.1614 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
1.1615 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
1.1616 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.1617
1.1618 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.1619 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.1620 @@ -3257,7 +3454,7 @@
1.1621 ;;
1.1622 osf4* | osf5*)
1.1623 case $cc_basename in
1.1624 - KCC)
1.1625 + KCC*)
1.1626 # Kuck and Associates, Inc. (KAI) C++ Compiler
1.1627
1.1628 # KCC will only create a shared library if the output file
1.1629 @@ -3272,17 +3469,17 @@
1.1630 # the KAI C++ compiler.
1.1631 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
1.1632 ;;
1.1633 - RCC)
1.1634 + RCC*)
1.1635 # Rational C++ 2.4.1
1.1636 # FIXME: insert proper C++ library support
1.1637 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1638 ;;
1.1639 - cxx)
1.1640 + cxx*)
1.1641 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
1.1642 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
1.1643 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.1644 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1.1645 echo "-hidden">> $lib.exp~
1.1646 - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
1.1647 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
1.1648 $rm $lib.exp'
1.1649
1.1650 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
1.1651 @@ -3301,7 +3498,7 @@
1.1652 *)
1.1653 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1.1654 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
1.1655 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_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'
1.1656 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_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 $lib'
1.1657
1.1658 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.1659 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.1660 @@ -3322,27 +3519,14 @@
1.1661 # FIXME: insert proper C++ library support
1.1662 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1663 ;;
1.1664 - sco*)
1.1665 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.1666 - case $cc_basename in
1.1667 - CC)
1.1668 - # FIXME: insert proper C++ library support
1.1669 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1670 - ;;
1.1671 - *)
1.1672 - # FIXME: insert proper C++ library support
1.1673 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1674 - ;;
1.1675 - esac
1.1676 - ;;
1.1677 sunos4*)
1.1678 case $cc_basename in
1.1679 - CC)
1.1680 + CC*)
1.1681 # Sun C++ 4.x
1.1682 # FIXME: insert proper C++ library support
1.1683 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1684 ;;
1.1685 - lcc)
1.1686 + lcc*)
1.1687 # Lucid
1.1688 # FIXME: insert proper C++ library support
1.1689 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1690 @@ -3355,36 +3539,33 @@
1.1691 ;;
1.1692 solaris*)
1.1693 case $cc_basename in
1.1694 - CC)
1.1695 + CC*)
1.1696 # Sun C++ 4.2, 5.x and Centerline C++
1.1697 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
1.1698 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
1.1699 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1700 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1701 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.1702 - $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'
1.1703 + $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'
1.1704
1.1705 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1.1706 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.1707 case $host_os in
1.1708 - solaris2.[0-5] | solaris2.[0-5].*) ;;
1.1709 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
1.1710 *)
1.1711 # The C++ compiler is used as linker so we must use $wl
1.1712 # flag to pass the commands to the underlying system
1.1713 - # linker.
1.1714 + # linker. We must also pass each convience library through
1.1715 + # to the system linker between allextract/defaultextract.
1.1716 + # The C++ compiler will combine linker options so we
1.1717 + # cannot just pass the convience library names through
1.1718 + # without $wl.
1.1719 # Supported since Solaris 2.6 (maybe 2.5.1?)
1.1720 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
1.1721 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
1.1722 ;;
1.1723 esac
1.1724 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.1725
1.1726 - # Commands to make compiler produce verbose output that lists
1.1727 - # what "hidden" libraries, object files and flags are used when
1.1728 - # linking a shared library.
1.1729 - #
1.1730 - # There doesn't appear to be a way to prevent this compiler from
1.1731 - # explicitly linking system object files so we need to strip them
1.1732 - # from the output so that they don't get included in the library
1.1733 - # dependencies.
1.1734 - 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.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.1735 + output_verbose_link_cmd='echo'
1.1736
1.1737 # Archives containing C++ object files must be created using
1.1738 # "CC -xar", where "CC" is the Sun C++ compiler. This is
1.1739 @@ -3392,7 +3573,7 @@
1.1740 # in the archive.
1.1741 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
1.1742 ;;
1.1743 - gcx)
1.1744 + gcx*)
1.1745 # Green Hills C++ Compiler
1.1746 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1.1747
1.1748 @@ -3430,12 +3611,63 @@
1.1749 ;;
1.1750 esac
1.1751 ;;
1.1752 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
1.1753 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
1.1754 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1.1755 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.1756 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.1757 + runpath_var='LD_RUN_PATH'
1.1758 +
1.1759 + case $cc_basename in
1.1760 + CC*)
1.1761 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1762 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1763 + ;;
1.1764 + *)
1.1765 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1766 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1767 + ;;
1.1768 + esac
1.1769 + ;;
1.1770 + sysv5* | sco3.2v5* | sco5v6*)
1.1771 + # Note: We can NOT use -z defs as we might desire, because we do not
1.1772 + # link with -lc, and that would cause any symbols used from libc to
1.1773 + # always be unresolved, which means just about no library would
1.1774 + # ever link correctly. If we're not using GNU ld we use -z text
1.1775 + # though, which does catch some bad symbols but isn't as heavy-handed
1.1776 + # as -z defs.
1.1777 + # For security reasons, it is highly recommended that you always
1.1778 + # use absolute paths for naming shared libraries, and exclude the
1.1779 + # DT_RUNPATH tag from executables and libraries. But doing so
1.1780 + # requires that you compile everything twice, which is a pain.
1.1781 + # So that behaviour is only enabled if SCOABSPATH is set to a
1.1782 + # non-empty value in the environment. Most likely only useful for
1.1783 + # creating official distributions of packages.
1.1784 + # This is a hack until libtool officially supports absolute path
1.1785 + # names for shared libraries.
1.1786 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1.1787 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
1.1788 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.1789 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.1790 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
1.1791 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
1.1792 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.1793 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
1.1794 + runpath_var='LD_RUN_PATH'
1.1795 +
1.1796 + case $cc_basename in
1.1797 + CC*)
1.1798 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1799 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1800 + ;;
1.1801 + *)
1.1802 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1803 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1804 + ;;
1.1805 + esac
1.1806 ;;
1.1807 tandem*)
1.1808 case $cc_basename in
1.1809 - NCC)
1.1810 + NCC*)
1.1811 # NonStop-UX NCC 3.20
1.1812 # FIXME: insert proper C++ library support
1.1813 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.1814 @@ -3468,8 +3700,6 @@
1.1815 AC_LIBTOOL_PROG_LD_SHLIBS($1)
1.1816 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1.1817 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1.1818 -AC_LIBTOOL_SYS_LIB_STRIP
1.1819 -AC_LIBTOOL_DLOPEN_SELF($1)
1.1820
1.1821 AC_LIBTOOL_CONFIG($1)
1.1822
1.1823 @@ -3487,7 +3717,7 @@
1.1824 ])# AC_LIBTOOL_LANG_CXX_CONFIG
1.1825
1.1826 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
1.1827 -# ------------------------
1.1828 +# ------------------------------------
1.1829 # Figure out "hidden" library dependencies from verbose
1.1830 # compiler output when linking a shared library.
1.1831 # Parse the compiler output and extract the necessary
1.1832 @@ -3541,7 +3771,7 @@
1.1833 # The `*' in the case matches for architectures that use `case' in
1.1834 # $output_verbose_cmd can trigger glob expansion during the loop
1.1835 # eval without this substitution.
1.1836 - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
1.1837 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
1.1838
1.1839 for p in `eval $output_verbose_link_cmd`; do
1.1840 case $p in
1.1841 @@ -3617,13 +3847,37 @@
1.1842
1.1843 $rm -f confest.$objext
1.1844
1.1845 +# PORTME: override above test on systems where it is broken
1.1846 +ifelse([$1],[CXX],
1.1847 +[case $host_os in
1.1848 +interix3*)
1.1849 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
1.1850 + # hack all around it, let's just trust "g++" to DTRT.
1.1851 + _LT_AC_TAGVAR(predep_objects,$1)=
1.1852 + _LT_AC_TAGVAR(postdep_objects,$1)=
1.1853 + _LT_AC_TAGVAR(postdeps,$1)=
1.1854 + ;;
1.1855 +
1.1856 +solaris*)
1.1857 + case $cc_basename in
1.1858 + CC*)
1.1859 + # Adding this requires a known-good setup of shared libraries for
1.1860 + # Sun compiler versions before 5.6, else PIC objects from an old
1.1861 + # archive will be linked into the output, leading to subtle bugs.
1.1862 + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
1.1863 + ;;
1.1864 + esac
1.1865 + ;;
1.1866 +esac
1.1867 +])
1.1868 +
1.1869 case " $_LT_AC_TAGVAR(postdeps, $1) " in
1.1870 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
1.1871 esac
1.1872 ])# AC_LIBTOOL_POSTDEP_PREDEP
1.1873
1.1874 # AC_LIBTOOL_LANG_F77_CONFIG
1.1875 -# ------------------------
1.1876 +# --------------------------
1.1877 # Ensure that the configuration vars for the C compiler are
1.1878 # suitably defined. Those variables are subsequently used by
1.1879 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1.1880 @@ -3667,12 +3921,16 @@
1.1881 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.1882 _LT_AC_SYS_COMPILER
1.1883
1.1884 +# save warnings/boilerplate of simple test code
1.1885 +_LT_COMPILER_BOILERPLATE
1.1886 +_LT_LINKER_BOILERPLATE
1.1887 +
1.1888 # Allow CC to be a program name with arguments.
1.1889 lt_save_CC="$CC"
1.1890 CC=${F77-"f77"}
1.1891 compiler=$CC
1.1892 _LT_AC_TAGVAR(compiler, $1)=$CC
1.1893 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
1.1894 +_LT_CC_BASENAME([$compiler])
1.1895
1.1896 AC_MSG_CHECKING([if libtool supports shared libraries])
1.1897 AC_MSG_RESULT([$can_build_shared])
1.1898 @@ -3682,7 +3940,7 @@
1.1899
1.1900 # On AIX, shared libraries and static libraries use the same namespace, and
1.1901 # are all built from PIC.
1.1902 -case "$host_os" in
1.1903 +case $host_os in
1.1904 aix3*)
1.1905 test "$enable_shared" = yes && enable_static=no
1.1906 if test -n "$RANLIB"; then
1.1907 @@ -3691,7 +3949,9 @@
1.1908 fi
1.1909 ;;
1.1910 aix4* | aix5*)
1.1911 - test "$enable_shared" = yes && enable_static=no
1.1912 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1.1913 + test "$enable_shared" = yes && enable_static=no
1.1914 + fi
1.1915 ;;
1.1916 esac
1.1917 AC_MSG_RESULT([$enable_shared])
1.1918 @@ -3701,8 +3961,6 @@
1.1919 test "$enable_shared" = yes || enable_static=yes
1.1920 AC_MSG_RESULT([$enable_static])
1.1921
1.1922 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
1.1923 -
1.1924 _LT_AC_TAGVAR(GCC, $1)="$G77"
1.1925 _LT_AC_TAGVAR(LD, $1)="$LD"
1.1926
1.1927 @@ -3712,8 +3970,6 @@
1.1928 AC_LIBTOOL_PROG_LD_SHLIBS($1)
1.1929 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1.1930 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1.1931 -AC_LIBTOOL_SYS_LIB_STRIP
1.1932 -
1.1933
1.1934 AC_LIBTOOL_CONFIG($1)
1.1935
1.1936 @@ -3742,20 +3998,27 @@
1.1937 lt_simple_compile_test_code="class foo {}\n"
1.1938
1.1939 # Code to be used in simple link tests
1.1940 -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
1.1941 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
1.1942
1.1943 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.1944 _LT_AC_SYS_COMPILER
1.1945
1.1946 +# save warnings/boilerplate of simple test code
1.1947 +_LT_COMPILER_BOILERPLATE
1.1948 +_LT_LINKER_BOILERPLATE
1.1949 +
1.1950 # Allow CC to be a program name with arguments.
1.1951 lt_save_CC="$CC"
1.1952 CC=${GCJ-"gcj"}
1.1953 compiler=$CC
1.1954 _LT_AC_TAGVAR(compiler, $1)=$CC
1.1955 +_LT_CC_BASENAME([$compiler])
1.1956
1.1957 # GCJ did not exist at the time GCC didn't implicitly link libc in.
1.1958 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.1959
1.1960 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
1.1961 +
1.1962 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
1.1963 AC_LIBTOOL_PROG_COMPILER_PIC($1)
1.1964 AC_LIBTOOL_PROG_CC_C_O($1)
1.1965 @@ -3763,8 +4026,6 @@
1.1966 AC_LIBTOOL_PROG_LD_SHLIBS($1)
1.1967 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1.1968 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1.1969 -AC_LIBTOOL_SYS_LIB_STRIP
1.1970 -AC_LIBTOOL_DLOPEN_SELF($1)
1.1971
1.1972 AC_LIBTOOL_CONFIG($1)
1.1973
1.1974 @@ -3774,7 +4035,7 @@
1.1975
1.1976
1.1977 # AC_LIBTOOL_LANG_RC_CONFIG
1.1978 -# --------------------------
1.1979 +# -------------------------
1.1980 # Ensure that the configuration vars for the Windows resource compiler are
1.1981 # suitably defined. Those variables are subsequently used by
1.1982 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1.1983 @@ -3798,11 +4059,16 @@
1.1984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.1985 _LT_AC_SYS_COMPILER
1.1986
1.1987 +# save warnings/boilerplate of simple test code
1.1988 +_LT_COMPILER_BOILERPLATE
1.1989 +_LT_LINKER_BOILERPLATE
1.1990 +
1.1991 # Allow CC to be a program name with arguments.
1.1992 lt_save_CC="$CC"
1.1993 CC=${RC-"windres"}
1.1994 compiler=$CC
1.1995 _LT_AC_TAGVAR(compiler, $1)=$CC
1.1996 +_LT_CC_BASENAME([$compiler])
1.1997 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1.1998
1.1999 AC_LIBTOOL_CONFIG($1)
1.2000 @@ -3832,7 +4098,7 @@
1.2001 # Now quote all the things that may contain metacharacters while being
1.2002 # careful not to overquote the AC_SUBSTed values. We take copies of the
1.2003 # variables and quote the copies for generation of the libtool script.
1.2004 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
1.2005 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1.2006 SED SHELL STRIP \
1.2007 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1.2008 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1.2009 @@ -3938,7 +4204,7 @@
1.2010 #
1.2011 # You should have received a copy of the GNU General Public License
1.2012 # along with this program; if not, write to the Free Software
1.2013 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1.2014 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1.2015 #
1.2016 # As a special exception to the GNU General Public License, if you
1.2017 # distribute this file as part of a program that contains a
1.2018 @@ -3949,11 +4215,11 @@
1.2019 SED=$lt_SED
1.2020
1.2021 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
1.2022 -Xsed="$SED -e s/^X//"
1.2023 +Xsed="$SED -e 1s/^X//"
1.2024
1.2025 # The HP-UX ksh and POSIX shell print the target directory to stdout
1.2026 # if CDPATH is set.
1.2027 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
1.2028 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.2029
1.2030 # The names of the tagged configurations supported by this script.
1.2031 available_tags=
1.2032 @@ -3984,6 +4250,12 @@
1.2033 # The host system.
1.2034 host_alias=$host_alias
1.2035 host=$host
1.2036 +host_os=$host_os
1.2037 +
1.2038 +# The build system.
1.2039 +build_alias=$build_alias
1.2040 +build=$build
1.2041 +build_os=$build_os
1.2042
1.2043 # An echo program that does not interpret backslashes.
1.2044 echo=$lt_echo
1.2045 @@ -3995,6 +4267,9 @@
1.2046 # A C compiler.
1.2047 LTCC=$lt_LTCC
1.2048
1.2049 +# LTCC compiler flags.
1.2050 +LTCFLAGS=$lt_LTCFLAGS
1.2051 +
1.2052 # A language-specific compiler.
1.2053 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
1.2054
1.2055 @@ -4060,7 +4335,7 @@
1.2056 # Does compiler simultaneously support -c and -o options?
1.2057 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
1.2058
1.2059 -# Must we lock files when doing compilation ?
1.2060 +# Must we lock files when doing compilation?
1.2061 need_locks=$lt_need_locks
1.2062
1.2063 # Do we need the lib prefix for modules?
1.2064 @@ -4334,9 +4609,6 @@
1.2065 # Regexp to match symbols that can be accessed directly from C.
1.2066 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
1.2067
1.2068 -# Transform the above into a raw symbol and a C symbol.
1.2069 -symxfrm='\1 \2\3 \3'
1.2070 -
1.2071 # Transform an extracted symbol line into a proper C declaration
1.2072 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
1.2073
1.2074 @@ -4358,15 +4630,31 @@
1.2075 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.2076 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'"
1.2077 ;;
1.2078 +linux* | k*bsd*-gnu)
1.2079 + if test "$host_cpu" = ia64; then
1.2080 + symcode='[[ABCDGIRSTW]]'
1.2081 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.2082 + 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'"
1.2083 + fi
1.2084 + ;;
1.2085 irix* | nonstopux*)
1.2086 symcode='[[BCDEGRST]]'
1.2087 ;;
1.2088 osf*)
1.2089 symcode='[[BCDEGQRST]]'
1.2090 ;;
1.2091 -solaris* | sysv5*)
1.2092 +solaris*)
1.2093 symcode='[[BDRT]]'
1.2094 ;;
1.2095 +sco3.2v5*)
1.2096 + symcode='[[DT]]'
1.2097 + ;;
1.2098 +sysv4.2uw2*)
1.2099 + symcode='[[DT]]'
1.2100 + ;;
1.2101 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
1.2102 + symcode='[[ABDT]]'
1.2103 + ;;
1.2104 sysv4)
1.2105 symcode='[[DFNSTU]]'
1.2106 ;;
1.2107 @@ -4389,8 +4677,11 @@
1.2108 # Try without a prefix undercore, then with it.
1.2109 for ac_symprfx in "" "_"; do
1.2110
1.2111 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
1.2112 + symxfrm="\\1 $ac_symprfx\\2 \\2"
1.2113 +
1.2114 # Write the raw and C identifiers.
1.2115 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1.2116 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.2117
1.2118 # Check to see that the pipe works correctly.
1.2119 pipe_works=no
1.2120 @@ -4546,6 +4837,10 @@
1.2121 # DJGPP does not support shared libraries at all
1.2122 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1.2123 ;;
1.2124 + interix3*)
1.2125 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1.2126 + # Instead, we relocate shared libraries at runtime.
1.2127 + ;;
1.2128 sysv4*MP*)
1.2129 if test -d /usr/nec; then
1.2130 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
1.2131 @@ -4554,7 +4849,7 @@
1.2132 hpux*)
1.2133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.2134 # not for PA HP-UX.
1.2135 - case "$host_cpu" in
1.2136 + case $host_cpu in
1.2137 hppa*64*|ia64*)
1.2138 ;;
1.2139 *)
1.2140 @@ -4579,18 +4874,28 @@
1.2141 ;;
1.2142 chorus*)
1.2143 case $cc_basename in
1.2144 - cxch68)
1.2145 + cxch68*)
1.2146 # Green Hills C++ Compiler
1.2147 # _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"
1.2148 ;;
1.2149 esac
1.2150 ;;
1.2151 + darwin*)
1.2152 + # PIC is the default on this platform
1.2153 + # Common symbols not allowed in MH_DYLIB files
1.2154 + case $cc_basename in
1.2155 + xlc*)
1.2156 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
1.2157 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2158 + ;;
1.2159 + esac
1.2160 + ;;
1.2161 dgux*)
1.2162 case $cc_basename in
1.2163 - ec++)
1.2164 + ec++*)
1.2165 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.2166 ;;
1.2167 - ghcx)
1.2168 + ghcx*)
1.2169 # Green Hills C++ Compiler
1.2170 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1.2171 ;;
1.2172 @@ -4598,22 +4903,22 @@
1.2173 ;;
1.2174 esac
1.2175 ;;
1.2176 - freebsd* | kfreebsd*-gnu)
1.2177 + freebsd* | dragonfly*)
1.2178 # FreeBSD uses GNU C++
1.2179 ;;
1.2180 hpux9* | hpux10* | hpux11*)
1.2181 case $cc_basename in
1.2182 - CC)
1.2183 + CC*)
1.2184 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2185 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
1.2186 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1.2187 if test "$host_cpu" != ia64; then
1.2188 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1.2189 fi
1.2190 ;;
1.2191 - aCC)
1.2192 + aCC*)
1.2193 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2194 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
1.2195 - case "$host_cpu" in
1.2196 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1.2197 + case $host_cpu in
1.2198 hppa*64*|ia64*)
1.2199 # +Z the default
1.2200 ;;
1.2201 @@ -4626,9 +4931,13 @@
1.2202 ;;
1.2203 esac
1.2204 ;;
1.2205 + interix*)
1.2206 + # This is c89, which is MS Visual C++ (no shared libs)
1.2207 + # Anyone wants to do a port?
1.2208 + ;;
1.2209 irix5* | irix6* | nonstopux*)
1.2210 case $cc_basename in
1.2211 - CC)
1.2212 + CC*)
1.2213 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2214 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1.2215 # CC pic flag -KPIC is the default.
1.2216 @@ -4637,20 +4946,26 @@
1.2217 ;;
1.2218 esac
1.2219 ;;
1.2220 - linux*)
1.2221 + linux* | k*bsd*-gnu)
1.2222 case $cc_basename in
1.2223 - KCC)
1.2224 + KCC*)
1.2225 # KAI C++ Compiler
1.2226 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
1.2227 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1.2228 ;;
1.2229 - icpc)
1.2230 + icpc* | ecpc*)
1.2231 # Intel C++
1.2232 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2233 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.2234 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1.2235 ;;
1.2236 - cxx)
1.2237 + pgCC*)
1.2238 + # Portland Group C++ compiler.
1.2239 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2240 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
1.2241 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.2242 + ;;
1.2243 + cxx*)
1.2244 # Compaq C++
1.2245 # Make sure the PIC flag is empty. It appears that all Alpha
1.2246 # Linux and Compaq Tru64 Unix objects are PIC.
1.2247 @@ -4667,25 +4982,25 @@
1.2248 ;;
1.2249 mvs*)
1.2250 case $cc_basename in
1.2251 - cxx)
1.2252 + cxx*)
1.2253 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
1.2254 ;;
1.2255 *)
1.2256 ;;
1.2257 esac
1.2258 ;;
1.2259 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
1.2260 + netbsd* | netbsdelf*-gnu)
1.2261 ;;
1.2262 osf3* | osf4* | osf5*)
1.2263 case $cc_basename in
1.2264 - KCC)
1.2265 + KCC*)
1.2266 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
1.2267 ;;
1.2268 - RCC)
1.2269 + RCC*)
1.2270 # Rational C++ 2.4.1
1.2271 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1.2272 ;;
1.2273 - cxx)
1.2274 + cxx*)
1.2275 # Digital/Compaq C++
1.2276 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2277 # Make sure the PIC flag is empty. It appears that all Alpha
1.2278 @@ -4699,24 +5014,15 @@
1.2279 ;;
1.2280 psos*)
1.2281 ;;
1.2282 - sco*)
1.2283 - case $cc_basename in
1.2284 - CC)
1.2285 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1.2286 - ;;
1.2287 - *)
1.2288 - ;;
1.2289 - esac
1.2290 - ;;
1.2291 solaris*)
1.2292 case $cc_basename in
1.2293 - CC)
1.2294 + CC*)
1.2295 # Sun C++ 4.2, 5.x and Centerline C++
1.2296 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.2297 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.2298 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
1.2299 ;;
1.2300 - gcx)
1.2301 + gcx*)
1.2302 # Green Hills C++ Compiler
1.2303 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
1.2304 ;;
1.2305 @@ -4726,12 +5032,12 @@
1.2306 ;;
1.2307 sunos4*)
1.2308 case $cc_basename in
1.2309 - CC)
1.2310 + CC*)
1.2311 # Sun C++ 4.x
1.2312 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1.2313 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.2314 ;;
1.2315 - lcc)
1.2316 + lcc*)
1.2317 # Lucid
1.2318 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1.2319 ;;
1.2320 @@ -4741,7 +5047,7 @@
1.2321 ;;
1.2322 tandem*)
1.2323 case $cc_basename in
1.2324 - NCC)
1.2325 + NCC*)
1.2326 # NonStop-UX NCC 3.20
1.2327 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.2328 ;;
1.2329 @@ -4749,7 +5055,14 @@
1.2330 ;;
1.2331 esac
1.2332 ;;
1.2333 - unixware*)
1.2334 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1.2335 + case $cc_basename in
1.2336 + CC*)
1.2337 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2338 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.2339 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.2340 + ;;
1.2341 + esac
1.2342 ;;
1.2343 vxworks*)
1.2344 ;;
1.2345 @@ -4796,6 +5109,11 @@
1.2346 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
1.2347 ;;
1.2348
1.2349 + interix3*)
1.2350 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1.2351 + # Instead, we relocate shared libraries at runtime.
1.2352 + ;;
1.2353 +
1.2354 msdosdjgpp*)
1.2355 # Just because we use GCC doesn't mean we suddenly get shared libraries
1.2356 # on systems that don't support them.
1.2357 @@ -4812,7 +5130,7 @@
1.2358 hpux*)
1.2359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.2360 # not for PA HP-UX.
1.2361 - case "$host_cpu" in
1.2362 + case $host_cpu in
1.2363 hppa*64*|ia64*)
1.2364 # +Z the default
1.2365 ;;
1.2366 @@ -4838,6 +5156,16 @@
1.2367 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
1.2368 fi
1.2369 ;;
1.2370 + darwin*)
1.2371 + # PIC is the default on this platform
1.2372 + # Common symbols not allowed in MH_DYLIB files
1.2373 + case $cc_basename in
1.2374 + xlc*)
1.2375 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
1.2376 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2377 + ;;
1.2378 + esac
1.2379 + ;;
1.2380
1.2381 mingw* | pw32* | os2*)
1.2382 # This hack is so that the source file can tell whether it is being
1.2383 @@ -4849,7 +5177,7 @@
1.2384 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.2386 # not for PA HP-UX.
1.2387 - case "$host_cpu" in
1.2388 + case $host_cpu in
1.2389 hppa*64*|ia64*)
1.2390 # +Z the default
1.2391 ;;
1.2392 @@ -4872,13 +5200,20 @@
1.2393 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.2394 ;;
1.2395
1.2396 - linux*)
1.2397 - case $CC in
1.2398 + linux* | k*bsd*-gnu)
1.2399 + case $cc_basename in
1.2400 icc* | ecc*)
1.2401 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2402 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.2403 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1.2404 ;;
1.2405 + pgcc* | pgf77* | pgf90* | pgf95*)
1.2406 + # Portland Group compilers (*not* the Pentium gcc compiler,
1.2407 + # which looks to be a dead project)
1.2408 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2409 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
1.2410 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.2411 + ;;
1.2412 ccc*)
1.2413 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2414 # All Alpha code is PIC.
1.2415 @@ -4893,15 +5228,15 @@
1.2416 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1.2417 ;;
1.2418
1.2419 - sco3.2v5*)
1.2420 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
1.2421 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
1.2422 - ;;
1.2423 -
1.2424 solaris*)
1.2425 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2426 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.2427 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.2428 + case $cc_basename in
1.2429 + f77* | f90* | f95*)
1.2430 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
1.2431 + *)
1.2432 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
1.2433 + esac
1.2434 ;;
1.2435
1.2436 sunos4*)
1.2437 @@ -4910,7 +5245,7 @@
1.2438 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.2439 ;;
1.2440
1.2441 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.2442 + sysv4 | sysv4.2uw2* | sysv4.3*)
1.2443 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2444 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.2445 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.2446 @@ -4923,6 +5258,17 @@
1.2447 fi
1.2448 ;;
1.2449
1.2450 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1.2451 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2452 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.2453 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.2454 + ;;
1.2455 +
1.2456 + unicos*)
1.2457 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.2458 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1.2459 + ;;
1.2460 +
1.2461 uts4*)
1.2462 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1.2463 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.2464 @@ -4950,7 +5296,7 @@
1.2465 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1.2466 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
1.2467 fi
1.2468 -case "$host_os" in
1.2469 +case $host_os in
1.2470 # For platforms which do not support PIC, -DPIC is meaningless:
1.2471 *djgpp*)
1.2472 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1.2473 @@ -4959,6 +5305,16 @@
1.2474 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
1.2475 ;;
1.2476 esac
1.2477 +
1.2478 +#
1.2479 +# Check to make sure the static flag actually works.
1.2480 +#
1.2481 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
1.2482 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
1.2483 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
1.2484 + $lt_tmp_static_flag,
1.2485 + [],
1.2486 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
1.2487 ])
1.2488
1.2489
1.2490 @@ -4983,9 +5339,9 @@
1.2491 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
1.2492 ;;
1.2493 cygwin* | mingw*)
1.2494 - _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'
1.2495 + _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'
1.2496 ;;
1.2497 - linux*)
1.2498 + linux* | k*bsd*-gnu)
1.2499 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
1.2500 ;;
1.2501 *)
1.2502 @@ -5029,7 +5385,8 @@
1.2503 # rely on this symbol name, it's probably fine to never include it in
1.2504 # preloaded symbol tables.
1.2505 extract_expsyms_cmds=
1.2506 -
1.2507 + # Just being paranoid about ensuring that cc_basename is set.
1.2508 + _LT_CC_BASENAME([$compiler])
1.2509 case $host_os in
1.2510 cygwin* | mingw* | pw32*)
1.2511 # FIXME: the MSVC++ port hasn't been tested in a loooong time
1.2512 @@ -5039,6 +5396,10 @@
1.2513 with_gnu_ld=no
1.2514 fi
1.2515 ;;
1.2516 + interix*)
1.2517 + # we just hope/assume this is gcc and not c89 (= MSVC++)
1.2518 + with_gnu_ld=yes
1.2519 + ;;
1.2520 openbsd*)
1.2521 with_gnu_ld=no
1.2522 ;;
1.2523 @@ -5049,6 +5410,27 @@
1.2524 # If archive_cmds runs LD, not CC, wlarc should be empty
1.2525 wlarc='${wl}'
1.2526
1.2527 + # Set some defaults for GNU ld with shared library support. These
1.2528 + # are reset later if shared libraries are not supported. Putting them
1.2529 + # here allows them to be overridden if necessary.
1.2530 + runpath_var=LD_RUN_PATH
1.2531 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
1.2532 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1.2533 + # ancient GNU ld didn't support --whole-archive et. al.
1.2534 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
1.2535 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1.2536 + else
1.2537 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
1.2538 + fi
1.2539 + supports_anon_versioning=no
1.2540 + case `$LD -v 2>/dev/null` in
1.2541 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
1.2542 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1.2543 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1.2544 + *\ 2.11.*) ;; # other 2.11 versions
1.2545 + *) supports_anon_versioning=yes ;;
1.2546 + esac
1.2547 +
1.2548 # See if GNU ld supports shared libraries.
1.2549 case $host_os in
1.2550 aix3* | aix4* | aix5*)
1.2551 @@ -5099,10 +5481,10 @@
1.2552 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1.2553 _LT_AC_TAGVAR(always_export_symbols, $1)=no
1.2554 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1.2555 - _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'
1.2556 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
1.2557
1.2558 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.2559 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1.2560 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.2561 # If the export-symbols file already is a .def file (1st line
1.2562 # is EXPORTS), use it as is; otherwise, prepend...
1.2563 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1.2564 @@ -5111,13 +5493,60 @@
1.2565 echo EXPORTS > $output_objdir/$soname.def;
1.2566 cat $export_symbols >> $output_objdir/$soname.def;
1.2567 fi~
1.2568 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1.2569 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.2570 else
1.2571 - ld_shlibs=no
1.2572 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2573 fi
1.2574 ;;
1.2575
1.2576 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
1.2577 + interix3*)
1.2578 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.2579 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.2580 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.2581 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.2582 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1.2583 + # Instead, shared libraries are loaded at an image base (0x10000000 by
1.2584 + # default) and relocated if they conflict, which is a slow very memory
1.2585 + # consuming and fragmenting process. To avoid this, we pick a random,
1.2586 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1.2587 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.2588 + _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'
1.2589 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_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'
1.2590 + ;;
1.2591 +
1.2592 + linux* | k*bsd*-gnu)
1.2593 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.2594 + tmp_addflag=
1.2595 + case $cc_basename,$host_cpu in
1.2596 + pgcc*) # Portland Group C compiler
1.2597 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.2598 + tmp_addflag=' $pic_flag'
1.2599 + ;;
1.2600 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
1.2601 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.2602 + tmp_addflag=' $pic_flag -Mnomain' ;;
1.2603 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
1.2604 + tmp_addflag=' -i_dynamic' ;;
1.2605 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
1.2606 + tmp_addflag=' -i_dynamic -nofor_main' ;;
1.2607 + ifc* | ifort*) # Intel Fortran compiler
1.2608 + tmp_addflag=' -nofor_main' ;;
1.2609 + esac
1.2610 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.2611 +
1.2612 + if test $supports_anon_versioning = yes; then
1.2613 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
1.2614 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.2615 + $echo "local: *; };" >> $output_objdir/$libname.ver~
1.2616 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1.2617 + fi
1.2618 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
1.2619 + else
1.2620 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2621 + fi
1.2622 + ;;
1.2623 +
1.2624 + netbsd* | netbsdelf*-gnu)
1.2625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.2626 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1.2627 wlarc=
1.2628 @@ -5127,7 +5556,7 @@
1.2629 fi
1.2630 ;;
1.2631
1.2632 - solaris* | sysv5*)
1.2633 + solaris*)
1.2634 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1.2635 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2636 cat <<EOF 1>&2
1.2637 @@ -5148,6 +5577,33 @@
1.2638 fi
1.2639 ;;
1.2640
1.2641 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
1.2642 + case `$LD -v 2>&1` in
1.2643 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
1.2644 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2645 + cat <<_LT_EOF 1>&2
1.2646 +
1.2647 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
1.2648 +*** reliably create shared libraries on SCO systems. Therefore, libtool
1.2649 +*** is disabling shared libraries support. We urge you to upgrade GNU
1.2650 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
1.2651 +*** your PATH or compiler configuration so that the native linker is
1.2652 +*** used, and then restart.
1.2653 +
1.2654 +_LT_EOF
1.2655 + ;;
1.2656 + *)
1.2657 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.2658 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
1.2659 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
1.2660 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
1.2661 + else
1.2662 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2663 + fi
1.2664 + ;;
1.2665 + esac
1.2666 + ;;
1.2667 +
1.2668 sunos4*)
1.2669 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.2670 wlarc=
1.2671 @@ -5155,32 +5611,6 @@
1.2672 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.2673 ;;
1.2674
1.2675 - linux*)
1.2676 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.2677 - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.2678 - _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
1.2679 - supports_anon_versioning=no
1.2680 - case `$LD -v 2>/dev/null` in
1.2681 - *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
1.2682 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1.2683 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1.2684 - *\ 2.11.*) ;; # other 2.11 versions
1.2685 - *) supports_anon_versioning=yes ;;
1.2686 - esac
1.2687 - if test $supports_anon_versioning = yes; then
1.2688 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
1.2689 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.2690 -$echo "local: *; };" >> $output_objdir/$libname.ver~
1.2691 - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1.2692 - else
1.2693 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
1.2694 - fi
1.2695 - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
1.2696 - else
1.2697 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2698 - fi
1.2699 - ;;
1.2700 -
1.2701 *)
1.2702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.2703 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.2704 @@ -5191,16 +5621,11 @@
1.2705 ;;
1.2706 esac
1.2707
1.2708 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
1.2709 - runpath_var=LD_RUN_PATH
1.2710 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
1.2711 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1.2712 - # ancient GNU ld didn't support --whole-archive et. al.
1.2713 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
1.2714 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1.2715 - else
1.2716 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
1.2717 - fi
1.2718 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
1.2719 + runpath_var=
1.2720 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
1.2721 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
1.2722 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
1.2723 fi
1.2724 else
1.2725 # PORTME fill in a description of your system's linker (not GNU ld)
1.2726 @@ -5212,7 +5637,7 @@
1.2727 # Note: this linker hardcodes the directories in LIBPATH if there
1.2728 # are no directories specified by -L.
1.2729 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.2730 - if test "$GCC" = yes && test -z "$link_static_flag"; then
1.2731 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.2732 # Neither direct hardcoding nor static linking is supported with a
1.2733 # broken collect2.
1.2734 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
1.2735 @@ -5246,6 +5671,7 @@
1.2736 break
1.2737 fi
1.2738 done
1.2739 + ;;
1.2740 esac
1.2741
1.2742 exp_sym_flag='-bexport'
1.2743 @@ -5264,7 +5690,7 @@
1.2744 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.2745
1.2746 if test "$GCC" = yes; then
1.2747 - case $host_os in aix4.[012]|aix4.[012].*)
1.2748 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
1.2749 # We only want to do this on AIX 4.2 and lower, the check
1.2750 # below for broken collect2 doesn't work under 4.3+
1.2751 collect2name=`${CC} -print-prog-name=collect2`
1.2752 @@ -5283,8 +5709,12 @@
1.2753 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.2754 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1.2755 fi
1.2756 + ;;
1.2757 esac
1.2758 shared_flag='-shared'
1.2759 + if test "$aix_use_runtimelinking" = yes; then
1.2760 + shared_flag="$shared_flag "'${wl}-G'
1.2761 + fi
1.2762 else
1.2763 # not using gcc
1.2764 if test "$host_cpu" = ia64; then
1.2765 @@ -5292,11 +5722,11 @@
1.2766 # chokes on -Wl,-G. The following line is correct:
1.2767 shared_flag='-G'
1.2768 else
1.2769 - if test "$aix_use_runtimelinking" = yes; then
1.2770 + if test "$aix_use_runtimelinking" = yes; then
1.2771 shared_flag='${wl}-G'
1.2772 else
1.2773 shared_flag='${wl}-bM:SRE'
1.2774 - fi
1.2775 + fi
1.2776 fi
1.2777 fi
1.2778
1.2779 @@ -5310,12 +5740,12 @@
1.2780 # Determine the default libpath from the value encoded in an empty executable.
1.2781 _LT_AC_SYS_LIBPATH_AIX
1.2782 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1.2783 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.2784 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.2785 else
1.2786 if test "$host_cpu" = ia64; then
1.2787 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
1.2788 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
1.2789 - _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"
1.2790 + _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"
1.2791 else
1.2792 # Determine the default libpath from the value encoded in an empty executable.
1.2793 _LT_AC_SYS_LIBPATH_AIX
1.2794 @@ -5324,13 +5754,11 @@
1.2795 # -berok will link without error, but may produce a broken library.
1.2796 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
1.2797 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
1.2798 - # -bexpall does not export symbols beginning with underscore (_)
1.2799 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1.2800 # Exported symbols can be pulled into shared objects from archives
1.2801 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
1.2802 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
1.2803 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1.2804 - # This is similar to how AIX traditionally builds it's shared libraries.
1.2805 - _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'
1.2806 + # This is similar to how AIX traditionally builds its shared libraries.
1.2807 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$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'
1.2808 fi
1.2809 fi
1.2810 ;;
1.2811 @@ -5343,7 +5771,7 @@
1.2812 _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2813 ;;
1.2814
1.2815 - bsdi4*)
1.2816 + bsdi[[45]]*)
1.2817 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
1.2818 ;;
1.2819
1.2820 @@ -5364,57 +5792,57 @@
1.2821 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
1.2822 # FIXME: Should let the user specify the lib program.
1.2823 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
1.2824 - fix_srcfile_path='`cygpath -w "$srcfile"`'
1.2825 + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
1.2826 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1.2827 ;;
1.2828
1.2829 darwin* | rhapsody*)
1.2830 - if test "$GXX" = yes ; then
1.2831 + case $host_os in
1.2832 + rhapsody* | darwin1.[[012]])
1.2833 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
1.2834 + ;;
1.2835 + *) # Darwin 1.3 on
1.2836 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1.2837 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.2838 + else
1.2839 + case ${MACOSX_DEPLOYMENT_TARGET} in
1.2840 + 10.[[012]])
1.2841 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.2842 + ;;
1.2843 + 10.*)
1.2844 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
1.2845 + ;;
1.2846 + esac
1.2847 + fi
1.2848 + ;;
1.2849 + esac
1.2850 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.2851 - case "$host_os" in
1.2852 - rhapsody* | darwin1.[[012]])
1.2853 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
1.2854 - ;;
1.2855 - *) # Darwin 1.3 on
1.2856 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1.2857 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1.2858 - else
1.2859 - case ${MACOSX_DEPLOYMENT_TARGET} in
1.2860 - 10.[[012]])
1.2861 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1.2862 - ;;
1.2863 - 10.*)
1.2864 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
1.2865 - ;;
1.2866 - esac
1.2867 - fi
1.2868 - ;;
1.2869 - esac
1.2870 - lt_int_apple_cc_single_mod=no
1.2871 - output_verbose_link_cmd='echo'
1.2872 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
1.2873 - lt_int_apple_cc_single_mod=yes
1.2874 - fi
1.2875 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.2876 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.2877 - else
1.2878 - _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/$soname $verstring'
1.2879 - fi
1.2880 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.2881 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1.2882 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.2883 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.2884 - else
1.2885 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$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}'
1.2886 - fi
1.2887 - _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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.2888 _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.2889 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1.2890 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1.2891 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1.2892 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
1.2893 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.2894 + if test "$GCC" = yes ; then
1.2895 + output_verbose_link_cmd='echo'
1.2896 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.2897 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.2898 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.2899 + _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}-symbols.expsym ${lib}'
1.2900 + _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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.2901 else
1.2902 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2903 + case $cc_basename in
1.2904 + xlc*)
1.2905 + output_verbose_link_cmd='echo'
1.2906 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
1.2907 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.2908 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.2909 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.2910 + _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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.2911 + ;;
1.2912 + *)
1.2913 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2914 + ;;
1.2915 + esac
1.2916 fi
1.2917 ;;
1.2918
1.2919 @@ -5448,7 +5876,7 @@
1.2920 ;;
1.2921
1.2922 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.2923 - freebsd* | kfreebsd*-gnu)
1.2924 + freebsd* | dragonfly*)
1.2925 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1.2926 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1.2927 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.2928 @@ -5471,47 +5899,62 @@
1.2929 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.2930 ;;
1.2931
1.2932 - hpux10* | hpux11*)
1.2933 + hpux10*)
1.2934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.2935 - case "$host_cpu" in
1.2936 - hppa*64*|ia64*)
1.2937 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.2938 + else
1.2939 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.2940 + fi
1.2941 + if test "$with_gnu_ld" = no; then
1.2942 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.2943 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.2944 +
1.2945 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.2946 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.2947 +
1.2948 + # hardcode_minus_L: Not really in the search PATH,
1.2949 + # but as the default location of the library.
1.2950 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.2951 + fi
1.2952 + ;;
1.2953 +
1.2954 + hpux11*)
1.2955 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.2956 + case $host_cpu in
1.2957 + hppa*64*)
1.2958 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.2959 ;;
1.2960 + ia64*)
1.2961 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.2962 + ;;
1.2963 *)
1.2964 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.2965 ;;
1.2966 esac
1.2967 else
1.2968 - case "$host_cpu" in
1.2969 - hppa*64*|ia64*)
1.2970 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
1.2971 + case $host_cpu in
1.2972 + hppa*64*)
1.2973 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.2974 + ;;
1.2975 + ia64*)
1.2976 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.2977 ;;
1.2978 *)
1.2979 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.2980 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.2981 ;;
1.2982 esac
1.2983 fi
1.2984 if test "$with_gnu_ld" = no; then
1.2985 - case "$host_cpu" in
1.2986 - hppa*64*)
1.2987 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.2988 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.2989 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.2990 +
1.2991 + case $host_cpu in
1.2992 + hppa*64*|ia64*)
1.2993 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1.2994 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.2995 _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.2996 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.2997 ;;
1.2998 - ia64*)
1.2999 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.3000 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.3001 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3002 -
1.3003 - # hardcode_minus_L: Not really in the search PATH,
1.3004 - # but as the default location of the library.
1.3005 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.3006 - ;;
1.3007 *)
1.3008 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.3009 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3010 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.3011 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.3012
1.3013 @@ -5535,7 +5978,7 @@
1.3014 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.3015 ;;
1.3016
1.3017 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
1.3018 + netbsd* | netbsdelf*-gnu)
1.3019 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.3020 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1.3021 else
1.3022 @@ -5559,6 +6002,7 @@
1.3023 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.3025 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.3026 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1.3027 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.3028 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.3029 else
1.3030 @@ -5604,7 +6048,7 @@
1.3031 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
1.3032 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.3033 _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~
1.3034 - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
1.3035 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1.3036
1.3037 # Both c and cxx compiler support -rpath directly
1.3038 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
1.3039 @@ -5612,21 +6056,15 @@
1.3040 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3041 ;;
1.3042
1.3043 - sco3.2v5*)
1.3044 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.3045 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3046 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
1.3047 - runpath_var=LD_RUN_PATH
1.3048 - hardcode_runpath_var=yes
1.3049 - ;;
1.3050 -
1.3051 solaris*)
1.3052 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
1.3053 if test "$GCC" = yes; then
1.3054 + wlarc='${wl}'
1.3055 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3056 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.3057 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
1.3058 else
1.3059 + wlarc=''
1.3060 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.3061 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.3062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
1.3063 @@ -5635,8 +6073,18 @@
1.3064 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3065 case $host_os in
1.3066 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
1.3067 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
1.3068 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
1.3069 + *)
1.3070 + # The compiler driver will combine linker options so we
1.3071 + # cannot just pass the convience library names through
1.3072 + # without $wl, iff we do not link with $LD.
1.3073 + # Luckily, gcc supports the same syntax we need for Sun Studio.
1.3074 + # Supported since Solaris 2.6 (maybe 2.5.1?)
1.3075 + case $wlarc in
1.3076 + '')
1.3077 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
1.3078 + *)
1.3079 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
1.3080 + esac ;;
1.3081 esac
1.3082 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.3083 ;;
1.3084 @@ -5693,36 +6141,45 @@
1.3085 fi
1.3086 ;;
1.3087
1.3088 - sysv4.2uw2*)
1.3089 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
1.3090 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.3091 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
1.3092 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3093 - hardcode_runpath_var=yes
1.3094 - runpath_var=LD_RUN_PATH
1.3095 - ;;
1.3096 -
1.3097 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
1.3098 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
1.3099 - if test "$GCC" = yes; then
1.3100 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3101 - else
1.3102 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3103 - fi
1.3104 - runpath_var='LD_RUN_PATH'
1.3105 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3106 - ;;
1.3107 -
1.3108 - sysv5*)
1.3109 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
1.3110 - # $CC -shared without GNU ld will not create a library from C++
1.3111 - # object files and a static libstdc++, better avoid it by now
1.3112 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.3113 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.3114 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
1.3115 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
1.3116 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
1.3117 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1.3118 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.3119 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3120 runpath_var='LD_RUN_PATH'
1.3121 +
1.3122 + if test "$GCC" = yes; then
1.3123 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3124 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3125 + else
1.3126 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3127 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3128 + fi
1.3129 + ;;
1.3130 +
1.3131 + sysv5* | sco3.2v5* | sco5v6*)
1.3132 + # Note: We can NOT use -z defs as we might desire, because we do not
1.3133 + # link with -lc, and that would cause any symbols used from libc to
1.3134 + # always be unresolved, which means just about no library would
1.3135 + # ever link correctly. If we're not using GNU ld we use -z text
1.3136 + # though, which does catch some bad symbols but isn't as heavy-handed
1.3137 + # as -z defs.
1.3138 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1.3139 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
1.3140 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.3141 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3142 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
1.3143 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
1.3144 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.3145 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
1.3146 + runpath_var='LD_RUN_PATH'
1.3147 +
1.3148 + if test "$GCC" = yes; then
1.3149 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3150 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3151 + else
1.3152 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3153 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3154 + fi
1.3155 ;;
1.3156
1.3157 uts4*)
1.3158 @@ -5740,11 +6197,6 @@
1.3159 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
1.3160 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
1.3161
1.3162 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.3163 -if test "$GCC" = yes; then
1.3164 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.3165 -fi
1.3166 -
1.3167 #
1.3168 # Do we need to explicitly link libc?
1.3169 #
1.3170 @@ -5772,6 +6224,7 @@
1.3171 libobjs=conftest.$ac_objext
1.3172 deplibs=
1.3173 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
1.3174 + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
1.3175 compiler_flags=-v
1.3176 linker_flags=-v
1.3177 verstring=
1.3178 @@ -5897,7 +6350,7 @@
1.3179 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
1.3180 # along with /bin/sed that truncates output.
1.3181 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.3182 - test ! -f $lt_ac_sed && break
1.3183 + test ! -f $lt_ac_sed && continue
1.3184 cat /dev/null > conftest.in
1.3185 lt_ac_count=0
1.3186 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
1.3187 @@ -5922,8 +6375,8 @@
1.3188 fi
1.3189 done
1.3190 done
1.3191 +])
1.3192 SED=$lt_cv_path_SED
1.3193 -])
1.3194 AC_MSG_RESULT([$SED])
1.3195 ])
1.3196
1.3197 @@ -5960,7 +6413,7 @@
1.3198 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1.3199 fi
1.3200 if test -n "$PKG_CONFIG"; then
1.3201 - _pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
1.3202 + _pkg_min_version=m4_default([$1], [0.9.0])
1.3203 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1.3204 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1.3205 AC_MSG_RESULT([yes])
1.3206 @@ -5996,14 +6449,30 @@
1.3207 # ---------------------------------------------
1.3208 m4_define([_PKG_CONFIG],
1.3209 [if test -n "$PKG_CONFIG"; then
1.3210 + if test -n "$$1"; then
1.3211 + pkg_cv_[]$1="$$1"
1.3212 + else
1.3213 PKG_CHECK_EXISTS([$3],
1.3214 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1.3215 [pkg_failed=yes])
1.3216 + fi
1.3217 else
1.3218 pkg_failed=untried
1.3219 fi[]dnl
1.3220 ])# _PKG_CONFIG
1.3221
1.3222 +# _PKG_SHORT_ERRORS_SUPPORTED
1.3223 +# -----------------------------
1.3224 +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1.3225 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1.3226 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1.3227 + _pkg_short_errors_supported=yes
1.3228 +else
1.3229 + _pkg_short_errors_supported=no
1.3230 +fi[]dnl
1.3231 +])# _PKG_SHORT_ERRORS_SUPPORTED
1.3232 +
1.3233 +
1.3234 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1.3235 # [ACTION-IF-NOT-FOUND])
1.3236 #
1.3237 @@ -6025,29 +6494,39 @@
1.3238 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1.3239 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
1.3240
1.3241 +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1.3242 +and $1[]_LIBS to avoid the need to call pkg-config.
1.3243 +See the pkg-config man page for more details.])
1.3244 +
1.3245 if test $pkg_failed = yes; then
1.3246 - $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
1.3247 + _PKG_SHORT_ERRORS_SUPPORTED
1.3248 + if test $_pkg_short_errors_supported = yes; then
1.3249 + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
1.3250 + else
1.3251 + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
1.3252 + fi
1.3253 # Put the nasty error message in config.log where it belongs
1.3254 - echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
1.3255 + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1.3256
1.3257 ifelse([$4], , [AC_MSG_ERROR(dnl
1.3258 -[Package requirements ($2) were not met.
1.3259 +[Package requirements ($2) were not met:
1.3260 +
1.3261 +$$1_PKG_ERRORS
1.3262 +
1.3263 Consider adjusting the PKG_CONFIG_PATH environment variable if you
1.3264 installed software in a non-standard prefix.
1.3265
1.3266 -Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
1.3267 -to avoid the need to call pkg-config. See the pkg-config man page for
1.3268 -more details.])],
1.3269 - [$4])
1.3270 +_PKG_TEXT
1.3271 +])],
1.3272 + [AC_MSG_RESULT([no])
1.3273 + $4])
1.3274 elif test $pkg_failed = untried; then
1.3275 ifelse([$4], , [AC_MSG_FAILURE(dnl
1.3276 [The pkg-config script could not be found or is too old. Make sure it
1.3277 is in your PATH or set the PKG_CONFIG environment variable to the full
1.3278 path to pkg-config.
1.3279
1.3280 -Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
1.3281 -to avoid the need to call pkg-config. See the pkg-config man page for
1.3282 -more details.
1.3283 +_PKG_TEXT
1.3284
1.3285 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
1.3286 [$4])
1.3287 @@ -6076,7 +6555,7 @@
1.3288 # Call AM_AUTOMAKE_VERSION so it can be traced.
1.3289 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1.3290 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1.3291 - [AM_AUTOMAKE_VERSION([1.9.5])])
1.3292 + [AM_AUTOMAKE_VERSION([1.9.6])])
1.3293
1.3294 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
1.3295
2.1 --- a/gst-plugins-mythtv/config.guess Thu Sep 21 14:26:37 2006 +0100
2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2.3 @@ -1,1465 +0,0 @@
2.4 -#! /bin/sh
2.5 -# Attempt to guess a canonical system name.
2.6 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2.7 -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
2.8 -
2.9 -timestamp='2005-04-22'
2.10 -
2.11 -# This file is free software; you can redistribute it and/or modify it
2.12 -# under the terms of the GNU General Public License as published by
2.13 -# the Free Software Foundation; either version 2 of the License, or
2.14 -# (at your option) any later version.
2.15 -#
2.16 -# This program is distributed in the hope that it will be useful, but
2.17 -# WITHOUT ANY WARRANTY; without even the implied warranty of
2.18 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2.19 -# General Public License for more details.
2.20 -#
2.21 -# You should have received a copy of the GNU General Public License
2.22 -# along with this program; if not, write to the Free Software
2.23 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2.24 -#
2.25 -# As a special exception to the GNU General Public License, if you
2.26 -# distribute this file as part of a program that contains a
2.27 -# configuration script generated by Autoconf, you may include it under
2.28 -# the same distribution terms that you use for the rest of that program.
2.29 -
2.30 -# Originally written by Per Bothner <per@bothner.com>.
2.31 -# Please send patches to <config-patches@gnu.org>. Submit a context
2.32 -# diff and a properly formatted ChangeLog entry.
2.33 -#
2.34 -# This script attempts to guess a canonical system name similar to
2.35 -# config.sub. If it succeeds, it prints the system name on stdout, and
2.36 -# exits with 0. Otherwise, it exits with 1.
2.37 -#
2.38 -# The plan is that this can be called by configure scripts if you
2.39 -# don't specify an explicit build system type.
2.40 -
2.41 -me=`echo "$0" | sed -e 's,.*/,,'`
2.42 -
2.43 -usage="\
2.44 -Usage: $0 [OPTION]
2.45 -
2.46 -Output the configuration name of the system \`$me' is run on.
2.47 -
2.48 -Operation modes:
2.49 - -h, --help print this help, then exit
2.50 - -t, --time-stamp print date of last modification, then exit
2.51 - -v, --version print version number, then exit
2.52 -
2.53 -Report bugs and patches to <config-patches@gnu.org>."
2.54 -
2.55 -version="\
2.56 -GNU config.guess ($timestamp)
2.57 -
2.58 -Originally written by Per Bothner.
2.59 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
2.60 -Free Software Foundation, Inc.
2.61 -
2.62 -This is free software; see the source for copying conditions. There is NO
2.63 -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
2.64 -
2.65 -help="
2.66 -Try \`$me --help' for more information."
2.67 -
2.68 -# Parse command line
2.69 -while test $# -gt 0 ; do
2.70 - case $1 in
2.71 - --time-stamp | --time* | -t )
2.72 - echo "$timestamp" ; exit 0 ;;
2.73 - --version | -v )
2.74 - echo "$version" ; exit 0 ;;
2.75 - --help | --h* | -h )
2.76 - echo "$usage"; exit 0 ;;
2.77 - -- ) # Stop option processing
2.78 - shift; break ;;
2.79 - - ) # Use stdin as input.
2.80 - break ;;
2.81 - -* )
2.82 - echo "$me: invalid option $1$help" >&2
2.83 - exit 1 ;;
2.84 - * )
2.85 - break ;;
2.86 - esac
2.87 -done
2.88 -
2.89 -if test $# != 0; then
2.90 - echo "$me: too many arguments$help" >&2
2.91 - exit 1
2.92 -fi
2.93 -
2.94 -trap 'exit 1' 1 2 15
2.95 -
2.96 -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
2.97 -# compiler to aid in system detection is discouraged as it requires
2.98 -# temporary files to be created and, as you can see below, it is a
2.99 -# headache to deal with in a portable fashion.
2.100 -
2.101 -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
2.102 -# use `HOST_CC' if defined, but it is deprecated.
2.103 -
2.104 -# Portable tmp directory creation inspired by the Autoconf team.
2.105 -
2.106 -set_cc_for_build='
2.107 -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
2.108 -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
2.109 -: ${TMPDIR=/tmp} ;
2.110 - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
2.111 - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
2.112 - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
2.113 - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
2.114 -dummy=$tmp/dummy ;
2.115 -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
2.116 -case $CC_FOR_BUILD,$HOST_CC,$CC in
2.117 - ,,) echo "int x;" > $dummy.c ;
2.118 - for c in cc gcc c89 c99 ; do
2.119 - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
2.120 - CC_FOR_BUILD="$c"; break ;
2.121 - fi ;
2.122 - done ;
2.123 - if test x"$CC_FOR_BUILD" = x ; then
2.124 - CC_FOR_BUILD=no_compiler_found ;
2.125 - fi
2.126 - ;;
2.127 - ,,*) CC_FOR_BUILD=$CC ;;
2.128 - ,*,*) CC_FOR_BUILD=$HOST_CC ;;
2.129 -esac ;'
2.130 -
2.131 -# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
2.132 -# (ghazi@noc.rutgers.edu 1994-08-24)
2.133 -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
2.134 - PATH=$PATH:/.attbin ; export PATH
2.135 -fi
2.136 -
2.137 -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
2.138 -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
2.139 -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
2.140 -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
2.141 -
2.142 -# Note: order is significant - the case branches are not exclusive.
2.143 -
2.144 -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
2.145 - *:NetBSD:*:*)
2.146 - # NetBSD (nbsd) targets should (where applicable) match one or
2.147 - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
2.148 - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
2.149 - # switched to ELF, *-*-netbsd* would select the old
2.150 - # object file format. This provides both forward
2.151 - # compatibility and a consistent mechanism for selecting the
2.152 - # object file format.
2.153 - #
2.154 - # Note: NetBSD doesn't particularly care about the vendor
2.155 - # portion of the name. We always set it to "unknown".
2.156 - sysctl="sysctl -n hw.machine_arch"
2.157 - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
2.158 - /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
2.159 - case "${UNAME_MACHINE_ARCH}" in
2.160 - armeb) machine=armeb-unknown ;;
2.161 - arm*) machine=arm-unknown ;;
2.162 - sh3el) machine=shl-unknown ;;
2.163 - sh3eb) machine=sh-unknown ;;
2.164 - *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
2.165 - esac
2.166 - # The Operating System including object format, if it has switched
2.167 - # to ELF recently, or will in the future.
2.168 - case "${UNAME_MACHINE_ARCH}" in
2.169 - arm*|i386|m68k|ns32k|sh3*|sparc|vax)
2.170 - eval $set_cc_for_build
2.171 - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
2.172 - | grep __ELF__ >/dev/null
2.173 - then
2.174 - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
2.175 - # Return netbsd for either. FIX?
2.176 - os=netbsd
2.177 - else
2.178 - os=netbsdelf
2.179 - fi
2.180 - ;;
2.181 - *)
2.182 - os=netbsd
2.183 - ;;
2.184 - esac
2.185 - # The OS release
2.186 - # Debian GNU/NetBSD machines have a different userland, and
2.187 - # thus, need a distinct triplet. However, they do not need
2.188 - # kernel version information, so it can be replaced with a
2.189 - # suitable tag, in the style of linux-gnu.
2.190 - case "${UNAME_VERSION}" in
2.191 - Debian*)
2.192 - release='-gnu'
2.193 - ;;
2.194 - *)
2.195 - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
2.196 - ;;
2.197 - esac
2.198 - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
2.199 - # contains redundant information, the shorter form:
2.200 - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
2.201 - echo "${machine}-${os}${release}"
2.202 - exit 0 ;;
2.203 - amd64:OpenBSD:*:*)
2.204 - echo x86_64-unknown-openbsd${UNAME_RELEASE}
2.205 - exit 0 ;;
2.206 - amiga:OpenBSD:*:*)
2.207 - echo m68k-unknown-openbsd${UNAME_RELEASE}
2.208 - exit 0 ;;
2.209 - cats:OpenBSD:*:*)
2.210 - echo arm-unknown-openbsd${UNAME_RELEASE}
2.211 - exit 0 ;;
2.212 - hp300:OpenBSD:*:*)
2.213 - echo m68k-unknown-openbsd${UNAME_RELEASE}
2.214 - exit 0 ;;
2.215 - luna88k:OpenBSD:*:*)
2.216 - echo m88k-unknown-openbsd${UNAME_RELEASE}
2.217 - exit 0 ;;
2.218 - mac68k:OpenBSD:*:*)
2.219 - echo m68k-unknown-openbsd${UNAME_RELEASE}
2.220 - exit 0 ;;
2.221 - macppc:OpenBSD:*:*)
2.222 - echo powerpc-unknown-openbsd${UNAME_RELEASE}
2.223 - exit 0 ;;
2.224 - mvme68k:OpenBSD:*:*)
2.225 - echo m68k-unknown-openbsd${UNAME_RELEASE}
2.226 - exit 0 ;;
2.227 - mvme88k:OpenBSD:*:*)
2.228 - echo m88k-unknown-openbsd${UNAME_RELEASE}
2.229 - exit 0 ;;
2.230 - mvmeppc:OpenBSD:*:*)
2.231 - echo powerpc-unknown-openbsd${UNAME_RELEASE}
2.232 - exit 0 ;;
2.233 - sgi:OpenBSD:*:*)
2.234 - echo mips64-unknown-openbsd${UNAME_RELEASE}
2.235 - exit 0 ;;
2.236 - sun3:OpenBSD:*:*)
2.237 - echo m68k-unknown-openbsd${UNAME_RELEASE}
2.238 - exit 0 ;;
2.239 - *:OpenBSD:*:*)
2.240 - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
2.241 - exit 0 ;;
2.242 - *:ekkoBSD:*:*)
2.243 - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
2.244 - exit 0 ;;
2.245 - macppc:MirBSD:*:*)
2.246 - echo powerppc-unknown-mirbsd${UNAME_RELEASE}
2.247 - exit 0 ;;
2.248 - *:MirBSD:*:*)
2.249 - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
2.250 - exit 0 ;;
2.251 - alpha:OSF1:*:*)
2.252 - case $UNAME_RELEASE in
2.253 - *4.0)
2.254 - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
2.255 - ;;
2.256 - *5.*)
2.257 - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
2.258 - ;;
2.259 - esac
2.260 - # According to Compaq, /usr/sbin/psrinfo has been available on
2.261 - # OSF/1 and Tru64 systems produced since 1995. I hope that
2.262 - # covers most systems running today. This code pipes the CPU
2.263 - # types through head -n 1, so we only detect the type of CPU 0.
2.264 - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
2.265 - case "$ALPHA_CPU_TYPE" in
2.266 - "EV4 (21064)")
2.267 - UNAME_MACHINE="alpha" ;;
2.268 - "EV4.5 (21064)")
2.269 - UNAME_MACHINE="alpha" ;;
2.270 - "LCA4 (21066/21068)")
2.271 - UNAME_MACHINE="alpha" ;;
2.272 - "EV5 (21164)")
2.273 - UNAME_MACHINE="alphaev5" ;;
2.274 - "EV5.6 (21164A)")
2.275 - UNAME_MACHINE="alphaev56" ;;
2.276 - "EV5.6 (21164PC)")
2.277 - UNAME_MACHINE="alphapca56" ;;
2.278 - "EV5.7 (21164PC)")
2.279 - UNAME_MACHINE="alphapca57" ;;
2.280 - "EV6 (21264)")
2.281 - UNAME_MACHINE="alphaev6" ;;
2.282 - "EV6.7 (21264A)")
2.283 - UNAME_MACHINE="alphaev67" ;;
2.284 - "EV6.8CB (21264C)")
2.285 - UNAME_MACHINE="alphaev68" ;;
2.286 - "EV6.8AL (21264B)")
2.287 - UNAME_MACHINE="alphaev68" ;;
2.288 - "EV6.8CX (21264D)")
2.289 - UNAME_MACHINE="alphaev68" ;;
2.290 - "EV6.9A (21264/EV69A)")
2.291 - UNAME_MACHINE="alphaev69" ;;
2.292 - "EV7 (21364)")
2.293 - UNAME_MACHINE="alphaev7" ;;
2.294 - "EV7.9 (21364A)")
2.295 - UNAME_MACHINE="alphaev79" ;;
2.296 - esac
2.297 - # A Pn.n version is a patched version.
2.298 - # A Vn.n version is a released version.
2.299 - # A Tn.n version is a released field test version.
2.300 - # A Xn.n version is an unreleased experimental baselevel.
2.301 - # 1.2 uses "1.2" for uname -r.
2.302 - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2.303 - exit 0 ;;
2.304 - Alpha\ *:Windows_NT*:*)
2.305 - # How do we know it's Interix rather than the generic POSIX subsystem?
2.306 - # Should we change UNAME_MACHINE based on the output of uname instead
2.307 - # of the specific Alpha model?
2.308 - echo alpha-pc-interix
2.309 - exit 0 ;;
2.310 - 21064:Windows_NT:50:3)
2.311 - echo alpha-dec-winnt3.5
2.312 - exit 0 ;;
2.313 - Amiga*:UNIX_System_V:4.0:*)
2.314 - echo m68k-unknown-sysv4
2.315 - exit 0;;
2.316 - *:[Aa]miga[Oo][Ss]:*:*)
2.317 - echo ${UNAME_MACHINE}-unknown-amigaos
2.318 - exit 0 ;;
2.319 - *:[Mm]orph[Oo][Ss]:*:*)
2.320 - echo ${UNAME_MACHINE}-unknown-morphos
2.321 - exit 0 ;;
2.322 - *:OS/390:*:*)
2.323 - echo i370-ibm-openedition
2.324 - exit 0 ;;
2.325 - *:z/VM:*:*)
2.326 - echo s390-ibm-zvmoe
2.327 - exit 0 ;;
2.328 - *:OS400:*:*)
2.329 - echo powerpc-ibm-os400
2.330 - exit 0 ;;
2.331 - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
2.332 - echo arm-acorn-riscix${UNAME_RELEASE}
2.333 - exit 0;;
2.334 - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
2.335 - echo hppa1.1-hitachi-hiuxmpp
2.336 - exit 0;;
2.337 - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
2.338 - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
2.339 - if test "`(/bin/universe) 2>/dev/null`" = att ; then
2.340 - echo pyramid-pyramid-sysv3
2.341 - else
2.342 - echo pyramid-pyramid-bsd
2.343 - fi
2.344 - exit 0 ;;
2.345 - NILE*:*:*:dcosx)
2.346 - echo pyramid-pyramid-svr4
2.347 - exit 0 ;;
2.348 - DRS?6000:unix:4.0:6*)
2.349 - echo sparc-icl-nx6
2.350 - exit 0 ;;
2.351 - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
2.352 - case `/usr/bin/uname -p` in
2.353 - sparc) echo sparc-icl-nx7 && exit 0 ;;
2.354 - esac ;;
2.355 - sun4H:SunOS:5.*:*)
2.356 - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2.357 - exit 0 ;;
2.358 - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
2.359 - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2.360 - exit 0 ;;
2.361 - i86pc:SunOS:5.*:*)
2.362 - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2.363 - exit 0 ;;
2.364 - sun4*:SunOS:6*:*)
2.365 - # According to config.sub, this is the proper way to canonicalize
2.366 - # SunOS6. Hard to guess exactly what SunOS6 will be like, but
2.367 - # it's likely to be more like Solaris than SunOS4.
2.368 - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2.369 - exit 0 ;;
2.370 - sun4*:SunOS:*:*)
2.371 - case "`/usr/bin/arch -k`" in
2.372 - Series*|S4*)
2.373 - UNAME_RELEASE=`uname -v`
2.374 - ;;
2.375 - esac
2.376 - # Japanese Language versions have a version number like `4.1.3-JL'.
2.377 - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
2.378 - exit 0 ;;
2.379 - sun3*:SunOS:*:*)
2.380 - echo m68k-sun-sunos${UNAME_RELEASE}
2.381 - exit 0 ;;
2.382 - sun*:*:4.2BSD:*)
2.383 - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
2.384 - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
2.385 - case "`/bin/arch`" in
2.386 - sun3)
2.387 - echo m68k-sun-sunos${UNAME_RELEASE}
2.388 - ;;
2.389 - sun4)
2.390 - echo sparc-sun-sunos${UNAME_RELEASE}
2.391 - ;;
2.392 - esac
2.393 - exit 0 ;;
2.394 - aushp:SunOS:*:*)
2.395 - echo sparc-auspex-sunos${UNAME_RELEASE}
2.396 - exit 0 ;;
2.397 - # The situation for MiNT is a little confusing. The machine name
2.398 - # can be virtually everything (everything which is not
2.399 - # "atarist" or "atariste" at least should have a processor
2.400 - # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
2.401 - # to the lowercase version "mint" (or "freemint"). Finally
2.402 - # the system name "TOS" denotes a system which is actually not
2.403 - # MiNT. But MiNT is downward compatible to TOS, so this should
2.404 - # be no problem.
2.405 - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
2.406 - echo m68k-atari-mint${UNAME_RELEASE}
2.407 - exit 0 ;;
2.408 - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
2.409 - echo m68k-atari-mint${UNAME_RELEASE}
2.410 - exit 0 ;;
2.411 - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
2.412 - echo m68k-atari-mint${UNAME_RELEASE}
2.413 - exit 0 ;;
2.414 - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
2.415 - echo m68k-milan-mint${UNAME_RELEASE}
2.416 - exit 0 ;;
2.417 - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
2.418 - echo m68k-hades-mint${UNAME_RELEASE}
2.419 - exit 0 ;;
2.420 - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
2.421 - echo m68k-unknown-mint${UNAME_RELEASE}
2.422 - exit 0 ;;
2.423 - m68k:machten:*:*)
2.424 - echo m68k-apple-machten${UNAME_RELEASE}
2.425 - exit 0 ;;
2.426 - powerpc:machten:*:*)
2.427 - echo powerpc-apple-machten${UNAME_RELEASE}
2.428 - exit 0 ;;
2.429 - RISC*:Mach:*:*)
2.430 - echo mips-dec-mach_bsd4.3
2.431 - exit 0 ;;
2.432 - RISC*:ULTRIX:*:*)
2.433 - echo mips-dec-ultrix${UNAME_RELEASE}
2.434 - exit 0 ;;
2.435 - VAX*:ULTRIX*:*:*)
2.436 - echo vax-dec-ultrix${UNAME_RELEASE}
2.437 - exit 0 ;;
2.438 - 2020:CLIX:*:* | 2430:CLIX:*:*)
2.439 - echo clipper-intergraph-clix${UNAME_RELEASE}
2.440 - exit 0 ;;
2.441 - mips:*:*:UMIPS | mips:*:*:RISCos)
2.442 - eval $set_cc_for_build
2.443 - sed 's/^ //' << EOF >$dummy.c
2.444 -#ifdef __cplusplus
2.445 -#include <stdio.h> /* for printf() prototype */
2.446 - int main (int argc, char *argv[]) {
2.447 -#else
2.448 - int main (argc, argv) int argc; char *argv[]; {
2.449 -#endif
2.450 - #if defined (host_mips) && defined (MIPSEB)
2.451 - #if defined (SYSTYPE_SYSV)
2.452 - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
2.453 - #endif
2.454 - #if defined (SYSTYPE_SVR4)
2.455 - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
2.456 - #endif
2.457 - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
2.458 - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
2.459 - #endif
2.460 - #endif
2.461 - exit (-1);
2.462 - }
2.463 -EOF
2.464 - $CC_FOR_BUILD -o $dummy $dummy.c \
2.465 - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
2.466 - && exit 0
2.467 - echo mips-mips-riscos${UNAME_RELEASE}
2.468 - exit 0 ;;
2.469 - Motorola:PowerMAX_OS:*:*)
2.470 - echo powerpc-motorola-powermax
2.471 - exit 0 ;;
2.472 - Motorola:*:4.3:PL8-*)
2.473 - echo powerpc-harris-powermax
2.474 - exit 0 ;;
2.475 - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
2.476 - echo powerpc-harris-powermax
2.477 - exit 0 ;;
2.478 - Night_Hawk:Power_UNIX:*:*)
2.479 - echo powerpc-harris-powerunix
2.480 - exit 0 ;;
2.481 - m88k:CX/UX:7*:*)
2.482 - echo m88k-harris-cxux7
2.483 - exit 0 ;;
2.484 - m88k:*:4*:R4*)
2.485 - echo m88k-motorola-sysv4
2.486 - exit 0 ;;
2.487 - m88k:*:3*:R3*)
2.488 - echo m88k-motorola-sysv3
2.489 - exit 0 ;;
2.490 - AViiON:dgux:*:*)
2.491 - # DG/UX returns AViiON for all architectures
2.492 - UNAME_PROCESSOR=`/usr/bin/uname -p`
2.493 - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
2.494 - then
2.495 - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
2.496 - [ ${TARGET_BINARY_INTERFACE}x = x ]
2.497 - then
2.498 - echo m88k-dg-dgux${UNAME_RELEASE}
2.499 - else
2.500 - echo m88k-dg-dguxbcs${UNAME_RELEASE}
2.501 - fi
2.502 - else
2.503 - echo i586-dg-dgux${UNAME_RELEASE}
2.504 - fi
2.505 - exit 0 ;;
2.506 - M88*:DolphinOS:*:*) # DolphinOS (SVR3)
2.507 - echo m88k-dolphin-sysv3
2.508 - exit 0 ;;
2.509 - M88*:*:R3*:*)
2.510 - # Delta 88k system running SVR3
2.511 - echo m88k-motorola-sysv3
2.512 - exit 0 ;;
2.513 - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
2.514 - echo m88k-tektronix-sysv3
2.515 - exit 0 ;;
2.516 - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
2.517 - echo m68k-tektronix-bsd
2.518 - exit 0 ;;
2.519 - *:IRIX*:*:*)
2.520 - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
2.521 - exit 0 ;;
2.522 - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
2.523 - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
2.524 - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
2.525 - i*86:AIX:*:*)
2.526 - echo i386-ibm-aix
2.527 - exit 0 ;;
2.528 - ia64:AIX:*:*)
2.529 - if [ -x /usr/bin/oslevel ] ; then
2.530 - IBM_REV=`/usr/bin/oslevel`
2.531 - else
2.532 - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
2.533 - fi
2.534 - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
2.535 - exit 0 ;;
2.536 - *:AIX:2:3)
2.537 - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
2.538 - eval $set_cc_for_build
2.539 - sed 's/^ //' << EOF >$dummy.c
2.540 - #include <sys/systemcfg.h>
2.541 -
2.542 - main()
2.543 - {
2.544 - if (!__power_pc())
2.545 - exit(1);
2.546 - puts("powerpc-ibm-aix3.2.5");
2.547 - exit(0);
2.548 - }
2.549 -EOF
2.550 - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
2.551 - echo rs6000-ibm-aix3.2.5
2.552 - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
2.553 - echo rs6000-ibm-aix3.2.4
2.554 - else
2.555 - echo rs6000-ibm-aix3.2
2.556 - fi
2.557 - exit 0 ;;
2.558 - *:AIX:*:[45])
2.559 - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
2.560 - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
2.561 - IBM_ARCH=rs6000
2.562 - else
2.563 - IBM_ARCH=powerpc
2.564 - fi
2.565 - if [ -x /usr/bin/oslevel ] ; then
2.566 - IBM_REV=`/usr/bin/oslevel`
2.567 - else
2.568 - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
2.569 - fi
2.570 - echo ${IBM_ARCH}-ibm-aix${IBM_REV}
2.571 - exit 0 ;;
2.572 - *:AIX:*:*)
2.573 - echo rs6000-ibm-aix
2.574 - exit 0 ;;
2.575 - ibmrt:4.4BSD:*|romp-ibm:BSD:*)
2.576 - echo romp-ibm-bsd4.4
2.577 - exit 0 ;;
2.578 - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
2.579 - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
2.580 - exit 0 ;; # report: romp-ibm BSD 4.3
2.581 - *:BOSX:*:*)
2.582 - echo rs6000-bull-bosx
2.583 - exit 0 ;;
2.584 - DPX/2?00:B.O.S.:*:*)
2.585 - echo m68k-bull-sysv3
2.586 - exit 0 ;;
2.587 - 9000/[34]??:4.3bsd:1.*:*)
2.588 - echo m68k-hp-bsd
2.589 - exit 0 ;;
2.590 - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
2.591 - echo m68k-hp-bsd4.4
2.592 - exit 0 ;;
2.593 - 9000/[34678]??:HP-UX:*:*)
2.594 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
2.595 - case "${UNAME_MACHINE}" in
2.596 - 9000/31? ) HP_ARCH=m68000 ;;
2.597 - 9000/[34]?? ) HP_ARCH=m68k ;;
2.598 - 9000/[678][0-9][0-9])
2.599 - if [ -x /usr/bin/getconf ]; then
2.600 - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
2.601 - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
2.602 - case "${sc_cpu_version}" in
2.603 - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
2.604 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
2.605 - 532) # CPU_PA_RISC2_0
2.606 - case "${sc_kernel_bits}" in
2.607 - 32) HP_ARCH="hppa2.0n" ;;
2.608 - 64) HP_ARCH="hppa2.0w" ;;
2.609 - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
2.610 - esac ;;
2.611 - esac
2.612 - fi
2.613 - if [ "${HP_ARCH}" = "" ]; then
2.614 - eval $set_cc_for_build
2.615 - sed 's/^ //' << EOF >$dummy.c
2.616 -
2.617 - #define _HPUX_SOURCE
2.618 - #include <stdlib.h>
2.619 - #include <unistd.h>
2.620 -
2.621 - int main ()
2.622 - {
2.623 - #if defined(_SC_KERNEL_BITS)
2.624 - long bits = sysconf(_SC_KERNEL_BITS);
2.625 - #endif
2.626 - long cpu = sysconf (_SC_CPU_VERSION);
2.627 -
2.628 - switch (cpu)
2.629 - {
2.630 - case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
2.631 - case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
2.632 - case CPU_PA_RISC2_0:
2.633 - #if defined(_SC_KERNEL_BITS)
2.634 - switch (bits)
2.635 - {
2.636 - case 64: puts ("hppa2.0w"); break;
2.637 - case 32: puts ("hppa2.0n"); break;
2.638 - default: puts ("hppa2.0"); break;
2.639 - } break;
2.640 - #else /* !defined(_SC_KERNEL_BITS) */
2.641 - puts ("hppa2.0"); break;
2.642 - #endif
2.643 - default: puts ("hppa1.0"); break;
2.644 - }
2.645 - exit (0);
2.646 - }
2.647 -EOF
2.648 - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
2.649 - test -z "$HP_ARCH" && HP_ARCH=hppa
2.650 - fi ;;
2.651 - esac
2.652 - if [ ${HP_ARCH} = "hppa2.0w" ]
2.653 - then
2.654 - # avoid double evaluation of $set_cc_for_build
2.655 - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
2.656 - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
2.657 - then
2.658 - HP_ARCH="hppa2.0w"
2.659 - else
2.660 - HP_ARCH="hppa64"
2.661 - fi
2.662 - fi
2.663 - echo ${HP_ARCH}-hp-hpux${HPUX_REV}
2.664 - exit 0 ;;
2.665 - ia64:HP-UX:*:*)
2.666 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
2.667 - echo ia64-hp-hpux${HPUX_REV}
2.668 - exit 0 ;;
2.669 - 3050*:HI-UX:*:*)
2.670 - eval $set_cc_for_build
2.671 - sed 's/^ //' << EOF >$dummy.c
2.672 - #include <unistd.h>
2.673 - int
2.674 - main ()
2.675 - {
2.676 - long cpu = sysconf (_SC_CPU_VERSION);
2.677 - /* The order matters, because CPU_IS_HP_MC68K erroneously returns
2.678 - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
2.679 - results, however. */
2.680 - if (CPU_IS_PA_RISC (cpu))
2.681 - {
2.682 - switch (cpu)
2.683 - {
2.684 - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
2.685 - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
2.686 - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
2.687 - default: puts ("hppa-hitachi-hiuxwe2"); break;
2.688 - }
2.689 - }
2.690 - else if (CPU_IS_HP_MC68K (cpu))
2.691 - puts ("m68k-hitachi-hiuxwe2");
2.692 - else puts ("unknown-hitachi-hiuxwe2");
2.693 - exit (0);
2.694 - }
2.695 -EOF
2.696 - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
2.697 - echo unknown-hitachi-hiuxwe2
2.698 - exit 0 ;;
2.699 - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
2.700 - echo hppa1.1-hp-bsd
2.701 - exit 0 ;;
2.702 - 9000/8??:4.3bsd:*:*)
2.703 - echo hppa1.0-hp-bsd
2.704 - exit 0 ;;
2.705 - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
2.706 - echo hppa1.0-hp-mpeix
2.707 - exit 0 ;;
2.708 - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
2.709 - echo hppa1.1-hp-osf
2.710 - exit 0 ;;
2.711 - hp8??:OSF1:*:*)
2.712 - echo hppa1.0-hp-osf
2.713 - exit 0 ;;
2.714 - i*86:OSF1:*:*)
2.715 - if [ -x /usr/sbin/sysversion ] ; then
2.716 - echo ${UNAME_MACHINE}-unknown-osf1mk
2.717 - else
2.718 - echo ${UNAME_MACHINE}-unknown-osf1
2.719 - fi
2.720 - exit 0 ;;
2.721 - parisc*:Lites*:*:*)
2.722 - echo hppa1.1-hp-lites
2.723 - exit 0 ;;
2.724 - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
2.725 - echo c1-convex-bsd
2.726 - exit 0 ;;
2.727 - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
2.728 - if getsysinfo -f scalar_acc
2.729 - then echo c32-convex-bsd
2.730 - else echo c2-convex-bsd
2.731 - fi
2.732 - exit 0 ;;
2.733 - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
2.734 - echo c34-convex-bsd
2.735 - exit 0 ;;
2.736 - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
2.737 - echo c38-convex-bsd
2.738 - exit 0 ;;
2.739 - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
2.740 - echo c4-convex-bsd
2.741 - exit 0 ;;
2.742 - CRAY*Y-MP:*:*:*)
2.743 - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2.744 - exit 0 ;;
2.745 - CRAY*[A-Z]90:*:*:*)
2.746 - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
2.747 - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
2.748 - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
2.749 - -e 's/\.[^.]*$/.X/'
2.750 - exit 0 ;;
2.751 - CRAY*TS:*:*:*)
2.752 - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2.753 - exit 0 ;;
2.754 - CRAY*T3E:*:*:*)
2.755 - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2.756 - exit 0 ;;
2.757 - CRAY*SV1:*:*:*)
2.758 - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2.759 - exit 0 ;;
2.760 - *:UNICOS/mp:*:*)
2.761 - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2.762 - exit 0 ;;
2.763 - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
2.764 - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2.765 - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2.766 - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
2.767 - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2.768 - exit 0 ;;
2.769 - 5000:UNIX_System_V:4.*:*)
2.770 - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2.771 - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
2.772 - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2.773 - exit 0 ;;
2.774 - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
2.775 - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
2.776 - exit 0 ;;
2.777 - sparc*:BSD/OS:*:*)
2.778 - echo sparc-unknown-bsdi${UNAME_RELEASE}
2.779 - exit 0 ;;
2.780 - *:BSD/OS:*:*)
2.781 - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
2.782 - exit 0 ;;
2.783 - *:FreeBSD:*:*)
2.784 - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
2.785 - exit 0 ;;
2.786 - i*:CYGWIN*:*)
2.787 - echo ${UNAME_MACHINE}-pc-cygwin
2.788 - exit 0 ;;
2.789 - i*:MINGW*:*)
2.790 - echo ${UNAME_MACHINE}-pc-mingw32
2.791 - exit 0 ;;
2.792 - i*:PW*:*)
2.793 - echo ${UNAME_MACHINE}-pc-pw32
2.794 - exit 0 ;;
2.795 - x86:Interix*:[34]*)
2.796 - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
2.797 - exit 0 ;;
2.798 - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
2.799 - echo i${UNAME_MACHINE}-pc-mks
2.800 - exit 0 ;;
2.801 - i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
2.802 - # How do we know it's Interix rather than the generic POSIX subsystem?
2.803 - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
2.804 - # UNAME_MACHINE based on the output of uname instead of i386?
2.805 - echo i586-pc-interix
2.806 - exit 0 ;;
2.807 - i*:UWIN*:*)
2.808 - echo ${UNAME_MACHINE}-pc-uwin
2.809 - exit 0 ;;
2.810 - amd64:CYGWIN*:*:*)
2.811 - echo x86_64-unknown-cygwin
2.812 - exit 0 ;;
2.813 - p*:CYGWIN*:*)
2.814 - echo powerpcle-unknown-cygwin
2.815 - exit 0 ;;
2.816 - prep*:SunOS:5.*:*)
2.817 - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2.818 - exit 0 ;;
2.819 - *:GNU:*:*)
2.820 - # the GNU system
2.821 - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
2.822 - exit 0 ;;
2.823 - *:GNU/*:*:*)
2.824 - # other systems with GNU libc and userland
2.825 - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
2.826 - exit 0 ;;
2.827 - i*86:Minix:*:*)
2.828 - echo ${UNAME_MACHINE}-pc-minix
2.829 - exit 0 ;;
2.830 - arm*:Linux:*:*)
2.831 - echo ${UNAME_MACHINE}-unknown-linux-gnu
2.832 - exit 0 ;;
2.833 - cris:Linux:*:*)
2.834 - echo cris-axis-linux-gnu
2.835 - exit 0 ;;
2.836 - crisv32:Linux:*:*)
2.837 - echo crisv32-axis-linux-gnu
2.838 - exit 0 ;;
2.839 - frv:Linux:*:*)
2.840 - echo frv-unknown-linux-gnu
2.841 - exit 0 ;;
2.842 - ia64:Linux:*:*)
2.843 - echo ${UNAME_MACHINE}-unknown-linux-gnu
2.844 - exit 0 ;;
2.845 - m32r*:Linux:*:*)
2.846 - echo ${UNAME_MACHINE}-unknown-linux-gnu
2.847 - exit 0 ;;
2.848 - m68*:Linux:*:*)
2.849 - echo ${UNAME_MACHINE}-unknown-linux-gnu
2.850 - exit 0 ;;
2.851 - mips:Linux:*:*)
2.852 - eval $set_cc_for_build
2.853 - sed 's/^ //' << EOF >$dummy.c
2.854 - #undef CPU
2.855 - #undef mips
2.856 - #undef mipsel
2.857 - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
2.858 - CPU=mipsel
2.859 - #else
2.860 - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
2.861 - CPU=mips
2.862 - #else
2.863 - CPU=
2.864 - #endif
2.865 - #endif
2.866 -EOF
2.867 - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
2.868 - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
2.869 - ;;
2.870 - mips64:Linux:*:*)
2.871 - eval $set_cc_for_build
2.872 - sed 's/^ //' << EOF >$dummy.c
2.873 - #undef CPU
2.874 - #undef mips64
2.875 - #undef mips64el
2.876 - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
2.877 - CPU=mips64el
2.878 - #else
2.879 - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
2.880 - CPU=mips64
2.881 - #else
2.882 - CPU=
2.883 - #endif
2.884 - #endif
2.885 -EOF
2.886 - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
2.887 - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
2.888 - ;;
2.889 - ppc:Linux:*:*)
2.890 - echo powerpc-unknown-linux-gnu
2.891 - exit 0 ;;
2.892 - ppc64:Linux:*:*)
2.893 - echo powerpc64-unknown-linux-gnu
2.894 - exit 0 ;;
2.895 - alpha:Linux:*:*)
2.896 - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
2.897 - EV5) UNAME_MACHINE=alphaev5 ;;
2.898 - EV56) UNAME_MACHINE=alphaev56 ;;
2.899 - PCA56) UNAME_MACHINE=alphapca56 ;;
2.900 - PCA57) UNAME_MACHINE=alphapca56 ;;
2.901 - EV6) UNAME_MACHINE=alphaev6 ;;
2.902 - EV67) UNAME_MACHINE=alphaev67 ;;
2.903 - EV68*) UNAME_MACHINE=alphaev68 ;;
2.904 - esac
2.905 - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
2.906 - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
2.907 - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
2.908 - exit 0 ;;
2.909 - parisc:Linux:*:* | hppa:Linux:*:*)
2.910 - # Look for CPU level
2.911 - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
2.912 - PA7*) echo hppa1.1-unknown-linux-gnu ;;
2.913 - PA8*) echo hppa2.0-unknown-linux-gnu ;;
2.914 - *) echo hppa-unknown-linux-gnu ;;
2.915 - esac
2.916 - exit 0 ;;
2.917 - parisc64:Linux:*:* | hppa64:Linux:*:*)
2.918 - echo hppa64-unknown-linux-gnu
2.919 - exit 0 ;;
2.920 - s390:Linux:*:* | s390x:Linux:*:*)
2.921 - echo ${UNAME_MACHINE}-ibm-linux
2.922 - exit 0 ;;
2.923 - sh64*:Linux:*:*)
2.924 - echo ${UNAME_MACHINE}-unknown-linux-gnu
2.925 - exit 0 ;;
2.926 - sh*:Linux:*:*)
2.927 - echo ${UNAME_MACHINE}-unknown-linux-gnu
2.928 - exit 0 ;;
2.929 - sparc:Linux:*:* | sparc64:Linux:*:*)
2.930 - echo ${UNAME_MACHINE}-unknown-linux-gnu
2.931 - exit 0 ;;
2.932 - x86_64:Linux:*:*)
2.933 - echo x86_64-unknown-linux-gnu
2.934 - exit 0 ;;
2.935 - i*86:Linux:*:*)
2.936 - # The BFD linker knows what the default object file format is, so
2.937 - # first see if it will tell us. cd to the root directory to prevent
2.938 - # problems with other programs or directories called `ld' in the path.
2.939 - # Set LC_ALL=C to ensure ld outputs messages in English.
2.940 - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
2.941 - | sed -ne '/supported targets:/!d
2.942 - s/[ ][ ]*/ /g
2.943 - s/.*supported targets: *//
2.944 - s/ .*//
2.945 - p'`
2.946 - case "$ld_supported_targets" in
2.947 - elf32-i386)
2.948 - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
2.949 - ;;
2.950 - a.out-i386-linux)
2.951 - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
2.952 - exit 0 ;;
2.953 - coff-i386)
2.954 - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
2.955 - exit 0 ;;
2.956 - "")
2.957 - # Either a pre-BFD a.out linker (linux-gnuoldld) or
2.958 - # one that does not give us useful --help.
2.959 - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
2.960 - exit 0 ;;
2.961 - esac
2.962 - # Determine whether the default compiler is a.out or elf
2.963 - eval $set_cc_for_build
2.964 - sed 's/^ //' << EOF >$dummy.c
2.965 - #include <features.h>
2.966 - #ifdef __ELF__
2.967 - # ifdef __GLIBC__
2.968 - # if __GLIBC__ >= 2
2.969 - LIBC=gnu
2.970 - # else
2.971 - LIBC=gnulibc1
2.972 - # endif
2.973 - # else
2.974 - LIBC=gnulibc1
2.975 - # endif
2.976 - #else
2.977 - #ifdef __INTEL_COMPILER
2.978 - LIBC=gnu
2.979 - #else
2.980 - LIBC=gnuaout
2.981 - #endif
2.982 - #endif
2.983 - #ifdef __dietlibc__
2.984 - LIBC=dietlibc
2.985 - #endif
2.986 -EOF
2.987 - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
2.988 - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
2.989 - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
2.990 - ;;
2.991 - i*86:DYNIX/ptx:4*:*)
2.992 - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
2.993 - # earlier versions are messed up and put the nodename in both
2.994 - # sysname and nodename.
2.995 - echo i386-sequent-sysv4
2.996 - exit 0 ;;
2.997 - i*86:UNIX_SV:4.2MP:2.*)
2.998 - # Unixware is an offshoot of SVR4, but it has its own version
2.999 - # number series starting with 2...
2.1000 - # I am not positive that other SVR4 systems won't match this,
2.1001 - # I just have to hope. -- rms.
2.1002 - # Use sysv4.2uw... so that sysv4* matches it.
2.1003 - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
2.1004 - exit 0 ;;
2.1005 - i*86:OS/2:*:*)
2.1006 - # If we were able to find `uname', then EMX Unix compatibility
2.1007 - # is probably installed.
2.1008 - echo ${UNAME_MACHINE}-pc-os2-emx
2.1009 - exit 0 ;;
2.1010 - i*86:XTS-300:*:STOP)
2.1011 - echo ${UNAME_MACHINE}-unknown-stop
2.1012 - exit 0 ;;
2.1013 - i*86:atheos:*:*)
2.1014 - echo ${UNAME_MACHINE}-unknown-atheos
2.1015 - exit 0 ;;
2.1016 - i*86:syllable:*:*)
2.1017 - echo ${UNAME_MACHINE}-pc-syllable
2.1018 - exit 0 ;;
2.1019 - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
2.1020 - echo i386-unknown-lynxos${UNAME_RELEASE}
2.1021 - exit 0 ;;
2.1022 - i*86:*DOS:*:*)
2.1023 - echo ${UNAME_MACHINE}-pc-msdosdjgpp
2.1024 - exit 0 ;;
2.1025 - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
2.1026 - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
2.1027 - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
2.1028 - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
2.1029 - else
2.1030 - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
2.1031 - fi
2.1032 - exit 0 ;;
2.1033 - i*86:*:5:[78]*)
2.1034 - case `/bin/uname -X | grep "^Machine"` in
2.1035 - *486*) UNAME_MACHINE=i486 ;;
2.1036 - *Pentium) UNAME_MACHINE=i586 ;;
2.1037 - *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
2.1038 - esac
2.1039 - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
2.1040 - exit 0 ;;
2.1041 - i*86:*:3.2:*)
2.1042 - if test -f /usr/options/cb.name; then
2.1043 - UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
2.1044 - echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
2.1045 - elif /bin/uname -X 2>/dev/null >/dev/null ; then
2.1046 - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
2.1047 - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
2.1048 - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
2.1049 - && UNAME_MACHINE=i586
2.1050 - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
2.1051 - && UNAME_MACHINE=i686
2.1052 - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
2.1053 - && UNAME_MACHINE=i686
2.1054 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
2.1055 - else
2.1056 - echo ${UNAME_MACHINE}-pc-sysv32
2.1057 - fi
2.1058 - exit 0 ;;
2.1059 - pc:*:*:*)
2.1060 - # Left here for compatibility:
2.1061 - # uname -m prints for DJGPP always 'pc', but it prints nothing about
2.1062 - # the processor, so we play safe by assuming i386.
2.1063 - echo i386-pc-msdosdjgpp
2.1064 - exit 0 ;;
2.1065 - Intel:Mach:3*:*)
2.1066 - echo i386-pc-mach3
2.1067 - exit 0 ;;
2.1068 - paragon:*:*:*)
2.1069 - echo i860-intel-osf1
2.1070 - exit 0 ;;
2.1071 - i860:*:4.*:*) # i860-SVR4
2.1072 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
2.1073 - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
2.1074 - else # Add other i860-SVR4 vendors below as they are discovered.
2.1075 - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
2.1076 - fi
2.1077 - exit 0 ;;
2.1078 - mini*:CTIX:SYS*5:*)
2.1079 - # "miniframe"
2.1080 - echo m68010-convergent-sysv
2.1081 - exit 0 ;;
2.1082 - mc68k:UNIX:SYSTEM5:3.51m)
2.1083 - echo m68k-convergent-sysv
2.1084 - exit 0 ;;
2.1085 - M680?0:D-NIX:5.3:*)
2.1086 - echo m68k-diab-dnix
2.1087 - exit 0 ;;
2.1088 - M68*:*:R3V[5678]*:*)
2.1089 - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
2.1090 - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
2.1091 - OS_REL=''
2.1092 - test -r /etc/.relid \
2.1093 - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
2.1094 - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
2.1095 - && echo i486-ncr-sysv4.3${OS_REL} && exit 0
2.1096 - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
2.1097 - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
2.1098 - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
2.1099 - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
2.1100 - && echo i486-ncr-sysv4 && exit 0 ;;
2.1101 - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
2.1102 - echo m68k-unknown-lynxos${UNAME_RELEASE}
2.1103 - exit 0 ;;
2.1104 - mc68030:UNIX_System_V:4.*:*)
2.1105 - echo m68k-atari-sysv4
2.1106 - exit 0 ;;
2.1107 - TSUNAMI:LynxOS:2.*:*)
2.1108 - echo sparc-unknown-lynxos${UNAME_RELEASE}
2.1109 - exit 0 ;;
2.1110 - rs6000:LynxOS:2.*:*)
2.1111 - echo rs6000-unknown-lynxos${UNAME_RELEASE}
2.1112 - exit 0 ;;
2.1113 - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
2.1114 - echo powerpc-unknown-lynxos${UNAME_RELEASE}
2.1115 - exit 0 ;;
2.1116 - SM[BE]S:UNIX_SV:*:*)
2.1117 - echo mips-dde-sysv${UNAME_RELEASE}
2.1118 - exit 0 ;;
2.1119 - RM*:ReliantUNIX-*:*:*)
2.1120 - echo mips-sni-sysv4
2.1121 - exit 0 ;;
2.1122 - RM*:SINIX-*:*:*)
2.1123 - echo mips-sni-sysv4
2.1124 - exit 0 ;;
2.1125 - *:SINIX-*:*:*)
2.1126 - if uname -p 2>/dev/null >/dev/null ; then
2.1127 - UNAME_MACHINE=`(uname -p) 2>/dev/null`
2.1128 - echo ${UNAME_MACHINE}-sni-sysv4
2.1129 - else
2.1130 - echo ns32k-sni-sysv
2.1131 - fi
2.1132 - exit 0 ;;
2.1133 - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
2.1134 - # says <Richard.M.Bartel@ccMail.Census.GOV>
2.1135 - echo i586-unisys-sysv4
2.1136 - exit 0 ;;
2.1137 - *:UNIX_System_V:4*:FTX*)
2.1138 - # From Gerald Hewes <hewes@openmarket.com>.
2.1139 - # How about differentiating between stratus architectures? -djm
2.1140 - echo hppa1.1-stratus-sysv4
2.1141 - exit 0 ;;
2.1142 - *:*:*:FTX*)
2.1143 - # From seanf@swdc.stratus.com.
2.1144 - echo i860-stratus-sysv4
2.1145 - exit 0 ;;
2.1146 - i*86:VOS:*:*)
2.1147 - # From Paul.Green@stratus.com.
2.1148 - echo ${UNAME_MACHINE}-stratus-vos
2.1149 - exit 0 ;;
2.1150 - *:VOS:*:*)
2.1151 - # From Paul.Green@stratus.com.
2.1152 - echo hppa1.1-stratus-vos
2.1153 - exit 0 ;;
2.1154 - mc68*:A/UX:*:*)
2.1155 - echo m68k-apple-aux${UNAME_RELEASE}
2.1156 - exit 0 ;;
2.1157 - news*:NEWS-OS:6*:*)
2.1158 - echo mips-sony-newsos6
2.1159 - exit 0 ;;
2.1160 - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
2.1161 - if [ -d /usr/nec ]; then
2.1162 - echo mips-nec-sysv${UNAME_RELEASE}
2.1163 - else
2.1164 - echo mips-unknown-sysv${UNAME_RELEASE}
2.1165 - fi
2.1166 - exit 0 ;;
2.1167 - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
2.1168 - echo powerpc-be-beos
2.1169 - exit 0 ;;
2.1170 - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
2.1171 - echo powerpc-apple-beos
2.1172 - exit 0 ;;
2.1173 - BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
2.1174 - echo i586-pc-beos
2.1175 - exit 0 ;;
2.1176 - SX-4:SUPER-UX:*:*)
2.1177 - echo sx4-nec-superux${UNAME_RELEASE}
2.1178 - exit 0 ;;
2.1179 - SX-5:SUPER-UX:*:*)
2.1180 - echo sx5-nec-superux${UNAME_RELEASE}
2.1181 - exit 0 ;;
2.1182 - SX-6:SUPER-UX:*:*)
2.1183 - echo sx6-nec-superux${UNAME_RELEASE}
2.1184 - exit 0 ;;
2.1185 - Power*:Rhapsody:*:*)
2.1186 - echo powerpc-apple-rhapsody${UNAME_RELEASE}
2.1187 - exit 0 ;;
2.1188 - *:Rhapsody:*:*)
2.1189 - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
2.1190 - exit 0 ;;
2.1191 - *:Darwin:*:*)
2.1192 - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
2.1193 - case $UNAME_PROCESSOR in
2.1194 - *86) UNAME_PROCESSOR=i686 ;;
2.1195 - unknown) UNAME_PROCESSOR=powerpc ;;
2.1196 - esac
2.1197 - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
2.1198 - exit 0 ;;
2.1199 - *:procnto*:*:* | *:QNX:[0123456789]*:*)
2.1200 - UNAME_PROCESSOR=`uname -p`
2.1201 - if test "$UNAME_PROCESSOR" = "x86"; then
2.1202 - UNAME_PROCESSOR=i386
2.1203 - UNAME_MACHINE=pc
2.1204 - fi
2.1205 - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
2.1206 - exit 0 ;;
2.1207 - *:QNX:*:4*)
2.1208 - echo i386-pc-qnx
2.1209 - exit 0 ;;
2.1210 - NSE-?:NONSTOP_KERNEL:*:*)
2.1211 - echo nse-tandem-nsk${UNAME_RELEASE}
2.1212 - exit 0 ;;
2.1213 - NSR-?:NONSTOP_KERNEL:*:*)
2.1214 - echo nsr-tandem-nsk${UNAME_RELEASE}
2.1215 - exit 0 ;;
2.1216 - *:NonStop-UX:*:*)
2.1217 - echo mips-compaq-nonstopux
2.1218 - exit 0 ;;
2.1219 - BS2000:POSIX*:*:*)
2.1220 - echo bs2000-siemens-sysv
2.1221 - exit 0 ;;
2.1222 - DS/*:UNIX_System_V:*:*)
2.1223 - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
2.1224 - exit 0 ;;
2.1225 - *:Plan9:*:*)
2.1226 - # "uname -m" is not consistent, so use $cputype instead. 386
2.1227 - # is converted to i386 for consistency with other x86
2.1228 - # operating systems.
2.1229 - if test "$cputype" = "386"; then
2.1230 - UNAME_MACHINE=i386
2.1231 - else
2.1232 - UNAME_MACHINE="$cputype"
2.1233 - fi
2.1234 - echo ${UNAME_MACHINE}-unknown-plan9
2.1235 - exit 0 ;;
2.1236 - *:TOPS-10:*:*)
2.1237 - echo pdp10-unknown-tops10
2.1238 - exit 0 ;;
2.1239 - *:TENEX:*:*)
2.1240 - echo pdp10-unknown-tenex
2.1241 - exit 0 ;;
2.1242 - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
2.1243 - echo pdp10-dec-tops20
2.1244 - exit 0 ;;
2.1245 - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
2.1246 - echo pdp10-xkl-tops20
2.1247 - exit 0 ;;
2.1248 - *:TOPS-20:*:*)
2.1249 - echo pdp10-unknown-tops20
2.1250 - exit 0 ;;
2.1251 - *:ITS:*:*)
2.1252 - echo pdp10-unknown-its
2.1253 - exit 0 ;;
2.1254 - SEI:*:*:SEIUX)
2.1255 - echo mips-sei-seiux${UNAME_RELEASE}
2.1256 - exit 0 ;;
2.1257 - *:DragonFly:*:*)
2.1258 - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
2.1259 - exit 0 ;;
2.1260 - *:*VMS:*:*)
2.1261 - UNAME_MACHINE=`(uname -p) 2>/dev/null`
2.1262 - case "${UNAME_MACHINE}" in
2.1263 - A*) echo alpha-dec-vms && exit 0 ;;
2.1264 - I*) echo ia64-dec-vms && exit 0 ;;
2.1265 - V*) echo vax-dec-vms && exit 0 ;;
2.1266 - esac ;;
2.1267 - *:XENIX:*:SysV)
2.1268 - echo i386-pc-xenix
2.1269 - exit 0 ;;
2.1270 -esac
2.1271 -
2.1272 -#echo '(No uname command or uname output not recognized.)' 1>&2
2.1273 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
2.1274 -
2.1275 -eval $set_cc_for_build
2.1276 -cat >$dummy.c <<EOF
2.1277 -#ifdef _SEQUENT_
2.1278 -# include <sys/types.h>
2.1279 -# include <sys/utsname.h>
2.1280 -#endif
2.1281 -main ()
2.1282 -{
2.1283 -#if defined (sony)
2.1284 -#if defined (MIPSEB)
2.1285 - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
2.1286 - I don't know.... */
2.1287 - printf ("mips-sony-bsd\n"); exit (0);
2.1288 -#else
2.1289 -#include <sys/param.h>
2.1290 - printf ("m68k-sony-newsos%s\n",
2.1291 -#ifdef NEWSOS4
2.1292 - "4"
2.1293 -#else
2.1294 - ""
2.1295 -#endif
2.1296 - ); exit (0);
2.1297 -#endif
2.1298 -#endif
2.1299 -
2.1300 -#if defined (__arm) && defined (__acorn) && defined (__unix)
2.1301 - printf ("arm-acorn-riscix"); exit (0);
2.1302 -#endif
2.1303 -
2.1304 -#if defined (hp300) && !defined (hpux)
2.1305 - printf ("m68k-hp-bsd\n"); exit (0);
2.1306 -#endif
2.1307 -
2.1308 -#if defined (NeXT)
2.1309 -#if !defined (__ARCHITECTURE__)
2.1310 -#define __ARCHITECTURE__ "m68k"
2.1311 -#endif
2.1312 - int version;
2.1313 - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
2.1314 - if (version < 4)
2.1315 - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
2.1316 - else
2.1317 - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
2.1318 - exit (0);
2.1319 -#endif
2.1320 -
2.1321 -#if defined (MULTIMAX) || defined (n16)
2.1322 -#if defined (UMAXV)
2.1323 - printf ("ns32k-encore-sysv\n"); exit (0);
2.1324 -#else
2.1325 -#if defined (CMU)
2.1326 - printf ("ns32k-encore-mach\n"); exit (0);
2.1327 -#else
2.1328 - printf ("ns32k-encore-bsd\n"); exit (0);
2.1329 -#endif
2.1330 -#endif
2.1331 -#endif
2.1332 -
2.1333 -#if defined (__386BSD__)
2.1334 - printf ("i386-pc-bsd\n"); exit (0);
2.1335 -#endif
2.1336 -
2.1337 -#if defined (sequent)
2.1338 -#if defined (i386)
2.1339 - printf ("i386-sequent-dynix\n"); exit (0);
2.1340 -#endif
2.1341 -#if defined (ns32000)
2.1342 - printf ("ns32k-sequent-dynix\n"); exit (0);
2.1343 -#endif
2.1344 -#endif
2.1345 -
2.1346 -#if defined (_SEQUENT_)
2.1347 - struct utsname un;
2.1348 -
2.1349 - uname(&un);
2.1350 -
2.1351 - if (strncmp(un.version, "V2", 2) == 0) {
2.1352 - printf ("i386-sequent-ptx2\n"); exit (0);
2.1353 - }
2.1354 - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
2.1355 - printf ("i386-sequent-ptx1\n"); exit (0);
2.1356 - }
2.1357 - printf ("i386-sequent-ptx\n"); exit (0);
2.1358 -
2.1359 -#endif
2.1360 -
2.1361 -#if defined (vax)
2.1362 -# if !defined (ultrix)
2.1363 -# include <sys/param.h>
2.1364 -# if defined (BSD)
2.1365 -# if BSD == 43
2.1366 - printf ("vax-dec-bsd4.3\n"); exit (0);
2.1367 -# else
2.1368 -# if BSD == 199006
2.1369 - printf ("vax-dec-bsd4.3reno\n"); exit (0);
2.1370 -# else
2.1371 - printf ("vax-dec-bsd\n"); exit (0);
2.1372 -# endif
2.1373 -# endif
2.1374 -# else
2.1375 - printf ("vax-dec-bsd\n"); exit (0);
2.1376 -# endif
2.1377 -# else
2.1378 - printf ("vax-dec-ultrix\n"); exit (0);
2.1379 -# endif
2.1380 -#endif
2.1381 -
2.1382 -#if defined (alliant) && defined (i860)
2.1383 - printf ("i860-alliant-bsd\n"); exit (0);
2.1384 -#endif
2.1385 -
2.1386 - exit (1);
2.1387 -}
2.1388 -EOF
2.1389 -
2.1390 -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
2.1391 -
2.1392 -# Apollos put the system type in the environment.
2.1393 -
2.1394 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
2.1395 -
2.1396 -# Convex versions that predate uname can use getsysinfo(1)
2.1397 -
2.1398 -if [ -x /usr/convex/getsysinfo ]
2.1399 -then
2.1400 - case `getsysinfo -f cpu_type` in
2.1401 - c1*)
2.1402 - echo c1-convex-bsd
2.1403 - exit 0 ;;
2.1404 - c2*)
2.1405 - if getsysinfo -f scalar_acc
2.1406 - then echo c32-convex-bsd
2.1407 - else echo c2-convex-bsd
2.1408 - fi
2.1409 - exit 0 ;;
2.1410 - c34*)
2.1411 - echo c34-convex-bsd
2.1412 - exit 0 ;;
2.1413 - c38*)
2.1414 - echo c38-convex-bsd
2.1415 - exit 0 ;;
2.1416 - c4*)
2.1417 - echo c4-convex-bsd
2.1418 - exit 0 ;;
2.1419 - esac
2.1420 -fi
2.1421 -
2.1422 -cat >&2 <<EOF
2.1423 -$0: unable to guess system type
2.1424 -
2.1425 -This script, last modified $timestamp, has failed to recognize
2.1426 -the operating system you are using. It is advised that you
2.1427 -download the most up to date version of the config scripts from
2.1428 -
2.1429 - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
2.1430 -and
2.1431 - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
2.1432 -
2.1433 -If the version you run ($0) is already up to date, please
2.1434 -send the following data and any information you think might be
2.1435 -pertinent to <config-patches@gnu.org> in order to provide the needed
2.1436 -information to handle your system.
2.1437 -
2.1438 -config.guess timestamp = $timestamp
2.1439 -
2.1440 -uname -m = `(uname -m) 2>/dev/null || echo unknown`
2.1441 -uname -r = `(uname -r) 2>/dev/null || echo unknown`
2.1442 -uname -s = `(uname -s) 2>/dev/null || echo unknown`
2.1443 -uname -v = `(uname -v) 2>/dev/null || echo unknown`
2.1444 -
2.1445 -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
2.1446 -/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
2.1447 -
2.1448 -hostinfo = `(hostinfo) 2>/dev/null`
2.1449 -/bin/universe = `(/bin/universe) 2>/dev/null`
2.1450 -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
2.1451 -/bin/arch = `(/bin/arch) 2>/dev/null`
2.1452 -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
2.1453 -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
2.1454 -
2.1455 -UNAME_MACHINE = ${UNAME_MACHINE}
2.1456 -UNAME_RELEASE = ${UNAME_RELEASE}
2.1457 -UNAME_SYSTEM = ${UNAME_SYSTEM}
2.1458 -UNAME_VERSION = ${UNAME_VERSION}
2.1459 -EOF
2.1460 -
2.1461 -exit 1
2.1462 -
2.1463 -# Local variables:
2.1464 -# eval: (add-hook 'write-file-hooks 'time-stamp)
2.1465 -# time-stamp-start: "timestamp='"
2.1466 -# time-stamp-format: "%:y-%02m-%02d"
2.1467 -# time-stamp-end: "'"
2.1468 -# End:
3.1 --- a/gst-plugins-mythtv/config.sub Thu Sep 21 14:26:37 2006 +0100
3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
3.3 @@ -1,1569 +0,0 @@
3.4 -#! /bin/sh
3.5 -# Configuration validation subroutine script.
3.6 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3.7 -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
3.8 -
3.9 -timestamp='2005-04-22'
3.10 -
3.11 -# This file is (in principle) common to ALL GNU software.
3.12 -# The presence of a machine in this file suggests that SOME GNU software
3.13 -# can handle that machine. It does not imply ALL GNU software can.
3.14 -#
3.15 -# This file is free software; you can redistribute it and/or modify
3.16 -# it under the terms of the GNU General Public License as published by
3.17 -# the Free Software Foundation; either version 2 of the License, or
3.18 -# (at your option) any later version.
3.19 -#
3.20 -# This program is distributed in the hope that it will be useful,
3.21 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
3.22 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3.23 -# GNU General Public License for more details.
3.24 -#
3.25 -# You should have received a copy of the GNU General Public License
3.26 -# along with this program; if not, write to the Free Software
3.27 -# Foundation, Inc., 59 Temple Place - Suite 330,
3.28 -# Boston, MA 02111-1307, USA.
3.29 -
3.30 -# As a special exception to the GNU General Public License, if you
3.31 -# distribute this file as part of a program that contains a
3.32 -# configuration script generated by Autoconf, you may include it under
3.33 -# the same distribution terms that you use for the rest of that program.
3.34 -
3.35 -# Please send patches to <config-patches@gnu.org>. Submit a context
3.36 -# diff and a properly formatted ChangeLog entry.
3.37 -#
3.38 -# Configuration subroutine to validate and canonicalize a configuration type.
3.39 -# Supply the specified configuration type as an argument.
3.40 -# If it is invalid, we print an error message on stderr and exit with code 1.
3.41 -# Otherwise, we print the canonical config type on stdout and succeed.
3.42 -
3.43 -# This file is supposed to be the same for all GNU packages
3.44 -# and recognize all the CPU types, system types and aliases
3.45 -# that are meaningful with *any* GNU software.
3.46 -# Each package is responsible for reporting which valid configurations
3.47 -# it does not support. The user should be able to distinguish
3.48 -# a failure to support a valid configuration from a meaningless
3.49 -# configuration.
3.50 -
3.51 -# The goal of this file is to map all the various variations of a given
3.52 -# machine specification into a single specification in the form:
3.53 -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
3.54 -# or in some cases, the newer four-part form:
3.55 -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
3.56 -# It is wrong to echo any other type of specification.
3.57 -
3.58 -me=`echo "$0" | sed -e 's,.*/,,'`
3.59 -
3.60 -usage="\
3.61 -Usage: $0 [OPTION] CPU-MFR-OPSYS
3.62 - $0 [OPTION] ALIAS
3.63 -
3.64 -Canonicalize a configuration name.
3.65 -
3.66 -Operation modes:
3.67 - -h, --help print this help, then exit
3.68 - -t, --time-stamp print date of last modification, then exit
3.69 - -v, --version print version number, then exit
3.70 -
3.71 -Report bugs and patches to <config-patches@gnu.org>."
3.72 -
3.73 -version="\
3.74 -GNU config.sub ($timestamp)
3.75 -
3.76 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
3.77 -Free Software Foundation, Inc.
3.78 -
3.79 -This is free software; see the source for copying conditions. There is NO
3.80 -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
3.81 -
3.82 -help="
3.83 -Try \`$me --help' for more information."
3.84 -
3.85 -# Parse command line
3.86 -while test $# -gt 0 ; do
3.87 - case $1 in
3.88 - --time-stamp | --time* | -t )
3.89 - echo "$timestamp" ; exit 0 ;;
3.90 - --version | -v )
3.91 - echo "$version" ; exit 0 ;;
3.92 - --help | --h* | -h )
3.93 - echo "$usage"; exit 0 ;;
3.94 - -- ) # Stop option processing
3.95 - shift; break ;;
3.96 - - ) # Use stdin as input.
3.97 - break ;;
3.98 - -* )
3.99 - echo "$me: invalid option $1$help"
3.100 - exit 1 ;;
3.101 -
3.102 - *local*)
3.103 - # First pass through any local machine types.
3.104 - echo $1
3.105 - exit 0;;
3.106 -
3.107 - * )
3.108 - break ;;
3.109 - esac
3.110 -done
3.111 -
3.112 -case $# in
3.113 - 0) echo "$me: missing argument$help" >&2
3.114 - exit 1;;
3.115 - 1) ;;
3.116 - *) echo "$me: too many arguments$help" >&2
3.117 - exit 1;;
3.118 -esac
3.119 -
3.120 -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
3.121 -# Here we must recognize all the valid KERNEL-OS combinations.
3.122 -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
3.123 -case $maybe_os in
3.124 - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
3.125 - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
3.126 - os=-$maybe_os
3.127 - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
3.128 - ;;
3.129 - *)
3.130 - basic_machine=`echo $1 | sed 's/-[^-]*$//'`
3.131 - if [ $basic_machine != $1 ]
3.132 - then os=`echo $1 | sed 's/.*-/-/'`
3.133 - else os=; fi
3.134 - ;;
3.135 -esac
3.136 -
3.137 -### Let's recognize common machines as not being operating systems so
3.138 -### that things like config.sub decstation-3100 work. We also
3.139 -### recognize some manufacturers as not being operating systems, so we
3.140 -### can provide default operating systems below.
3.141 -case $os in
3.142 - -sun*os*)
3.143 - # Prevent following clause from handling this invalid input.
3.144 - ;;
3.145 - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
3.146 - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
3.147 - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
3.148 - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
3.149 - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
3.150 - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
3.151 - -apple | -axis | -knuth | -cray)
3.152 - os=
3.153 - basic_machine=$1
3.154 - ;;
3.155 - -sim | -cisco | -oki | -wec | -winbond)
3.156 - os=
3.157 - basic_machine=$1
3.158 - ;;
3.159 - -scout)
3.160 - ;;
3.161 - -wrs)
3.162 - os=-vxworks
3.163 - basic_machine=$1
3.164 - ;;
3.165 - -chorusos*)
3.166 - os=-chorusos
3.167 - basic_machine=$1
3.168 - ;;
3.169 - -chorusrdb)
3.170 - os=-chorusrdb
3.171 - basic_machine=$1
3.172 - ;;
3.173 - -hiux*)
3.174 - os=-hiuxwe2
3.175 - ;;
3.176 - -sco5)
3.177 - os=-sco3.2v5
3.178 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3.179 - ;;
3.180 - -sco4)
3.181 - os=-sco3.2v4
3.182 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3.183 - ;;
3.184 - -sco3.2.[4-9]*)
3.185 - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
3.186 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3.187 - ;;
3.188 - -sco3.2v[4-9]*)
3.189 - # Don't forget version if it is 3.2v4 or newer.
3.190 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3.191 - ;;
3.192 - -sco*)
3.193 - os=-sco3.2v2
3.194 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3.195 - ;;
3.196 - -udk*)
3.197 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3.198 - ;;
3.199 - -isc)
3.200 - os=-isc2.2
3.201 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3.202 - ;;
3.203 - -clix*)
3.204 - basic_machine=clipper-intergraph
3.205 - ;;
3.206 - -isc*)
3.207 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3.208 - ;;
3.209 - -lynx*)
3.210 - os=-lynxos
3.211 - ;;
3.212 - -ptx*)
3.213 - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
3.214 - ;;
3.215 - -windowsnt*)
3.216 - os=`echo $os | sed -e 's/windowsnt/winnt/'`
3.217 - ;;
3.218 - -psos*)
3.219 - os=-psos
3.220 - ;;
3.221 - -mint | -mint[0-9]*)
3.222 - basic_machine=m68k-atari
3.223 - os=-mint
3.224 - ;;
3.225 -esac
3.226 -
3.227 -# Decode aliases for certain CPU-COMPANY combinations.
3.228 -case $basic_machine in
3.229 - # Recognize the basic CPU types without company name.
3.230 - # Some are omitted here because they have special meanings below.
3.231 - 1750a | 580 \
3.232 - | a29k \
3.233 - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
3.234 - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
3.235 - | am33_2.0 \
3.236 - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
3.237 - | bfin \
3.238 - | c4x | clipper \
3.239 - | d10v | d30v | dlx | dsp16xx \
3.240 - | fr30 | frv \
3.241 - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
3.242 - | i370 | i860 | i960 | ia64 \
3.243 - | ip2k | iq2000 \
3.244 - | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
3.245 - | mips | mipsbe | mipseb | mipsel | mipsle \
3.246 - | mips16 \
3.247 - | mips64 | mips64el \
3.248 - | mips64vr | mips64vrel \
3.249 - | mips64orion | mips64orionel \
3.250 - | mips64vr4100 | mips64vr4100el \
3.251 - | mips64vr4300 | mips64vr4300el \
3.252 - | mips64vr5000 | mips64vr5000el \
3.253 - | mipsisa32 | mipsisa32el \
3.254 - | mipsisa32r2 | mipsisa32r2el \
3.255 - | mipsisa64 | mipsisa64el \
3.256 - | mipsisa64r2 | mipsisa64r2el \
3.257 - | mipsisa64sb1 | mipsisa64sb1el \
3.258 - | mipsisa64sr71k | mipsisa64sr71kel \
3.259 - | mipstx39 | mipstx39el \
3.260 - | mn10200 | mn10300 \
3.261 - | msp430 \
3.262 - | ns16k | ns32k \
3.263 - | openrisc | or32 \
3.264 - | pdp10 | pdp11 | pj | pjl \
3.265 - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
3.266 - | pyramid \
3.267 - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
3.268 - | sh64 | sh64le \
3.269 - | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
3.270 - | sparcv8 | sparcv9 | sparcv9b \
3.271 - | strongarm \
3.272 - | tahoe | thumb | tic4x | tic80 | tron \
3.273 - | v850 | v850e \
3.274 - | we32k \
3.275 - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
3.276 - | z8k)
3.277 - basic_machine=$basic_machine-unknown
3.278 - ;;
3.279 - m6811 | m68hc11 | m6812 | m68hc12)
3.280 - # Motorola 68HC11/12.
3.281 - basic_machine=$basic_machine-unknown
3.282 - os=-none
3.283 - ;;
3.284 - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
3.285 - ;;
3.286 -
3.287 - # We use `pc' rather than `unknown'
3.288 - # because (1) that's what they normally are, and
3.289 - # (2) the word "unknown" tends to confuse beginning users.
3.290 - i*86 | x86_64)
3.291 - basic_machine=$basic_machine-pc
3.292 - ;;
3.293 - # Object if more than one company name word.
3.294 - *-*-*)
3.295 - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
3.296 - exit 1
3.297 - ;;
3.298 - # Recognize the basic CPU types with company name.
3.299 - 580-* \
3.300 - | a29k-* \
3.301 - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
3.302 - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
3.303 - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
3.304 - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
3.305 - | avr-* \
3.306 - | bfin-* | bs2000-* \
3.307 - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
3.308 - | clipper-* | craynv-* | cydra-* \
3.309 - | d10v-* | d30v-* | dlx-* \
3.310 - | elxsi-* \
3.311 - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
3.312 - | h8300-* | h8500-* \
3.313 - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
3.314 - | i*86-* | i860-* | i960-* | ia64-* \
3.315 - | ip2k-* | iq2000-* \
3.316 - | m32r-* | m32rle-* \
3.317 - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
3.318 - | m88110-* | m88k-* | maxq-* | mcore-* \
3.319 - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
3.320 - | mips16-* \
3.321 - | mips64-* | mips64el-* \
3.322 - | mips64vr-* | mips64vrel-* \
3.323 - | mips64orion-* | mips64orionel-* \
3.324 - | mips64vr4100-* | mips64vr4100el-* \
3.325 - | mips64vr4300-* | mips64vr4300el-* \
3.326 - | mips64vr5000-* | mips64vr5000el-* \
3.327 - | mipsisa32-* | mipsisa32el-* \
3.328 - | mipsisa32r2-* | mipsisa32r2el-* \
3.329 - | mipsisa64-* | mipsisa64el-* \
3.330 - | mipsisa64r2-* | mipsisa64r2el-* \
3.331 - | mipsisa64sb1-* | mipsisa64sb1el-* \
3.332 - | mipsisa64sr71k-* | mipsisa64sr71kel-* \
3.333 - | mipstx39-* | mipstx39el-* \
3.334 - | mmix-* \
3.335 - | msp430-* \
3.336 - | none-* | np1-* | ns16k-* | ns32k-* \
3.337 - | orion-* \
3.338 - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
3.339 - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
3.340 - | pyramid-* \
3.341 - | romp-* | rs6000-* \
3.342 - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
3.343 - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
3.344 - | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
3.345 - | sparclite-* \
3.346 - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
3.347 - | tahoe-* | thumb-* \
3.348 - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
3.349 - | tron-* \
3.350 - | v850-* | v850e-* | vax-* \
3.351 - | we32k-* \
3.352 - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
3.353 - | xstormy16-* | xtensa-* \
3.354 - | ymp-* \
3.355 - | z8k-*)
3.356 - ;;
3.357 - # Recognize the various machine names and aliases which stand
3.358 - # for a CPU type and a company and sometimes even an OS.
3.359 - 386bsd)
3.360 - basic_machine=i386-unknown
3.361 - os=-bsd
3.362 - ;;
3.363 - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
3.364 - basic_machine=m68000-att
3.365 - ;;
3.366 - 3b*)
3.367 - basic_machine=we32k-att
3.368 - ;;
3.369 - a29khif)
3.370 - basic_machine=a29k-amd
3.371 - os=-udi
3.372 - ;;
3.373 - abacus)
3.374 - basic_machine=abacus-unknown
3.375 - ;;
3.376 - adobe68k)
3.377 - basic_machine=m68010-adobe
3.378 - os=-scout
3.379 - ;;
3.380 - alliant | fx80)
3.381 - basic_machine=fx80-alliant
3.382 - ;;
3.383 - altos | altos3068)
3.384 - basic_machine=m68k-altos
3.385 - ;;
3.386 - am29k)
3.387 - basic_machine=a29k-none
3.388 - os=-bsd
3.389 - ;;
3.390 - amd64)
3.391 - basic_machine=x86_64-pc
3.392 - ;;
3.393 - amd64-*)
3.394 - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
3.395 - ;;
3.396 - amdahl)
3.397 - basic_machine=580-amdahl
3.398 - os=-sysv
3.399 - ;;
3.400 - amiga | amiga-*)
3.401 - basic_machine=m68k-unknown
3.402 - ;;
3.403 - amigaos | amigados)
3.404 - basic_machine=m68k-unknown
3.405 - os=-amigaos
3.406 - ;;
3.407 - amigaunix | amix)
3.408 - basic_machine=m68k-unknown
3.409 - os=-sysv4
3.410 - ;;
3.411 - apollo68)
3.412 - basic_machine=m68k-apollo
3.413 - os=-sysv
3.414 - ;;
3.415 - apollo68bsd)
3.416 - basic_machine=m68k-apollo
3.417 - os=-bsd
3.418 - ;;
3.419 - aux)
3.420 - basic_machine=m68k-apple
3.421 - os=-aux
3.422 - ;;
3.423 - balance)
3.424 - basic_machine=ns32k-sequent
3.425 - os=-dynix
3.426 - ;;
3.427 - c90)
3.428 - basic_machine=c90-cray
3.429 - os=-unicos
3.430 - ;;
3.431 - convex-c1)
3.432 - basic_machine=c1-convex
3.433 - os=-bsd
3.434 - ;;
3.435 - convex-c2)
3.436 - basic_machine=c2-convex
3.437 - os=-bsd
3.438 - ;;
3.439 - convex-c32)
3.440 - basic_machine=c32-convex
3.441 - os=-bsd
3.442 - ;;
3.443 - convex-c34)
3.444 - basic_machine=c34-convex
3.445 - os=-bsd
3.446 - ;;
3.447 - convex-c38)
3.448 - basic_machine=c38-convex
3.449 - os=-bsd
3.450 - ;;
3.451 - cray | j90)
3.452 - basic_machine=j90-cray
3.453 - os=-unicos
3.454 - ;;
3.455 - craynv)
3.456 - basic_machine=craynv-cray
3.457 - os=-unicosmp
3.458 - ;;
3.459 - cr16c)
3.460 - basic_machine=cr16c-unknown
3.461 - os=-elf
3.462 - ;;
3.463 - crds | unos)
3.464 - basic_machine=m68k-crds
3.465 - ;;
3.466 - crisv32 | crisv32-* | etraxfs*)
3.467 - basic_machine=crisv32-axis
3.468 - ;;
3.469 - cris | cris-* | etrax*)
3.470 - basic_machine=cris-axis
3.471 - ;;
3.472 - crx)
3.473 - basic_machine=crx-unknown
3.474 - os=-elf
3.475 - ;;
3.476 - da30 | da30-*)
3.477 - basic_machine=m68k-da30
3.478 - ;;
3.479 - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
3.480 - basic_machine=mips-dec
3.481 - ;;
3.482 - decsystem10* | dec10*)
3.483 - basic_machine=pdp10-dec
3.484 - os=-tops10
3.485 - ;;
3.486 - decsystem20* | dec20*)
3.487 - basic_machine=pdp10-dec
3.488 - os=-tops20
3.489 - ;;
3.490 - delta | 3300 | motorola-3300 | motorola-delta \
3.491 - | 3300-motorola | delta-motorola)
3.492 - basic_machine=m68k-motorola
3.493 - ;;
3.494 - delta88)
3.495 - basic_machine=m88k-motorola
3.496 - os=-sysv3
3.497 - ;;
3.498 - djgpp)
3.499 - basic_machine=i586-pc
3.500 - os=-msdosdjgpp
3.501 - ;;
3.502 - dpx20 | dpx20-*)
3.503 - basic_machine=rs6000-bull
3.504 - os=-bosx
3.505 - ;;
3.506 - dpx2* | dpx2*-bull)
3.507 - basic_machine=m68k-bull
3.508 - os=-sysv3
3.509 - ;;
3.510 - ebmon29k)
3.511 - basic_machine=a29k-amd
3.512 - os=-ebmon
3.513 - ;;
3.514 - elxsi)
3.515 - basic_machine=elxsi-elxsi
3.516 - os=-bsd
3.517 - ;;
3.518 - encore | umax | mmax)
3.519 - basic_machine=ns32k-encore
3.520 - ;;
3.521 - es1800 | OSE68k | ose68k | ose | OSE)
3.522 - basic_machine=m68k-ericsson
3.523 - os=-ose
3.524 - ;;
3.525 - fx2800)
3.526 - basic_machine=i860-alliant
3.527 - ;;
3.528 - genix)
3.529 - basic_machine=ns32k-ns
3.530 - ;;
3.531 - gmicro)
3.532 - basic_machine=tron-gmicro
3.533 - os=-sysv
3.534 - ;;
3.535 - go32)
3.536 - basic_machine=i386-pc
3.537 - os=-go32
3.538 - ;;
3.539 - h3050r* | hiux*)
3.540 - basic_machine=hppa1.1-hitachi
3.541 - os=-hiuxwe2
3.542 - ;;
3.543 - h8300hms)
3.544 - basic_machine=h8300-hitachi
3.545 - os=-hms
3.546 - ;;
3.547 - h8300xray)
3.548 - basic_machine=h8300-hitachi
3.549 - os=-xray
3.550 - ;;
3.551 - h8500hms)
3.552 - basic_machine=h8500-hitachi
3.553 - os=-hms
3.554 - ;;
3.555 - harris)
3.556 - basic_machine=m88k-harris
3.557 - os=-sysv3
3.558 - ;;
3.559 - hp300-*)
3.560 - basic_machine=m68k-hp
3.561 - ;;
3.562 - hp300bsd)
3.563 - basic_machine=m68k-hp
3.564 - os=-bsd
3.565 - ;;
3.566 - hp300hpux)
3.567 - basic_machine=m68k-hp
3.568 - os=-hpux
3.569 - ;;
3.570 - hp3k9[0-9][0-9] | hp9[0-9][0-9])
3.571 - basic_machine=hppa1.0-hp
3.572 - ;;
3.573 - hp9k2[0-9][0-9] | hp9k31[0-9])
3.574 - basic_machine=m68000-hp
3.575 - ;;
3.576 - hp9k3[2-9][0-9])
3.577 - basic_machine=m68k-hp
3.578 - ;;
3.579 - hp9k6[0-9][0-9] | hp6[0-9][0-9])
3.580 - basic_machine=hppa1.0-hp
3.581 - ;;
3.582 - hp9k7[0-79][0-9] | hp7[0-79][0-9])
3.583 - basic_machine=hppa1.1-hp
3.584 - ;;
3.585 - hp9k78[0-9] | hp78[0-9])
3.586 - # FIXME: really hppa2.0-hp
3.587 - basic_machine=hppa1.1-hp
3.588 - ;;
3.589 - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
3.590 - # FIXME: really hppa2.0-hp
3.591 - basic_machine=hppa1.1-hp
3.592 - ;;
3.593 - hp9k8[0-9][13679] | hp8[0-9][13679])
3.594 - basic_machine=hppa1.1-hp
3.595 - ;;
3.596 - hp9k8[0-9][0-9] | hp8[0-9][0-9])
3.597 - basic_machine=hppa1.0-hp
3.598 - ;;
3.599 - hppa-next)
3.600 - os=-nextstep3
3.601 - ;;
3.602 - hppaosf)
3.603 - basic_machine=hppa1.1-hp
3.604 - os=-osf
3.605 - ;;
3.606 - hppro)
3.607 - basic_machine=hppa1.1-hp
3.608 - os=-proelf
3.609 - ;;
3.610 - i370-ibm* | ibm*)
3.611 - basic_machine=i370-ibm
3.612 - ;;
3.613 -# I'm not sure what "Sysv32" means. Should this be sysv3.2?
3.614 - i*86v32)
3.615 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
3.616 - os=-sysv32
3.617 - ;;
3.618 - i*86v4*)
3.619 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
3.620 - os=-sysv4
3.621 - ;;
3.622 - i*86v)
3.623 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
3.624 - os=-sysv
3.625 - ;;
3.626 - i*86sol2)
3.627 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
3.628 - os=-solaris2
3.629 - ;;
3.630 - i386mach)
3.631 - basic_machine=i386-mach
3.632 - os=-mach
3.633 - ;;
3.634 - i386-vsta | vsta)
3.635 - basic_machine=i386-unknown
3.636 - os=-vsta
3.637 - ;;
3.638 - iris | iris4d)
3.639 - basic_machine=mips-sgi
3.640 - case $os in
3.641 - -irix*)
3.642 - ;;
3.643 - *)
3.644 - os=-irix4
3.645 - ;;
3.646 - esac
3.647 - ;;
3.648 - isi68 | isi)
3.649 - basic_machine=m68k-isi
3.650 - os=-sysv
3.651 - ;;
3.652 - m88k-omron*)
3.653 - basic_machine=m88k-omron
3.654 - ;;
3.655 - magnum | m3230)
3.656 - basic_machine=mips-mips
3.657 - os=-sysv
3.658 - ;;
3.659 - merlin)
3.660 - basic_machine=ns32k-utek
3.661 - os=-sysv
3.662 - ;;
3.663 - mingw32)
3.664 - basic_machine=i386-pc
3.665 - os=-mingw32
3.666 - ;;
3.667 - miniframe)
3.668 - basic_machine=m68000-convergent
3.669 - ;;
3.670 - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
3.671 - basic_machine=m68k-atari
3.672 - os=-mint
3.673 - ;;
3.674 - mips3*-*)
3.675 - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
3.676 - ;;
3.677 - mips3*)
3.678 - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
3.679 - ;;
3.680 - monitor)
3.681 - basic_machine=m68k-rom68k
3.682 - os=-coff
3.683 - ;;
3.684 - morphos)
3.685 - basic_machine=powerpc-unknown
3.686 - os=-morphos
3.687 - ;;
3.688 - msdos)
3.689 - basic_machine=i386-pc
3.690 - os=-msdos
3.691 - ;;
3.692 - mvs)
3.693 - basic_machine=i370-ibm
3.694 - os=-mvs
3.695 - ;;
3.696 - ncr3000)
3.697 - basic_machine=i486-ncr
3.698 - os=-sysv4
3.699 - ;;
3.700 - netbsd386)
3.701 - basic_machine=i386-unknown
3.702 - os=-netbsd
3.703 - ;;
3.704 - netwinder)
3.705 - basic_machine=armv4l-rebel
3.706 - os=-linux
3.707 - ;;
3.708 - news | news700 | news800 | news900)
3.709 - basic_machine=m68k-sony
3.710 - os=-newsos
3.711 - ;;
3.712 - news1000)
3.713 - basic_machine=m68030-sony
3.714 - os=-newsos
3.715 - ;;
3.716 - news-3600 | risc-news)
3.717 - basic_machine=mips-sony
3.718 - os=-newsos
3.719 - ;;
3.720 - necv70)
3.721 - basic_machine=v70-nec
3.722 - os=-sysv
3.723 - ;;
3.724 - next | m*-next )
3.725 - basic_machine=m68k-next
3.726 - case $os in
3.727 - -nextstep* )
3.728 - ;;
3.729 - -ns2*)
3.730 - os=-nextstep2
3.731 - ;;
3.732 - *)
3.733 - os=-nextstep3
3.734 - ;;
3.735 - esac
3.736 - ;;
3.737 - nh3000)
3.738 - basic_machine=m68k-harris
3.739 - os=-cxux
3.740 - ;;
3.741 - nh[45]000)
3.742 - basic_machine=m88k-harris
3.743 - os=-cxux
3.744 - ;;
3.745 - nindy960)
3.746 - basic_machine=i960-intel
3.747 - os=-nindy
3.748 - ;;
3.749 - mon960)
3.750 - basic_machine=i960-intel
3.751 - os=-mon960
3.752 - ;;
3.753 - nonstopux)
3.754 - basic_machine=mips-compaq
3.755 - os=-nonstopux
3.756 - ;;
3.757 - np1)
3.758 - basic_machine=np1-gould
3.759 - ;;
3.760 - nsr-tandem)
3.761 - basic_machine=nsr-tandem
3.762 - ;;
3.763 - op50n-* | op60c-*)
3.764 - basic_machine=hppa1.1-oki
3.765 - os=-proelf
3.766 - ;;
3.767 - or32 | or32-*)
3.768 - basic_machine=or32-unknown
3.769 - os=-coff
3.770 - ;;
3.771 - os400)
3.772 - basic_machine=powerpc-ibm
3.773 - os=-os400
3.774 - ;;
3.775 - OSE68000 | ose68000)
3.776 - basic_machine=m68000-ericsson
3.777 - os=-ose
3.778 - ;;
3.779 - os68k)
3.780 - basic_machine=m68k-none
3.781 - os=-os68k
3.782 - ;;
3.783 - pa-hitachi)
3.784 - basic_machine=hppa1.1-hitachi
3.785 - os=-hiuxwe2
3.786 - ;;
3.787 - paragon)
3.788 - basic_machine=i860-intel
3.789 - os=-osf
3.790 - ;;
3.791 - pbd)
3.792 - basic_machine=sparc-tti
3.793 - ;;
3.794 - pbb)
3.795 - basic_machine=m68k-tti
3.796 - ;;
3.797 - pc532 | pc532-*)
3.798 - basic_machine=ns32k-pc532
3.799 - ;;
3.800 - pentium | p5 | k5 | k6 | nexgen | viac3)
3.801 - basic_machine=i586-pc
3.802 - ;;
3.803 - pentiumpro | p6 | 6x86 | athlon | athlon_*)
3.804 - basic_machine=i686-pc
3.805 - ;;
3.806 - pentiumii | pentium2 | pentiumiii | pentium3)
3.807 - basic_machine=i686-pc
3.808 - ;;
3.809 - pentium4)
3.810 - basic_machine=i786-pc
3.811 - ;;
3.812 - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
3.813 - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
3.814 - ;;
3.815 - pentiumpro-* | p6-* | 6x86-* | athlon-*)
3.816 - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
3.817 - ;;
3.818 - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
3.819 - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
3.820 - ;;
3.821 - pentium4-*)
3.822 - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
3.823 - ;;
3.824 - pn)
3.825 - basic_machine=pn-gould
3.826 - ;;
3.827 - power) basic_machine=power-ibm
3.828 - ;;
3.829 - ppc) basic_machine=powerpc-unknown
3.830 - ;;
3.831 - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
3.832 - ;;
3.833 - ppcle | powerpclittle | ppc-le | powerpc-little)
3.834 - basic_machine=powerpcle-unknown
3.835 - ;;
3.836 - ppcle-* | powerpclittle-*)
3.837 - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
3.838 - ;;
3.839 - ppc64) basic_machine=powerpc64-unknown
3.840 - ;;
3.841 - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
3.842 - ;;
3.843 - ppc64le | powerpc64little | ppc64-le | powerpc64-little)
3.844 - basic_machine=powerpc64le-unknown
3.845 - ;;
3.846 - ppc64le-* | powerpc64little-*)
3.847 - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
3.848 - ;;
3.849 - ps2)
3.850 - basic_machine=i386-ibm
3.851 - ;;
3.852 - pw32)
3.853 - basic_machine=i586-unknown
3.854 - os=-pw32
3.855 - ;;
3.856 - rom68k)
3.857 - basic_machine=m68k-rom68k
3.858 - os=-coff
3.859 - ;;
3.860 - rm[46]00)
3.861 - basic_machine=mips-siemens
3.862 - ;;
3.863 - rtpc | rtpc-*)
3.864 - basic_machine=romp-ibm
3.865 - ;;
3.866 - s390 | s390-*)
3.867 - basic_machine=s390-ibm
3.868 - ;;
3.869 - s390x | s390x-*)
3.870 - basic_machine=s390x-ibm
3.871 - ;;
3.872 - sa29200)
3.873 - basic_machine=a29k-amd
3.874 - os=-udi
3.875 - ;;
3.876 - sb1)
3.877 - basic_machine=mipsisa64sb1-unknown
3.878 - ;;
3.879 - sb1el)
3.880 - basic_machine=mipsisa64sb1el-unknown
3.881 - ;;
3.882 - sei)
3.883 - basic_machine=mips-sei
3.884 - os=-seiux
3.885 - ;;
3.886 - sequent)
3.887 - basic_machine=i386-sequent
3.888 - ;;
3.889 - sh)
3.890 - basic_machine=sh-hitachi
3.891 - os=-hms
3.892 - ;;
3.893 - sh64)
3.894 - basic_machine=sh64-unknown
3.895 - ;;
3.896 - sparclite-wrs | simso-wrs)
3.897 - basic_machine=sparclite-wrs
3.898 - os=-vxworks
3.899 - ;;
3.900 - sps7)
3.901 - basic_machine=m68k-bull
3.902 - os=-sysv2
3.903 - ;;
3.904 - spur)
3.905 - basic_machine=spur-unknown
3.906 - ;;
3.907 - st2000)
3.908 - basic_machine=m68k-tandem
3.909 - ;;
3.910 - stratus)
3.911 - basic_machine=i860-stratus
3.912 - os=-sysv4
3.913 - ;;
3.914 - sun2)
3.915 - basic_machine=m68000-sun
3.916 - ;;
3.917 - sun2os3)
3.918 - basic_machine=m68000-sun
3.919 - os=-sunos3
3.920 - ;;
3.921 - sun2os4)
3.922 - basic_machine=m68000-sun
3.923 - os=-sunos4
3.924 - ;;
3.925 - sun3os3)
3.926 - basic_machine=m68k-sun
3.927 - os=-sunos3
3.928 - ;;
3.929 - sun3os4)
3.930 - basic_machine=m68k-sun
3.931 - os=-sunos4
3.932 - ;;
3.933 - sun4os3)
3.934 - basic_machine=sparc-sun
3.935 - os=-sunos3
3.936 - ;;
3.937 - sun4os4)
3.938 - basic_machine=sparc-sun
3.939 - os=-sunos4
3.940 - ;;
3.941 - sun4sol2)
3.942 - basic_machine=sparc-sun
3.943 - os=-solaris2
3.944 - ;;
3.945 - sun3 | sun3-*)
3.946 - basic_machine=m68k-sun
3.947 - ;;
3.948 - sun4)
3.949 - basic_machine=sparc-sun
3.950 - ;;
3.951 - sun386 | sun386i | roadrunner)
3.952 - basic_machine=i386-sun
3.953 - ;;
3.954 - sv1)
3.955 - basic_machine=sv1-cray
3.956 - os=-unicos
3.957 - ;;
3.958 - symmetry)
3.959 - basic_machine=i386-sequent
3.960 - os=-dynix
3.961 - ;;
3.962 - t3e)
3.963 - basic_machine=alphaev5-cray
3.964 - os=-unicos
3.965 - ;;
3.966 - t90)
3.967 - basic_machine=t90-cray
3.968 - os=-unicos
3.969 - ;;
3.970 - tic54x | c54x*)
3.971 - basic_machine=tic54x-unknown
3.972 - os=-coff
3.973 - ;;
3.974 - tic55x | c55x*)
3.975 - basic_machine=tic55x-unknown
3.976 - os=-coff
3.977 - ;;
3.978 - tic6x | c6x*)
3.979 - basic_machine=tic6x-unknown
3.980 - os=-coff
3.981 - ;;
3.982 - tx39)
3.983 - basic_machine=mipstx39-unknown
3.984 - ;;
3.985 - tx39el)
3.986 - basic_machine=mipstx39el-unknown
3.987 - ;;
3.988 - toad1)
3.989 - basic_machine=pdp10-xkl
3.990 - os=-tops20
3.991 - ;;
3.992 - tower | tower-32)
3.993 - basic_machine=m68k-ncr
3.994 - ;;
3.995 - tpf)
3.996 - basic_machine=s390x-ibm
3.997 - os=-tpf
3.998 - ;;
3.999 - udi29k)
3.1000 - basic_machine=a29k-amd
3.1001 - os=-udi
3.1002 - ;;
3.1003 - ultra3)
3.1004 - basic_machine=a29k-nyu
3.1005 - os=-sym1
3.1006 - ;;
3.1007 - v810 | necv810)
3.1008 - basic_machine=v810-nec
3.1009 - os=-none
3.1010 - ;;
3.1011 - vaxv)
3.1012 - basic_machine=vax-dec
3.1013 - os=-sysv
3.1014 - ;;
3.1015 - vms)
3.1016 - basic_machine=vax-dec
3.1017 - os=-vms
3.1018 - ;;
3.1019 - vpp*|vx|vx-*)
3.1020 - basic_machine=f301-fujitsu
3.1021 - ;;
3.1022 - vxworks960)
3.1023 - basic_machine=i960-wrs
3.1024 - os=-vxworks
3.1025 - ;;
3.1026 - vxworks68)
3.1027 - basic_machine=m68k-wrs
3.1028 - os=-vxworks
3.1029 - ;;
3.1030 - vxworks29k)
3.1031 - basic_machine=a29k-wrs
3.1032 - os=-vxworks
3.1033 - ;;
3.1034 - w65*)
3.1035 - basic_machine=w65-wdc
3.1036 - os=-none
3.1037 - ;;
3.1038 - w89k-*)
3.1039 - basic_machine=hppa1.1-winbond
3.1040 - os=-proelf
3.1041 - ;;
3.1042 - xbox)
3.1043 - basic_machine=i686-pc
3.1044 - os=-mingw32
3.1045 - ;;
3.1046 - xps | xps100)
3.1047 - basic_machine=xps100-honeywell
3.1048 - ;;
3.1049 - ymp)
3.1050 - basic_machine=ymp-cray
3.1051 - os=-unicos
3.1052 - ;;
3.1053 - z8k-*-coff)
3.1054 - basic_machine=z8k-unknown
3.1055 - os=-sim
3.1056 - ;;
3.1057 - none)
3.1058 - basic_machine=none-none
3.1059 - os=-none
3.1060 - ;;
3.1061 -
3.1062 -# Here we handle the default manufacturer of certain CPU types. It is in
3.1063 -# some cases the only manufacturer, in others, it is the most popular.
3.1064 - w89k)
3.1065 - basic_machine=hppa1.1-winbond
3.1066 - ;;
3.1067 - op50n)
3.1068 - basic_machine=hppa1.1-oki
3.1069 - ;;
3.1070 - op60c)
3.1071 - basic_machine=hppa1.1-oki
3.1072 - ;;
3.1073 - romp)
3.1074 - basic_machine=romp-ibm
3.1075 - ;;
3.1076 - mmix)
3.1077 - basic_machine=mmix-knuth
3.1078 - ;;
3.1079 - rs6000)
3.1080 - basic_machine=rs6000-ibm
3.1081 - ;;
3.1082 - vax)
3.1083 - basic_machine=vax-dec
3.1084 - ;;
3.1085 - pdp10)
3.1086 - # there are many clones, so DEC is not a safe bet
3.1087 - basic_machine=pdp10-unknown
3.1088 - ;;
3.1089 - pdp11)
3.1090 - basic_machine=pdp11-dec
3.1091 - ;;
3.1092 - we32k)
3.1093 - basic_machine=we32k-att
3.1094 - ;;
3.1095 - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
3.1096 - basic_machine=sh-unknown
3.1097 - ;;
3.1098 - sh64)
3.1099 - basic_machine=sh64-unknown
3.1100 - ;;
3.1101 - sparc | sparcv8 | sparcv9 | sparcv9b)
3.1102 - basic_machine=sparc-sun
3.1103 - ;;
3.1104 - cydra)
3.1105 - basic_machine=cydra-cydrome
3.1106 - ;;
3.1107 - orion)
3.1108 - basic_machine=orion-highlevel
3.1109 - ;;
3.1110 - orion105)
3.1111 - basic_machine=clipper-highlevel
3.1112 - ;;
3.1113 - mac | mpw | mac-mpw)
3.1114 - basic_machine=m68k-apple
3.1115 - ;;
3.1116 - pmac | pmac-mpw)
3.1117 - basic_machine=powerpc-apple
3.1118 - ;;
3.1119 - *-unknown)
3.1120 - # Make sure to match an already-canonicalized machine name.
3.1121 - ;;
3.1122 - *)
3.1123 - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
3.1124 - exit 1
3.1125 - ;;
3.1126 -esac
3.1127 -
3.1128 -# Here we canonicalize certain aliases for manufacturers.
3.1129 -case $basic_machine in
3.1130 - *-digital*)
3.1131 - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
3.1132 - ;;
3.1133 - *-commodore*)
3.1134 - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
3.1135 - ;;
3.1136 - *)
3.1137 - ;;
3.1138 -esac
3.1139 -
3.1140 -# Decode manufacturer-specific aliases for certain operating systems.
3.1141 -
3.1142 -if [ x"$os" != x"" ]
3.1143 -then
3.1144 -case $os in
3.1145 - # First match some system type aliases
3.1146 - # that might get confused with valid system types.
3.1147 - # -solaris* is a basic system type, with this one exception.
3.1148 - -solaris1 | -solaris1.*)
3.1149 - os=`echo $os | sed -e 's|solaris1|sunos4|'`
3.1150 - ;;
3.1151 - -solaris)
3.1152 - os=-solaris2
3.1153 - ;;
3.1154 - -svr4*)
3.1155 - os=-sysv4
3.1156 - ;;
3.1157 - -unixware*)
3.1158 - os=-sysv4.2uw
3.1159 - ;;
3.1160 - -gnu/linux*)
3.1161 - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
3.1162 - ;;
3.1163 - # First accept the basic system types.
3.1164 - # The portable systems comes first.
3.1165 - # Each alternative MUST END IN A *, to match a version number.
3.1166 - # -sysv* is not here because it comes later, after sysvr4.
3.1167 - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
3.1168 - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
3.1169 - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
3.1170 - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
3.1171 - | -aos* \
3.1172 - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
3.1173 - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
3.1174 - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
3.1175 - | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
3.1176 - | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
3.1177 - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
3.1178 - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
3.1179 - | -chorusos* | -chorusrdb* \
3.1180 - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
3.1181 - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
3.1182 - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
3.1183 - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
3.1184 - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
3.1185 - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
3.1186 - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
3.1187 - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
3.1188 - # Remember, each alternative MUST END IN *, to match a version number.
3.1189 - ;;
3.1190 - -qnx*)
3.1191 - case $basic_machine in
3.1192 - x86-* | i*86-*)
3.1193 - ;;
3.1194 - *)
3.1195 - os=-nto$os
3.1196 - ;;
3.1197 - esac
3.1198 - ;;
3.1199 - -nto-qnx*)
3.1200 - ;;
3.1201 - -nto*)
3.1202 - os=`echo $os | sed -e 's|nto|nto-qnx|'`
3.1203 - ;;
3.1204 - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
3.1205 - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
3.1206 - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
3.1207 - ;;
3.1208 - -mac*)
3.1209 - os=`echo $os | sed -e 's|mac|macos|'`
3.1210 - ;;
3.1211 - -linux-dietlibc)
3.1212 - os=-linux-dietlibc
3.1213 - ;;
3.1214 - -linux*)
3.1215 - os=`echo $os | sed -e 's|linux|linux-gnu|'`
3.1216 - ;;
3.1217 - -sunos5*)
3.1218 - os=`echo $os | sed -e 's|sunos5|solaris2|'`
3.1219 - ;;
3.1220 - -sunos6*)
3.1221 - os=`echo $os | sed -e 's|sunos6|solaris3|'`
3.1222 - ;;
3.1223 - -opened*)
3.1224 - os=-openedition
3.1225 - ;;
3.1226 - -os400*)
3.1227 - os=-os400
3.1228 - ;;
3.1229 - -wince*)
3.1230 - os=-wince
3.1231 - ;;
3.1232 - -osfrose*)
3.1233 - os=-osfrose
3.1234 - ;;
3.1235 - -osf*)
3.1236 - os=-osf
3.1237 - ;;
3.1238 - -utek*)
3.1239 - os=-bsd
3.1240 - ;;
3.1241 - -dynix*)
3.1242 - os=-bsd
3.1243 - ;;
3.1244 - -acis*)
3.1245 - os=-aos
3.1246 - ;;
3.1247 - -atheos*)
3.1248 - os=-atheos
3.1249 - ;;
3.1250 - -syllable*)
3.1251 - os=-syllable
3.1252 - ;;
3.1253 - -386bsd)
3.1254 - os=-bsd
3.1255 - ;;
3.1256 - -ctix* | -uts*)
3.1257 - os=-sysv
3.1258 - ;;
3.1259 - -nova*)
3.1260 - os=-rtmk-nova
3.1261 - ;;
3.1262 - -ns2 )
3.1263 - os=-nextstep2
3.1264 - ;;
3.1265 - -nsk*)
3.1266 - os=-nsk
3.1267 - ;;
3.1268 - # Preserve the version number of sinix5.
3.1269 - -sinix5.*)
3.1270 - os=`echo $os | sed -e 's|sinix|sysv|'`
3.1271 - ;;
3.1272 - -sinix*)
3.1273 - os=-sysv4
3.1274 - ;;
3.1275 - -tpf*)
3.1276 - os=-tpf
3.1277 - ;;
3.1278 - -triton*)
3.1279 - os=-sysv3
3.1280 - ;;
3.1281 - -oss*)
3.1282 - os=-sysv3
3.1283 - ;;
3.1284 - -svr4)
3.1285 - os=-sysv4
3.1286 - ;;
3.1287 - -svr3)
3.1288 - os=-sysv3
3.1289 - ;;
3.1290 - -sysvr4)
3.1291 - os=-sysv4
3.1292 - ;;
3.1293 - # This must come after -sysvr4.
3.1294 - -sysv*)
3.1295 - ;;
3.1296 - -ose*)
3.1297 - os=-ose
3.1298 - ;;
3.1299 - -es1800*)
3.1300 - os=-ose
3.1301 - ;;
3.1302 - -xenix)
3.1303 - os=-xenix
3.1304 - ;;
3.1305 - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3.1306 - os=-mint
3.1307 - ;;
3.1308 - -aros*)
3.1309 - os=-aros
3.1310 - ;;
3.1311 - -kaos*)
3.1312 - os=-kaos
3.1313 - ;;
3.1314 - -zvmoe)
3.1315 - os=-zvmoe
3.1316 - ;;
3.1317 - -none)
3.1318 - ;;
3.1319 - *)
3.1320 - # Get rid of the `-' at the beginning of $os.
3.1321 - os=`echo $os | sed 's/[^-]*-//'`
3.1322 - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
3.1323 - exit 1
3.1324 - ;;
3.1325 -esac
3.1326 -else
3.1327 -
3.1328 -# Here we handle the default operating systems that come with various machines.
3.1329 -# The value should be what the vendor currently ships out the door with their
3.1330 -# machine or put another way, the most popular os provided with the machine.
3.1331 -
3.1332 -# Note that if you're going to try to match "-MANUFACTURER" here (say,
3.1333 -# "-sun"), then you have to tell the case statement up towards the top
3.1334 -# that MANUFACTURER isn't an operating system. Otherwise, code above
3.1335 -# will signal an error saying that MANUFACTURER isn't an operating
3.1336 -# system, and we'll never get to this point.
3.1337 -
3.1338 -case $basic_machine in
3.1339 - *-acorn)
3.1340 - os=-riscix1.2
3.1341 - ;;
3.1342 - arm*-rebel)
3.1343 - os=-linux
3.1344 - ;;
3.1345 - arm*-semi)
3.1346 - os=-aout
3.1347 - ;;
3.1348 - c4x-* | tic4x-*)
3.1349 - os=-coff
3.1350 - ;;
3.1351 - # This must come before the *-dec entry.
3.1352 - pdp10-*)
3.1353 - os=-tops20
3.1354 - ;;
3.1355 - pdp11-*)
3.1356 - os=-none
3.1357 - ;;
3.1358 - *-dec | vax-*)
3.1359 - os=-ultrix4.2
3.1360 - ;;
3.1361 - m68*-apollo)
3.1362 - os=-domain
3.1363 - ;;
3.1364 - i386-sun)
3.1365 - os=-sunos4.0.2
3.1366 - ;;
3.1367 - m68000-sun)
3.1368 - os=-sunos3
3.1369 - # This also exists in the configure program, but was not the
3.1370 - # default.
3.1371 - # os=-sunos4
3.1372 - ;;
3.1373 - m68*-cisco)
3.1374 - os=-aout
3.1375 - ;;
3.1376 - mips*-cisco)
3.1377 - os=-elf
3.1378 - ;;
3.1379 - mips*-*)
3.1380 - os=-elf
3.1381 - ;;
3.1382 - or32-*)
3.1383 - os=-coff
3.1384 - ;;
3.1385 - *-tti) # must be before sparc entry or we get the wrong os.
3.1386 - os=-sysv3
3.1387 - ;;
3.1388 - sparc-* | *-sun)
3.1389 - os=-sunos4.1.1
3.1390 - ;;
3.1391 - *-be)
3.1392 - os=-beos
3.1393 - ;;
3.1394 - *-ibm)
3.1395 - os=-aix
3.1396 - ;;
3.1397 - *-knuth)
3.1398 - os=-mmixware
3.1399 - ;;
3.1400 - *-wec)
3.1401 - os=-proelf
3.1402 - ;;
3.1403 - *-winbond)
3.1404 - os=-proelf
3.1405 - ;;
3.1406 - *-oki)
3.1407 - os=-proelf
3.1408 - ;;
3.1409 - *-hp)
3.1410 - os=-hpux
3.1411 - ;;
3.1412 - *-hitachi)
3.1413 - os=-hiux
3.1414 - ;;
3.1415 - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
3.1416 - os=-sysv
3.1417 - ;;
3.1418 - *-cbm)
3.1419 - os=-amigaos
3.1420 - ;;
3.1421 - *-dg)
3.1422 - os=-dgux
3.1423 - ;;
3.1424 - *-dolphin)
3.1425 - os=-sysv3
3.1426 - ;;
3.1427 - m68k-ccur)
3.1428 - os=-rtu
3.1429 - ;;
3.1430 - m88k-omron*)
3.1431 - os=-luna
3.1432 - ;;
3.1433 - *-next )
3.1434 - os=-nextstep
3.1435 - ;;
3.1436 - *-sequent)
3.1437 - os=-ptx
3.1438 - ;;
3.1439 - *-crds)
3.1440 - os=-unos
3.1441 - ;;
3.1442 - *-ns)
3.1443 - os=-genix
3.1444 - ;;
3.1445 - i370-*)
3.1446 - os=-mvs
3.1447 - ;;
3.1448 - *-next)
3.1449 - os=-nextstep3
3.1450 - ;;
3.1451 - *-gould)
3.1452 - os=-sysv
3.1453 - ;;
3.1454 - *-highlevel)
3.1455 - os=-bsd
3.1456 - ;;
3.1457 - *-encore)
3.1458 - os=-bsd
3.1459 - ;;
3.1460 - *-sgi)
3.1461 - os=-irix
3.1462 - ;;
3.1463 - *-siemens)
3.1464 - os=-sysv4
3.1465 - ;;
3.1466 - *-masscomp)
3.1467 - os=-rtu
3.1468 - ;;
3.1469 - f30[01]-fujitsu | f700-fujitsu)
3.1470 - os=-uxpv
3.1471 - ;;
3.1472 - *-rom68k)
3.1473 - os=-coff
3.1474 - ;;
3.1475 - *-*bug)
3.1476 - os=-coff
3.1477 - ;;
3.1478 - *-apple)
3.1479 - os=-macos
3.1480 - ;;
3.1481 - *-atari*)
3.1482 - os=-mint
3.1483 - ;;
3.1484 - *)
3.1485 - os=-none
3.1486 - ;;
3.1487 -esac
3.1488 -fi
3.1489 -
3.1490 -# Here we handle the case where we know the os, and the CPU type, but not the
3.1491 -# manufacturer. We pick the logical manufacturer.
3.1492 -vendor=unknown
3.1493 -case $basic_machine in
3.1494 - *-unknown)
3.1495 - case $os in
3.1496 - -riscix*)
3.1497 - vendor=acorn
3.1498 - ;;
3.1499 - -sunos*)
3.1500 - vendor=sun
3.1501 - ;;
3.1502 - -aix*)
3.1503 - vendor=ibm
3.1504 - ;;
3.1505 - -beos*)
3.1506 - vendor=be
3.1507 - ;;
3.1508 - -hpux*)
3.1509 - vendor=hp
3.1510 - ;;
3.1511 - -mpeix*)
3.1512 - vendor=hp
3.1513 - ;;
3.1514 - -hiux*)
3.1515 - vendor=hitachi
3.1516 - ;;
3.1517 - -unos*)
3.1518 - vendor=crds
3.1519 - ;;
3.1520 - -dgux*)
3.1521 - vendor=dg
3.1522 - ;;
3.1523 - -luna*)
3.1524 - vendor=omron
3.1525 - ;;
3.1526 - -genix*)
3.1527 - vendor=ns
3.1528 - ;;
3.1529 - -mvs* | -opened*)
3.1530 - vendor=ibm
3.1531 - ;;
3.1532 - -os400*)
3.1533 - vendor=ibm
3.1534 - ;;
3.1535 - -ptx*)
3.1536 - vendor=sequent
3.1537 - ;;
3.1538 - -tpf*)
3.1539 - vendor=ibm
3.1540 - ;;
3.1541 - -vxsim* | -vxworks* | -windiss*)
3.1542 - vendor=wrs
3.1543 - ;;
3.1544 - -aux*)
3.1545 - vendor=apple
3.1546 - ;;
3.1547 - -hms*)
3.1548 - vendor=hitachi
3.1549 - ;;
3.1550 - -mpw* | -macos*)
3.1551 - vendor=apple
3.1552 - ;;
3.1553 - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3.1554 - vendor=atari
3.1555 - ;;
3.1556 - -vos*)
3.1557 - vendor=stratus
3.1558 - ;;
3.1559 - esac
3.1560 - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
3.1561 - ;;
3.1562 -esac
3.1563 -
3.1564 -echo $basic_machine$os
3.1565 -exit 0
3.1566 -
3.1567 -# Local variables:
3.1568 -# eval: (add-hook 'write-file-hooks 'time-stamp)
3.1569 -# time-stamp-start: "timestamp='"
3.1570 -# time-stamp-format: "%:y-%02m-%02d"
3.1571 -# time-stamp-end: "'"
3.1572 -# End:
4.1 --- a/gst-plugins-mythtv/configure.ac Thu Sep 21 14:26:37 2006 +0100
4.2 +++ b/gst-plugins-mythtv/configure.ac Thu Sep 21 15:58:58 2006 +0100
4.3 @@ -130,9 +130,25 @@
4.4 AC_SUBST(GMYTH_CFLAGS)
4.5 AC_SUBST(GMYTH_LIBS)
4.6
4.7 -# check for gstreamer development files
4.8 +# GStreamer version required
4.9 GST_REQUIRED=0.10
4.10 GST_MAJORMINOR=0.10
4.11 +
4.12 +GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-plugins-base-$GST_MAJORMINOR --variable pluginsdir`
4.13 +AC_SUBST(GST_PLUGINS_DIR)
4.14 +AC_MSG_NOTICE(Using GStreamer Base Plugins in $GST_PLUGINS_DIR)
4.15 +
4.16 +dnl LDFLAGS really should only contain flags, not libs - they get added before
4.17 +dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
4.18 +GST_ALL_LDFLAGS="-no-undefined"
4.19 +AC_SUBST(GST_ALL_LDFLAGS)
4.20 +
4.21 +dnl this really should only contain flags, not libs - they get added before
4.22 +dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
4.23 +GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex $GST_ALL_LDFLAGS $GST_PLUGINS_DIR"
4.24 +AC_SUBST(GST_PLUGIN_LDFLAGS)
4.25 +
4.26 +# check for gstreamer development files
4.27 PKG_CHECK_MODULES(GST, \
4.28 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED,
4.29 HAVE_GST=yes, HAVE_GST=no)
5.1 --- a/gst-plugins-mythtv/ltmain.sh Thu Sep 21 14:26:37 2006 +0100
5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
5.3 @@ -1,6426 +0,0 @@
5.4 -# ltmain.sh - Provide generalized library-building support services.
5.5 -# NOTE: Changing this file will not affect anything until you rerun configure.
5.6 -#
5.7 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
5.8 -# Free Software Foundation, Inc.
5.9 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5.10 -#
5.11 -# This program is free software; you can redistribute it and/or modify
5.12 -# it under the terms of the GNU General Public License as published by
5.13 -# the Free Software Foundation; either version 2 of the License, or
5.14 -# (at your option) any later version.
5.15 -#
5.16 -# This program is distributed in the hope that it will be useful, but
5.17 -# WITHOUT ANY WARRANTY; without even the implied warranty of
5.18 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5.19 -# General Public License for more details.
5.20 -#
5.21 -# You should have received a copy of the GNU General Public License
5.22 -# along with this program; if not, write to the Free Software
5.23 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5.24 -#
5.25 -# As a special exception to the GNU General Public License, if you
5.26 -# distribute this file as part of a program that contains a
5.27 -# configuration script generated by Autoconf, you may include it under
5.28 -# the same distribution terms that you use for the rest of that program.
5.29 -
5.30 -basename="s,^.*/,,g"
5.31 -
5.32 -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
5.33 -# is ksh but when the shell is invoked as "sh" and the current value of
5.34 -# the _XPG environment variable is not equal to 1 (one), the special
5.35 -# positional parameter $0, within a function call, is the name of the
5.36 -# function.
5.37 -progpath="$0"
5.38 -
5.39 -# The name of this program:
5.40 -progname=`echo "$progpath" | $SED $basename`
5.41 -modename="$progname"
5.42 -
5.43 -# Global variables:
5.44 -EXIT_SUCCESS=0
5.45 -EXIT_FAILURE=1
5.46 -
5.47 -PROGRAM=ltmain.sh
5.48 -PACKAGE=libtool
5.49 -VERSION=1.5.6
5.50 -TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $"
5.51 -
5.52 -
5.53 -# Check that we have a working $echo.
5.54 -if test "X$1" = X--no-reexec; then
5.55 - # Discard the --no-reexec flag, and continue.
5.56 - shift
5.57 -elif test "X$1" = X--fallback-echo; then
5.58 - # Avoid inline document here, it may be left over
5.59 - :
5.60 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
5.61 - # Yippee, $echo works!
5.62 - :
5.63 -else
5.64 - # Restart under the correct shell, and then maybe $echo will work.
5.65 - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
5.66 -fi
5.67 -
5.68 -if test "X$1" = X--fallback-echo; then
5.69 - # used as fallback echo
5.70 - shift
5.71 - cat <<EOF
5.72 -$*
5.73 -EOF
5.74 - exit $EXIT_SUCCESS
5.75 -fi
5.76 -
5.77 -default_mode=
5.78 -help="Try \`$progname --help' for more information."
5.79 -magic="%%%MAGIC variable%%%"
5.80 -mkdir="mkdir"
5.81 -mv="mv -f"
5.82 -rm="rm -f"
5.83 -
5.84 -# Sed substitution that helps us do robust quoting. It backslashifies
5.85 -# metacharacters that are still active within double-quoted strings.
5.86 -Xsed="${SED}"' -e 1s/^X//'
5.87 -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
5.88 -# test EBCDIC or ASCII
5.89 -case `echo A|tr A '\301'` in
5.90 - A) # EBCDIC based system
5.91 - SP2NL="tr '\100' '\n'"
5.92 - NL2SP="tr '\r\n' '\100\100'"
5.93 - ;;
5.94 - *) # Assume ASCII based system
5.95 - SP2NL="tr '\040' '\012'"
5.96 - NL2SP="tr '\015\012' '\040\040'"
5.97 - ;;
5.98 -esac
5.99 -
5.100 -# NLS nuisances.
5.101 -# Only set LANG and LC_ALL to C if already set.
5.102 -# These must not be set unconditionally because not all systems understand
5.103 -# e.g. LANG=C (notably SCO).
5.104 -# We save the old values to restore during execute mode.
5.105 -if test "${LC_ALL+set}" = set; then
5.106 - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
5.107 -fi
5.108 -if test "${LANG+set}" = set; then
5.109 - save_LANG="$LANG"; LANG=C; export LANG
5.110 -fi
5.111 -
5.112 -# Make sure IFS has a sensible default
5.113 -: ${IFS="
5.114 -"}
5.115 -
5.116 -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
5.117 - $echo "$modename: not configured to build any kind of library" 1>&2
5.118 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
5.119 - exit $EXIT_FAILURE
5.120 -fi
5.121 -
5.122 -# Global variables.
5.123 -mode=$default_mode
5.124 -nonopt=
5.125 -prev=
5.126 -prevopt=
5.127 -run=
5.128 -show="$echo"
5.129 -show_help=
5.130 -execute_dlfiles=
5.131 -lo2o="s/\\.lo\$/.${objext}/"
5.132 -o2lo="s/\\.${objext}\$/.lo/"
5.133 -
5.134 -#####################################
5.135 -# Shell function definitions:
5.136 -# This seems to be the best place for them
5.137 -
5.138 -# func_win32_libid arg
5.139 -# return the library type of file 'arg'
5.140 -#
5.141 -# Need a lot of goo to handle *both* DLLs and import libs
5.142 -# Has to be a shell function in order to 'eat' the argument
5.143 -# that is supplied when $file_magic_command is called.
5.144 -func_win32_libid () {
5.145 - win32_libid_type="unknown"
5.146 - win32_fileres=`file -L $1 2>/dev/null`
5.147 - case $win32_fileres in
5.148 - *ar\ archive\ import\ library*) # definitely import
5.149 - win32_libid_type="x86 archive import"
5.150 - ;;
5.151 - *ar\ archive*) # could be an import, or static
5.152 - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
5.153 - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
5.154 - win32_nmres=`eval $NM -f posix -A $1 | \
5.155 - sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
5.156 - if test "X$win32_nmres" = "Ximport" ; then
5.157 - win32_libid_type="x86 archive import"
5.158 - else
5.159 - win32_libid_type="x86 archive static"
5.160 - fi
5.161 - fi
5.162 - ;;
5.163 - *DLL*)
5.164 - win32_libid_type="x86 DLL"
5.165 - ;;
5.166 - *executable*) # but shell scripts are "executable" too...
5.167 - case $win32_fileres in
5.168 - *MS\ Windows\ PE\ Intel*)
5.169 - win32_libid_type="x86 DLL"
5.170 - ;;
5.171 - esac
5.172 - ;;
5.173 - esac
5.174 - $echo $win32_libid_type
5.175 -}
5.176 -
5.177 -
5.178 -# func_infer_tag arg
5.179 -# Infer tagged configuration to use if any are available and
5.180 -# if one wasn't chosen via the "--tag" command line option.
5.181 -# Only attempt this if the compiler in the base compile
5.182 -# command doesn't match the default compiler.
5.183 -# arg is usually of the form 'gcc ...'
5.184 -func_infer_tag () {
5.185 - if test -n "$available_tags" && test -z "$tagname"; then
5.186 - CC_quoted=
5.187 - for arg in $CC; do
5.188 - case $arg in
5.189 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5.190 - arg="\"$arg\""
5.191 - ;;
5.192 - esac
5.193 - CC_quoted="$CC_quoted $arg"
5.194 - done
5.195 - case $@ in
5.196 - # Blanks in the command may have been stripped by the calling shell,
5.197 - # but not from the CC environment variable when configure was run.
5.198 - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
5.199 - # Blanks at the start of $base_compile will cause this to fail
5.200 - # if we don't check for them as well.
5.201 - *)
5.202 - for z in $available_tags; do
5.203 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
5.204 - # Evaluate the configuration.
5.205 - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
5.206 - CC_quoted=
5.207 - for arg in $CC; do
5.208 - # Double-quote args containing other shell metacharacters.
5.209 - case $arg in
5.210 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5.211 - arg="\"$arg\""
5.212 - ;;
5.213 - esac
5.214 - CC_quoted="$CC_quoted $arg"
5.215 - done
5.216 - case "$@ " in
5.217 - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
5.218 - # The compiler in the base compile command matches
5.219 - # the one in the tagged configuration.
5.220 - # Assume this is the tagged configuration we want.
5.221 - tagname=$z
5.222 - break
5.223 - ;;
5.224 - esac
5.225 - fi
5.226 - done
5.227 - # If $tagname still isn't set, then no tagged configuration
5.228 - # was found and let the user know that the "--tag" command
5.229 - # line option must be used.
5.230 - if test -z "$tagname"; then
5.231 - $echo "$modename: unable to infer tagged configuration"
5.232 - $echo "$modename: specify a tag with \`--tag'" 1>&2
5.233 - exit $EXIT_FAILURE
5.234 -# else
5.235 -# $echo "$modename: using $tagname tagged configuration"
5.236 - fi
5.237 - ;;
5.238 - esac
5.239 - fi
5.240 -}
5.241 -# End of Shell function definitions
5.242 -#####################################
5.243 -
5.244 -# Darwin sucks
5.245 -eval std_shrext=\"$shrext_cmds\"
5.246 -
5.247 -# Parse our command line options once, thoroughly.
5.248 -while test "$#" -gt 0
5.249 -do
5.250 - arg="$1"
5.251 - shift
5.252 -
5.253 - case $arg in
5.254 - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
5.255 - *) optarg= ;;
5.256 - esac
5.257 -
5.258 - # If the previous option needs an argument, assign it.
5.259 - if test -n "$prev"; then
5.260 - case $prev in
5.261 - execute_dlfiles)
5.262 - execute_dlfiles="$execute_dlfiles $arg"
5.263 - ;;
5.264 - tag)
5.265 - tagname="$arg"
5.266 - preserve_args="${preserve_args}=$arg"
5.267 -
5.268 - # Check whether tagname contains only valid characters
5.269 - case $tagname in
5.270 - *[!-_A-Za-z0-9,/]*)
5.271 - $echo "$progname: invalid tag name: $tagname" 1>&2
5.272 - exit $EXIT_FAILURE
5.273 - ;;
5.274 - esac
5.275 -
5.276 - case $tagname in
5.277 - CC)
5.278 - # Don't test for the "default" C tag, as we know, it's there, but
5.279 - # not specially marked.
5.280 - ;;
5.281 - *)
5.282 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
5.283 - taglist="$taglist $tagname"
5.284 - # Evaluate the configuration.
5.285 - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
5.286 - else
5.287 - $echo "$progname: ignoring unknown tag $tagname" 1>&2
5.288 - fi
5.289 - ;;
5.290 - esac
5.291 - ;;
5.292 - *)
5.293 - eval "$prev=\$arg"
5.294 - ;;
5.295 - esac
5.296 -
5.297 - prev=
5.298 - prevopt=
5.299 - continue
5.300 - fi
5.301 -
5.302 - # Have we seen a non-optional argument yet?
5.303 - case $arg in
5.304 - --help)
5.305 - show_help=yes
5.306 - ;;
5.307 -
5.308 - --version)
5.309 - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
5.310 - $echo
5.311 - $echo "Copyright (C) 2003 Free Software Foundation, Inc."
5.312 - $echo "This is free software; see the source for copying conditions. There is NO"
5.313 - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
5.314 - exit $EXIT_SUCCESS
5.315 - ;;
5.316 -
5.317 - --config)
5.318 - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
5.319 - # Now print the configurations for the tags.
5.320 - for tagname in $taglist; do
5.321 - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
5.322 - done
5.323 - exit $EXIT_SUCCESS
5.324 - ;;
5.325 -
5.326 - --debug)
5.327 - $echo "$progname: enabling shell trace mode"
5.328 - set -x
5.329 - preserve_args="$preserve_args $arg"
5.330 - ;;
5.331 -
5.332 - --dry-run | -n)
5.333 - run=:
5.334 - ;;
5.335 -
5.336 - --features)
5.337 - $echo "host: $host"
5.338 - if test "$build_libtool_libs" = yes; then
5.339 - $echo "enable shared libraries"
5.340 - else
5.341 - $echo "disable shared libraries"
5.342 - fi
5.343 - if test "$build_old_libs" = yes; then
5.344 - $echo "enable static libraries"
5.345 - else
5.346 - $echo "disable static libraries"
5.347 - fi
5.348 - exit $EXIT_SUCCESS
5.349 - ;;
5.350 -
5.351 - --finish) mode="finish" ;;
5.352 -
5.353 - --mode) prevopt="--mode" prev=mode ;;
5.354 - --mode=*) mode="$optarg" ;;
5.355 -
5.356 - --preserve-dup-deps) duplicate_deps="yes" ;;
5.357 -
5.358 - --quiet | --silent)
5.359 - show=:
5.360 - preserve_args="$preserve_args $arg"
5.361 - ;;
5.362 -
5.363 - --tag) prevopt="--tag" prev=tag ;;
5.364 - --tag=*)
5.365 - set tag "$optarg" ${1+"$@"}
5.366 - shift
5.367 - prev=tag
5.368 - preserve_args="$preserve_args --tag"
5.369 - ;;
5.370 -
5.371 - -dlopen)
5.372 - prevopt="-dlopen"
5.373 - prev=execute_dlfiles
5.374 - ;;
5.375 -
5.376 - -*)
5.377 - $echo "$modename: unrecognized option \`$arg'" 1>&2
5.378 - $echo "$help" 1>&2
5.379 - exit $EXIT_FAILURE
5.380 - ;;
5.381 -
5.382 - *)
5.383 - nonopt="$arg"
5.384 - break
5.385 - ;;
5.386 - esac
5.387 -done
5.388 -
5.389 -if test -n "$prevopt"; then
5.390 - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
5.391 - $echo "$help" 1>&2
5.392 - exit $EXIT_FAILURE
5.393 -fi
5.394 -
5.395 -# If this variable is set in any of the actions, the command in it
5.396 -# will be execed at the end. This prevents here-documents from being
5.397 -# left over by shells.
5.398 -exec_cmd=
5.399 -
5.400 -if test -z "$show_help"; then
5.401 -
5.402 - # Infer the operation mode.
5.403 - if test -z "$mode"; then
5.404 - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
5.405 - $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
5.406 - case $nonopt in
5.407 - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
5.408 - mode=link
5.409 - for arg
5.410 - do
5.411 - case $arg in
5.412 - -c)
5.413 - mode=compile
5.414 - break
5.415 - ;;
5.416 - esac
5.417 - done
5.418 - ;;
5.419 - *db | *dbx | *strace | *truss)
5.420 - mode=execute
5.421 - ;;
5.422 - *install*|cp|mv)
5.423 - mode=install
5.424 - ;;
5.425 - *rm)
5.426 - mode=uninstall
5.427 - ;;
5.428 - *)
5.429 - # If we have no mode, but dlfiles were specified, then do execute mode.
5.430 - test -n "$execute_dlfiles" && mode=execute
5.431 -
5.432 - # Just use the default operation mode.
5.433 - if test -z "$mode"; then
5.434 - if test -n "$nonopt"; then
5.435 - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
5.436 - else
5.437 - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
5.438 - fi
5.439 - fi
5.440 - ;;
5.441 - esac
5.442 - fi
5.443 -
5.444 - # Only execute mode is allowed to have -dlopen flags.
5.445 - if test -n "$execute_dlfiles" && test "$mode" != execute; then
5.446 - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
5.447 - $echo "$help" 1>&2
5.448 - exit $EXIT_FAILURE
5.449 - fi
5.450 -
5.451 - # Change the help message to a mode-specific one.
5.452 - generic_help="$help"
5.453 - help="Try \`$modename --help --mode=$mode' for more information."
5.454 -
5.455 - # These modes are in order of execution frequency so that they run quickly.
5.456 - case $mode in
5.457 - # libtool compile mode
5.458 - compile)
5.459 - modename="$modename: compile"
5.460 - # Get the compilation command and the source file.
5.461 - base_compile=
5.462 - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
5.463 - suppress_opt=yes
5.464 - suppress_output=
5.465 - arg_mode=normal
5.466 - libobj=
5.467 - later=
5.468 -
5.469 - for arg
5.470 - do
5.471 - case "$arg_mode" in
5.472 - arg )
5.473 - # do not "continue". Instead, add this to base_compile
5.474 - lastarg="$arg"
5.475 - arg_mode=normal
5.476 - ;;
5.477 -
5.478 - target )
5.479 - libobj="$arg"
5.480 - arg_mode=normal
5.481 - continue
5.482 - ;;
5.483 -
5.484 - normal )
5.485 - # Accept any command-line options.
5.486 - case $arg in
5.487 - -o)
5.488 - if test -n "$libobj" ; then
5.489 - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
5.490 - exit $EXIT_FAILURE
5.491 - fi
5.492 - arg_mode=target
5.493 - continue
5.494 - ;;
5.495 -
5.496 - -static | -prefer-pic | -prefer-non-pic)
5.497 - later="$later $arg"
5.498 - continue
5.499 - ;;
5.500 -
5.501 - -no-suppress)
5.502 - suppress_opt=no
5.503 - continue
5.504 - ;;
5.505 -
5.506 - -Xcompiler)
5.507 - arg_mode=arg # the next one goes into the "base_compile" arg list
5.508 - continue # The current "srcfile" will either be retained or
5.509 - ;; # replaced later. I would guess that would be a bug.
5.510 -
5.511 - -Wc,*)
5.512 - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
5.513 - lastarg=
5.514 - save_ifs="$IFS"; IFS=','
5.515 - for arg in $args; do
5.516 - IFS="$save_ifs"
5.517 -
5.518 - # Double-quote args containing other shell metacharacters.
5.519 - # Many Bourne shells cannot handle close brackets correctly
5.520 - # in scan sets, so we specify it separately.
5.521 - case $arg in
5.522 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5.523 - arg="\"$arg\""
5.524 - ;;
5.525 - esac
5.526 - lastarg="$lastarg $arg"
5.527 - done
5.528 - IFS="$save_ifs"
5.529 - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
5.530 -
5.531 - # Add the arguments to base_compile.
5.532 - base_compile="$base_compile $lastarg"
5.533 - continue
5.534 - ;;
5.535 -
5.536 - * )
5.537 - # Accept the current argument as the source file.
5.538 - # The previous "srcfile" becomes the current argument.
5.539 - #
5.540 - lastarg="$srcfile"
5.541 - srcfile="$arg"
5.542 - ;;
5.543 - esac # case $arg
5.544 - ;;
5.545 - esac # case $arg_mode
5.546 -
5.547 - # Aesthetically quote the previous argument.
5.548 - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
5.549 -
5.550 - case $lastarg in
5.551 - # Double-quote args containing other shell metacharacters.
5.552 - # Many Bourne shells cannot handle close brackets correctly
5.553 - # in scan sets, so we specify it separately.
5.554 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5.555 - lastarg="\"$lastarg\""
5.556 - ;;
5.557 - esac
5.558 -
5.559 - base_compile="$base_compile $lastarg"
5.560 - done # for arg
5.561 -
5.562 - case $arg_mode in
5.563 - arg)
5.564 - $echo "$modename: you must specify an argument for -Xcompile"
5.565 - exit $EXIT_FAILURE
5.566 - ;;
5.567 - target)
5.568 - $echo "$modename: you must specify a target with \`-o'" 1>&2
5.569 - exit $EXIT_FAILURE
5.570 - ;;
5.571 - *)
5.572 - # Get the name of the library object.
5.573 - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
5.574 - ;;
5.575 - esac
5.576 -
5.577 - # Recognize several different file suffixes.
5.578 - # If the user specifies -o file.o, it is replaced with file.lo
5.579 - xform='[cCFSifmso]'
5.580 - case $libobj in
5.581 - *.ada) xform=ada ;;
5.582 - *.adb) xform=adb ;;
5.583 - *.ads) xform=ads ;;
5.584 - *.asm) xform=asm ;;
5.585 - *.c++) xform=c++ ;;
5.586 - *.cc) xform=cc ;;
5.587 - *.ii) xform=ii ;;
5.588 - *.class) xform=class ;;
5.589 - *.cpp) xform=cpp ;;
5.590 - *.cxx) xform=cxx ;;
5.591 - *.f90) xform=f90 ;;
5.592 - *.for) xform=for ;;
5.593 - *.java) xform=java ;;
5.594 - esac
5.595 -
5.596 - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
5.597 -
5.598 - case $libobj in
5.599 - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
5.600 - *)
5.601 - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
5.602 - exit $EXIT_FAILURE
5.603 - ;;
5.604 - esac
5.605 -
5.606 - func_infer_tag $base_compile
5.607 -
5.608 - for arg in $later; do
5.609 - case $arg in
5.610 - -static)
5.611 - build_old_libs=yes
5.612 - continue
5.613 - ;;
5.614 -
5.615 - -prefer-pic)
5.616 - pic_mode=yes
5.617 - continue
5.618 - ;;
5.619 -
5.620 - -prefer-non-pic)
5.621 - pic_mode=no
5.622 - continue
5.623 - ;;
5.624 - esac
5.625 - done
5.626 -
5.627 - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5.628 - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
5.629 - if test "X$xdir" = "X$obj"; then
5.630 - xdir=
5.631 - else
5.632 - xdir=$xdir/
5.633 - fi
5.634 - lobj=${xdir}$objdir/$objname
5.635 -
5.636 - if test -z "$base_compile"; then
5.637 - $echo "$modename: you must specify a compilation command" 1>&2
5.638 - $echo "$help" 1>&2
5.639 - exit $EXIT_FAILURE
5.640 - fi
5.641 -
5.642 - # Delete any leftover library objects.
5.643 - if test "$build_old_libs" = yes; then
5.644 - removelist="$obj $lobj $libobj ${libobj}T"
5.645 - else
5.646 - removelist="$lobj $libobj ${libobj}T"
5.647 - fi
5.648 -
5.649 - $run $rm $removelist
5.650 - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
5.651 -
5.652 - # On Cygwin there's no "real" PIC flag so we must build both object types
5.653 - case $host_os in
5.654 - cygwin* | mingw* | pw32* | os2*)
5.655 - pic_mode=default
5.656 - ;;
5.657 - esac
5.658 - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
5.659 - # non-PIC code in shared libraries is not supported
5.660 - pic_mode=default
5.661 - fi
5.662 -
5.663 - # Calculate the filename of the output object if compiler does
5.664 - # not support -o with -c
5.665 - if test "$compiler_c_o" = no; then
5.666 - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
5.667 - lockfile="$output_obj.lock"
5.668 - removelist="$removelist $output_obj $lockfile"
5.669 - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
5.670 - else
5.671 - output_obj=
5.672 - need_locks=no
5.673 - lockfile=
5.674 - fi
5.675 -
5.676 - # Lock this critical section if it is needed
5.677 - # We use this script file to make the link, it avoids creating a new file
5.678 - if test "$need_locks" = yes; then
5.679 - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
5.680 - $show "Waiting for $lockfile to be removed"
5.681 - sleep 2
5.682 - done
5.683 - elif test "$need_locks" = warn; then
5.684 - if test -f "$lockfile"; then
5.685 - $echo "\
5.686 -*** ERROR, $lockfile exists and contains:
5.687 -`cat $lockfile 2>/dev/null`
5.688 -
5.689 -This indicates that another process is trying to use the same
5.690 -temporary object file, and libtool could not work around it because
5.691 -your compiler does not support \`-c' and \`-o' together. If you
5.692 -repeat this compilation, it may succeed, by chance, but you had better
5.693 -avoid parallel builds (make -j) in this platform, or get a better
5.694 -compiler."
5.695 -
5.696 - $run $rm $removelist
5.697 - exit $EXIT_FAILURE
5.698 - fi
5.699 - $echo $srcfile > "$lockfile"
5.700 - fi
5.701 -
5.702 - if test -n "$fix_srcfile_path"; then
5.703 - eval srcfile=\"$fix_srcfile_path\"
5.704 - fi
5.705 -
5.706 - $run $rm "$libobj" "${libobj}T"
5.707 -
5.708 - # Create a libtool object file (analogous to a ".la" file),
5.709 - # but don't create it if we're doing a dry run.
5.710 - test -z "$run" && cat > ${libobj}T <<EOF
5.711 -# $libobj - a libtool object file
5.712 -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5.713 -#
5.714 -# Please DO NOT delete this file!
5.715 -# It is necessary for linking the library.
5.716 -
5.717 -# Name of the PIC object.
5.718 -EOF
5.719 -
5.720 - # Only build a PIC object if we are building libtool libraries.
5.721 - if test "$build_libtool_libs" = yes; then
5.722 - # Without this assignment, base_compile gets emptied.
5.723 - fbsd_hideous_sh_bug=$base_compile
5.724 -
5.725 - if test "$pic_mode" != no; then
5.726 - command="$base_compile $srcfile $pic_flag"
5.727 - else
5.728 - # Don't build PIC code
5.729 - command="$base_compile $srcfile"
5.730 - fi
5.731 -
5.732 - if test ! -d "${xdir}$objdir"; then
5.733 - $show "$mkdir ${xdir}$objdir"
5.734 - $run $mkdir ${xdir}$objdir
5.735 - status=$?
5.736 - if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
5.737 - exit $status
5.738 - fi
5.739 - fi
5.740 -
5.741 - if test -z "$output_obj"; then
5.742 - # Place PIC objects in $objdir
5.743 - command="$command -o $lobj"
5.744 - fi
5.745 -
5.746 - $run $rm "$lobj" "$output_obj"
5.747 -
5.748 - $show "$command"
5.749 - if $run eval "$command"; then :
5.750 - else
5.751 - test -n "$output_obj" && $run $rm $removelist
5.752 - exit $EXIT_FAILURE
5.753 - fi
5.754 -
5.755 - if test "$need_locks" = warn &&
5.756 - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
5.757 - $echo "\
5.758 -*** ERROR, $lockfile contains:
5.759 -`cat $lockfile 2>/dev/null`
5.760 -
5.761 -but it should contain:
5.762 -$srcfile
5.763 -
5.764 -This indicates that another process is trying to use the same
5.765 -temporary object file, and libtool could not work around it because
5.766 -your compiler does not support \`-c' and \`-o' together. If you
5.767 -repeat this compilation, it may succeed, by chance, but you had better
5.768 -avoid parallel builds (make -j) in this platform, or get a better
5.769 -compiler."
5.770 -
5.771 - $run $rm $removelist
5.772 - exit $EXIT_FAILURE
5.773 - fi
5.774 -
5.775 - # Just move the object if needed, then go on to compile the next one
5.776 - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
5.777 - $show "$mv $output_obj $lobj"
5.778 - if $run $mv $output_obj $lobj; then :
5.779 - else
5.780 - error=$?
5.781 - $run $rm $removelist
5.782 - exit $error
5.783 - fi
5.784 - fi
5.785 -
5.786 - # Append the name of the PIC object to the libtool object file.
5.787 - test -z "$run" && cat >> ${libobj}T <<EOF
5.788 -pic_object='$objdir/$objname'
5.789 -
5.790 -EOF
5.791 -
5.792 - # Allow error messages only from the first compilation.
5.793 - if test "$suppress_opt" = yes; then
5.794 - suppress_output=' >/dev/null 2>&1'
5.795 - fi
5.796 - else
5.797 - # No PIC object so indicate it doesn't exist in the libtool
5.798 - # object file.
5.799 - test -z "$run" && cat >> ${libobj}T <<EOF
5.800 -pic_object=none
5.801 -
5.802 -EOF
5.803 - fi
5.804 -
5.805 - # Only build a position-dependent object if we build old libraries.
5.806 - if test "$build_old_libs" = yes; then
5.807 - if test "$pic_mode" != yes; then
5.808 - # Don't build PIC code
5.809 - command="$base_compile $srcfile"
5.810 - else
5.811 - command="$base_compile $srcfile $pic_flag"
5.812 - fi
5.813 - if test "$compiler_c_o" = yes; then
5.814 - command="$command -o $obj"
5.815 - fi
5.816 -
5.817 - # Suppress compiler output if we already did a PIC compilation.
5.818 - command="$command$suppress_output"
5.819 - $run $rm "$obj" "$output_obj"
5.820 - $show "$command"
5.821 - if $run eval "$command"; then :
5.822 - else
5.823 - $run $rm $removelist
5.824 - exit $EXIT_FAILURE
5.825 - fi
5.826 -
5.827 - if test "$need_locks" = warn &&
5.828 - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
5.829 - $echo "\
5.830 -*** ERROR, $lockfile contains:
5.831 -`cat $lockfile 2>/dev/null`
5.832 -
5.833 -but it should contain:
5.834 -$srcfile
5.835 -
5.836 -This indicates that another process is trying to use the same
5.837 -temporary object file, and libtool could not work around it because
5.838 -your compiler does not support \`-c' and \`-o' together. If you
5.839 -repeat this compilation, it may succeed, by chance, but you had better
5.840 -avoid parallel builds (make -j) in this platform, or get a better
5.841 -compiler."
5.842 -
5.843 - $run $rm $removelist
5.844 - exit $EXIT_FAILURE
5.845 - fi
5.846 -
5.847 - # Just move the object if needed
5.848 - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
5.849 - $show "$mv $output_obj $obj"
5.850 - if $run $mv $output_obj $obj; then :
5.851 - else
5.852 - error=$?
5.853 - $run $rm $removelist
5.854 - exit $error
5.855 - fi
5.856 - fi
5.857 -
5.858 - # Append the name of the non-PIC object the libtool object file.
5.859 - # Only append if the libtool object file exists.
5.860 - test -z "$run" && cat >> ${libobj}T <<EOF
5.861 -# Name of the non-PIC object.
5.862 -non_pic_object='$objname'
5.863 -
5.864 -EOF
5.865 - else
5.866 - # Append the name of the non-PIC object the libtool object file.
5.867 - # Only append if the libtool object file exists.
5.868 - test -z "$run" && cat >> ${libobj}T <<EOF
5.869 -# Name of the non-PIC object.
5.870 -non_pic_object=none
5.871 -
5.872 -EOF
5.873 - fi
5.874 -
5.875 - $run $mv "${libobj}T" "${libobj}"
5.876 -
5.877 - # Unlock the critical section if it was locked
5.878 - if test "$need_locks" != no; then
5.879 - $run $rm "$lockfile"
5.880 - fi
5.881 -
5.882 - exit $EXIT_SUCCESS
5.883 - ;;
5.884 -
5.885 - # libtool link mode
5.886 - link | relink)
5.887 - modename="$modename: link"
5.888 - case $host in
5.889 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
5.890 - # It is impossible to link a dll without this setting, and
5.891 - # we shouldn't force the makefile maintainer to figure out
5.892 - # which system we are compiling for in order to pass an extra
5.893 - # flag for every libtool invocation.
5.894 - # allow_undefined=no
5.895 -
5.896 - # FIXME: Unfortunately, there are problems with the above when trying
5.897 - # to make a dll which has undefined symbols, in which case not
5.898 - # even a static library is built. For now, we need to specify
5.899 - # -no-undefined on the libtool link line when we can be certain
5.900 - # that all symbols are satisfied, otherwise we get a static library.
5.901 - allow_undefined=yes
5.902 - ;;
5.903 - *)
5.904 - allow_undefined=yes
5.905 - ;;
5.906 - esac
5.907 - libtool_args="$nonopt"
5.908 - base_compile="$nonopt $@"
5.909 - compile_command="$nonopt"
5.910 - finalize_command="$nonopt"
5.911 -
5.912 - compile_rpath=
5.913 - finalize_rpath=
5.914 - compile_shlibpath=
5.915 - finalize_shlibpath=
5.916 - convenience=
5.917 - old_convenience=
5.918 - deplibs=
5.919 - old_deplibs=
5.920 - compiler_flags=
5.921 - linker_flags=
5.922 - dllsearchpath=
5.923 - lib_search_path=`pwd`
5.924 - inst_prefix_dir=
5.925 -
5.926 - avoid_version=no
5.927 - dlfiles=
5.928 - dlprefiles=
5.929 - dlself=no
5.930 - export_dynamic=no
5.931 - export_symbols=
5.932 - export_symbols_regex=
5.933 - generated=
5.934 - libobjs=
5.935 - ltlibs=
5.936 - module=no
5.937 - no_install=no
5.938 - objs=
5.939 - non_pic_objects=
5.940 - precious_files_regex=
5.941 - prefer_static_libs=no
5.942 - preload=no
5.943 - prev=
5.944 - prevarg=
5.945 - release=
5.946 - rpath=
5.947 - xrpath=
5.948 - perm_rpath=
5.949 - temp_rpath=
5.950 - thread_safe=no
5.951 - vinfo=
5.952 - vinfo_number=no
5.953 -
5.954 - func_infer_tag $base_compile
5.955 -
5.956 - # We need to know -static, to get the right output filenames.
5.957 - for arg
5.958 - do
5.959 - case $arg in
5.960 - -all-static | -static)
5.961 - if test "X$arg" = "X-all-static"; then
5.962 - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
5.963 - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
5.964 - fi
5.965 - if test -n "$link_static_flag"; then
5.966 - dlopen_self=$dlopen_self_static
5.967 - fi
5.968 - else
5.969 - if test -z "$pic_flag" && test -n "$link_static_flag"; then
5.970 - dlopen_self=$dlopen_self_static
5.971 - fi
5.972 - fi
5.973 - build_libtool_libs=no
5.974 - build_old_libs=yes
5.975 - prefer_static_libs=yes
5.976 - break
5.977 - ;;
5.978 - esac
5.979 - done
5.980 -
5.981 - # See if our shared archives depend on static archives.
5.982 - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
5.983 -
5.984 - # Go through the arguments, transforming them on the way.
5.985 - while test "$#" -gt 0; do
5.986 - arg="$1"
5.987 - shift
5.988 - case $arg in
5.989 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5.990 - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
5.991 - ;;
5.992 - *) qarg=$arg ;;
5.993 - esac
5.994 - libtool_args="$libtool_args $qarg"
5.995 -
5.996 - # If the previous option needs an argument, assign it.
5.997 - if test -n "$prev"; then
5.998 - case $prev in
5.999 - output)
5.1000 - compile_command="$compile_command @OUTPUT@"
5.1001 - finalize_command="$finalize_command @OUTPUT@"
5.1002 - ;;
5.1003 - esac
5.1004 -
5.1005 - case $prev in
5.1006 - dlfiles|dlprefiles)
5.1007 - if test "$preload" = no; then
5.1008 - # Add the symbol object into the linking commands.
5.1009 - compile_command="$compile_command @SYMFILE@"
5.1010 - finalize_command="$finalize_command @SYMFILE@"
5.1011 - preload=yes
5.1012 - fi
5.1013 - case $arg in
5.1014 - *.la | *.lo) ;; # We handle these cases below.
5.1015 - force)
5.1016 - if test "$dlself" = no; then
5.1017 - dlself=needless
5.1018 - export_dynamic=yes
5.1019 - fi
5.1020 - prev=
5.1021 - continue
5.1022 - ;;
5.1023 - self)
5.1024 - if test "$prev" = dlprefiles; then
5.1025 - dlself=yes
5.1026 - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
5.1027 - dlself=yes
5.1028 - else
5.1029 - dlself=needless
5.1030 - export_dynamic=yes
5.1031 - fi
5.1032 - prev=
5.1033 - continue
5.1034 - ;;
5.1035 - *)
5.1036 - if test "$prev" = dlfiles; then
5.1037 - dlfiles="$dlfiles $arg"
5.1038 - else
5.1039 - dlprefiles="$dlprefiles $arg"
5.1040 - fi
5.1041 - prev=
5.1042 - continue
5.1043 - ;;
5.1044 - esac
5.1045 - ;;
5.1046 - expsyms)
5.1047 - export_symbols="$arg"
5.1048 - if test ! -f "$arg"; then
5.1049 - $echo "$modename: symbol file \`$arg' does not exist"
5.1050 - exit $EXIT_FAILURE
5.1051 - fi
5.1052 - prev=
5.1053 - continue
5.1054 - ;;
5.1055 - expsyms_regex)
5.1056 - export_symbols_regex="$arg"
5.1057 - prev=
5.1058 - continue
5.1059 - ;;
5.1060 - inst_prefix)
5.1061 - inst_prefix_dir="$arg"
5.1062 - prev=
5.1063 - continue
5.1064 - ;;
5.1065 - precious_regex)
5.1066 - precious_files_regex="$arg"
5.1067 - prev=
5.1068 - continue
5.1069 - ;;
5.1070 - release)
5.1071 - release="-$arg"
5.1072 - prev=
5.1073 - continue
5.1074 - ;;
5.1075 - objectlist)
5.1076 - if test -f "$arg"; then
5.1077 - save_arg=$arg
5.1078 - moreargs=
5.1079 - for fil in `cat $save_arg`
5.1080 - do
5.1081 -# moreargs="$moreargs $fil"
5.1082 - arg=$fil
5.1083 - # A libtool-controlled object.
5.1084 -
5.1085 - # Check to see that this really is a libtool object.
5.1086 - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5.1087 - pic_object=
5.1088 - non_pic_object=
5.1089 -
5.1090 - # Read the .lo file
5.1091 - # If there is no directory component, then add one.
5.1092 - case $arg in
5.1093 - */* | *\\*) . $arg ;;
5.1094 - *) . ./$arg ;;
5.1095 - esac
5.1096 -
5.1097 - if test -z "$pic_object" || \
5.1098 - test -z "$non_pic_object" ||
5.1099 - test "$pic_object" = none && \
5.1100 - test "$non_pic_object" = none; then
5.1101 - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
5.1102 - exit $EXIT_FAILURE
5.1103 - fi
5.1104 -
5.1105 - # Extract subdirectory from the argument.
5.1106 - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
5.1107 - if test "X$xdir" = "X$arg"; then
5.1108 - xdir=
5.1109 - else
5.1110 - xdir="$xdir/"
5.1111 - fi
5.1112 -
5.1113 - if test "$pic_object" != none; then
5.1114 - # Prepend the subdirectory the object is found in.
5.1115 - pic_object="$xdir$pic_object"
5.1116 -
5.1117 - if test "$prev" = dlfiles; then
5.1118 - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5.1119 - dlfiles="$dlfiles $pic_object"
5.1120 - prev=
5.1121 - continue
5.1122 - else
5.1123 - # If libtool objects are unsupported, then we need to preload.
5.1124 - prev=dlprefiles
5.1125 - fi
5.1126 - fi
5.1127 -
5.1128 - # CHECK ME: I think I busted this. -Ossama
5.1129 - if test "$prev" = dlprefiles; then
5.1130 - # Preload the old-style object.
5.1131 - dlprefiles="$dlprefiles $pic_object"
5.1132 - prev=
5.1133 - fi
5.1134 -
5.1135 - # A PIC object.
5.1136 - libobjs="$libobjs $pic_object"
5.1137 - arg="$pic_object"
5.1138 - fi
5.1139 -
5.1140 - # Non-PIC object.
5.1141 - if test "$non_pic_object" != none; then
5.1142 - # Prepend the subdirectory the object is found in.
5.1143 - non_pic_object="$xdir$non_pic_object"
5.1144 -
5.1145 - # A standard non-PIC object
5.1146 - non_pic_objects="$non_pic_objects $non_pic_object"
5.1147 - if test -z "$pic_object" || test "$pic_object" = none ; then
5.1148 - arg="$non_pic_object"
5.1149 - fi
5.1150 - fi
5.1151 - else
5.1152 - # Only an error if not doing a dry-run.
5.1153 - if test -z "$run"; then
5.1154 - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
5.1155 - exit $EXIT_FAILURE
5.1156 - else
5.1157 - # Dry-run case.
5.1158 -
5.1159 - # Extract subdirectory from the argument.
5.1160 - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
5.1161 - if test "X$xdir" = "X$arg"; then
5.1162 - xdir=
5.1163 - else
5.1164 - xdir="$xdir/"
5.1165 - fi
5.1166 -
5.1167 - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
5.1168 - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
5.1169 - libobjs="$libobjs $pic_object"
5.1170 - non_pic_objects="$non_pic_objects $non_pic_object"
5.1171 - fi
5.1172 - fi
5.1173 - done
5.1174 - else
5.1175 - $echo "$modename: link input file \`$save_arg' does not exist"
5.1176 - exit $EXIT_FAILURE
5.1177 - fi
5.1178 - arg=$save_arg
5.1179 - prev=
5.1180 - continue
5.1181 - ;;
5.1182 - rpath | xrpath)
5.1183 - # We need an absolute path.
5.1184 - case $arg in
5.1185 - [\\/]* | [A-Za-z]:[\\/]*) ;;
5.1186 - *)
5.1187 - $echo "$modename: only absolute run-paths are allowed" 1>&2
5.1188 - exit $EXIT_FAILURE
5.1189 - ;;
5.1190 - esac
5.1191 - if test "$prev" = rpath; then
5.1192 - case "$rpath " in
5.1193 - *" $arg "*) ;;
5.1194 - *) rpath="$rpath $arg" ;;
5.1195 - esac
5.1196 - else
5.1197 - case "$xrpath " in
5.1198 - *" $arg "*) ;;
5.1199 - *) xrpath="$xrpath $arg" ;;
5.1200 - esac
5.1201 - fi
5.1202 - prev=
5.1203 - continue
5.1204 - ;;
5.1205 - xcompiler)
5.1206 - compiler_flags="$compiler_flags $qarg"
5.1207 - prev=
5.1208 - compile_command="$compile_command $qarg"
5.1209 - finalize_command="$finalize_command $qarg"
5.1210 - continue
5.1211 - ;;
5.1212 - xlinker)
5.1213 - linker_flags="$linker_flags $qarg"
5.1214 - compiler_flags="$compiler_flags $wl$qarg"
5.1215 - prev=
5.1216 - compile_command="$compile_command $wl$qarg"
5.1217 - finalize_command="$finalize_command $wl$qarg"
5.1218 - continue
5.1219 - ;;
5.1220 - xcclinker)
5.1221 - linker_flags="$linker_flags $qarg"
5.1222 - compiler_flags="$compiler_flags $qarg"
5.1223 - prev=
5.1224 - compile_command="$compile_command $qarg"
5.1225 - finalize_command="$finalize_command $qarg"
5.1226 - continue
5.1227 - ;;
5.1228 - shrext)
5.1229 - shrext_cmds="$arg"
5.1230 - prev=
5.1231 - continue
5.1232 - ;;
5.1233 - *)
5.1234 - eval "$prev=\"\$arg\""
5.1235 - prev=
5.1236 - continue
5.1237 - ;;
5.1238 - esac
5.1239 - fi # test -n "$prev"
5.1240 -
5.1241 - prevarg="$arg"
5.1242 -
5.1243 - case $arg in
5.1244 - -all-static)
5.1245 - if test -n "$link_static_flag"; then
5.1246 - compile_command="$compile_command $link_static_flag"
5.1247 - finalize_command="$finalize_command $link_static_flag"
5.1248 - fi
5.1249 - continue
5.1250 - ;;
5.1251 -
5.1252 - -allow-undefined)
5.1253 - # FIXME: remove this flag sometime in the future.
5.1254 - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
5.1255 - continue
5.1256 - ;;
5.1257 -
5.1258 - -avoid-version)
5.1259 - avoid_version=yes
5.1260 - continue
5.1261 - ;;
5.1262 -
5.1263 - -dlopen)
5.1264 - prev=dlfiles
5.1265 - continue
5.1266 - ;;
5.1267 -
5.1268 - -dlpreopen)
5.1269 - prev=dlprefiles
5.1270 - continue
5.1271 - ;;
5.1272 -
5.1273 - -export-dynamic)
5.1274 - export_dynamic=yes
5.1275 - continue
5.1276 - ;;
5.1277 -
5.1278 - -export-symbols | -export-symbols-regex)
5.1279 - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
5.1280 - $echo "$modename: more than one -exported-symbols argument is not allowed"
5.1281 - exit $EXIT_FAILURE
5.1282 - fi
5.1283 - if test "X$arg" = "X-export-symbols"; then
5.1284 - prev=expsyms
5.1285 - else
5.1286 - prev=expsyms_regex
5.1287 - fi
5.1288 - continue
5.1289 - ;;
5.1290 -
5.1291 - -inst-prefix-dir)
5.1292 - prev=inst_prefix
5.1293 - continue
5.1294 - ;;
5.1295 -
5.1296 - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
5.1297 - # so, if we see these flags be careful not to treat them like -L
5.1298 - -L[A-Z][A-Z]*:*)
5.1299 - case $with_gcc/$host in
5.1300 - no/*-*-irix* | /*-*-irix*)
5.1301 - compile_command="$compile_command $arg"
5.1302 - finalize_command="$finalize_command $arg"
5.1303 - ;;
5.1304 - esac
5.1305 - continue
5.1306 - ;;
5.1307 -
5.1308 - -L*)
5.1309 - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
5.1310 - # We need an absolute path.
5.1311 - case $dir in
5.1312 - [\\/]* | [A-Za-z]:[\\/]*) ;;
5.1313 - *)
5.1314 - absdir=`cd "$dir" && pwd`
5.1315 - if test -z "$absdir"; then
5.1316 - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
5.1317 - exit $EXIT_FAILURE
5.1318 - fi
5.1319 - dir="$absdir"
5.1320 - ;;
5.1321 - esac
5.1322 - case "$deplibs " in
5.1323 - *" -L$dir "*) ;;
5.1324 - *)
5.1325 - deplibs="$deplibs -L$dir"
5.1326 - lib_search_path="$lib_search_path $dir"
5.1327 - ;;
5.1328 - esac
5.1329 - case $host in
5.1330 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
5.1331 - case :$dllsearchpath: in
5.1332 - *":$dir:"*) ;;
5.1333 - *) dllsearchpath="$dllsearchpath:$dir";;
5.1334 - esac
5.1335 - ;;
5.1336 - esac
5.1337 - continue
5.1338 - ;;
5.1339 -
5.1340 - -l*)
5.1341 - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
5.1342 - case $host in
5.1343 - *-*-cygwin* | *-*-pw32* | *-*-beos*)
5.1344 - # These systems don't actually have a C or math library (as such)
5.1345 - continue
5.1346 - ;;
5.1347 - *-*-mingw* | *-*-os2*)
5.1348 - # These systems don't actually have a C library (as such)
5.1349 - test "X$arg" = "X-lc" && continue
5.1350 - ;;
5.1351 - *-*-openbsd* | *-*-freebsd*)
5.1352 - # Do not include libc due to us having libc/libc_r.
5.1353 - test "X$arg" = "X-lc" && continue
5.1354 - ;;
5.1355 - *-*-rhapsody* | *-*-darwin1.[012])
5.1356 - # Rhapsody C and math libraries are in the System framework
5.1357 - deplibs="$deplibs -framework System"
5.1358 - continue
5.1359 - esac
5.1360 - elif test "X$arg" = "X-lc_r"; then
5.1361 - case $host in
5.1362 - *-*-openbsd* | *-*-freebsd*)
5.1363 - # Do not include libc_r directly, use -pthread flag.
5.1364 - continue
5.1365 - ;;
5.1366 - esac
5.1367 - fi
5.1368 - deplibs="$deplibs $arg"
5.1369 - continue
5.1370 - ;;
5.1371 -
5.1372 - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
5.1373 - deplibs="$deplibs $arg"
5.1374 - continue
5.1375 - ;;
5.1376 -
5.1377 - -module)
5.1378 - module=yes
5.1379 - continue
5.1380 - ;;
5.1381 -
5.1382 - # gcc -m* arguments should be passed to the linker via $compiler_flags
5.1383 - # in order to pass architecture information to the linker
5.1384 - # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
5.1385 - # but this is not reliable with gcc because gcc may use -mfoo to
5.1386 - # select a different linker, different libraries, etc, while
5.1387 - # -Wl,-mfoo simply passes -mfoo to the linker.
5.1388 - -m*)
5.1389 - # Unknown arguments in both finalize_command and compile_command need
5.1390 - # to be aesthetically quoted because they are evaled later.
5.1391 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5.1392 - case $arg in
5.1393 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5.1394 - arg="\"$arg\""
5.1395 - ;;
5.1396 - esac
5.1397 - compile_command="$compile_command $arg"
5.1398 - finalize_command="$finalize_command $arg"
5.1399 - if test "$with_gcc" = "yes" ; then
5.1400 - compiler_flags="$compiler_flags $arg"
5.1401 - fi
5.1402 - continue
5.1403 - ;;
5.1404 -
5.1405 - -shrext)
5.1406 - prev=shrext
5.1407 - continue
5.1408 - ;;
5.1409 -
5.1410 - -no-fast-install)
5.1411 - fast_install=no
5.1412 - continue
5.1413 - ;;
5.1414 -
5.1415 - -no-install)
5.1416 - case $host in
5.1417 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
5.1418 - # The PATH hackery in wrapper scripts is required on Windows
5.1419 - # in order for the loader to find any dlls it needs.
5.1420 - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
5.1421 - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
5.1422 - fast_install=no
5.1423 - ;;
5.1424 - *) no_install=yes ;;
5.1425 - esac
5.1426 - continue
5.1427 - ;;
5.1428 -
5.1429 - -no-undefined)
5.1430 - allow_undefined=no
5.1431 - continue
5.1432 - ;;
5.1433 -
5.1434 - -objectlist)
5.1435 - prev=objectlist
5.1436 - continue
5.1437 - ;;
5.1438 -
5.1439 - -o) prev=output ;;
5.1440 -
5.1441 - -precious-files-regex)
5.1442 - prev=precious_regex
5.1443 - continue
5.1444 - ;;
5.1445 -
5.1446 - -release)
5.1447 - prev=release
5.1448 - continue
5.1449 - ;;
5.1450 -
5.1451 - -rpath)
5.1452 - prev=rpath
5.1453 - continue
5.1454 - ;;
5.1455 -
5.1456 - -R)
5.1457 - prev=xrpath
5.1458 - continue
5.1459 - ;;
5.1460 -
5.1461 - -R*)
5.1462 - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
5.1463 - # We need an absolute path.
5.1464 - case $dir in
5.1465 - [\\/]* | [A-Za-z]:[\\/]*) ;;
5.1466 - *)
5.1467 - $echo "$modename: only absolute run-paths are allowed" 1>&2
5.1468 - exit $EXIT_FAILURE
5.1469 - ;;
5.1470 - esac
5.1471 - case "$xrpath " in
5.1472 - *" $dir "*) ;;
5.1473 - *) xrpath="$xrpath $dir" ;;
5.1474 - esac
5.1475 - continue
5.1476 - ;;
5.1477 -
5.1478 - -static)
5.1479 - # The effects of -static are defined in a previous loop.
5.1480 - # We used to do the same as -all-static on platforms that
5.1481 - # didn't have a PIC flag, but the assumption that the effects
5.1482 - # would be equivalent was wrong. It would break on at least
5.1483 - # Digital Unix and AIX.
5.1484 - continue
5.1485 - ;;
5.1486 -
5.1487 - -thread-safe)
5.1488 - thread_safe=yes
5.1489 - continue
5.1490 - ;;
5.1491 -
5.1492 - -version-info)
5.1493 - prev=vinfo
5.1494 - continue
5.1495 - ;;
5.1496 - -version-number)
5.1497 - prev=vinfo
5.1498 - vinfo_number=yes
5.1499 - continue
5.1500 - ;;
5.1501 -
5.1502 - -Wc,*)
5.1503 - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
5.1504 - arg=
5.1505 - save_ifs="$IFS"; IFS=','
5.1506 - for flag in $args; do
5.1507 - IFS="$save_ifs"
5.1508 - case $flag in
5.1509 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5.1510 - flag="\"$flag\""
5.1511 - ;;
5.1512 - esac
5.1513 - arg="$arg $wl$flag"
5.1514 - compiler_flags="$compiler_flags $flag"
5.1515 - done
5.1516 - IFS="$save_ifs"
5.1517 - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
5.1518 - ;;
5.1519 -
5.1520 - -Wl,*)
5.1521 - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
5.1522 - arg=
5.1523 - save_ifs="$IFS"; IFS=','
5.1524 - for flag in $args; do
5.1525 - IFS="$save_ifs"
5.1526 - case $flag in
5.1527 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5.1528 - flag="\"$flag\""
5.1529 - ;;
5.1530 - esac
5.1531 - arg="$arg $wl$flag"
5.1532 - compiler_flags="$compiler_flags $wl$flag"
5.1533 - linker_flags="$linker_flags $flag"
5.1534 - done
5.1535 - IFS="$save_ifs"
5.1536 - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
5.1537 - ;;
5.1538 -
5.1539 - -Xcompiler)
5.1540 - prev=xcompiler
5.1541 - continue
5.1542 - ;;
5.1543 -
5.1544 - -Xlinker)
5.1545 - prev=xlinker
5.1546 - continue
5.1547 - ;;
5.1548 -
5.1549 - -XCClinker)
5.1550 - prev=xcclinker
5.1551 - continue
5.1552 - ;;
5.1553 -
5.1554 - # Some other compiler flag.
5.1555 - -* | +*)
5.1556 - # Unknown arguments in both finalize_command and compile_command need
5.1557 - # to be aesthetically quoted because they are evaled later.
5.1558 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5.1559 - case $arg in
5.1560 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5.1561 - arg="\"$arg\""
5.1562 - ;;
5.1563 - esac
5.1564 - ;;
5.1565 -
5.1566 - *.$objext)
5.1567 - # A standard object.
5.1568 - objs="$objs $arg"
5.1569 - ;;
5.1570 -
5.1571 - *.lo)
5.1572 - # A libtool-controlled object.
5.1573 -
5.1574 - # Check to see that this really is a libtool object.
5.1575 - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5.1576 - pic_object=
5.1577 - non_pic_object=
5.1578 -
5.1579 - # Read the .lo file
5.1580 - # If there is no directory component, then add one.
5.1581 - case $arg in
5.1582 - */* | *\\*) . $arg ;;
5.1583 - *) . ./$arg ;;
5.1584 - esac
5.1585 -
5.1586 - if test -z "$pic_object" || \
5.1587 - test -z "$non_pic_object" ||
5.1588 - test "$pic_object" = none && \
5.1589 - test "$non_pic_object" = none; then
5.1590 - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
5.1591 - exit $EXIT_FAILURE
5.1592 - fi
5.1593 -
5.1594 - # Extract subdirectory from the argument.
5.1595 - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
5.1596 - if test "X$xdir" = "X$arg"; then
5.1597 - xdir=
5.1598 - else
5.1599 - xdir="$xdir/"
5.1600 - fi
5.1601 -
5.1602 - if test "$pic_object" != none; then
5.1603 - # Prepend the subdirectory the object is found in.
5.1604 - pic_object="$xdir$pic_object"
5.1605 -
5.1606 - if test "$prev" = dlfiles; then
5.1607 - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5.1608 - dlfiles="$dlfiles $pic_object"
5.1609 - prev=
5.1610 - continue
5.1611 - else
5.1612 - # If libtool objects are unsupported, then we need to preload.
5.1613 - prev=dlprefiles
5.1614 - fi
5.1615 - fi
5.1616 -
5.1617 - # CHECK ME: I think I busted this. -Ossama
5.1618 - if test "$prev" = dlprefiles; then
5.1619 - # Preload the old-style object.
5.1620 - dlprefiles="$dlprefiles $pic_object"
5.1621 - prev=
5.1622 - fi
5.1623 -
5.1624 - # A PIC object.
5.1625 - libobjs="$libobjs $pic_object"
5.1626 - arg="$pic_object"
5.1627 - fi
5.1628 -
5.1629 - # Non-PIC object.
5.1630 - if test "$non_pic_object" != none; then
5.1631 - # Prepend the subdirectory the object is found in.
5.1632 - non_pic_object="$xdir$non_pic_object"
5.1633 -
5.1634 - # A standard non-PIC object
5.1635 - non_pic_objects="$non_pic_objects $non_pic_object"
5.1636 - if test -z "$pic_object" || test "$pic_object" = none ; then
5.1637 - arg="$non_pic_object"
5.1638 - fi
5.1639 - fi
5.1640 - else
5.1641 - # Only an error if not doing a dry-run.
5.1642 - if test -z "$run"; then
5.1643 - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
5.1644 - exit $EXIT_FAILURE
5.1645 - else
5.1646 - # Dry-run case.
5.1647 -
5.1648 - # Extract subdirectory from the argument.
5.1649 - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
5.1650 - if test "X$xdir" = "X$arg"; then
5.1651 - xdir=
5.1652 - else
5.1653 - xdir="$xdir/"
5.1654 - fi
5.1655 -
5.1656 - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
5.1657 - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
5.1658 - libobjs="$libobjs $pic_object"
5.1659 - non_pic_objects="$non_pic_objects $non_pic_object"
5.1660 - fi
5.1661 - fi
5.1662 - ;;
5.1663 -
5.1664 - *.$libext)
5.1665 - # An archive.
5.1666 - deplibs="$deplibs $arg"
5.1667 - old_deplibs="$old_deplibs $arg"
5.1668 - continue
5.1669 - ;;
5.1670 -
5.1671 - *.la)
5.1672 - # A libtool-controlled library.
5.1673 -
5.1674 - if test "$prev" = dlfiles; then
5.1675 - # This library was specified with -dlopen.
5.1676 - dlfiles="$dlfiles $arg"
5.1677 - prev=
5.1678 - elif test "$prev" = dlprefiles; then
5.1679 - # The library was specified with -dlpreopen.
5.1680 - dlprefiles="$dlprefiles $arg"
5.1681 - prev=
5.1682 - else
5.1683 - deplibs="$deplibs $arg"
5.1684 - fi
5.1685 - continue
5.1686 - ;;
5.1687 -
5.1688 - # Some other compiler argument.
5.1689 - *)
5.1690 - # Unknown arguments in both finalize_command and compile_command need
5.1691 - # to be aesthetically quoted because they are evaled later.
5.1692 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5.1693 - case $arg in
5.1694 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5.1695 - arg="\"$arg\""
5.1696 - ;;
5.1697 - esac
5.1698 - ;;
5.1699 - esac # arg
5.1700 -
5.1701 - # Now actually substitute the argument into the commands.
5.1702 - if test -n "$arg"; then
5.1703 - compile_command="$compile_command $arg"
5.1704 - finalize_command="$finalize_command $arg"
5.1705 - fi
5.1706 - done # argument parsing loop
5.1707 -
5.1708 - if test -n "$prev"; then
5.1709 - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
5.1710 - $echo "$help" 1>&2
5.1711 - exit $EXIT_FAILURE
5.1712 - fi
5.1713 -
5.1714 - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
5.1715 - eval arg=\"$export_dynamic_flag_spec\"
5.1716 - compile_command="$compile_command $arg"
5.1717 - finalize_command="$finalize_command $arg"
5.1718 - fi
5.1719 -
5.1720 - oldlibs=
5.1721 - # calculate the name of the file, without its directory
5.1722 - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
5.1723 - libobjs_save="$libobjs"
5.1724 -
5.1725 - if test -n "$shlibpath_var"; then
5.1726 - # get the directories listed in $shlibpath_var
5.1727 - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
5.1728 - else
5.1729 - shlib_search_path=
5.1730 - fi
5.1731 - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
5.1732 - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
5.1733 -
5.1734 - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
5.1735 - if test "X$output_objdir" = "X$output"; then
5.1736 - output_objdir="$objdir"
5.1737 - else
5.1738 - output_objdir="$output_objdir/$objdir"
5.1739 - fi
5.1740 - # Create the object directory.
5.1741 - if test ! -d "$output_objdir"; then
5.1742 - $show "$mkdir $output_objdir"
5.1743 - $run $mkdir $output_objdir
5.1744 - status=$?
5.1745 - if test "$status" -ne 0 && test ! -d "$output_objdir"; then
5.1746 - exit $status
5.1747 - fi
5.1748 - fi
5.1749 -
5.1750 - # Determine the type of output
5.1751 - case $output in
5.1752 - "")
5.1753 - $echo "$modename: you must specify an output file" 1>&2
5.1754 - $echo "$help" 1>&2
5.1755 - exit $EXIT_FAILURE
5.1756 - ;;
5.1757 - *.$libext) linkmode=oldlib ;;
5.1758 - *.lo | *.$objext) linkmode=obj ;;
5.1759 - *.la) linkmode=lib ;;
5.1760 - *) linkmode=prog ;; # Anything else should be a program.
5.1761 - esac
5.1762 -
5.1763 - case $host in
5.1764 - *cygwin* | *mingw* | *pw32*)
5.1765 - # don't eliminate duplications in $postdeps and $predeps
5.1766 - duplicate_compiler_generated_deps=yes
5.1767 - ;;
5.1768 - *)
5.1769 - duplicate_compiler_generated_deps=$duplicate_deps
5.1770 - ;;
5.1771 - esac
5.1772 - specialdeplibs=
5.1773 -
5.1774 - libs=
5.1775 - # Find all interdependent deplibs by searching for libraries
5.1776 - # that are linked more than once (e.g. -la -lb -la)
5.1777 - for deplib in $deplibs; do
5.1778 - if test "X$duplicate_deps" = "Xyes" ; then
5.1779 - case "$libs " in
5.1780 - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5.1781 - esac
5.1782 - fi
5.1783 - libs="$libs $deplib"
5.1784 - done
5.1785 -
5.1786 - if test "$linkmode" = lib; then
5.1787 - libs="$predeps $libs $compiler_lib_search_path $postdeps"
5.1788 -
5.1789 - # Compute libraries that are listed more than once in $predeps
5.1790 - # $postdeps and mark them as special (i.e., whose duplicates are
5.1791 - # not to be eliminated).
5.1792 - pre_post_deps=
5.1793 - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
5.1794 - for pre_post_dep in $predeps $postdeps; do
5.1795 - case "$pre_post_deps " in
5.1796 - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
5.1797 - esac
5.1798 - pre_post_deps="$pre_post_deps $pre_post_dep"
5.1799 - done
5.1800 - fi
5.1801 - pre_post_deps=
5.1802 - fi
5.1803 -
5.1804 - deplibs=
5.1805 - newdependency_libs=
5.1806 - newlib_search_path=
5.1807 - need_relink=no # whether we're linking any uninstalled libtool libraries
5.1808 - notinst_deplibs= # not-installed libtool libraries
5.1809 - notinst_path= # paths that contain not-installed libtool libraries
5.1810 - case $linkmode in
5.1811 - lib)
5.1812 - passes="conv link"
5.1813 - for file in $dlfiles $dlprefiles; do
5.1814 - case $file in
5.1815 - *.la) ;;
5.1816 - *)
5.1817 - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
5.1818 - exit $EXIT_FAILURE
5.1819 - ;;
5.1820 - esac
5.1821 - done
5.1822 - ;;
5.1823 - prog)
5.1824 - compile_deplibs=
5.1825 - finalize_deplibs=
5.1826 - alldeplibs=no
5.1827 - newdlfiles=
5.1828 - newdlprefiles=
5.1829 - passes="conv scan dlopen dlpreopen link"
5.1830 - ;;
5.1831 - *) passes="conv"
5.1832 - ;;
5.1833 - esac
5.1834 - for pass in $passes; do
5.1835 - if test "$linkmode,$pass" = "lib,link" ||
5.1836 - test "$linkmode,$pass" = "prog,scan"; then
5.1837 - libs="$deplibs"
5.1838 - deplibs=
5.1839 - fi
5.1840 - if test "$linkmode" = prog; then
5.1841 - case $pass in
5.1842 - dlopen) libs="$dlfiles" ;;
5.1843 - dlpreopen) libs="$dlprefiles" ;;
5.1844 - link)
5.1845 - libs="$deplibs %DEPLIBS%"
5.1846 - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
5.1847 - ;;
5.1848 - esac
5.1849 - fi
5.1850 - if test "$pass" = dlopen; then
5.1851 - # Collect dlpreopened libraries
5.1852 - save_deplibs="$deplibs"
5.1853 - deplibs=
5.1854 - fi
5.1855 - for deplib in $libs; do
5.1856 - lib=
5.1857 - found=no
5.1858 - case $deplib in
5.1859 - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
5.1860 - if test "$linkmode,$pass" = "prog,link"; then
5.1861 - compile_deplibs="$deplib $compile_deplibs"
5.1862 - finalize_deplibs="$deplib $finalize_deplibs"
5.1863 - else
5.1864 - deplibs="$deplib $deplibs"
5.1865 - fi
5.1866 - continue
5.1867 - ;;
5.1868 - -l*)
5.1869 - if test "$linkmode" != lib && test "$linkmode" != prog; then
5.1870 - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
5.1871 - continue
5.1872 - fi
5.1873 - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
5.1874 - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
5.1875 - for search_ext in .la $std_shrext .so .a; do
5.1876 - # Search the libtool library
5.1877 - lib="$searchdir/lib${name}${search_ext}"
5.1878 - if test -f "$lib"; then
5.1879 - if test "$search_ext" = ".la"; then
5.1880 - found=yes
5.1881 - else
5.1882 - found=no
5.1883 - fi
5.1884 - break 2
5.1885 - fi
5.1886 - done
5.1887 - done
5.1888 - if test "$found" != yes; then
5.1889 - # deplib doesn't seem to be a libtool library
5.1890 - if test "$linkmode,$pass" = "prog,link"; then
5.1891 - compile_deplibs="$deplib $compile_deplibs"
5.1892 - finalize_deplibs="$deplib $finalize_deplibs"
5.1893 - else
5.1894 - deplibs="$deplib $deplibs"
5.1895 - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
5.1896 - fi
5.1897 - continue
5.1898 - else # deplib is a libtool library
5.1899 - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
5.1900 - # We need to do some special things here, and not later.
5.1901 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
5.1902 - case " $predeps $postdeps " in
5.1903 - *" $deplib "*)
5.1904 - if (${SED} -e '2q' $lib |
5.1905 - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5.1906 - library_names=
5.1907 - old_library=
5.1908 - case $lib in
5.1909 - */* | *\\*) . $lib ;;
5.1910 - *) . ./$lib ;;
5.1911 - esac
5.1912 - for l in $old_library $library_names; do
5.1913 - ll="$l"
5.1914 - done
5.1915 - if test "X$ll" = "X$old_library" ; then # only static version available
5.1916 - found=no
5.1917 - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
5.1918 - test "X$ladir" = "X$lib" && ladir="."
5.1919 - lib=$ladir/$old_library
5.1920 - if test "$linkmode,$pass" = "prog,link"; then
5.1921 - compile_deplibs="$deplib $compile_deplibs"
5.1922 - finalize_deplibs="$deplib $finalize_deplibs"
5.1923 - else
5.1924 - deplibs="$deplib $deplibs"
5.1925 - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
5.1926 - fi
5.1927 - continue
5.1928 - fi
5.1929 - fi
5.1930 - ;;
5.1931 - *) ;;
5.1932 - esac
5.1933 - fi
5.1934 - fi
5.1935 - ;; # -l
5.1936 - -L*)
5.1937 - case $linkmode in
5.1938 - lib)
5.1939 - deplibs="$deplib $deplibs"
5.1940 - test "$pass" = conv && continue
5.1941 - newdependency_libs="$deplib $newdependency_libs"
5.1942 - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
5.1943 - ;;
5.1944 - prog)
5.1945 - if test "$pass" = conv; then
5.1946 - deplibs="$deplib $deplibs"
5.1947 - continue
5.1948 - fi
5.1949 - if test "$pass" = scan; then
5.1950 - deplibs="$deplib $deplibs"
5.1951 - else
5.1952 - compile_deplibs="$deplib $compile_deplibs"
5.1953 - finalize_deplibs="$deplib $finalize_deplibs"
5.1954 - fi
5.1955 - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
5.1956 - ;;
5.1957 - *)
5.1958 - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
5.1959 - ;;
5.1960 - esac # linkmode
5.1961 - continue
5.1962 - ;; # -L
5.1963 - -R*)
5.1964 - if test "$pass" = link; then
5.1965 - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
5.1966 - # Make sure the xrpath contains only unique directories.
5.1967 - case "$xrpath " in
5.1968 - *" $dir "*) ;;
5.1969 - *) xrpath="$xrpath $dir" ;;
5.1970 - esac
5.1971 - fi
5.1972 - deplibs="$deplib $deplibs"
5.1973 - continue
5.1974 - ;;
5.1975 - *.la) lib="$deplib" ;;
5.1976 - *.$libext)
5.1977 - if test "$pass" = conv; then
5.1978 - deplibs="$deplib $deplibs"
5.1979 - continue
5.1980 - fi
5.1981 - case $linkmode in
5.1982 - lib)
5.1983 - if test "$deplibs_check_method" != pass_all; then
5.1984 - $echo
5.1985 - $echo "*** Warning: Trying to link with static lib archive $deplib."
5.1986 - $echo "*** I have the capability to make that library automatically link in when"
5.1987 - $echo "*** you link to this library. But I can only do this if you have a"
5.1988 - $echo "*** shared version of the library, which you do not appear to have"
5.1989 - $echo "*** because the file extensions .$libext of this argument makes me believe"
5.1990 - $echo "*** that it is just a static archive that I should not used here."
5.1991 - else
5.1992 - $echo
5.1993 - $echo "*** Warning: Linking the shared library $output against the"
5.1994 - $echo "*** static library $deplib is not portable!"
5.1995 - deplibs="$deplib $deplibs"
5.1996 - fi
5.1997 - continue
5.1998 - ;;
5.1999 - prog)
5.2000 - if test "$pass" != link; then
5.2001 - deplibs="$deplib $deplibs"
5.2002 - else
5.2003 - compile_deplibs="$deplib $compile_deplibs"
5.2004 - finalize_deplibs="$deplib $finalize_deplibs"
5.2005 - fi
5.2006 - continue
5.2007 - ;;
5.2008 - esac # linkmode
5.2009 - ;; # *.$libext
5.2010 - *.lo | *.$objext)
5.2011 - if test "$pass" = conv; then
5.2012 - deplibs="$deplib $deplibs"
5.2013 - elif test "$linkmode" = prog; then
5.2014 - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
5.2015 - # If there is no dlopen support or we're linking statically,
5.2016 - # we need to preload.
5.2017 - newdlprefiles="$newdlprefiles $deplib"
5.2018 - compile_deplibs="$deplib $compile_deplibs"
5.2019 - finalize_deplibs="$deplib $finalize_deplibs"
5.2020 - else
5.2021 - newdlfiles="$newdlfiles $deplib"
5.2022 - fi
5.2023 - fi
5.2024 - continue
5.2025 - ;;
5.2026 - %DEPLIBS%)
5.2027 - alldeplibs=yes
5.2028 - continue
5.2029 - ;;
5.2030 - esac # case $deplib
5.2031 - if test "$found" = yes || test -f "$lib"; then :
5.2032 - else
5.2033 - $echo "$modename: cannot find the library \`$lib'" 1>&2
5.2034 - exit $EXIT_FAILURE
5.2035 - fi
5.2036 -
5.2037 - # Check to see that this really is a libtool archive.
5.2038 - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5.2039 - else
5.2040 - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5.2041 - exit $EXIT_FAILURE
5.2042 - fi
5.2043 -
5.2044 - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
5.2045 - test "X$ladir" = "X$lib" && ladir="."
5.2046 -
5.2047 - dlname=
5.2048 - dlopen=
5.2049 - dlpreopen=
5.2050 - libdir=
5.2051 - library_names=
5.2052 - old_library=
5.2053 - # If the library was installed with an old release of libtool,
5.2054 - # it will not redefine variables installed, or shouldnotlink
5.2055 - installed=yes
5.2056 - shouldnotlink=no
5.2057 -
5.2058 - # Read the .la file
5.2059 - case $lib in
5.2060 - */* | *\\*) . $lib ;;
5.2061 - *) . ./$lib ;;
5.2062 - esac
5.2063 -
5.2064 - if test "$linkmode,$pass" = "lib,link" ||
5.2065 - test "$linkmode,$pass" = "prog,scan" ||
5.2066 - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
5.2067 - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
5.2068 - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
5.2069 - fi
5.2070 -
5.2071 - if test "$pass" = conv; then
5.2072 - # Only check for convenience libraries
5.2073 - deplibs="$lib $deplibs"
5.2074 - if test -z "$libdir"; then
5.2075 - if test -z "$old_library"; then
5.2076 - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
5.2077 - exit $EXIT_FAILURE
5.2078 - fi
5.2079 - # It is a libtool convenience library, so add in its objects.
5.2080 - convenience="$convenience $ladir/$objdir/$old_library"
5.2081 - old_convenience="$old_convenience $ladir/$objdir/$old_library"
5.2082 - tmp_libs=
5.2083 - for deplib in $dependency_libs; do
5.2084 - deplibs="$deplib $deplibs"
5.2085 - if test "X$duplicate_deps" = "Xyes" ; then
5.2086 - case "$tmp_libs " in
5.2087 - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5.2088 - esac
5.2089 - fi
5.2090 - tmp_libs="$tmp_libs $deplib"
5.2091 - done
5.2092 - elif test "$linkmode" != prog && test "$linkmode" != lib; then
5.2093 - $echo "$modename: \`$lib' is not a convenience library" 1>&2
5.2094 - exit $EXIT_FAILURE
5.2095 - fi
5.2096 - continue
5.2097 - fi # $pass = conv
5.2098 -
5.2099 -
5.2100 - # Get the name of the library we link against.
5.2101 - linklib=
5.2102 - for l in $old_library $library_names; do
5.2103 - linklib="$l"
5.2104 - done
5.2105 - if test -z "$linklib"; then
5.2106 - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
5.2107 - exit $EXIT_FAILURE
5.2108 - fi
5.2109 -
5.2110 - # This library was specified with -dlopen.
5.2111 - if test "$pass" = dlopen; then
5.2112 - if test -z "$libdir"; then
5.2113 - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
5.2114 - exit $EXIT_FAILURE
5.2115 - fi
5.2116 - if test -z "$dlname" ||
5.2117 - test "$dlopen_support" != yes ||
5.2118 - test "$build_libtool_libs" = no; then
5.2119 - # If there is no dlname, no dlopen support or we're linking
5.2120 - # statically, we need to preload. We also need to preload any
5.2121 - # dependent libraries so libltdl's deplib preloader doesn't
5.2122 - # bomb out in the load deplibs phase.
5.2123 - dlprefiles="$dlprefiles $lib $dependency_libs"
5.2124 - else
5.2125 - newdlfiles="$newdlfiles $lib"
5.2126 - fi
5.2127 - continue
5.2128 - fi # $pass = dlopen
5.2129 -
5.2130 - # We need an absolute path.
5.2131 - case $ladir in
5.2132 - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
5.2133 - *)
5.2134 - abs_ladir=`cd "$ladir" && pwd`
5.2135 - if test -z "$abs_ladir"; then
5.2136 - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
5.2137 - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
5.2138 - abs_ladir="$ladir"
5.2139 - fi
5.2140 - ;;
5.2141 - esac
5.2142 - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5.2143 -
5.2144 - # Find the relevant object directory and library name.
5.2145 - if test "X$installed" = Xyes; then
5.2146 - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
5.2147 - $echo "$modename: warning: library \`$lib' was moved." 1>&2
5.2148 - dir="$ladir"
5.2149 - absdir="$abs_ladir"
5.2150 - libdir="$abs_ladir"
5.2151 - else
5.2152 - dir="$libdir"
5.2153 - absdir="$libdir"
5.2154 - fi
5.2155 - else
5.2156 - dir="$ladir/$objdir"
5.2157 - absdir="$abs_ladir/$objdir"
5.2158 - # Remove this search path later
5.2159 - notinst_path="$notinst_path $abs_ladir"
5.2160 - fi # $installed = yes
5.2161 - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
5.2162 -
5.2163 - # This library was specified with -dlpreopen.
5.2164 - if test "$pass" = dlpreopen; then
5.2165 - if test -z "$libdir"; then
5.2166 - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
5.2167 - exit $EXIT_FAILURE
5.2168 - fi
5.2169 - # Prefer using a static library (so that no silly _DYNAMIC symbols
5.2170 - # are required to link).
5.2171 - if test -n "$old_library"; then
5.2172 - newdlprefiles="$newdlprefiles $dir/$old_library"
5.2173 - # Otherwise, use the dlname, so that lt_dlopen finds it.
5.2174 - elif test -n "$dlname"; then
5.2175 - newdlprefiles="$newdlprefiles $dir/$dlname"
5.2176 - else
5.2177 - newdlprefiles="$newdlprefiles $dir/$linklib"
5.2178 - fi
5.2179 - fi # $pass = dlpreopen
5.2180 -
5.2181 - if test -z "$libdir"; then
5.2182 - # Link the convenience library
5.2183 - if test "$linkmode" = lib; then
5.2184 - deplibs="$dir/$old_library $deplibs"
5.2185 - elif test "$linkmode,$pass" = "prog,link"; then
5.2186 - compile_deplibs="$dir/$old_library $compile_deplibs"
5.2187 - finalize_deplibs="$dir/$old_library $finalize_deplibs"
5.2188 - else
5.2189 - deplibs="$lib $deplibs" # used for prog,scan pass
5.2190 - fi
5.2191 - continue
5.2192 - fi
5.2193 -
5.2194 -
5.2195 - if test "$linkmode" = prog && test "$pass" != link; then
5.2196 - newlib_search_path="$newlib_search_path $ladir"
5.2197 - deplibs="$lib $deplibs"
5.2198 -
5.2199 - linkalldeplibs=no
5.2200 - if test "$link_all_deplibs" != no || test -z "$library_names" ||
5.2201 - test "$build_libtool_libs" = no; then
5.2202 - linkalldeplibs=yes
5.2203 - fi
5.2204 -
5.2205 - tmp_libs=
5.2206 - for deplib in $dependency_libs; do
5.2207 - case $deplib in
5.2208 - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
5.2209 - esac
5.2210 - # Need to link against all dependency_libs?
5.2211 - if test "$linkalldeplibs" = yes; then
5.2212 - deplibs="$deplib $deplibs"
5.2213 - else
5.2214 - # Need to hardcode shared library paths
5.2215 - # or/and link against static libraries
5.2216 - newdependency_libs="$deplib $newdependency_libs"
5.2217 - fi
5.2218 - if test "X$duplicate_deps" = "Xyes" ; then
5.2219 - case "$tmp_libs " in
5.2220 - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5.2221 - esac
5.2222 - fi
5.2223 - tmp_libs="$tmp_libs $deplib"
5.2224 - done # for deplib
5.2225 - continue
5.2226 - fi # $linkmode = prog...
5.2227 -
5.2228 - if test "$linkmode,$pass" = "prog,link"; then
5.2229 - if test -n "$library_names" &&
5.2230 - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
5.2231 - # We need to hardcode the library path
5.2232 - if test -n "$shlibpath_var"; then
5.2233 - # Make sure the rpath contains only unique directories.
5.2234 - case "$temp_rpath " in
5.2235 - *" $dir "*) ;;
5.2236 - *" $absdir "*) ;;
5.2237 - *) temp_rpath="$temp_rpath $dir" ;;
5.2238 - esac
5.2239 - fi
5.2240 -
5.2241 - # Hardcode the library path.
5.2242 - # Skip directories that are in the system default run-time
5.2243 - # search path.
5.2244 - case " $sys_lib_dlsearch_path " in
5.2245 - *" $absdir "*) ;;
5.2246 - *)
5.2247 - case "$compile_rpath " in
5.2248 - *" $absdir "*) ;;
5.2249 - *) compile_rpath="$compile_rpath $absdir"
5.2250 - esac
5.2251 - ;;
5.2252 - esac
5.2253 - case " $sys_lib_dlsearch_path " in
5.2254 - *" $libdir "*) ;;
5.2255 - *)
5.2256 - case "$finalize_rpath " in
5.2257 - *" $libdir "*) ;;
5.2258 - *) finalize_rpath="$finalize_rpath $libdir"
5.2259 - esac
5.2260 - ;;
5.2261 - esac
5.2262 - fi # $linkmode,$pass = prog,link...
5.2263 -
5.2264 - if test "$alldeplibs" = yes &&
5.2265 - { test "$deplibs_check_method" = pass_all ||
5.2266 - { test "$build_libtool_libs" = yes &&
5.2267 - test -n "$library_names"; }; }; then
5.2268 - # We only need to search for static libraries
5.2269 - continue
5.2270 - fi
5.2271 - fi
5.2272 -
5.2273 - link_static=no # Whether the deplib will be linked statically
5.2274 - if test -n "$library_names" &&
5.2275 - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
5.2276 - if test "$installed" = no; then
5.2277 - notinst_deplibs="$notinst_deplibs $lib"
5.2278 - need_relink=yes
5.2279 - fi
5.2280 - # This is a shared library
5.2281 -
5.2282 - # Warn about portability, can't link against -module's on
5.2283 - # some systems (darwin)
5.2284 - if test "$shouldnotlink" = yes && test "$pass" = link ; then
5.2285 - $echo
5.2286 - if test "$linkmode" = prog; then
5.2287 - $echo "*** Warning: Linking the executable $output against the loadable module"
5.2288 - else
5.2289 - $echo "*** Warning: Linking the shared library $output against the loadable module"
5.2290 - fi
5.2291 - $echo "*** $linklib is not portable!"
5.2292 - fi
5.2293 - if test "$linkmode" = lib &&
5.2294 - test "$hardcode_into_libs" = yes; then
5.2295 - # Hardcode the library path.
5.2296 - # Skip directories that are in the system default run-time
5.2297 - # search path.
5.2298 - case " $sys_lib_dlsearch_path " in
5.2299 - *" $absdir "*) ;;
5.2300 - *)
5.2301 - case "$compile_rpath " in
5.2302 - *" $absdir "*) ;;
5.2303 - *) compile_rpath="$compile_rpath $absdir"
5.2304 - esac
5.2305 - ;;
5.2306 - esac
5.2307 - case " $sys_lib_dlsearch_path " in
5.2308 - *" $libdir "*) ;;
5.2309 - *)
5.2310 - case "$finalize_rpath " in
5.2311 - *" $libdir "*) ;;
5.2312 - *) finalize_rpath="$finalize_rpath $libdir"
5.2313 - esac
5.2314 - ;;
5.2315 - esac
5.2316 - fi
5.2317 -
5.2318 - if test -n "$old_archive_from_expsyms_cmds"; then
5.2319 - # figure out the soname
5.2320 - set dummy $library_names
5.2321 - realname="$2"
5.2322 - shift; shift
5.2323 - libname=`eval \\$echo \"$libname_spec\"`
5.2324 - # use dlname if we got it. it's perfectly good, no?
5.2325 - if test -n "$dlname"; then
5.2326 - soname="$dlname"
5.2327 - elif test -n "$soname_spec"; then
5.2328 - # bleh windows
5.2329 - case $host in
5.2330 - *cygwin* | mingw*)
5.2331 - major=`expr $current - $age`
5.2332 - versuffix="-$major"
5.2333 - ;;
5.2334 - esac
5.2335 - eval soname=\"$soname_spec\"
5.2336 - else
5.2337 - soname="$realname"
5.2338 - fi
5.2339 -
5.2340 - # Make a new name for the extract_expsyms_cmds to use
5.2341 - soroot="$soname"
5.2342 - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
5.2343 - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
5.2344 -
5.2345 - # If the library has no export list, then create one now
5.2346 - if test -f "$output_objdir/$soname-def"; then :
5.2347 - else
5.2348 - $show "extracting exported symbol list from \`$soname'"
5.2349 - save_ifs="$IFS"; IFS='~'
5.2350 - cmds=$extract_expsyms_cmds
5.2351 - for cmd in $cmds; do
5.2352 - IFS="$save_ifs"
5.2353 - eval cmd=\"$cmd\"
5.2354 - $show "$cmd"
5.2355 - $run eval "$cmd" || exit $?
5.2356 - done
5.2357 - IFS="$save_ifs"
5.2358 - fi
5.2359 -
5.2360 - # Create $newlib
5.2361 - if test -f "$output_objdir/$newlib"; then :; else
5.2362 - $show "generating import library for \`$soname'"
5.2363 - save_ifs="$IFS"; IFS='~'
5.2364 - cmds=$old_archive_from_expsyms_cmds
5.2365 - for cmd in $cmds; do
5.2366 - IFS="$save_ifs"
5.2367 - eval cmd=\"$cmd\"
5.2368 - $show "$cmd"
5.2369 - $run eval "$cmd" || exit $?
5.2370 - done
5.2371 - IFS="$save_ifs"
5.2372 - fi
5.2373 - # make sure the library variables are pointing to the new library
5.2374 - dir=$output_objdir
5.2375 - linklib=$newlib
5.2376 - fi # test -n "$old_archive_from_expsyms_cmds"
5.2377 -
5.2378 - if test "$linkmode" = prog || test "$mode" != relink; then
5.2379 - add_shlibpath=
5.2380 - add_dir=
5.2381 - add=
5.2382 - lib_linked=yes
5.2383 - case $hardcode_action in
5.2384 - immediate | unsupported)
5.2385 - if test "$hardcode_direct" = no; then
5.2386 - add="$dir/$linklib"
5.2387 - case $host in
5.2388 - *-*-sco3.2v5* ) add_dir="-L$dir" ;;
5.2389 - *-*-darwin* )
5.2390 - # if the lib is a module then we can not link against
5.2391 - # it, someone is ignoring the new warnings I added
5.2392 - if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
5.2393 - $echo "** Warning, lib $linklib is a module, not a shared library"
5.2394 - if test -z "$old_library" ; then
5.2395 - $echo
5.2396 - $echo "** And there doesn't seem to be a static archive available"
5.2397 - $echo "** The link will probably fail, sorry"
5.2398 - else
5.2399 - add="$dir/$old_library"
5.2400 - fi
5.2401 - fi
5.2402 - esac
5.2403 - elif test "$hardcode_minus_L" = no; then
5.2404 - case $host in
5.2405 - *-*-sunos*) add_shlibpath="$dir" ;;
5.2406 - esac
5.2407 - add_dir="-L$dir"
5.2408 - add="-l$name"
5.2409 - elif test "$hardcode_shlibpath_var" = no; then
5.2410 - add_shlibpath="$dir"
5.2411 - add="-l$name"
5.2412 - else
5.2413 - lib_linked=no
5.2414 - fi
5.2415 - ;;
5.2416 - relink)
5.2417 - if test "$hardcode_direct" = yes; then
5.2418 - add="$dir/$linklib"
5.2419 - elif test "$hardcode_minus_L" = yes; then
5.2420 - add_dir="-L$dir"
5.2421 - # Try looking first in the location we're being installed to.
5.2422 - if test -n "$inst_prefix_dir"; then
5.2423 - case "$libdir" in
5.2424 - [\\/]*)
5.2425 - add_dir="$add_dir -L$inst_prefix_dir$libdir"
5.2426 - ;;
5.2427 - esac
5.2428 - fi
5.2429 - add="-l$name"
5.2430 - elif test "$hardcode_shlibpath_var" = yes; then
5.2431 - add_shlibpath="$dir"
5.2432 - add="-l$name"
5.2433 - else
5.2434 - lib_linked=no
5.2435 - fi
5.2436 - ;;
5.2437 - *) lib_linked=no ;;
5.2438 - esac
5.2439 -
5.2440 - if test "$lib_linked" != yes; then
5.2441 - $echo "$modename: configuration error: unsupported hardcode properties"
5.2442 - exit $EXIT_FAILURE
5.2443 - fi
5.2444 -
5.2445 - if test -n "$add_shlibpath"; then
5.2446 - case :$compile_shlibpath: in
5.2447 - *":$add_shlibpath:"*) ;;
5.2448 - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
5.2449 - esac
5.2450 - fi
5.2451 - if test "$linkmode" = prog; then
5.2452 - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
5.2453 - test -n "$add" && compile_deplibs="$add $compile_deplibs"
5.2454 - else
5.2455 - test -n "$add_dir" && deplibs="$add_dir $deplibs"
5.2456 - test -n "$add" && deplibs="$add $deplibs"
5.2457 - if test "$hardcode_direct" != yes && \
5.2458 - test "$hardcode_minus_L" != yes && \
5.2459 - test "$hardcode_shlibpath_var" = yes; then
5.2460 - case :$finalize_shlibpath: in
5.2461 - *":$libdir:"*) ;;
5.2462 - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
5.2463 - esac
5.2464 - fi
5.2465 - fi
5.2466 - fi
5.2467 -
5.2468 - if test "$linkmode" = prog || test "$mode" = relink; then
5.2469 - add_shlibpath=
5.2470 - add_dir=
5.2471 - add=
5.2472 - # Finalize command for both is simple: just hardcode it.
5.2473 - if test "$hardcode_direct" = yes; then
5.2474 - add="$libdir/$linklib"
5.2475 - elif test "$hardcode_minus_L" = yes; then
5.2476 - add_dir="-L$libdir"
5.2477 - add="-l$name"
5.2478 - elif test "$hardcode_shlibpath_var" = yes; then
5.2479 - case :$finalize_shlibpath: in
5.2480 - *":$libdir:"*) ;;
5.2481 - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
5.2482 - esac
5.2483 - add="-l$name"
5.2484 - elif test "$hardcode_automatic" = yes; then
5.2485 - if test -n "$inst_prefix_dir" &&
5.2486 - test -f "$inst_prefix_dir$libdir/$linklib" ; then
5.2487 - add="$inst_prefix_dir$libdir/$linklib"
5.2488 - else
5.2489 - add="$libdir/$linklib"
5.2490 - fi
5.2491 - else
5.2492 - # We cannot seem to hardcode it, guess we'll fake it.
5.2493 - add_dir="-L$libdir"
5.2494 - # Try looking first in the location we're being installed to.
5.2495 - if test -n "$inst_prefix_dir"; then
5.2496 - case "$libdir" in
5.2497 - [\\/]*)
5.2498 - add_dir="$add_dir -L$inst_prefix_dir$libdir"
5.2499 - ;;
5.2500 - esac
5.2501 - fi
5.2502 - add="-l$name"
5.2503 - fi
5.2504 -
5.2505 - if test "$linkmode" = prog; then
5.2506 - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
5.2507 - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
5.2508 - else
5.2509 - test -n "$add_dir" && deplibs="$add_dir $deplibs"
5.2510 - test -n "$add" && deplibs="$add $deplibs"
5.2511 - fi
5.2512 - fi
5.2513 - elif test "$linkmode" = prog; then
5.2514 - # Here we assume that one of hardcode_direct or hardcode_minus_L
5.2515 - # is not unsupported. This is valid on all known static and
5.2516 - # shared platforms.
5.2517 - if test "$hardcode_direct" != unsupported; then
5.2518 - test -n "$old_library" && linklib="$old_library"
5.2519 - compile_deplibs="$dir/$linklib $compile_deplibs"
5.2520 - finalize_deplibs="$dir/$linklib $finalize_deplibs"
5.2521 - else
5.2522 - compile_deplibs="-l$name -L$dir $compile_deplibs"
5.2523 - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
5.2524 - fi
5.2525 - elif test "$build_libtool_libs" = yes; then
5.2526 - # Not a shared library
5.2527 - if test "$deplibs_check_method" != pass_all; then
5.2528 - # We're trying link a shared library against a static one
5.2529 - # but the system doesn't support it.
5.2530 -
5.2531 - # Just print a warning and add the library to dependency_libs so
5.2532 - # that the program can be linked against the static library.
5.2533 - $echo
5.2534 - $echo "*** Warning: This system can not link to static lib archive $lib."
5.2535 - $echo "*** I have the capability to make that library automatically link in when"
5.2536 - $echo "*** you link to this library. But I can only do this if you have a"
5.2537 - $echo "*** shared version of the library, which you do not appear to have."
5.2538 - if test "$module" = yes; then
5.2539 - $echo "*** But as you try to build a module library, libtool will still create "
5.2540 - $echo "*** a static module, that should work as long as the dlopening application"
5.2541 - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
5.2542 - if test -z "$global_symbol_pipe"; then
5.2543 - $echo
5.2544 - $echo "*** However, this would only work if libtool was able to extract symbol"
5.2545 - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
5.2546 - $echo "*** not find such a program. So, this module is probably useless."
5.2547 - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
5.2548 - fi
5.2549 - if test "$build_old_libs" = no; then
5.2550 - build_libtool_libs=module
5.2551 - build_old_libs=yes
5.2552 - else
5.2553 - build_libtool_libs=no
5.2554 - fi
5.2555 - fi
5.2556 - else
5.2557 - convenience="$convenience $dir/$old_library"
5.2558 - old_convenience="$old_convenience $dir/$old_library"
5.2559 - deplibs="$dir/$old_library $deplibs"
5.2560 - link_static=yes
5.2561 - fi
5.2562 - fi # link shared/static library?
5.2563 -
5.2564 - if test "$linkmode" = lib; then
5.2565 - if test -n "$dependency_libs" &&
5.2566 - { test "$hardcode_into_libs" != yes ||
5.2567 - test "$build_old_libs" = yes ||
5.2568 - test "$link_static" = yes; }; then
5.2569 - # Extract -R from dependency_libs
5.2570 - temp_deplibs=
5.2571 - for libdir in $dependency_libs; do
5.2572 - case $libdir in
5.2573 - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
5.2574 - case " $xrpath " in
5.2575 - *" $temp_xrpath "*) ;;
5.2576 - *) xrpath="$xrpath $temp_xrpath";;
5.2577 - esac;;
5.2578 - *) temp_deplibs="$temp_deplibs $libdir";;
5.2579 - esac
5.2580 - done
5.2581 - dependency_libs="$temp_deplibs"
5.2582 - fi
5.2583 -
5.2584 - newlib_search_path="$newlib_search_path $absdir"
5.2585 - # Link against this library
5.2586 - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
5.2587 - # ... and its dependency_libs
5.2588 - tmp_libs=
5.2589 - for deplib in $dependency_libs; do
5.2590 - newdependency_libs="$deplib $newdependency_libs"
5.2591 - if test "X$duplicate_deps" = "Xyes" ; then
5.2592 - case "$tmp_libs " in
5.2593 - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5.2594 - esac
5.2595 - fi
5.2596 - tmp_libs="$tmp_libs $deplib"
5.2597 - done
5.2598 -
5.2599 - if test "$link_all_deplibs" != no; then
5.2600 - # Add the search paths of all dependency libraries
5.2601 - for deplib in $dependency_libs; do
5.2602 - case $deplib in
5.2603 - -L*) path="$deplib" ;;
5.2604 - *.la)
5.2605 - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
5.2606 - test "X$dir" = "X$deplib" && dir="."
5.2607 - # We need an absolute path.
5.2608 - case $dir in
5.2609 - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
5.2610 - *)
5.2611 - absdir=`cd "$dir" && pwd`
5.2612 - if test -z "$absdir"; then
5.2613 - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
5.2614 - absdir="$dir"
5.2615 - fi
5.2616 - ;;
5.2617 - esac
5.2618 - if grep "^installed=no" $deplib > /dev/null; then
5.2619 - path="$absdir/$objdir"
5.2620 - else
5.2621 - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5.2622 - if test -z "$libdir"; then
5.2623 - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5.2624 - exit $EXIT_FAILURE
5.2625 - fi
5.2626 - if test "$absdir" != "$libdir"; then
5.2627 - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
5.2628 - fi
5.2629 - path="$absdir"
5.2630 - fi
5.2631 - depdepl=
5.2632 - case $host in
5.2633 - *-*-darwin*)
5.2634 - # we do not want to link against static libs,
5.2635 - # but need to link against shared
5.2636 - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
5.2637 - if test -n "$deplibrary_names" ; then
5.2638 - for tmp in $deplibrary_names ; do
5.2639 - depdepl=$tmp
5.2640 - done
5.2641 - if test -f "$path/$depdepl" ; then
5.2642 - depdepl="$path/$depdepl"
5.2643 - fi
5.2644 - # do not add paths which are already there
5.2645 - case " $newlib_search_path " in
5.2646 - *" $path "*) ;;
5.2647 - *) newlib_search_path="$newlib_search_path $path";;
5.2648 - esac
5.2649 - fi
5.2650 - path=""
5.2651 - ;;
5.2652 - *)
5.2653 - path="-L$path"
5.2654 - ;;
5.2655 - esac
5.2656 - ;;
5.2657 - -l*)
5.2658 - case $host in
5.2659 - *-*-darwin*)
5.2660 - # Again, we only want to link against shared libraries
5.2661 - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
5.2662 - for tmp in $newlib_search_path ; do
5.2663 - if test -f "$tmp/lib$tmp_libs.dylib" ; then
5.2664 - eval depdepl="$tmp/lib$tmp_libs.dylib"
5.2665 - break
5.2666 - fi
5.2667 - done
5.2668 - path=""
5.2669 - ;;
5.2670 - *) continue ;;
5.2671 - esac
5.2672 - ;;
5.2673 - *) continue ;;
5.2674 - esac
5.2675 - case " $deplibs " in
5.2676 - *" $depdepl "*) ;;
5.2677 - *) deplibs="$depdepl $deplibs" ;;
5.2678 - esac
5.2679 - case " $deplibs " in
5.2680 - *" $path "*) ;;
5.2681 - *) deplibs="$deplibs $path" ;;
5.2682 - esac
5.2683 - done
5.2684 - fi # link_all_deplibs != no
5.2685 - fi # linkmode = lib
5.2686 - done # for deplib in $libs
5.2687 - dependency_libs="$newdependency_libs"
5.2688 - if test "$pass" = dlpreopen; then
5.2689 - # Link the dlpreopened libraries before other libraries
5.2690 - for deplib in $save_deplibs; do
5.2691 - deplibs="$deplib $deplibs"
5.2692 - done
5.2693 - fi
5.2694 - if test "$pass" != dlopen; then
5.2695 - if test "$pass" != conv; then
5.2696 - # Make sure lib_search_path contains only unique directories.
5.2697 - lib_search_path=
5.2698 - for dir in $newlib_search_path; do
5.2699 - case "$lib_search_path " in
5.2700 - *" $dir "*) ;;
5.2701 - *) lib_search_path="$lib_search_path $dir" ;;
5.2702 - esac
5.2703 - done
5.2704 - newlib_search_path=
5.2705 - fi
5.2706 -
5.2707 - if test "$linkmode,$pass" != "prog,link"; then
5.2708 - vars="deplibs"
5.2709 - else
5.2710 - vars="compile_deplibs finalize_deplibs"
5.2711 - fi
5.2712 - for var in $vars dependency_libs; do
5.2713 - # Add libraries to $var in reverse order
5.2714 - eval tmp_libs=\"\$$var\"
5.2715 - new_libs=
5.2716 - for deplib in $tmp_libs; do
5.2717 - # FIXME: Pedantically, this is the right thing to do, so
5.2718 - # that some nasty dependency loop isn't accidentally
5.2719 - # broken:
5.2720 - #new_libs="$deplib $new_libs"
5.2721 - # Pragmatically, this seems to cause very few problems in
5.2722 - # practice:
5.2723 - case $deplib in
5.2724 - -L*) new_libs="$deplib $new_libs" ;;
5.2725 - -R*) ;;
5.2726 - *)
5.2727 - # And here is the reason: when a library appears more
5.2728 - # than once as an explicit dependence of a library, or
5.2729 - # is implicitly linked in more than once by the
5.2730 - # compiler, it is considered special, and multiple
5.2731 - # occurrences thereof are not removed. Compare this
5.2732 - # with having the same library being listed as a
5.2733 - # dependency of multiple other libraries: in this case,
5.2734 - # we know (pedantically, we assume) the library does not
5.2735 - # need to be listed more than once, so we keep only the
5.2736 - # last copy. This is not always right, but it is rare
5.2737 - # enough that we require users that really mean to play
5.2738 - # such unportable linking tricks to link the library
5.2739 - # using -Wl,-lname, so that libtool does not consider it
5.2740 - # for duplicate removal.
5.2741 - case " $specialdeplibs " in
5.2742 - *" $deplib "*) new_libs="$deplib $new_libs" ;;
5.2743 - *)
5.2744 - case " $new_libs " in
5.2745 - *" $deplib "*) ;;
5.2746 - *) new_libs="$deplib $new_libs" ;;
5.2747 - esac
5.2748 - ;;
5.2749 - esac
5.2750 - ;;
5.2751 - esac
5.2752 - done
5.2753 - tmp_libs=
5.2754 - for deplib in $new_libs; do
5.2755 - case $deplib in
5.2756 - -L*)
5.2757 - case " $tmp_libs " in
5.2758 - *" $deplib "*) ;;
5.2759 - *) tmp_libs="$tmp_libs $deplib" ;;
5.2760 - esac
5.2761 - ;;
5.2762 - *) tmp_libs="$tmp_libs $deplib" ;;
5.2763 - esac
5.2764 - done
5.2765 - eval $var=\"$tmp_libs\"
5.2766 - done # for var
5.2767 - fi
5.2768 - # Last step: remove runtime libs from dependency_libs
5.2769 - # (they stay in deplibs)
5.2770 - tmp_libs=
5.2771 - for i in $dependency_libs ; do
5.2772 - case " $predeps $postdeps $compiler_lib_search_path " in
5.2773 - *" $i "*)
5.2774 - i=""
5.2775 - ;;
5.2776 - esac
5.2777 - if test -n "$i" ; then
5.2778 - tmp_libs="$tmp_libs $i"
5.2779 - fi
5.2780 - done
5.2781 - dependency_libs=$tmp_libs
5.2782 - done # for pass
5.2783 - if test "$linkmode" = prog; then
5.2784 - dlfiles="$newdlfiles"
5.2785 - dlprefiles="$newdlprefiles"
5.2786 - fi
5.2787 -
5.2788 - case $linkmode in
5.2789 - oldlib)
5.2790 - if test -n "$deplibs"; then
5.2791 - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
5.2792 - fi
5.2793 -
5.2794 - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
5.2795 - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
5.2796 - fi
5.2797 -
5.2798 - if test -n "$rpath"; then
5.2799 - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
5.2800 - fi
5.2801 -
5.2802 - if test -n "$xrpath"; then
5.2803 - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
5.2804 - fi
5.2805 -
5.2806 - if test -n "$vinfo"; then
5.2807 - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
5.2808 - fi
5.2809 -
5.2810 - if test -n "$release"; then
5.2811 - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
5.2812 - fi
5.2813 -
5.2814 - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
5.2815 - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
5.2816 - fi
5.2817 -
5.2818 - # Now set the variables for building old libraries.
5.2819 - build_libtool_libs=no
5.2820 - oldlibs="$output"
5.2821 - objs="$objs$old_deplibs"
5.2822 - ;;
5.2823 -
5.2824 - lib)
5.2825 - # Make sure we only generate libraries of the form `libNAME.la'.
5.2826 - case $outputname in
5.2827 - lib*)
5.2828 - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
5.2829 - eval shared_ext=\"$shrext_cmds\"
5.2830 - eval libname=\"$libname_spec\"
5.2831 - ;;
5.2832 - *)
5.2833 - if test "$module" = no; then
5.2834 - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
5.2835 - $echo "$help" 1>&2
5.2836 - exit $EXIT_FAILURE
5.2837 - fi
5.2838 - if test "$need_lib_prefix" != no; then
5.2839 - # Add the "lib" prefix for modules if required
5.2840 - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
5.2841 - eval shared_ext=\"$shrext_cmds\"
5.2842 - eval libname=\"$libname_spec\"
5.2843 - else
5.2844 - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
5.2845 - fi
5.2846 - ;;
5.2847 - esac
5.2848 -
5.2849 - if test -n "$objs"; then
5.2850 - if test "$deplibs_check_method" != pass_all; then
5.2851 - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
5.2852 - exit $EXIT_FAILURE
5.2853 - else
5.2854 - $echo
5.2855 - $echo "*** Warning: Linking the shared library $output against the non-libtool"
5.2856 - $echo "*** objects $objs is not portable!"
5.2857 - libobjs="$libobjs $objs"
5.2858 - fi
5.2859 - fi
5.2860 -
5.2861 - if test "$dlself" != no; then
5.2862 - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
5.2863 - fi
5.2864 -
5.2865 - set dummy $rpath
5.2866 - if test "$#" -gt 2; then
5.2867 - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
5.2868 - fi
5.2869 - install_libdir="$2"
5.2870 -
5.2871 - oldlibs=
5.2872 - if test -z "$rpath"; then
5.2873 - if test "$build_libtool_libs" = yes; then
5.2874 - # Building a libtool convenience library.
5.2875 - # Some compilers have problems with a `.al' extension so
5.2876 - # convenience libraries should have the same extension an
5.2877 - # archive normally would.
5.2878 - oldlibs="$output_objdir/$libname.$libext $oldlibs"
5.2879 - build_libtool_libs=convenience
5.2880 - build_old_libs=yes
5.2881 - fi
5.2882 -
5.2883 - if test -n "$vinfo"; then
5.2884 - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
5.2885 - fi
5.2886 -
5.2887 - if test -n "$release"; then
5.2888 - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
5.2889 - fi
5.2890 - else
5.2891 -
5.2892 - # Parse the version information argument.
5.2893 - save_ifs="$IFS"; IFS=':'
5.2894 - set dummy $vinfo 0 0 0
5.2895 - IFS="$save_ifs"
5.2896 -
5.2897 - if test -n "$8"; then
5.2898 - $echo "$modename: too many parameters to \`-version-info'" 1>&2
5.2899 - $echo "$help" 1>&2
5.2900 - exit $EXIT_FAILURE
5.2901 - fi
5.2902 -
5.2903 - # convert absolute version numbers to libtool ages
5.2904 - # this retains compatibility with .la files and attempts
5.2905 - # to make the code below a bit more comprehensible
5.2906 -
5.2907 - case $vinfo_number in
5.2908 - yes)
5.2909 - number_major="$2"
5.2910 - number_minor="$3"
5.2911 - number_revision="$4"
5.2912 - #
5.2913 - # There are really only two kinds -- those that
5.2914 - # use the current revision as the major version
5.2915 - # and those that subtract age and use age as
5.2916 - # a minor version. But, then there is irix
5.2917 - # which has an extra 1 added just for fun
5.2918 - #
5.2919 - case $version_type in
5.2920 - darwin|linux|osf|windows)
5.2921 - current=`expr $number_major + $number_minor`
5.2922 - age="$number_minor"
5.2923 - revision="$number_revision"
5.2924 - ;;
5.2925 - freebsd-aout|freebsd-elf|sunos)
5.2926 - current="$number_major"
5.2927 - revision="$number_minor"
5.2928 - age="0"
5.2929 - ;;
5.2930 - irix|nonstopux)
5.2931 - current=`expr $number_major + $number_minor - 1`
5.2932 - age="$number_minor"
5.2933 - revision="$number_minor"
5.2934 - ;;
5.2935 - *)
5.2936 - $echo "$modename: unknown library version type \`$version_type'" 1>&2
5.2937 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
5.2938 - exit $EXIT_FAILURE
5.2939 - ;;
5.2940 - esac
5.2941 - ;;
5.2942 - no)
5.2943 - current="$2"
5.2944 - revision="$3"
5.2945 - age="$4"
5.2946 - ;;
5.2947 - esac
5.2948 -
5.2949 - # Check that each of the things are valid numbers.
5.2950 - case $current in
5.2951 - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
5.2952 - *)
5.2953 - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
5.2954 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
5.2955 - exit $EXIT_FAILURE
5.2956 - ;;
5.2957 - esac
5.2958 -
5.2959 - case $revision in
5.2960 - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
5.2961 - *)
5.2962 - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
5.2963 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
5.2964 - exit $EXIT_FAILURE
5.2965 - ;;
5.2966 - esac
5.2967 -
5.2968 - case $age in
5.2969 - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
5.2970 - *)
5.2971 - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
5.2972 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
5.2973 - exit $EXIT_FAILURE
5.2974 - ;;
5.2975 - esac
5.2976 -
5.2977 - if test "$age" -gt "$current"; then
5.2978 - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
5.2979 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
5.2980 - exit $EXIT_FAILURE
5.2981 - fi
5.2982 -
5.2983 - # Calculate the version variables.
5.2984 - major=
5.2985 - versuffix=
5.2986 - verstring=
5.2987 - case $version_type in
5.2988 - none) ;;
5.2989 -
5.2990 - darwin)
5.2991 - # Like Linux, but with the current version available in
5.2992 - # verstring for coding it into the library header
5.2993 - major=.`expr $current - $age`
5.2994 - versuffix="$major.$age.$revision"
5.2995 - # Darwin ld doesn't like 0 for these options...
5.2996 - minor_current=`expr $current + 1`
5.2997 - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
5.2998 - ;;
5.2999 -
5.3000 - freebsd-aout)
5.3001 - major=".$current"
5.3002 - versuffix=".$current.$revision";
5.3003 - ;;
5.3004 -
5.3005 - freebsd-elf)
5.3006 - major=".$current"
5.3007 - versuffix=".$current";
5.3008 - ;;
5.3009 -
5.3010 - irix | nonstopux)
5.3011 - major=`expr $current - $age + 1`
5.3012 -
5.3013 - case $version_type in
5.3014 - nonstopux) verstring_prefix=nonstopux ;;
5.3015 - *) verstring_prefix=sgi ;;
5.3016 - esac
5.3017 - verstring="$verstring_prefix$major.$revision"
5.3018 -
5.3019 - # Add in all the interfaces that we are compatible with.
5.3020 - loop=$revision
5.3021 - while test "$loop" -ne 0; do
5.3022 - iface=`expr $revision - $loop`
5.3023 - loop=`expr $loop - 1`
5.3024 - verstring="$verstring_prefix$major.$iface:$verstring"
5.3025 - done
5.3026 -
5.3027 - # Before this point, $major must not contain `.'.
5.3028 - major=.$major
5.3029 - versuffix="$major.$revision"
5.3030 - ;;
5.3031 -
5.3032 - linux)
5.3033 - major=.`expr $current - $age`
5.3034 - versuffix="$major.$age.$revision"
5.3035 - ;;
5.3036 -
5.3037 - osf)
5.3038 - major=.`expr $current - $age`
5.3039 - versuffix=".$current.$age.$revision"
5.3040 - verstring="$current.$age.$revision"
5.3041 -
5.3042 - # Add in all the interfaces that we are compatible with.
5.3043 - loop=$age
5.3044 - while test "$loop" -ne 0; do
5.3045 - iface=`expr $current - $loop`
5.3046 - loop=`expr $loop - 1`
5.3047 - verstring="$verstring:${iface}.0"
5.3048 - done
5.3049 -
5.3050 - # Make executables depend on our current version.
5.3051 - verstring="$verstring:${current}.0"
5.3052 - ;;
5.3053 -
5.3054 - sunos)
5.3055 - major=".$current"
5.3056 - versuffix=".$current.$revision"
5.3057 - ;;
5.3058 -
5.3059 - windows)
5.3060 - # Use '-' rather than '.', since we only want one
5.3061 - # extension on DOS 8.3 filesystems.
5.3062 - major=`expr $current - $age`
5.3063 - versuffix="-$major"
5.3064 - ;;
5.3065 -
5.3066 - *)
5.3067 - $echo "$modename: unknown library version type \`$version_type'" 1>&2
5.3068 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
5.3069 - exit $EXIT_FAILURE
5.3070 - ;;
5.3071 - esac
5.3072 -
5.3073 - # Clear the version info if we defaulted, and they specified a release.
5.3074 - if test -z "$vinfo" && test -n "$release"; then
5.3075 - major=
5.3076 - case $version_type in
5.3077 - darwin)
5.3078 - # we can't check for "0.0" in archive_cmds due to quoting
5.3079 - # problems, so we reset it completely
5.3080 - verstring=
5.3081 - ;;
5.3082 - *)
5.3083 - verstring="0.0"
5.3084 - ;;
5.3085 - esac
5.3086 - if test "$need_version" = no; then
5.3087 - versuffix=
5.3088 - else
5.3089 - versuffix=".0.0"
5.3090 - fi
5.3091 - fi
5.3092 -
5.3093 - # Remove version info from name if versioning should be avoided
5.3094 - if test "$avoid_version" = yes && test "$need_version" = no; then
5.3095 - major=
5.3096 - versuffix=
5.3097 - verstring=""
5.3098 - fi
5.3099 -
5.3100 - # Check to see if the archive will have undefined symbols.
5.3101 - if test "$allow_undefined" = yes; then
5.3102 - if test "$allow_undefined_flag" = unsupported; then
5.3103 - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
5.3104 - build_libtool_libs=no
5.3105 - build_old_libs=yes
5.3106 - fi
5.3107 - else
5.3108 - # Don't allow undefined symbols.
5.3109 - allow_undefined_flag="$no_undefined_flag"
5.3110 - fi
5.3111 - fi
5.3112 -
5.3113 - if test "$mode" != relink; then
5.3114 - # Remove our outputs, but don't remove object files since they
5.3115 - # may have been created when compiling PIC objects.
5.3116 - removelist=
5.3117 - tempremovelist=`$echo "$output_objdir/*"`
5.3118 - for p in $tempremovelist; do
5.3119 - case $p in
5.3120 - *.$objext)
5.3121 - ;;
5.3122 - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
5.3123 - if test "X$precious_files_regex" != "X"; then
5.3124 - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
5.3125 - then
5.3126 - continue
5.3127 - fi
5.3128 - fi
5.3129 - removelist="$removelist $p"
5.3130 - ;;
5.3131 - *) ;;
5.3132 - esac
5.3133 - done
5.3134 - if test -n "$removelist"; then
5.3135 - $show "${rm}r $removelist"
5.3136 - $run ${rm}r $removelist
5.3137 - fi
5.3138 - fi
5.3139 -
5.3140 - # Now set the variables for building old libraries.
5.3141 - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
5.3142 - oldlibs="$oldlibs $output_objdir/$libname.$libext"
5.3143 -
5.3144 - # Transform .lo files to .o files.
5.3145 - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
5.3146 - fi
5.3147 -
5.3148 - # Eliminate all temporary directories.
5.3149 - for path in $notinst_path; do
5.3150 - lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
5.3151 - deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
5.3152 - dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
5.3153 - done
5.3154 -
5.3155 - if test -n "$xrpath"; then
5.3156 - # If the user specified any rpath flags, then add them.
5.3157 - temp_xrpath=
5.3158 - for libdir in $xrpath; do
5.3159 - temp_xrpath="$temp_xrpath -R$libdir"
5.3160 - case "$finalize_rpath " in
5.3161 - *" $libdir "*) ;;
5.3162 - *) finalize_rpath="$finalize_rpath $libdir" ;;
5.3163 - esac
5.3164 - done
5.3165 - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
5.3166 - dependency_libs="$temp_xrpath $dependency_libs"
5.3167 - fi
5.3168 - fi
5.3169 -
5.3170 - # Make sure dlfiles contains only unique files that won't be dlpreopened
5.3171 - old_dlfiles="$dlfiles"
5.3172 - dlfiles=
5.3173 - for lib in $old_dlfiles; do
5.3174 - case " $dlprefiles $dlfiles " in
5.3175 - *" $lib "*) ;;
5.3176 - *) dlfiles="$dlfiles $lib" ;;
5.3177 - esac
5.3178 - done
5.3179 -
5.3180 - # Make sure dlprefiles contains only unique files
5.3181 - old_dlprefiles="$dlprefiles"
5.3182 - dlprefiles=
5.3183 - for lib in $old_dlprefiles; do
5.3184 - case "$dlprefiles " in
5.3185 - *" $lib "*) ;;
5.3186 - *) dlprefiles="$dlprefiles $lib" ;;
5.3187 - esac
5.3188 - done
5.3189 -
5.3190 - if test "$build_libtool_libs" = yes; then
5.3191 - if test -n "$rpath"; then
5.3192 - case $host in
5.3193 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
5.3194 - # these systems don't actually have a c library (as such)!
5.3195 - ;;
5.3196 - *-*-rhapsody* | *-*-darwin1.[012])
5.3197 - # Rhapsody C library is in the System framework
5.3198 - deplibs="$deplibs -framework System"
5.3199 - ;;
5.3200 - *-*-netbsd*)
5.3201 - # Don't link with libc until the a.out ld.so is fixed.
5.3202 - ;;
5.3203 - *-*-openbsd* | *-*-freebsd*)
5.3204 - # Do not include libc due to us having libc/libc_r.
5.3205 - test "X$arg" = "X-lc" && continue
5.3206 - ;;
5.3207 - *)
5.3208 - # Add libc to deplibs on all other systems if necessary.
5.3209 - if test "$build_libtool_need_lc" = "yes"; then
5.3210 - deplibs="$deplibs -lc"
5.3211 - fi
5.3212 - ;;
5.3213 - esac
5.3214 - fi
5.3215 -
5.3216 - # Transform deplibs into only deplibs that can be linked in shared.
5.3217 - name_save=$name
5.3218 - libname_save=$libname
5.3219 - release_save=$release
5.3220 - versuffix_save=$versuffix
5.3221 - major_save=$major
5.3222 - # I'm not sure if I'm treating the release correctly. I think
5.3223 - # release should show up in the -l (ie -lgmp5) so we don't want to
5.3224 - # add it in twice. Is that correct?
5.3225 - release=""
5.3226 - versuffix=""
5.3227 - major=""
5.3228 - newdeplibs=
5.3229 - droppeddeps=no
5.3230 - case $deplibs_check_method in
5.3231 - pass_all)
5.3232 - # Don't check for shared/static. Everything works.
5.3233 - # This might be a little naive. We might want to check
5.3234 - # whether the library exists or not. But this is on
5.3235 - # osf3 & osf4 and I'm not really sure... Just
5.3236 - # implementing what was already the behavior.
5.3237 - newdeplibs=$deplibs
5.3238 - ;;
5.3239 - test_compile)
5.3240 - # This code stresses the "libraries are programs" paradigm to its
5.3241 - # limits. Maybe even breaks it. We compile a program, linking it
5.3242 - # against the deplibs as a proxy for the library. Then we can check
5.3243 - # whether they linked in statically or dynamically with ldd.
5.3244 - $rm conftest.c
5.3245 - cat > conftest.c <<EOF
5.3246 - int main() { return 0; }
5.3247 -EOF
5.3248 - $rm conftest
5.3249 - $LTCC -o conftest conftest.c $deplibs
5.3250 - if test "$?" -eq 0 ; then
5.3251 - ldd_output=`ldd conftest`
5.3252 - for i in $deplibs; do
5.3253 - name="`expr $i : '-l\(.*\)'`"
5.3254 - # If $name is empty we are operating on a -L argument.
5.3255 - if test "$name" != "" && test "$name" -ne "0"; then
5.3256 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
5.3257 - case " $predeps $postdeps " in
5.3258 - *" $i "*)
5.3259 - newdeplibs="$newdeplibs $i"
5.3260 - i=""
5.3261 - ;;
5.3262 - esac
5.3263 - fi
5.3264 - if test -n "$i" ; then
5.3265 - libname=`eval \\$echo \"$libname_spec\"`
5.3266 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
5.3267 - set dummy $deplib_matches
5.3268 - deplib_match=$2
5.3269 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
5.3270 - newdeplibs="$newdeplibs $i"
5.3271 - else
5.3272 - droppeddeps=yes
5.3273 - $echo
5.3274 - $echo "*** Warning: dynamic linker does not accept needed library $i."
5.3275 - $echo "*** I have the capability to make that library automatically link in when"
5.3276 - $echo "*** you link to this library. But I can only do this if you have a"
5.3277 - $echo "*** shared version of the library, which I believe you do not have"
5.3278 - $echo "*** because a test_compile did reveal that the linker did not use it for"
5.3279 - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
5.3280 - fi
5.3281 - fi
5.3282 - else
5.3283 - newdeplibs="$newdeplibs $i"
5.3284 - fi
5.3285 - done
5.3286 - else
5.3287 - # Error occurred in the first compile. Let's try to salvage
5.3288 - # the situation: Compile a separate program for each library.
5.3289 - for i in $deplibs; do
5.3290 - name="`expr $i : '-l\(.*\)'`"
5.3291 - # If $name is empty we are operating on a -L argument.
5.3292 - if test "$name" != "" && test "$name" != "0"; then
5.3293 - $rm conftest
5.3294 - $LTCC -o conftest conftest.c $i
5.3295 - # Did it work?
5.3296 - if test "$?" -eq 0 ; then
5.3297 - ldd_output=`ldd conftest`
5.3298 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
5.3299 - case " $predeps $postdeps " in
5.3300 - *" $i "*)
5.3301 - newdeplibs="$newdeplibs $i"
5.3302 - i=""
5.3303 - ;;
5.3304 - esac
5.3305 - fi
5.3306 - if test -n "$i" ; then
5.3307 - libname=`eval \\$echo \"$libname_spec\"`
5.3308 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
5.3309 - set dummy $deplib_matches
5.3310 - deplib_match=$2
5.3311 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
5.3312 - newdeplibs="$newdeplibs $i"
5.3313 - else
5.3314 - droppeddeps=yes
5.3315 - $echo
5.3316 - $echo "*** Warning: dynamic linker does not accept needed library $i."
5.3317 - $echo "*** I have the capability to make that library automatically link in when"
5.3318 - $echo "*** you link to this library. But I can only do this if you have a"
5.3319 - $echo "*** shared version of the library, which you do not appear to have"
5.3320 - $echo "*** because a test_compile did reveal that the linker did not use this one"
5.3321 - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
5.3322 - fi
5.3323 - fi
5.3324 - else
5.3325 - droppeddeps=yes
5.3326 - $echo
5.3327 - $echo "*** Warning! Library $i is needed by this library but I was not able to"
5.3328 - $echo "*** make it link in! You will probably need to install it or some"
5.3329 - $echo "*** library that it depends on before this library will be fully"
5.3330 - $echo "*** functional. Installing it before continuing would be even better."
5.3331 - fi
5.3332 - else
5.3333 - newdeplibs="$newdeplibs $i"
5.3334 - fi
5.3335 - done
5.3336 - fi
5.3337 - ;;
5.3338 - file_magic*)
5.3339 - set dummy $deplibs_check_method
5.3340 - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
5.3341 - for a_deplib in $deplibs; do
5.3342 - name="`expr $a_deplib : '-l\(.*\)'`"
5.3343 - # If $name is empty we are operating on a -L argument.
5.3344 - if test "$name" != "" && test "$name" != "0"; then
5.3345 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
5.3346 - case " $predeps $postdeps " in
5.3347 - *" $a_deplib "*)
5.3348 - newdeplibs="$newdeplibs $a_deplib"
5.3349 - a_deplib=""
5.3350 - ;;
5.3351 - esac
5.3352 - fi
5.3353 - if test -n "$a_deplib" ; then
5.3354 - libname=`eval \\$echo \"$libname_spec\"`
5.3355 - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
5.3356 - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
5.3357 - for potent_lib in $potential_libs; do
5.3358 - # Follow soft links.
5.3359 - if ls -lLd "$potent_lib" 2>/dev/null \
5.3360 - | grep " -> " >/dev/null; then
5.3361 - continue
5.3362 - fi
5.3363 - # The statement above tries to avoid entering an
5.3364 - # endless loop below, in case of cyclic links.
5.3365 - # We might still enter an endless loop, since a link
5.3366 - # loop can be closed while we follow links,
5.3367 - # but so what?
5.3368 - potlib="$potent_lib"
5.3369 - while test -h "$potlib" 2>/dev/null; do
5.3370 - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
5.3371 - case $potliblink in
5.3372 - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
5.3373 - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
5.3374 - esac
5.3375 - done
5.3376 - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
5.3377 - | ${SED} 10q \
5.3378 - | $EGREP "$file_magic_regex" > /dev/null; then
5.3379 - newdeplibs="$newdeplibs $a_deplib"
5.3380 - a_deplib=""
5.3381 - break 2
5.3382 - fi
5.3383 - done
5.3384 - done
5.3385 - fi
5.3386 - if test -n "$a_deplib" ; then
5.3387 - droppeddeps=yes
5.3388 - $echo
5.3389 - $echo "*** Warning: linker path does not have real file for library $a_deplib."
5.3390 - $echo "*** I have the capability to make that library automatically link in when"
5.3391 - $echo "*** you link to this library. But I can only do this if you have a"
5.3392 - $echo "*** shared version of the library, which you do not appear to have"
5.3393 - $echo "*** because I did check the linker path looking for a file starting"
5.3394 - if test -z "$potlib" ; then
5.3395 - $echo "*** with $libname but no candidates were found. (...for file magic test)"
5.3396 - else
5.3397 - $echo "*** with $libname and none of the candidates passed a file format test"
5.3398 - $echo "*** using a file magic. Last file checked: $potlib"
5.3399 - fi
5.3400 - fi
5.3401 - else
5.3402 - # Add a -L argument.
5.3403 - newdeplibs="$newdeplibs $a_deplib"
5.3404 - fi
5.3405 - done # Gone through all deplibs.
5.3406 - ;;
5.3407 - match_pattern*)
5.3408 - set dummy $deplibs_check_method
5.3409 - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
5.3410 - for a_deplib in $deplibs; do
5.3411 - name="`expr $a_deplib : '-l\(.*\)'`"
5.3412 - # If $name is empty we are operating on a -L argument.
5.3413 - if test -n "$name" && test "$name" != "0"; then
5.3414 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
5.3415 - case " $predeps $postdeps " in
5.3416 - *" $a_deplib "*)
5.3417 - newdeplibs="$newdeplibs $a_deplib"
5.3418 - a_deplib=""
5.3419 - ;;
5.3420 - esac
5.3421 - fi
5.3422 - if test -n "$a_deplib" ; then
5.3423 - libname=`eval \\$echo \"$libname_spec\"`
5.3424 - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
5.3425 - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
5.3426 - for potent_lib in $potential_libs; do
5.3427 - potlib="$potent_lib" # see symlink-check above in file_magic test
5.3428 - if eval $echo \"$potent_lib\" 2>/dev/null \
5.3429 - | ${SED} 10q \
5.3430 - | $EGREP "$match_pattern_regex" > /dev/null; then
5.3431 - newdeplibs="$newdeplibs $a_deplib"
5.3432 - a_deplib=""
5.3433 - break 2
5.3434 - fi
5.3435 - done
5.3436 - done
5.3437 - fi
5.3438 - if test -n "$a_deplib" ; then
5.3439 - droppeddeps=yes
5.3440 - $echo
5.3441 - $echo "*** Warning: linker path does not have real file for library $a_deplib."
5.3442 - $echo "*** I have the capability to make that library automatically link in when"
5.3443 - $echo "*** you link to this library. But I can only do this if you have a"
5.3444 - $echo "*** shared version of the library, which you do not appear to have"
5.3445 - $echo "*** because I did check the linker path looking for a file starting"
5.3446 - if test -z "$potlib" ; then
5.3447 - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
5.3448 - else
5.3449 - $echo "*** with $libname and none of the candidates passed a file format test"
5.3450 - $echo "*** using a regex pattern. Last file checked: $potlib"
5.3451 - fi
5.3452 - fi
5.3453 - else
5.3454 - # Add a -L argument.
5.3455 - newdeplibs="$newdeplibs $a_deplib"
5.3456 - fi
5.3457 - done # Gone through all deplibs.
5.3458 - ;;
5.3459 - none | unknown | *)
5.3460 - newdeplibs=""
5.3461 - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
5.3462 - -e 's/ -[LR][^ ]*//g'`
5.3463 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
5.3464 - for i in $predeps $postdeps ; do
5.3465 - # can't use Xsed below, because $i might contain '/'
5.3466 - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
5.3467 - done
5.3468 - fi
5.3469 - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
5.3470 - | grep . >/dev/null; then
5.3471 - $echo
5.3472 - if test "X$deplibs_check_method" = "Xnone"; then
5.3473 - $echo "*** Warning: inter-library dependencies are not supported in this platform."
5.3474 - else
5.3475 - $echo "*** Warning: inter-library dependencies are not known to be supported."
5.3476 - fi
5.3477 - $echo "*** All declared inter-library dependencies are being dropped."
5.3478 - droppeddeps=yes
5.3479 - fi
5.3480 - ;;
5.3481 - esac
5.3482 - versuffix=$versuffix_save
5.3483 - major=$major_save
5.3484 - release=$release_save
5.3485 - libname=$libname_save
5.3486 - name=$name_save
5.3487 -
5.3488 - case $host in
5.3489 - *-*-rhapsody* | *-*-darwin1.[012])
5.3490 - # On Rhapsody replace the C library is the System framework
5.3491 - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
5.3492 - ;;
5.3493 - esac
5.3494 -
5.3495 - if test "$droppeddeps" = yes; then
5.3496 - if test "$module" = yes; then
5.3497 - $echo
5.3498 - $echo "*** Warning: libtool could not satisfy all declared inter-library"
5.3499 - $echo "*** dependencies of module $libname. Therefore, libtool will create"
5.3500 - $echo "*** a static module, that should work as long as the dlopening"
5.3501 - $echo "*** application is linked with the -dlopen flag."
5.3502 - if test -z "$global_symbol_pipe"; then
5.3503 - $echo
5.3504 - $echo "*** However, this would only work if libtool was able to extract symbol"
5.3505 - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
5.3506 - $echo "*** not find such a program. So, this module is probably useless."
5.3507 - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
5.3508 - fi
5.3509 - if test "$build_old_libs" = no; then
5.3510 - oldlibs="$output_objdir/$libname.$libext"
5.3511 - build_libtool_libs=module
5.3512 - build_old_libs=yes
5.3513 - else
5.3514 - build_libtool_libs=no
5.3515 - fi
5.3516 - else
5.3517 - $echo "*** The inter-library dependencies that have been dropped here will be"
5.3518 - $echo "*** automatically added whenever a program is linked with this library"
5.3519 - $echo "*** or is declared to -dlopen it."
5.3520 -
5.3521 - if test "$allow_undefined" = no; then
5.3522 - $echo
5.3523 - $echo "*** Since this library must not contain undefined symbols,"
5.3524 - $echo "*** because either the platform does not support them or"
5.3525 - $echo "*** it was explicitly requested with -no-undefined,"
5.3526 - $echo "*** libtool will only create a static version of it."
5.3527 - if test "$build_old_libs" = no; then
5.3528 - oldlibs="$output_objdir/$libname.$libext"
5.3529 - build_libtool_libs=module
5.3530 - build_old_libs=yes
5.3531 - else
5.3532 - build_libtool_libs=no
5.3533 - fi
5.3534 - fi
5.3535 - fi
5.3536 - fi
5.3537 - # Done checking deplibs!
5.3538 - deplibs=$newdeplibs
5.3539 - fi
5.3540 -
5.3541 - # All the library-specific variables (install_libdir is set above).
5.3542 - library_names=
5.3543 - old_library=
5.3544 - dlname=
5.3545 -
5.3546 - # Test again, we may have decided not to build it any more
5.3547 - if test "$build_libtool_libs" = yes; then
5.3548 - if test "$hardcode_into_libs" = yes; then
5.3549 - # Hardcode the library paths
5.3550 - hardcode_libdirs=
5.3551 - dep_rpath=
5.3552 - rpath="$finalize_rpath"
5.3553 - test "$mode" != relink && rpath="$compile_rpath$rpath"
5.3554 - for libdir in $rpath; do
5.3555 - if test -n "$hardcode_libdir_flag_spec"; then
5.3556 - if test -n "$hardcode_libdir_separator"; then
5.3557 - if test -z "$hardcode_libdirs"; then
5.3558 - hardcode_libdirs="$libdir"
5.3559 - else
5.3560 - # Just accumulate the unique libdirs.
5.3561 - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
5.3562 - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
5.3563 - ;;
5.3564 - *)
5.3565 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
5.3566 - ;;
5.3567 - esac
5.3568 - fi
5.3569 - else
5.3570 - eval flag=\"$hardcode_libdir_flag_spec\"
5.3571 - dep_rpath="$dep_rpath $flag"
5.3572 - fi
5.3573 - elif test -n "$runpath_var"; then
5.3574 - case "$perm_rpath " in
5.3575 - *" $libdir "*) ;;
5.3576 - *) perm_rpath="$perm_rpath $libdir" ;;
5.3577 - esac
5.3578 - fi
5.3579 - done
5.3580 - # Substitute the hardcoded libdirs into the rpath.
5.3581 - if test -n "$hardcode_libdir_separator" &&
5.3582 - test -n "$hardcode_libdirs"; then
5.3583 - libdir="$hardcode_libdirs"
5.3584 - if test -n "$hardcode_libdir_flag_spec_ld"; then
5.3585 - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
5.3586 - else
5.3587 - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
5.3588 - fi
5.3589 - fi
5.3590 - if test -n "$runpath_var" && test -n "$perm_rpath"; then
5.3591 - # We should set the runpath_var.
5.3592 - rpath=
5.3593 - for dir in $perm_rpath; do
5.3594 - rpath="$rpath$dir:"
5.3595 - done
5.3596 - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
5.3597 - fi
5.3598 - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
5.3599 - fi
5.3600 -
5.3601 - shlibpath="$finalize_shlibpath"
5.3602 - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
5.3603 - if test -n "$shlibpath"; then
5.3604 - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
5.3605 - fi
5.3606 -
5.3607 - # Get the real and link names of the library.
5.3608 - eval shared_ext=\"$shrext_cmds\"
5.3609 - eval library_names=\"$library_names_spec\"
5.3610 - set dummy $library_names
5.3611 - realname="$2"
5.3612 - shift; shift
5.3613 -
5.3614 - if test -n "$soname_spec"; then
5.3615 - eval soname=\"$soname_spec\"
5.3616 - else
5.3617 - soname="$realname"
5.3618 - fi
5.3619 - if test -z "$dlname"; then
5.3620 - dlname=$soname
5.3621 - fi
5.3622 -
5.3623 - lib="$output_objdir/$realname"
5.3624 - for link
5.3625 - do
5.3626 - linknames="$linknames $link"
5.3627 - done
5.3628 -
5.3629 - # Use standard objects if they are pic
5.3630 - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
5.3631 -
5.3632 - # Prepare the list of exported symbols
5.3633 - if test -z "$export_symbols"; then
5.3634 - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
5.3635 - $show "generating symbol list for \`$libname.la'"
5.3636 - export_symbols="$output_objdir/$libname.exp"
5.3637 - $run $rm $export_symbols
5.3638 - cmds=$export_symbols_cmds
5.3639 - save_ifs="$IFS"; IFS='~'
5.3640 - for cmd in $cmds; do
5.3641 - IFS="$save_ifs"
5.3642 - eval cmd=\"$cmd\"
5.3643 - if len=`expr "X$cmd" : ".*"` &&
5.3644 - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5.3645 - $show "$cmd"
5.3646 - $run eval "$cmd" || exit $?
5.3647 - skipped_export=false
5.3648 - else
5.3649 - # The command line is too long to execute in one step.
5.3650 - $show "using reloadable object file for export list..."
5.3651 - skipped_export=:
5.3652 - fi
5.3653 - done
5.3654 - IFS="$save_ifs"
5.3655 - if test -n "$export_symbols_regex"; then
5.3656 - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
5.3657 - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
5.3658 - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
5.3659 - $run eval '$mv "${export_symbols}T" "$export_symbols"'
5.3660 - fi
5.3661 - fi
5.3662 - fi
5.3663 -
5.3664 - if test -n "$export_symbols" && test -n "$include_expsyms"; then
5.3665 - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
5.3666 - fi
5.3667 -
5.3668 - tmp_deplibs=
5.3669 - for test_deplib in $deplibs; do
5.3670 - case " $convenience " in
5.3671 - *" $test_deplib "*) ;;
5.3672 - *)
5.3673 - tmp_deplibs="$tmp_deplibs $test_deplib"
5.3674 - ;;
5.3675 - esac
5.3676 - done
5.3677 - deplibs="$tmp_deplibs"
5.3678 -
5.3679 - if test -n "$convenience"; then
5.3680 - if test -n "$whole_archive_flag_spec"; then
5.3681 - save_libobjs=$libobjs
5.3682 - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
5.3683 - else
5.3684 - gentop="$output_objdir/${outputname}x"
5.3685 - $show "${rm}r $gentop"
5.3686 - $run ${rm}r "$gentop"
5.3687 - $show "$mkdir $gentop"
5.3688 - $run $mkdir "$gentop"
5.3689 - status=$?
5.3690 - if test "$status" -ne 0 && test ! -d "$gentop"; then
5.3691 - exit $status
5.3692 - fi
5.3693 - generated="$generated $gentop"
5.3694 -
5.3695 - for xlib in $convenience; do
5.3696 - # Extract the objects.
5.3697 - case $xlib in
5.3698 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
5.3699 - *) xabs=`pwd`"/$xlib" ;;
5.3700 - esac
5.3701 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
5.3702 - xdir="$gentop/$xlib"
5.3703 -
5.3704 - $show "${rm}r $xdir"
5.3705 - $run ${rm}r "$xdir"
5.3706 - $show "$mkdir $xdir"
5.3707 - $run $mkdir "$xdir"
5.3708 - status=$?
5.3709 - if test "$status" -ne 0 && test ! -d "$xdir"; then
5.3710 - exit $status
5.3711 - fi
5.3712 - # We will extract separately just the conflicting names and we will no
5.3713 - # longer touch any unique names. It is faster to leave these extract
5.3714 - # automatically by $AR in one run.
5.3715 - $show "(cd $xdir && $AR x $xabs)"
5.3716 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
5.3717 - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
5.3718 - :
5.3719 - else
5.3720 - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
5.3721 - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
5.3722 - $AR t "$xabs" | sort | uniq -cd | while read -r count name
5.3723 - do
5.3724 - i=1
5.3725 - while test "$i" -le "$count"
5.3726 - do
5.3727 - # Put our $i before any first dot (extension)
5.3728 - # Never overwrite any file
5.3729 - name_to="$name"
5.3730 - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
5.3731 - do
5.3732 - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
5.3733 - done
5.3734 - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
5.3735 - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
5.3736 - i=`expr $i + 1`
5.3737 - done
5.3738 - done
5.3739 - fi
5.3740 -
5.3741 - libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
5.3742 - done
5.3743 - fi
5.3744 - fi
5.3745 -
5.3746 - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
5.3747 - eval flag=\"$thread_safe_flag_spec\"
5.3748 - linker_flags="$linker_flags $flag"
5.3749 - fi
5.3750 -
5.3751 - # Make a backup of the uninstalled library when relinking
5.3752 - if test "$mode" = relink; then
5.3753 - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
5.3754 - fi
5.3755 -
5.3756 - # Do each of the archive commands.
5.3757 - if test "$module" = yes && test -n "$module_cmds" ; then
5.3758 - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
5.3759 - eval test_cmds=\"$module_expsym_cmds\"
5.3760 - cmds=$module_expsym_cmds
5.3761 - else
5.3762 - eval test_cmds=\"$module_cmds\"
5.3763 - cmds=$module_cmds
5.3764 - fi
5.3765 - else
5.3766 - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
5.3767 - eval test_cmds=\"$archive_expsym_cmds\"
5.3768 - cmds=$archive_expsym_cmds
5.3769 - else
5.3770 - eval test_cmds=\"$archive_cmds\"
5.3771 - cmds=$archive_cmds
5.3772 - fi
5.3773 - fi
5.3774 -
5.3775 - if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
5.3776 - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5.3777 - :
5.3778 - else
5.3779 - # The command line is too long to link in one step, link piecewise.
5.3780 - $echo "creating reloadable object files..."
5.3781 -
5.3782 - # Save the value of $output and $libobjs because we want to
5.3783 - # use them later. If we have whole_archive_flag_spec, we
5.3784 - # want to use save_libobjs as it was before
5.3785 - # whole_archive_flag_spec was expanded, because we can't
5.3786 - # assume the linker understands whole_archive_flag_spec.
5.3787 - # This may have to be revisited, in case too many
5.3788 - # convenience libraries get linked in and end up exceeding
5.3789 - # the spec.
5.3790 - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
5.3791 - save_libobjs=$libobjs
5.3792 - fi
5.3793 - save_output=$output
5.3794 -
5.3795 - # Clear the reloadable object creation command queue and
5.3796 - # initialize k to one.
5.3797 - test_cmds=
5.3798 - concat_cmds=
5.3799 - objlist=
5.3800 - delfiles=
5.3801 - last_robj=
5.3802 - k=1
5.3803 - output=$output_objdir/$save_output-${k}.$objext
5.3804 - # Loop over the list of objects to be linked.
5.3805 - for obj in $save_libobjs
5.3806 - do
5.3807 - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
5.3808 - if test "X$objlist" = X ||
5.3809 - { len=`expr "X$test_cmds" : ".*"` &&
5.3810 - test "$len" -le "$max_cmd_len"; }; then
5.3811 - objlist="$objlist $obj"
5.3812 - else
5.3813 - # The command $test_cmds is almost too long, add a
5.3814 - # command to the queue.
5.3815 - if test "$k" -eq 1 ; then
5.3816 - # The first file doesn't have a previous command to add.
5.3817 - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
5.3818 - else
5.3819 - # All subsequent reloadable object files will link in
5.3820 - # the last one created.
5.3821 - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
5.3822 - fi
5.3823 - last_robj=$output_objdir/$save_output-${k}.$objext
5.3824 - k=`expr $k + 1`
5.3825 - output=$output_objdir/$save_output-${k}.$objext
5.3826 - objlist=$obj
5.3827 - len=1
5.3828 - fi
5.3829 - done
5.3830 - # Handle the remaining objects by creating one last
5.3831 - # reloadable object file. All subsequent reloadable object
5.3832 - # files will link in the last one created.
5.3833 - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5.3834 - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
5.3835 -
5.3836 - if ${skipped_export-false}; then
5.3837 - $show "generating symbol list for \`$libname.la'"
5.3838 - export_symbols="$output_objdir/$libname.exp"
5.3839 - $run $rm $export_symbols
5.3840 - libobjs=$output
5.3841 - # Append the command to create the export file.
5.3842 - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
5.3843 - fi
5.3844 -
5.3845 - # Set up a command to remove the reloadale object files
5.3846 - # after they are used.
5.3847 - i=0
5.3848 - while test "$i" -lt "$k"
5.3849 - do
5.3850 - i=`expr $i + 1`
5.3851 - delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
5.3852 - done
5.3853 -
5.3854 - $echo "creating a temporary reloadable object file: $output"
5.3855 -
5.3856 - # Loop through the commands generated above and execute them.
5.3857 - save_ifs="$IFS"; IFS='~'
5.3858 - for cmd in $concat_cmds; do
5.3859 - IFS="$save_ifs"
5.3860 - $show "$cmd"
5.3861 - $run eval "$cmd" || exit $?
5.3862 - done
5.3863 - IFS="$save_ifs"
5.3864 -
5.3865 - libobjs=$output
5.3866 - # Restore the value of output.
5.3867 - output=$save_output
5.3868 -
5.3869 - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
5.3870 - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
5.3871 - fi
5.3872 - # Expand the library linking commands again to reset the
5.3873 - # value of $libobjs for piecewise linking.
5.3874 -
5.3875 - # Do each of the archive commands.
5.3876 - if test "$module" = yes && test -n "$module_cmds" ; then
5.3877 - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
5.3878 - cmds=$module_expsym_cmds
5.3879 - else
5.3880 - cmds=$module_cmds
5.3881 - fi
5.3882 - else
5.3883 - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
5.3884 - cmds=$archive_expsym_cmds
5.3885 - else
5.3886 - cmds=$archive_cmds
5.3887 - fi
5.3888 - fi
5.3889 -
5.3890 - # Append the command to remove the reloadable object files
5.3891 - # to the just-reset $cmds.
5.3892 - eval cmds=\"\$cmds~\$rm $delfiles\"
5.3893 - fi
5.3894 - save_ifs="$IFS"; IFS='~'
5.3895 - for cmd in $cmds; do
5.3896 - IFS="$save_ifs"
5.3897 - eval cmd=\"$cmd\"
5.3898 - $show "$cmd"
5.3899 - $run eval "$cmd" || exit $?
5.3900 - done
5.3901 - IFS="$save_ifs"
5.3902 -
5.3903 - # Restore the uninstalled library and exit
5.3904 - if test "$mode" = relink; then
5.3905 - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
5.3906 - exit $EXIT_SUCCESS
5.3907 - fi
5.3908 -
5.3909 - # Create links to the real library.
5.3910 - for linkname in $linknames; do
5.3911 - if test "$realname" != "$linkname"; then
5.3912 - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
5.3913 - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
5.3914 - fi
5.3915 - done
5.3916 -
5.3917 - # If -module or -export-dynamic was specified, set the dlname.
5.3918 - if test "$module" = yes || test "$export_dynamic" = yes; then
5.3919 - # On all known operating systems, these are identical.
5.3920 - dlname="$soname"
5.3921 - fi
5.3922 - fi
5.3923 - ;;
5.3924 -
5.3925 - obj)
5.3926 - if test -n "$deplibs"; then
5.3927 - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
5.3928 - fi
5.3929 -
5.3930 - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
5.3931 - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
5.3932 - fi
5.3933 -
5.3934 - if test -n "$rpath"; then
5.3935 - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
5.3936 - fi
5.3937 -
5.3938 - if test -n "$xrpath"; then
5.3939 - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
5.3940 - fi
5.3941 -
5.3942 - if test -n "$vinfo"; then
5.3943 - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
5.3944 - fi
5.3945 -
5.3946 - if test -n "$release"; then
5.3947 - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
5.3948 - fi
5.3949 -
5.3950 - case $output in
5.3951 - *.lo)
5.3952 - if test -n "$objs$old_deplibs"; then
5.3953 - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
5.3954 - exit $EXIT_FAILURE
5.3955 - fi
5.3956 - libobj="$output"
5.3957 - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
5.3958 - ;;
5.3959 - *)
5.3960 - libobj=
5.3961 - obj="$output"
5.3962 - ;;
5.3963 - esac
5.3964 -
5.3965 - # Delete the old objects.
5.3966 - $run $rm $obj $libobj
5.3967 -
5.3968 - # Objects from convenience libraries. This assumes
5.3969 - # single-version convenience libraries. Whenever we create
5.3970 - # different ones for PIC/non-PIC, this we'll have to duplicate
5.3971 - # the extraction.
5.3972 - reload_conv_objs=
5.3973 - gentop=
5.3974 - # reload_cmds runs $LD directly, so let us get rid of
5.3975 - # -Wl from whole_archive_flag_spec
5.3976 - wl=
5.3977 -
5.3978 - if test -n "$convenience"; then
5.3979 - if test -n "$whole_archive_flag_spec"; then
5.3980 - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
5.3981 - else
5.3982 - gentop="$output_objdir/${obj}x"
5.3983 - $show "${rm}r $gentop"
5.3984 - $run ${rm}r "$gentop"
5.3985 - $show "$mkdir $gentop"
5.3986 - $run $mkdir "$gentop"
5.3987 - status=$?
5.3988 - if test "$status" -ne 0 && test ! -d "$gentop"; then
5.3989 - exit $status
5.3990 - fi
5.3991 - generated="$generated $gentop"
5.3992 -
5.3993 - for xlib in $convenience; do
5.3994 - # Extract the objects.
5.3995 - case $xlib in
5.3996 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
5.3997 - *) xabs=`pwd`"/$xlib" ;;
5.3998 - esac
5.3999 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
5.4000 - xdir="$gentop/$xlib"
5.4001 -
5.4002 - $show "${rm}r $xdir"
5.4003 - $run ${rm}r "$xdir"
5.4004 - $show "$mkdir $xdir"
5.4005 - $run $mkdir "$xdir"
5.4006 - status=$?
5.4007 - if test "$status" -ne 0 && test ! -d "$xdir"; then
5.4008 - exit $status
5.4009 - fi
5.4010 - # We will extract separately just the conflicting names and we will no
5.4011 - # longer touch any unique names. It is faster to leave these extract
5.4012 - # automatically by $AR in one run.
5.4013 - $show "(cd $xdir && $AR x $xabs)"
5.4014 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
5.4015 - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
5.4016 - :
5.4017 - else
5.4018 - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
5.4019 - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
5.4020 - $AR t "$xabs" | sort | uniq -cd | while read -r count name
5.4021 - do
5.4022 - i=1
5.4023 - while test "$i" -le "$count"
5.4024 - do
5.4025 - # Put our $i before any first dot (extension)
5.4026 - # Never overwrite any file
5.4027 - name_to="$name"
5.4028 - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
5.4029 - do
5.4030 - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
5.4031 - done
5.4032 - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
5.4033 - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
5.4034 - i=`expr $i + 1`
5.4035 - done
5.4036 - done
5.4037 - fi
5.4038 -
5.4039 - reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
5.4040 - done
5.4041 - fi
5.4042 - fi
5.4043 -
5.4044 - # Create the old-style object.
5.4045 - reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
5.4046 -
5.4047 - output="$obj"
5.4048 - cmds=$reload_cmds
5.4049 - save_ifs="$IFS"; IFS='~'
5.4050 - for cmd in $cmds; do
5.4051 - IFS="$save_ifs"
5.4052 - eval cmd=\"$cmd\"
5.4053 - $show "$cmd"
5.4054 - $run eval "$cmd" || exit $?
5.4055 - done
5.4056 - IFS="$save_ifs"
5.4057 -
5.4058 - # Exit if we aren't doing a library object file.
5.4059 - if test -z "$libobj"; then
5.4060 - if test -n "$gentop"; then
5.4061 - $show "${rm}r $gentop"
5.4062 - $run ${rm}r $gentop
5.4063 - fi
5.4064 -
5.4065 - exit $EXIT_SUCCESS
5.4066 - fi
5.4067 -
5.4068 - if test "$build_libtool_libs" != yes; then
5.4069 - if test -n "$gentop"; then
5.4070 - $show "${rm}r $gentop"
5.4071 - $run ${rm}r $gentop
5.4072 - fi
5.4073 -
5.4074 - # Create an invalid libtool object if no PIC, so that we don't
5.4075 - # accidentally link it into a program.
5.4076 - # $show "echo timestamp > $libobj"
5.4077 - # $run eval "echo timestamp > $libobj" || exit $?
5.4078 - exit $EXIT_SUCCESS
5.4079 - fi
5.4080 -
5.4081 - if test -n "$pic_flag" || test "$pic_mode" != default; then
5.4082 - # Only do commands if we really have different PIC objects.
5.4083 - reload_objs="$libobjs $reload_conv_objs"
5.4084 - output="$libobj"
5.4085 - cmds=$reload_cmds
5.4086 - save_ifs="$IFS"; IFS='~'
5.4087 - for cmd in $cmds; do
5.4088 - IFS="$save_ifs"
5.4089 - eval cmd=\"$cmd\"
5.4090 - $show "$cmd"
5.4091 - $run eval "$cmd" || exit $?
5.4092 - done
5.4093 - IFS="$save_ifs"
5.4094 - fi
5.4095 -
5.4096 - if test -n "$gentop"; then
5.4097 - $show "${rm}r $gentop"
5.4098 - $run ${rm}r $gentop
5.4099 - fi
5.4100 -
5.4101 - exit $EXIT_SUCCESS
5.4102 - ;;
5.4103 -
5.4104 - prog)
5.4105 - case $host in
5.4106 - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
5.4107 - esac
5.4108 - if test -n "$vinfo"; then
5.4109 - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
5.4110 - fi
5.4111 -
5.4112 - if test -n "$release"; then
5.4113 - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
5.4114 - fi
5.4115 -
5.4116 - if test "$preload" = yes; then
5.4117 - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
5.4118 - test "$dlopen_self_static" = unknown; then
5.4119 - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
5.4120 - fi
5.4121 - fi
5.4122 -
5.4123 - case $host in
5.4124 - *-*-rhapsody* | *-*-darwin1.[012])
5.4125 - # On Rhapsody replace the C library is the System framework
5.4126 - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
5.4127 - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
5.4128 - ;;
5.4129 - esac
5.4130 -
5.4131 - case $host in
5.4132 - *darwin*)
5.4133 - # Don't allow lazy linking, it breaks C++ global constructors
5.4134 - if test "$tagname" = CXX ; then
5.4135 - compile_command="$compile_command ${wl}-bind_at_load"
5.4136 - finalize_command="$finalize_command ${wl}-bind_at_load"
5.4137 - fi
5.4138 - ;;
5.4139 - esac
5.4140 -
5.4141 - compile_command="$compile_command $compile_deplibs"
5.4142 - finalize_command="$finalize_command $finalize_deplibs"
5.4143 -
5.4144 - if test -n "$rpath$xrpath"; then
5.4145 - # If the user specified any rpath flags, then add them.
5.4146 - for libdir in $rpath $xrpath; do
5.4147 - # This is the magic to use -rpath.
5.4148 - case "$finalize_rpath " in
5.4149 - *" $libdir "*) ;;
5.4150 - *) finalize_rpath="$finalize_rpath $libdir" ;;
5.4151 - esac
5.4152 - done
5.4153 - fi
5.4154 -
5.4155 - # Now hardcode the library paths
5.4156 - rpath=
5.4157 - hardcode_libdirs=
5.4158 - for libdir in $compile_rpath $finalize_rpath; do
5.4159 - if test -n "$hardcode_libdir_flag_spec"; then
5.4160 - if test -n "$hardcode_libdir_separator"; then
5.4161 - if test -z "$hardcode_libdirs"; then
5.4162 - hardcode_libdirs="$libdir"
5.4163 - else
5.4164 - # Just accumulate the unique libdirs.
5.4165 - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
5.4166 - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
5.4167 - ;;
5.4168 - *)
5.4169 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
5.4170 - ;;
5.4171 - esac
5.4172 - fi
5.4173 - else
5.4174 - eval flag=\"$hardcode_libdir_flag_spec\"
5.4175 - rpath="$rpath $flag"
5.4176 - fi
5.4177 - elif test -n "$runpath_var"; then
5.4178 - case "$perm_rpath " in
5.4179 - *" $libdir "*) ;;
5.4180 - *) perm_rpath="$perm_rpath $libdir" ;;
5.4181 - esac
5.4182 - fi
5.4183 - case $host in
5.4184 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
5.4185 - case :$dllsearchpath: in
5.4186 - *":$libdir:"*) ;;
5.4187 - *) dllsearchpath="$dllsearchpath:$libdir";;
5.4188 - esac
5.4189 - ;;
5.4190 - esac
5.4191 - done
5.4192 - # Substitute the hardcoded libdirs into the rpath.
5.4193 - if test -n "$hardcode_libdir_separator" &&
5.4194 - test -n "$hardcode_libdirs"; then
5.4195 - libdir="$hardcode_libdirs"
5.4196 - eval rpath=\" $hardcode_libdir_flag_spec\"
5.4197 - fi
5.4198 - compile_rpath="$rpath"
5.4199 -
5.4200 - rpath=
5.4201 - hardcode_libdirs=
5.4202 - for libdir in $finalize_rpath; do
5.4203 - if test -n "$hardcode_libdir_flag_spec"; then
5.4204 - if test -n "$hardcode_libdir_separator"; then
5.4205 - if test -z "$hardcode_libdirs"; then
5.4206 - hardcode_libdirs="$libdir"
5.4207 - else
5.4208 - # Just accumulate the unique libdirs.
5.4209 - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
5.4210 - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
5.4211 - ;;
5.4212 - *)
5.4213 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
5.4214 - ;;
5.4215 - esac
5.4216 - fi
5.4217 - else
5.4218 - eval flag=\"$hardcode_libdir_flag_spec\"
5.4219 - rpath="$rpath $flag"
5.4220 - fi
5.4221 - elif test -n "$runpath_var"; then
5.4222 - case "$finalize_perm_rpath " in
5.4223 - *" $libdir "*) ;;
5.4224 - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
5.4225 - esac
5.4226 - fi
5.4227 - done
5.4228 - # Substitute the hardcoded libdirs into the rpath.
5.4229 - if test -n "$hardcode_libdir_separator" &&
5.4230 - test -n "$hardcode_libdirs"; then
5.4231 - libdir="$hardcode_libdirs"
5.4232 - eval rpath=\" $hardcode_libdir_flag_spec\"
5.4233 - fi
5.4234 - finalize_rpath="$rpath"
5.4235 -
5.4236 - if test -n "$libobjs" && test "$build_old_libs" = yes; then
5.4237 - # Transform all the library objects into standard objects.
5.4238 - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
5.4239 - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
5.4240 - fi
5.4241 -
5.4242 - dlsyms=
5.4243 - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
5.4244 - if test -n "$NM" && test -n "$global_symbol_pipe"; then
5.4245 - dlsyms="${outputname}S.c"
5.4246 - else
5.4247 - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
5.4248 - fi
5.4249 - fi
5.4250 -
5.4251 - if test -n "$dlsyms"; then
5.4252 - case $dlsyms in
5.4253 - "") ;;
5.4254 - *.c)
5.4255 - # Discover the nlist of each of the dlfiles.
5.4256 - nlist="$output_objdir/${outputname}.nm"
5.4257 -
5.4258 - $show "$rm $nlist ${nlist}S ${nlist}T"
5.4259 - $run $rm "$nlist" "${nlist}S" "${nlist}T"
5.4260 -
5.4261 - # Parse the name list into a source file.
5.4262 - $show "creating $output_objdir/$dlsyms"
5.4263 -
5.4264 - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
5.4265 -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
5.4266 -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
5.4267 -
5.4268 -#ifdef __cplusplus
5.4269 -extern \"C\" {
5.4270 -#endif
5.4271 -
5.4272 -/* Prevent the only kind of declaration conflicts we can make. */
5.4273 -#define lt_preloaded_symbols some_other_symbol
5.4274 -
5.4275 -/* External symbol declarations for the compiler. */\
5.4276 -"
5.4277 -
5.4278 - if test "$dlself" = yes; then
5.4279 - $show "generating symbol list for \`$output'"
5.4280 -
5.4281 - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
5.4282 -
5.4283 - # Add our own program objects to the symbol list.
5.4284 - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
5.4285 - for arg in $progfiles; do
5.4286 - $show "extracting global C symbols from \`$arg'"
5.4287 - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
5.4288 - done
5.4289 -
5.4290 - if test -n "$exclude_expsyms"; then
5.4291 - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
5.4292 - $run eval '$mv "$nlist"T "$nlist"'
5.4293 - fi
5.4294 -
5.4295 - if test -n "$export_symbols_regex"; then
5.4296 - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
5.4297 - $run eval '$mv "$nlist"T "$nlist"'
5.4298 - fi
5.4299 -
5.4300 - # Prepare the list of exported symbols
5.4301 - if test -z "$export_symbols"; then
5.4302 - export_symbols="$output_objdir/$output.exp"
5.4303 - $run $rm $export_symbols
5.4304 - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
5.4305 - else
5.4306 - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
5.4307 - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
5.4308 - $run eval 'mv "$nlist"T "$nlist"'
5.4309 - fi
5.4310 - fi
5.4311 -
5.4312 - for arg in $dlprefiles; do
5.4313 - $show "extracting global C symbols from \`$arg'"
5.4314 - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
5.4315 - $run eval '$echo ": $name " >> "$nlist"'
5.4316 - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
5.4317 - done
5.4318 -
5.4319 - if test -z "$run"; then
5.4320 - # Make sure we have at least an empty file.
5.4321 - test -f "$nlist" || : > "$nlist"
5.4322 -
5.4323 - if test -n "$exclude_expsyms"; then
5.4324 - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
5.4325 - $mv "$nlist"T "$nlist"
5.4326 - fi
5.4327 -
5.4328 - # Try sorting and uniquifying the output.
5.4329 - if grep -v "^: " < "$nlist" |
5.4330 - if sort -k 3 </dev/null >/dev/null 2>&1; then
5.4331 - sort -k 3
5.4332 - else
5.4333 - sort +2
5.4334 - fi |
5.4335 - uniq > "$nlist"S; then
5.4336 - :
5.4337 - else
5.4338 - grep -v "^: " < "$nlist" > "$nlist"S
5.4339 - fi
5.4340 -
5.4341 - if test -f "$nlist"S; then
5.4342 - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
5.4343 - else
5.4344 - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
5.4345 - fi
5.4346 -
5.4347 - $echo >> "$output_objdir/$dlsyms" "\
5.4348 -
5.4349 -#undef lt_preloaded_symbols
5.4350 -
5.4351 -#if defined (__STDC__) && __STDC__
5.4352 -# define lt_ptr void *
5.4353 -#else
5.4354 -# define lt_ptr char *
5.4355 -# define const
5.4356 -#endif
5.4357 -
5.4358 -/* The mapping between symbol names and symbols. */
5.4359 -const struct {
5.4360 - const char *name;
5.4361 - lt_ptr address;
5.4362 -}
5.4363 -lt_preloaded_symbols[] =
5.4364 -{\
5.4365 -"
5.4366 -
5.4367 - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
5.4368 -
5.4369 - $echo >> "$output_objdir/$dlsyms" "\
5.4370 - {0, (lt_ptr) 0}
5.4371 -};
5.4372 -
5.4373 -/* This works around a problem in FreeBSD linker */
5.4374 -#ifdef FREEBSD_WORKAROUND
5.4375 -static const void *lt_preloaded_setup() {
5.4376 - return lt_preloaded_symbols;
5.4377 -}
5.4378 -#endif
5.4379 -
5.4380 -#ifdef __cplusplus
5.4381 -}
5.4382 -#endif\
5.4383 -"
5.4384 - fi
5.4385 -
5.4386 - pic_flag_for_symtable=
5.4387 - case $host in
5.4388 - # compiling the symbol table file with pic_flag works around
5.4389 - # a FreeBSD bug that causes programs to crash when -lm is
5.4390 - # linked before any other PIC object. But we must not use
5.4391 - # pic_flag when linking with -static. The problem exists in
5.4392 - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
5.4393 - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
5.4394 - case "$compile_command " in
5.4395 - *" -static "*) ;;
5.4396 - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
5.4397 - esac;;
5.4398 - *-*-hpux*)
5.4399 - case "$compile_command " in
5.4400 - *" -static "*) ;;
5.4401 - *) pic_flag_for_symtable=" $pic_flag";;
5.4402 - esac
5.4403 - esac
5.4404 -
5.4405 - # Now compile the dynamic symbol file.
5.4406 - $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
5.4407 - $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
5.4408 -
5.4409 - # Clean up the generated files.
5.4410 - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
5.4411 - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
5.4412 -
5.4413 - # Transform the symbol file into the correct name.
5.4414 - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
5.4415 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
5.4416 - ;;
5.4417 - *)
5.4418 - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
5.4419 - exit $EXIT_FAILURE
5.4420 - ;;
5.4421 - esac
5.4422 - else
5.4423 - # We keep going just in case the user didn't refer to
5.4424 - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
5.4425 - # really was required.
5.4426 -
5.4427 - # Nullify the symbol file.
5.4428 - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
5.4429 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
5.4430 - fi
5.4431 -
5.4432 - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
5.4433 - # Replace the output file specification.
5.4434 - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
5.4435 - link_command="$compile_command$compile_rpath"
5.4436 -
5.4437 - # We have no uninstalled library dependencies, so finalize right now.
5.4438 - $show "$link_command"
5.4439 - $run eval "$link_command"
5.4440 - status=$?
5.4441 -
5.4442 - # Delete the generated files.
5.4443 - if test -n "$dlsyms"; then
5.4444 - $show "$rm $output_objdir/${outputname}S.${objext}"
5.4445 - $run $rm "$output_objdir/${outputname}S.${objext}"
5.4446 - fi
5.4447 -
5.4448 - exit $status
5.4449 - fi
5.4450 -
5.4451 - if test -n "$shlibpath_var"; then
5.4452 - # We should set the shlibpath_var
5.4453 - rpath=
5.4454 - for dir in $temp_rpath; do
5.4455 - case $dir in
5.4456 - [\\/]* | [A-Za-z]:[\\/]*)
5.4457 - # Absolute path.
5.4458 - rpath="$rpath$dir:"
5.4459 - ;;
5.4460 - *)
5.4461 - # Relative path: add a thisdir entry.
5.4462 - rpath="$rpath\$thisdir/$dir:"
5.4463 - ;;
5.4464 - esac
5.4465 - done
5.4466 - temp_rpath="$rpath"
5.4467 - fi
5.4468 -
5.4469 - if test -n "$compile_shlibpath$finalize_shlibpath"; then
5.4470 - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
5.4471 - fi
5.4472 - if test -n "$finalize_shlibpath"; then
5.4473 - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
5.4474 - fi
5.4475 -
5.4476 - compile_var=
5.4477 - finalize_var=
5.4478 - if test -n "$runpath_var"; then
5.4479 - if test -n "$perm_rpath"; then
5.4480 - # We should set the runpath_var.
5.4481 - rpath=
5.4482 - for dir in $perm_rpath; do
5.4483 - rpath="$rpath$dir:"
5.4484 - done
5.4485 - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
5.4486 - fi
5.4487 - if test -n "$finalize_perm_rpath"; then
5.4488 - # We should set the runpath_var.
5.4489 - rpath=
5.4490 - for dir in $finalize_perm_rpath; do
5.4491 - rpath="$rpath$dir:"
5.4492 - done
5.4493 - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
5.4494 - fi
5.4495 - fi
5.4496 -
5.4497 - if test "$no_install" = yes; then
5.4498 - # We don't need to create a wrapper script.
5.4499 - link_command="$compile_var$compile_command$compile_rpath"
5.4500 - # Replace the output file specification.
5.4501 - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
5.4502 - # Delete the old output file.
5.4503 - $run $rm $output
5.4504 - # Link the executable and exit
5.4505 - $show "$link_command"
5.4506 - $run eval "$link_command" || exit $?
5.4507 - exit $EXIT_SUCCESS
5.4508 - fi
5.4509 -
5.4510 - if test "$hardcode_action" = relink; then
5.4511 - # Fast installation is not supported
5.4512 - link_command="$compile_var$compile_command$compile_rpath"
5.4513 - relink_command="$finalize_var$finalize_command$finalize_rpath"
5.4514 -
5.4515 - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
5.4516 - $echo "$modename: \`$output' will be relinked during installation" 1>&2
5.4517 - else
5.4518 - if test "$fast_install" != no; then
5.4519 - link_command="$finalize_var$compile_command$finalize_rpath"
5.4520 - if test "$fast_install" = yes; then
5.4521 - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
5.4522 - else
5.4523 - # fast_install is set to needless
5.4524 - relink_command=
5.4525 - fi
5.4526 - else
5.4527 - link_command="$compile_var$compile_command$compile_rpath"
5.4528 - relink_command="$finalize_var$finalize_command$finalize_rpath"
5.4529 - fi
5.4530 - fi
5.4531 -
5.4532 - # Replace the output file specification.
5.4533 - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
5.4534 -
5.4535 - # Delete the old output files.
5.4536 - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
5.4537 -
5.4538 - $show "$link_command"
5.4539 - $run eval "$link_command" || exit $?
5.4540 -
5.4541 - # Now create the wrapper script.
5.4542 - $show "creating $output"
5.4543 -
5.4544 - # Quote the relink command for shipping.
5.4545 - if test -n "$relink_command"; then
5.4546 - # Preserve any variables that may affect compiler behavior
5.4547 - for var in $variables_saved_for_relink; do
5.4548 - if eval test -z \"\${$var+set}\"; then
5.4549 - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
5.4550 - elif eval var_value=\$$var; test -z "$var_value"; then
5.4551 - relink_command="$var=; export $var; $relink_command"
5.4552 - else
5.4553 - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5.4554 - relink_command="$var=\"$var_value\"; export $var; $relink_command"
5.4555 - fi
5.4556 - done
5.4557 - relink_command="(cd `pwd`; $relink_command)"
5.4558 - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
5.4559 - fi
5.4560 -
5.4561 - # Quote $echo for shipping.
5.4562 - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
5.4563 - case $progpath in
5.4564 - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
5.4565 - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
5.4566 - esac
5.4567 - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
5.4568 - else
5.4569 - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
5.4570 - fi
5.4571 -
5.4572 - # Only actually do things if our run command is non-null.
5.4573 - if test -z "$run"; then
5.4574 - # win32 will think the script is a binary if it has
5.4575 - # a .exe suffix, so we strip it off here.
5.4576 - case $output in
5.4577 - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
5.4578 - esac
5.4579 - # test for cygwin because mv fails w/o .exe extensions
5.4580 - case $host in
5.4581 - *cygwin*)
5.4582 - exeext=.exe
5.4583 - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
5.4584 - *) exeext= ;;
5.4585 - esac
5.4586 - case $host in
5.4587 - *cygwin* | *mingw* )
5.4588 - cwrappersource=`$echo ${objdir}/lt-${output}.c`
5.4589 - cwrapper=`$echo ${output}.exe`
5.4590 - $rm $cwrappersource $cwrapper
5.4591 - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
5.4592 -
5.4593 - cat > $cwrappersource <<EOF
5.4594 -
5.4595 -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5.4596 - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5.4597 -
5.4598 - The $output program cannot be directly executed until all the libtool
5.4599 - libraries that it depends on are installed.
5.4600 -
5.4601 - This wrapper executable should never be moved out of the build directory.
5.4602 - If it is, it will not operate correctly.
5.4603 -
5.4604 - Currently, it simply execs the wrapper *script* "/bin/sh $output",
5.4605 - but could eventually absorb all of the scripts functionality and
5.4606 - exec $objdir/$outputname directly.
5.4607 -*/
5.4608 -EOF
5.4609 - cat >> $cwrappersource<<"EOF"
5.4610 -#include <stdio.h>
5.4611 -#include <stdlib.h>
5.4612 -#include <unistd.h>
5.4613 -#include <malloc.h>
5.4614 -#include <stdarg.h>
5.4615 -#include <assert.h>
5.4616 -
5.4617 -#if defined(PATH_MAX)
5.4618 -# define LT_PATHMAX PATH_MAX
5.4619 -#elif defined(MAXPATHLEN)
5.4620 -# define LT_PATHMAX MAXPATHLEN
5.4621 -#else
5.4622 -# define LT_PATHMAX 1024
5.4623 -#endif
5.4624 -
5.4625 -#ifndef DIR_SEPARATOR
5.4626 -#define DIR_SEPARATOR '/'
5.4627 -#endif
5.4628 -
5.4629 -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
5.4630 - defined (__OS2__)
5.4631 -#define HAVE_DOS_BASED_FILE_SYSTEM
5.4632 -#ifndef DIR_SEPARATOR_2
5.4633 -#define DIR_SEPARATOR_2 '\\'
5.4634 -#endif
5.4635 -#endif
5.4636 -
5.4637 -#ifndef DIR_SEPARATOR_2
5.4638 -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
5.4639 -#else /* DIR_SEPARATOR_2 */
5.4640 -# define IS_DIR_SEPARATOR(ch) \
5.4641 - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
5.4642 -#endif /* DIR_SEPARATOR_2 */
5.4643 -
5.4644 -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5.4645 -#define XFREE(stale) do { \
5.4646 - if (stale) { free ((void *) stale); stale = 0; } \
5.4647 -} while (0)
5.4648 -
5.4649 -const char *program_name = NULL;
5.4650 -
5.4651 -void * xmalloc (size_t num);
5.4652 -char * xstrdup (const char *string);
5.4653 -char * basename (const char *name);
5.4654 -char * fnqualify(const char *path);
5.4655 -char * strendzap(char *str, const char *pat);
5.4656 -void lt_fatal (const char *message, ...);
5.4657 -
5.4658 -int
5.4659 -main (int argc, char *argv[])
5.4660 -{
5.4661 - char **newargz;
5.4662 - int i;
5.4663 -
5.4664 - program_name = (char *) xstrdup ((char *) basename (argv[0]));
5.4665 - newargz = XMALLOC(char *, argc+2);
5.4666 -EOF
5.4667 -
5.4668 - cat >> $cwrappersource <<EOF
5.4669 - newargz[0] = "$SHELL";
5.4670 -EOF
5.4671 -
5.4672 - cat >> $cwrappersource <<"EOF"
5.4673 - newargz[1] = fnqualify(argv[0]);
5.4674 - /* we know the script has the same name, without the .exe */
5.4675 - /* so make sure newargz[1] doesn't end in .exe */
5.4676 - strendzap(newargz[1],".exe");
5.4677 - for (i = 1; i < argc; i++)
5.4678 - newargz[i+1] = xstrdup(argv[i]);
5.4679 - newargz[argc+1] = NULL;
5.4680 -EOF
5.4681 -
5.4682 - cat >> $cwrappersource <<EOF
5.4683 - execv("$SHELL",newargz);
5.4684 -EOF
5.4685 -
5.4686 - cat >> $cwrappersource <<"EOF"
5.4687 -}
5.4688 -
5.4689 -void *
5.4690 -xmalloc (size_t num)
5.4691 -{
5.4692 - void * p = (void *) malloc (num);
5.4693 - if (!p)
5.4694 - lt_fatal ("Memory exhausted");
5.4695 -
5.4696 - return p;
5.4697 -}
5.4698 -
5.4699 -char *
5.4700 -xstrdup (const char *string)
5.4701 -{
5.4702 - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5.4703 -;
5.4704 -}
5.4705 -
5.4706 -char *
5.4707 -basename (const char *name)
5.4708 -{
5.4709 - const char *base;
5.4710 -
5.4711 -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5.4712 - /* Skip over the disk name in MSDOS pathnames. */
5.4713 - if (isalpha (name[0]) && name[1] == ':')
5.4714 - name += 2;
5.4715 -#endif
5.4716 -
5.4717 - for (base = name; *name; name++)
5.4718 - if (IS_DIR_SEPARATOR (*name))
5.4719 - base = name + 1;
5.4720 - return (char *) base;
5.4721 -}
5.4722 -
5.4723 -char *
5.4724 -fnqualify(const char *path)
5.4725 -{
5.4726 - size_t size;
5.4727 - char *p;
5.4728 - char tmp[LT_PATHMAX + 1];
5.4729 -
5.4730 - assert(path != NULL);
5.4731 -
5.4732 - /* Is it qualified already? */
5.4733 -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5.4734 - if (isalpha (path[0]) && path[1] == ':')
5.4735 - return xstrdup (path);
5.4736 -#endif
5.4737 - if (IS_DIR_SEPARATOR (path[0]))
5.4738 - return xstrdup (path);
5.4739 -
5.4740 - /* prepend the current directory */
5.4741 - /* doesn't handle '~' */
5.4742 - if (getcwd (tmp, LT_PATHMAX) == NULL)
5.4743 - lt_fatal ("getcwd failed");
5.4744 - size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
5.4745 - p = XMALLOC(char, size);
5.4746 - sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
5.4747 - return p;
5.4748 -}
5.4749 -
5.4750 -char *
5.4751 -strendzap(char *str, const char *pat)
5.4752 -{
5.4753 - size_t len, patlen;
5.4754 -
5.4755 - assert(str != NULL);
5.4756 - assert(pat != NULL);
5.4757 -
5.4758 - len = strlen(str);
5.4759 - patlen = strlen(pat);
5.4760 -
5.4761 - if (patlen <= len)
5.4762 - {
5.4763 - str += len - patlen;
5.4764 - if (strcmp(str, pat) == 0)
5.4765 - *str = '\0';
5.4766 - }
5.4767 - return str;
5.4768 -}
5.4769 -
5.4770 -static void
5.4771 -lt_error_core (int exit_status, const char * mode,
5.4772 - const char * message, va_list ap)
5.4773 -{
5.4774 - fprintf (stderr, "%s: %s: ", program_name, mode);
5.4775 - vfprintf (stderr, message, ap);
5.4776 - fprintf (stderr, ".\n");
5.4777 -
5.4778 - if (exit_status >= 0)
5.4779 - exit (exit_status);
5.4780 -}
5.4781 -
5.4782 -void
5.4783 -lt_fatal (const char *message, ...)
5.4784 -{
5.4785 - va_list ap;
5.4786 - va_start (ap, message);
5.4787 - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5.4788 - va_end (ap);
5.4789 -}
5.4790 -EOF
5.4791 - # we should really use a build-platform specific compiler
5.4792 - # here, but OTOH, the wrappers (shell script and this C one)
5.4793 - # are only useful if you want to execute the "real" binary.
5.4794 - # Since the "real" binary is built for $host, then this
5.4795 - # wrapper might as well be built for $host, too.
5.4796 - $run $LTCC -s -o $cwrapper $cwrappersource
5.4797 - ;;
5.4798 - esac
5.4799 - $rm $output
5.4800 - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5.4801 -
5.4802 - $echo > $output "\
5.4803 -#! $SHELL
5.4804 -
5.4805 -# $output - temporary wrapper script for $objdir/$outputname
5.4806 -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5.4807 -#
5.4808 -# The $output program cannot be directly executed until all the libtool
5.4809 -# libraries that it depends on are installed.
5.4810 -#
5.4811 -# This wrapper script should never be moved out of the build directory.
5.4812 -# If it is, it will not operate correctly.
5.4813 -
5.4814 -# Sed substitution that helps us do robust quoting. It backslashifies
5.4815 -# metacharacters that are still active within double-quoted strings.
5.4816 -Xsed='${SED} -e 1s/^X//'
5.4817 -sed_quote_subst='$sed_quote_subst'
5.4818 -
5.4819 -# The HP-UX ksh and POSIX shell print the target directory to stdout
5.4820 -# if CDPATH is set.
5.4821 -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
5.4822 -
5.4823 -relink_command=\"$relink_command\"
5.4824 -
5.4825 -# This environment variable determines our operation mode.
5.4826 -if test \"\$libtool_install_magic\" = \"$magic\"; then
5.4827 - # install mode needs the following variable:
5.4828 - notinst_deplibs='$notinst_deplibs'
5.4829 -else
5.4830 - # When we are sourced in execute mode, \$file and \$echo are already set.
5.4831 - if test \"\$libtool_execute_magic\" != \"$magic\"; then
5.4832 - echo=\"$qecho\"
5.4833 - file=\"\$0\"
5.4834 - # Make sure echo works.
5.4835 - if test \"X\$1\" = X--no-reexec; then
5.4836 - # Discard the --no-reexec flag, and continue.
5.4837 - shift
5.4838 - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
5.4839 - # Yippee, \$echo works!
5.4840 - :
5.4841 - else
5.4842 - # Restart under the correct shell, and then maybe \$echo will work.
5.4843 - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5.4844 - fi
5.4845 - fi\
5.4846 -"
5.4847 - $echo >> $output "\
5.4848 -
5.4849 - # Find the directory that this script lives in.
5.4850 - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
5.4851 - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5.4852 -
5.4853 - # Follow symbolic links until we get to the real thisdir.
5.4854 - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
5.4855 - while test -n \"\$file\"; do
5.4856 - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
5.4857 -
5.4858 - # If there was a directory component, then change thisdir.
5.4859 - if test \"x\$destdir\" != \"x\$file\"; then
5.4860 - case \"\$destdir\" in
5.4861 - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5.4862 - *) thisdir=\"\$thisdir/\$destdir\" ;;
5.4863 - esac
5.4864 - fi
5.4865 -
5.4866 - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
5.4867 - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
5.4868 - done
5.4869 -
5.4870 - # Try to get the absolute directory name.
5.4871 - absdir=\`cd \"\$thisdir\" && pwd\`
5.4872 - test -n \"\$absdir\" && thisdir=\"\$absdir\"
5.4873 -"
5.4874 -
5.4875 - if test "$fast_install" = yes; then
5.4876 - $echo >> $output "\
5.4877 - program=lt-'$outputname'$exeext
5.4878 - progdir=\"\$thisdir/$objdir\"
5.4879 -
5.4880 - if test ! -f \"\$progdir/\$program\" || \\
5.4881 - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5.4882 - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5.4883 -
5.4884 - file=\"\$\$-\$program\"
5.4885 -
5.4886 - if test ! -d \"\$progdir\"; then
5.4887 - $mkdir \"\$progdir\"
5.4888 - else
5.4889 - $rm \"\$progdir/\$file\"
5.4890 - fi"
5.4891 -
5.4892 - $echo >> $output "\
5.4893 -
5.4894 - # relink executable if necessary
5.4895 - if test -n \"\$relink_command\"; then
5.4896 - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5.4897 - else
5.4898 - $echo \"\$relink_command_output\" >&2
5.4899 - $rm \"\$progdir/\$file\"
5.4900 - exit $EXIT_FAILURE
5.4901 - fi
5.4902 - fi
5.4903 -
5.4904 - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5.4905 - { $rm \"\$progdir/\$program\";
5.4906 - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5.4907 - $rm \"\$progdir/\$file\"
5.4908 - fi"
5.4909 - else
5.4910 - $echo >> $output "\
5.4911 - program='$outputname'
5.4912 - progdir=\"\$thisdir/$objdir\"
5.4913 -"
5.4914 - fi
5.4915 -
5.4916 - $echo >> $output "\
5.4917 -
5.4918 - if test -f \"\$progdir/\$program\"; then"
5.4919 -
5.4920 - # Export our shlibpath_var if we have one.
5.4921 - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5.4922 - $echo >> $output "\
5.4923 - # Add our own library path to $shlibpath_var
5.4924 - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5.4925 -
5.4926 - # Some systems cannot cope with colon-terminated $shlibpath_var
5.4927 - # The second colon is a workaround for a bug in BeOS R4 sed
5.4928 - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
5.4929 -
5.4930 - export $shlibpath_var
5.4931 -"
5.4932 - fi
5.4933 -
5.4934 - # fixup the dll searchpath if we need to.
5.4935 - if test -n "$dllsearchpath"; then
5.4936 - $echo >> $output "\
5.4937 - # Add the dll search path components to the executable PATH
5.4938 - PATH=$dllsearchpath:\$PATH
5.4939 -"
5.4940 - fi
5.4941 -
5.4942 - $echo >> $output "\
5.4943 - if test \"\$libtool_execute_magic\" != \"$magic\"; then
5.4944 - # Run the actual program with our arguments.
5.4945 -"
5.4946 - case $host in
5.4947 - # Backslashes separate directories on plain windows
5.4948 - *-*-mingw | *-*-os2*)
5.4949 - $echo >> $output "\
5.4950 - exec \$progdir\\\\\$program \${1+\"\$@\"}
5.4951 -"
5.4952 - ;;
5.4953 -
5.4954 - *)
5.4955 - $echo >> $output "\
5.4956 - exec \$progdir/\$program \${1+\"\$@\"}
5.4957 -"
5.4958 - ;;
5.4959 - esac
5.4960 - $echo >> $output "\
5.4961 - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
5.4962 - exit $EXIT_FAILURE
5.4963 - fi
5.4964 - else
5.4965 - # The program doesn't exist.
5.4966 - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
5.4967 - \$echo \"This script is just a wrapper for \$program.\" 1>&2
5.4968 - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5.4969 - exit $EXIT_FAILURE
5.4970 - fi
5.4971 -fi\
5.4972 -"
5.4973 - chmod +x $output
5.4974 - fi
5.4975 - exit $EXIT_SUCCESS
5.4976 - ;;
5.4977 - esac
5.4978 -
5.4979 - # See if we need to build an old-fashioned archive.
5.4980 - for oldlib in $oldlibs; do
5.4981 -
5.4982 - if test "$build_libtool_libs" = convenience; then
5.4983 - oldobjs="$libobjs_save"
5.4984 - addlibs="$convenience"
5.4985 - build_libtool_libs=no
5.4986 - else
5.4987 - if test "$build_libtool_libs" = module; then
5.4988 - oldobjs="$libobjs_save"
5.4989 - build_libtool_libs=no
5.4990 - else
5.4991 - oldobjs="$old_deplibs $non_pic_objects"
5.4992 - fi
5.4993 - addlibs="$old_convenience"
5.4994 - fi
5.4995 -
5.4996 - if test -n "$addlibs"; then
5.4997 - gentop="$output_objdir/${outputname}x"
5.4998 - $show "${rm}r $gentop"
5.4999 - $run ${rm}r "$gentop"
5.5000 - $show "$mkdir $gentop"
5.5001 - $run $mkdir "$gentop"
5.5002 - status=$?
5.5003 - if test "$status" -ne 0 && test ! -d "$gentop"; then
5.5004 - exit $status
5.5005 - fi
5.5006 - generated="$generated $gentop"
5.5007 -
5.5008 - # Add in members from convenience archives.
5.5009 - for xlib in $addlibs; do
5.5010 - # Extract the objects.
5.5011 - case $xlib in
5.5012 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
5.5013 - *) xabs=`pwd`"/$xlib" ;;
5.5014 - esac
5.5015 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
5.5016 - xdir="$gentop/$xlib"
5.5017 -
5.5018 - $show "${rm}r $xdir"
5.5019 - $run ${rm}r "$xdir"
5.5020 - $show "$mkdir $xdir"
5.5021 - $run $mkdir "$xdir"
5.5022 - status=$?
5.5023 - if test "$status" -ne 0 && test ! -d "$xdir"; then
5.5024 - exit $status
5.5025 - fi
5.5026 - # We will extract separately just the conflicting names and we will no
5.5027 - # longer touch any unique names. It is faster to leave these extract
5.5028 - # automatically by $AR in one run.
5.5029 - $show "(cd $xdir && $AR x $xabs)"
5.5030 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
5.5031 - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
5.5032 - :
5.5033 - else
5.5034 - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
5.5035 - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
5.5036 - $AR t "$xabs" | sort | uniq -cd | while read -r count name
5.5037 - do
5.5038 - i=1
5.5039 - while test "$i" -le "$count"
5.5040 - do
5.5041 - # Put our $i before any first dot (extension)
5.5042 - # Never overwrite any file
5.5043 - name_to="$name"
5.5044 - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
5.5045 - do
5.5046 - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
5.5047 - done
5.5048 - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
5.5049 - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
5.5050 - i=`expr $i + 1`
5.5051 - done
5.5052 - done
5.5053 - fi
5.5054 -
5.5055 - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
5.5056 - done
5.5057 - fi
5.5058 -
5.5059 - # Do each command in the archive commands.
5.5060 - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5.5061 - cmds=$old_archive_from_new_cmds
5.5062 - else
5.5063 - eval cmds=\"$old_archive_cmds\"
5.5064 -
5.5065 - if len=`expr "X$cmds" : ".*"` &&
5.5066 - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5.5067 - cmds=$old_archive_cmds
5.5068 - else
5.5069 - # the command line is too long to link in one step, link in parts
5.5070 - $echo "using piecewise archive linking..."
5.5071 - save_RANLIB=$RANLIB
5.5072 - RANLIB=:
5.5073 - objlist=
5.5074 - concat_cmds=
5.5075 - save_oldobjs=$oldobjs
5.5076 - # GNU ar 2.10+ was changed to match POSIX; thus no paths are
5.5077 - # encoded into archives. This makes 'ar r' malfunction in
5.5078 - # this piecewise linking case whenever conflicting object
5.5079 - # names appear in distinct ar calls; check, warn and compensate.
5.5080 - if (for obj in $save_oldobjs
5.5081 - do
5.5082 - $echo "X$obj" | $Xsed -e 's%^.*/%%'
5.5083 - done | sort | sort -uc >/dev/null 2>&1); then
5.5084 - :
5.5085 - else
5.5086 - $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
5.5087 - $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
5.5088 - AR_FLAGS=cq
5.5089 - fi
5.5090 - # Is there a better way of finding the last object in the list?
5.5091 - for obj in $save_oldobjs
5.5092 - do
5.5093 - last_oldobj=$obj
5.5094 - done
5.5095 - for obj in $save_oldobjs
5.5096 - do
5.5097 - oldobjs="$objlist $obj"
5.5098 - objlist="$objlist $obj"
5.5099 - eval test_cmds=\"$old_archive_cmds\"
5.5100 - if len=`expr "X$test_cmds" : ".*"` &&
5.5101 - test "$len" -le "$max_cmd_len"; then
5.5102 - :
5.5103 - else
5.5104 - # the above command should be used before it gets too long
5.5105 - oldobjs=$objlist
5.5106 - if test "$obj" = "$last_oldobj" ; then
5.5107 - RANLIB=$save_RANLIB
5.5108 - fi
5.5109 - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5.5110 - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5.5111 - objlist=
5.5112 - fi
5.5113 - done
5.5114 - RANLIB=$save_RANLIB
5.5115 - oldobjs=$objlist
5.5116 - if test "X$oldobjs" = "X" ; then
5.5117 - eval cmds=\"\$concat_cmds\"
5.5118 - else
5.5119 - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
5.5120 - fi
5.5121 - fi
5.5122 - fi
5.5123 - save_ifs="$IFS"; IFS='~'
5.5124 - for cmd in $cmds; do
5.5125 - eval cmd=\"$cmd\"
5.5126 - IFS="$save_ifs"
5.5127 - $show "$cmd"
5.5128 - $run eval "$cmd" || exit $?
5.5129 - done
5.5130 - IFS="$save_ifs"
5.5131 - done
5.5132 -
5.5133 - if test -n "$generated"; then
5.5134 - $show "${rm}r$generated"
5.5135 - $run ${rm}r$generated
5.5136 - fi
5.5137 -
5.5138 - # Now create the libtool archive.
5.5139 - case $output in
5.5140 - *.la)
5.5141 - old_library=
5.5142 - test "$build_old_libs" = yes && old_library="$libname.$libext"
5.5143 - $show "creating $output"
5.5144 -
5.5145 - # Preserve any variables that may affect compiler behavior
5.5146 - for var in $variables_saved_for_relink; do
5.5147 - if eval test -z \"\${$var+set}\"; then
5.5148 - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
5.5149 - elif eval var_value=\$$var; test -z "$var_value"; then
5.5150 - relink_command="$var=; export $var; $relink_command"
5.5151 - else
5.5152 - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5.5153 - relink_command="$var=\"$var_value\"; export $var; $relink_command"
5.5154 - fi
5.5155 - done
5.5156 - # Quote the link command for shipping.
5.5157 - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5.5158 - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
5.5159 - if test "$hardcode_automatic" = yes ; then
5.5160 - relink_command=
5.5161 - fi
5.5162 -
5.5163 -
5.5164 - # Only create the output if not a dry run.
5.5165 - if test -z "$run"; then
5.5166 - for installed in no yes; do
5.5167 - if test "$installed" = yes; then
5.5168 - if test -z "$install_libdir"; then
5.5169 - break
5.5170 - fi
5.5171 - output="$output_objdir/$outputname"i
5.5172 - # Replace all uninstalled libtool libraries with the installed ones
5.5173 - newdependency_libs=
5.5174 - for deplib in $dependency_libs; do
5.5175 - case $deplib in
5.5176 - *.la)
5.5177 - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
5.5178 - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5.5179 - if test -z "$libdir"; then
5.5180 - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5.5181 - exit $EXIT_FAILURE
5.5182 - fi
5.5183 - newdependency_libs="$newdependency_libs $libdir/$name"
5.5184 - ;;
5.5185 - *) newdependency_libs="$newdependency_libs $deplib" ;;
5.5186 - esac
5.5187 - done
5.5188 - dependency_libs="$newdependency_libs"
5.5189 - newdlfiles=
5.5190 - for lib in $dlfiles; do
5.5191 - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5.5192 - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5.5193 - if test -z "$libdir"; then
5.5194 - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5.5195 - exit $EXIT_FAILURE
5.5196 - fi
5.5197 - newdlfiles="$newdlfiles $libdir/$name"
5.5198 - done
5.5199 - dlfiles="$newdlfiles"
5.5200 - newdlprefiles=
5.5201 - for lib in $dlprefiles; do
5.5202 - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5.5203 - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5.5204 - if test -z "$libdir"; then
5.5205 - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5.5206 - exit $EXIT_FAILURE
5.5207 - fi
5.5208 - newdlprefiles="$newdlprefiles $libdir/$name"
5.5209 - done
5.5210 - dlprefiles="$newdlprefiles"
5.5211 - else
5.5212 - newdlfiles=
5.5213 - for lib in $dlfiles; do
5.5214 - case $lib in
5.5215 - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5.5216 - *) abs=`pwd`"/$lib" ;;
5.5217 - esac
5.5218 - newdlfiles="$newdlfiles $abs"
5.5219 - done
5.5220 - dlfiles="$newdlfiles"
5.5221 - newdlprefiles=
5.5222 - for lib in $dlprefiles; do
5.5223 - case $lib in
5.5224 - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5.5225 - *) abs=`pwd`"/$lib" ;;
5.5226 - esac
5.5227 - newdlprefiles="$newdlprefiles $abs"
5.5228 - done
5.5229 - dlprefiles="$newdlprefiles"
5.5230 - fi
5.5231 - $rm $output
5.5232 - # place dlname in correct position for cygwin
5.5233 - tdlname=$dlname
5.5234 - case $host,$output,$installed,$module,$dlname in
5.5235 - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5.5236 - esac
5.5237 - $echo > $output "\
5.5238 -# $outputname - a libtool library file
5.5239 -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5.5240 -#
5.5241 -# Please DO NOT delete this file!
5.5242 -# It is necessary for linking the library.
5.5243 -
5.5244 -# The name that we can dlopen(3).
5.5245 -dlname='$tdlname'
5.5246 -
5.5247 -# Names of this library.
5.5248 -library_names='$library_names'
5.5249 -
5.5250 -# The name of the static archive.
5.5251 -old_library='$old_library'
5.5252 -
5.5253 -# Libraries that this one depends upon.
5.5254 -dependency_libs='$dependency_libs'
5.5255 -
5.5256 -# Version information for $libname.
5.5257 -current=$current
5.5258 -age=$age
5.5259 -revision=$revision
5.5260 -
5.5261 -# Is this an already installed library?
5.5262 -installed=$installed
5.5263 -
5.5264 -# Should we warn about portability when linking against -modules?
5.5265 -shouldnotlink=$module
5.5266 -
5.5267 -# Files to dlopen/dlpreopen
5.5268 -dlopen='$dlfiles'
5.5269 -dlpreopen='$dlprefiles'
5.5270 -
5.5271 -# Directory that this library needs to be installed in:
5.5272 -libdir='$install_libdir'"
5.5273 - if test "$installed" = no && test "$need_relink" = yes; then
5.5274 - $echo >> $output "\
5.5275 -relink_command=\"$relink_command\""
5.5276 - fi
5.5277 - done
5.5278 - fi
5.5279 -
5.5280 - # Do a symbolic link so that the libtool archive can be found in
5.5281 - # LD_LIBRARY_PATH before the program is installed.
5.5282 - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5.5283 - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
5.5284 - ;;
5.5285 - esac
5.5286 - exit $EXIT_SUCCESS
5.5287 - ;;
5.5288 -
5.5289 - # libtool install mode
5.5290 - install)
5.5291 - modename="$modename: install"
5.5292 -
5.5293 - # There may be an optional sh(1) argument at the beginning of
5.5294 - # install_prog (especially on Windows NT).
5.5295 - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5.5296 - # Allow the use of GNU shtool's install command.
5.5297 - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
5.5298 - # Aesthetically quote it.
5.5299 - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5.5300 - case $arg in
5.5301 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
5.5302 - arg="\"$arg\""
5.5303 - ;;
5.5304 - esac
5.5305 - install_prog="$arg "
5.5306 - arg="$1"
5.5307 - shift
5.5308 - else
5.5309 - install_prog=
5.5310 - arg="$nonopt"
5.5311 - fi
5.5312 -
5.5313 - # The real first argument should be the name of the installation program.
5.5314 - # Aesthetically quote it.
5.5315 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5.5316 - case $arg in
5.5317 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
5.5318 - arg="\"$arg\""
5.5319 - ;;
5.5320 - esac
5.5321 - install_prog="$install_prog$arg"
5.5322 -
5.5323 - # We need to accept at least all the BSD install flags.
5.5324 - dest=
5.5325 - files=
5.5326 - opts=
5.5327 - prev=
5.5328 - install_type=
5.5329 - isdir=no
5.5330 - stripme=
5.5331 - for arg
5.5332 - do
5.5333 - if test -n "$dest"; then
5.5334 - files="$files $dest"
5.5335 - dest="$arg"
5.5336 - continue
5.5337 - fi
5.5338 -
5.5339 - case $arg in
5.5340 - -d) isdir=yes ;;
5.5341 - -f) prev="-f" ;;
5.5342 - -g) prev="-g" ;;
5.5343 - -m) prev="-m" ;;
5.5344 - -o) prev="-o" ;;
5.5345 - -s)
5.5346 - stripme=" -s"
5.5347 - continue
5.5348 - ;;
5.5349 - -*) ;;
5.5350 -
5.5351 - *)
5.5352 - # If the previous option needed an argument, then skip it.
5.5353 - if test -n "$prev"; then
5.5354 - prev=
5.5355 - else
5.5356 - dest="$arg"
5.5357 - continue
5.5358 - fi
5.5359 - ;;
5.5360 - esac
5.5361 -
5.5362 - # Aesthetically quote the argument.
5.5363 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5.5364 - case $arg in
5.5365 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
5.5366 - arg="\"$arg\""
5.5367 - ;;
5.5368 - esac
5.5369 - install_prog="$install_prog $arg"
5.5370 - done
5.5371 -
5.5372 - if test -z "$install_prog"; then
5.5373 - $echo "$modename: you must specify an install program" 1>&2
5.5374 - $echo "$help" 1>&2
5.5375 - exit $EXIT_FAILURE
5.5376 - fi
5.5377 -
5.5378 - if test -n "$prev"; then
5.5379 - $echo "$modename: the \`$prev' option requires an argument" 1>&2
5.5380 - $echo "$help" 1>&2
5.5381 - exit $EXIT_FAILURE
5.5382 - fi
5.5383 -
5.5384 - if test -z "$files"; then
5.5385 - if test -z "$dest"; then
5.5386 - $echo "$modename: no file or destination specified" 1>&2
5.5387 - else
5.5388 - $echo "$modename: you must specify a destination" 1>&2
5.5389 - fi
5.5390 - $echo "$help" 1>&2
5.5391 - exit $EXIT_FAILURE
5.5392 - fi
5.5393 -
5.5394 - # Strip any trailing slash from the destination.
5.5395 - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5.5396 -
5.5397 - # Check to see that the destination is a directory.
5.5398 - test -d "$dest" && isdir=yes
5.5399 - if test "$isdir" = yes; then
5.5400 - destdir="$dest"
5.5401 - destname=
5.5402 - else
5.5403 - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5.5404 - test "X$destdir" = "X$dest" && destdir=.
5.5405 - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5.5406 -
5.5407 - # Not a directory, so check to see that there is only one file specified.
5.5408 - set dummy $files
5.5409 - if test "$#" -gt 2; then
5.5410 - $echo "$modename: \`$dest' is not a directory" 1>&2
5.5411 - $echo "$help" 1>&2
5.5412 - exit $EXIT_FAILURE
5.5413 - fi
5.5414 - fi
5.5415 - case $destdir in
5.5416 - [\\/]* | [A-Za-z]:[\\/]*) ;;
5.5417 - *)
5.5418 - for file in $files; do
5.5419 - case $file in
5.5420 - *.lo) ;;
5.5421 - *)
5.5422 - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5.5423 - $echo "$help" 1>&2
5.5424 - exit $EXIT_FAILURE
5.5425 - ;;
5.5426 - esac
5.5427 - done
5.5428 - ;;
5.5429 - esac
5.5430 -
5.5431 - # This variable tells wrapper scripts just to set variables rather
5.5432 - # than running their programs.
5.5433 - libtool_install_magic="$magic"
5.5434 -
5.5435 - staticlibs=
5.5436 - future_libdirs=
5.5437 - current_libdirs=
5.5438 - for file in $files; do
5.5439 -
5.5440 - # Do each installation.
5.5441 - case $file in
5.5442 - *.$libext)
5.5443 - # Do the static libraries later.
5.5444 - staticlibs="$staticlibs $file"
5.5445 - ;;
5.5446 -
5.5447 - *.la)
5.5448 - # Check to see that this really is a libtool archive.
5.5449 - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5.5450 - else
5.5451 - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5.5452 - $echo "$help" 1>&2
5.5453 - exit $EXIT_FAILURE
5.5454 - fi
5.5455 -
5.5456 - library_names=
5.5457 - old_library=
5.5458 - relink_command=
5.5459 - # If there is no directory component, then add one.
5.5460 - case $file in
5.5461 - */* | *\\*) . $file ;;
5.5462 - *) . ./$file ;;
5.5463 - esac
5.5464 -
5.5465 - # Add the libdir to current_libdirs if it is the destination.
5.5466 - if test "X$destdir" = "X$libdir"; then
5.5467 - case "$current_libdirs " in
5.5468 - *" $libdir "*) ;;
5.5469 - *) current_libdirs="$current_libdirs $libdir" ;;
5.5470 - esac
5.5471 - else
5.5472 - # Note the libdir as a future libdir.
5.5473 - case "$future_libdirs " in
5.5474 - *" $libdir "*) ;;
5.5475 - *) future_libdirs="$future_libdirs $libdir" ;;
5.5476 - esac
5.5477 - fi
5.5478 -
5.5479 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
5.5480 - test "X$dir" = "X$file/" && dir=
5.5481 - dir="$dir$objdir"
5.5482 -
5.5483 - if test -n "$relink_command"; then
5.5484 - # Determine the prefix the user has applied to our future dir.
5.5485 - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
5.5486 -
5.5487 - # Don't allow the user to place us outside of our expected
5.5488 - # location b/c this prevents finding dependent libraries that
5.5489 - # are installed to the same prefix.
5.5490 - # At present, this check doesn't affect windows .dll's that
5.5491 - # are installed into $libdir/../bin (currently, that works fine)
5.5492 - # but it's something to keep an eye on.
5.5493 - if test "$inst_prefix_dir" = "$destdir"; then
5.5494 - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
5.5495 - exit $EXIT_FAILURE
5.5496 - fi
5.5497 -
5.5498 - if test -n "$inst_prefix_dir"; then
5.5499 - # Stick the inst_prefix_dir data into the link command.
5.5500 - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
5.5501 - else
5.5502 - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
5.5503 - fi
5.5504 -
5.5505 - $echo "$modename: warning: relinking \`$file'" 1>&2
5.5506 - $show "$relink_command"
5.5507 - if $run eval "$relink_command"; then :
5.5508 - else
5.5509 - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
5.5510 - exit $EXIT_FAILURE
5.5511 - fi
5.5512 - fi
5.5513 -
5.5514 - # See the names of the shared library.
5.5515 - set dummy $library_names
5.5516 - if test -n "$2"; then
5.5517 - realname="$2"
5.5518 - shift
5.5519 - shift
5.5520 -
5.5521 - srcname="$realname"
5.5522 - test -n "$relink_command" && srcname="$realname"T
5.5523 -
5.5524 - # Install the shared library and build the symlinks.
5.5525 - $show "$install_prog $dir/$srcname $destdir/$realname"
5.5526 - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
5.5527 - if test -n "$stripme" && test -n "$striplib"; then
5.5528 - $show "$striplib $destdir/$realname"
5.5529 - $run eval "$striplib $destdir/$realname" || exit $?
5.5530 - fi
5.5531 -
5.5532 - if test "$#" -gt 0; then
5.5533 - # Delete the old symlinks, and create new ones.
5.5534 - for linkname
5.5535 - do
5.5536 - if test "$linkname" != "$realname"; then
5.5537 - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
5.5538 - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
5.5539 - fi
5.5540 - done
5.5541 - fi
5.5542 -
5.5543 - # Do each command in the postinstall commands.
5.5544 - lib="$destdir/$realname"
5.5545 - cmds=$postinstall_cmds
5.5546 - save_ifs="$IFS"; IFS='~'
5.5547 - for cmd in $cmds; do
5.5548 - IFS="$save_ifs"
5.5549 - eval cmd=\"$cmd\"
5.5550 - $show "$cmd"
5.5551 - $run eval "$cmd" || exit $?
5.5552 - done
5.5553 - IFS="$save_ifs"
5.5554 - fi
5.5555 -
5.5556 - # Install the pseudo-library for information purposes.
5.5557 - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5.5558 - instname="$dir/$name"i
5.5559 - $show "$install_prog $instname $destdir/$name"
5.5560 - $run eval "$install_prog $instname $destdir/$name" || exit $?
5.5561 -
5.5562 - # Maybe install the static library, too.
5.5563 - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
5.5564 - ;;
5.5565 -
5.5566 - *.lo)
5.5567 - # Install (i.e. copy) a libtool object.
5.5568 -
5.5569 - # Figure out destination file name, if it wasn't already specified.
5.5570 - if test -n "$destname"; then
5.5571 - destfile="$destdir/$destname"
5.5572 - else
5.5573 - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5.5574 - destfile="$destdir/$destfile"
5.5575 - fi
5.5576 -
5.5577 - # Deduce the name of the destination old-style object file.
5.5578 - case $destfile in
5.5579 - *.lo)
5.5580 - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
5.5581 - ;;
5.5582 - *.$objext)
5.5583 - staticdest="$destfile"
5.5584 - destfile=
5.5585 - ;;
5.5586 - *)
5.5587 - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
5.5588 - $echo "$help" 1>&2
5.5589 - exit $EXIT_FAILURE
5.5590 - ;;
5.5591 - esac
5.5592 -
5.5593 - # Install the libtool object if requested.
5.5594 - if test -n "$destfile"; then
5.5595 - $show "$install_prog $file $destfile"
5.5596 - $run eval "$install_prog $file $destfile" || exit $?
5.5597 - fi
5.5598 -
5.5599 - # Install the old object if enabled.
5.5600 - if test "$build_old_libs" = yes; then
5.5601 - # Deduce the name of the old-style object file.
5.5602 - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
5.5603 -
5.5604 - $show "$install_prog $staticobj $staticdest"
5.5605 - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
5.5606 - fi
5.5607 - exit $EXIT_SUCCESS
5.5608 - ;;
5.5609 -
5.5610 - *)
5.5611 - # Figure out destination file name, if it wasn't already specified.
5.5612 - if test -n "$destname"; then
5.5613 - destfile="$destdir/$destname"
5.5614 - else
5.5615 - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5.5616 - destfile="$destdir/$destfile"
5.5617 - fi
5.5618 -
5.5619 - # If the file is missing, and there is a .exe on the end, strip it
5.5620 - # because it is most likely a libtool script we actually want to
5.5621 - # install
5.5622 - stripped_ext=""
5.5623 - case $file in
5.5624 - *.exe)
5.5625 - if test ! -f "$file"; then
5.5626 - file=`$echo $file|${SED} 's,.exe$,,'`
5.5627 - stripped_ext=".exe"
5.5628 - fi
5.5629 - ;;
5.5630 - esac
5.5631 -
5.5632 - # Do a test to see if this is really a libtool program.
5.5633 - case $host in
5.5634 - *cygwin*|*mingw*)
5.5635 - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
5.5636 - ;;
5.5637 - *)
5.5638 - wrapper=$file
5.5639 - ;;
5.5640 - esac
5.5641 - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
5.5642 - notinst_deplibs=
5.5643 - relink_command=
5.5644 -
5.5645 - # To insure that "foo" is sourced, and not "foo.exe",
5.5646 - # finese the cygwin/MSYS system by explicitly sourcing "foo."
5.5647 - # which disallows the automatic-append-.exe behavior.
5.5648 - case $build in
5.5649 - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5.5650 - *) wrapperdot=${wrapper} ;;
5.5651 - esac
5.5652 - # If there is no directory component, then add one.
5.5653 - case $file in
5.5654 - */* | *\\*) . ${wrapperdot} ;;
5.5655 - *) . ./${wrapperdot} ;;
5.5656 - esac
5.5657 -
5.5658 - # Check the variables that should have been set.
5.5659 - if test -z "$notinst_deplibs"; then
5.5660 - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
5.5661 - exit $EXIT_FAILURE
5.5662 - fi
5.5663 -
5.5664 - finalize=yes
5.5665 - for lib in $notinst_deplibs; do
5.5666 - # Check to see that each library is installed.
5.5667 - libdir=
5.5668 - if test -f "$lib"; then
5.5669 - # If there is no directory component, then add one.
5.5670 - case $lib in
5.5671 - */* | *\\*) . $lib ;;
5.5672 - *) . ./$lib ;;
5.5673 - esac
5.5674 - fi
5.5675 - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
5.5676 - if test -n "$libdir" && test ! -f "$libfile"; then
5.5677 - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
5.5678 - finalize=no
5.5679 - fi
5.5680 - done
5.5681 -
5.5682 - relink_command=
5.5683 - # To insure that "foo" is sourced, and not "foo.exe",
5.5684 - # finese the cygwin/MSYS system by explicitly sourcing "foo."
5.5685 - # which disallows the automatic-append-.exe behavior.
5.5686 - case $build in
5.5687 - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5.5688 - *) wrapperdot=${wrapper} ;;
5.5689 - esac
5.5690 - # If there is no directory component, then add one.
5.5691 - case $file in
5.5692 - */* | *\\*) . ${wrapperdot} ;;
5.5693 - *) . ./${wrapperdot} ;;
5.5694 - esac
5.5695 -
5.5696 - outputname=
5.5697 - if test "$fast_install" = no && test -n "$relink_command"; then
5.5698 - if test "$finalize" = yes && test -z "$run"; then
5.5699 - tmpdir="/tmp"
5.5700 - test -n "$TMPDIR" && tmpdir="$TMPDIR"
5.5701 - tmpdir="$tmpdir/libtool-$$"
5.5702 - save_umask=`umask`
5.5703 - umask 0077
5.5704 - if $mkdir "$tmpdir"; then
5.5705 - umask $save_umask
5.5706 - else
5.5707 - umask $save_umask
5.5708 - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5.5709 - continue
5.5710 - fi
5.5711 - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
5.5712 - outputname="$tmpdir/$file"
5.5713 - # Replace the output file specification.
5.5714 - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
5.5715 -
5.5716 - $show "$relink_command"
5.5717 - if $run eval "$relink_command"; then :
5.5718 - else
5.5719 - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
5.5720 - ${rm}r "$tmpdir"
5.5721 - continue
5.5722 - fi
5.5723 - file="$outputname"
5.5724 - else
5.5725 - $echo "$modename: warning: cannot relink \`$file'" 1>&2
5.5726 - fi
5.5727 - else
5.5728 - # Install the binary that we compiled earlier.
5.5729 - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
5.5730 - fi
5.5731 - fi
5.5732 -
5.5733 - # remove .exe since cygwin /usr/bin/install will append another
5.5734 - # one anyways
5.5735 - case $install_prog,$host in
5.5736 - */usr/bin/install*,*cygwin*)
5.5737 - case $file:$destfile in
5.5738 - *.exe:*.exe)
5.5739 - # this is ok
5.5740 - ;;
5.5741 - *.exe:*)
5.5742 - destfile=$destfile.exe
5.5743 - ;;
5.5744 - *:*.exe)
5.5745 - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
5.5746 - ;;
5.5747 - esac
5.5748 - ;;
5.5749 - esac
5.5750 - $show "$install_prog$stripme $file $destfile"
5.5751 - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
5.5752 - test -n "$outputname" && ${rm}r "$tmpdir"
5.5753 - ;;
5.5754 - esac
5.5755 - done
5.5756 -
5.5757 - for file in $staticlibs; do
5.5758 - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5.5759 -
5.5760 - # Set up the ranlib parameters.
5.5761 - oldlib="$destdir/$name"
5.5762 -
5.5763 - $show "$install_prog $file $oldlib"
5.5764 - $run eval "$install_prog \$file \$oldlib" || exit $?
5.5765 -
5.5766 - if test -n "$stripme" && test -n "$old_striplib"; then
5.5767 - $show "$old_striplib $oldlib"
5.5768 - $run eval "$old_striplib $oldlib" || exit $?
5.5769 - fi
5.5770 -
5.5771 - # Do each command in the postinstall commands.
5.5772 - cmds=$old_postinstall_cmds
5.5773 - save_ifs="$IFS"; IFS='~'
5.5774 - for cmd in $cmds; do
5.5775 - IFS="$save_ifs"
5.5776 - eval cmd=\"$cmd\"
5.5777 - $show "$cmd"
5.5778 - $run eval "$cmd" || exit $?
5.5779 - done
5.5780 - IFS="$save_ifs"
5.5781 - done
5.5782 -
5.5783 - if test -n "$future_libdirs"; then
5.5784 - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
5.5785 - fi
5.5786 -
5.5787 - if test -n "$current_libdirs"; then
5.5788 - # Maybe just do a dry run.
5.5789 - test -n "$run" && current_libdirs=" -n$current_libdirs"
5.5790 - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
5.5791 - else
5.5792 - exit $EXIT_SUCCESS
5.5793 - fi
5.5794 - ;;
5.5795 -
5.5796 - # libtool finish mode
5.5797 - finish)
5.5798 - modename="$modename: finish"
5.5799 - libdirs="$nonopt"
5.5800 - admincmds=
5.5801 -
5.5802 - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
5.5803 - for dir
5.5804 - do
5.5805 - libdirs="$libdirs $dir"
5.5806 - done
5.5807 -
5.5808 - for libdir in $libdirs; do
5.5809 - if test -n "$finish_cmds"; then
5.5810 - # Do each command in the finish commands.
5.5811 - cmds=$finish_cmds
5.5812 - save_ifs="$IFS"; IFS='~'
5.5813 - for cmd in $cmds; do
5.5814 - IFS="$save_ifs"
5.5815 - eval cmd=\"$cmd\"
5.5816 - $show "$cmd"
5.5817 - $run eval "$cmd" || admincmds="$admincmds
5.5818 - $cmd"
5.5819 - done
5.5820 - IFS="$save_ifs"
5.5821 - fi
5.5822 - if test -n "$finish_eval"; then
5.5823 - # Do the single finish_eval.
5.5824 - eval cmds=\"$finish_eval\"
5.5825 - $run eval "$cmds" || admincmds="$admincmds
5.5826 - $cmds"
5.5827 - fi
5.5828 - done
5.5829 - fi
5.5830 -
5.5831 - # Exit here if they wanted silent mode.
5.5832 - test "$show" = : && exit $EXIT_SUCCESS
5.5833 -
5.5834 - $echo "----------------------------------------------------------------------"
5.5835 - $echo "Libraries have been installed in:"
5.5836 - for libdir in $libdirs; do
5.5837 - $echo " $libdir"
5.5838 - done
5.5839 - $echo
5.5840 - $echo "If you ever happen to want to link against installed libraries"
5.5841 - $echo "in a given directory, LIBDIR, you must either use libtool, and"
5.5842 - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
5.5843 - $echo "flag during linking and do at least one of the following:"
5.5844 - if test -n "$shlibpath_var"; then
5.5845 - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
5.5846 - $echo " during execution"
5.5847 - fi
5.5848 - if test -n "$runpath_var"; then
5.5849 - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
5.5850 - $echo " during linking"
5.5851 - fi
5.5852 - if test -n "$hardcode_libdir_flag_spec"; then
5.5853 - libdir=LIBDIR
5.5854 - eval flag=\"$hardcode_libdir_flag_spec\"
5.5855 -
5.5856 - $echo " - use the \`$flag' linker flag"
5.5857 - fi
5.5858 - if test -n "$admincmds"; then
5.5859 - $echo " - have your system administrator run these commands:$admincmds"
5.5860 - fi
5.5861 - if test -f /etc/ld.so.conf; then
5.5862 - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
5.5863 - fi
5.5864 - $echo
5.5865 - $echo "See any operating system documentation about shared libraries for"
5.5866 - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
5.5867 - $echo "----------------------------------------------------------------------"
5.5868 - exit $EXIT_SUCCESS
5.5869 - ;;
5.5870 -
5.5871 - # libtool execute mode
5.5872 - execute)
5.5873 - modename="$modename: execute"
5.5874 -
5.5875 - # The first argument is the command name.
5.5876 - cmd="$nonopt"
5.5877 - if test -z "$cmd"; then
5.5878 - $echo "$modename: you must specify a COMMAND" 1>&2
5.5879 - $echo "$help"
5.5880 - exit $EXIT_FAILURE
5.5881 - fi
5.5882 -
5.5883 - # Handle -dlopen flags immediately.
5.5884 - for file in $execute_dlfiles; do
5.5885 - if test ! -f "$file"; then
5.5886 - $echo "$modename: \`$file' is not a file" 1>&2
5.5887 - $echo "$help" 1>&2
5.5888 - exit $EXIT_FAILURE
5.5889 - fi
5.5890 -
5.5891 - dir=
5.5892 - case $file in
5.5893 - *.la)
5.5894 - # Check to see that this really is a libtool archive.
5.5895 - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5.5896 - else
5.5897 - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5.5898 - $echo "$help" 1>&2
5.5899 - exit $EXIT_FAILURE
5.5900 - fi
5.5901 -
5.5902 - # Read the libtool library.
5.5903 - dlname=
5.5904 - library_names=
5.5905 -
5.5906 - # If there is no directory component, then add one.
5.5907 - case $file in
5.5908 - */* | *\\*) . $file ;;
5.5909 - *) . ./$file ;;
5.5910 - esac
5.5911 -
5.5912 - # Skip this library if it cannot be dlopened.
5.5913 - if test -z "$dlname"; then
5.5914 - # Warn if it was a shared library.
5.5915 - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
5.5916 - continue
5.5917 - fi
5.5918 -
5.5919 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
5.5920 - test "X$dir" = "X$file" && dir=.
5.5921 -
5.5922 - if test -f "$dir/$objdir/$dlname"; then
5.5923 - dir="$dir/$objdir"
5.5924 - else
5.5925 - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
5.5926 - exit $EXIT_FAILURE
5.5927 - fi
5.5928 - ;;
5.5929 -
5.5930 - *.lo)
5.5931 - # Just add the directory containing the .lo file.
5.5932 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
5.5933 - test "X$dir" = "X$file" && dir=.
5.5934 - ;;
5.5935 -
5.5936 - *)
5.5937 - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
5.5938 - continue
5.5939 - ;;
5.5940 - esac
5.5941 -
5.5942 - # Get the absolute pathname.
5.5943 - absdir=`cd "$dir" && pwd`
5.5944 - test -n "$absdir" && dir="$absdir"
5.5945 -
5.5946 - # Now add the directory to shlibpath_var.
5.5947 - if eval "test -z \"\$$shlibpath_var\""; then
5.5948 - eval "$shlibpath_var=\"\$dir\""
5.5949 - else
5.5950 - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
5.5951 - fi
5.5952 - done
5.5953 -
5.5954 - # This variable tells wrapper scripts just to set shlibpath_var
5.5955 - # rather than running their programs.
5.5956 - libtool_execute_magic="$magic"
5.5957 -
5.5958 - # Check if any of the arguments is a wrapper script.
5.5959 - args=
5.5960 - for file
5.5961 - do
5.5962 - case $file in
5.5963 - -*) ;;
5.5964 - *)
5.5965 - # Do a test to see if this is really a libtool program.
5.5966 - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5.5967 - # If there is no directory component, then add one.
5.5968 - case $file in
5.5969 - */* | *\\*) . $file ;;
5.5970 - *) . ./$file ;;
5.5971 - esac
5.5972 -
5.5973 - # Transform arg to wrapped name.
5.5974 - file="$progdir/$program"
5.5975 - fi
5.5976 - ;;
5.5977 - esac
5.5978 - # Quote arguments (to preserve shell metacharacters).
5.5979 - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
5.5980 - args="$args \"$file\""
5.5981 - done
5.5982 -
5.5983 - if test -z "$run"; then
5.5984 - if test -n "$shlibpath_var"; then
5.5985 - # Export the shlibpath_var.
5.5986 - eval "export $shlibpath_var"
5.5987 - fi
5.5988 -
5.5989 - # Restore saved environment variables
5.5990 - if test "${save_LC_ALL+set}" = set; then
5.5991 - LC_ALL="$save_LC_ALL"; export LC_ALL
5.5992 - fi
5.5993 - if test "${save_LANG+set}" = set; then
5.5994 - LANG="$save_LANG"; export LANG
5.5995 - fi
5.5996 -
5.5997 - # Now prepare to actually exec the command.
5.5998 - exec_cmd="\$cmd$args"
5.5999 - else
5.6000 - # Display what would be done.
5.6001 - if test -n "$shlibpath_var"; then
5.6002 - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
5.6003 - $echo "export $shlibpath_var"
5.6004 - fi
5.6005 - $echo "$cmd$args"
5.6006 - exit $EXIT_SUCCESS
5.6007 - fi
5.6008 - ;;
5.6009 -
5.6010 - # libtool clean and uninstall mode
5.6011 - clean | uninstall)
5.6012 - modename="$modename: $mode"
5.6013 - rm="$nonopt"
5.6014 - files=
5.6015 - rmforce=
5.6016 - exit_status=0
5.6017 -
5.6018 - # This variable tells wrapper scripts just to set variables rather
5.6019 - # than running their programs.
5.6020 - libtool_install_magic="$magic"
5.6021 -
5.6022 - for arg
5.6023 - do
5.6024 - case $arg in
5.6025 - -f) rm="$rm $arg"; rmforce=yes ;;
5.6026 - -*) rm="$rm $arg" ;;
5.6027 - *) files="$files $arg" ;;
5.6028 - esac
5.6029 - done
5.6030 -
5.6031 - if test -z "$rm"; then
5.6032 - $echo "$modename: you must specify an RM program" 1>&2
5.6033 - $echo "$help" 1>&2
5.6034 - exit $EXIT_FAILURE
5.6035 - fi
5.6036 -
5.6037 - rmdirs=
5.6038 -
5.6039 - origobjdir="$objdir"
5.6040 - for file in $files; do
5.6041 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
5.6042 - if test "X$dir" = "X$file"; then
5.6043 - dir=.
5.6044 - objdir="$origobjdir"
5.6045 - else
5.6046 - objdir="$dir/$origobjdir"
5.6047 - fi
5.6048 - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
5.6049 - test "$mode" = uninstall && objdir="$dir"
5.6050 -
5.6051 - # Remember objdir for removal later, being careful to avoid duplicates
5.6052 - if test "$mode" = clean; then
5.6053 - case " $rmdirs " in
5.6054 - *" $objdir "*) ;;
5.6055 - *) rmdirs="$rmdirs $objdir" ;;
5.6056 - esac
5.6057 - fi
5.6058 -
5.6059 - # Don't error if the file doesn't exist and rm -f was used.
5.6060 - if (test -L "$file") >/dev/null 2>&1 \
5.6061 - || (test -h "$file") >/dev/null 2>&1 \
5.6062 - || test -f "$file"; then
5.6063 - :
5.6064 - elif test -d "$file"; then
5.6065 - exit_status=1
5.6066 - continue
5.6067 - elif test "$rmforce" = yes; then
5.6068 - continue
5.6069 - fi
5.6070 -
5.6071 - rmfiles="$file"
5.6072 -
5.6073 - case $name in
5.6074 - *.la)
5.6075 - # Possibly a libtool archive, so verify it.
5.6076 - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5.6077 - . $dir/$name
5.6078 -
5.6079 - # Delete the libtool libraries and symlinks.
5.6080 - for n in $library_names; do
5.6081 - rmfiles="$rmfiles $objdir/$n"
5.6082 - done
5.6083 - test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
5.6084 - test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
5.6085 -
5.6086 - if test "$mode" = uninstall; then
5.6087 - if test -n "$library_names"; then
5.6088 - # Do each command in the postuninstall commands.
5.6089 - cmds=$postuninstall_cmds
5.6090 - save_ifs="$IFS"; IFS='~'
5.6091 - for cmd in $cmds; do
5.6092 - IFS="$save_ifs"
5.6093 - eval cmd=\"$cmd\"
5.6094 - $show "$cmd"
5.6095 - $run eval "$cmd"
5.6096 - if test "$?" -ne 0 && test "$rmforce" != yes; then
5.6097 - exit_status=1
5.6098 - fi
5.6099 - done
5.6100 - IFS="$save_ifs"
5.6101 - fi
5.6102 -
5.6103 - if test -n "$old_library"; then
5.6104 - # Do each command in the old_postuninstall commands.
5.6105 - cmds=$old_postuninstall_cmds
5.6106 - save_ifs="$IFS"; IFS='~'
5.6107 - for cmd in $cmds; do
5.6108 - IFS="$save_ifs"
5.6109 - eval cmd=\"$cmd\"
5.6110 - $show "$cmd"
5.6111 - $run eval "$cmd"
5.6112 - if test "$?" -ne 0 && test "$rmforce" != yes; then
5.6113 - exit_status=1
5.6114 - fi
5.6115 - done
5.6116 - IFS="$save_ifs"
5.6117 - fi
5.6118 - # FIXME: should reinstall the best remaining shared library.
5.6119 - fi
5.6120 - fi
5.6121 - ;;
5.6122 -
5.6123 - *.lo)
5.6124 - # Possibly a libtool object, so verify it.
5.6125 - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5.6126 -
5.6127 - # Read the .lo file
5.6128 - . $dir/$name
5.6129 -
5.6130 - # Add PIC object to the list of files to remove.
5.6131 - if test -n "$pic_object" \
5.6132 - && test "$pic_object" != none; then
5.6133 - rmfiles="$rmfiles $dir/$pic_object"
5.6134 - fi
5.6135 -
5.6136 - # Add non-PIC object to the list of files to remove.
5.6137 - if test -n "$non_pic_object" \
5.6138 - && test "$non_pic_object" != none; then
5.6139 - rmfiles="$rmfiles $dir/$non_pic_object"
5.6140 - fi
5.6141 - fi
5.6142 - ;;
5.6143 -
5.6144 - *)
5.6145 - if test "$mode" = clean ; then
5.6146 - noexename=$name
5.6147 - case $file in
5.6148 - *.exe)
5.6149 - file=`$echo $file|${SED} 's,.exe$,,'`
5.6150 - noexename=`$echo $name|${SED} 's,.exe$,,'`
5.6151 - # $file with .exe has already been added to rmfiles,
5.6152 - # add $file without .exe
5.6153 - rmfiles="$rmfiles $file"
5.6154 - ;;
5.6155 - esac
5.6156 - # Do a test to see if this is a libtool program.
5.6157 - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5.6158 - relink_command=
5.6159 - . $dir/$noexename
5.6160 -
5.6161 - # note $name still contains .exe if it was in $file originally
5.6162 - # as does the version of $file that was added into $rmfiles
5.6163 - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
5.6164 - if test "$fast_install" = yes && test -n "$relink_command"; then
5.6165 - rmfiles="$rmfiles $objdir/lt-$name"
5.6166 - fi
5.6167 - if test "X$noexename" != "X$name" ; then
5.6168 - rmfiles="$rmfiles $objdir/lt-${noexename}.c"
5.6169 - fi
5.6170 - fi
5.6171 - fi
5.6172 - ;;
5.6173 - esac
5.6174 - $show "$rm $rmfiles"
5.6175 - $run $rm $rmfiles || exit_status=1
5.6176 - done
5.6177 - objdir="$origobjdir"
5.6178 -
5.6179 - # Try to remove the ${objdir}s in the directories where we deleted files
5.6180 - for dir in $rmdirs; do
5.6181 - if test -d "$dir"; then
5.6182 - $show "rmdir $dir"
5.6183 - $run rmdir $dir >/dev/null 2>&1
5.6184 - fi
5.6185 - done
5.6186 -
5.6187 - exit $exit_status
5.6188 - ;;
5.6189 -
5.6190 - "")
5.6191 - $echo "$modename: you must specify a MODE" 1>&2
5.6192 - $echo "$generic_help" 1>&2
5.6193 - exit $EXIT_FAILURE
5.6194 - ;;
5.6195 - esac
5.6196 -
5.6197 - if test -z "$exec_cmd"; then
5.6198 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
5.6199 - $echo "$generic_help" 1>&2
5.6200 - exit $EXIT_FAILURE
5.6201 - fi
5.6202 -fi # test -z "$show_help"
5.6203 -
5.6204 -if test -n "$exec_cmd"; then
5.6205 - eval exec $exec_cmd
5.6206 - exit $EXIT_FAILURE
5.6207 -fi
5.6208 -
5.6209 -# We need to display help for each of the modes.
5.6210 -case $mode in
5.6211 -"") $echo \
5.6212 -"Usage: $modename [OPTION]... [MODE-ARG]...
5.6213 -
5.6214 -Provide generalized library-building support services.
5.6215 -
5.6216 - --config show all configuration variables
5.6217 - --debug enable verbose shell tracing
5.6218 --n, --dry-run display commands without modifying any files
5.6219 - --features display basic configuration information and exit
5.6220 - --finish same as \`--mode=finish'
5.6221 - --help display this help message and exit
5.6222 - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
5.6223 - --quiet same as \`--silent'
5.6224 - --silent don't print informational messages
5.6225 - --tag=TAG use configuration variables from tag TAG
5.6226 - --version print version information
5.6227 -
5.6228 -MODE must be one of the following:
5.6229 -
5.6230 - clean remove files from the build directory
5.6231 - compile compile a source file into a libtool object
5.6232 - execute automatically set library path, then run a program
5.6233 - finish complete the installation of libtool libraries
5.6234 - install install libraries or executables
5.6235 - link create a library or an executable
5.6236 - uninstall remove libraries from an installed directory
5.6237 -
5.6238 -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
5.6239 -a more detailed description of MODE.
5.6240 -
5.6241 -Report bugs to <bug-libtool@gnu.org>."
5.6242 - exit $EXIT_SUCCESS
5.6243 - ;;
5.6244 -
5.6245 -clean)
5.6246 - $echo \
5.6247 -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
5.6248 -
5.6249 -Remove files from the build directory.
5.6250 -
5.6251 -RM is the name of the program to use to delete files associated with each FILE
5.6252 -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
5.6253 -to RM.
5.6254 -
5.6255 -If FILE is a libtool library, object or program, all the files associated
5.6256 -with it are deleted. Otherwise, only FILE itself is deleted using RM."
5.6257 - ;;
5.6258 -
5.6259 -compile)
5.6260 - $echo \
5.6261 -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
5.6262 -
5.6263 -Compile a source file into a libtool library object.
5.6264 -
5.6265 -This mode accepts the following additional options:
5.6266 -
5.6267 - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
5.6268 - -prefer-pic try to building PIC objects only
5.6269 - -prefer-non-pic try to building non-PIC objects only
5.6270 - -static always build a \`.o' file suitable for static linking
5.6271 -
5.6272 -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
5.6273 -from the given SOURCEFILE.
5.6274 -
5.6275 -The output file name is determined by removing the directory component from
5.6276 -SOURCEFILE, then substituting the C source code suffix \`.c' with the
5.6277 -library object suffix, \`.lo'."
5.6278 - ;;
5.6279 -
5.6280 -execute)
5.6281 - $echo \
5.6282 -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
5.6283 -
5.6284 -Automatically set library path, then run a program.
5.6285 -
5.6286 -This mode accepts the following additional options:
5.6287 -
5.6288 - -dlopen FILE add the directory containing FILE to the library path
5.6289 -
5.6290 -This mode sets the library path environment variable according to \`-dlopen'
5.6291 -flags.
5.6292 -
5.6293 -If any of the ARGS are libtool executable wrappers, then they are translated
5.6294 -into their corresponding uninstalled binary, and any of their required library
5.6295 -directories are added to the library path.
5.6296 -
5.6297 -Then, COMMAND is executed, with ARGS as arguments."
5.6298 - ;;
5.6299 -
5.6300 -finish)
5.6301 - $echo \
5.6302 -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
5.6303 -
5.6304 -Complete the installation of libtool libraries.
5.6305 -
5.6306 -Each LIBDIR is a directory that contains libtool libraries.
5.6307 -
5.6308 -The commands that this mode executes may require superuser privileges. Use
5.6309 -the \`--dry-run' option if you just want to see what would be executed."
5.6310 - ;;
5.6311 -
5.6312 -install)
5.6313 - $echo \
5.6314 -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
5.6315 -
5.6316 -Install executables or libraries.
5.6317 -
5.6318 -INSTALL-COMMAND is the installation command. The first component should be
5.6319 -either the \`install' or \`cp' program.
5.6320 -
5.6321 -The rest of the components are interpreted as arguments to that command (only
5.6322 -BSD-compatible install options are recognized)."
5.6323 - ;;
5.6324 -
5.6325 -link)
5.6326 - $echo \
5.6327 -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
5.6328 -
5.6329 -Link object files or libraries together to form another library, or to
5.6330 -create an executable program.
5.6331 -
5.6332 -LINK-COMMAND is a command using the C compiler that you would use to create
5.6333 -a program from several object files.
5.6334 -
5.6335 -The following components of LINK-COMMAND are treated specially:
5.6336 -
5.6337 - -all-static do not do any dynamic linking at all
5.6338 - -avoid-version do not add a version suffix if possible
5.6339 - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
5.6340 - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
5.6341 - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
5.6342 - -export-symbols SYMFILE
5.6343 - try to export only the symbols listed in SYMFILE
5.6344 - -export-symbols-regex REGEX
5.6345 - try to export only the symbols matching REGEX
5.6346 - -LLIBDIR search LIBDIR for required installed libraries
5.6347 - -lNAME OUTPUT-FILE requires the installed library libNAME
5.6348 - -module build a library that can dlopened
5.6349 - -no-fast-install disable the fast-install mode
5.6350 - -no-install link a not-installable executable
5.6351 - -no-undefined declare that a library does not refer to external symbols
5.6352 - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
5.6353 - -objectlist FILE Use a list of object files found in FILE to specify objects
5.6354 - -precious-files-regex REGEX
5.6355 - don't remove output files matching REGEX
5.6356 - -release RELEASE specify package release information
5.6357 - -rpath LIBDIR the created library will eventually be installed in LIBDIR
5.6358 - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
5.6359 - -static do not do any dynamic linking of libtool libraries
5.6360 - -version-info CURRENT[:REVISION[:AGE]]
5.6361 - specify library version info [each variable defaults to 0]
5.6362 -
5.6363 -All other options (arguments beginning with \`-') are ignored.
5.6364 -
5.6365 -Every other argument is treated as a filename. Files ending in \`.la' are
5.6366 -treated as uninstalled libtool libraries, other files are standard or library
5.6367 -object files.
5.6368 -
5.6369 -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
5.6370 -only library objects (\`.lo' files) may be specified, and \`-rpath' is
5.6371 -required, except when creating a convenience library.
5.6372 -
5.6373 -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
5.6374 -using \`ar' and \`ranlib', or on Windows using \`lib'.
5.6375 -
5.6376 -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
5.6377 -is created, otherwise an executable program is created."
5.6378 - ;;
5.6379 -
5.6380 -uninstall)
5.6381 - $echo \
5.6382 -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
5.6383 -
5.6384 -Remove libraries from an installation directory.
5.6385 -
5.6386 -RM is the name of the program to use to delete files associated with each FILE
5.6387 -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
5.6388 -to RM.
5.6389 -
5.6390 -If FILE is a libtool library, all the files associated with it are deleted.
5.6391 -Otherwise, only FILE itself is deleted using RM."
5.6392 - ;;
5.6393 -
5.6394 -*)
5.6395 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
5.6396 - $echo "$help" 1>&2
5.6397 - exit $EXIT_FAILURE
5.6398 - ;;
5.6399 -esac
5.6400 -
5.6401 -$echo
5.6402 -$echo "Try \`$modename --help' for more information about other modes."
5.6403 -
5.6404 -exit $EXIT_SUCCESS
5.6405 -
5.6406 -# The TAGs below are defined such that we never get into a situation
5.6407 -# in which we disable both kinds of libraries. Given conflicting
5.6408 -# choices, we go for a static library, that is the most portable,
5.6409 -# since we can't tell whether shared libraries were disabled because
5.6410 -# the user asked for that or because the platform doesn't support
5.6411 -# them. This is particularly important on AIX, because we don't
5.6412 -# support having both static and shared libraries enabled at the same
5.6413 -# time on that platform, so we default to a shared-only configuration.
5.6414 -# If a disable-shared tag is given, we'll fallback to a static-only
5.6415 -# configuration. But we'll never go from static-only to shared-only.
5.6416 -
5.6417 -# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
5.6418 -build_libtool_libs=no
5.6419 -build_old_libs=yes
5.6420 -# ### END LIBTOOL TAG CONFIG: disable-shared
5.6421 -
5.6422 -# ### BEGIN LIBTOOL TAG CONFIG: disable-static
5.6423 -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
5.6424 -# ### END LIBTOOL TAG CONFIG: disable-static
5.6425 -
5.6426 -# Local Variables:
5.6427 -# mode:shell-script
5.6428 -# sh-indentation:2
5.6429 -# End: