Codebase list burgerspace / 73e4f0b
Imported Upstream version 1.9.2 Markus Koschany 11 years ago
21 changed file(s) with 3764 addition(s) and 1596 deletion(s). Raw diff Collapse all Expand all
159159 DEFAULT_UDP_SERVER_PORT = @DEFAULT_UDP_SERVER_PORT@
160160 DEFS = @DEFS@
161161 DEPDIR = @DEPDIR@
162 DLLTOOL = @DLLTOOL@
162163 DSYMUTIL = @DSYMUTIL@
163164 DUMPBIN = @DUMPBIN@
164165 ECHO_C = @ECHO_C@
184185 LN_S = @LN_S@
185186 LTLIBOBJS = @LTLIBOBJS@
186187 MAKEINFO = @MAKEINFO@
188 MANIFEST_TOOL = @MANIFEST_TOOL@
187189 MANUAL_DATE_EN = @MANUAL_DATE_EN@
188190 MANUAL_DATE_FR = @MANUAL_DATE_FR@
189191 MINVER_FLATZEBRA = @MINVER_FLATZEBRA@
218220 abs_srcdir = @abs_srcdir@
219221 abs_top_builddir = @abs_top_builddir@
220222 abs_top_srcdir = @abs_top_srcdir@
223 ac_ct_AR = @ac_ct_AR@
221224 ac_ct_CC = @ac_ct_CC@
222225 ac_ct_CXX = @ac_ct_CXX@
223226 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
0 2013-02-25: Version 1.9.2 released
1
2 Slot selection when loading or saving games can now be done
3 with up and down keys, to accommodate keyboard layouts where
4 digits are shifted.
5 Fixed bug where program crashed when saving game where
6 player sprite was absent. Saved format version changed,
7 but version 1 format can still be loaded.
8 Added #include <unistd.h> to src/RemoteServer.cpp to resolve
9 a compilation error related to close(1) under GCC 4.7.
10 Fixed default UDP port displayed by ./configure --help.
11
012 2012-07-14: Version 1.9.1 released
113
214 Now links with version 0.1.6 of flatzebra library.
00 BurgerSpace - A hamburger-smashing video game.
11
2 Copyright (C) 2001-2010 Pierre Sarrazin <http://sarrazip.com/>
2 Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
33 This program is free software distributed under the GNU GPL.
44 See the file COPYING.
55
00 Name: burgerspace
1 Version: 1.9.1
1 Version: 1.9.2
22 Release: 1%{?dist}
33 Summary: A hamburger-smashing video game
44 Summary(fr): Un jeu de hamburgers qu'on écrase
1616 BurgerSpace is a game in which you are a chef who must walk
1717 over hamburger parts (buns, meat, lettuce, etc) to make them fall from
1818 floor to floor, until they end up on the plates at the bottom of the
19 screen.
19 screen. It is a clone of the 1982 BurgerTime video game by Data East.
2020
2121 %description -l fr
2222 BurgerSpace est un jeu où vous êtes un chef qui doit marcher
2323 sur des tranches de hamburger (pain, viande, laitue, etc) pour
2424 les faire tomber d'étage en étage, jusqu'à ce qu'ils se retrouvent
25 dans les assiettes au bas de l'écran.
25 dans les assiettes au bas de l'écran. Il s'agit d'un clone du jeu
26 BurgerTime créé par Data East en 1982.
2627
2728 %prep
2829 %setup -q
1616 @PACKAGE_FULL_NAME@ is a game in which you are a chef who must walk
1717 over hamburger parts (buns, meat, lettuce, etc) to make them fall from
1818 floor to floor, until they end up on the plates at the bottom of the
19 screen.
19 screen. It is a clone of the 1982 BurgerTime video game by Data East.
2020
2121 %description -l fr
2222 @PACKAGE_FULL_NAME@ est un jeu où vous êtes un chef qui doit marcher
2323 sur des tranches de hamburger (pain, viande, laitue, etc) pour
2424 les faire tomber d'étage en étage, jusqu'à ce qu'ils se retrouvent
25 dans les assiettes au bas de l'écran.
25 dans les assiettes au bas de l'écran. Il s'agit d'un clone du jeu
26 BurgerTime créé par Data East en 1982.
2627
2728 %prep
2829 %setup -q
+1289
-449
configure less more
636636 LIPO
637637 NMEDIT
638638 DSYMUTIL
639 MANIFEST_TOOL
639640 RANLIB
641 ac_ct_AR
640642 AR
643 DLLTOOL
641644 OBJDUMP
642645 LN_S
643646 NM
752755 enable_fast_install
753756 enable_dependency_tracking
754757 with_gnu_ld
758 with_sysroot
755759 enable_libtool_lock
756760 with_network
757761 with_default_udp_port
14071411 --with-pic try to use only PIC/non-PIC objects [default=use
14081412 both]
14091413 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1414 --with-sysroot=DIR Search for dependent libraries within DIR
1415 (or the compiler's sysroot if not specified).
14101416 --with-network build network (client-server) version (default: yes)
1411 --with-default-udp-port default UDP port number on which to accept clients (default: $DEFAULT_UDP_SERVER_PORT)
1417 --with-default-udp-port default UDP port number on which to accept clients (default: 49152)
14121418
14131419 Some influential environment variables:
14141420 CC C compiler command
29772983
29782984 # Define the identity of the package.
29792985 PACKAGE=burgerspace
2980 VERSION=1.9.1
2986 VERSION=1.9.2
29812987
29822988
29832989 cat >>confdefs.h <<_ACEOF
30183024
30193025
30203026
3021 MANUAL_DATE_EN="July 14th, 2012";
3022 MANUAL_DATE_FR="14 juillet 2012"; # UTF-8
3027 MANUAL_DATE_EN="February 25th, 2013";
3028 MANUAL_DATE_FR="25 février 2013"; # UTF-8
30233029
30243030 PACKAGE_FULL_NAME="BurgerSpace"
30253031 PACKAGE_SUMMARY_EN="A hamburger-smashing video game"
30683074
30693075
30703076
3071 macro_version='2.2.10'
3072 macro_revision='1.3175'
3077 macro_version='2.4'
3078 macro_revision='1.3293'
30733079
30743080
30753081
31093115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
31103116 $as_echo_n "checking how to print strings... " >&6; }
31113117 # Test print first, because it will be a builtin if present.
3112 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3118 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
31133119 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
31143120 ECHO='print -r --'
31153121 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
49044910 # Try some XSI features
49054911 xsi_shell=no
49064912 ( _lt_dummy="a/b/c"
4907 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4908 = c,a/b,, \
4913 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4914 = c,a/b,b/c, \
49094915 && eval 'test $(( 1 + 1 )) -eq 2 \
49104916 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
49114917 && xsi_shell=yes
49544960
49554961
49564962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4964 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4965 if ${lt_cv_to_host_file_cmd+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 case $host in
4969 *-*-mingw* )
4970 case $build in
4971 *-*-mingw* ) # actually msys
4972 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4973 ;;
4974 *-*-cygwin* )
4975 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4976 ;;
4977 * ) # otherwise, assume *nix
4978 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4979 ;;
4980 esac
4981 ;;
4982 *-*-cygwin* )
4983 case $build in
4984 *-*-mingw* ) # actually msys
4985 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4986 ;;
4987 *-*-cygwin* )
4988 lt_cv_to_host_file_cmd=func_convert_file_noop
4989 ;;
4990 * ) # otherwise, assume *nix
4991 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4992 ;;
4993 esac
4994 ;;
4995 * ) # unhandled hosts (and "normal" native builds)
4996 lt_cv_to_host_file_cmd=func_convert_file_noop
4997 ;;
4998 esac
4999
5000 fi
5001
5002 to_host_file_cmd=$lt_cv_to_host_file_cmd
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5004 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5005
5006
5007
5008
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5011 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5012 if ${lt_cv_to_tool_file_cmd+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 #assume ordinary cross tools, or native build.
5016 lt_cv_to_tool_file_cmd=func_convert_file_noop
5017 case $host in
5018 *-*-mingw* )
5019 case $build in
5020 *-*-mingw* ) # actually msys
5021 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5022 ;;
5023 esac
5024 ;;
5025 esac
5026
5027 fi
5028
5029 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5031 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5032
5033
5034
5035
5036
49575037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
49585038 $as_echo_n "checking for $LD option to reload object files... " >&6; }
49595039 if ${lt_cv_ld_reload_flag+:} false; then :
49705050 esac
49715051 reload_cmds='$LD$reload_flag -o $output$reload_objs'
49725052 case $host_os in
5053 cygwin* | mingw* | pw32* | cegcc*)
5054 if test "$GCC" != yes; then
5055 reload_cmds=false
5056 fi
5057 ;;
49735058 darwin*)
49745059 if test "$GCC" = yes; then
49755060 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
52935378 fi
52945379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
52955380 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5381
5382 file_magic_glob=
5383 want_nocaseglob=no
5384 if test "$build" = "$host"; then
5385 case $host_os in
5386 mingw* | pw32*)
5387 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5388 want_nocaseglob=yes
5389 else
5390 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5391 fi
5392 ;;
5393 esac
5394 fi
5395
52965396 file_magic_cmd=$lt_cv_file_magic_cmd
52975397 deplibs_check_method=$lt_cv_deplibs_check_method
52985398 test -z "$deplibs_check_method" && deplibs_check_method=unknown
53085408
53095409
53105410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
53115421 if test -n "$ac_tool_prefix"; then
5312 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5313 set dummy ${ac_tool_prefix}ar; ac_word=$2
5422 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5423 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
53145424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53155425 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_prog_AR+:} false; then :
5426 if ${ac_cv_prog_DLLTOOL+:} false; then :
53175427 $as_echo_n "(cached) " >&6
53185428 else
5319 if test -n "$AR"; then
5320 ac_cv_prog_AR="$AR" # Let the user override the test.
5429 if test -n "$DLLTOOL"; then
5430 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
53215431 else
53225432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53235433 for as_dir in $PATH
53265436 test -z "$as_dir" && as_dir=.
53275437 for ac_exec_ext in '' $ac_executable_extensions; do
53285438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_AR="${ac_tool_prefix}ar"
5439 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
53305440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53315441 break 2
53325442 fi
53365446
53375447 fi
53385448 fi
5339 AR=$ac_cv_prog_AR
5340 if test -n "$AR"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5342 $as_echo "$AR" >&6; }
5449 DLLTOOL=$ac_cv_prog_DLLTOOL
5450 if test -n "$DLLTOOL"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5452 $as_echo "$DLLTOOL" >&6; }
53435453 else
53445454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53455455 $as_echo "no" >&6; }
53475457
53485458
53495459 fi
5350 if test -z "$ac_cv_prog_AR"; then
5351 ac_ct_AR=$AR
5352 # Extract the first word of "ar", so it can be a program name with args.
5353 set dummy ar; ac_word=$2
5460 if test -z "$ac_cv_prog_DLLTOOL"; then
5461 ac_ct_DLLTOOL=$DLLTOOL
5462 # Extract the first word of "dlltool", so it can be a program name with args.
5463 set dummy dlltool; ac_word=$2
53545464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53555465 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5466 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
53575467 $as_echo_n "(cached) " >&6
53585468 else
5359 if test -n "$ac_ct_AR"; then
5360 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5469 if test -n "$ac_ct_DLLTOOL"; then
5470 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
53615471 else
53625472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53635473 for as_dir in $PATH
53665476 test -z "$as_dir" && as_dir=.
53675477 for ac_exec_ext in '' $ac_executable_extensions; do
53685478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369 ac_cv_prog_ac_ct_AR="ar"
5479 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
53705480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53715481 break 2
53725482 fi
53765486
53775487 fi
53785488 fi
5489 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5490 if test -n "$ac_ct_DLLTOOL"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5492 $as_echo "$ac_ct_DLLTOOL" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497
5498 if test "x$ac_ct_DLLTOOL" = x; then
5499 DLLTOOL="false"
5500 else
5501 case $cross_compiling:$ac_tool_warned in
5502 yes:)
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505 ac_tool_warned=yes ;;
5506 esac
5507 DLLTOOL=$ac_ct_DLLTOOL
5508 fi
5509 else
5510 DLLTOOL="$ac_cv_prog_DLLTOOL"
5511 fi
5512
5513 test -z "$DLLTOOL" && DLLTOOL=dlltool
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5525 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5526 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 lt_cv_sharedlib_from_linklib_cmd='unknown'
5530
5531 case $host_os in
5532 cygwin* | mingw* | pw32* | cegcc*)
5533 # two different shell functions defined in ltmain.sh
5534 # decide which to use based on capabilities of $DLLTOOL
5535 case `$DLLTOOL --help 2>&1` in
5536 *--identify-strict*)
5537 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5538 ;;
5539 *)
5540 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5541 ;;
5542 esac
5543 ;;
5544 *)
5545 # fallback: assume linklib IS sharedlib
5546 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5547 ;;
5548 esac
5549
5550 fi
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5552 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5553 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5554 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5555
5556
5557
5558
5559
5560
5561
5562
5563 if test -n "$ac_tool_prefix"; then
5564 for ac_prog in ar
5565 do
5566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_prog_AR+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 if test -n "$AR"; then
5574 ac_cv_prog_AR="$AR" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5578 do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5586 fi
5587 done
5588 done
5589 IFS=$as_save_IFS
5590
5591 fi
5592 fi
5593 AR=$ac_cv_prog_AR
5594 if test -n "$AR"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5596 $as_echo "$AR" >&6; }
5597 else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600 fi
5601
5602
5603 test -n "$AR" && break
5604 done
5605 fi
5606 if test -z "$AR"; then
5607 ac_ct_AR=$AR
5608 for ac_prog in ar
5609 do
5610 # Extract the first word of "$ac_prog", so it can be a program name with args.
5611 set dummy $ac_prog; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 if test -n "$ac_ct_AR"; then
5618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_ac_ct_AR="$ac_prog"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631 done
5632 done
5633 IFS=$as_save_IFS
5634
5635 fi
5636 fi
53795637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
53805638 if test -n "$ac_ct_AR"; then
53815639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
53845642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53855643 $as_echo "no" >&6; }
53865644 fi
5645
5646
5647 test -n "$ac_ct_AR" && break
5648 done
53875649
53885650 if test "x$ac_ct_AR" = x; then
53895651 AR="false"
53965658 esac
53975659 AR=$ac_ct_AR
53985660 fi
5399 else
5400 AR="$ac_cv_prog_AR"
5401 fi
5402
5403 test -z "$AR" && AR=ar
5404 test -z "$AR_FLAGS" && AR_FLAGS=cru
5405
5406
5407
5408
5661 fi
5662
5663 : ${AR=ar}
5664 : ${AR_FLAGS=cru}
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5677 $as_echo_n "checking for archiver @FILE support... " >&6; }
5678 if ${lt_cv_ar_at_file+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 lt_cv_ar_at_file=no
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684
5685 int
5686 main ()
5687 {
5688
5689 ;
5690 return 0;
5691 }
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694 echo conftest.$ac_objext > conftest.lst
5695 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5697 (eval $lt_ar_try) 2>&5
5698 ac_status=$?
5699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5700 test $ac_status = 0; }
5701 if test "$ac_status" -eq 0; then
5702 # Ensure the archiver fails upon bogus file names.
5703 rm -f conftest.$ac_objext libconftest.a
5704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5705 (eval $lt_ar_try) 2>&5
5706 ac_status=$?
5707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5708 test $ac_status = 0; }
5709 if test "$ac_status" -ne 0; then
5710 lt_cv_ar_at_file=@
5711 fi
5712 fi
5713 rm -f conftest.* libconftest.a
5714
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717
5718 fi
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5720 $as_echo "$lt_cv_ar_at_file" >&6; }
5721
5722 if test "x$lt_cv_ar_at_file" = xno; then
5723 archiver_list_spec=
5724 else
5725 archiver_list_spec=$lt_cv_ar_at_file
5726 fi
54095727
54105728
54115729
57476065 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
57486066
57496067 # Transform an extracted symbol line into symbol name and symbol address
5750 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5751 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6068 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6069 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
57526070
57536071 # Handle CRLF in mingw tool chain
57546072 opt_cr=
57846102 else
57856103 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
57866104 fi
6105 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
57876106
57886107 # Check to see that the pipe works correctly.
57896108 pipe_works=no
58256144 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
58266145 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
58276146 cat <<_LT_EOF > conftest.$ac_ext
6147 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6148 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6149 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6150 relocations are performed -- see ld's documentation on pseudo-relocs. */
6151 # define LT_DLSYM_CONST
6152 #elif defined(__osf__)
6153 /* This system does not cope well with relocations in const data. */
6154 # define LT_DLSYM_CONST
6155 #else
6156 # define LT_DLSYM_CONST const
6157 #endif
6158
58286159 #ifdef __cplusplus
58296160 extern "C" {
58306161 #endif
58366167 cat <<_LT_EOF >> conftest.$ac_ext
58376168
58386169 /* The mapping between symbol names and symbols. */
5839 const struct {
6170 LT_DLSYM_CONST struct {
58406171 const char *name;
58416172 void *address;
58426173 }
58626193 _LT_EOF
58636194 # Now try linking the two files.
58646195 mv conftest.$ac_objext conftstm.$ac_objext
5865 lt_save_LIBS="$LIBS"
5866 lt_save_CFLAGS="$CFLAGS"
6196 lt_globsym_save_LIBS=$LIBS
6197 lt_globsym_save_CFLAGS=$CFLAGS
58676198 LIBS="conftstm.$ac_objext"
58686199 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
58696200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
58736204 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
58746205 pipe_works=yes
58756206 fi
5876 LIBS="$lt_save_LIBS"
5877 CFLAGS="$lt_save_CFLAGS"
6207 LIBS=$lt_globsym_save_LIBS
6208 CFLAGS=$lt_globsym_save_CFLAGS
58786209 else
58796210 echo "cannot find nm_test_func in $nlist" >&5
58806211 fi
59116242 $as_echo "ok" >&6; }
59126243 fi
59136244
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
6245 # Response file support.
6246 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6247 nm_file_list_spec='@'
6248 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6249 nm_file_list_spec='@'
6250 fi
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6279 $as_echo_n "checking for sysroot... " >&6; }
6280
6281 # Check whether --with-sysroot was given.
6282 if test "${with_sysroot+set}" = set; then :
6283 withval=$with_sysroot;
6284 else
6285 with_sysroot=no
6286 fi
6287
6288
6289 lt_sysroot=
6290 case ${with_sysroot} in #(
6291 yes)
6292 if test "$GCC" = yes; then
6293 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6294 fi
6295 ;; #(
6296 /*)
6297 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6298 ;; #(
6299 no|'')
6300 ;; #(
6301 *)
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6303 $as_echo "${with_sysroot}" >&6; }
6304 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6305 ;;
6306 esac
6307
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6309 $as_echo "${lt_sysroot:-no}" >&6; }
59316310
59326311
59336312
61266505
61276506 need_locks="$enable_libtool_lock"
61286507
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}mt; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -n "$MANIFEST_TOOL"; then
6517 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6537 if test -n "$MANIFEST_TOOL"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6539 $as_echo "$MANIFEST_TOOL" >&6; }
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545
6546 fi
6547 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6548 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6549 # Extract the first word of "mt", so it can be a program name with args.
6550 set dummy mt; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 if test -n "$ac_ct_MANIFEST_TOOL"; then
6557 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6577 if test -n "$ac_ct_MANIFEST_TOOL"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6579 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6580 else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584
6585 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6586 MANIFEST_TOOL=":"
6587 else
6588 case $cross_compiling:$ac_tool_warned in
6589 yes:)
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592 ac_tool_warned=yes ;;
6593 esac
6594 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6595 fi
6596 else
6597 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6598 fi
6599
6600 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6602 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6603 if ${lt_cv_path_mainfest_tool+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 lt_cv_path_mainfest_tool=no
6607 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6608 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6609 cat conftest.err >&5
6610 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6611 lt_cv_path_mainfest_tool=yes
6612 fi
6613 rm -f conftest*
6614 fi
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6616 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6617 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6618 MANIFEST_TOOL=:
6619 fi
6620
6621
6622
6623
6624
61296625
61306626 case $host_os in
61316627 rhapsody* | darwin*)
75108006 lt_prog_compiler_pic=
75118007 lt_prog_compiler_static=
75128008
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7514 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
75158009
75168010 if test "$GCC" = yes; then
75178011 lt_prog_compiler_wl='-Wl,'
76758169 lt_prog_compiler_wl='-Wl,'
76768170 lt_prog_compiler_pic='--shared'
76778171 lt_prog_compiler_static='--static'
8172 ;;
8173 nagfor*)
8174 # NAG Fortran compiler
8175 lt_prog_compiler_wl='-Wl,-Wl,,'
8176 lt_prog_compiler_pic='-PIC'
8177 lt_prog_compiler_static='-Bstatic'
76788178 ;;
76798179 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
76808180 # Portland Group compilers (*not* the Pentium gcc compiler,
77958295 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
77968296 ;;
77978297 esac
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7799 $as_echo "$lt_prog_compiler_pic" >&6; }
7800
7801
7802
7803
7804
8298
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8300 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8301 if ${lt_cv_prog_compiler_pic+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8305 fi
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8307 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8308 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
78058309
78068310 #
78078311 # Check to make sure the PIC flag actually works.
78568360 fi
78578361
78588362 fi
8363
8364
8365
8366
8367
78598368
78608369
78618370
82128721 allow_undefined_flag=unsupported
82138722 always_export_symbols=no
82148723 enable_shared_with_static_runtimes=yes
8215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8725 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
82168726
82178727 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
82188728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
82608770 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
82618771 && test "$tmp_diet" = no
82628772 then
8263 tmp_addflag=
8773 tmp_addflag=' $pic_flag'
82648774 tmp_sharedflag='-shared'
82658775 case $cc_basename,$host_cpu in
82668776 pgcc*) # Portland Group C compiler
83308840 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
83318841 wlarc=
83328842 else
8333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8844 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
83358845 fi
83368846 ;;
83378847
83498859
83508860 _LT_EOF
83518861 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8862 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
83548864 else
83558865 ld_shlibs=no
83568866 fi
83968906
83978907 *)
83988908 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8909 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
84018911 else
84028912 ld_shlibs=no
84038913 fi
85279037 allow_undefined_flag='-berok'
85289038 # Determine the default libpath from the value encoded in an
85299039 # empty executable.
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 if test "${lt_cv_aix_libpath+set}" = set; then
9041 aix_libpath=$lt_cv_aix_libpath
9042 else
9043 if ${lt_cv_aix_libpath_+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85319047 /* end confdefs.h. */
85329048
85339049 int
85409056 _ACEOF
85419057 if ac_fn_c_try_link "$LINENO"; then :
85429058
8543 lt_aix_libpath_sed='
8544 /Import File Strings/,/^$/ {
8545 /^0/ {
8546 s/^0 *\(.*\)$/\1/
8547 p
8548 }
8549 }'
8550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8551 # Check for a 64-bit object if we didn't find anything.
8552 if test -z "$aix_libpath"; then
8553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8554 fi
9059 lt_aix_libpath_sed='
9060 /Import File Strings/,/^$/ {
9061 /^0/ {
9062 s/^0 *\([^ ]*\) *$/\1/
9063 p
9064 }
9065 }'
9066 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9067 # Check for a 64-bit object if we didn't find anything.
9068 if test -z "$lt_cv_aix_libpath_"; then
9069 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9070 fi
85559071 fi
85569072 rm -f core conftest.err conftest.$ac_objext \
85579073 conftest$ac_exeext conftest.$ac_ext
8558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9074 if test -z "$lt_cv_aix_libpath_"; then
9075 lt_cv_aix_libpath_="/usr/lib:/lib"
9076 fi
9077
9078 fi
9079
9080 aix_libpath=$lt_cv_aix_libpath_
9081 fi
85599082
85609083 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
85619084 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
85679090 else
85689091 # Determine the default libpath from the value encoded in an
85699092 # empty executable.
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 if test "${lt_cv_aix_libpath+set}" = set; then
9094 aix_libpath=$lt_cv_aix_libpath
9095 else
9096 if ${lt_cv_aix_libpath_+:} false; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85719100 /* end confdefs.h. */
85729101
85739102 int
85809109 _ACEOF
85819110 if ac_fn_c_try_link "$LINENO"; then :
85829111
8583 lt_aix_libpath_sed='
8584 /Import File Strings/,/^$/ {
8585 /^0/ {
8586 s/^0 *\(.*\)$/\1/
8587 p
8588 }
8589 }'
8590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8591 # Check for a 64-bit object if we didn't find anything.
8592 if test -z "$aix_libpath"; then
8593 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8594 fi
9112 lt_aix_libpath_sed='
9113 /Import File Strings/,/^$/ {
9114 /^0/ {
9115 s/^0 *\([^ ]*\) *$/\1/
9116 p
9117 }
9118 }'
9119 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9120 # Check for a 64-bit object if we didn't find anything.
9121 if test -z "$lt_cv_aix_libpath_"; then
9122 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9123 fi
85959124 fi
85969125 rm -f core conftest.err conftest.$ac_objext \
85979126 conftest$ac_exeext conftest.$ac_ext
8598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9127 if test -z "$lt_cv_aix_libpath_"; then
9128 lt_cv_aix_libpath_="/usr/lib:/lib"
9129 fi
9130
9131 fi
9132
9133 aix_libpath=$lt_cv_aix_libpath_
9134 fi
85999135
86009136 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
86019137 # Warning - without using the other run time loading flags,
86409176 # Microsoft Visual C++.
86419177 # hardcode_libdir_flag_spec is actually meaningless, as there is
86429178 # no search path for DLLs.
8643 hardcode_libdir_flag_spec=' '
8644 allow_undefined_flag=unsupported
8645 # Tell ltmain to make .lib files, not .a files.
8646 libext=lib
8647 # Tell ltmain to make .dll files, not .so files.
8648 shrext_cmds=".dll"
8649 # FIXME: Setting linknames here is a bad hack.
8650 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8651 # The linker will automatically build a .lib file if we build a DLL.
8652 old_archive_from_new_cmds='true'
8653 # FIXME: Should let the user specify the lib program.
8654 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8655 fix_srcfile_path='`cygpath -w "$srcfile"`'
8656 enable_shared_with_static_runtimes=yes
9179 case $cc_basename in
9180 cl*)
9181 # Native MSVC
9182 hardcode_libdir_flag_spec=' '
9183 allow_undefined_flag=unsupported
9184 always_export_symbols=yes
9185 file_list_spec='@'
9186 # Tell ltmain to make .lib files, not .a files.
9187 libext=lib
9188 # Tell ltmain to make .dll files, not .so files.
9189 shrext_cmds=".dll"
9190 # FIXME: Setting linknames here is a bad hack.
9191 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9192 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9193 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9194 else
9195 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9196 fi~
9197 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9198 linknames='
9199 # The linker will not automatically build a static lib if we build a DLL.
9200 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9201 enable_shared_with_static_runtimes=yes
9202 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9203 # Don't use ranlib
9204 old_postinstall_cmds='chmod 644 $oldlib'
9205 postlink_cmds='lt_outputfile="@OUTPUT@"~
9206 lt_tool_outputfile="@TOOL_OUTPUT@"~
9207 case $lt_outputfile in
9208 *.exe|*.EXE) ;;
9209 *)
9210 lt_outputfile="$lt_outputfile.exe"
9211 lt_tool_outputfile="$lt_tool_outputfile.exe"
9212 ;;
9213 esac~
9214 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9215 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9216 $RM "$lt_outputfile.manifest";
9217 fi'
9218 ;;
9219 *)
9220 # Assume MSVC wrapper
9221 hardcode_libdir_flag_spec=' '
9222 allow_undefined_flag=unsupported
9223 # Tell ltmain to make .lib files, not .a files.
9224 libext=lib
9225 # Tell ltmain to make .dll files, not .so files.
9226 shrext_cmds=".dll"
9227 # FIXME: Setting linknames here is a bad hack.
9228 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9229 # The linker will automatically build a .lib file if we build a DLL.
9230 old_archive_from_new_cmds='true'
9231 # FIXME: Should let the user specify the lib program.
9232 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9233 enable_shared_with_static_runtimes=yes
9234 ;;
9235 esac
86579236 ;;
86589237
86599238 darwin* | rhapsody*)
87189297
87199298 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
87209299 freebsd* | dragonfly*)
8721 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9300 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
87229301 hardcode_libdir_flag_spec='-R$libdir'
87239302 hardcode_direct=yes
87249303 hardcode_shlibpath_var=no
87269305
87279306 hpux9*)
87289307 if test "$GCC" = yes; then
8729 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9308 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
87309309 else
87319310 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
87329311 fi
87429321
87439322 hpux10*)
87449323 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8745 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9324 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
87469325 else
87479326 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
87489327 fi
87669345 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
87679346 ;;
87689347 ia64*)
8769 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9348 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
87709349 ;;
87719350 *)
8772 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9351 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
87739352 ;;
87749353 esac
87759354 else
88489427
88499428 irix5* | irix6* | nonstopux*)
88509429 if test "$GCC" = yes; then
8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9430 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
88529431 # Try to use the -exported_symbol ld option, if it does not
88539432 # work, assume that -exports_file does not work either and
88549433 # implicitly export all symbols.
8855 save_LDFLAGS="$LDFLAGS"
8856 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 # This should be the same for all languages, so no per-tag cache variable.
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9436 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9437 if ${lt_cv_irix_exported_symbol+:} false; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 save_LDFLAGS="$LDFLAGS"
9441 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88589443 /* end confdefs.h. */
8859 int foo(void) {}
9444 int foo (void) { return 0; }
88609445 _ACEOF
88619446 if ac_fn_c_try_link "$LINENO"; then :
8862 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8863
9447 lt_cv_irix_exported_symbol=yes
9448 else
9449 lt_cv_irix_exported_symbol=no
88649450 fi
88659451 rm -f core conftest.err conftest.$ac_objext \
88669452 conftest$ac_exeext conftest.$ac_ext
8867 LDFLAGS="$save_LDFLAGS"
9453 LDFLAGS="$save_LDFLAGS"
9454 fi
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9456 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9457 if test "$lt_cv_irix_exported_symbol" = yes; then
9458 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9459 fi
88689460 else
88699461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
88709462 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
89499541 osf4* | osf5*) # as osf3* with the addition of -msym flag
89509542 if test "$GCC" = yes; then
89519543 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8952 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9544 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
89539545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
89549546 else
89559547 allow_undefined_flag=' -expect_unresolved \*'
89689560 no_undefined_flag=' -z defs'
89699561 if test "$GCC" = yes; then
89709562 wlarc='${wl}'
8971 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9563 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
89729564 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8973 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9565 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
89749566 else
89759567 case `$CC -V 2>&1` in
89769568 *"Compilers 5.0"*)
954610138 need_version=no
954710139 need_lib_prefix=no
954810140
9549 case $GCC,$host_os in
9550 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10141 case $GCC,$cc_basename in
10142 yes,*)
10143 # gcc
955110144 library_names_spec='$libname.dll.a'
955210145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
955310146 postinstall_cmds='base_file=`basename \${file}`~
958010173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
958110174 ;;
958210175 esac
10176 dynamic_linker='Win32 ld.exe'
958310177 ;;
958410178
10179 *,cl*)
10180 # Native MSVC
10181 libname_spec='$name'
10182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10183 library_names_spec='${libname}.dll.lib'
10184
10185 case $build_os in
10186 mingw*)
10187 sys_lib_search_path_spec=
10188 lt_save_ifs=$IFS
10189 IFS=';'
10190 for lt_path in $LIB
10191 do
10192 IFS=$lt_save_ifs
10193 # Let DOS variable expansion print the short 8.3 style file name.
10194 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10195 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10196 done
10197 IFS=$lt_save_ifs
10198 # Convert to MSYS style.
10199 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10200 ;;
10201 cygwin*)
10202 # Convert to unix form, then to dos form, then back to unix form
10203 # but this time dos style (no spaces!) so that the unix form looks
10204 # like /cygdrive/c/PROGRA~1:/cygdr...
10205 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10206 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10207 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10208 ;;
10209 *)
10210 sys_lib_search_path_spec="$LIB"
10211 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10212 # It is most probably a Windows format PATH.
10213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10214 else
10215 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10216 fi
10217 # FIXME: find the short name or the path components, as spaces are
10218 # common. (e.g. "Program Files" -> "PROGRA~1")
10219 ;;
10220 esac
10221
10222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10223 postinstall_cmds='base_file=`basename \${file}`~
10224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10225 dldir=$destdir/`dirname \$dlpath`~
10226 test -d \$dldir || mkdir -p \$dldir~
10227 $install_prog $dir/$dlname \$dldir/$dlname'
10228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10229 dlpath=$dir/\$dldll~
10230 $RM \$dlpath'
10231 shlibpath_overrides_runpath=yes
10232 dynamic_linker='Win32 link.exe'
10233 ;;
10234
958510235 *)
10236 # Assume MSVC wrapper
958610237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10238 dynamic_linker='Win32 ld.exe'
958710239 ;;
958810240 esac
9589 dynamic_linker='Win32 ld.exe'
959010241 # FIXME: first we should search . and the directory the executable is in
959110242 shlibpath_var=PATH
959210243 ;;
1052611177 /* When -fvisbility=hidden is used, assume the code has been annotated
1052711178 correspondingly for the symbols needed. */
1052811179 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10529 void fnord () __attribute__((visibility("default")));
11180 int fnord () __attribute__((visibility("default")));
1053011181 #endif
1053111182
10532 void fnord () { int i=42; }
11183 int fnord () { return 42; }
1053311184 int main ()
1053411185 {
1053511186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1063211283 /* When -fvisbility=hidden is used, assume the code has been annotated
1063311284 correspondingly for the symbols needed. */
1063411285 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10635 void fnord () __attribute__((visibility("default")));
11286 int fnord () __attribute__((visibility("default")));
1063611287 #endif
1063711288
10638 void fnord () { int i=42; }
11289 int fnord () { return 42; }
1063911290 int main ()
1064011291 {
1064111292 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1121211863 fi
1121311864
1121411865
11866
11867
11868 func_stripname_cnf ()
11869 {
11870 case ${2} in
11871 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11872 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11873 esac
11874 } # func_stripname_cnf
11875
1121511876 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1121611877 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1121711878 (test "X$CXX" != "Xg++"))) ; then
1143412095
1143512096 # Allow CC to be a program name with arguments.
1143612097 lt_save_CC=$CC
12098 lt_save_CFLAGS=$CFLAGS
1143712099 lt_save_LD=$LD
1143812100 lt_save_GCC=$GCC
1143912101 GCC=$GXX
1145112113 fi
1145212114 test -z "${LDCXX+set}" || LD=$LDCXX
1145312115 CC=${CXX-"c++"}
12116 CFLAGS=$CXXFLAGS
1145412117 compiler=$CC
1145512118 compiler_CXX=$CC
1145612119 for cc_temp in $compiler""; do
1159012253 # Check if GNU C++ uses GNU ld as the underlying linker, since the
1159112254 # archiving commands below assume that GNU ld is being used.
1159212255 if test "$with_gnu_ld" = yes; then
11593 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11594 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12256 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1159512258
1159612259 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1159712260 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1173312396 allow_undefined_flag_CXX='-berok'
1173412397 # Determine the default libpath from the value encoded in an empty
1173512398 # executable.
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 if test "${lt_cv_aix_libpath+set}" = set; then
12400 aix_libpath=$lt_cv_aix_libpath
12401 else
12402 if ${lt_cv_aix_libpath__CXX+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1173712406 /* end confdefs.h. */
1173812407
1173912408 int
1174612415 _ACEOF
1174712416 if ac_fn_cxx_try_link "$LINENO"; then :
1174812417
11749 lt_aix_libpath_sed='
11750 /Import File Strings/,/^$/ {
11751 /^0/ {
11752 s/^0 *\(.*\)$/\1/
11753 p
11754 }
11755 }'
11756 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11757 # Check for a 64-bit object if we didn't find anything.
11758 if test -z "$aix_libpath"; then
11759 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11760 fi
12418 lt_aix_libpath_sed='
12419 /Import File Strings/,/^$/ {
12420 /^0/ {
12421 s/^0 *\([^ ]*\) *$/\1/
12422 p
12423 }
12424 }'
12425 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12426 # Check for a 64-bit object if we didn't find anything.
12427 if test -z "$lt_cv_aix_libpath__CXX"; then
12428 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12429 fi
1176112430 fi
1176212431 rm -f core conftest.err conftest.$ac_objext \
1176312432 conftest$ac_exeext conftest.$ac_ext
11764 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12433 if test -z "$lt_cv_aix_libpath__CXX"; then
12434 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12435 fi
12436
12437 fi
12438
12439 aix_libpath=$lt_cv_aix_libpath__CXX
12440 fi
1176512441
1176612442 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1176712443
1177412450 else
1177512451 # Determine the default libpath from the value encoded in an
1177612452 # empty executable.
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 if test "${lt_cv_aix_libpath+set}" = set; then
12454 aix_libpath=$lt_cv_aix_libpath
12455 else
12456 if ${lt_cv_aix_libpath__CXX+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1177812460 /* end confdefs.h. */
1177912461
1178012462 int
1178712469 _ACEOF
1178812470 if ac_fn_cxx_try_link "$LINENO"; then :
1178912471
11790 lt_aix_libpath_sed='
11791 /Import File Strings/,/^$/ {
11792 /^0/ {
11793 s/^0 *\(.*\)$/\1/
11794 p
11795 }
11796 }'
11797 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11798 # Check for a 64-bit object if we didn't find anything.
11799 if test -z "$aix_libpath"; then
11800 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11801 fi
12472 lt_aix_libpath_sed='
12473 /Import File Strings/,/^$/ {
12474 /^0/ {
12475 s/^0 *\([^ ]*\) *$/\1/
12476 p
12477 }
12478 }'
12479 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12480 # Check for a 64-bit object if we didn't find anything.
12481 if test -z "$lt_cv_aix_libpath__CXX"; then
12482 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12483 fi
1180212484 fi
1180312485 rm -f core conftest.err conftest.$ac_objext \
1180412486 conftest$ac_exeext conftest.$ac_ext
11805 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12487 if test -z "$lt_cv_aix_libpath__CXX"; then
12488 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12489 fi
12490
12491 fi
12492
12493 aix_libpath=$lt_cv_aix_libpath__CXX
12494 fi
1180612495
1180712496 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1180812497 # Warning - without using the other run time loading flags,
1184512534 ;;
1184612535
1184712536 cygwin* | mingw* | pw32* | cegcc*)
11848 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11849 # as there is no search path for DLLs.
11850 hardcode_libdir_flag_spec_CXX='-L$libdir'
11851 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11852 allow_undefined_flag_CXX=unsupported
11853 always_export_symbols_CXX=no
11854 enable_shared_with_static_runtimes_CXX=yes
11855
11856 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11857 archive_cmds_CXX='$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'
11858 # If the export-symbols file already is a .def file (1st line
11859 # is EXPORTS), use it as is; otherwise, prepend...
11860 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11861 cp $export_symbols $output_objdir/$soname.def;
11862 else
11863 echo EXPORTS > $output_objdir/$soname.def;
11864 cat $export_symbols >> $output_objdir/$soname.def;
11865 fi~
11866 $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'
11867 else
11868 ld_shlibs_CXX=no
11869 fi
11870 ;;
12537 case $GXX,$cc_basename in
12538 ,cl* | no,cl*)
12539 # Native MSVC
12540 # hardcode_libdir_flag_spec is actually meaningless, as there is
12541 # no search path for DLLs.
12542 hardcode_libdir_flag_spec_CXX=' '
12543 allow_undefined_flag_CXX=unsupported
12544 always_export_symbols_CXX=yes
12545 file_list_spec_CXX='@'
12546 # Tell ltmain to make .lib files, not .a files.
12547 libext=lib
12548 # Tell ltmain to make .dll files, not .so files.
12549 shrext_cmds=".dll"
12550 # FIXME: Setting linknames here is a bad hack.
12551 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12552 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12553 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12554 else
12555 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12556 fi~
12557 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12558 linknames='
12559 # The linker will not automatically build a static lib if we build a DLL.
12560 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12561 enable_shared_with_static_runtimes_CXX=yes
12562 # Don't use ranlib
12563 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12564 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12565 lt_tool_outputfile="@TOOL_OUTPUT@"~
12566 case $lt_outputfile in
12567 *.exe|*.EXE) ;;
12568 *)
12569 lt_outputfile="$lt_outputfile.exe"
12570 lt_tool_outputfile="$lt_tool_outputfile.exe"
12571 ;;
12572 esac~
12573 func_to_tool_file "$lt_outputfile"~
12574 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12575 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12576 $RM "$lt_outputfile.manifest";
12577 fi'
12578 ;;
12579 *)
12580 # g++
12581 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12582 # as there is no search path for DLLs.
12583 hardcode_libdir_flag_spec_CXX='-L$libdir'
12584 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12585 allow_undefined_flag_CXX=unsupported
12586 always_export_symbols_CXX=no
12587 enable_shared_with_static_runtimes_CXX=yes
12588
12589 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12590 archive_cmds_CXX='$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'
12591 # If the export-symbols file already is a .def file (1st line
12592 # is EXPORTS), use it as is; otherwise, prepend...
12593 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12594 cp $export_symbols $output_objdir/$soname.def;
12595 else
12596 echo EXPORTS > $output_objdir/$soname.def;
12597 cat $export_symbols >> $output_objdir/$soname.def;
12598 fi~
12599 $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'
12600 else
12601 ld_shlibs_CXX=no
12602 fi
12603 ;;
12604 esac
12605 ;;
1187112606 darwin* | rhapsody*)
1187212607
1187312608
1197312708 ;;
1197412709 *)
1197512710 if test "$GXX" = yes; then
11976 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12711 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
1197712712 else
1197812713 # FIXME: insert proper C++ library support
1197912714 ld_shlibs_CXX=no
1204412779 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1204512780 ;;
1204612781 ia64*)
12047 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12782 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1204812783 ;;
1204912784 *)
12050 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12785 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1205112786 ;;
1205212787 esac
1205312788 fi
1208812823 *)
1208912824 if test "$GXX" = yes; then
1209012825 if test "$with_gnu_ld" = no; then
12091 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12826 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1209212827 else
12093 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12828 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
1209412829 fi
1209512830 fi
1209612831 link_all_deplibs_CXX=yes
1236813103 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1236913104 ;;
1237013105 *)
12371 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13106 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1237213107 ;;
1237313108 esac
1237413109
1245513190 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1245613191 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
1245713192 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12458 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13193 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1245913194 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12460 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13195 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1246113196
1246213197 # Commands to make compiler produce verbose output that lists
1246313198 # what "hidden" libraries, object files and flags are used when
1259213327 };
1259313328 _LT_EOF
1259413329
13330
13331 _lt_libdeps_save_CFLAGS=$CFLAGS
13332 case "$CC $CFLAGS " in #(
13333 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13334 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13335 esac
13336
1259513337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1259613338 (eval $ac_compile) 2>&5
1259713339 ac_status=$?
1260513347 pre_test_object_deps_done=no
1260613348
1260713349 for p in `eval "$output_verbose_link_cmd"`; do
12608 case $p in
13350 case ${prev}${p} in
1260913351
1261013352 -L* | -R* | -l*)
1261113353 # Some compilers place space between "-{L,R}" and the path.
1261413356 test $p = "-R"; then
1261513357 prev=$p
1261613358 continue
12617 else
12618 prev=
1261913359 fi
1262013360
13361 # Expand the sysroot to ease extracting the directories later.
13362 if test -z "$prev"; then
13363 case $p in
13364 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13365 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13366 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13367 esac
13368 fi
13369 case $p in
13370 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13371 esac
1262113372 if test "$pre_test_object_deps_done" = no; then
12622 case $p in
12623 -L* | -R*)
13373 case ${prev} in
13374 -L | -R)
1262413375 # Internal compiler library paths should come after those
1262513376 # provided the user. The postdeps already come after the
1262613377 # user supplied libs so there is no need to process them.
1264013391 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
1264113392 fi
1264213393 fi
13394 prev=
1264313395 ;;
1264413396
13397 *.lto.$objext) ;; # Ignore GCC LTO objects
1264513398 *.$objext)
1264613399 # This assumes that the test object file only shows up
1264713400 # once in the compiler output.
1267713430 fi
1267813431
1267913432 $RM -f confest.$objext
13433 CFLAGS=$_lt_libdeps_save_CFLAGS
1268013434
1268113435 # PORTME: override above test on systems where it is broken
1268213436 case $host_os in
1277713531 lt_prog_compiler_pic_CXX=
1277813532 lt_prog_compiler_static_CXX=
1277913533
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12781 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1278213534
1278313535 # C++ specific cases for pic, static, wl, etc.
1278413536 if test "$GXX" = yes; then
1288113633 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--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"
1288213634 ;;
1288313635 esac
13636 ;;
13637 mingw* | cygwin* | os2* | pw32* | cegcc*)
13638 # This hack is so that the source file can tell whether it is being
13639 # built for inclusion in a dll (and should export symbols for example).
13640 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1288413641 ;;
1288513642 dgux*)
1288613643 case $cc_basename in
1309913856 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
1310013857 ;;
1310113858 esac
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13103 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13104
13105
13859
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13861 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13862 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13863 $as_echo_n "(cached) " >&6
13864 else
13865 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13866 fi
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13868 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13869 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
1310613870
1310713871 #
1310813872 # Check to make sure the PIC flag actually works.
1315713921 fi
1315813922
1315913923 fi
13924
13925
1316013926
1316113927
1316213928
1333714103 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1333814104
1333914105 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14106 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1334014107 case $host_os in
1334114108 aix[4-9]*)
1334214109 # If we're using GNU nm, then we don't want the "-C" option.
1335114118 ;;
1335214119 pw32*)
1335314120 export_symbols_cmds_CXX="$ltdll_cmds"
13354 ;;
14121 ;;
1335514122 cygwin* | mingw* | cegcc*)
13356 export_symbols_cmds_CXX='$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'
13357 ;;
14123 case $cc_basename in
14124 cl*) ;;
14125 *)
14126 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14127 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14128 ;;
14129 esac
14130 ;;
1335814131 *)
1335914132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13360 ;;
14133 ;;
1336114134 esac
13362 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1336314135
1336414136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
1336514137 $as_echo "$ld_shlibs_CXX" >&6; }
1362214394 need_version=no
1362314395 need_lib_prefix=no
1362414396
13625 case $GCC,$host_os in
13626 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14397 case $GCC,$cc_basename in
14398 yes,*)
14399 # gcc
1362714400 library_names_spec='$libname.dll.a'
1362814401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1362914402 postinstall_cmds='base_file=`basename \${file}`~
1365514428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1365614429 ;;
1365714430 esac
14431 dynamic_linker='Win32 ld.exe'
1365814432 ;;
1365914433
14434 *,cl*)
14435 # Native MSVC
14436 libname_spec='$name'
14437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14438 library_names_spec='${libname}.dll.lib'
14439
14440 case $build_os in
14441 mingw*)
14442 sys_lib_search_path_spec=
14443 lt_save_ifs=$IFS
14444 IFS=';'
14445 for lt_path in $LIB
14446 do
14447 IFS=$lt_save_ifs
14448 # Let DOS variable expansion print the short 8.3 style file name.
14449 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14450 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14451 done
14452 IFS=$lt_save_ifs
14453 # Convert to MSYS style.
14454 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14455 ;;
14456 cygwin*)
14457 # Convert to unix form, then to dos form, then back to unix form
14458 # but this time dos style (no spaces!) so that the unix form looks
14459 # like /cygdrive/c/PROGRA~1:/cygdr...
14460 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14461 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14462 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14463 ;;
14464 *)
14465 sys_lib_search_path_spec="$LIB"
14466 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14467 # It is most probably a Windows format PATH.
14468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14469 else
14470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14471 fi
14472 # FIXME: find the short name or the path components, as spaces are
14473 # common. (e.g. "Program Files" -> "PROGRA~1")
14474 ;;
14475 esac
14476
14477 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14478 postinstall_cmds='base_file=`basename \${file}`~
14479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14480 dldir=$destdir/`dirname \$dlpath`~
14481 test -d \$dldir || mkdir -p \$dldir~
14482 $install_prog $dir/$dlname \$dldir/$dlname'
14483 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14484 dlpath=$dir/\$dldll~
14485 $RM \$dlpath'
14486 shlibpath_overrides_runpath=yes
14487 dynamic_linker='Win32 link.exe'
14488 ;;
14489
1366014490 *)
14491 # Assume MSVC wrapper
1366114492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14493 dynamic_linker='Win32 ld.exe'
1366214494 ;;
1366314495 esac
13664 dynamic_linker='Win32 ld.exe'
1366514496 # FIXME: first we should search . and the directory the executable is in
1366614497 shlibpath_var=PATH
1366714498 ;;
1421915050 fi # test -n "$compiler"
1422015051
1422115052 CC=$lt_save_CC
15053 CFLAGS=$lt_save_CFLAGS
1422215054 LDCXX=$LD
1422315055 LD=$lt_save_LD
1422415056 GCC=$lt_save_GCC
1536416196 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
1536516197 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
1536616198 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16199 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16200 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1536716201 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1536816202 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1536916203 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1537016204 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1537116205 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16206 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16207 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16208 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16209 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1537216210 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1537316211 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16212 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1537416213 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1537516214 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
1537616215 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1538516224 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1538616225 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1538716226 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16227 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16228 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1538816229 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1538916230 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1539016231 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16232 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1539116233 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15392 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1539316234 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
1539416235 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
1539516236 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16237 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
1539616238 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
1539716239 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
1539816240 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
1542516267 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
1542616268 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
1542716269 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15428 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
1542916270 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
1543016271 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
1543116272 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
1543216273 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
1543316274 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16275 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
1543416276 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
1543516277 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
1543616278 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
1546916311 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
1547016312 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
1547116313 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16314 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
1547216315 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15473 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
1547416316 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
1547516317 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
1547616318 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
1549716339 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
1549816340 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
1549916341 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15500 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
1550116342 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
1550216343 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
1550316344 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
1550416345 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
1550516346 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16347 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
1550616348 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
1550716349 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
1550816350 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
1554016382 OBJDUMP \
1554116383 deplibs_check_method \
1554216384 file_magic_cmd \
16385 file_magic_glob \
16386 want_nocaseglob \
16387 DLLTOOL \
16388 sharedlib_from_linklib_cmd \
1554316389 AR \
1554416390 AR_FLAGS \
16391 archiver_list_spec \
1554516392 STRIP \
1554616393 RANLIB \
1554716394 CC \
1555116398 lt_cv_sys_global_symbol_to_cdecl \
1555216399 lt_cv_sys_global_symbol_to_c_name_address \
1555316400 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16401 nm_file_list_spec \
1555416402 lt_prog_compiler_no_builtin_flag \
16403 lt_prog_compiler_pic \
1555516404 lt_prog_compiler_wl \
15556 lt_prog_compiler_pic \
1555716405 lt_prog_compiler_static \
1555816406 lt_cv_prog_compiler_c_o \
1555916407 need_locks \
16408 MANIFEST_TOOL \
1556016409 DSYMUTIL \
1556116410 NMEDIT \
1556216411 LIPO \
1557216421 hardcode_libdir_flag_spec \
1557316422 hardcode_libdir_flag_spec_ld \
1557416423 hardcode_libdir_separator \
15575 fix_srcfile_path \
1557616424 exclude_expsyms \
1557716425 include_expsyms \
1557816426 file_list_spec \
1559416442 reload_flag_CXX \
1559516443 compiler_CXX \
1559616444 lt_prog_compiler_no_builtin_flag_CXX \
16445 lt_prog_compiler_pic_CXX \
1559716446 lt_prog_compiler_wl_CXX \
15598 lt_prog_compiler_pic_CXX \
1559916447 lt_prog_compiler_static_CXX \
1560016448 lt_cv_prog_compiler_c_o_CXX \
1560116449 export_dynamic_flag_spec_CXX \
1560716455 hardcode_libdir_flag_spec_CXX \
1560816456 hardcode_libdir_flag_spec_ld_CXX \
1560916457 hardcode_libdir_separator_CXX \
15610 fix_srcfile_path_CXX \
1561116458 exclude_expsyms_CXX \
1561216459 include_expsyms_CXX \
1561316460 file_list_spec_CXX \
1564116488 module_expsym_cmds \
1564216489 export_symbols_cmds \
1564316490 prelink_cmds \
16491 postlink_cmds \
1564416492 postinstall_cmds \
1564516493 postuninstall_cmds \
1564616494 finish_cmds \
1565516503 module_cmds_CXX \
1565616504 module_expsym_cmds_CXX \
1565716505 export_symbols_cmds_CXX \
15658 prelink_cmds_CXX; do
16506 prelink_cmds_CXX \
16507 postlink_cmds_CXX; do
1565916508 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1566016509 *[\\\\\\\`\\"\\\$]*)
1566116510 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1635317202 # turn newlines into spaces.
1635417203 NL2SP=$lt_lt_NL2SP
1635517204
17205 # convert \$build file names to \$host format.
17206 to_host_file_cmd=$lt_cv_to_host_file_cmd
17207
17208 # convert \$build files to toolchain format.
17209 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17210
1635617211 # An object symbol dumper.
1635717212 OBJDUMP=$lt_OBJDUMP
1635817213
1635917214 # Method to check whether dependent libraries are shared objects.
1636017215 deplibs_check_method=$lt_deplibs_check_method
1636117216
16362 # Command to use when deplibs_check_method == "file_magic".
17217 # Command to use when deplibs_check_method = "file_magic".
1636317218 file_magic_cmd=$lt_file_magic_cmd
17219
17220 # How to find potential files when deplibs_check_method = "file_magic".
17221 file_magic_glob=$lt_file_magic_glob
17222
17223 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17224 want_nocaseglob=$lt_want_nocaseglob
17225
17226 # DLL creation program.
17227 DLLTOOL=$lt_DLLTOOL
17228
17229 # Command to associate shared and link libraries.
17230 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1636417231
1636517232 # The archiver.
1636617233 AR=$lt_AR
17234
17235 # Flags to create an archive.
1636717236 AR_FLAGS=$lt_AR_FLAGS
17237
17238 # How to feed a file listing to the archiver.
17239 archiver_list_spec=$lt_archiver_list_spec
1636817240
1636917241 # A symbol stripping program.
1637017242 STRIP=$lt_STRIP
1639517267 # Transform the output of nm in a C name address pair when lib prefix is needed.
1639617268 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1639717269
17270 # Specify filename containing input files for \$NM.
17271 nm_file_list_spec=$lt_nm_file_list_spec
17272
17273 # The root where to search for dependent libraries,and in which our libraries should be installed.
17274 lt_sysroot=$lt_sysroot
17275
1639817276 # The name of the directory that contains temporary libtool files.
1639917277 objdir=$objdir
1640017278
1640317281
1640417282 # Must we lock files when doing compilation?
1640517283 need_locks=$lt_need_locks
17284
17285 # Manifest tool.
17286 MANIFEST_TOOL=$lt_MANIFEST_TOOL
1640617287
1640717288 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1640817289 DSYMUTIL=$lt_DSYMUTIL
1651817399 # Compiler flag to turn off builtin functions.
1651917400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1652017401
17402 # Additional compiler flags for building library objects.
17403 pic_flag=$lt_lt_prog_compiler_pic
17404
1652117405 # How to pass a linker flag through the compiler.
1652217406 wl=$lt_lt_prog_compiler_wl
16523
16524 # Additional compiler flags for building library objects.
16525 pic_flag=$lt_lt_prog_compiler_pic
1652617407
1652717408 # Compiler flag to prevent dynamic linking.
1652817409 link_static_flag=$lt_lt_prog_compiler_static
1661017491 # Whether libtool must link a program against all its dependency libraries.
1661117492 link_all_deplibs=$link_all_deplibs
1661217493
16613 # Fix the shell variable \$srcfile for the compiler.
16614 fix_srcfile_path=$lt_fix_srcfile_path
16615
1661617494 # Set to "yes" if exported symbols are required.
1661717495 always_export_symbols=$always_export_symbols
1661817496
1662717505
1662817506 # Commands necessary for linking programs (against libraries) with templates.
1662917507 prelink_cmds=$lt_prelink_cmds
17508
17509 # Commands necessary for finishing linking programs.
17510 postlink_cmds=$lt_postlink_cmds
1663017511
1663117512 # Specify filename containing input files.
1663217513 file_list_spec=$lt_file_list_spec
1667417555 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1667517556 # text mode, it properly converts lines to CR/LF. This bash problem
1667617557 # is reportedly fixed, but why not run on old versions too?
16677 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16678 || (rm -f "$cfgfile"; exit 1)
16679
16680 case $xsi_shell in
16681 yes)
16682 cat << \_LT_EOF >> "$cfgfile"
16683
16684 # func_dirname file append nondir_replacement
16685 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16686 # otherwise set result to NONDIR_REPLACEMENT.
16687 func_dirname ()
16688 {
16689 case ${1} in
16690 */*) func_dirname_result="${1%/*}${2}" ;;
16691 * ) func_dirname_result="${3}" ;;
16692 esac
16693 }
16694
16695 # func_basename file
16696 func_basename ()
16697 {
16698 func_basename_result="${1##*/}"
16699 }
16700
16701 # func_dirname_and_basename file append nondir_replacement
16702 # perform func_basename and func_dirname in a single function
16703 # call:
16704 # dirname: Compute the dirname of FILE. If nonempty,
16705 # add APPEND to the result, otherwise set result
16706 # to NONDIR_REPLACEMENT.
16707 # value returned in "$func_dirname_result"
16708 # basename: Compute filename of FILE.
16709 # value retuned in "$func_basename_result"
16710 # Implementation must be kept synchronized with func_dirname
16711 # and func_basename. For efficiency, we do not delegate to
16712 # those functions but instead duplicate the functionality here.
16713 func_dirname_and_basename ()
16714 {
16715 case ${1} in
16716 */*) func_dirname_result="${1%/*}${2}" ;;
16717 * ) func_dirname_result="${3}" ;;
16718 esac
16719 func_basename_result="${1##*/}"
16720 }
16721
16722 # func_stripname prefix suffix name
16723 # strip PREFIX and SUFFIX off of NAME.
16724 # PREFIX and SUFFIX must not contain globbing or regex special
16725 # characters, hashes, percent signs, but SUFFIX may contain a leading
16726 # dot (in which case that matches only a dot).
16727 func_stripname ()
16728 {
16729 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16730 # positional parameters, so assign one to ordinary parameter first.
16731 func_stripname_result=${3}
16732 func_stripname_result=${func_stripname_result#"${1}"}
16733 func_stripname_result=${func_stripname_result%"${2}"}
16734 }
16735
16736 # func_opt_split
16737 func_opt_split ()
16738 {
16739 func_opt_split_opt=${1%%=*}
16740 func_opt_split_arg=${1#*=}
16741 }
16742
16743 # func_lo2o object
16744 func_lo2o ()
16745 {
16746 case ${1} in
16747 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16748 *) func_lo2o_result=${1} ;;
16749 esac
16750 }
16751
16752 # func_xform libobj-or-source
16753 func_xform ()
16754 {
16755 func_xform_result=${1%.*}.lo
16756 }
16757
16758 # func_arith arithmetic-term...
16759 func_arith ()
16760 {
16761 func_arith_result=$(( $* ))
16762 }
16763
16764 # func_len string
16765 # STRING may not start with a hyphen.
16766 func_len ()
16767 {
16768 func_len_result=${#1}
16769 }
16770
16771 _LT_EOF
16772 ;;
16773 *) # Bourne compatible functions.
16774 cat << \_LT_EOF >> "$cfgfile"
16775
16776 # func_dirname file append nondir_replacement
16777 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16778 # otherwise set result to NONDIR_REPLACEMENT.
16779 func_dirname ()
16780 {
16781 # Extract subdirectory from the argument.
16782 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16783 if test "X$func_dirname_result" = "X${1}"; then
16784 func_dirname_result="${3}"
16785 else
16786 func_dirname_result="$func_dirname_result${2}"
16787 fi
16788 }
16789
16790 # func_basename file
16791 func_basename ()
16792 {
16793 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16794 }
16795
16796
16797 # func_stripname prefix suffix name
16798 # strip PREFIX and SUFFIX off of NAME.
16799 # PREFIX and SUFFIX must not contain globbing or regex special
16800 # characters, hashes, percent signs, but SUFFIX may contain a leading
16801 # dot (in which case that matches only a dot).
16802 # func_strip_suffix prefix name
16803 func_stripname ()
16804 {
16805 case ${2} in
16806 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16807 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16808 esac
16809 }
16810
16811 # sed scripts:
16812 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16813 my_sed_long_arg='1s/^-[^=]*=//'
16814
16815 # func_opt_split
16816 func_opt_split ()
16817 {
16818 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16819 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16820 }
16821
16822 # func_lo2o object
16823 func_lo2o ()
16824 {
16825 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16826 }
16827
16828 # func_xform libobj-or-source
16829 func_xform ()
16830 {
16831 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16832 }
16833
16834 # func_arith arithmetic-term...
16835 func_arith ()
16836 {
16837 func_arith_result=`expr "$@"`
16838 }
16839
16840 # func_len string
16841 # STRING may not start with a hyphen.
16842 func_len ()
16843 {
16844 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16845 }
16846
16847 _LT_EOF
16848 esac
16849
16850 case $lt_shell_append in
16851 yes)
16852 cat << \_LT_EOF >> "$cfgfile"
16853
16854 # func_append var value
16855 # Append VALUE to the end of shell variable VAR.
16856 func_append ()
16857 {
16858 eval "$1+=\$2"
16859 }
16860 _LT_EOF
16861 ;;
16862 *)
16863 cat << \_LT_EOF >> "$cfgfile"
16864
16865 # func_append var value
16866 # Append VALUE to the end of shell variable VAR.
16867 func_append ()
16868 {
16869 eval "$1=\$$1\$2"
16870 }
16871
16872 _LT_EOF
16873 ;;
16874 esac
16875
16876
16877 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16878 || (rm -f "$cfgfile"; exit 1)
16879
16880 mv -f "$cfgfile" "$ofile" ||
17558 sed '$q' "$ltmain" >> "$cfgfile" \
17559 || (rm -f "$cfgfile"; exit 1)
17560
17561 if test x"$xsi_shell" = xyes; then
17562 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17563 func_dirname ()\
17564 {\
17565 \ case ${1} in\
17566 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17567 \ * ) func_dirname_result="${3}" ;;\
17568 \ esac\
17569 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17570 && mv -f "$cfgfile.tmp" "$cfgfile" \
17571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17572 test 0 -eq $? || _lt_function_replace_fail=:
17573
17574
17575 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17576 func_basename ()\
17577 {\
17578 \ func_basename_result="${1##*/}"\
17579 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17580 && mv -f "$cfgfile.tmp" "$cfgfile" \
17581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17582 test 0 -eq $? || _lt_function_replace_fail=:
17583
17584
17585 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17586 func_dirname_and_basename ()\
17587 {\
17588 \ case ${1} in\
17589 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17590 \ * ) func_dirname_result="${3}" ;;\
17591 \ esac\
17592 \ func_basename_result="${1##*/}"\
17593 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17594 && mv -f "$cfgfile.tmp" "$cfgfile" \
17595 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17596 test 0 -eq $? || _lt_function_replace_fail=:
17597
17598
17599 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17600 func_stripname ()\
17601 {\
17602 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17603 \ # positional parameters, so assign one to ordinary parameter first.\
17604 \ func_stripname_result=${3}\
17605 \ func_stripname_result=${func_stripname_result#"${1}"}\
17606 \ func_stripname_result=${func_stripname_result%"${2}"}\
17607 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17608 && mv -f "$cfgfile.tmp" "$cfgfile" \
17609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17610 test 0 -eq $? || _lt_function_replace_fail=:
17611
17612
17613 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17614 func_split_long_opt ()\
17615 {\
17616 \ func_split_long_opt_name=${1%%=*}\
17617 \ func_split_long_opt_arg=${1#*=}\
17618 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17619 && mv -f "$cfgfile.tmp" "$cfgfile" \
17620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17621 test 0 -eq $? || _lt_function_replace_fail=:
17622
17623
17624 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17625 func_split_short_opt ()\
17626 {\
17627 \ func_split_short_opt_arg=${1#??}\
17628 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17629 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17630 && mv -f "$cfgfile.tmp" "$cfgfile" \
17631 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17632 test 0 -eq $? || _lt_function_replace_fail=:
17633
17634
17635 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17636 func_lo2o ()\
17637 {\
17638 \ case ${1} in\
17639 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17640 \ *) func_lo2o_result=${1} ;;\
17641 \ esac\
17642 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17643 && mv -f "$cfgfile.tmp" "$cfgfile" \
17644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17645 test 0 -eq $? || _lt_function_replace_fail=:
17646
17647
17648 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17649 func_xform ()\
17650 {\
17651 func_xform_result=${1%.*}.lo\
17652 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17653 && mv -f "$cfgfile.tmp" "$cfgfile" \
17654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17655 test 0 -eq $? || _lt_function_replace_fail=:
17656
17657
17658 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17659 func_arith ()\
17660 {\
17661 func_arith_result=$(( $* ))\
17662 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17663 && mv -f "$cfgfile.tmp" "$cfgfile" \
17664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17665 test 0 -eq $? || _lt_function_replace_fail=:
17666
17667
17668 sed -e '/^func_len ()$/,/^} # func_len /c\
17669 func_len ()\
17670 {\
17671 func_len_result=${#1}\
17672 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17673 && mv -f "$cfgfile.tmp" "$cfgfile" \
17674 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17675 test 0 -eq $? || _lt_function_replace_fail=:
17676
17677 fi
17678
17679 if test x"$lt_shell_append" = xyes; then
17680 sed -e '/^func_append ()$/,/^} # func_append /c\
17681 func_append ()\
17682 {\
17683 eval "${1}+=\\${2}"\
17684 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17685 && mv -f "$cfgfile.tmp" "$cfgfile" \
17686 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17687 test 0 -eq $? || _lt_function_replace_fail=:
17688
17689
17690 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17691 func_append_quoted ()\
17692 {\
17693 \ func_quote_for_eval "${2}"\
17694 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17695 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17696 && mv -f "$cfgfile.tmp" "$cfgfile" \
17697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17698 test 0 -eq $? || _lt_function_replace_fail=:
17699
17700
17701 # Save a `func_append' function call where possible by direct use of '+='
17702 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17703 && mv -f "$cfgfile.tmp" "$cfgfile" \
17704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17705 test 0 -eq $? || _lt_function_replace_fail=:
17706 else
17707 # Save a `func_append' function call even when '+=' is not available
17708 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17709 && mv -f "$cfgfile.tmp" "$cfgfile" \
17710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17711 test 0 -eq $? || _lt_function_replace_fail=:
17712 fi
17713
17714 if test x"$_lt_function_replace_fail" = x":"; then
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17716 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17717 fi
17718
17719
17720 mv -f "$cfgfile" "$ofile" ||
1688117721 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1688217722 chmod +x "$ofile"
1688317723
1690517745 # Compiler flag to turn off builtin functions.
1690617746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
1690717747
17748 # Additional compiler flags for building library objects.
17749 pic_flag=$lt_lt_prog_compiler_pic_CXX
17750
1690817751 # How to pass a linker flag through the compiler.
1690917752 wl=$lt_lt_prog_compiler_wl_CXX
16910
16911 # Additional compiler flags for building library objects.
16912 pic_flag=$lt_lt_prog_compiler_pic_CXX
1691317753
1691417754 # Compiler flag to prevent dynamic linking.
1691517755 link_static_flag=$lt_lt_prog_compiler_static_CXX
1699717837 # Whether libtool must link a program against all its dependency libraries.
1699817838 link_all_deplibs=$link_all_deplibs_CXX
1699917839
17000 # Fix the shell variable \$srcfile for the compiler.
17001 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17002
1700317840 # Set to "yes" if exported symbols are required.
1700417841 always_export_symbols=$always_export_symbols_CXX
1700517842
1701417851
1701517852 # Commands necessary for linking programs (against libraries) with templates.
1701617853 prelink_cmds=$lt_prelink_cmds_CXX
17854
17855 # Commands necessary for finishing linking programs.
17856 postlink_cmds=$lt_postlink_cmds_CXX
1701717857
1701817858 # Specify filename containing input files.
1701917859 file_list_spec=$lt_file_list_spec_CXX
0 # $Id: configure.ac,v 1.19 2012/07/14 05:07:40 sarrazip Exp $
0 # $Id: configure.ac,v 1.22 2013/02/25 05:04:42 sarrazip Exp $
11 # configure.ac for burgerspace
22
33 AC_PREREQ(2.50)
44 AC_INIT(src/BurgerSpaceClient.h)
55 AC_CANONICAL_HOST
66 AC_CANONICAL_SYSTEM
7 AM_INIT_AUTOMAKE(burgerspace, 1.9.1)
7 AM_INIT_AUTOMAKE(burgerspace, 1.9.2)
88
9 MANUAL_DATE_EN="July 14th, 2012"; AC_SUBST(MANUAL_DATE_EN)
10 MANUAL_DATE_FR="14 juillet 2012"; AC_SUBST(MANUAL_DATE_FR) # UTF-8
9 MANUAL_DATE_EN="February 25th, 2013"; AC_SUBST(MANUAL_DATE_EN)
10 MANUAL_DATE_FR="25 février 2013"; AC_SUBST(MANUAL_DATE_FR) # UTF-8
1111
1212 PACKAGE_FULL_NAME="BurgerSpace"
1313 PACKAGE_SUMMARY_EN="A hamburger-smashing video game"
6363
6464 DEFAULT_UDP_SERVER_PORT=49152 # private as per IANA
6565 AC_ARG_WITH([default-udp-port],
66 [ --with-default-udp-port default UDP port number on which to accept clients (default: $DEFAULT_UDP_SERVER_PORT)],
66 [ --with-default-udp-port default UDP port number on which to accept clients (default: 49152)],
6767 [
6868 if test "$withval" = no; then
6969 true
0 .\" $Id: burgerspace-server.6.in,v 1.2 2010/05/26 03:13:01 sarrazip Exp $
0 .\" $Id: burgerspace-server.6.in,v 1.3 2013/02/25 05:04:42 sarrazip Exp $
11 .\" BurgerSpace server manual page
22 .\"
33 .\" burgerspace-server - UDP server for networked BurgerSpace
4 .\" Copyright (C) 2007-2009 Pierre Sarrazin <http://sarrazip.com/>
4 .\" Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
55 .\"
66 .\" This program is free software; you can redistribute it and/or
77 .\" modify it under the terms of the GNU General Public License
1919 .\" 02110-1301, USA.
2020 .\"
2121 .\"
22 .TH burgerspace-server "6" "July 14th, 2012" "" ""
22 .TH burgerspace-server "6" "February 25th, 2013" "" ""
2323 .SH NAME
2424 burgerspace-server \- UDP server for the networked version of BurgerSpace
2525 .SH SYNOPSIS
0 .\" $Id: burgerspace-server.6.in,v 1.2 2010/05/26 03:13:01 sarrazip Exp $
0 .\" $Id: burgerspace-server.6.in,v 1.3 2013/02/25 05:04:42 sarrazip Exp $
11 .\" BurgerSpace server manual page
22 .\"
33 .\" burgerspace-server - UDP server for networked BurgerSpace
4 .\" Copyright (C) 2007-2009 Pierre Sarrazin <http://sarrazip.com/>
4 .\" Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
55 .\"
66 .\" This program is free software; you can redistribute it and/or
77 .\" modify it under the terms of the GNU General Public License
0 .\" $Id: burgerspace.6.in,v 1.2 2010/05/26 03:13:01 sarrazip Exp $
0 .\" $Id: burgerspace.6.in,v 1.3 2013/02/25 05:04:43 sarrazip Exp $
11 .\" BurgerSpace manual page
22 .\"
33 .\" burgerspace - A hamburger-smashing video game.
4 .\" Copyright (C) 2001-2010 Pierre Sarrazin <http://sarrazip.com/>
4 .\" Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
55 .\"
66 .\" This program is free software; you can redistribute it and/or
77 .\" modify it under the terms of the GNU General Public License
1919 .\" 02110-1301, USA.
2020 .\"
2121 .\"
22 .TH burgerspace "6" "July 14th, 2012" "" ""
22 .TH burgerspace "6" "February 25th, 2013" "" ""
2323 .SH NAME
2424 burgerspace \- A hamburger-smashing video game
2525 .SH SYNOPSIS
0 .\" $Id: burgerspace.6.in,v 1.2 2010/05/26 03:13:01 sarrazip Exp $
0 .\" $Id: burgerspace.6.in,v 1.3 2013/02/25 05:04:43 sarrazip Exp $
11 .\" BurgerSpace manual page
22 .\"
33 .\" burgerspace - A hamburger-smashing video game.
4 .\" Copyright (C) 2001-2010 Pierre Sarrazin <http://sarrazip.com/>
4 .\" Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
55 .\"
66 .\" This program is free software; you can redistribute it and/or
77 .\" modify it under the terms of the GNU General Public License
+1636
-745
ltmain.sh less more
0 # Generated from ltmain.m4sh.
1
2 # libtool (GNU libtool) 2.2.10
0
1 # libtool (GNU libtool) 2.4
32 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
43
54 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
6968 # compiler: $LTCC
7069 # compiler flags: $LTCFLAGS
7170 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.2.10
71 # $progname: (GNU libtool) 2.4
7372 # automake: $automake_version
7473 # autoconf: $autoconf_version
7574 #
7675 # Report bugs to <bug-libtool@gnu.org>.
76 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
77 # General help using GNU software: <http://www.gnu.org/gethelp/>.
7778
7879 PROGRAM=libtool
7980 PACKAGE=libtool
80 VERSION=2.2.10
81 VERSION=2.4
8182 TIMESTAMP=""
82 package_revision=1.3175
83 package_revision=1.3293
8384
8485 # Be Bourne compatible
8586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
162163 dirname="s,/[^/]*$,,"
163164 basename="s,^.*/,,"
164165
166 # func_dirname file append nondir_replacement
167 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
168 # otherwise set result to NONDIR_REPLACEMENT.
169 func_dirname ()
170 {
171 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
172 if test "X$func_dirname_result" = "X${1}"; then
173 func_dirname_result="${3}"
174 else
175 func_dirname_result="$func_dirname_result${2}"
176 fi
177 } # func_dirname may be replaced by extended shell implementation
178
179
180 # func_basename file
181 func_basename ()
182 {
183 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
184 } # func_basename may be replaced by extended shell implementation
185
186
165187 # func_dirname_and_basename file append nondir_replacement
166188 # perform func_basename and func_dirname in a single function
167189 # call:
176198 # those functions but instead duplicate the functionality here.
177199 func_dirname_and_basename ()
178200 {
179 # Extract subdirectory from the argument.
180 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
181 if test "X$func_dirname_result" = "X${1}"; then
182 func_dirname_result="${3}"
183 else
184 func_dirname_result="$func_dirname_result${2}"
185 fi
186 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
187 }
188
189 # Generated shell functions inserted here.
201 # Extract subdirectory from the argument.
202 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
203 if test "X$func_dirname_result" = "X${1}"; then
204 func_dirname_result="${3}"
205 else
206 func_dirname_result="$func_dirname_result${2}"
207 fi
208 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
209 } # func_dirname_and_basename may be replaced by extended shell implementation
210
211
212 # func_stripname prefix suffix name
213 # strip PREFIX and SUFFIX off of NAME.
214 # PREFIX and SUFFIX must not contain globbing or regex special
215 # characters, hashes, percent signs, but SUFFIX may contain a leading
216 # dot (in which case that matches only a dot).
217 # func_strip_suffix prefix name
218 func_stripname ()
219 {
220 case ${2} in
221 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
222 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
223 esac
224 } # func_stripname may be replaced by extended shell implementation
225
190226
191227 # These SED scripts presuppose an absolute path with a trailing slash.
192228 pathcar='s,^/\([^/]*\).*$,\1,'
369405 # Same as above, but do not quote variable references.
370406 double_quote_subst='s/\(["`\\]\)/\\\1/g'
371407
408 # Sed substitution that turns a string into a regex matching for the
409 # string literally.
410 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
411
412 # Sed substitution that converts a w32 file name or path
413 # which contains forward slashes, into one that contains
414 # (escaped) backslashes. A very naive implementation.
415 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
416
372417 # Re-`\' parameter expansions in output of double_quote_subst that were
373418 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
374419 # in input to double_quote_subst, that '$' was protected from expansion.
397442 # name if it has been set yet.
398443 func_echo ()
399444 {
400 $ECHO "$progname${mode+: }$mode: $*"
445 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
401446 }
402447
403448 # func_verbose arg...
423468 # Echo program name prefixed message to standard error.
424469 func_error ()
425470 {
426 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
471 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
427472 }
428473
429474 # func_warning arg...
430475 # Echo program name prefixed warning message to standard error.
431476 func_warning ()
432477 {
433 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
478 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
434479
435480 # bash bug again:
436481 :
649694 fi
650695 }
651696
697 # func_tr_sh
698 # Turn $1 into a string suitable for a shell variable name.
699 # Result is stored in $func_tr_sh_result. All characters
700 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
701 # if $1 begins with a digit, a '_' is prepended as well.
702 func_tr_sh ()
703 {
704 case $1 in
705 [0-9]* | *[!a-zA-Z0-9_]*)
706 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
707 ;;
708 * )
709 func_tr_sh_result=$1
710 ;;
711 esac
712 }
713
652714
653715 # func_version
654716 # Echo version message to standard output and exit.
655717 func_version ()
656718 {
719 $opt_debug
720
657721 $SED -n '/(C)/!b go
658722 :more
659723 /\./!{
675739 # Echo short help message to standard output and exit.
676740 func_usage ()
677741 {
742 $opt_debug
743
678744 $SED -n '/^# Usage:/,/^# *.*--help/ {
679745 s/^# //
680746 s/^# *$//
691757 # unless 'noexit' is passed as argument.
692758 func_help ()
693759 {
760 $opt_debug
761
694762 $SED -n '/^# Usage:/,/# Report bugs to/ {
763 :print
695764 s/^# //
696765 s/^# *$//
697766 s*\$progname*'$progname'*
704773 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
705774 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
706775 p
707 }' < "$progpath"
776 d
777 }
778 /^# .* home page:/b print
779 /^# General help using/b print
780 ' < "$progpath"
708781 ret=$?
709782 if test -z "$1"; then
710783 exit $ret
716789 # exit_cmd.
717790 func_missing_arg ()
718791 {
792 $opt_debug
793
719794 func_error "missing argument for $1."
720795 exit_cmd=exit
721796 }
722797
798
799 # func_split_short_opt shortopt
800 # Set func_split_short_opt_name and func_split_short_opt_arg shell
801 # variables after splitting SHORTOPT after the 2nd character.
802 func_split_short_opt ()
803 {
804 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
805 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
806
807 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
808 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
809 } # func_split_short_opt may be replaced by extended shell implementation
810
811
812 # func_split_long_opt longopt
813 # Set func_split_long_opt_name and func_split_long_opt_arg shell
814 # variables after splitting LONGOPT at the `=' sign.
815 func_split_long_opt ()
816 {
817 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
818 my_sed_long_arg='1s/^--[^=]*=//'
819
820 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
821 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
822 } # func_split_long_opt may be replaced by extended shell implementation
823
723824 exit_cmd=:
724
725825
726826
727827
731831 magic_exe="%%%MAGIC EXE variable%%%"
732832
733833 # Global variables.
734 # $mode is unset
735834 nonopt=
736 execute_dlfiles=
737835 preserve_args=
738836 lo2o="s/\\.lo\$/.${objext}/"
739837 o2lo="s/\\.${objext}\$/.lo/"
740838 extracted_archives=
741839 extracted_serial=0
742840
743 opt_dry_run=false
744 opt_duplicate_deps=false
745 opt_silent=false
746 opt_debug=:
747
748841 # If this variable is set in any of the actions, the command in it
749842 # will be execed at the end. This prevents here-documents from being
750843 # left over by shells.
751844 exec_cmd=
845
846 # func_append var value
847 # Append VALUE to the end of shell variable VAR.
848 func_append ()
849 {
850 eval "${1}=\$${1}\${2}"
851 } # func_append may be replaced by extended shell implementation
852
853 # func_append_quoted var value
854 # Quote VALUE and append to the end of shell variable VAR, separated
855 # by a space.
856 func_append_quoted ()
857 {
858 func_quote_for_eval "${2}"
859 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
860 } # func_append_quoted may be replaced by extended shell implementation
861
862
863 # func_arith arithmetic-term...
864 func_arith ()
865 {
866 func_arith_result=`expr "${@}"`
867 } # func_arith may be replaced by extended shell implementation
868
869
870 # func_len string
871 # STRING may not start with a hyphen.
872 func_len ()
873 {
874 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
875 } # func_len may be replaced by extended shell implementation
876
877
878 # func_lo2o object
879 func_lo2o ()
880 {
881 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
882 } # func_lo2o may be replaced by extended shell implementation
883
884
885 # func_xform libobj-or-source
886 func_xform ()
887 {
888 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
889 } # func_xform may be replaced by extended shell implementation
890
752891
753892 # func_fatal_configuration arg...
754893 # Echo program name prefixed message to standard error, followed by
837976 fi
838977 ;;
839978 esac
840 }
841
842 # Parse options once, thoroughly. This comes as soon as possible in
843 # the script to make things like `libtool --version' happen quickly.
844 {
845
846 # Shorthand for --mode=foo, only valid as the first argument
847 case $1 in
848 clean|clea|cle|cl)
849 shift; set dummy --mode clean ${1+"$@"}; shift
850 ;;
851 compile|compil|compi|comp|com|co|c)
852 shift; set dummy --mode compile ${1+"$@"}; shift
853 ;;
854 execute|execut|execu|exec|exe|ex|e)
855 shift; set dummy --mode execute ${1+"$@"}; shift
856 ;;
857 finish|finis|fini|fin|fi|f)
858 shift; set dummy --mode finish ${1+"$@"}; shift
859 ;;
860 install|instal|insta|inst|ins|in|i)
861 shift; set dummy --mode install ${1+"$@"}; shift
862 ;;
863 link|lin|li|l)
864 shift; set dummy --mode link ${1+"$@"}; shift
865 ;;
866 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
867 shift; set dummy --mode uninstall ${1+"$@"}; shift
868 ;;
869 esac
870
871 # Parse non-mode specific arguments:
872 while test "$#" -gt 0; do
873 opt="$1"
874 shift
875
876 case $opt in
877 --config) func_config ;;
878
879 --debug) preserve_args="$preserve_args $opt"
880 func_echo "enabling shell trace mode"
881 opt_debug='set -x'
882 $opt_debug
883 ;;
884
885 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
886 execute_dlfiles="$execute_dlfiles $1"
887 shift
888 ;;
889
890 --dry-run | -n) opt_dry_run=: ;;
891 --features) func_features ;;
892 --finish) mode="finish" ;;
893
894 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
895 case $1 in
896 # Valid mode arguments:
897 clean) ;;
898 compile) ;;
899 execute) ;;
900 finish) ;;
901 install) ;;
902 link) ;;
903 relink) ;;
904 uninstall) ;;
905
906 # Catch anything else as an error
907 *) func_error "invalid argument for $opt"
908 exit_cmd=exit
909 break
910 ;;
911 esac
912
913 mode="$1"
914 shift
915 ;;
916
917 --preserve-dup-deps)
918 opt_duplicate_deps=: ;;
919
920 --quiet|--silent) preserve_args="$preserve_args $opt"
921 opt_silent=:
922 opt_verbose=false
923 ;;
924
925 --no-quiet|--no-silent)
926 preserve_args="$preserve_args $opt"
927 opt_silent=false
928 ;;
929
930 --verbose| -v) preserve_args="$preserve_args $opt"
931 opt_silent=false
932 opt_verbose=:
933 ;;
934
935 --no-verbose) preserve_args="$preserve_args $opt"
936 opt_verbose=false
937 ;;
938
939 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
940 preserve_args="$preserve_args $opt $1"
941 func_enable_tag "$1" # tagname is set here
942 shift
943 ;;
944
945 # Separate optargs to long options:
946 -dlopen=*|--mode=*|--tag=*)
947 func_opt_split "$opt"
948 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
949 shift
950 ;;
951
952 -\?|-h) func_usage ;;
953 --help) opt_help=: ;;
954 --help-all) opt_help=': help-all' ;;
955 --version) func_version ;;
956
957 -*) func_fatal_help "unrecognized option \`$opt'" ;;
958
959 *) nonopt="$opt"
960 break
961 ;;
962 esac
963 done
964
965
966 case $host in
967 *cygwin* | *mingw* | *pw32* | *cegcc*)
968 # don't eliminate duplications in $postdeps and $predeps
969 opt_duplicate_compiler_generated_deps=:
970 ;;
971 *)
972 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
973 ;;
974 esac
975
976 # Having warned about all mis-specified options, bail out if
977 # anything was wrong.
978 $exit_cmd $EXIT_FAILURE
979979 }
980980
981981 # func_check_version_match
10141014 }
10151015
10161016
1017 # Shorthand for --mode=foo, only valid as the first argument
1018 case $1 in
1019 clean|clea|cle|cl)
1020 shift; set dummy --mode clean ${1+"$@"}; shift
1021 ;;
1022 compile|compil|compi|comp|com|co|c)
1023 shift; set dummy --mode compile ${1+"$@"}; shift
1024 ;;
1025 execute|execut|execu|exec|exe|ex|e)
1026 shift; set dummy --mode execute ${1+"$@"}; shift
1027 ;;
1028 finish|finis|fini|fin|fi|f)
1029 shift; set dummy --mode finish ${1+"$@"}; shift
1030 ;;
1031 install|instal|insta|inst|ins|in|i)
1032 shift; set dummy --mode install ${1+"$@"}; shift
1033 ;;
1034 link|lin|li|l)
1035 shift; set dummy --mode link ${1+"$@"}; shift
1036 ;;
1037 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1038 shift; set dummy --mode uninstall ${1+"$@"}; shift
1039 ;;
1040 esac
1041
1042
1043
1044 # Option defaults:
1045 opt_debug=:
1046 opt_dry_run=false
1047 opt_config=false
1048 opt_preserve_dup_deps=false
1049 opt_features=false
1050 opt_finish=false
1051 opt_help=false
1052 opt_help_all=false
1053 opt_silent=:
1054 opt_verbose=:
1055 opt_silent=false
1056 opt_verbose=false
1057
1058
1059 # Parse options once, thoroughly. This comes as soon as possible in the
1060 # script to make things like `--version' happen as quickly as we can.
1061 {
1062 # this just eases exit handling
1063 while test $# -gt 0; do
1064 opt="$1"
1065 shift
1066 case $opt in
1067 --debug|-x) opt_debug='set -x'
1068 func_echo "enabling shell trace mode"
1069 $opt_debug
1070 ;;
1071 --dry-run|--dryrun|-n)
1072 opt_dry_run=:
1073 ;;
1074 --config)
1075 opt_config=:
1076 func_config
1077 ;;
1078 --dlopen|-dlopen)
1079 optarg="$1"
1080 opt_dlopen="${opt_dlopen+$opt_dlopen
1081 }$optarg"
1082 shift
1083 ;;
1084 --preserve-dup-deps)
1085 opt_preserve_dup_deps=:
1086 ;;
1087 --features)
1088 opt_features=:
1089 func_features
1090 ;;
1091 --finish)
1092 opt_finish=:
1093 set dummy --mode finish ${1+"$@"}; shift
1094 ;;
1095 --help)
1096 opt_help=:
1097 ;;
1098 --help-all)
1099 opt_help_all=:
1100 opt_help=': help-all'
1101 ;;
1102 --mode)
1103 test $# = 0 && func_missing_arg $opt && break
1104 optarg="$1"
1105 opt_mode="$optarg"
1106 case $optarg in
1107 # Valid mode arguments:
1108 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1109
1110 # Catch anything else as an error
1111 *) func_error "invalid argument for $opt"
1112 exit_cmd=exit
1113 break
1114 ;;
1115 esac
1116 shift
1117 ;;
1118 --no-silent|--no-quiet)
1119 opt_silent=false
1120 func_append preserve_args " $opt"
1121 ;;
1122 --no-verbose)
1123 opt_verbose=false
1124 func_append preserve_args " $opt"
1125 ;;
1126 --silent|--quiet)
1127 opt_silent=:
1128 func_append preserve_args " $opt"
1129 opt_verbose=false
1130 ;;
1131 --verbose|-v)
1132 opt_verbose=:
1133 func_append preserve_args " $opt"
1134 opt_silent=false
1135 ;;
1136 --tag)
1137 test $# = 0 && func_missing_arg $opt && break
1138 optarg="$1"
1139 opt_tag="$optarg"
1140 func_append preserve_args " $opt $optarg"
1141 func_enable_tag "$optarg"
1142 shift
1143 ;;
1144
1145 -\?|-h) func_usage ;;
1146 --help) func_help ;;
1147 --version) func_version ;;
1148
1149 # Separate optargs to long options:
1150 --*=*)
1151 func_split_long_opt "$opt"
1152 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1153 shift
1154 ;;
1155
1156 # Separate non-argument short options:
1157 -\?*|-h*|-n*|-v*)
1158 func_split_short_opt "$opt"
1159 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1160 shift
1161 ;;
1162
1163 --) break ;;
1164 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1165 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1166 esac
1167 done
1168
1169 # Validate options:
1170
1171 # save first non-option argument
1172 if test "$#" -gt 0; then
1173 nonopt="$opt"
1174 shift
1175 fi
1176
1177 # preserve --debug
1178 test "$opt_debug" = : || func_append preserve_args " --debug"
1179
1180 case $host in
1181 *cygwin* | *mingw* | *pw32* | *cegcc*)
1182 # don't eliminate duplications in $postdeps and $predeps
1183 opt_duplicate_compiler_generated_deps=:
1184 ;;
1185 *)
1186 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1187 ;;
1188 esac
1189
1190 $opt_help || {
1191 # Sanity checks first:
1192 func_check_version_match
1193
1194 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1195 func_fatal_configuration "not configured to build any kind of library"
1196 fi
1197
1198 # Darwin sucks
1199 eval std_shrext=\"$shrext_cmds\"
1200
1201 # Only execute mode is allowed to have -dlopen flags.
1202 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1203 func_error "unrecognized option \`-dlopen'"
1204 $ECHO "$help" 1>&2
1205 exit $EXIT_FAILURE
1206 fi
1207
1208 # Change the help message to a mode-specific one.
1209 generic_help="$help"
1210 help="Try \`$progname --help --mode=$opt_mode' for more information."
1211 }
1212
1213
1214 # Bail if the options were screwed
1215 $exit_cmd $EXIT_FAILURE
1216 }
1217
1218
1219
1220
10171221 ## ----------- ##
10181222 ## Main. ##
10191223 ## ----------- ##
1020
1021 $opt_help || {
1022 # Sanity checks first:
1023 func_check_version_match
1024
1025 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1026 func_fatal_configuration "not configured to build any kind of library"
1027 fi
1028
1029 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
1030
1031
1032 # Darwin sucks
1033 eval std_shrext=\"$shrext_cmds\"
1034
1035
1036 # Only execute mode is allowed to have -dlopen flags.
1037 if test -n "$execute_dlfiles" && test "$mode" != execute; then
1038 func_error "unrecognized option \`-dlopen'"
1039 $ECHO "$help" 1>&2
1040 exit $EXIT_FAILURE
1041 fi
1042
1043 # Change the help message to a mode-specific one.
1044 generic_help="$help"
1045 help="Try \`$progname --help --mode=$mode' for more information."
1046 }
1047
10481224
10491225 # func_lalib_p file
10501226 # True iff FILE is a libtool `.la' library or `.lo' object file.
11091285 # temporary ltwrapper_script.
11101286 func_ltwrapper_scriptname ()
11111287 {
1112 func_ltwrapper_scriptname_result=""
1113 if func_ltwrapper_executable_p "$1"; then
1114 func_dirname_and_basename "$1" "" "."
1115 func_stripname '' '.exe' "$func_basename_result"
1116 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
1117 fi
1288 func_dirname_and_basename "$1" "" "."
1289 func_stripname '' '.exe' "$func_basename_result"
1290 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
11181291 }
11191292
11201293 # func_ltwrapper_p file
11601333 }
11611334
11621335
1336 # func_resolve_sysroot PATH
1337 # Replace a leading = in PATH with a sysroot. Store the result into
1338 # func_resolve_sysroot_result
1339 func_resolve_sysroot ()
1340 {
1341 func_resolve_sysroot_result=$1
1342 case $func_resolve_sysroot_result in
1343 =*)
1344 func_stripname '=' '' "$func_resolve_sysroot_result"
1345 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
1346 ;;
1347 esac
1348 }
1349
1350 # func_replace_sysroot PATH
1351 # If PATH begins with the sysroot, replace it with = and
1352 # store the result into func_replace_sysroot_result.
1353 func_replace_sysroot ()
1354 {
1355 case "$lt_sysroot:$1" in
1356 ?*:"$lt_sysroot"*)
1357 func_stripname "$lt_sysroot" '' "$1"
1358 func_replace_sysroot_result="=$func_stripname_result"
1359 ;;
1360 *)
1361 # Including no sysroot.
1362 func_replace_sysroot_result=$1
1363 ;;
1364 esac
1365 }
1366
11631367 # func_infer_tag arg
11641368 # Infer tagged configuration to use if any are available and
11651369 # if one wasn't chosen via the "--tag" command line option.
11721376 if test -n "$available_tags" && test -z "$tagname"; then
11731377 CC_quoted=
11741378 for arg in $CC; do
1175 func_quote_for_eval "$arg"
1176 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1379 func_append_quoted CC_quoted "$arg"
11771380 done
11781381 CC_expanded=`func_echo_all $CC`
11791382 CC_quoted_expanded=`func_echo_all $CC_quoted`
11921395 CC_quoted=
11931396 for arg in $CC; do
11941397 # Double-quote args containing other shell metacharacters.
1195 func_quote_for_eval "$arg"
1196 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1398 func_append_quoted CC_quoted "$arg"
11971399 done
11981400 CC_expanded=`func_echo_all $CC`
11991401 CC_quoted_expanded=`func_echo_all $CC_quoted`
12621464 }
12631465 }
12641466
1467
1468 ##################################################
1469 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
1470 ##################################################
1471
1472 # func_convert_core_file_wine_to_w32 ARG
1473 # Helper function used by file name conversion functions when $build is *nix,
1474 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
1475 # correctly configured wine environment available, with the winepath program
1476 # in $build's $PATH.
1477 #
1478 # ARG is the $build file name to be converted to w32 format.
1479 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
1480 # be empty on error (or when ARG is empty)
1481 func_convert_core_file_wine_to_w32 ()
1482 {
1483 $opt_debug
1484 func_convert_core_file_wine_to_w32_result="$1"
1485 if test -n "$1"; then
1486 # Unfortunately, winepath does not exit with a non-zero error code, so we
1487 # are forced to check the contents of stdout. On the other hand, if the
1488 # command is not found, the shell will set an exit code of 127 and print
1489 # *an error message* to stdout. So we must check for both error code of
1490 # zero AND non-empty stdout, which explains the odd construction:
1491 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1492 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1493 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1494 $SED -e "$lt_sed_naive_backslashify"`
1495 else
1496 func_convert_core_file_wine_to_w32_result=
1497 fi
1498 fi
1499 }
1500 # end: func_convert_core_file_wine_to_w32
1501
1502
1503 # func_convert_core_path_wine_to_w32 ARG
1504 # Helper function used by path conversion functions when $build is *nix, and
1505 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
1506 # configured wine environment available, with the winepath program in $build's
1507 # $PATH. Assumes ARG has no leading or trailing path separator characters.
1508 #
1509 # ARG is path to be converted from $build format to win32.
1510 # Result is available in $func_convert_core_path_wine_to_w32_result.
1511 # Unconvertible file (directory) names in ARG are skipped; if no directory names
1512 # are convertible, then the result may be empty.
1513 func_convert_core_path_wine_to_w32 ()
1514 {
1515 $opt_debug
1516 # unfortunately, winepath doesn't convert paths, only file names
1517 func_convert_core_path_wine_to_w32_result=""
1518 if test -n "$1"; then
1519 oldIFS=$IFS
1520 IFS=:
1521 for func_convert_core_path_wine_to_w32_f in $1; do
1522 IFS=$oldIFS
1523 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1524 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1525 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1526 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
1527 else
1528 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
1529 fi
1530 fi
1531 done
1532 IFS=$oldIFS
1533 fi
1534 }
1535 # end: func_convert_core_path_wine_to_w32
1536
1537
1538 # func_cygpath ARGS...
1539 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
1540 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
1541 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
1542 # (2), returns the Cygwin file name or path in func_cygpath_result (input
1543 # file name or path is assumed to be in w32 format, as previously converted
1544 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
1545 # or path in func_cygpath_result (input file name or path is assumed to be in
1546 # Cygwin format). Returns an empty string on error.
1547 #
1548 # ARGS are passed to cygpath, with the last one being the file name or path to
1549 # be converted.
1550 #
1551 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
1552 # environment variable; do not put it in $PATH.
1553 func_cygpath ()
1554 {
1555 $opt_debug
1556 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1557 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
1558 if test "$?" -ne 0; then
1559 # on failure, ensure result is empty
1560 func_cygpath_result=
1561 fi
1562 else
1563 func_cygpath_result=
1564 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1565 fi
1566 }
1567 #end: func_cygpath
1568
1569
1570 # func_convert_core_msys_to_w32 ARG
1571 # Convert file name or path ARG from MSYS format to w32 format. Return
1572 # result in func_convert_core_msys_to_w32_result.
1573 func_convert_core_msys_to_w32 ()
1574 {
1575 $opt_debug
1576 # awkward: cmd appends spaces to result
1577 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1578 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1579 }
1580 #end: func_convert_core_msys_to_w32
1581
1582
1583 # func_convert_file_check ARG1 ARG2
1584 # Verify that ARG1 (a file name in $build format) was converted to $host
1585 # format in ARG2. Otherwise, emit an error message, but continue (resetting
1586 # func_to_host_file_result to ARG1).
1587 func_convert_file_check ()
1588 {
1589 $opt_debug
1590 if test -z "$2" && test -n "$1" ; then
1591 func_error "Could not determine host file name corresponding to"
1592 func_error " \`$1'"
1593 func_error "Continuing, but uninstalled executables may not work."
1594 # Fallback:
1595 func_to_host_file_result="$1"
1596 fi
1597 }
1598 # end func_convert_file_check
1599
1600
1601 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
1602 # Verify that FROM_PATH (a path in $build format) was converted to $host
1603 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
1604 # func_to_host_file_result to a simplistic fallback value (see below).
1605 func_convert_path_check ()
1606 {
1607 $opt_debug
1608 if test -z "$4" && test -n "$3"; then
1609 func_error "Could not determine the host path corresponding to"
1610 func_error " \`$3'"
1611 func_error "Continuing, but uninstalled executables may not work."
1612 # Fallback. This is a deliberately simplistic "conversion" and
1613 # should not be "improved". See libtool.info.
1614 if test "x$1" != "x$2"; then
1615 lt_replace_pathsep_chars="s|$1|$2|g"
1616 func_to_host_path_result=`echo "$3" |
1617 $SED -e "$lt_replace_pathsep_chars"`
1618 else
1619 func_to_host_path_result="$3"
1620 fi
1621 fi
1622 }
1623 # end func_convert_path_check
1624
1625
1626 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
1627 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
1628 # and appending REPL if ORIG matches BACKPAT.
1629 func_convert_path_front_back_pathsep ()
1630 {
1631 $opt_debug
1632 case $4 in
1633 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
1634 ;;
1635 esac
1636 case $4 in
1637 $2 ) func_append func_to_host_path_result "$3"
1638 ;;
1639 esac
1640 }
1641 # end func_convert_path_front_back_pathsep
1642
1643
1644 ##################################################
1645 # $build to $host FILE NAME CONVERSION FUNCTIONS #
1646 ##################################################
1647 # invoked via `$to_host_file_cmd ARG'
1648 #
1649 # In each case, ARG is the path to be converted from $build to $host format.
1650 # Result will be available in $func_to_host_file_result.
1651
1652
1653 # func_to_host_file ARG
1654 # Converts the file name ARG from $build format to $host format. Return result
1655 # in func_to_host_file_result.
1656 func_to_host_file ()
1657 {
1658 $opt_debug
1659 $to_host_file_cmd "$1"
1660 }
1661 # end func_to_host_file
1662
1663
1664 # func_to_tool_file ARG LAZY
1665 # converts the file name ARG from $build format to toolchain format. Return
1666 # result in func_to_tool_file_result. If the conversion in use is listed
1667 # in (the comma separated) LAZY, no conversion takes place.
1668 func_to_tool_file ()
1669 {
1670 $opt_debug
1671 case ,$2, in
1672 *,"$to_tool_file_cmd",*)
1673 func_to_tool_file_result=$1
1674 ;;
1675 *)
1676 $to_tool_file_cmd "$1"
1677 func_to_tool_file_result=$func_to_host_file_result
1678 ;;
1679 esac
1680 }
1681 # end func_to_tool_file
1682
1683
1684 # func_convert_file_noop ARG
1685 # Copy ARG to func_to_host_file_result.
1686 func_convert_file_noop ()
1687 {
1688 func_to_host_file_result="$1"
1689 }
1690 # end func_convert_file_noop
1691
1692
1693 # func_convert_file_msys_to_w32 ARG
1694 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
1695 # conversion to w32 is not available inside the cwrapper. Returns result in
1696 # func_to_host_file_result.
1697 func_convert_file_msys_to_w32 ()
1698 {
1699 $opt_debug
1700 func_to_host_file_result="$1"
1701 if test -n "$1"; then
1702 func_convert_core_msys_to_w32 "$1"
1703 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
1704 fi
1705 func_convert_file_check "$1" "$func_to_host_file_result"
1706 }
1707 # end func_convert_file_msys_to_w32
1708
1709
1710 # func_convert_file_cygwin_to_w32 ARG
1711 # Convert file name ARG from Cygwin to w32 format. Returns result in
1712 # func_to_host_file_result.
1713 func_convert_file_cygwin_to_w32 ()
1714 {
1715 $opt_debug
1716 func_to_host_file_result="$1"
1717 if test -n "$1"; then
1718 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
1719 # LT_CYGPATH in this case.
1720 func_to_host_file_result=`cygpath -m "$1"`
1721 fi
1722 func_convert_file_check "$1" "$func_to_host_file_result"
1723 }
1724 # end func_convert_file_cygwin_to_w32
1725
1726
1727 # func_convert_file_nix_to_w32 ARG
1728 # Convert file name ARG from *nix to w32 format. Requires a wine environment
1729 # and a working winepath. Returns result in func_to_host_file_result.
1730 func_convert_file_nix_to_w32 ()
1731 {
1732 $opt_debug
1733 func_to_host_file_result="$1"
1734 if test -n "$1"; then
1735 func_convert_core_file_wine_to_w32 "$1"
1736 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
1737 fi
1738 func_convert_file_check "$1" "$func_to_host_file_result"
1739 }
1740 # end func_convert_file_nix_to_w32
1741
1742
1743 # func_convert_file_msys_to_cygwin ARG
1744 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1745 # Returns result in func_to_host_file_result.
1746 func_convert_file_msys_to_cygwin ()
1747 {
1748 $opt_debug
1749 func_to_host_file_result="$1"
1750 if test -n "$1"; then
1751 func_convert_core_msys_to_w32 "$1"
1752 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1753 func_to_host_file_result="$func_cygpath_result"
1754 fi
1755 func_convert_file_check "$1" "$func_to_host_file_result"
1756 }
1757 # end func_convert_file_msys_to_cygwin
1758
1759
1760 # func_convert_file_nix_to_cygwin ARG
1761 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
1762 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
1763 # in func_to_host_file_result.
1764 func_convert_file_nix_to_cygwin ()
1765 {
1766 $opt_debug
1767 func_to_host_file_result="$1"
1768 if test -n "$1"; then
1769 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
1770 func_convert_core_file_wine_to_w32 "$1"
1771 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1772 func_to_host_file_result="$func_cygpath_result"
1773 fi
1774 func_convert_file_check "$1" "$func_to_host_file_result"
1775 }
1776 # end func_convert_file_nix_to_cygwin
1777
1778
1779 #############################################
1780 # $build to $host PATH CONVERSION FUNCTIONS #
1781 #############################################
1782 # invoked via `$to_host_path_cmd ARG'
1783 #
1784 # In each case, ARG is the path to be converted from $build to $host format.
1785 # The result will be available in $func_to_host_path_result.
1786 #
1787 # Path separators are also converted from $build format to $host format. If
1788 # ARG begins or ends with a path separator character, it is preserved (but
1789 # converted to $host format) on output.
1790 #
1791 # All path conversion functions are named using the following convention:
1792 # file name conversion function : func_convert_file_X_to_Y ()
1793 # path conversion function : func_convert_path_X_to_Y ()
1794 # where, for any given $build/$host combination the 'X_to_Y' value is the
1795 # same. If conversion functions are added for new $build/$host combinations,
1796 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
1797 # will break.
1798
1799
1800 # func_init_to_host_path_cmd
1801 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
1802 # appropriate value, based on the value of $to_host_file_cmd.
1803 to_host_path_cmd=
1804 func_init_to_host_path_cmd ()
1805 {
1806 $opt_debug
1807 if test -z "$to_host_path_cmd"; then
1808 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1809 to_host_path_cmd="func_convert_path_${func_stripname_result}"
1810 fi
1811 }
1812
1813
1814 # func_to_host_path ARG
1815 # Converts the path ARG from $build format to $host format. Return result
1816 # in func_to_host_path_result.
1817 func_to_host_path ()
1818 {
1819 $opt_debug
1820 func_init_to_host_path_cmd
1821 $to_host_path_cmd "$1"
1822 }
1823 # end func_to_host_path
1824
1825
1826 # func_convert_path_noop ARG
1827 # Copy ARG to func_to_host_path_result.
1828 func_convert_path_noop ()
1829 {
1830 func_to_host_path_result="$1"
1831 }
1832 # end func_convert_path_noop
1833
1834
1835 # func_convert_path_msys_to_w32 ARG
1836 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
1837 # conversion to w32 is not available inside the cwrapper. Returns result in
1838 # func_to_host_path_result.
1839 func_convert_path_msys_to_w32 ()
1840 {
1841 $opt_debug
1842 func_to_host_path_result="$1"
1843 if test -n "$1"; then
1844 # Remove leading and trailing path separator characters from ARG. MSYS
1845 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
1846 # and winepath ignores them completely.
1847 func_stripname : : "$1"
1848 func_to_host_path_tmp1=$func_stripname_result
1849 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1850 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
1851 func_convert_path_check : ";" \
1852 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1853 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1854 fi
1855 }
1856 # end func_convert_path_msys_to_w32
1857
1858
1859 # func_convert_path_cygwin_to_w32 ARG
1860 # Convert path ARG from Cygwin to w32 format. Returns result in
1861 # func_to_host_file_result.
1862 func_convert_path_cygwin_to_w32 ()
1863 {
1864 $opt_debug
1865 func_to_host_path_result="$1"
1866 if test -n "$1"; then
1867 # See func_convert_path_msys_to_w32:
1868 func_stripname : : "$1"
1869 func_to_host_path_tmp1=$func_stripname_result
1870 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1871 func_convert_path_check : ";" \
1872 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1873 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1874 fi
1875 }
1876 # end func_convert_path_cygwin_to_w32
1877
1878
1879 # func_convert_path_nix_to_w32 ARG
1880 # Convert path ARG from *nix to w32 format. Requires a wine environment and
1881 # a working winepath. Returns result in func_to_host_file_result.
1882 func_convert_path_nix_to_w32 ()
1883 {
1884 $opt_debug
1885 func_to_host_path_result="$1"
1886 if test -n "$1"; then
1887 # See func_convert_path_msys_to_w32:
1888 func_stripname : : "$1"
1889 func_to_host_path_tmp1=$func_stripname_result
1890 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1891 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
1892 func_convert_path_check : ";" \
1893 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1894 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1895 fi
1896 }
1897 # end func_convert_path_nix_to_w32
1898
1899
1900 # func_convert_path_msys_to_cygwin ARG
1901 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1902 # Returns result in func_to_host_file_result.
1903 func_convert_path_msys_to_cygwin ()
1904 {
1905 $opt_debug
1906 func_to_host_path_result="$1"
1907 if test -n "$1"; then
1908 # See func_convert_path_msys_to_w32:
1909 func_stripname : : "$1"
1910 func_to_host_path_tmp1=$func_stripname_result
1911 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1912 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1913 func_to_host_path_result="$func_cygpath_result"
1914 func_convert_path_check : : \
1915 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1916 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1917 fi
1918 }
1919 # end func_convert_path_msys_to_cygwin
1920
1921
1922 # func_convert_path_nix_to_cygwin ARG
1923 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
1924 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
1925 # func_to_host_file_result.
1926 func_convert_path_nix_to_cygwin ()
1927 {
1928 $opt_debug
1929 func_to_host_path_result="$1"
1930 if test -n "$1"; then
1931 # Remove leading and trailing path separator characters from
1932 # ARG. msys behavior is inconsistent here, cygpath turns them
1933 # into '.;' and ';.', and winepath ignores them completely.
1934 func_stripname : : "$1"
1935 func_to_host_path_tmp1=$func_stripname_result
1936 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1937 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1938 func_to_host_path_result="$func_cygpath_result"
1939 func_convert_path_check : : \
1940 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1941 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1942 fi
1943 }
1944 # end func_convert_path_nix_to_cygwin
1945
1946
12651947 # func_mode_compile arg...
12661948 func_mode_compile ()
12671949 {
13021984 ;;
13031985
13041986 -pie | -fpie | -fPIE)
1305 pie_flag="$pie_flag $arg"
1987 func_append pie_flag " $arg"
13061988 continue
13071989 ;;
13081990
13091991 -shared | -static | -prefer-pic | -prefer-non-pic)
1310 later="$later $arg"
1992 func_append later " $arg"
13111993 continue
13121994 ;;
13131995
13282010 save_ifs="$IFS"; IFS=','
13292011 for arg in $args; do
13302012 IFS="$save_ifs"
1331 func_quote_for_eval "$arg"
1332 lastarg="$lastarg $func_quote_for_eval_result"
2013 func_append_quoted lastarg "$arg"
13332014 done
13342015 IFS="$save_ifs"
13352016 func_stripname ' ' '' "$lastarg"
13362017 lastarg=$func_stripname_result
13372018
13382019 # Add the arguments to base_compile.
1339 base_compile="$base_compile $lastarg"
2020 func_append base_compile " $lastarg"
13402021 continue
13412022 ;;
13422023
13522033 esac # case $arg_mode
13532034
13542035 # Aesthetically quote the previous argument.
1355 func_quote_for_eval "$lastarg"
1356 base_compile="$base_compile $func_quote_for_eval_result"
2036 func_append_quoted base_compile "$lastarg"
13572037 done # for arg
13582038
13592039 case $arg_mode in
14842164 $opt_dry_run || $RM $removelist
14852165 exit $EXIT_FAILURE
14862166 fi
1487 removelist="$removelist $output_obj"
2167 func_append removelist " $output_obj"
14882168 $ECHO "$srcfile" > "$lockfile"
14892169 fi
14902170
14912171 $opt_dry_run || $RM $removelist
1492 removelist="$removelist $lockfile"
2172 func_append removelist " $lockfile"
14932173 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
14942174
1495 if test -n "$fix_srcfile_path"; then
1496 eval srcfile=\"$fix_srcfile_path\"
1497 fi
2175 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2176 srcfile=$func_to_tool_file_result
14982177 func_quote_for_eval "$srcfile"
14992178 qsrcfile=$func_quote_for_eval_result
15002179
15142193
15152194 if test -z "$output_obj"; then
15162195 # Place PIC objects in $objdir
1517 command="$command -o $lobj"
2196 func_append command " -o $lobj"
15182197 fi
15192198
15202199 func_show_eval_locale "$command" \
15612240 command="$base_compile $qsrcfile $pic_flag"
15622241 fi
15632242 if test "$compiler_c_o" = yes; then
1564 command="$command -o $obj"
2243 func_append command " -o $obj"
15652244 fi
15662245
15672246 # Suppress compiler output if we already did a PIC compilation.
1568 command="$command$suppress_output"
2247 func_append command "$suppress_output"
15692248 func_show_eval_locale "$command" \
15702249 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
15712250
16102289 }
16112290
16122291 $opt_help || {
1613 test "$mode" = compile && func_mode_compile ${1+"$@"}
2292 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
16142293 }
16152294
16162295 func_mode_help ()
16172296 {
16182297 # We need to display help for each of the modes.
1619 case $mode in
2298 case $opt_mode in
16202299 "")
16212300 # Generic help is extracted from the usage comments
16222301 # at the start of this file.
17922471 ;;
17932472
17942473 *)
1795 func_fatal_help "invalid operation mode \`$mode'"
2474 func_fatal_help "invalid operation mode \`$opt_mode'"
17962475 ;;
17972476 esac
17982477
18072486 else
18082487 {
18092488 func_help noexit
1810 for mode in compile link execute install finish uninstall clean; do
2489 for opt_mode in compile link execute install finish uninstall clean; do
18112490 func_mode_help
18122491 done
18132492 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
18142493 {
18152494 func_help noexit
1816 for mode in compile link execute install finish uninstall clean; do
2495 for opt_mode in compile link execute install finish uninstall clean; do
18172496 echo
18182497 func_mode_help
18192498 done
18422521 func_fatal_help "you must specify a COMMAND"
18432522
18442523 # Handle -dlopen flags immediately.
1845 for file in $execute_dlfiles; do
2524 for file in $opt_dlopen; do
18462525 test -f "$file" \
18472526 || func_fatal_help "\`$file' is not a file"
18482527
18492528 dir=
18502529 case $file in
18512530 *.la)
2531 func_resolve_sysroot "$file"
2532 file=$func_resolve_sysroot_result
2533
18522534 # Check to see that this really is a libtool archive.
18532535 func_lalib_unsafe_p "$file" \
18542536 || func_fatal_help "\`$lib' is not a valid libtool archive"
18702552 dir="$func_dirname_result"
18712553
18722554 if test -f "$dir/$objdir/$dlname"; then
1873 dir="$dir/$objdir"
2555 func_append dir "/$objdir"
18742556 else
18752557 if test ! -f "$dir/$dlname"; then
18762558 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
19272609 ;;
19282610 esac
19292611 # Quote arguments (to preserve shell metacharacters).
1930 func_quote_for_eval "$file"
1931 args="$args $func_quote_for_eval_result"
2612 func_append_quoted args "$file"
19322613 done
19332614
19342615 if test "X$opt_dry_run" = Xfalse; then
19602641 fi
19612642 }
19622643
1963 test "$mode" = execute && func_mode_execute ${1+"$@"}
2644 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
19642645
19652646
19662647 # func_mode_finish arg...
19672648 func_mode_finish ()
19682649 {
19692650 $opt_debug
1970 libdirs="$nonopt"
2651 libs=
2652 libdirs=
19712653 admincmds=
19722654
2655 for opt in "$nonopt" ${1+"$@"}
2656 do
2657 if test -d "$opt"; then
2658 func_append libdirs " $opt"
2659
2660 elif test -f "$opt"; then
2661 if func_lalib_unsafe_p "$opt"; then
2662 func_append libs " $opt"
2663 else
2664 func_warning "\`$opt' is not a valid libtool archive"
2665 fi
2666
2667 else
2668 func_fatal_error "invalid argument \`$opt'"
2669 fi
2670 done
2671
2672 if test -n "$libs"; then
2673 if test -n "$lt_sysroot"; then
2674 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
2675 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
2676 else
2677 sysroot_cmd=
2678 fi
2679
2680 # Remove sysroot references
2681 if $opt_dry_run; then
2682 for lib in $libs; do
2683 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
2684 done
2685 else
2686 tmpdir=`func_mktempdir`
2687 for lib in $libs; do
2688 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2689 > $tmpdir/tmp-la
2690 mv -f $tmpdir/tmp-la $lib
2691 done
2692 ${RM}r "$tmpdir"
2693 fi
2694 fi
2695
19732696 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1974 for dir
1975 do
1976 libdirs="$libdirs $dir"
1977 done
1978
19792697 for libdir in $libdirs; do
19802698 if test -n "$finish_cmds"; then
19812699 # Do each command in the finish commands.
19852703 if test -n "$finish_eval"; then
19862704 # Do the single finish_eval.
19872705 eval cmds=\"$finish_eval\"
1988 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
2706 $opt_dry_run || eval "$cmds" || func_append admincmds "
19892707 $cmds"
19902708 fi
19912709 done
19942712 # Exit here if they wanted silent mode.
19952713 $opt_silent && exit $EXIT_SUCCESS
19962714
1997 echo "----------------------------------------------------------------------"
1998 echo "Libraries have been installed in:"
1999 for libdir in $libdirs; do
2000 $ECHO " $libdir"
2001 done
2002 echo
2003 echo "If you ever happen to want to link against installed libraries"
2004 echo "in a given directory, LIBDIR, you must either use libtool, and"
2005 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2006 echo "flag during linking and do at least one of the following:"
2007 if test -n "$shlibpath_var"; then
2008 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2009 echo " during execution"
2715 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2716 echo "----------------------------------------------------------------------"
2717 echo "Libraries have been installed in:"
2718 for libdir in $libdirs; do
2719 $ECHO " $libdir"
2720 done
2721 echo
2722 echo "If you ever happen to want to link against installed libraries"
2723 echo "in a given directory, LIBDIR, you must either use libtool, and"
2724 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2725 echo "flag during linking and do at least one of the following:"
2726 if test -n "$shlibpath_var"; then
2727 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2728 echo " during execution"
2729 fi
2730 if test -n "$runpath_var"; then
2731 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2732 echo " during linking"
2733 fi
2734 if test -n "$hardcode_libdir_flag_spec"; then
2735 libdir=LIBDIR
2736 eval flag=\"$hardcode_libdir_flag_spec\"
2737
2738 $ECHO " - use the \`$flag' linker flag"
2739 fi
2740 if test -n "$admincmds"; then
2741 $ECHO " - have your system administrator run these commands:$admincmds"
2742 fi
2743 if test -f /etc/ld.so.conf; then
2744 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2745 fi
2746 echo
2747
2748 echo "See any operating system documentation about shared libraries for"
2749 case $host in
2750 solaris2.[6789]|solaris2.1[0-9])
2751 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2752 echo "pages."
2753 ;;
2754 *)
2755 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2756 ;;
2757 esac
2758 echo "----------------------------------------------------------------------"
20102759 fi
2011 if test -n "$runpath_var"; then
2012 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2013 echo " during linking"
2014 fi
2015 if test -n "$hardcode_libdir_flag_spec"; then
2016 libdir=LIBDIR
2017 eval flag=\"$hardcode_libdir_flag_spec\"
2018
2019 $ECHO " - use the \`$flag' linker flag"
2020 fi
2021 if test -n "$admincmds"; then
2022 $ECHO " - have your system administrator run these commands:$admincmds"
2023 fi
2024 if test -f /etc/ld.so.conf; then
2025 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2026 fi
2027 echo
2028
2029 echo "See any operating system documentation about shared libraries for"
2030 case $host in
2031 solaris2.[6789]|solaris2.1[0-9])
2032 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2033 echo "pages."
2034 ;;
2035 *)
2036 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2037 ;;
2038 esac
2039 echo "----------------------------------------------------------------------"
20402760 exit $EXIT_SUCCESS
20412761 }
20422762
2043 test "$mode" = finish && func_mode_finish ${1+"$@"}
2763 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
20442764
20452765
20462766 # func_mode_install arg...
20652785 # The real first argument should be the name of the installation program.
20662786 # Aesthetically quote it.
20672787 func_quote_for_eval "$arg"
2068 install_prog="$install_prog$func_quote_for_eval_result"
2788 func_append install_prog "$func_quote_for_eval_result"
20692789 install_shared_prog=$install_prog
20702790 case " $install_prog " in
20712791 *[\\\ /]cp\ *) install_cp=: ;;
20852805 do
20862806 arg2=
20872807 if test -n "$dest"; then
2088 files="$files $dest"
2808 func_append files " $dest"
20892809 dest=$arg
20902810 continue
20912811 fi
21232843
21242844 # Aesthetically quote the argument.
21252845 func_quote_for_eval "$arg"
2126 install_prog="$install_prog $func_quote_for_eval_result"
2846 func_append install_prog " $func_quote_for_eval_result"
21272847 if test -n "$arg2"; then
21282848 func_quote_for_eval "$arg2"
21292849 fi
2130 install_shared_prog="$install_shared_prog $func_quote_for_eval_result"
2850 func_append install_shared_prog " $func_quote_for_eval_result"
21312851 done
21322852
21332853 test -z "$install_prog" && \
21392859 if test -n "$install_override_mode" && $no_mode; then
21402860 if $install_cp; then :; else
21412861 func_quote_for_eval "$install_override_mode"
2142 install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
2862 func_append install_shared_prog " -m $func_quote_for_eval_result"
21432863 fi
21442864 fi
21452865
21972917 case $file in
21982918 *.$libext)
21992919 # Do the static libraries later.
2200 staticlibs="$staticlibs $file"
2920 func_append staticlibs " $file"
22012921 ;;
22022922
22032923 *.la)
2924 func_resolve_sysroot "$file"
2925 file=$func_resolve_sysroot_result
2926
22042927 # Check to see that this really is a libtool archive.
22052928 func_lalib_unsafe_p "$file" \
22062929 || func_fatal_help "\`$file' is not a valid libtool archive"
22142937 if test "X$destdir" = "X$libdir"; then
22152938 case "$current_libdirs " in
22162939 *" $libdir "*) ;;
2217 *) current_libdirs="$current_libdirs $libdir" ;;
2940 *) func_append current_libdirs " $libdir" ;;
22182941 esac
22192942 else
22202943 # Note the libdir as a future libdir.
22212944 case "$future_libdirs " in
22222945 *" $libdir "*) ;;
2223 *) future_libdirs="$future_libdirs $libdir" ;;
2946 *) func_append future_libdirs " $libdir" ;;
22242947 esac
22252948 fi
22262949
22272950 func_dirname "$file" "/" ""
22282951 dir="$func_dirname_result"
2229 dir="$dir$objdir"
2952 func_append dir "$objdir"
22302953
22312954 if test -n "$relink_command"; then
22322955 # Determine the prefix the user has applied to our future dir.
23033026 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
23043027
23053028 # Maybe install the static library, too.
2306 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
3029 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
23073030 ;;
23083031
23093032 *.lo)
25003223 fi
25013224 }
25023225
2503 test "$mode" = install && func_mode_install ${1+"$@"}
3226 test "$opt_mode" = install && func_mode_install ${1+"$@"}
25043227
25053228
25063229 # func_generate_dlsyms outputname originator pic_p
25473270 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
25483271 #endif
25493272
3273 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3274 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3275 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3276 relocations are performed -- see ld's documentation on pseudo-relocs. */
3277 # define LT_DLSYM_CONST
3278 #elif defined(__osf__)
3279 /* This system does not cope well with relocations in const data. */
3280 # define LT_DLSYM_CONST
3281 #else
3282 # define LT_DLSYM_CONST const
3283 #endif
3284
25503285 /* External symbol declarations for the compiler. */\
25513286 "
25523287
25583293 # Add our own program objects to the symbol list.
25593294 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
25603295 for progfile in $progfiles; do
2561 func_verbose "extracting global C symbols from \`$progfile'"
2562 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
3296 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3297 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
3298 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
25633299 done
25643300
25653301 if test -n "$exclude_expsyms"; then
26083344 func_verbose "extracting global C symbols from \`$dlprefile'"
26093345 func_basename "$dlprefile"
26103346 name="$func_basename_result"
2611 $opt_dry_run || {
2612 eval '$ECHO ": $name " >> "$nlist"'
2613 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2614 }
3347 case $host in
3348 *cygwin* | *mingw* | *cegcc* )
3349 # if an import library, we need to obtain dlname
3350 if func_win32_import_lib_p "$dlprefile"; then
3351 func_tr_sh "$dlprefile"
3352 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3353 dlprefile_dlbasename=""
3354 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3355 # Use subshell, to avoid clobbering current variable values
3356 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3357 if test -n "$dlprefile_dlname" ; then
3358 func_basename "$dlprefile_dlname"
3359 dlprefile_dlbasename="$func_basename_result"
3360 else
3361 # no lafile. user explicitly requested -dlpreopen <import library>.
3362 $sharedlib_from_linklib_cmd "$dlprefile"
3363 dlprefile_dlbasename=$sharedlib_from_linklib_result
3364 fi
3365 fi
3366 $opt_dry_run || {
3367 if test -n "$dlprefile_dlbasename" ; then
3368 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
3369 else
3370 func_warning "Could not compute DLL name from $name"
3371 eval '$ECHO ": $name " >> "$nlist"'
3372 fi
3373 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3374 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
3375 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3376 }
3377 else # not an import lib
3378 $opt_dry_run || {
3379 eval '$ECHO ": $name " >> "$nlist"'
3380 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3381 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3382 }
3383 fi
3384 ;;
3385 *)
3386 $opt_dry_run || {
3387 eval '$ECHO ": $name " >> "$nlist"'
3388 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3389 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3390 }
3391 ;;
3392 esac
26153393 done
26163394
26173395 $opt_dry_run || {
26493427 const char *name;
26503428 void *address;
26513429 } lt_dlsymlist;
2652 "
2653 case $host in
2654 *cygwin* | *mingw* | *cegcc* )
2655 echo >> "$output_objdir/$my_dlsyms" "\
2656 /* DATA imports from DLLs on WIN32 con't be const, because
2657 runtime relocations are performed -- see ld's documentation
2658 on pseudo-relocs. */"
2659 lt_dlsym_const= ;;
2660 *osf5*)
2661 echo >> "$output_objdir/$my_dlsyms" "\
2662 /* This system does not cope well with relocations in const data */"
2663 lt_dlsym_const= ;;
2664 *)
2665 lt_dlsym_const=const ;;
2666 esac
2667
2668 echo >> "$output_objdir/$my_dlsyms" "\
2669 extern $lt_dlsym_const lt_dlsymlist
3430 extern LT_DLSYM_CONST lt_dlsymlist
26703431 lt_${my_prefix}_LTX_preloaded_symbols[];
2671 $lt_dlsym_const lt_dlsymlist
3432 LT_DLSYM_CONST lt_dlsymlist
26723433 lt_${my_prefix}_LTX_preloaded_symbols[] =
26733434 {\
26743435 { \"$my_originator\", (void *) 0 },"
27243485 for arg in $LTCFLAGS; do
27253486 case $arg in
27263487 -pie | -fpie | -fPIE) ;;
2727 *) symtab_cflags="$symtab_cflags $arg" ;;
3488 *) func_append symtab_cflags " $arg" ;;
27283489 esac
27293490 done
27303491
27873548 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
27883549 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
27893550 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
2790 win32_nmres=`eval $NM -f posix -A $1 |
3551 func_to_tool_file "$1" func_convert_file_msys_to_w32
3552 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
27913553 $SED -n -e '
27923554 1,100{
27933555 / I /{
28163578 $ECHO "$win32_libid_type"
28173579 }
28183580
3581 # func_cygming_dll_for_implib ARG
3582 #
3583 # Platform-specific function to extract the
3584 # name of the DLL associated with the specified
3585 # import library ARG.
3586 # Invoked by eval'ing the libtool variable
3587 # $sharedlib_from_linklib_cmd
3588 # Result is available in the variable
3589 # $sharedlib_from_linklib_result
3590 func_cygming_dll_for_implib ()
3591 {
3592 $opt_debug
3593 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3594 }
3595
3596 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
3597 #
3598 # The is the core of a fallback implementation of a
3599 # platform-specific function to extract the name of the
3600 # DLL associated with the specified import library LIBNAME.
3601 #
3602 # SECTION_NAME is either .idata$6 or .idata$7, depending
3603 # on the platform and compiler that created the implib.
3604 #
3605 # Echos the name of the DLL associated with the
3606 # specified import library.
3607 func_cygming_dll_for_implib_fallback_core ()
3608 {
3609 $opt_debug
3610 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
3611 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3612 $SED '/^Contents of section '"$match_literal"':/{
3613 # Place marker at beginning of archive member dllname section
3614 s/.*/====MARK====/
3615 p
3616 d
3617 }
3618 # These lines can sometimes be longer than 43 characters, but
3619 # are always uninteresting
3620 /:[ ]*file format pe[i]\{,1\}-/d
3621 /^In archive [^:]*:/d
3622 # Ensure marker is printed
3623 /^====MARK====/p
3624 # Remove all lines with less than 43 characters
3625 /^.\{43\}/!d
3626 # From remaining lines, remove first 43 characters
3627 s/^.\{43\}//' |
3628 $SED -n '
3629 # Join marker and all lines until next marker into a single line
3630 /^====MARK====/ b para
3631 H
3632 $ b para
3633 b
3634 :para
3635 x
3636 s/\n//g
3637 # Remove the marker
3638 s/^====MARK====//
3639 # Remove trailing dots and whitespace
3640 s/[\. \t]*$//
3641 # Print
3642 /./p' |
3643 # we now have a list, one entry per line, of the stringified
3644 # contents of the appropriate section of all members of the
3645 # archive which possess that section. Heuristic: eliminate
3646 # all those which have a first or second character that is
3647 # a '.' (that is, objdump's representation of an unprintable
3648 # character.) This should work for all archives with less than
3649 # 0x302f exports -- but will fail for DLLs whose name actually
3650 # begins with a literal '.' or a single character followed by
3651 # a '.'.
3652 #
3653 # Of those that remain, print the first one.
3654 $SED -e '/^\./d;/^.\./d;q'
3655 }
3656
3657 # func_cygming_gnu_implib_p ARG
3658 # This predicate returns with zero status (TRUE) if
3659 # ARG is a GNU/binutils-style import library. Returns
3660 # with nonzero status (FALSE) otherwise.
3661 func_cygming_gnu_implib_p ()
3662 {
3663 $opt_debug
3664 func_to_tool_file "$1" func_convert_file_msys_to_w32
3665 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3666 test -n "$func_cygming_gnu_implib_tmp"
3667 }
3668
3669 # func_cygming_ms_implib_p ARG
3670 # This predicate returns with zero status (TRUE) if
3671 # ARG is an MS-style import library. Returns
3672 # with nonzero status (FALSE) otherwise.
3673 func_cygming_ms_implib_p ()
3674 {
3675 $opt_debug
3676 func_to_tool_file "$1" func_convert_file_msys_to_w32
3677 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3678 test -n "$func_cygming_ms_implib_tmp"
3679 }
3680
3681 # func_cygming_dll_for_implib_fallback ARG
3682 # Platform-specific function to extract the
3683 # name of the DLL associated with the specified
3684 # import library ARG.
3685 #
3686 # This fallback implementation is for use when $DLLTOOL
3687 # does not support the --identify-strict option.
3688 # Invoked by eval'ing the libtool variable
3689 # $sharedlib_from_linklib_cmd
3690 # Result is available in the variable
3691 # $sharedlib_from_linklib_result
3692 func_cygming_dll_for_implib_fallback ()
3693 {
3694 $opt_debug
3695 if func_cygming_gnu_implib_p "$1" ; then
3696 # binutils import library
3697 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3698 elif func_cygming_ms_implib_p "$1" ; then
3699 # ms-generated import library
3700 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
3701 else
3702 # unknown
3703 sharedlib_from_linklib_result=""
3704 fi
3705 }
28193706
28203707
28213708 # func_extract_an_archive dir oldlib
31944081
31954082 if test -f \"\$progdir/\$program\"; then"
31964083
4084 # fixup the dll searchpath if we need to.
4085 #
4086 # Fix the DLL searchpath if we need to. Do this before prepending
4087 # to shlibpath, because on Windows, both are PATH and uninstalled
4088 # libraries must come first.
4089 if test -n "$dllsearchpath"; then
4090 $ECHO "\
4091 # Add the dll search path components to the executable PATH
4092 PATH=$dllsearchpath:\$PATH
4093 "
4094 fi
4095
31974096 # Export our shlibpath_var if we have one.
31984097 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
31994098 $ECHO "\
32054104 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
32064105
32074106 export $shlibpath_var
3208 "
3209 fi
3210
3211 # fixup the dll searchpath if we need to.
3212 if test -n "$dllsearchpath"; then
3213 $ECHO "\
3214 # Add the dll search path components to the executable PATH
3215 PATH=$dllsearchpath:\$PATH
32164107 "
32174108 fi
32184109
32324123 "
32334124 }
32344125
3235
3236 # func_to_host_path arg
3237 #
3238 # Convert paths to host format when used with build tools.
3239 # Intended for use with "native" mingw (where libtool itself
3240 # is running under the msys shell), or in the following cross-
3241 # build environments:
3242 # $build $host
3243 # mingw (msys) mingw [e.g. native]
3244 # cygwin mingw
3245 # *nix + wine mingw
3246 # where wine is equipped with the `winepath' executable.
3247 # In the native mingw case, the (msys) shell automatically
3248 # converts paths for any non-msys applications it launches,
3249 # but that facility isn't available from inside the cwrapper.
3250 # Similar accommodations are necessary for $host mingw and
3251 # $build cygwin. Calling this function does no harm for other
3252 # $host/$build combinations not listed above.
3253 #
3254 # ARG is the path (on $build) that should be converted to
3255 # the proper representation for $host. The result is stored
3256 # in $func_to_host_path_result.
3257 func_to_host_path ()
3258 {
3259 func_to_host_path_result="$1"
3260 if test -n "$1"; then
3261 case $host in
3262 *mingw* )
3263 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3264 case $build in
3265 *mingw* ) # actually, msys
3266 # awkward: cmd appends spaces to result
3267 func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null |
3268 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
3269 ;;
3270 *cygwin* )
3271 func_to_host_path_result=`cygpath -w "$1" |
3272 $SED -e "$lt_sed_naive_backslashify"`
3273 ;;
3274 * )
3275 # Unfortunately, winepath does not exit with a non-zero
3276 # error code, so we are forced to check the contents of
3277 # stdout. On the other hand, if the command is not
3278 # found, the shell will set an exit code of 127 and print
3279 # *an error message* to stdout. So we must check for both
3280 # error code of zero AND non-empty stdout, which explains
3281 # the odd construction:
3282 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
3283 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3284 func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |
3285 $SED -e "$lt_sed_naive_backslashify"`
3286 else
3287 # Allow warning below.
3288 func_to_host_path_result=
3289 fi
3290 ;;
3291 esac
3292 if test -z "$func_to_host_path_result" ; then
3293 func_error "Could not determine host path corresponding to"
3294 func_error " \`$1'"
3295 func_error "Continuing, but uninstalled executables may not work."
3296 # Fallback:
3297 func_to_host_path_result="$1"
3298 fi
3299 ;;
3300 esac
3301 fi
3302 }
3303 # end: func_to_host_path
3304
3305 # func_to_host_pathlist arg
3306 #
3307 # Convert pathlists to host format when used with build tools.
3308 # See func_to_host_path(), above. This function supports the
3309 # following $build/$host combinations (but does no harm for
3310 # combinations not listed here):
3311 # $build $host
3312 # mingw (msys) mingw [e.g. native]
3313 # cygwin mingw
3314 # *nix + wine mingw
3315 #
3316 # Path separators are also converted from $build format to
3317 # $host format. If ARG begins or ends with a path separator
3318 # character, it is preserved (but converted to $host format)
3319 # on output.
3320 #
3321 # ARG is a pathlist (on $build) that should be converted to
3322 # the proper representation on $host. The result is stored
3323 # in $func_to_host_pathlist_result.
3324 func_to_host_pathlist ()
3325 {
3326 func_to_host_pathlist_result="$1"
3327 if test -n "$1"; then
3328 case $host in
3329 *mingw* )
3330 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3331 # Remove leading and trailing path separator characters from
3332 # ARG. msys behavior is inconsistent here, cygpath turns them
3333 # into '.;' and ';.', and winepath ignores them completely.
3334 func_stripname : : "$1"
3335 func_to_host_pathlist_tmp1=$func_stripname_result
3336 case $build in
3337 *mingw* ) # Actually, msys.
3338 # Awkward: cmd appends spaces to result.
3339 func_to_host_pathlist_result=`
3340 ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null |
3341 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
3342 ;;
3343 *cygwin* )
3344 func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" |
3345 $SED -e "$lt_sed_naive_backslashify"`
3346 ;;
3347 * )
3348 # unfortunately, winepath doesn't convert pathlists
3349 func_to_host_pathlist_result=""
3350 func_to_host_pathlist_oldIFS=$IFS
3351 IFS=:
3352 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
3353 IFS=$func_to_host_pathlist_oldIFS
3354 if test -n "$func_to_host_pathlist_f" ; then
3355 func_to_host_path "$func_to_host_pathlist_f"
3356 if test -n "$func_to_host_path_result" ; then
3357 if test -z "$func_to_host_pathlist_result" ; then
3358 func_to_host_pathlist_result="$func_to_host_path_result"
3359 else
3360 func_append func_to_host_pathlist_result ";$func_to_host_path_result"
3361 fi
3362 fi
3363 fi
3364 done
3365 IFS=$func_to_host_pathlist_oldIFS
3366 ;;
3367 esac
3368 if test -z "$func_to_host_pathlist_result"; then
3369 func_error "Could not determine the host path(s) corresponding to"
3370 func_error " \`$1'"
3371 func_error "Continuing, but uninstalled executables may not work."
3372 # Fallback. This may break if $1 contains DOS-style drive
3373 # specifications. The fix is not to complicate the expression
3374 # below, but for the user to provide a working wine installation
3375 # with winepath so that path translation in the cross-to-mingw
3376 # case works properly.
3377 lt_replace_pathsep_nix_to_dos="s|:|;|g"
3378 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
3379 $SED -e "$lt_replace_pathsep_nix_to_dos"`
3380 fi
3381 # Now, add the leading and trailing path separators back
3382 case "$1" in
3383 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
3384 ;;
3385 esac
3386 case "$1" in
3387 *: ) func_append func_to_host_pathlist_result ";"
3388 ;;
3389 esac
3390 ;;
3391 esac
3392 fi
3393 }
3394 # end: func_to_host_pathlist
33954126
33964127 # func_emit_cwrapperexe_src
33974128 # emit the source code for a wrapper executable on stdout
35624293 EOF
35634294
35644295 cat <<EOF
3565 const char * MAGIC_EXE = "$magic_exe";
4296 volatile const char * MAGIC_EXE = "$magic_exe";
35664297 const char * LIB_PATH_VARNAME = "$shlibpath_var";
35674298 EOF
35684299
35694300 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3570 func_to_host_pathlist "$temp_rpath"
4301 func_to_host_path "$temp_rpath"
35714302 cat <<EOF
3572 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
4303 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
35734304 EOF
35744305 else
35754306 cat <<"EOF"
35784309 fi
35794310
35804311 if test -n "$dllsearchpath"; then
3581 func_to_host_pathlist "$dllsearchpath:"
4312 func_to_host_path "$dllsearchpath:"
35824313 cat <<EOF
35834314 const char * EXE_PATH_VARNAME = "PATH";
3584 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
4315 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
35854316 EOF
35864317 else
35874318 cat <<"EOF"
37644495
37654496 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
37664497 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
4498 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
4499 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
4500 because on Windows, both *_VARNAMEs are PATH but uninstalled
4501 libraries must come first. */
4502 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
37674503 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
3768 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
37694504
37704505 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
37714506 nonnull (lt_argv_zero));
45145249 ;;
45155250 *)
45165251 if test "$prev" = dlfiles; then
4517 dlfiles="$dlfiles $arg"
5252 func_append dlfiles " $arg"
45185253 else
4519 dlprefiles="$dlprefiles $arg"
5254 func_append dlprefiles " $arg"
45205255 fi
45215256 prev=
45225257 continue
45405275 *-*-darwin*)
45415276 case "$deplibs " in
45425277 *" $qarg.ltframework "*) ;;
4543 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
5278 *) func_append deplibs " $qarg.ltframework" # this is fixed later
45445279 ;;
45455280 esac
45465281 ;;
45595294 moreargs=
45605295 for fil in `cat "$save_arg"`
45615296 do
4562 # moreargs="$moreargs $fil"
5297 # func_append moreargs " $fil"
45635298 arg=$fil
45645299 # A libtool-controlled object.
45655300
45885323
45895324 if test "$prev" = dlfiles; then
45905325 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4591 dlfiles="$dlfiles $pic_object"
5326 func_append dlfiles " $pic_object"
45925327 prev=
45935328 continue
45945329 else
46005335 # CHECK ME: I think I busted this. -Ossama
46015336 if test "$prev" = dlprefiles; then
46025337 # Preload the old-style object.
4603 dlprefiles="$dlprefiles $pic_object"
5338 func_append dlprefiles " $pic_object"
46045339 prev=
46055340 fi
46065341
46705405 if test "$prev" = rpath; then
46715406 case "$rpath " in
46725407 *" $arg "*) ;;
4673 *) rpath="$rpath $arg" ;;
5408 *) func_append rpath " $arg" ;;
46745409 esac
46755410 else
46765411 case "$xrpath " in
46775412 *" $arg "*) ;;
4678 *) xrpath="$xrpath $arg" ;;
5413 *) func_append xrpath " $arg" ;;
46795414 esac
46805415 fi
46815416 prev=
46875422 continue
46885423 ;;
46895424 weak)
4690 weak_libs="$weak_libs $arg"
5425 func_append weak_libs " $arg"
46915426 prev=
46925427 continue
46935428 ;;
46945429 xcclinker)
4695 linker_flags="$linker_flags $qarg"
4696 compiler_flags="$compiler_flags $qarg"
5430 func_append linker_flags " $qarg"
5431 func_append compiler_flags " $qarg"
46975432 prev=
46985433 func_append compile_command " $qarg"
46995434 func_append finalize_command " $qarg"
47005435 continue
47015436 ;;
47025437 xcompiler)
4703 compiler_flags="$compiler_flags $qarg"
5438 func_append compiler_flags " $qarg"
47045439 prev=
47055440 func_append compile_command " $qarg"
47065441 func_append finalize_command " $qarg"
47075442 continue
47085443 ;;
47095444 xlinker)
4710 linker_flags="$linker_flags $qarg"
4711 compiler_flags="$compiler_flags $wl$qarg"
5445 func_append linker_flags " $qarg"
5446 func_append compiler_flags " $wl$qarg"
47125447 prev=
47135448 func_append compile_command " $wl$qarg"
47145449 func_append finalize_command " $wl$qarg"
47995534 ;;
48005535
48015536 -L*)
4802 func_stripname '-L' '' "$arg"
4803 dir=$func_stripname_result
4804 if test -z "$dir"; then
5537 func_stripname "-L" '' "$arg"
5538 if test -z "$func_stripname_result"; then
48055539 if test "$#" -gt 0; then
48065540 func_fatal_error "require no space between \`-L' and \`$1'"
48075541 else
48085542 func_fatal_error "need path for \`-L' option"
48095543 fi
48105544 fi
5545 func_resolve_sysroot "$func_stripname_result"
5546 dir=$func_resolve_sysroot_result
48115547 # We need an absolute path.
48125548 case $dir in
48135549 [\\/]* | [A-Za-z]:[\\/]*) ;;
48195555 ;;
48205556 esac
48215557 case "$deplibs " in
4822 *" -L$dir "*) ;;
5558 *" -L$dir "* | *" $arg "*)
5559 # Will only happen for absolute or sysroot arguments
5560 ;;
48235561 *)
4824 deplibs="$deplibs -L$dir"
4825 lib_search_path="$lib_search_path $dir"
5562 # Preserve sysroot, but never include relative directories
5563 case $dir in
5564 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5565 *) func_append deplibs " -L$dir" ;;
5566 esac
5567 func_append lib_search_path " $dir"
48265568 ;;
48275569 esac
48285570 case $host in
48315573 case :$dllsearchpath: in
48325574 *":$dir:"*) ;;
48335575 ::) dllsearchpath=$dir;;
4834 *) dllsearchpath="$dllsearchpath:$dir";;
5576 *) func_append dllsearchpath ":$dir";;
48355577 esac
48365578 case :$dllsearchpath: in
48375579 *":$testbindir:"*) ;;
48385580 ::) dllsearchpath=$testbindir;;
4839 *) dllsearchpath="$dllsearchpath:$testbindir";;
5581 *) func_append dllsearchpath ":$testbindir";;
48405582 esac
48415583 ;;
48425584 esac
48605602 ;;
48615603 *-*-rhapsody* | *-*-darwin1.[012])
48625604 # Rhapsody C and math libraries are in the System framework
4863 deplibs="$deplibs System.ltframework"
5605 func_append deplibs " System.ltframework"
48645606 continue
48655607 ;;
48665608 *-*-sco3.2v5* | *-*-sco5v6*)
48805622 ;;
48815623 esac
48825624 fi
4883 deplibs="$deplibs $arg"
5625 func_append deplibs " $arg"
48845626 continue
48855627 ;;
48865628
48925634 # Tru64 UNIX uses -model [arg] to determine the layout of C++
48935635 # classes, name mangling, and exception handling.
48945636 # Darwin uses the -arch flag to determine output architecture.
4895 -model|-arch|-isysroot)
4896 compiler_flags="$compiler_flags $arg"
5637 -model|-arch|-isysroot|--sysroot)
5638 func_append compiler_flags " $arg"
48975639 func_append compile_command " $arg"
48985640 func_append finalize_command " $arg"
48995641 prev=xcompiler
49015643 ;;
49025644
49035645 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4904 compiler_flags="$compiler_flags $arg"
5646 func_append compiler_flags " $arg"
49055647 func_append compile_command " $arg"
49065648 func_append finalize_command " $arg"
49075649 case "$new_inherited_linker_flags " in
49085650 *" $arg "*) ;;
4909 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
5651 * ) func_append new_inherited_linker_flags " $arg" ;;
49105652 esac
49115653 continue
49125654 ;;
49735715 # We need an absolute path.
49745716 case $dir in
49755717 [\\/]* | [A-Za-z]:[\\/]*) ;;
5718 =*)
5719 func_stripname '=' '' "$dir"
5720 dir=$lt_sysroot$func_stripname_result
5721 ;;
49765722 *)
49775723 func_fatal_error "only absolute run-paths are allowed"
49785724 ;;
49795725 esac
49805726 case "$xrpath " in
49815727 *" $dir "*) ;;
4982 *) xrpath="$xrpath $dir" ;;
5728 *) func_append xrpath " $dir" ;;
49835729 esac
49845730 continue
49855731 ;;
50325778 for flag in $args; do
50335779 IFS="$save_ifs"
50345780 func_quote_for_eval "$flag"
5035 arg="$arg $func_quote_for_eval_result"
5036 compiler_flags="$compiler_flags $func_quote_for_eval_result"
5781 func_append arg " $func_quote_for_eval_result"
5782 func_append compiler_flags " $func_quote_for_eval_result"
50375783 done
50385784 IFS="$save_ifs"
50395785 func_stripname ' ' '' "$arg"
50485794 for flag in $args; do
50495795 IFS="$save_ifs"
50505796 func_quote_for_eval "$flag"
5051 arg="$arg $wl$func_quote_for_eval_result"
5052 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
5053 linker_flags="$linker_flags $func_quote_for_eval_result"
5797 func_append arg " $wl$func_quote_for_eval_result"
5798 func_append compiler_flags " $wl$func_quote_for_eval_result"
5799 func_append linker_flags " $func_quote_for_eval_result"
50545800 done
50555801 IFS="$save_ifs"
50565802 func_stripname ' ' '' "$arg"
50895835 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
50905836 # @file GCC response files
50915837 # -tp=* Portland pgcc target processor selection
5838 # --sysroot=* for sysroot support
5839 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
50925840 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5093 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
5841 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5842 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
50945843 func_quote_for_eval "$arg"
50955844 arg="$func_quote_for_eval_result"
50965845 func_append compile_command " $arg"
50975846 func_append finalize_command " $arg"
5098 compiler_flags="$compiler_flags $arg"
5847 func_append compiler_flags " $arg"
50995848 continue
51005849 ;;
51015850
51075856
51085857 *.$objext)
51095858 # A standard object.
5110 objs="$objs $arg"
5859 func_append objs " $arg"
51115860 ;;
51125861
51135862 *.lo)
51385887
51395888 if test "$prev" = dlfiles; then
51405889 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5141 dlfiles="$dlfiles $pic_object"
5890 func_append dlfiles " $pic_object"
51425891 prev=
51435892 continue
51445893 else
51505899 # CHECK ME: I think I busted this. -Ossama
51515900 if test "$prev" = dlprefiles; then
51525901 # Preload the old-style object.
5153 dlprefiles="$dlprefiles $pic_object"
5902 func_append dlprefiles " $pic_object"
51545903 prev=
51555904 fi
51565905
51955944
51965945 *.$libext)
51975946 # An archive.
5198 deplibs="$deplibs $arg"
5199 old_deplibs="$old_deplibs $arg"
5947 func_append deplibs " $arg"
5948 func_append old_deplibs " $arg"
52005949 continue
52015950 ;;
52025951
52035952 *.la)
52045953 # A libtool-controlled library.
52055954
5955 func_resolve_sysroot "$arg"
52065956 if test "$prev" = dlfiles; then
52075957 # This library was specified with -dlopen.
5208 dlfiles="$dlfiles $arg"
5958 func_append dlfiles " $func_resolve_sysroot_result"
52095959 prev=
52105960 elif test "$prev" = dlprefiles; then
52115961 # The library was specified with -dlpreopen.
5212 dlprefiles="$dlprefiles $arg"
5962 func_append dlprefiles " $func_resolve_sysroot_result"
52135963 prev=
52145964 else
5215 deplibs="$deplibs $arg"
5965 func_append deplibs " $func_resolve_sysroot_result"
52165966 fi
52175967 continue
52185968 ;;
52596009
52606010 func_dirname "$output" "/" ""
52616011 output_objdir="$func_dirname_result$objdir"
6012 func_to_tool_file "$output_objdir/"
6013 tool_output_objdir=$func_to_tool_file_result
52626014 # Create the object directory.
52636015 func_mkdir_p "$output_objdir"
52646016
52796031 # Find all interdependent deplibs by searching for libraries
52806032 # that are linked more than once (e.g. -la -lb -la)
52816033 for deplib in $deplibs; do
5282 if $opt_duplicate_deps ; then
6034 if $opt_preserve_dup_deps ; then
52836035 case "$libs " in
5284 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6036 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
52856037 esac
52866038 fi
5287 libs="$libs $deplib"
6039 func_append libs " $deplib"
52886040 done
52896041
52906042 if test "$linkmode" = lib; then
52976049 if $opt_duplicate_compiler_generated_deps; then
52986050 for pre_post_dep in $predeps $postdeps; do
52996051 case "$pre_post_deps " in
5300 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
6052 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
53016053 esac
5302 pre_post_deps="$pre_post_deps $pre_post_dep"
6054 func_append pre_post_deps " $pre_post_dep"
53036055 done
53046056 fi
53056057 pre_post_deps=
53666118 for lib in $dlprefiles; do
53676119 # Ignore non-libtool-libs
53686120 dependency_libs=
6121 func_resolve_sysroot "$lib"
53696122 case $lib in
5370 *.la) func_source "$lib" ;;
6123 *.la) func_source "$func_resolve_sysroot_result" ;;
53716124 esac
53726125
53736126 # Collect preopened libtool deplibs, except any this library
53776130 deplib_base=$func_basename_result
53786131 case " $weak_libs " in
53796132 *" $deplib_base "*) ;;
5380 *) deplibs="$deplibs $deplib" ;;
6133 *) func_append deplibs " $deplib" ;;
53816134 esac
53826135 done
53836136 done
53986151 compile_deplibs="$deplib $compile_deplibs"
53996152 finalize_deplibs="$deplib $finalize_deplibs"
54006153 else
5401 compiler_flags="$compiler_flags $deplib"
6154 func_append compiler_flags " $deplib"
54026155 if test "$linkmode" = lib ; then
54036156 case "$new_inherited_linker_flags " in
54046157 *" $deplib "*) ;;
5405 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6158 * ) func_append new_inherited_linker_flags " $deplib" ;;
54066159 esac
54076160 fi
54086161 fi
54876240 if test "$linkmode" = lib ; then
54886241 case "$new_inherited_linker_flags " in
54896242 *" $deplib "*) ;;
5490 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6243 * ) func_append new_inherited_linker_flags " $deplib" ;;
54916244 esac
54926245 fi
54936246 fi
55006253 test "$pass" = conv && continue
55016254 newdependency_libs="$deplib $newdependency_libs"
55026255 func_stripname '-L' '' "$deplib"
5503 newlib_search_path="$newlib_search_path $func_stripname_result"
6256 func_resolve_sysroot "$func_stripname_result"
6257 func_append newlib_search_path " $func_resolve_sysroot_result"
55046258 ;;
55056259 prog)
55066260 if test "$pass" = conv; then
55146268 finalize_deplibs="$deplib $finalize_deplibs"
55156269 fi
55166270 func_stripname '-L' '' "$deplib"
5517 newlib_search_path="$newlib_search_path $func_stripname_result"
6271 func_resolve_sysroot "$func_stripname_result"
6272 func_append newlib_search_path " $func_resolve_sysroot_result"
55186273 ;;
55196274 *)
55206275 func_warning "\`-L' is ignored for archives/objects"
55256280 -R*)
55266281 if test "$pass" = link; then
55276282 func_stripname '-R' '' "$deplib"
5528 dir=$func_stripname_result
6283 func_resolve_sysroot "$func_stripname_result"
6284 dir=$func_resolve_sysroot_result
55296285 # Make sure the xrpath contains only unique directories.
55306286 case "$xrpath " in
55316287 *" $dir "*) ;;
5532 *) xrpath="$xrpath $dir" ;;
6288 *) func_append xrpath " $dir" ;;
55336289 esac
55346290 fi
55356291 deplibs="$deplib $deplibs"
55366292 continue
55376293 ;;
5538 *.la) lib="$deplib" ;;
6294 *.la)
6295 func_resolve_sysroot "$deplib"
6296 lib=$func_resolve_sysroot_result
6297 ;;
55396298 *.$libext)
55406299 if test "$pass" = conv; then
55416300 deplibs="$deplib $deplibs"
55986357 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
55996358 # If there is no dlopen support or we're linking statically,
56006359 # we need to preload.
5601 newdlprefiles="$newdlprefiles $deplib"
6360 func_append newdlprefiles " $deplib"
56026361 compile_deplibs="$deplib $compile_deplibs"
56036362 finalize_deplibs="$deplib $finalize_deplibs"
56046363 else
5605 newdlfiles="$newdlfiles $deplib"
6364 func_append newdlfiles " $deplib"
56066365 fi
56076366 fi
56086367 continue
56486407 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
56496408 case " $new_inherited_linker_flags " in
56506409 *" $tmp_inherited_linker_flag "*) ;;
5651 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
6410 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
56526411 esac
56536412 done
56546413 fi
56566415 if test "$linkmode,$pass" = "lib,link" ||
56576416 test "$linkmode,$pass" = "prog,scan" ||
56586417 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
5659 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
5660 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
6418 test -n "$dlopen" && func_append dlfiles " $dlopen"
6419 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
56616420 fi
56626421
56636422 if test "$pass" = conv; then
56686427 func_fatal_error "cannot find name of link library for \`$lib'"
56696428 fi
56706429 # It is a libtool convenience library, so add in its objects.
5671 convenience="$convenience $ladir/$objdir/$old_library"
5672 old_convenience="$old_convenience $ladir/$objdir/$old_library"
6430 func_append convenience " $ladir/$objdir/$old_library"
6431 func_append old_convenience " $ladir/$objdir/$old_library"
56736432 elif test "$linkmode" != prog && test "$linkmode" != lib; then
56746433 func_fatal_error "\`$lib' is not a convenience library"
56756434 fi
56766435 tmp_libs=
56776436 for deplib in $dependency_libs; do
56786437 deplibs="$deplib $deplibs"
5679 if $opt_duplicate_deps ; then
6438 if $opt_preserve_dup_deps ; then
56806439 case "$tmp_libs " in
5681 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6440 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
56826441 esac
56836442 fi
5684 tmp_libs="$tmp_libs $deplib"
6443 func_append tmp_libs " $deplib"
56856444 done
56866445 continue
56876446 fi # $pass = conv
56896448
56906449 # Get the name of the library we link against.
56916450 linklib=
5692 for l in $old_library $library_names; do
5693 linklib="$l"
5694 done
6451 if test -n "$old_library" &&
6452 { test "$prefer_static_libs" = yes ||
6453 test "$prefer_static_libs,$installed" = "built,no"; }; then
6454 linklib=$old_library
6455 else
6456 for l in $old_library $library_names; do
6457 linklib="$l"
6458 done
6459 fi
56956460 if test -z "$linklib"; then
56966461 func_fatal_error "cannot find name of link library for \`$lib'"
56976462 fi
57086473 # statically, we need to preload. We also need to preload any
57096474 # dependent libraries so libltdl's deplib preloader doesn't
57106475 # bomb out in the load deplibs phase.
5711 dlprefiles="$dlprefiles $lib $dependency_libs"
6476 func_append dlprefiles " $lib $dependency_libs"
57126477 else
5713 newdlfiles="$newdlfiles $lib"
6478 func_append newdlfiles " $lib"
57146479 fi
57156480 continue
57166481 fi # $pass = dlopen
57326497
57336498 # Find the relevant object directory and library name.
57346499 if test "X$installed" = Xyes; then
5735 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6500 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
57366501 func_warning "library \`$lib' was moved."
57376502 dir="$ladir"
57386503 absdir="$abs_ladir"
57396504 libdir="$abs_ladir"
57406505 else
5741 dir="$libdir"
5742 absdir="$libdir"
6506 dir="$lt_sysroot$libdir"
6507 absdir="$lt_sysroot$libdir"
57436508 fi
57446509 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
57456510 else
57476512 dir="$ladir"
57486513 absdir="$abs_ladir"
57496514 # Remove this search path later
5750 notinst_path="$notinst_path $abs_ladir"
6515 func_append notinst_path " $abs_ladir"
57516516 else
57526517 dir="$ladir/$objdir"
57536518 absdir="$abs_ladir/$objdir"
57546519 # Remove this search path later
5755 notinst_path="$notinst_path $abs_ladir"
6520 func_append notinst_path " $abs_ladir"
57566521 fi
57576522 fi # $installed = yes
57586523 func_stripname 'lib' '.la' "$laname"
57636528 if test -z "$libdir" && test "$linkmode" = prog; then
57646529 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
57656530 fi
5766 # Prefer using a static library (so that no silly _DYNAMIC symbols
5767 # are required to link).
5768 if test -n "$old_library"; then
5769 newdlprefiles="$newdlprefiles $dir/$old_library"
5770 # Keep a list of preopened convenience libraries to check
5771 # that they are being used correctly in the link pass.
5772 test -z "$libdir" && \
5773 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
5774 # Otherwise, use the dlname, so that lt_dlopen finds it.
5775 elif test -n "$dlname"; then
5776 newdlprefiles="$newdlprefiles $dir/$dlname"
5777 else
5778 newdlprefiles="$newdlprefiles $dir/$linklib"
5779 fi
6531 case "$host" in
6532 # special handling for platforms with PE-DLLs.
6533 *cygwin* | *mingw* | *cegcc* )
6534 # Linker will automatically link against shared library if both
6535 # static and shared are present. Therefore, ensure we extract
6536 # symbols from the import library if a shared library is present
6537 # (otherwise, the dlopen module name will be incorrect). We do
6538 # this by putting the import library name into $newdlprefiles.
6539 # We recover the dlopen module name by 'saving' the la file
6540 # name in a special purpose variable, and (later) extracting the
6541 # dlname from the la file.
6542 if test -n "$dlname"; then
6543 func_tr_sh "$dir/$linklib"
6544 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
6545 func_append newdlprefiles " $dir/$linklib"
6546 else
6547 func_append newdlprefiles " $dir/$old_library"
6548 # Keep a list of preopened convenience libraries to check
6549 # that they are being used correctly in the link pass.
6550 test -z "$libdir" && \
6551 func_append dlpreconveniencelibs " $dir/$old_library"
6552 fi
6553 ;;
6554 * )
6555 # Prefer using a static library (so that no silly _DYNAMIC symbols
6556 # are required to link).
6557 if test -n "$old_library"; then
6558 func_append newdlprefiles " $dir/$old_library"
6559 # Keep a list of preopened convenience libraries to check
6560 # that they are being used correctly in the link pass.
6561 test -z "$libdir" && \
6562 func_append dlpreconveniencelibs " $dir/$old_library"
6563 # Otherwise, use the dlname, so that lt_dlopen finds it.
6564 elif test -n "$dlname"; then
6565 func_append newdlprefiles " $dir/$dlname"
6566 else
6567 func_append newdlprefiles " $dir/$linklib"
6568 fi
6569 ;;
6570 esac
57806571 fi # $pass = dlpreopen
57816572
57826573 if test -z "$libdir"; then
57946585
57956586
57966587 if test "$linkmode" = prog && test "$pass" != link; then
5797 newlib_search_path="$newlib_search_path $ladir"
6588 func_append newlib_search_path " $ladir"
57986589 deplibs="$lib $deplibs"
57996590
58006591 linkalldeplibs=no
58076598 for deplib in $dependency_libs; do
58086599 case $deplib in
58096600 -L*) func_stripname '-L' '' "$deplib"
5810 newlib_search_path="$newlib_search_path $func_stripname_result"
6601 func_resolve_sysroot "$func_stripname_result"
6602 func_append newlib_search_path " $func_resolve_sysroot_result"
58116603 ;;
58126604 esac
58136605 # Need to link against all dependency_libs?
58186610 # or/and link against static libraries
58196611 newdependency_libs="$deplib $newdependency_libs"
58206612 fi
5821 if $opt_duplicate_deps ; then
6613 if $opt_preserve_dup_deps ; then
58226614 case "$tmp_libs " in
5823 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6615 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
58246616 esac
58256617 fi
5826 tmp_libs="$tmp_libs $deplib"
6618 func_append tmp_libs " $deplib"
58276619 done # for deplib
58286620 continue
58296621 fi # $linkmode = prog...
58386630 # Make sure the rpath contains only unique directories.
58396631 case "$temp_rpath:" in
58406632 *"$absdir:"*) ;;
5841 *) temp_rpath="$temp_rpath$absdir:" ;;
6633 *) func_append temp_rpath "$absdir:" ;;
58426634 esac
58436635 fi
58446636
58506642 *)
58516643 case "$compile_rpath " in
58526644 *" $absdir "*) ;;
5853 *) compile_rpath="$compile_rpath $absdir"
6645 *) func_append compile_rpath " $absdir" ;;
58546646 esac
58556647 ;;
58566648 esac
58596651 *)
58606652 case "$finalize_rpath " in
58616653 *" $libdir "*) ;;
5862 *) finalize_rpath="$finalize_rpath $libdir"
6654 *) func_append finalize_rpath " $libdir" ;;
58636655 esac
58646656 ;;
58656657 esac
58846676 case $host in
58856677 *cygwin* | *mingw* | *cegcc*)
58866678 # No point in relinking DLLs because paths are not encoded
5887 notinst_deplibs="$notinst_deplibs $lib"
6679 func_append notinst_deplibs " $lib"
58886680 need_relink=no
58896681 ;;
58906682 *)
58916683 if test "$installed" = no; then
5892 notinst_deplibs="$notinst_deplibs $lib"
6684 func_append notinst_deplibs " $lib"
58936685 need_relink=yes
58946686 fi
58956687 ;;
59246716 *)
59256717 case "$compile_rpath " in
59266718 *" $absdir "*) ;;
5927 *) compile_rpath="$compile_rpath $absdir"
6719 *) func_append compile_rpath " $absdir" ;;
59286720 esac
59296721 ;;
59306722 esac
59336725 *)
59346726 case "$finalize_rpath " in
59356727 *" $libdir "*) ;;
5936 *) finalize_rpath="$finalize_rpath $libdir"
6728 *) func_append finalize_rpath " $libdir" ;;
59376729 esac
59386730 ;;
59396731 esac
59876779 linklib=$newlib
59886780 fi # test -n "$old_archive_from_expsyms_cmds"
59896781
5990 if test "$linkmode" = prog || test "$mode" != relink; then
6782 if test "$linkmode" = prog || test "$opt_mode" != relink; then
59916783 add_shlibpath=
59926784 add_dir=
59936785 add=
60436835 if test -n "$inst_prefix_dir"; then
60446836 case $libdir in
60456837 [\\/]*)
6046 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6838 func_append add_dir " -L$inst_prefix_dir$libdir"
60476839 ;;
60486840 esac
60496841 fi
60656857 if test -n "$add_shlibpath"; then
60666858 case :$compile_shlibpath: in
60676859 *":$add_shlibpath:"*) ;;
6068 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
6860 *) func_append compile_shlibpath "$add_shlibpath:" ;;
60696861 esac
60706862 fi
60716863 if test "$linkmode" = prog; then
60796871 test "$hardcode_shlibpath_var" = yes; then
60806872 case :$finalize_shlibpath: in
60816873 *":$libdir:"*) ;;
6082 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6874 *) func_append finalize_shlibpath "$libdir:" ;;
60836875 esac
60846876 fi
60856877 fi
60866878 fi
60876879
6088 if test "$linkmode" = prog || test "$mode" = relink; then
6880 if test "$linkmode" = prog || test "$opt_mode" = relink; then
60896881 add_shlibpath=
60906882 add_dir=
60916883 add=
60996891 elif test "$hardcode_shlibpath_var" = yes; then
61006892 case :$finalize_shlibpath: in
61016893 *":$libdir:"*) ;;
6102 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6894 *) func_append finalize_shlibpath "$libdir:" ;;
61036895 esac
61046896 add="-l$name"
61056897 elif test "$hardcode_automatic" = yes; then
61166908 if test -n "$inst_prefix_dir"; then
61176909 case $libdir in
61186910 [\\/]*)
6119 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6911 func_append add_dir " -L$inst_prefix_dir$libdir"
61206912 ;;
61216913 esac
61226914 fi
61936985 temp_xrpath=$func_stripname_result
61946986 case " $xrpath " in
61956987 *" $temp_xrpath "*) ;;
6196 *) xrpath="$xrpath $temp_xrpath";;
6988 *) func_append xrpath " $temp_xrpath";;
61976989 esac;;
6198 *) temp_deplibs="$temp_deplibs $libdir";;
6990 *) func_append temp_deplibs " $libdir";;
61996991 esac
62006992 done
62016993 dependency_libs="$temp_deplibs"
62026994 fi
62036995
6204 newlib_search_path="$newlib_search_path $absdir"
6996 func_append newlib_search_path " $absdir"
62056997 # Link against this library
62066998 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
62076999 # ... and its dependency_libs
62087000 tmp_libs=
62097001 for deplib in $dependency_libs; do
62107002 newdependency_libs="$deplib $newdependency_libs"
6211 if $opt_duplicate_deps ; then
7003 case $deplib in
7004 -L*) func_stripname '-L' '' "$deplib"
7005 func_resolve_sysroot "$func_stripname_result";;
7006 *) func_resolve_sysroot "$deplib" ;;
7007 esac
7008 if $opt_preserve_dup_deps ; then
62127009 case "$tmp_libs " in
6213 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
7010 *" $func_resolve_sysroot_result "*)
7011 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
62147012 esac
62157013 fi
6216 tmp_libs="$tmp_libs $deplib"
7014 func_append tmp_libs " $func_resolve_sysroot_result"
62177015 done
62187016
62197017 if test "$link_all_deplibs" != no; then
62237021 case $deplib in
62247022 -L*) path="$deplib" ;;
62257023 *.la)
7024 func_resolve_sysroot "$deplib"
7025 deplib=$func_resolve_sysroot_result
62267026 func_dirname "$deplib" "" "."
6227 dir="$func_dirname_result"
7027 dir=$func_dirname_result
62287028 # We need an absolute path.
62297029 case $dir in
62307030 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
62517051 if test -z "$darwin_install_name"; then
62527052 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
62537053 fi
6254 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
6255 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
7054 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7055 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
62567056 path=
62577057 fi
62587058 fi
63027102 for dir in $newlib_search_path; do
63037103 case "$lib_search_path " in
63047104 *" $dir "*) ;;
6305 *) lib_search_path="$lib_search_path $dir" ;;
7105 *) func_append lib_search_path " $dir" ;;
63067106 esac
63077107 done
63087108 newlib_search_path=
63607160 -L*)
63617161 case " $tmp_libs " in
63627162 *" $deplib "*) ;;
6363 *) tmp_libs="$tmp_libs $deplib" ;;
7163 *) func_append tmp_libs " $deplib" ;;
63647164 esac
63657165 ;;
6366 *) tmp_libs="$tmp_libs $deplib" ;;
7166 *) func_append tmp_libs " $deplib" ;;
63677167 esac
63687168 done
63697169 eval $var=\"$tmp_libs\"
63797179 ;;
63807180 esac
63817181 if test -n "$i" ; then
6382 tmp_libs="$tmp_libs $i"
7182 func_append tmp_libs " $i"
63837183 fi
63847184 done
63857185 dependency_libs=$tmp_libs
64207220 # Now set the variables for building old libraries.
64217221 build_libtool_libs=no
64227222 oldlibs="$output"
6423 objs="$objs$old_deplibs"
7223 func_append objs "$old_deplibs"
64247224 ;;
64257225
64267226 lib)
64567256 echo
64577257 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
64587258 $ECHO "*** objects $objs is not portable!"
6459 libobjs="$libobjs $objs"
7259 func_append libobjs " $objs"
64607260 fi
64617261 fi
64627262
66547454 done
66557455
66567456 # Make executables depend on our current version.
6657 verstring="$verstring:${current}.0"
7457 func_append verstring ":${current}.0"
66587458 ;;
66597459
66607460 qnx)
67227522 fi
67237523
67247524 func_generate_dlsyms "$libname" "$libname" "yes"
6725 libobjs="$libobjs $symfileobj"
7525 func_append libobjs " $symfileobj"
67267526 test "X$libobjs" = "X " && libobjs=
67277527
6728 if test "$mode" != relink; then
7528 if test "$opt_mode" != relink; then
67297529 # Remove our outputs, but don't remove object files since they
67307530 # may have been created when compiling PIC objects.
67317531 removelist=
67417541 continue
67427542 fi
67437543 fi
6744 removelist="$removelist $p"
7544 func_append removelist " $p"
67457545 ;;
67467546 *) ;;
67477547 esac
67527552
67537553 # Now set the variables for building old libraries.
67547554 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
6755 oldlibs="$oldlibs $output_objdir/$libname.$libext"
7555 func_append oldlibs " $output_objdir/$libname.$libext"
67567556
67577557 # Transform .lo files to .o files.
67587558 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
67697569 # If the user specified any rpath flags, then add them.
67707570 temp_xrpath=
67717571 for libdir in $xrpath; do
6772 temp_xrpath="$temp_xrpath -R$libdir"
7572 func_replace_sysroot "$libdir"
7573 func_append temp_xrpath " -R$func_replace_sysroot_result"
67737574 case "$finalize_rpath " in
67747575 *" $libdir "*) ;;
6775 *) finalize_rpath="$finalize_rpath $libdir" ;;
7576 *) func_append finalize_rpath " $libdir" ;;
67767577 esac
67777578 done
67787579 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
67867587 for lib in $old_dlfiles; do
67877588 case " $dlprefiles $dlfiles " in
67887589 *" $lib "*) ;;
6789 *) dlfiles="$dlfiles $lib" ;;
7590 *) func_append dlfiles " $lib" ;;
67907591 esac
67917592 done
67927593
67967597 for lib in $old_dlprefiles; do
67977598 case "$dlprefiles " in
67987599 *" $lib "*) ;;
6799 *) dlprefiles="$dlprefiles $lib" ;;
7600 *) func_append dlprefiles " $lib" ;;
68007601 esac
68017602 done
68027603
68087609 ;;
68097610 *-*-rhapsody* | *-*-darwin1.[012])
68107611 # Rhapsody C library is in the System framework
6811 deplibs="$deplibs System.ltframework"
7612 func_append deplibs " System.ltframework"
68127613 ;;
68137614 *-*-netbsd*)
68147615 # Don't link with libc until the a.out ld.so is fixed.
68257626 *)
68267627 # Add libc to deplibs on all other systems if necessary.
68277628 if test "$build_libtool_need_lc" = "yes"; then
6828 deplibs="$deplibs -lc"
7629 func_append deplibs " -lc"
68297630 fi
68307631 ;;
68317632 esac
68747675 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
68757676 case " $predeps $postdeps " in
68767677 *" $i "*)
6877 newdeplibs="$newdeplibs $i"
7678 func_append newdeplibs " $i"
68787679 i=""
68797680 ;;
68807681 esac
68857686 set dummy $deplib_matches; shift
68867687 deplib_match=$1
68877688 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6888 newdeplibs="$newdeplibs $i"
7689 func_append newdeplibs " $i"
68897690 else
68907691 droppeddeps=yes
68917692 echo
68997700 fi
69007701 ;;
69017702 *)
6902 newdeplibs="$newdeplibs $i"
7703 func_append newdeplibs " $i"
69037704 ;;
69047705 esac
69057706 done
69177718 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
69187719 case " $predeps $postdeps " in
69197720 *" $i "*)
6920 newdeplibs="$newdeplibs $i"
7721 func_append newdeplibs " $i"
69217722 i=""
69227723 ;;
69237724 esac
69287729 set dummy $deplib_matches; shift
69297730 deplib_match=$1
69307731 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6931 newdeplibs="$newdeplibs $i"
7732 func_append newdeplibs " $i"
69327733 else
69337734 droppeddeps=yes
69347735 echo
69507751 fi
69517752 ;;
69527753 *)
6953 newdeplibs="$newdeplibs $i"
7754 func_append newdeplibs " $i"
69547755 ;;
69557756 esac
69567757 done
69677768 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
69687769 case " $predeps $postdeps " in
69697770 *" $a_deplib "*)
6970 newdeplibs="$newdeplibs $a_deplib"
7771 func_append newdeplibs " $a_deplib"
69717772 a_deplib=""
69727773 ;;
69737774 esac
69747775 fi
69757776 if test -n "$a_deplib" ; then
69767777 libname=`eval "\\$ECHO \"$libname_spec\""`
7778 if test -n "$file_magic_glob"; then
7779 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7780 else
7781 libnameglob=$libname
7782 fi
7783 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
69777784 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6978 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7785 if test "$want_nocaseglob" = yes; then
7786 shopt -s nocaseglob
7787 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7788 $nocaseglob
7789 else
7790 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7791 fi
69797792 for potent_lib in $potential_libs; do
69807793 # Follow soft links.
69817794 if ls -lLd "$potent_lib" 2>/dev/null |
69987811 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
69997812 $SED -e 10q |
70007813 $EGREP "$file_magic_regex" > /dev/null; then
7001 newdeplibs="$newdeplibs $a_deplib"
7814 func_append newdeplibs " $a_deplib"
70027815 a_deplib=""
70037816 break 2
70047817 fi
70237836 ;;
70247837 *)
70257838 # Add a -L argument.
7026 newdeplibs="$newdeplibs $a_deplib"
7839 func_append newdeplibs " $a_deplib"
70277840 ;;
70287841 esac
70297842 done # Gone through all deplibs.
70397852 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
70407853 case " $predeps $postdeps " in
70417854 *" $a_deplib "*)
7042 newdeplibs="$newdeplibs $a_deplib"
7855 func_append newdeplibs " $a_deplib"
70437856 a_deplib=""
70447857 ;;
70457858 esac
70527865 potlib="$potent_lib" # see symlink-check above in file_magic test
70537866 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
70547867 $EGREP "$match_pattern_regex" > /dev/null; then
7055 newdeplibs="$newdeplibs $a_deplib"
7868 func_append newdeplibs " $a_deplib"
70567869 a_deplib=""
70577870 break 2
70587871 fi
70777890 ;;
70787891 *)
70797892 # Add a -L argument.
7080 newdeplibs="$newdeplibs $a_deplib"
7893 func_append newdeplibs " $a_deplib"
70817894 ;;
70827895 esac
70837896 done # Gone through all deplibs.
71817994 *)
71827995 case " $deplibs " in
71837996 *" -L$path/$objdir "*)
7184 new_libs="$new_libs -L$path/$objdir" ;;
7997 func_append new_libs " -L$path/$objdir" ;;
71857998 esac
71867999 ;;
71878000 esac
71918004 -L*)
71928005 case " $new_libs " in
71938006 *" $deplib "*) ;;
7194 *) new_libs="$new_libs $deplib" ;;
8007 *) func_append new_libs " $deplib" ;;
71958008 esac
71968009 ;;
7197 *) new_libs="$new_libs $deplib" ;;
8010 *) func_append new_libs " $deplib" ;;
71988011 esac
71998012 done
72008013 deplibs="$new_libs"
72118024 hardcode_libdirs=
72128025 dep_rpath=
72138026 rpath="$finalize_rpath"
7214 test "$mode" != relink && rpath="$compile_rpath$rpath"
8027 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
72158028 for libdir in $rpath; do
72168029 if test -n "$hardcode_libdir_flag_spec"; then
72178030 if test -n "$hardcode_libdir_separator"; then
8031 func_replace_sysroot "$libdir"
8032 libdir=$func_replace_sysroot_result
72188033 if test -z "$hardcode_libdirs"; then
72198034 hardcode_libdirs="$libdir"
72208035 else
72238038 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
72248039 ;;
72258040 *)
7226 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8041 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
72278042 ;;
72288043 esac
72298044 fi
72308045 else
72318046 eval flag=\"$hardcode_libdir_flag_spec\"
7232 dep_rpath="$dep_rpath $flag"
8047 func_append dep_rpath " $flag"
72338048 fi
72348049 elif test -n "$runpath_var"; then
72358050 case "$perm_rpath " in
72368051 *" $libdir "*) ;;
7237 *) perm_rpath="$perm_rpath $libdir" ;;
8052 *) func_append perm_rpath " $libdir" ;;
72388053 esac
72398054 fi
72408055 done
72528067 # We should set the runpath_var.
72538068 rpath=
72548069 for dir in $perm_rpath; do
7255 rpath="$rpath$dir:"
8070 func_append rpath "$dir:"
72568071 done
72578072 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
72588073 fi
72608075 fi
72618076
72628077 shlibpath="$finalize_shlibpath"
7263 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8078 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
72648079 if test -n "$shlibpath"; then
72658080 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
72668081 fi
72868101 linknames=
72878102 for link
72888103 do
7289 linknames="$linknames $link"
8104 func_append linknames " $link"
72908105 done
72918106
72928107 # Use standard objects if they are pic
72978112 if test -n "$export_symbols" && test -n "$include_expsyms"; then
72988113 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
72998114 export_symbols="$output_objdir/$libname.uexp"
7300 delfiles="$delfiles $export_symbols"
8115 func_append delfiles " $export_symbols"
73018116 fi
73028117
73038118 orig_export_symbols=
73288143 $opt_dry_run || $RM $export_symbols
73298144 cmds=$export_symbols_cmds
73308145 save_ifs="$IFS"; IFS='~'
7331 for cmd in $cmds; do
8146 for cmd1 in $cmds; do
73328147 IFS="$save_ifs"
7333 eval cmd=\"$cmd\"
7334 func_len " $cmd"
7335 len=$func_len_result
7336 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8148 # Take the normal branch if the nm_file_list_spec branch
8149 # doesn't work or if tool conversion is not needed.
8150 case $nm_file_list_spec~$to_tool_file_cmd in
8151 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
8152 try_normal_branch=yes
8153 eval cmd=\"$cmd1\"
8154 func_len " $cmd"
8155 len=$func_len_result
8156 ;;
8157 *)
8158 try_normal_branch=no
8159 ;;
8160 esac
8161 if test "$try_normal_branch" = yes \
8162 && { test "$len" -lt "$max_cmd_len" \
8163 || test "$max_cmd_len" -le -1; }
8164 then
73378165 func_show_eval "$cmd" 'exit $?'
8166 skipped_export=false
8167 elif test -n "$nm_file_list_spec"; then
8168 func_basename "$output"
8169 output_la=$func_basename_result
8170 save_libobjs=$libobjs
8171 save_output=$output
8172 output=${output_objdir}/${output_la}.nm
8173 func_to_tool_file "$output"
8174 libobjs=$nm_file_list_spec$func_to_tool_file_result
8175 func_append delfiles " $output"
8176 func_verbose "creating $NM input file list: $output"
8177 for obj in $save_libobjs; do
8178 func_to_tool_file "$obj"
8179 $ECHO "$func_to_tool_file_result"
8180 done > "$output"
8181 eval cmd=\"$cmd1\"
8182 func_show_eval "$cmd" 'exit $?'
8183 output=$save_output
8184 libobjs=$save_libobjs
73388185 skipped_export=false
73398186 else
73408187 # The command line is too long to execute in one step.
73688215 # global variables. join(1) would be nice here, but unfortunately
73698216 # isn't a blessed tool.
73708217 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7371 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8218 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
73728219 export_symbols=$output_objdir/$libname.def
73738220 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
73748221 fi
73788225 case " $convenience " in
73798226 *" $test_deplib "*) ;;
73808227 *)
7381 tmp_deplibs="$tmp_deplibs $test_deplib"
8228 func_append tmp_deplibs " $test_deplib"
73828229 ;;
73838230 esac
73848231 done
73988245 test "X$libobjs" = "X " && libobjs=
73998246 else
74008247 gentop="$output_objdir/${outputname}x"
7401 generated="$generated $gentop"
8248 func_append generated " $gentop"
74028249
74038250 func_extract_archives $gentop $convenience
7404 libobjs="$libobjs $func_extract_archives_result"
8251 func_append libobjs " $func_extract_archives_result"
74058252 test "X$libobjs" = "X " && libobjs=
74068253 fi
74078254 fi
74088255
74098256 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
74108257 eval flag=\"$thread_safe_flag_spec\"
7411 linker_flags="$linker_flags $flag"
8258 func_append linker_flags " $flag"
74128259 fi
74138260
74148261 # Make a backup of the uninstalled library when relinking
7415 if test "$mode" = relink; then
8262 if test "$opt_mode" = relink; then
74168263 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
74178264 fi
74188265
74748321 echo 'INPUT (' > $output
74758322 for obj in $save_libobjs
74768323 do
7477 $ECHO "$obj" >> $output
8324 func_to_tool_file "$obj"
8325 $ECHO "$func_to_tool_file_result" >> $output
74788326 done
74798327 echo ')' >> $output
7480 delfiles="$delfiles $output"
8328 func_append delfiles " $output"
8329 func_to_tool_file "$output"
8330 output=$func_to_tool_file_result
74818331 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
74828332 output=${output_objdir}/${output_la}.lnk
74838333 func_verbose "creating linker input file list: $output"
74918341 fi
74928342 for obj
74938343 do
7494 $ECHO "$obj" >> $output
8344 func_to_tool_file "$obj"
8345 $ECHO "$func_to_tool_file_result" >> $output
74958346 done
7496 delfiles="$delfiles $output"
7497 output=$firstobj\"$file_list_spec$output\"
8347 func_append delfiles " $output"
8348 func_to_tool_file "$output"
8349 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
74988350 else
74998351 if test -n "$save_libobjs"; then
75008352 func_verbose "creating reloadable object files..."
75458397 if test -n "$last_robj"; then
75468398 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
75478399 fi
7548 delfiles="$delfiles $output"
8400 func_append delfiles " $output"
75498401
75508402 else
75518403 output=
75798431 lt_exit=$?
75808432
75818433 # Restore the uninstalled library and exit
7582 if test "$mode" = relink; then
8434 if test "$opt_mode" = relink; then
75838435 ( cd "$output_objdir" && \
75848436 $RM "${realname}T" && \
75858437 $MV "${realname}U" "$realname" )
76128464 # global variables. join(1) would be nice here, but unfortunately
76138465 # isn't a blessed tool.
76148466 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7615 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8467 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
76168468 export_symbols=$output_objdir/$libname.def
76178469 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
76188470 fi
76538505 # Add any objects from preloaded convenience libraries
76548506 if test -n "$dlprefiles"; then
76558507 gentop="$output_objdir/${outputname}x"
7656 generated="$generated $gentop"
8508 func_append generated " $gentop"
76578509
76588510 func_extract_archives $gentop $dlprefiles
7659 libobjs="$libobjs $func_extract_archives_result"
8511 func_append libobjs " $func_extract_archives_result"
76608512 test "X$libobjs" = "X " && libobjs=
76618513 fi
76628514
76728524 lt_exit=$?
76738525
76748526 # Restore the uninstalled library and exit
7675 if test "$mode" = relink; then
8527 if test "$opt_mode" = relink; then
76768528 ( cd "$output_objdir" && \
76778529 $RM "${realname}T" && \
76788530 $MV "${realname}U" "$realname" )
76848536 IFS="$save_ifs"
76858537
76868538 # Restore the uninstalled library and exit
7687 if test "$mode" = relink; then
8539 if test "$opt_mode" = relink; then
76888540 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
76898541
76908542 if test -n "$convenience"; then
77688620 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
77698621 else
77708622 gentop="$output_objdir/${obj}x"
7771 generated="$generated $gentop"
8623 func_append generated " $gentop"
77728624
77738625 func_extract_archives $gentop $convenience
77748626 reload_conv_objs="$reload_objs $func_extract_archives_result"
77758627 fi
77768628 fi
8629
8630 # If we're not building shared, we need to use non_pic_objs
8631 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
77778632
77788633 # Create the old-style object.
77798634 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
78488703 if test "$tagname" = CXX ; then
78498704 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
78508705 10.[0123])
7851 compile_command="$compile_command ${wl}-bind_at_load"
7852 finalize_command="$finalize_command ${wl}-bind_at_load"
8706 func_append compile_command " ${wl}-bind_at_load"
8707 func_append finalize_command " ${wl}-bind_at_load"
78538708 ;;
78548709 esac
78558710 fi
78698724 *)
78708725 case " $compile_deplibs " in
78718726 *" -L$path/$objdir "*)
7872 new_libs="$new_libs -L$path/$objdir" ;;
8727 func_append new_libs " -L$path/$objdir" ;;
78738728 esac
78748729 ;;
78758730 esac
78798734 -L*)
78808735 case " $new_libs " in
78818736 *" $deplib "*) ;;
7882 *) new_libs="$new_libs $deplib" ;;
8737 *) func_append new_libs " $deplib" ;;
78838738 esac
78848739 ;;
7885 *) new_libs="$new_libs $deplib" ;;
8740 *) func_append new_libs " $deplib" ;;
78868741 esac
78878742 done
78888743 compile_deplibs="$new_libs"
78898744
78908745
7891 compile_command="$compile_command $compile_deplibs"
7892 finalize_command="$finalize_command $finalize_deplibs"
8746 func_append compile_command " $compile_deplibs"
8747 func_append finalize_command " $finalize_deplibs"
78938748
78948749 if test -n "$rpath$xrpath"; then
78958750 # If the user specified any rpath flags, then add them.
78978752 # This is the magic to use -rpath.
78988753 case "$finalize_rpath " in
78998754 *" $libdir "*) ;;
7900 *) finalize_rpath="$finalize_rpath $libdir" ;;
8755 *) func_append finalize_rpath " $libdir" ;;
79018756 esac
79028757 done
79038758 fi
79168771 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
79178772 ;;
79188773 *)
7919 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8774 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
79208775 ;;
79218776 esac
79228777 fi
79238778 else
79248779 eval flag=\"$hardcode_libdir_flag_spec\"
7925 rpath="$rpath $flag"
8780 func_append rpath " $flag"
79268781 fi
79278782 elif test -n "$runpath_var"; then
79288783 case "$perm_rpath " in
79298784 *" $libdir "*) ;;
7930 *) perm_rpath="$perm_rpath $libdir" ;;
8785 *) func_append perm_rpath " $libdir" ;;
79318786 esac
79328787 fi
79338788 case $host in
79368791 case :$dllsearchpath: in
79378792 *":$libdir:"*) ;;
79388793 ::) dllsearchpath=$libdir;;
7939 *) dllsearchpath="$dllsearchpath:$libdir";;
8794 *) func_append dllsearchpath ":$libdir";;
79408795 esac
79418796 case :$dllsearchpath: in
79428797 *":$testbindir:"*) ;;
79438798 ::) dllsearchpath=$testbindir;;
7944 *) dllsearchpath="$dllsearchpath:$testbindir";;
8799 *) func_append dllsearchpath ":$testbindir";;
79458800 esac
79468801 ;;
79478802 esac
79678822 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
79688823 ;;
79698824 *)
7970 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8825 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
79718826 ;;
79728827 esac
79738828 fi
79748829 else
79758830 eval flag=\"$hardcode_libdir_flag_spec\"
7976 rpath="$rpath $flag"
8831 func_append rpath " $flag"
79778832 fi
79788833 elif test -n "$runpath_var"; then
79798834 case "$finalize_perm_rpath " in
79808835 *" $libdir "*) ;;
7981 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
8836 *) func_append finalize_perm_rpath " $libdir" ;;
79828837 esac
79838838 fi
79848839 done
80298884 exit_status=0
80308885 func_show_eval "$link_command" 'exit_status=$?'
80318886
8887 if test -n "$postlink_cmds"; then
8888 func_to_tool_file "$output"
8889 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8890 func_execute_cmds "$postlink_cmds" 'exit $?'
8891 fi
8892
80328893 # Delete the generated files.
80338894 if test -f "$output_objdir/${outputname}S.${objext}"; then
80348895 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
80518912 # We should set the runpath_var.
80528913 rpath=
80538914 for dir in $perm_rpath; do
8054 rpath="$rpath$dir:"
8915 func_append rpath "$dir:"
80558916 done
80568917 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
80578918 fi
80598920 # We should set the runpath_var.
80608921 rpath=
80618922 for dir in $finalize_perm_rpath; do
8062 rpath="$rpath$dir:"
8923 func_append rpath "$dir:"
80638924 done
80648925 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
80658926 fi
80748935 $opt_dry_run || $RM $output
80758936 # Link the executable and exit
80768937 func_show_eval "$link_command" 'exit $?'
8938
8939 if test -n "$postlink_cmds"; then
8940 func_to_tool_file "$output"
8941 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8942 func_execute_cmds "$postlink_cmds" 'exit $?'
8943 fi
8944
80778945 exit $EXIT_SUCCESS
80788946 fi
80798947
81068974 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
81078975
81088976 func_show_eval "$link_command" 'exit $?'
8977
8978 if test -n "$postlink_cmds"; then
8979 func_to_tool_file "$output_objdir/$outputname"
8980 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8981 func_execute_cmds "$postlink_cmds" 'exit $?'
8982 fi
81098983
81108984 # Now create the wrapper script.
81118985 func_verbose "creating $output"
82049078 else
82059079 oldobjs="$old_deplibs $non_pic_objects"
82069080 if test "$preload" = yes && test -f "$symfileobj"; then
8207 oldobjs="$oldobjs $symfileobj"
9081 func_append oldobjs " $symfileobj"
82089082 fi
82099083 fi
82109084 addlibs="$old_convenience"
82129086
82139087 if test -n "$addlibs"; then
82149088 gentop="$output_objdir/${outputname}x"
8215 generated="$generated $gentop"
9089 func_append generated " $gentop"
82169090
82179091 func_extract_archives $gentop $addlibs
8218 oldobjs="$oldobjs $func_extract_archives_result"
9092 func_append oldobjs " $func_extract_archives_result"
82199093 fi
82209094
82219095 # Do each command in the archive commands.
82269100 # Add any objects from preloaded convenience libraries
82279101 if test -n "$dlprefiles"; then
82289102 gentop="$output_objdir/${outputname}x"
8229 generated="$generated $gentop"
9103 func_append generated " $gentop"
82309104
82319105 func_extract_archives $gentop $dlprefiles
8232 oldobjs="$oldobjs $func_extract_archives_result"
9106 func_append oldobjs " $func_extract_archives_result"
82339107 fi
82349108
82359109 # POSIX demands no paths to be encoded in archives. We have
82479121 else
82489122 echo "copying selected object files to avoid basename conflicts..."
82499123 gentop="$output_objdir/${outputname}x"
8250 generated="$generated $gentop"
9124 func_append generated " $gentop"
82519125 func_mkdir_p "$gentop"
82529126 save_oldobjs=$oldobjs
82539127 oldobjs=
82719145 esac
82729146 done
82739147 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
8274 oldobjs="$oldobjs $gentop/$newobj"
9148 func_append oldobjs " $gentop/$newobj"
82759149 ;;
8276 *) oldobjs="$oldobjs $obj" ;;
9150 *) func_append oldobjs " $obj" ;;
82779151 esac
82789152 done
82799153 fi
82829156 func_len " $cmds"
82839157 len=$func_len_result
82849158 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9159 cmds=$old_archive_cmds
9160 elif test -n "$archiver_list_spec"; then
9161 func_verbose "using command file archive linking..."
9162 for obj in $oldobjs
9163 do
9164 func_to_tool_file "$obj"
9165 $ECHO "$func_to_tool_file_result"
9166 done > $output_objdir/$libname.libcmd
9167 func_to_tool_file "$output_objdir/$libname.libcmd"
9168 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
82859169 cmds=$old_archive_cmds
82869170 else
82879171 # the command line is too long to link in one step, link in parts
83799263 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
83809264 test -z "$libdir" && \
83819265 func_fatal_error "\`$deplib' is not a valid libtool archive"
8382 newdependency_libs="$newdependency_libs $libdir/$name"
9266 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
83839267 ;;
8384 *) newdependency_libs="$newdependency_libs $deplib" ;;
9268 -L*)
9269 func_stripname -L '' "$deplib"
9270 func_replace_sysroot "$func_stripname_result"
9271 func_append newdependency_libs " -L$func_replace_sysroot_result"
9272 ;;
9273 -R*)
9274 func_stripname -R '' "$deplib"
9275 func_replace_sysroot "$func_stripname_result"
9276 func_append newdependency_libs " -R$func_replace_sysroot_result"
9277 ;;
9278 *) func_append newdependency_libs " $deplib" ;;
83859279 esac
83869280 done
83879281 dependency_libs="$newdependency_libs"
83959289 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
83969290 test -z "$libdir" && \
83979291 func_fatal_error "\`$lib' is not a valid libtool archive"
8398 newdlfiles="$newdlfiles $libdir/$name"
9292 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
83999293 ;;
8400 *) newdlfiles="$newdlfiles $lib" ;;
9294 *) func_append newdlfiles " $lib" ;;
84019295 esac
84029296 done
84039297 dlfiles="$newdlfiles"
84149308 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
84159309 test -z "$libdir" && \
84169310 func_fatal_error "\`$lib' is not a valid libtool archive"
8417 newdlprefiles="$newdlprefiles $libdir/$name"
9311 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
84189312 ;;
84199313 esac
84209314 done
84269320 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
84279321 *) abs=`pwd`"/$lib" ;;
84289322 esac
8429 newdlfiles="$newdlfiles $abs"
9323 func_append newdlfiles " $abs"
84309324 done
84319325 dlfiles="$newdlfiles"
84329326 newdlprefiles=
84359329 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
84369330 *) abs=`pwd`"/$lib" ;;
84379331 esac
8438 newdlprefiles="$newdlprefiles $abs"
9332 func_append newdlprefiles " $abs"
84399333 done
84409334 dlprefiles="$newdlprefiles"
84419335 fi
85209414 exit $EXIT_SUCCESS
85219415 }
85229416
8523 { test "$mode" = link || test "$mode" = relink; } &&
9417 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
85249418 func_mode_link ${1+"$@"}
85259419
85269420
85409434 for arg
85419435 do
85429436 case $arg in
8543 -f) RM="$RM $arg"; rmforce=yes ;;
8544 -*) RM="$RM $arg" ;;
8545 *) files="$files $arg" ;;
9437 -f) func_append RM " $arg"; rmforce=yes ;;
9438 -*) func_append RM " $arg" ;;
9439 *) func_append files " $arg" ;;
85469440 esac
85479441 done
85489442
85519445
85529446 rmdirs=
85539447
8554 origobjdir="$objdir"
85559448 for file in $files; do
85569449 func_dirname "$file" "" "."
85579450 dir="$func_dirname_result"
85589451 if test "X$dir" = X.; then
8559 objdir="$origobjdir"
9452 odir="$objdir"
85609453 else
8561 objdir="$dir/$origobjdir"
9454 odir="$dir/$objdir"
85629455 fi
85639456 func_basename "$file"
85649457 name="$func_basename_result"
8565 test "$mode" = uninstall && objdir="$dir"
8566
8567 # Remember objdir for removal later, being careful to avoid duplicates
8568 if test "$mode" = clean; then
9458 test "$opt_mode" = uninstall && odir="$dir"
9459
9460 # Remember odir for removal later, being careful to avoid duplicates
9461 if test "$opt_mode" = clean; then
85699462 case " $rmdirs " in
8570 *" $objdir "*) ;;
8571 *) rmdirs="$rmdirs $objdir" ;;
9463 *" $odir "*) ;;
9464 *) func_append rmdirs " $odir" ;;
85729465 esac
85739466 fi
85749467
85949487
85959488 # Delete the libtool libraries and symlinks.
85969489 for n in $library_names; do
8597 rmfiles="$rmfiles $objdir/$n"
9490 func_append rmfiles " $odir/$n"
85989491 done
8599 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
8600
8601 case "$mode" in
9492 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9493
9494 case "$opt_mode" in
86029495 clean)
8603 case " $library_names " in
8604 # " " in the beginning catches empty $dlname
9496 case " $library_names " in
86059497 *" $dlname "*) ;;
8606 *) rmfiles="$rmfiles $objdir/$dlname" ;;
9498 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
86079499 esac
8608 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9500 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
86099501 ;;
86109502 uninstall)
86119503 if test -n "$library_names"; then
86339525 # Add PIC object to the list of files to remove.
86349526 if test -n "$pic_object" &&
86359527 test "$pic_object" != none; then
8636 rmfiles="$rmfiles $dir/$pic_object"
9528 func_append rmfiles " $dir/$pic_object"
86379529 fi
86389530
86399531 # Add non-PIC object to the list of files to remove.
86409532 if test -n "$non_pic_object" &&
86419533 test "$non_pic_object" != none; then
8642 rmfiles="$rmfiles $dir/$non_pic_object"
9534 func_append rmfiles " $dir/$non_pic_object"
86439535 fi
86449536 fi
86459537 ;;
86469538
86479539 *)
8648 if test "$mode" = clean ; then
9540 if test "$opt_mode" = clean ; then
86499541 noexename=$name
86509542 case $file in
86519543 *.exe)
86559547 noexename=$func_stripname_result
86569548 # $file with .exe has already been added to rmfiles,
86579549 # add $file without .exe
8658 rmfiles="$rmfiles $file"
9550 func_append rmfiles " $file"
86599551 ;;
86609552 esac
86619553 # Do a test to see if this is a libtool program.
86649556 func_ltwrapper_scriptname "$file"
86659557 relink_command=
86669558 func_source $func_ltwrapper_scriptname_result
8667 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
9559 func_append rmfiles " $func_ltwrapper_scriptname_result"
86689560 else
86699561 relink_command=
86709562 func_source $dir/$noexename
86729564
86739565 # note $name still contains .exe if it was in $file originally
86749566 # as does the version of $file that was added into $rmfiles
8675 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
9567 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
86769568 if test "$fast_install" = yes && test -n "$relink_command"; then
8677 rmfiles="$rmfiles $objdir/lt-$name"
9569 func_append rmfiles " $odir/lt-$name"
86789570 fi
86799571 if test "X$noexename" != "X$name" ; then
8680 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
9572 func_append rmfiles " $odir/lt-${noexename}.c"
86819573 fi
86829574 fi
86839575 fi
86859577 esac
86869578 func_show_eval "$RM $rmfiles" 'exit_status=1'
86879579 done
8688 objdir="$origobjdir"
86899580
86909581 # Try to remove the ${objdir}s in the directories where we deleted files
86919582 for dir in $rmdirs; do
86979588 exit $exit_status
86989589 }
86999590
8700 { test "$mode" = uninstall || test "$mode" = clean; } &&
9591 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
87019592 func_mode_uninstall ${1+"$@"}
87029593
8703 test -z "$mode" && {
9594 test -z "$opt_mode" && {
87049595 help="$generic_help"
87059596 func_fatal_help "you must specify a MODE"
87069597 }
87079598
87089599 test -z "$exec_cmd" && \
8709 func_fatal_help "invalid operation mode \`$mode'"
9600 func_fatal_help "invalid operation mode \`$opt_mode'"
87109601
87119602 if test -n "$exec_cmd"; then
87129603 eval exec "$exec_cmd"
167167 dnl
168168 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
169169 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
170 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
170171 m4_require([_LT_CMD_RELOAD])dnl
171172 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
173 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
172174 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
173175 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
176 m4_require([_LT_WITH_SYSROOT])dnl
174177
175178 _LT_CONFIG_LIBTOOL_INIT([
176179 # See if we are running on zsh, and set the options which allow our
747750 # if finds mixed CR/LF and LF-only lines. Since sed operates in
748751 # text mode, it properly converts lines to CR/LF. This bash problem
749752 # is reportedly fixed, but why not run on old versions too?
750 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
751 || (rm -f "$cfgfile"; exit 1)
752
753 _LT_PROG_XSI_SHELLFNS
754
755 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
756 || (rm -f "$cfgfile"; exit 1)
757
758 mv -f "$cfgfile" "$ofile" ||
753 sed '$q' "$ltmain" >> "$cfgfile" \
754 || (rm -f "$cfgfile"; exit 1)
755
756 _LT_PROG_REPLACE_SHELLFNS
757
758 mv -f "$cfgfile" "$ofile" ||
759759 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
760760 chmod +x "$ofile"
761761 ],
10721072 fi
10731073 ])
10741074
1075 # _LT_SYS_MODULE_PATH_AIX
1076 # -----------------------
1075 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1076 # ----------------------------------
10771077 # Links a minimal program and checks the executable
10781078 # for the system default hardcoded library path. In most cases,
10791079 # this is /usr/lib:/lib, but when the MPI compilers are used
10801080 # the location of the communication and MPI libs are included too.
10811081 # If we don't find anything, use the default library path according
10821082 # to the aix ld manual.
1083 # Store the results from the different compilers for each TAGNAME.
1084 # Allow to override them for all tags through lt_cv_aix_libpath.
10831085 m4_defun([_LT_SYS_MODULE_PATH_AIX],
10841086 [m4_require([_LT_DECL_SED])dnl
1085 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1086 lt_aix_libpath_sed='
1087 /Import File Strings/,/^$/ {
1088 /^0/ {
1089 s/^0 *\(.*\)$/\1/
1090 p
1091 }
1092 }'
1093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1094 # Check for a 64-bit object if we didn't find anything.
1095 if test -z "$aix_libpath"; then
1096 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1097 fi],[])
1098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1087 if test "${lt_cv_aix_libpath+set}" = set; then
1088 aix_libpath=$lt_cv_aix_libpath
1089 else
1090 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1091 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1092 lt_aix_libpath_sed='[
1093 /Import File Strings/,/^$/ {
1094 /^0/ {
1095 s/^0 *\([^ ]*\) *$/\1/
1096 p
1097 }
1098 }]'
1099 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1100 # Check for a 64-bit object if we didn't find anything.
1101 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1102 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1103 fi],[])
1104 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1105 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1106 fi
1107 ])
1108 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1109 fi
10991110 ])# _LT_SYS_MODULE_PATH_AIX
11001111
11011112
11201131
11211132 AC_MSG_CHECKING([how to print strings])
11221133 # Test print first, because it will be a builtin if present.
1123 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
1134 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11241135 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11251136 ECHO='print -r --'
11261137 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11631174 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
11641175 ])# _LT_PROG_ECHO_BACKSLASH
11651176
1177
1178 # _LT_WITH_SYSROOT
1179 # ----------------
1180 AC_DEFUN([_LT_WITH_SYSROOT],
1181 [AC_MSG_CHECKING([for sysroot])
1182 AC_ARG_WITH([sysroot],
1183 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1184 (or the compiler's sysroot if not specified).],
1185 [], [with_sysroot=no])
1186
1187 dnl lt_sysroot will always be passed unquoted. We quote it here
1188 dnl in case the user passed a directory name.
1189 lt_sysroot=
1190 case ${with_sysroot} in #(
1191 yes)
1192 if test "$GCC" = yes; then
1193 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1194 fi
1195 ;; #(
1196 /*)
1197 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1198 ;; #(
1199 no|'')
1200 ;; #(
1201 *)
1202 AC_MSG_RESULT([${with_sysroot}])
1203 AC_MSG_ERROR([The sysroot must be an absolute path.])
1204 ;;
1205 esac
1206
1207 AC_MSG_RESULT([${lt_sysroot:-no}])
1208 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1209 [dependent libraries, and in which our libraries should be installed.])])
11661210
11671211 # _LT_ENABLE_LOCK
11681212 # ---------------
13101354 ])# _LT_ENABLE_LOCK
13111355
13121356
1357 # _LT_PROG_AR
1358 # -----------
1359 m4_defun([_LT_PROG_AR],
1360 [AC_CHECK_TOOLS(AR, [ar], false)
1361 : ${AR=ar}
1362 : ${AR_FLAGS=cru}
1363 _LT_DECL([], [AR], [1], [The archiver])
1364 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1365
1366 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1367 [lt_cv_ar_at_file=no
1368 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1369 [echo conftest.$ac_objext > conftest.lst
1370 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1371 AC_TRY_EVAL([lt_ar_try])
1372 if test "$ac_status" -eq 0; then
1373 # Ensure the archiver fails upon bogus file names.
1374 rm -f conftest.$ac_objext libconftest.a
1375 AC_TRY_EVAL([lt_ar_try])
1376 if test "$ac_status" -ne 0; then
1377 lt_cv_ar_at_file=@
1378 fi
1379 fi
1380 rm -f conftest.* libconftest.a
1381 ])
1382 ])
1383
1384 if test "x$lt_cv_ar_at_file" = xno; then
1385 archiver_list_spec=
1386 else
1387 archiver_list_spec=$lt_cv_ar_at_file
1388 fi
1389 _LT_DECL([], [archiver_list_spec], [1],
1390 [How to feed a file listing to the archiver])
1391 ])# _LT_PROG_AR
1392
1393
13131394 # _LT_CMD_OLD_ARCHIVE
13141395 # -------------------
13151396 m4_defun([_LT_CMD_OLD_ARCHIVE],
1316 [AC_CHECK_TOOL(AR, ar, false)
1317 test -z "$AR" && AR=ar
1318 test -z "$AR_FLAGS" && AR_FLAGS=cru
1319 _LT_DECL([], [AR], [1], [The archiver])
1320 _LT_DECL([], [AR_FLAGS], [1])
1397 [_LT_PROG_AR
13211398
13221399 AC_CHECK_TOOL(STRIP, strip, :)
13231400 test -z "$STRIP" && STRIP=:
16571734 /* When -fvisbility=hidden is used, assume the code has been annotated
16581735 correspondingly for the symbols needed. */
16591736 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1660 void fnord () __attribute__((visibility("default")));
1737 int fnord () __attribute__((visibility("default")));
16611738 #endif
16621739
1663 void fnord () { int i=42; }
1740 int fnord () { return 42; }
16641741 int main ()
16651742 {
16661743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22002277 need_version=no
22012278 need_lib_prefix=no
22022279
2203 case $GCC,$host_os in
2204 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2280 case $GCC,$cc_basename in
2281 yes,*)
2282 # gcc
22052283 library_names_spec='$libname.dll.a'
22062284 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22072285 postinstall_cmds='base_file=`basename \${file}`~
22342312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
22352313 ;;
22362314 esac
2315 dynamic_linker='Win32 ld.exe'
22372316 ;;
22382317
2318 *,cl*)
2319 # Native MSVC
2320 libname_spec='$name'
2321 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2322 library_names_spec='${libname}.dll.lib'
2323
2324 case $build_os in
2325 mingw*)
2326 sys_lib_search_path_spec=
2327 lt_save_ifs=$IFS
2328 IFS=';'
2329 for lt_path in $LIB
2330 do
2331 IFS=$lt_save_ifs
2332 # Let DOS variable expansion print the short 8.3 style file name.
2333 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2334 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2335 done
2336 IFS=$lt_save_ifs
2337 # Convert to MSYS style.
2338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2339 ;;
2340 cygwin*)
2341 # Convert to unix form, then to dos form, then back to unix form
2342 # but this time dos style (no spaces!) so that the unix form looks
2343 # like /cygdrive/c/PROGRA~1:/cygdr...
2344 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2345 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2346 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2347 ;;
2348 *)
2349 sys_lib_search_path_spec="$LIB"
2350 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2351 # It is most probably a Windows format PATH.
2352 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2353 else
2354 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2355 fi
2356 # FIXME: find the short name or the path components, as spaces are
2357 # common. (e.g. "Program Files" -> "PROGRA~1")
2358 ;;
2359 esac
2360
2361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2362 postinstall_cmds='base_file=`basename \${file}`~
2363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2364 dldir=$destdir/`dirname \$dlpath`~
2365 test -d \$dldir || mkdir -p \$dldir~
2366 $install_prog $dir/$dlname \$dldir/$dlname'
2367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2368 dlpath=$dir/\$dldll~
2369 $RM \$dlpath'
2370 shlibpath_overrides_runpath=yes
2371 dynamic_linker='Win32 link.exe'
2372 ;;
2373
22392374 *)
2375 # Assume MSVC wrapper
22402376 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2377 dynamic_linker='Win32 ld.exe'
22412378 ;;
22422379 esac
2243 dynamic_linker='Win32 ld.exe'
22442380 # FIXME: first we should search . and the directory the executable is in
22452381 shlibpath_var=PATH
22462382 ;;
29483084 esac
29493085 reload_cmds='$LD$reload_flag -o $output$reload_objs'
29503086 case $host_os in
3087 cygwin* | mingw* | pw32* | cegcc*)
3088 if test "$GCC" != yes; then
3089 reload_cmds=false
3090 fi
3091 ;;
29513092 darwin*)
29523093 if test "$GCC" = yes; then
29533094 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
31663307 ;;
31673308 esac
31683309 ])
3310
3311 file_magic_glob=
3312 want_nocaseglob=no
3313 if test "$build" = "$host"; then
3314 case $host_os in
3315 mingw* | pw32*)
3316 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3317 want_nocaseglob=yes
3318 else
3319 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3320 fi
3321 ;;
3322 esac
3323 fi
3324
31693325 file_magic_cmd=$lt_cv_file_magic_cmd
31703326 deplibs_check_method=$lt_cv_deplibs_check_method
31713327 test -z "$deplibs_check_method" && deplibs_check_method=unknown
31733329 _LT_DECL([], [deplibs_check_method], [1],
31743330 [Method to check whether dependent libraries are shared objects])
31753331 _LT_DECL([], [file_magic_cmd], [1],
3176 [Command to use when deplibs_check_method == "file_magic"])
3332 [Command to use when deplibs_check_method = "file_magic"])
3333 _LT_DECL([], [file_magic_glob], [1],
3334 [How to find potential files when deplibs_check_method = "file_magic"])
3335 _LT_DECL([], [want_nocaseglob], [1],
3336 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
31773337 ])# _LT_CHECK_MAGIC_METHOD
31783338
31793339
32763436 dnl AC_DEFUN([AM_PROG_NM], [])
32773437 dnl AC_DEFUN([AC_PROG_NM], [])
32783438
3439 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3440 # --------------------------------
3441 # how to determine the name of the shared library
3442 # associated with a specific link library.
3443 # -- PORTME fill in with the dynamic library characteristics
3444 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3445 [m4_require([_LT_DECL_EGREP])
3446 m4_require([_LT_DECL_OBJDUMP])
3447 m4_require([_LT_DECL_DLLTOOL])
3448 AC_CACHE_CHECK([how to associate runtime and link libraries],
3449 lt_cv_sharedlib_from_linklib_cmd,
3450 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3451
3452 case $host_os in
3453 cygwin* | mingw* | pw32* | cegcc*)
3454 # two different shell functions defined in ltmain.sh
3455 # decide which to use based on capabilities of $DLLTOOL
3456 case `$DLLTOOL --help 2>&1` in
3457 *--identify-strict*)
3458 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3459 ;;
3460 *)
3461 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3462 ;;
3463 esac
3464 ;;
3465 *)
3466 # fallback: assume linklib IS sharedlib
3467 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3468 ;;
3469 esac
3470 ])
3471 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3472 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3473
3474 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3475 [Command to associate shared and link libraries])
3476 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3477
3478
3479 # _LT_PATH_MANIFEST_TOOL
3480 # ----------------------
3481 # locate the manifest tool
3482 m4_defun([_LT_PATH_MANIFEST_TOOL],
3483 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3484 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3485 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3486 [lt_cv_path_mainfest_tool=no
3487 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3488 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3489 cat conftest.err >&AS_MESSAGE_LOG_FD
3490 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3491 lt_cv_path_mainfest_tool=yes
3492 fi
3493 rm -f conftest*])
3494 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3495 MANIFEST_TOOL=:
3496 fi
3497 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3498 ])# _LT_PATH_MANIFEST_TOOL
3499
32793500
32803501 # LT_LIB_M
32813502 # --------
34023623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
34033624
34043625 # Transform an extracted symbol line into symbol name and symbol address
3405 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3406 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3626 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3627 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
34073628
34083629 # Handle CRLF in mingw tool chain
34093630 opt_cr=
34393660 else
34403661 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
34413662 fi
3663 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
34423664
34433665 # Check to see that the pipe works correctly.
34443666 pipe_works=no
34723694 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
34733695 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
34743696 cat <<_LT_EOF > conftest.$ac_ext
3697 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3698 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3699 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3700 relocations are performed -- see ld's documentation on pseudo-relocs. */
3701 # define LT@&t@_DLSYM_CONST
3702 #elif defined(__osf__)
3703 /* This system does not cope well with relocations in const data. */
3704 # define LT@&t@_DLSYM_CONST
3705 #else
3706 # define LT@&t@_DLSYM_CONST const
3707 #endif
3708
34753709 #ifdef __cplusplus
34763710 extern "C" {
34773711 #endif
34833717 cat <<_LT_EOF >> conftest.$ac_ext
34843718
34853719 /* The mapping between symbol names and symbols. */
3486 const struct {
3720 LT@&t@_DLSYM_CONST struct {
34873721 const char *name;
34883722 void *address;
34893723 }
35093743 _LT_EOF
35103744 # Now try linking the two files.
35113745 mv conftest.$ac_objext conftstm.$ac_objext
3512 lt_save_LIBS="$LIBS"
3513 lt_save_CFLAGS="$CFLAGS"
3746 lt_globsym_save_LIBS=$LIBS
3747 lt_globsym_save_CFLAGS=$CFLAGS
35143748 LIBS="conftstm.$ac_objext"
35153749 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
35163750 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
35173751 pipe_works=yes
35183752 fi
3519 LIBS="$lt_save_LIBS"
3520 CFLAGS="$lt_save_CFLAGS"
3753 LIBS=$lt_globsym_save_LIBS
3754 CFLAGS=$lt_globsym_save_CFLAGS
35213755 else
35223756 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
35233757 fi
35503784 AC_MSG_RESULT(ok)
35513785 fi
35523786
3787 # Response file support.
3788 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3789 nm_file_list_spec='@'
3790 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3791 nm_file_list_spec='@'
3792 fi
3793
35533794 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
35543795 [Take the output of nm and produce a listing of raw symbols and C names])
35553796 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
35603801 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
35613802 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
35623803 [Transform the output of nm in a C name address pair when lib prefix is needed])
3804 _LT_DECL([], [nm_file_list_spec], [1],
3805 [Specify filename containing input files for $NM])
35633806 ]) # _LT_CMD_GLOBAL_SYMBOLS
35643807
35653808
35713814 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
35723815 _LT_TAGVAR(lt_prog_compiler_static, $1)=
35733816
3574 AC_MSG_CHECKING([for $compiler option to produce PIC])
35753817 m4_if([$1], [CXX], [
35763818 # C++ specific cases for pic, static, wl, etc.
35773819 if test "$GXX" = yes; then
36753917 # _LT_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"
36763918 ;;
36773919 esac
3920 ;;
3921 mingw* | cygwin* | os2* | pw32* | cegcc*)
3922 # This hack is so that the source file can tell whether it is being
3923 # built for inclusion in a dll (and should export symbols for example).
3924 m4_if([$1], [GCJ], [],
3925 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
36783926 ;;
36793927 dgux*)
36803928 case $cc_basename in
40504298 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
40514299 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
40524300 ;;
4301 nagfor*)
4302 # NAG Fortran compiler
4303 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4304 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4305 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4306 ;;
40534307 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
40544308 # Portland Group compilers (*not* the Pentium gcc compiler,
40554309 # which looks to be a dead project)
41694423 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
41704424 ;;
41714425 esac
4172 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4173 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4174 [How to pass a linker flag through the compiler])
4426
4427 AC_CACHE_CHECK([for $compiler option to produce PIC],
4428 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4429 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4430 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
41754431
41764432 #
41774433 # Check to make sure the PIC flag actually works.
41904446 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
41914447 [Additional compiler flags for building library objects])
41924448
4449 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4450 [How to pass a linker flag through the compiler])
41934451 #
41944452 # Check to make sure the static flag actually works.
41954453 #
42104468 m4_defun([_LT_LINKER_SHLIBS],
42114469 [AC_REQUIRE([LT_PATH_LD])dnl
42124470 AC_REQUIRE([LT_PATH_NM])dnl
4471 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
42134472 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
42144473 m4_require([_LT_DECL_EGREP])dnl
42154474 m4_require([_LT_DECL_SED])dnl
42184477 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
42194478 m4_if([$1], [CXX], [
42204479 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4480 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42214481 case $host_os in
42224482 aix[[4-9]]*)
42234483 # If we're using GNU nm, then we don't want the "-C" option.
42324492 ;;
42334493 pw32*)
42344494 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4235 ;;
4495 ;;
42364496 cygwin* | mingw* | cegcc*)
4237 _LT_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'
4238 ;;
4497 case $cc_basename in
4498 cl*) ;;
4499 *)
4500 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4501 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4502 ;;
4503 esac
4504 ;;
42394505 *)
42404506 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4241 ;;
4507 ;;
42424508 esac
4243 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42444509 ], [
42454510 runpath_var=
42464511 _LT_TAGVAR(allow_undefined_flag, $1)=
44084673 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
44094674 _LT_TAGVAR(always_export_symbols, $1)=no
44104675 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4411 _LT_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'
4676 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4677 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
44124678
44134679 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
44144680 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
44564722 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
44574723 && test "$tmp_diet" = no
44584724 then
4459 tmp_addflag=
4725 tmp_addflag=' $pic_flag'
44604726 tmp_sharedflag='-shared'
44614727 case $cc_basename,$host_cpu in
44624728 pgcc*) # Portland Group C compiler
45264792 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
45274793 wlarc=
45284794 else
4529 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4530 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4796 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45314797 fi
45324798 ;;
45334799
45454811
45464812 _LT_EOF
45474813 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4548 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4549 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4814 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4815 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45504816 else
45514817 _LT_TAGVAR(ld_shlibs, $1)=no
45524818 fi
45924858
45934859 *)
45944860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4595 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4596 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4861 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4862 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45974863 else
45984864 _LT_TAGVAR(ld_shlibs, $1)=no
45994865 fi
47234989 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
47244990 # Determine the default libpath from the value encoded in an
47254991 # empty executable.
4726 _LT_SYS_MODULE_PATH_AIX
4992 _LT_SYS_MODULE_PATH_AIX([$1])
47274993 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
47284994 _LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
47294995 else
47345000 else
47355001 # Determine the default libpath from the value encoded in an
47365002 # empty executable.
4737 _LT_SYS_MODULE_PATH_AIX
5003 _LT_SYS_MODULE_PATH_AIX([$1])
47385004 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
47395005 # Warning - without using the other run time loading flags,
47405006 # -berok will link without error, but may produce a broken library.
47785044 # Microsoft Visual C++.
47795045 # hardcode_libdir_flag_spec is actually meaningless, as there is
47805046 # no search path for DLLs.
4781 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4782 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4783 # Tell ltmain to make .lib files, not .a files.
4784 libext=lib
4785 # Tell ltmain to make .dll files, not .so files.
4786 shrext_cmds=".dll"
4787 # FIXME: Setting linknames here is a bad hack.
4788 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
4789 # The linker will automatically build a .lib file if we build a DLL.
4790 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4791 # FIXME: Should let the user specify the lib program.
4792 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4793 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4794 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5047 case $cc_basename in
5048 cl*)
5049 # Native MSVC
5050 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5051 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5052 _LT_TAGVAR(always_export_symbols, $1)=yes
5053 _LT_TAGVAR(file_list_spec, $1)='@'
5054 # Tell ltmain to make .lib files, not .a files.
5055 libext=lib
5056 # Tell ltmain to make .dll files, not .so files.
5057 shrext_cmds=".dll"
5058 # FIXME: Setting linknames here is a bad hack.
5059 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5060 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5061 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5062 else
5063 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5064 fi~
5065 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5066 linknames='
5067 # The linker will not automatically build a static lib if we build a DLL.
5068 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5069 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5070 _LT_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'
5071 # Don't use ranlib
5072 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5073 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5074 lt_tool_outputfile="@TOOL_OUTPUT@"~
5075 case $lt_outputfile in
5076 *.exe|*.EXE) ;;
5077 *)
5078 lt_outputfile="$lt_outputfile.exe"
5079 lt_tool_outputfile="$lt_tool_outputfile.exe"
5080 ;;
5081 esac~
5082 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5083 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5084 $RM "$lt_outputfile.manifest";
5085 fi'
5086 ;;
5087 *)
5088 # Assume MSVC wrapper
5089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5090 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5091 # Tell ltmain to make .lib files, not .a files.
5092 libext=lib
5093 # Tell ltmain to make .dll files, not .so files.
5094 shrext_cmds=".dll"
5095 # FIXME: Setting linknames here is a bad hack.
5096 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5097 # The linker will automatically build a .lib file if we build a DLL.
5098 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5099 # FIXME: Should let the user specify the lib program.
5100 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5101 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5102 ;;
5103 esac
47955104 ;;
47965105
47975106 darwin* | rhapsody*)
48295138
48305139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
48315140 freebsd* | dragonfly*)
4832 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5141 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
48335142 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
48345143 _LT_TAGVAR(hardcode_direct, $1)=yes
48355144 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
48375146
48385147 hpux9*)
48395148 if test "$GCC" = yes; then
4840 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5149 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
48415150 else
48425151 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
48435152 fi
48535162
48545163 hpux10*)
48555164 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4856 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5165 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48575166 else
48585167 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
48595168 fi
48775186 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48785187 ;;
48795188 ia64*)
4880 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5189 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48815190 ;;
48825191 *)
4883 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5192 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48845193 ;;
48855194 esac
48865195 else
49275236
49285237 irix5* | irix6* | nonstopux*)
49295238 if test "$GCC" = yes; then
4930 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5239 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
49315240 # Try to use the -exported_symbol ld option, if it does not
49325241 # work, assume that -exports_file does not work either and
49335242 # implicitly export all symbols.
4934 save_LDFLAGS="$LDFLAGS"
4935 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4936 AC_LINK_IFELSE(int foo(void) {},
4937 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4938 )
4939 LDFLAGS="$save_LDFLAGS"
5243 # This should be the same for all languages, so no per-tag cache variable.
5244 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5245 [lt_cv_irix_exported_symbol],
5246 [save_LDFLAGS="$LDFLAGS"
5247 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5248 AC_LINK_IFELSE(
5249 [AC_LANG_SOURCE(
5250 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5251 [C++], [[int foo (void) { return 0; }]],
5252 [Fortran 77], [[
5253 subroutine foo
5254 end]],
5255 [Fortran], [[
5256 subroutine foo
5257 end]])])],
5258 [lt_cv_irix_exported_symbol=yes],
5259 [lt_cv_irix_exported_symbol=no])
5260 LDFLAGS="$save_LDFLAGS"])
5261 if test "$lt_cv_irix_exported_symbol" = yes; then
5262 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5263 fi
49405264 else
49415265 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
49425266 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
50215345 osf4* | osf5*) # as osf3* with the addition of -msym flag
50225346 if test "$GCC" = yes; then
50235347 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5024 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5348 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
50255349 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
50265350 else
50275351 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
50405364 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
50415365 if test "$GCC" = yes; then
50425366 wlarc='${wl}'
5043 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5367 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
50445368 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5045 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5369 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
50465370 else
50475371 case `$CC -V 2>&1` in
50485372 *"Compilers 5.0"*)
53145638 to runtime path list])
53155639 _LT_TAGDECL([], [link_all_deplibs], [0],
53165640 [Whether libtool must link a program against all its dependency libraries])
5317 _LT_TAGDECL([], [fix_srcfile_path], [1],
5318 [Fix the shell variable $srcfile for the compiler])
53195641 _LT_TAGDECL([], [always_export_symbols], [0],
53205642 [Set to "yes" if exported symbols are required])
53215643 _LT_TAGDECL([], [export_symbols_cmds], [2],
53265648 [Symbols that must always be exported])
53275649 _LT_TAGDECL([], [prelink_cmds], [2],
53285650 [Commands necessary for linking programs (against libraries) with templates])
5651 _LT_TAGDECL([], [postlink_cmds], [2],
5652 [Commands necessary for finishing linking programs])
53295653 _LT_TAGDECL([], [file_list_spec], [1],
53305654 [Specify filename containing input files])
53315655 dnl FIXME: Not yet implemented
54275751 m4_defun([_LT_LANG_CXX_CONFIG],
54285752 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
54295753 m4_require([_LT_DECL_EGREP])dnl
5754 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
54305755 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
54315756 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
54325757 (test "X$CXX" != "Xg++"))) ; then
54885813
54895814 # Allow CC to be a program name with arguments.
54905815 lt_save_CC=$CC
5816 lt_save_CFLAGS=$CFLAGS
54915817 lt_save_LD=$LD
54925818 lt_save_GCC=$GCC
54935819 GCC=$GXX
55055831 fi
55065832 test -z "${LDCXX+set}" || LD=$LDCXX
55075833 CC=${CXX-"c++"}
5834 CFLAGS=$CXXFLAGS
55085835 compiler=$CC
55095836 _LT_TAGVAR(compiler, $1)=$CC
55105837 _LT_CC_BASENAME([$compiler])
55265853 # Check if GNU C++ uses GNU ld as the underlying linker, since the
55275854 # archiving commands below assume that GNU ld is being used.
55285855 if test "$with_gnu_ld" = yes; then
5529 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5530 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5856 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5857 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
55315858
55325859 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
55335860 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
56685995 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
56695996 # Determine the default libpath from the value encoded in an empty
56705997 # executable.
5671 _LT_SYS_MODULE_PATH_AIX
5998 _LT_SYS_MODULE_PATH_AIX([$1])
56725999 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56736000
56746001 _LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
56806007 else
56816008 # Determine the default libpath from the value encoded in an
56826009 # empty executable.
5683 _LT_SYS_MODULE_PATH_AIX
6010 _LT_SYS_MODULE_PATH_AIX([$1])
56846011 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56856012 # Warning - without using the other run time loading flags,
56866013 # -berok will link without error, but may produce a broken library.
57226049 ;;
57236050
57246051 cygwin* | mingw* | pw32* | cegcc*)
5725 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5726 # as there is no search path for DLLs.
5727 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5728 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5729 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5730 _LT_TAGVAR(always_export_symbols, $1)=no
5731 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5732
5733 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5734 _LT_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'
5735 # If the export-symbols file already is a .def file (1st line
5736 # is EXPORTS), use it as is; otherwise, prepend...
5737 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5738 cp $export_symbols $output_objdir/$soname.def;
5739 else
5740 echo EXPORTS > $output_objdir/$soname.def;
5741 cat $export_symbols >> $output_objdir/$soname.def;
5742 fi~
5743 $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'
5744 else
5745 _LT_TAGVAR(ld_shlibs, $1)=no
5746 fi
5747 ;;
6052 case $GXX,$cc_basename in
6053 ,cl* | no,cl*)
6054 # Native MSVC
6055 # hardcode_libdir_flag_spec is actually meaningless, as there is
6056 # no search path for DLLs.
6057 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6058 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6059 _LT_TAGVAR(always_export_symbols, $1)=yes
6060 _LT_TAGVAR(file_list_spec, $1)='@'
6061 # Tell ltmain to make .lib files, not .a files.
6062 libext=lib
6063 # Tell ltmain to make .dll files, not .so files.
6064 shrext_cmds=".dll"
6065 # FIXME: Setting linknames here is a bad hack.
6066 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6067 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6068 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6069 else
6070 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6071 fi~
6072 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6073 linknames='
6074 # The linker will not automatically build a static lib if we build a DLL.
6075 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6076 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6077 # Don't use ranlib
6078 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6079 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6080 lt_tool_outputfile="@TOOL_OUTPUT@"~
6081 case $lt_outputfile in
6082 *.exe|*.EXE) ;;
6083 *)
6084 lt_outputfile="$lt_outputfile.exe"
6085 lt_tool_outputfile="$lt_tool_outputfile.exe"
6086 ;;
6087 esac~
6088 func_to_tool_file "$lt_outputfile"~
6089 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6090 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6091 $RM "$lt_outputfile.manifest";
6092 fi'
6093 ;;
6094 *)
6095 # g++
6096 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6097 # as there is no search path for DLLs.
6098 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6099 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6100 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6101 _LT_TAGVAR(always_export_symbols, $1)=no
6102 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6103
6104 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6105 _LT_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'
6106 # If the export-symbols file already is a .def file (1st line
6107 # is EXPORTS), use it as is; otherwise, prepend...
6108 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6109 cp $export_symbols $output_objdir/$soname.def;
6110 else
6111 echo EXPORTS > $output_objdir/$soname.def;
6112 cat $export_symbols >> $output_objdir/$soname.def;
6113 fi~
6114 $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'
6115 else
6116 _LT_TAGVAR(ld_shlibs, $1)=no
6117 fi
6118 ;;
6119 esac
6120 ;;
57486121 darwin* | rhapsody*)
57496122 _LT_DARWIN_LINKER_FEATURES($1)
57506123 ;;
58196192 ;;
58206193 *)
58216194 if test "$GXX" = yes; then
5822 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
6195 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
58236196 else
58246197 # FIXME: insert proper C++ library support
58256198 _LT_TAGVAR(ld_shlibs, $1)=no
58906263 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58916264 ;;
58926265 ia64*)
5893 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6266 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58946267 ;;
58956268 *)
5896 _LT_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'
6269 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58976270 ;;
58986271 esac
58996272 fi
59346307 *)
59356308 if test "$GXX" = yes; then
59366309 if test "$with_gnu_ld" = no; then
5937 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6310 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
59386311 else
5939 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6312 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
59406313 fi
59416314 fi
59426315 _LT_TAGVAR(link_all_deplibs, $1)=yes
62146587 _LT_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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
62156588 ;;
62166589 *)
6217 _LT_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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6590 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
62186591 ;;
62196592 esac
62206593
63016674 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
63026675 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
63036676 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6304 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6677 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
63056678 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6306 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6679 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
63076680
63086681 # Commands to make compiler produce verbose output that lists
63096682 # what "hidden" libraries, object files and flags are used when
64326805 fi # test -n "$compiler"
64336806
64346807 CC=$lt_save_CC
6808 CFLAGS=$lt_save_CFLAGS
64356809 LDCXX=$LD
64366810 LD=$lt_save_LD
64376811 GCC=$lt_save_GCC
64466820 ])# _LT_LANG_CXX_CONFIG
64476821
64486822
6823 # _LT_FUNC_STRIPNAME_CNF
6824 # ----------------------
6825 # func_stripname_cnf prefix suffix name
6826 # strip PREFIX and SUFFIX off of NAME.
6827 # PREFIX and SUFFIX must not contain globbing or regex special
6828 # characters, hashes, percent signs, but SUFFIX may contain a leading
6829 # dot (in which case that matches only a dot).
6830 #
6831 # This function is identical to the (non-XSI) version of func_stripname,
6832 # except this one can be used by m4 code that may be executed by configure,
6833 # rather than the libtool script.
6834 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6835 AC_REQUIRE([_LT_DECL_SED])
6836 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6837 func_stripname_cnf ()
6838 {
6839 case ${2} in
6840 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6841 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6842 esac
6843 } # func_stripname_cnf
6844 ])# _LT_FUNC_STRIPNAME_CNF
6845
64496846 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
64506847 # ---------------------------------
64516848 # Figure out "hidden" library dependencies from verbose
64546851 # objects, libraries and library flags.
64556852 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
64566853 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6854 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
64576855 # Dependencies to place before and after the object being linked:
64586856 _LT_TAGVAR(predep_objects, $1)=
64596857 _LT_TAGVAR(postdep_objects, $1)=
65046902 };
65056903 _LT_EOF
65066904 ])
6905
6906 _lt_libdeps_save_CFLAGS=$CFLAGS
6907 case "$CC $CFLAGS " in #(
6908 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6909 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6910 esac
6911
65076912 dnl Parse the compiler output and extract the necessary
65086913 dnl objects, libraries and library flags.
65096914 if AC_TRY_EVAL(ac_compile); then
65156920 pre_test_object_deps_done=no
65166921
65176922 for p in `eval "$output_verbose_link_cmd"`; do
6518 case $p in
6923 case ${prev}${p} in
65196924
65206925 -L* | -R* | -l*)
65216926 # Some compilers place space between "-{L,R}" and the path.
65246929 test $p = "-R"; then
65256930 prev=$p
65266931 continue
6527 else
6528 prev=
65296932 fi
65306933
6934 # Expand the sysroot to ease extracting the directories later.
6935 if test -z "$prev"; then
6936 case $p in
6937 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
6938 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
6939 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
6940 esac
6941 fi
6942 case $p in
6943 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
6944 esac
65316945 if test "$pre_test_object_deps_done" = no; then
6532 case $p in
6533 -L* | -R*)
6946 case ${prev} in
6947 -L | -R)
65346948 # Internal compiler library paths should come after those
65356949 # provided the user. The postdeps already come after the
65366950 # user supplied libs so there is no need to process them.
65506964 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
65516965 fi
65526966 fi
6967 prev=
65536968 ;;
65546969
6970 *.lto.$objext) ;; # Ignore GCC LTO objects
65556971 *.$objext)
65566972 # This assumes that the test object file only shows up
65576973 # once in the compiler output.
65877003 fi
65887004
65897005 $RM -f confest.$objext
7006 CFLAGS=$_lt_libdeps_save_CFLAGS
65907007
65917008 # PORTME: override above test on systems where it is broken
65927009 m4_if([$1], [CXX],
67367153 # Allow CC to be a program name with arguments.
67377154 lt_save_CC="$CC"
67387155 lt_save_GCC=$GCC
7156 lt_save_CFLAGS=$CFLAGS
67397157 CC=${F77-"f77"}
7158 CFLAGS=$FFLAGS
67407159 compiler=$CC
67417160 _LT_TAGVAR(compiler, $1)=$CC
67427161 _LT_CC_BASENAME([$compiler])
67907209
67917210 GCC=$lt_save_GCC
67927211 CC="$lt_save_CC"
7212 CFLAGS="$lt_save_CFLAGS"
67937213 fi # test "$_lt_disable_F77" != yes
67947214
67957215 AC_LANG_POP
68667286 # Allow CC to be a program name with arguments.
68677287 lt_save_CC="$CC"
68687288 lt_save_GCC=$GCC
7289 lt_save_CFLAGS=$CFLAGS
68697290 CC=${FC-"f95"}
7291 CFLAGS=$FCFLAGS
68707292 compiler=$CC
68717293 GCC=$ac_cv_fc_compiler_gnu
68727294
69227344 fi # test -n "$compiler"
69237345
69247346 GCC=$lt_save_GCC
6925 CC="$lt_save_CC"
7347 CC=$lt_save_CC
7348 CFLAGS=$lt_save_CFLAGS
69267349 fi # test "$_lt_disable_FC" != yes
69277350
69287351 AC_LANG_POP
69597382 _LT_LINKER_BOILERPLATE
69607383
69617384 # Allow CC to be a program name with arguments.
6962 lt_save_CC="$CC"
7385 lt_save_CC=$CC
7386 lt_save_CFLAGS=$CFLAGS
69637387 lt_save_GCC=$GCC
69647388 GCC=yes
69657389 CC=${GCJ-"gcj"}
7390 CFLAGS=$GCJFLAGS
69667391 compiler=$CC
69677392 _LT_TAGVAR(compiler, $1)=$CC
69687393 _LT_TAGVAR(LD, $1)="$LD"
69937418 AC_LANG_RESTORE
69947419
69957420 GCC=$lt_save_GCC
6996 CC="$lt_save_CC"
7421 CC=$lt_save_CC
7422 CFLAGS=$lt_save_CFLAGS
69977423 ])# _LT_LANG_GCJ_CONFIG
69987424
69997425
70287454
70297455 # Allow CC to be a program name with arguments.
70307456 lt_save_CC="$CC"
7457 lt_save_CFLAGS=$CFLAGS
70317458 lt_save_GCC=$GCC
70327459 GCC=
70337460 CC=${RC-"windres"}
7461 CFLAGS=
70347462 compiler=$CC
70357463 _LT_TAGVAR(compiler, $1)=$CC
70367464 _LT_CC_BASENAME([$compiler])
70437471
70447472 GCC=$lt_save_GCC
70457473 AC_LANG_RESTORE
7046 CC="$lt_save_CC"
7474 CC=$lt_save_CC
7475 CFLAGS=$lt_save_CFLAGS
70477476 ])# _LT_LANG_RC_CONFIG
70487477
70497478
71027531 AC_SUBST([OBJDUMP])
71037532 ])
71047533
7534 # _LT_DECL_DLLTOOL
7535 # ----------------
7536 # Ensure DLLTOOL variable is set.
7537 m4_defun([_LT_DECL_DLLTOOL],
7538 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7539 test -z "$DLLTOOL" && DLLTOOL=dlltool
7540 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7541 AC_SUBST([DLLTOOL])
7542 ])
71057543
71067544 # _LT_DECL_SED
71077545 # ------------
71957633 # Try some XSI features
71967634 xsi_shell=no
71977635 ( _lt_dummy="a/b/c"
7198 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7199 = c,a/b,, \
7636 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7637 = c,a/b,b/c, \
72007638 && eval 'test $(( 1 + 1 )) -eq 2 \
72017639 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
72027640 && xsi_shell=yes
72357673 ])# _LT_CHECK_SHELL_FEATURES
72367674
72377675
7238 # _LT_PROG_XSI_SHELLFNS
7239 # ---------------------
7240 # Bourne and XSI compatible variants of some useful shell functions.
7241 m4_defun([_LT_PROG_XSI_SHELLFNS],
7242 [case $xsi_shell in
7243 yes)
7244 cat << \_LT_EOF >> "$cfgfile"
7245
7246 # func_dirname file append nondir_replacement
7247 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7248 # otherwise set result to NONDIR_REPLACEMENT.
7249 func_dirname ()
7250 {
7251 case ${1} in
7252 */*) func_dirname_result="${1%/*}${2}" ;;
7253 * ) func_dirname_result="${3}" ;;
7254 esac
7255 }
7256
7257 # func_basename file
7258 func_basename ()
7259 {
7260 func_basename_result="${1##*/}"
7261 }
7262
7263 # func_dirname_and_basename file append nondir_replacement
7264 # perform func_basename and func_dirname in a single function
7265 # call:
7266 # dirname: Compute the dirname of FILE. If nonempty,
7267 # add APPEND to the result, otherwise set result
7268 # to NONDIR_REPLACEMENT.
7269 # value returned in "$func_dirname_result"
7270 # basename: Compute filename of FILE.
7271 # value retuned in "$func_basename_result"
7272 # Implementation must be kept synchronized with func_dirname
7273 # and func_basename. For efficiency, we do not delegate to
7274 # those functions but instead duplicate the functionality here.
7275 func_dirname_and_basename ()
7276 {
7277 case ${1} in
7278 */*) func_dirname_result="${1%/*}${2}" ;;
7279 * ) func_dirname_result="${3}" ;;
7280 esac
7281 func_basename_result="${1##*/}"
7282 }
7283
7284 # func_stripname prefix suffix name
7285 # strip PREFIX and SUFFIX off of NAME.
7286 # PREFIX and SUFFIX must not contain globbing or regex special
7287 # characters, hashes, percent signs, but SUFFIX may contain a leading
7288 # dot (in which case that matches only a dot).
7289 func_stripname ()
7290 {
7291 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7292 # positional parameters, so assign one to ordinary parameter first.
7293 func_stripname_result=${3}
7294 func_stripname_result=${func_stripname_result#"${1}"}
7295 func_stripname_result=${func_stripname_result%"${2}"}
7296 }
7297
7298 # func_opt_split
7299 func_opt_split ()
7300 {
7301 func_opt_split_opt=${1%%=*}
7302 func_opt_split_arg=${1#*=}
7303 }
7304
7305 # func_lo2o object
7306 func_lo2o ()
7307 {
7308 case ${1} in
7309 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7310 *) func_lo2o_result=${1} ;;
7311 esac
7312 }
7313
7314 # func_xform libobj-or-source
7315 func_xform ()
7316 {
7317 func_xform_result=${1%.*}.lo
7318 }
7319
7320 # func_arith arithmetic-term...
7321 func_arith ()
7322 {
7323 func_arith_result=$(( $[*] ))
7324 }
7325
7326 # func_len string
7327 # STRING may not start with a hyphen.
7328 func_len ()
7329 {
7330 func_len_result=${#1}
7331 }
7332
7333 _LT_EOF
7676 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7677 # ------------------------------------------------------
7678 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7679 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7680 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7681 [dnl {
7682 sed -e '/^$1 ()$/,/^} # $1 /c\
7683 $1 ()\
7684 {\
7685 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7686 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7687 && mv -f "$cfgfile.tmp" "$cfgfile" \
7688 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7689 test 0 -eq $? || _lt_function_replace_fail=:
7690 ])
7691
7692
7693 # _LT_PROG_REPLACE_SHELLFNS
7694 # -------------------------
7695 # Replace existing portable implementations of several shell functions with
7696 # equivalent extended shell implementations where those features are available..
7697 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7698 [if test x"$xsi_shell" = xyes; then
7699 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7700 case ${1} in
7701 */*) func_dirname_result="${1%/*}${2}" ;;
7702 * ) func_dirname_result="${3}" ;;
7703 esac])
7704
7705 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7706 func_basename_result="${1##*/}"])
7707
7708 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7709 case ${1} in
7710 */*) func_dirname_result="${1%/*}${2}" ;;
7711 * ) func_dirname_result="${3}" ;;
7712 esac
7713 func_basename_result="${1##*/}"])
7714
7715 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7716 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7717 # positional parameters, so assign one to ordinary parameter first.
7718 func_stripname_result=${3}
7719 func_stripname_result=${func_stripname_result#"${1}"}
7720 func_stripname_result=${func_stripname_result%"${2}"}])
7721
7722 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7723 func_split_long_opt_name=${1%%=*}
7724 func_split_long_opt_arg=${1#*=}])
7725
7726 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7727 func_split_short_opt_arg=${1#??}
7728 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7729
7730 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7731 case ${1} in
7732 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7733 *) func_lo2o_result=${1} ;;
7734 esac])
7735
7736 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7737
7738 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7739
7740 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7741 fi
7742
7743 if test x"$lt_shell_append" = xyes; then
7744 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7745
7746 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7747 func_quote_for_eval "${2}"
7748 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7749 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7750
7751 # Save a `func_append' function call where possible by direct use of '+='
7752 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7753 && mv -f "$cfgfile.tmp" "$cfgfile" \
7754 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7755 test 0 -eq $? || _lt_function_replace_fail=:
7756 else
7757 # Save a `func_append' function call even when '+=' is not available
7758 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7759 && mv -f "$cfgfile.tmp" "$cfgfile" \
7760 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7761 test 0 -eq $? || _lt_function_replace_fail=:
7762 fi
7763
7764 if test x"$_lt_function_replace_fail" = x":"; then
7765 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7766 fi
7767 ])
7768
7769 # _LT_PATH_CONVERSION_FUNCTIONS
7770 # -----------------------------
7771 # Determine which file name conversion functions should be used by
7772 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7773 # for certain cross-compile configurations and native mingw.
7774 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7775 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7776 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7777 AC_MSG_CHECKING([how to convert $build file names to $host format])
7778 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7779 [case $host in
7780 *-*-mingw* )
7781 case $build in
7782 *-*-mingw* ) # actually msys
7783 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7784 ;;
7785 *-*-cygwin* )
7786 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7787 ;;
7788 * ) # otherwise, assume *nix
7789 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7790 ;;
7791 esac
73347792 ;;
7335 *) # Bourne compatible functions.
7336 cat << \_LT_EOF >> "$cfgfile"
7337
7338 # func_dirname file append nondir_replacement
7339 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7340 # otherwise set result to NONDIR_REPLACEMENT.
7341 func_dirname ()
7342 {
7343 # Extract subdirectory from the argument.
7344 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
7345 if test "X$func_dirname_result" = "X${1}"; then
7346 func_dirname_result="${3}"
7347 else
7348 func_dirname_result="$func_dirname_result${2}"
7349 fi
7350 }
7351
7352 # func_basename file
7353 func_basename ()
7354 {
7355 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
7356 }
7357
7358 dnl func_dirname_and_basename
7359 dnl A portable version of this function is already defined in general.m4sh
7360 dnl so there is no need for it here.
7361
7362 # func_stripname prefix suffix name
7363 # strip PREFIX and SUFFIX off of NAME.
7364 # PREFIX and SUFFIX must not contain globbing or regex special
7365 # characters, hashes, percent signs, but SUFFIX may contain a leading
7366 # dot (in which case that matches only a dot).
7367 # func_strip_suffix prefix name
7368 func_stripname ()
7369 {
7370 case ${2} in
7371 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7372 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7373 esac
7374 }
7375
7376 # sed scripts:
7377 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7378 my_sed_long_arg='1s/^-[[^=]]*=//'
7379
7380 # func_opt_split
7381 func_opt_split ()
7382 {
7383 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
7384 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
7385 }
7386
7387 # func_lo2o object
7388 func_lo2o ()
7389 {
7390 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
7391 }
7392
7393 # func_xform libobj-or-source
7394 func_xform ()
7395 {
7396 func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
7397 }
7398
7399 # func_arith arithmetic-term...
7400 func_arith ()
7401 {
7402 func_arith_result=`expr "$[@]"`
7403 }
7404
7405 # func_len string
7406 # STRING may not start with a hyphen.
7407 func_len ()
7408 {
7409 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7410 }
7411
7412 _LT_EOF
7793 *-*-cygwin* )
7794 case $build in
7795 *-*-mingw* ) # actually msys
7796 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7797 ;;
7798 *-*-cygwin* )
7799 lt_cv_to_host_file_cmd=func_convert_file_noop
7800 ;;
7801 * ) # otherwise, assume *nix
7802 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7803 ;;
7804 esac
7805 ;;
7806 * ) # unhandled hosts (and "normal" native builds)
7807 lt_cv_to_host_file_cmd=func_convert_file_noop
7808 ;;
74137809 esac
7414
7415 case $lt_shell_append in
7416 yes)
7417 cat << \_LT_EOF >> "$cfgfile"
7418
7419 # func_append var value
7420 # Append VALUE to the end of shell variable VAR.
7421 func_append ()
7422 {
7423 eval "$[1]+=\$[2]"
7424 }
7425 _LT_EOF
7810 ])
7811 to_host_file_cmd=$lt_cv_to_host_file_cmd
7812 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7813 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7814 [0], [convert $build file names to $host format])dnl
7815
7816 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7817 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7818 [#assume ordinary cross tools, or native build.
7819 lt_cv_to_tool_file_cmd=func_convert_file_noop
7820 case $host in
7821 *-*-mingw* )
7822 case $build in
7823 *-*-mingw* ) # actually msys
7824 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7825 ;;
7826 esac
74267827 ;;
7427 *)
7428 cat << \_LT_EOF >> "$cfgfile"
7429
7430 # func_append var value
7431 # Append VALUE to the end of shell variable VAR.
7432 func_append ()
7433 {
7434 eval "$[1]=\$$[1]\$[2]"
7435 }
7436
7437 _LT_EOF
7438 ;;
7439 esac
7828 esac
74407829 ])
7830 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7831 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7832 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7833 [0], [convert $build files to toolchain format])dnl
7834 ])# _LT_PATH_CONVERSION_FUNCTIONS
66 # unlimited permission to copy and/or distribute it, with or without
77 # modifications, as long as this notice is preserved.
88
9 # Generated from ltversion.in.
9 # @configure_input@
1010
11 # serial 3175 ltversion.m4
11 # serial 3293 ltversion.m4
1212 # This file is part of GNU Libtool
1313
14 m4_define([LT_PACKAGE_VERSION], [2.2.10])
15 m4_define([LT_PACKAGE_REVISION], [1.3175])
14 m4_define([LT_PACKAGE_VERSION], [2.4])
15 m4_define([LT_PACKAGE_REVISION], [1.3293])
1616
1717 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.2.10'
19 macro_revision='1.3175'
18 [macro_version='2.4'
19 macro_revision='1.3293'
2020 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
2121 _LT_DECL(, macro_revision, 0)
2222 ])
0 /* $Id: BurgerSpaceClient.cpp,v 1.3 2010/09/16 03:22:22 sarrazip Exp $
0 /* $Id: BurgerSpaceClient.cpp,v 1.5 2013/02/25 05:04:43 sarrazip Exp $
11 BurgerSpaceClient.cpp - Game client
22
33 burgerspace - A hamburger-smashing video game.
4 Copyright (C) 2001-2010 Pierre Sarrazin <http://sarrazip.com/>
4 Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
55
66 This program is free software; you can redistribute it and/or
77 modify it under the terms of the GNU General Public License
8888 levelNoAreaSize(),
8989 currentPauseMessage(),
9090 gameMode(IN_GAME),
91 slotDirCursorPos(1),
9192 theSoundMixer(NULL),
9293 useSound(_useSound),
9394 ingredientBouncesChunk(),
676677 */
677678 {
678679 if (lastKeyPressed >= SDLK_1 && lastKeyPressed <= SDLK_9)
679 {
680 int slotNum = int(lastKeyPressed - SDLK_1) + 1;
681 lastKeyPressed = SDLK_UNKNOWN;
682 return slotNum;
683 }
680 return int(lastKeyPressed - SDLK_1) + 1;
684681
685682 if (lastKeyPressed == SDLK_ESCAPE)
686 {
687 lastKeyPressed = SDLK_UNKNOWN;
688683 return -2;
689 }
684
685 // Manage cursor: up and down arrows, and Enter.
686 //
687 if (lastKeyPressed == SDLK_UP)
688 {
689 slotDirCursorPos = (slotDirCursorPos + 7) % 9 + 1;
690 return -1;
691 }
692 if (lastKeyPressed == SDLK_DOWN)
693 {
694 slotDirCursorPos = slotDirCursorPos % 9 + 1;
695 return -1;
696 }
697 if (lastKeyPressed == SDLK_RETURN)
698 return slotDirCursorPos;
690699
691700 return -1;
692701 }
763772 #ifndef _MSC_VER
764773 int fontHeight = getFontDimensions().y;
765774 int y = 11 * fontHeight;
766 writeStringXCentered(" ", y += fontHeight);
767 writeStringXCentered(" No Save Time ", y += fontHeight);
768 writeStringXCentered(" -- ------------------- ", y += fontHeight);
775 writeStringXCentered(" ", y += fontHeight);
776 writeStringXCentered(" No Save Time ", y += fontHeight);
777 writeStringXCentered(" -- ------------------- ", y += fontHeight);
769778
770779 string dirname = getSavedGamesDir();
771780
788797 strftime(fileTime, sizeof(fileTime), "%Y-%m-%d %H:%M:%S", &t);
789798 }
790799 }
791 snprintf(slotDesc, sizeof(slotDesc), " %u %-19s ", slotNum, fileTime);
800 const char *leftCursor = (slotNum == slotDirCursorPos ? "->" : " ");
801 const char *rightCursor = (slotNum == slotDirCursorPos ? "<-" : " ");
802 snprintf(slotDesc, sizeof(slotDesc), " %s %u %-19s %s ",
803 leftCursor, slotNum, fileTime, rightCursor);
792804 writeStringXCentered(string(slotDesc), y += fontHeight);
793805 }
794806
848860 void
849861 BurgerSpaceClient::drawLoadDialog()
850862 {
851 showDialogBox(" LOAD GAME: which slot? (1-9, Escape=cancel) ");
863 showDialogBox(" LOAD GAME: which slot? (1-9, up/down/Enter, Escape=cancel) ");
852864 showSlotDirectory();
853865 }
854866
882894 {
883895 int errorCode = serverInterface->loadGame(in);
884896 if (errorCode != 0)
885 msg << "Failed to load from slot" << slotNum;
897 msg << "Failed to load from slot " << slotNum << ": error code #" << errorCode;
886898 else
887899 {
888900 // Show the new game situation:
0 /* $Id: BurgerSpaceClient.h,v 1.2 2010/05/26 03:13:01 sarrazip Exp $
0 /* $Id: BurgerSpaceClient.h,v 1.4 2013/02/25 05:04:43 sarrazip Exp $
11 BurgerSpaceClient.h - Game client
22
33 burgerspace - A hamburger-smashing video game.
4 Copyright (C) 2008-2010 Pierre Sarrazin <http://sarrazip.com/>
4 Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
55
66 This program is free software; you can redistribute it and/or
77 modify it under the terms of the GNU General Public License
153153
154154 GameMode gameMode;
155155
156 size_t slotDirCursorPos; // 1..9; used by getSlotNumber()
157
156158 /* SOUND EFFECTS:
157159 */
158160 flatzebra::SoundMixer *theSoundMixer; // see method playSoundEffect()
0 /* $Id: BurgerSpaceServer.cpp,v 1.7 2010/12/31 04:58:16 sarrazip Exp $
0 /* $Id: BurgerSpaceServer.cpp,v 1.9 2013/02/25 05:04:43 sarrazip Exp $
11 BurgerSpaceServer.cpp - Main engine
22
33 burgerspace - A hamburger-smashing video game.
4 Copyright (C) 2001-2008 Pierre Sarrazin <http://sarrazip.com/>
4 Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
55
66 This program is free software; you can redistribute it and/or
77 modify it under the terms of the GNU General Public License
30723072 //
30733073
30743074
3075 int BurgerSpaceServer::savedGameFormatVersion = 1;
3076
3077
30783075 string
30793076 BurgerSpaceServer::serialize(Couple c) const
30803077 {
0 /* $Id: BurgerSpaceServer.h,v 1.4 2010/12/31 04:58:16 sarrazip Exp $
0 /* $Id: BurgerSpaceServer.h,v 1.6 2013/02/25 05:04:43 sarrazip Exp $
11 BurgerSpaceServer.h - Main engine
22
33 burgerspace - A hamburger-smashing video game.
4 Copyright (C) 2001-2010 Pierre Sarrazin <http://sarrazip.com/>
4 Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
55
66 This program is free software; you can redistribute it and/or
77 modify it under the terms of the GNU General Public License
333333 int numAvailablePeppers; // number of pepper shots available to player
334334
335335 Level theCurrentLevel;
336
337 static int savedGameFormatVersion;
338336
339337
340338 ///////////////////////////////////////////////////////////////////////////
0 /* $Id: LocalServer.cpp,v 1.2 2010/05/26 03:13:01 sarrazip Exp $
0 /* $Id: LocalServer.cpp,v 1.4 2013/02/25 05:04:43 sarrazip Exp $
11 LocalServer.cpp - Direct function call server
22
33 burgerspace - A hamburger-smashing video game.
4 Copyright (C) 2010 Pierre Sarrazin <http://sarrazip.com/>
4 Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
55
66 This program is free software; you can redistribute it and/or
77 modify it under the terms of the GNU General Public License
3131 bool
3232 LocalServer::saveGame(ostream &out)
3333 {
34 out << savedGameFormatVersion << "\n";
34 out << 2 << "\n"; // format version
3535 if (out.fail())
3636 return false;
3737 out << "\n";
4141 << cumulLevelNo << "\n"
4242 << tickCount << "\n"
4343 << serialize(initPlayerPos) << "\n"
44 << serialize(*playerSprite) << "\n"
44 << (playerSprite != NULL) << "\n" // new as of format version 2
45 << (playerSprite != NULL ? serialize(*playerSprite) : "") << "\n"
4546 << lastPlayerDirection << "\n"
4647 << oldMotionMode << "\n"
4748 ;
112113 in >> version;
113114 if (!in)
114115 return -1;
115 if (version != savedGameFormatVersion)
116 if (version != 1 && version != 2)
116117 return -2;
117118
118119 in >> initLevelNo >> cumulLevelNo >> tickCount;
125126 return -4;
126127
127128 delete playerSprite;
128 playerSprite = deserializeSprite(in);
129 if (playerSprite == NULL)
130 return -5;
129 playerSprite = NULL;
130 int isPlayerSpritePresent = 1;
131 if (version >= 2)
132 {
133 in >> isPlayerSpritePresent;
134 if (!in)
135 return -20;
136 }
137 if (isPlayerSpritePresent)
138 {
139 playerSprite = deserializeSprite(in);
140 if (playerSprite == NULL)
141 return -5;
142 }
131143
132144 in >> lastPlayerDirection >> oldMotionMode;
133145 if (!in)
159159 DEFAULT_UDP_SERVER_PORT = @DEFAULT_UDP_SERVER_PORT@
160160 DEFS = @DEFS@
161161 DEPDIR = @DEPDIR@
162 DLLTOOL = @DLLTOOL@
162163 DSYMUTIL = @DSYMUTIL@
163164 DUMPBIN = @DUMPBIN@
164165 ECHO_C = @ECHO_C@
184185 LN_S = @LN_S@
185186 LTLIBOBJS = @LTLIBOBJS@
186187 MAKEINFO = @MAKEINFO@
188 MANIFEST_TOOL = @MANIFEST_TOOL@
187189 MANUAL_DATE_EN = @MANUAL_DATE_EN@
188190 MANUAL_DATE_FR = @MANUAL_DATE_FR@
189191 MINVER_FLATZEBRA = @MINVER_FLATZEBRA@
218220 abs_srcdir = @abs_srcdir@
219221 abs_top_builddir = @abs_top_builddir@
220222 abs_top_srcdir = @abs_top_srcdir@
223 ac_ct_AR = @ac_ct_AR@
221224 ac_ct_CC = @ac_ct_CC@
222225 ac_ct_CXX = @ac_ct_CXX@
223226 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
0 /* $Id: RemoteServer.cpp,v 1.4 2010/11/18 05:35:02 sarrazip Exp $
0 /* $Id: RemoteServer.cpp,v 1.5 2012/10/07 21:29:24 sarrazip Exp $
11 RemoteServer.cpp - UDP server
22
33 burgerspace - A hamburger-smashing video game.
3131
3232 #ifdef _MSC_VER
3333 #include <io.h> // for close()
34 #else
35 #include <unistd.h> // for close()
3436 #endif
3537
3638