diff options
author | Christian Grothoff <christian@grothoff.org> | 2007-12-01 21:12:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2007-12-01 21:12:44 +0000 |
commit | 3b5321ed80fe213b67e32868a75602094a0db1ed (patch) | |
tree | dd3d56982898ec9e26e3494b686e39e21a73fd43 | |
parent | a36c4671258414deb784b6373a567ef689a57463 (diff) | |
download | gnunet-gtk-3b5321ed80fe213b67e32868a75602094a0db1ed.tar.gz gnunet-gtk-3b5321ed80fe213b67e32868a75602094a0db1ed.zip |
fix
-rw-r--r-- | ltmain.sh | 233 | ||||
-rw-r--r-- | src/common/helper.c | 2 |
2 files changed, 84 insertions, 151 deletions
@@ -1,8 +1,8 @@ | |||
1 | # ltmain.sh - Provide generalized library-building support services. | 1 | # ltmain.sh - Provide generalized library-building support services. |
2 | # NOTE: Changing this file will not affect anything until you rerun configure. | 2 | # NOTE: Changing this file will not affect anything until you rerun configure. |
3 | # | 3 | # |
4 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, | 4 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 |
5 | # 2007 Free Software Foundation, Inc. | 5 | # Free Software Foundation, Inc. |
6 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 6 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
7 | # | 7 | # |
8 | # This program is free software; you can redistribute it and/or modify | 8 | # This program is free software; you can redistribute it and/or modify |
@@ -43,22 +43,14 @@ EXIT_FAILURE=1 | |||
43 | 43 | ||
44 | PROGRAM=ltmain.sh | 44 | PROGRAM=ltmain.sh |
45 | PACKAGE=libtool | 45 | PACKAGE=libtool |
46 | VERSION="1.5.24 Debian 1.5.24-1" | 46 | VERSION="1.5.22 Debian 1.5.22-4" |
47 | TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)" | 47 | TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)" |
48 | 48 | ||
49 | # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). | 49 | # See if we are running on zsh, and set the options which allow our |
50 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 50 | # commands through without removal of \ escapes. |
51 | emulate sh | 51 | if test -n "${ZSH_VERSION+set}" ; then |
52 | NULLCMD=: | ||
53 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
54 | # is contrary to our usage. Disable this feature. | ||
55 | alias -g '${1+"$@"}'='"$@"' | ||
56 | setopt NO_GLOB_SUBST | 52 | setopt NO_GLOB_SUBST |
57 | else | ||
58 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
59 | fi | 53 | fi |
60 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
61 | DUALCASE=1; export DUALCASE # for MKS sh | ||
62 | 54 | ||
63 | # Check that we have a working $echo. | 55 | # Check that we have a working $echo. |
64 | if test "X$1" = X--no-reexec; then | 56 | if test "X$1" = X--no-reexec; then |
@@ -113,14 +105,12 @@ esac | |||
113 | # These must not be set unconditionally because not all systems understand | 105 | # These must not be set unconditionally because not all systems understand |
114 | # e.g. LANG=C (notably SCO). | 106 | # e.g. LANG=C (notably SCO). |
115 | # We save the old values to restore during execute mode. | 107 | # We save the old values to restore during execute mode. |
116 | for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES | 108 | if test "${LC_ALL+set}" = set; then |
117 | do | 109 | save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL |
118 | eval "if test \"\${$lt_var+set}\" = set; then | 110 | fi |
119 | save_$lt_var=\$$lt_var | 111 | if test "${LANG+set}" = set; then |
120 | $lt_var=C | 112 | save_LANG="$LANG"; LANG=C; export LANG |
121 | export $lt_var | 113 | fi |
122 | fi" | ||
123 | done | ||
124 | 114 | ||
125 | # Make sure IFS has a sensible default | 115 | # Make sure IFS has a sensible default |
126 | lt_nl=' | 116 | lt_nl=' |
@@ -146,8 +136,6 @@ duplicate_deps=no | |||
146 | preserve_args= | 136 | preserve_args= |
147 | lo2o="s/\\.lo\$/.${objext}/" | 137 | lo2o="s/\\.lo\$/.${objext}/" |
148 | o2lo="s/\\.${objext}\$/.lo/" | 138 | o2lo="s/\\.${objext}\$/.lo/" |
149 | extracted_archives= | ||
150 | extracted_serial=0 | ||
151 | 139 | ||
152 | ##################################### | 140 | ##################################### |
153 | # Shell function definitions: | 141 | # Shell function definitions: |
@@ -208,13 +196,7 @@ func_win32_libid () | |||
208 | if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ | 196 | if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ |
209 | $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then | 197 | $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then |
210 | win32_nmres=`eval $NM -f posix -A $1 | \ | 198 | win32_nmres=`eval $NM -f posix -A $1 | \ |
211 | $SED -n -e '1,100{ | 199 | $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'` |
212 | / I /{ | ||
213 | s,.*,import, | ||
214 | p | ||
215 | q | ||
216 | } | ||
217 | }'` | ||
218 | case $win32_nmres in | 200 | case $win32_nmres in |
219 | import*) win32_libid_type="x86 archive import";; | 201 | import*) win32_libid_type="x86 archive import";; |
220 | *) win32_libid_type="x86 archive static";; | 202 | *) win32_libid_type="x86 archive static";; |
@@ -345,17 +327,7 @@ func_extract_archives () | |||
345 | *) my_xabs=`pwd`"/$my_xlib" ;; | 327 | *) my_xabs=`pwd`"/$my_xlib" ;; |
346 | esac | 328 | esac |
347 | my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` | 329 | my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` |
348 | my_xlib_u=$my_xlib | 330 | my_xdir="$my_gentop/$my_xlib" |
349 | while :; do | ||
350 | case " $extracted_archives " in | ||
351 | *" $my_xlib_u "*) | ||
352 | extracted_serial=`expr $extracted_serial + 1` | ||
353 | my_xlib_u=lt$extracted_serial-$my_xlib ;; | ||
354 | *) break ;; | ||
355 | esac | ||
356 | done | ||
357 | extracted_archives="$extracted_archives $my_xlib_u" | ||
358 | my_xdir="$my_gentop/$my_xlib_u" | ||
359 | 331 | ||
360 | $show "${rm}r $my_xdir" | 332 | $show "${rm}r $my_xdir" |
361 | $run ${rm}r "$my_xdir" | 333 | $run ${rm}r "$my_xdir" |
@@ -482,12 +454,11 @@ do | |||
482 | ;; | 454 | ;; |
483 | 455 | ||
484 | --version) | 456 | --version) |
485 | echo "\ | 457 | $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" |
486 | $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP | 458 | $echo |
487 | 459 | $echo "Copyright (C) 2005 Free Software Foundation, Inc." | |
488 | Copyright (C) 2007 Free Software Foundation, Inc. | 460 | $echo "This is free software; see the source for copying conditions. There is NO" |
489 | This is free software; see the source for copying conditions. There is NO | 461 | $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
490 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||
491 | exit $? | 462 | exit $? |
492 | ;; | 463 | ;; |
493 | 464 | ||
@@ -784,10 +755,9 @@ if test -z "$show_help"; then | |||
784 | *.class) xform=class ;; | 755 | *.class) xform=class ;; |
785 | *.cpp) xform=cpp ;; | 756 | *.cpp) xform=cpp ;; |
786 | *.cxx) xform=cxx ;; | 757 | *.cxx) xform=cxx ;; |
787 | *.[fF][09]?) xform=[fF][09]. ;; | 758 | *.f90) xform=f90 ;; |
788 | *.for) xform=for ;; | 759 | *.for) xform=for ;; |
789 | *.java) xform=java ;; | 760 | *.java) xform=java ;; |
790 | *.obj) xform=obj ;; | ||
791 | esac | 761 | esac |
792 | 762 | ||
793 | libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` | 763 | libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` |
@@ -1168,9 +1138,8 @@ EOF | |||
1168 | for arg | 1138 | for arg |
1169 | do | 1139 | do |
1170 | case $arg in | 1140 | case $arg in |
1171 | -all-static | -static | -static-libtool-libs) | 1141 | -all-static | -static) |
1172 | case $arg in | 1142 | if test "X$arg" = "X-all-static"; then |
1173 | -all-static) | ||
1174 | if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then | 1143 | if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then |
1175 | $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2 | 1144 | $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2 |
1176 | fi | 1145 | fi |
@@ -1178,20 +1147,12 @@ EOF | |||
1178 | dlopen_self=$dlopen_self_static | 1147 | dlopen_self=$dlopen_self_static |
1179 | fi | 1148 | fi |
1180 | prefer_static_libs=yes | 1149 | prefer_static_libs=yes |
1181 | ;; | 1150 | else |
1182 | -static) | ||
1183 | if test -z "$pic_flag" && test -n "$link_static_flag"; then | 1151 | if test -z "$pic_flag" && test -n "$link_static_flag"; then |
1184 | dlopen_self=$dlopen_self_static | 1152 | dlopen_self=$dlopen_self_static |
1185 | fi | 1153 | fi |
1186 | prefer_static_libs=built | 1154 | prefer_static_libs=built |
1187 | ;; | 1155 | fi |
1188 | -static-libtool-libs) | ||
1189 | if test -z "$pic_flag" && test -n "$link_static_flag"; then | ||
1190 | dlopen_self=$dlopen_self_static | ||
1191 | fi | ||
1192 | prefer_static_libs=yes | ||
1193 | ;; | ||
1194 | esac | ||
1195 | build_libtool_libs=no | 1156 | build_libtool_libs=no |
1196 | build_old_libs=yes | 1157 | build_old_libs=yes |
1197 | break | 1158 | break |
@@ -1639,7 +1600,7 @@ EOF | |||
1639 | continue | 1600 | continue |
1640 | ;; | 1601 | ;; |
1641 | 1602 | ||
1642 | -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) | 1603 | -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) |
1643 | compiler_flags="$compiler_flags $arg" | 1604 | compiler_flags="$compiler_flags $arg" |
1644 | compile_command="$compile_command $arg" | 1605 | compile_command="$compile_command $arg" |
1645 | finalize_command="$finalize_command $arg" | 1606 | finalize_command="$finalize_command $arg" |
@@ -1659,11 +1620,10 @@ EOF | |||
1659 | # -m* pass through architecture-specific compiler args for GCC | 1620 | # -m* pass through architecture-specific compiler args for GCC |
1660 | # -m*, -t[45]*, -txscale* pass through architecture-specific | 1621 | # -m*, -t[45]*, -txscale* pass through architecture-specific |
1661 | # compiler args for GCC | 1622 | # compiler args for GCC |
1662 | # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC | 1623 | # -pg pass through profiling flag for GCC |
1663 | # -F/path gives path to uninstalled frameworks, gcc on darwin | ||
1664 | # @file GCC response files | 1624 | # @file GCC response files |
1665 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ | 1625 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ |
1666 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) | 1626 | -t[45]*|-txscale*|@*) |
1667 | 1627 | ||
1668 | # Unknown arguments in both finalize_command and compile_command need | 1628 | # Unknown arguments in both finalize_command and compile_command need |
1669 | # to be aesthetically quoted because they are evaled later. | 1629 | # to be aesthetically quoted because they are evaled later. |
@@ -1691,9 +1651,9 @@ EOF | |||
1691 | 1651 | ||
1692 | -no-install) | 1652 | -no-install) |
1693 | case $host in | 1653 | case $host in |
1694 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) | 1654 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) |
1695 | # The PATH hackery in wrapper scripts is required on Windows | 1655 | # The PATH hackery in wrapper scripts is required on Windows |
1696 | # and Darwin in order for the loader to find any dlls it needs. | 1656 | # in order for the loader to find any dlls it needs. |
1697 | $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 | 1657 | $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 |
1698 | $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 | 1658 | $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 |
1699 | fast_install=no | 1659 | fast_install=no |
@@ -1752,7 +1712,7 @@ EOF | |||
1752 | continue | 1712 | continue |
1753 | ;; | 1713 | ;; |
1754 | 1714 | ||
1755 | -static | -static-libtool-libs) | 1715 | -static) |
1756 | # The effects of -static are defined in a previous loop. | 1716 | # The effects of -static are defined in a previous loop. |
1757 | # We used to do the same as -all-static on platforms that | 1717 | # We used to do the same as -all-static on platforms that |
1758 | # didn't have a PIC flag, but the assumption that the effects | 1718 | # didn't have a PIC flag, but the assumption that the effects |
@@ -2137,7 +2097,7 @@ EOF | |||
2137 | lib= | 2097 | lib= |
2138 | found=no | 2098 | found=no |
2139 | case $deplib in | 2099 | case $deplib in |
2140 | -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) | 2100 | -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) |
2141 | if test "$linkmode,$pass" = "prog,link"; then | 2101 | if test "$linkmode,$pass" = "prog,link"; then |
2142 | compile_deplibs="$deplib $compile_deplibs" | 2102 | compile_deplibs="$deplib $compile_deplibs" |
2143 | finalize_deplibs="$deplib $finalize_deplibs" | 2103 | finalize_deplibs="$deplib $finalize_deplibs" |
@@ -2533,9 +2493,7 @@ EOF | |||
2533 | 2493 | ||
2534 | if test "$linkmode,$pass" = "prog,link"; then | 2494 | if test "$linkmode,$pass" = "prog,link"; then |
2535 | if test -n "$library_names" && | 2495 | if test -n "$library_names" && |
2536 | { { test "$prefer_static_libs" = no || | 2496 | { test "$prefer_static_libs" = no || test -z "$old_library"; }; then |
2537 | test "$prefer_static_libs,$installed" = "built,yes"; } || | ||
2538 | test -z "$old_library"; }; then | ||
2539 | # We need to hardcode the library path | 2497 | # We need to hardcode the library path |
2540 | if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then | 2498 | if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then |
2541 | # Make sure the rpath contains only unique directories. | 2499 | # Make sure the rpath contains only unique directories. |
@@ -3231,7 +3189,7 @@ EOF | |||
3231 | # which has an extra 1 added just for fun | 3189 | # which has an extra 1 added just for fun |
3232 | # | 3190 | # |
3233 | case $version_type in | 3191 | case $version_type in |
3234 | darwin|linux|osf|windows|none) | 3192 | darwin|linux|osf|windows) |
3235 | current=`expr $number_major + $number_minor` | 3193 | current=`expr $number_major + $number_minor` |
3236 | age="$number_minor" | 3194 | age="$number_minor" |
3237 | revision="$number_revision" | 3195 | revision="$number_revision" |
@@ -3242,10 +3200,9 @@ EOF | |||
3242 | age="0" | 3200 | age="0" |
3243 | ;; | 3201 | ;; |
3244 | irix|nonstopux) | 3202 | irix|nonstopux) |
3245 | current=`expr $number_major + $number_minor` | 3203 | current=`expr $number_major + $number_minor - 1` |
3246 | age="$number_minor" | 3204 | age="$number_minor" |
3247 | revision="$number_minor" | 3205 | revision="$number_minor" |
3248 | lt_irix_increment=no | ||
3249 | ;; | 3206 | ;; |
3250 | *) | 3207 | *) |
3251 | $echo "$modename: unknown library version type \`$version_type'" 1>&2 | 3208 | $echo "$modename: unknown library version type \`$version_type'" 1>&2 |
@@ -3309,8 +3266,7 @@ EOF | |||
3309 | versuffix="$major.$age.$revision" | 3266 | versuffix="$major.$age.$revision" |
3310 | # Darwin ld doesn't like 0 for these options... | 3267 | # Darwin ld doesn't like 0 for these options... |
3311 | minor_current=`expr $current + 1` | 3268 | minor_current=`expr $current + 1` |
3312 | xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" | 3269 | verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" |
3313 | verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" | ||
3314 | ;; | 3270 | ;; |
3315 | 3271 | ||
3316 | freebsd-aout) | 3272 | freebsd-aout) |
@@ -3324,11 +3280,8 @@ EOF | |||
3324 | ;; | 3280 | ;; |
3325 | 3281 | ||
3326 | irix | nonstopux) | 3282 | irix | nonstopux) |
3327 | if test "X$lt_irix_increment" = "Xno"; then | 3283 | major=`expr $current - $age + 1` |
3328 | major=`expr $current - $age` | 3284 | |
3329 | else | ||
3330 | major=`expr $current - $age + 1` | ||
3331 | fi | ||
3332 | case $version_type in | 3285 | case $version_type in |
3333 | nonstopux) verstring_prefix=nonstopux ;; | 3286 | nonstopux) verstring_prefix=nonstopux ;; |
3334 | *) verstring_prefix=sgi ;; | 3287 | *) verstring_prefix=sgi ;; |
@@ -3465,11 +3418,11 @@ EOF | |||
3465 | fi | 3418 | fi |
3466 | 3419 | ||
3467 | # Eliminate all temporary directories. | 3420 | # Eliminate all temporary directories. |
3468 | #for path in $notinst_path; do | 3421 | for path in $notinst_path; do |
3469 | # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` | 3422 | lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` |
3470 | # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` | 3423 | deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` |
3471 | # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` | 3424 | dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` |
3472 | #done | 3425 | done |
3473 | 3426 | ||
3474 | if test -n "$xrpath"; then | 3427 | if test -n "$xrpath"; then |
3475 | # If the user specified any rpath flags, then add them. | 3428 | # If the user specified any rpath flags, then add them. |
@@ -3570,12 +3523,13 @@ EOF | |||
3570 | int main() { return 0; } | 3523 | int main() { return 0; } |
3571 | EOF | 3524 | EOF |
3572 | $rm conftest | 3525 | $rm conftest |
3573 | if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then | 3526 | $LTCC $LTCFLAGS -o conftest conftest.c $deplibs |
3527 | if test "$?" -eq 0 ; then | ||
3574 | ldd_output=`ldd conftest` | 3528 | ldd_output=`ldd conftest` |
3575 | for i in $deplibs; do | 3529 | for i in $deplibs; do |
3576 | name=`expr $i : '-l\(.*\)'` | 3530 | name=`expr $i : '-l\(.*\)'` |
3577 | # If $name is empty we are operating on a -L argument. | 3531 | # If $name is empty we are operating on a -L argument. |
3578 | if test "$name" != "" && test "$name" != "0"; then | 3532 | if test "$name" != "" && test "$name" -ne "0"; then |
3579 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then | 3533 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
3580 | case " $predeps $postdeps " in | 3534 | case " $predeps $postdeps " in |
3581 | *" $i "*) | 3535 | *" $i "*) |
@@ -3614,7 +3568,9 @@ EOF | |||
3614 | # If $name is empty we are operating on a -L argument. | 3568 | # If $name is empty we are operating on a -L argument. |
3615 | if test "$name" != "" && test "$name" != "0"; then | 3569 | if test "$name" != "" && test "$name" != "0"; then |
3616 | $rm conftest | 3570 | $rm conftest |
3617 | if $LTCC $LTCFLAGS -o conftest conftest.c $i; then | 3571 | $LTCC $LTCFLAGS -o conftest conftest.c $i |
3572 | # Did it work? | ||
3573 | if test "$?" -eq 0 ; then | ||
3618 | ldd_output=`ldd conftest` | 3574 | ldd_output=`ldd conftest` |
3619 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then | 3575 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
3620 | case " $predeps $postdeps " in | 3576 | case " $predeps $postdeps " in |
@@ -3646,7 +3602,7 @@ EOF | |||
3646 | droppeddeps=yes | 3602 | droppeddeps=yes |
3647 | $echo | 3603 | $echo |
3648 | $echo "*** Warning! Library $i is needed by this library but I was not able to" | 3604 | $echo "*** Warning! Library $i is needed by this library but I was not able to" |
3649 | $echo "*** make it link in! You will probably need to install it or some" | 3605 | $echo "*** make it link in! You will probably need to install it or some" |
3650 | $echo "*** library that it depends on before this library will be fully" | 3606 | $echo "*** library that it depends on before this library will be fully" |
3651 | $echo "*** functional. Installing it before continuing would be even better." | 3607 | $echo "*** functional. Installing it before continuing would be even better." |
3652 | fi | 3608 | fi |
@@ -3932,10 +3888,7 @@ EOF | |||
3932 | test -n "$hardcode_libdirs"; then | 3888 | test -n "$hardcode_libdirs"; then |
3933 | libdir="$hardcode_libdirs" | 3889 | libdir="$hardcode_libdirs" |
3934 | if test -n "$hardcode_libdir_flag_spec_ld"; then | 3890 | if test -n "$hardcode_libdir_flag_spec_ld"; then |
3935 | case $archive_cmds in | 3891 | eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" |
3936 | *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;; | ||
3937 | *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;; | ||
3938 | esac | ||
3939 | else | 3892 | else |
3940 | eval dep_rpath=\"$hardcode_libdir_flag_spec\" | 3893 | eval dep_rpath=\"$hardcode_libdir_flag_spec\" |
3941 | fi | 3894 | fi |
@@ -4294,14 +4247,12 @@ EOF | |||
4294 | reload_conv_objs= | 4247 | reload_conv_objs= |
4295 | gentop= | 4248 | gentop= |
4296 | # reload_cmds runs $LD directly, so let us get rid of | 4249 | # reload_cmds runs $LD directly, so let us get rid of |
4297 | # -Wl from whole_archive_flag_spec and hope we can get by with | 4250 | # -Wl from whole_archive_flag_spec |
4298 | # turning comma into space.. | ||
4299 | wl= | 4251 | wl= |
4300 | 4252 | ||
4301 | if test -n "$convenience"; then | 4253 | if test -n "$convenience"; then |
4302 | if test -n "$whole_archive_flag_spec"; then | 4254 | if test -n "$whole_archive_flag_spec"; then |
4303 | eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" | 4255 | eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" |
4304 | reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` | ||
4305 | else | 4256 | else |
4306 | gentop="$output_objdir/${obj}x" | 4257 | gentop="$output_objdir/${obj}x" |
4307 | generated="$generated $gentop" | 4258 | generated="$generated $gentop" |
@@ -4749,16 +4700,16 @@ static const void *lt_preloaded_setup() { | |||
4749 | case $host in | 4700 | case $host in |
4750 | *cygwin* | *mingw* ) | 4701 | *cygwin* | *mingw* ) |
4751 | if test -f "$output_objdir/${outputname}.def" ; then | 4702 | if test -f "$output_objdir/${outputname}.def" ; then |
4752 | compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` | 4703 | compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` |
4753 | finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` | 4704 | finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` |
4754 | else | 4705 | else |
4755 | compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` | 4706 | compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` |
4756 | finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` | 4707 | finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` |
4757 | fi | 4708 | fi |
4758 | ;; | 4709 | ;; |
4759 | * ) | 4710 | * ) |
4760 | compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` | 4711 | compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` |
4761 | finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` | 4712 | finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` |
4762 | ;; | 4713 | ;; |
4763 | esac | 4714 | esac |
4764 | ;; | 4715 | ;; |
@@ -4773,13 +4724,13 @@ static const void *lt_preloaded_setup() { | |||
4773 | # really was required. | 4724 | # really was required. |
4774 | 4725 | ||
4775 | # Nullify the symbol file. | 4726 | # Nullify the symbol file. |
4776 | compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` | 4727 | compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` |
4777 | finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` | 4728 | finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` |
4778 | fi | 4729 | fi |
4779 | 4730 | ||
4780 | if test "$need_relink" = no || test "$build_libtool_libs" != yes; then | 4731 | if test "$need_relink" = no || test "$build_libtool_libs" != yes; then |
4781 | # Replace the output file specification. | 4732 | # Replace the output file specification. |
4782 | compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP` | 4733 | compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` |
4783 | link_command="$compile_command$compile_rpath" | 4734 | link_command="$compile_command$compile_rpath" |
4784 | 4735 | ||
4785 | # We have no uninstalled library dependencies, so finalize right now. | 4736 | # We have no uninstalled library dependencies, so finalize right now. |
@@ -4866,7 +4817,7 @@ static const void *lt_preloaded_setup() { | |||
4866 | if test "$fast_install" != no; then | 4817 | if test "$fast_install" != no; then |
4867 | link_command="$finalize_var$compile_command$finalize_rpath" | 4818 | link_command="$finalize_var$compile_command$finalize_rpath" |
4868 | if test "$fast_install" = yes; then | 4819 | if test "$fast_install" = yes; then |
4869 | relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP` | 4820 | relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` |
4870 | else | 4821 | else |
4871 | # fast_install is set to needless | 4822 | # fast_install is set to needless |
4872 | relink_command= | 4823 | relink_command= |
@@ -4903,7 +4854,7 @@ static const void *lt_preloaded_setup() { | |||
4903 | fi | 4854 | fi |
4904 | done | 4855 | done |
4905 | relink_command="(cd `pwd`; $relink_command)" | 4856 | relink_command="(cd `pwd`; $relink_command)" |
4906 | relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` | 4857 | relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` |
4907 | fi | 4858 | fi |
4908 | 4859 | ||
4909 | # Quote $echo for shipping. | 4860 | # Quote $echo for shipping. |
@@ -5310,20 +5261,6 @@ EOF | |||
5310 | Xsed='${SED} -e 1s/^X//' | 5261 | Xsed='${SED} -e 1s/^X//' |
5311 | sed_quote_subst='$sed_quote_subst' | 5262 | sed_quote_subst='$sed_quote_subst' |
5312 | 5263 | ||
5313 | # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). | ||
5314 | if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then | ||
5315 | emulate sh | ||
5316 | NULLCMD=: | ||
5317 | # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which | ||
5318 | # is contrary to our usage. Disable this feature. | ||
5319 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
5320 | setopt NO_GLOB_SUBST | ||
5321 | else | ||
5322 | case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac | ||
5323 | fi | ||
5324 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
5325 | DUALCASE=1; export DUALCASE # for MKS sh | ||
5326 | |||
5327 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 5264 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
5328 | # if CDPATH is set. | 5265 | # if CDPATH is set. |
5329 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 5266 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
@@ -5466,7 +5403,7 @@ else | |||
5466 | ;; | 5403 | ;; |
5467 | esac | 5404 | esac |
5468 | $echo >> $output "\ | 5405 | $echo >> $output "\ |
5469 | \$echo \"\$0: cannot exec \$program \$*\" | 5406 | \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" |
5470 | exit $EXIT_FAILURE | 5407 | exit $EXIT_FAILURE |
5471 | fi | 5408 | fi |
5472 | else | 5409 | else |
@@ -5652,7 +5589,7 @@ fi\ | |||
5652 | done | 5589 | done |
5653 | # Quote the link command for shipping. | 5590 | # Quote the link command for shipping. |
5654 | relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" | 5591 | relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" |
5655 | relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` | 5592 | relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` |
5656 | if test "$hardcode_automatic" = yes ; then | 5593 | if test "$hardcode_automatic" = yes ; then |
5657 | relink_command= | 5594 | relink_command= |
5658 | fi | 5595 | fi |
@@ -5997,9 +5934,9 @@ relink_command=\"$relink_command\"" | |||
5997 | 5934 | ||
5998 | if test -n "$inst_prefix_dir"; then | 5935 | if test -n "$inst_prefix_dir"; then |
5999 | # Stick the inst_prefix_dir data into the link command. | 5936 | # Stick the inst_prefix_dir data into the link command. |
6000 | relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP` | 5937 | relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` |
6001 | else | 5938 | else |
6002 | relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP` | 5939 | relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` |
6003 | fi | 5940 | fi |
6004 | 5941 | ||
6005 | $echo "$modename: warning: relinking \`$file'" 1>&2 | 5942 | $echo "$modename: warning: relinking \`$file'" 1>&2 |
@@ -6208,7 +6145,7 @@ relink_command=\"$relink_command\"" | |||
6208 | file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` | 6145 | file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` |
6209 | outputname="$tmpdir/$file" | 6146 | outputname="$tmpdir/$file" |
6210 | # Replace the output file specification. | 6147 | # Replace the output file specification. |
6211 | relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP` | 6148 | relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` |
6212 | 6149 | ||
6213 | $show "$relink_command" | 6150 | $show "$relink_command" |
6214 | if $run eval "$relink_command"; then : | 6151 | if $run eval "$relink_command"; then : |
@@ -6419,10 +6356,8 @@ relink_command=\"$relink_command\"" | |||
6419 | if test -f "$dir/$objdir/$dlname"; then | 6356 | if test -f "$dir/$objdir/$dlname"; then |
6420 | dir="$dir/$objdir" | 6357 | dir="$dir/$objdir" |
6421 | else | 6358 | else |
6422 | if test ! -f "$dir/$dlname"; then | 6359 | $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 |
6423 | $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 | 6360 | exit $EXIT_FAILURE |
6424 | exit $EXIT_FAILURE | ||
6425 | fi | ||
6426 | fi | 6361 | fi |
6427 | ;; | 6362 | ;; |
6428 | 6363 | ||
@@ -6486,12 +6421,12 @@ relink_command=\"$relink_command\"" | |||
6486 | fi | 6421 | fi |
6487 | 6422 | ||
6488 | # Restore saved environment variables | 6423 | # Restore saved environment variables |
6489 | for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES | 6424 | if test "${save_LC_ALL+set}" = set; then |
6490 | do | 6425 | LC_ALL="$save_LC_ALL"; export LC_ALL |
6491 | eval "if test \"\${save_$lt_var+set}\" = set; then | 6426 | fi |
6492 | $lt_var=\$save_$lt_var; export $lt_var | 6427 | if test "${save_LANG+set}" = set; then |
6493 | fi" | 6428 | LANG="$save_LANG"; export LANG |
6494 | done | 6429 | fi |
6495 | 6430 | ||
6496 | # Now prepare to actually exec the command. | 6431 | # Now prepare to actually exec the command. |
6497 | exec_cmd="\$cmd$args" | 6432 | exec_cmd="\$cmd$args" |
@@ -6848,9 +6783,9 @@ The following components of LINK-COMMAND are treated specially: | |||
6848 | -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols | 6783 | -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols |
6849 | -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) | 6784 | -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) |
6850 | -export-symbols SYMFILE | 6785 | -export-symbols SYMFILE |
6851 | try to export only the symbols listed in SYMFILE | 6786 | try to export only the symbols listed in SYMFILE |
6852 | -export-symbols-regex REGEX | 6787 | -export-symbols-regex REGEX |
6853 | try to export only the symbols matching REGEX | 6788 | try to export only the symbols matching REGEX |
6854 | -LLIBDIR search LIBDIR for required installed libraries | 6789 | -LLIBDIR search LIBDIR for required installed libraries |
6855 | -lNAME OUTPUT-FILE requires the installed library libNAME | 6790 | -lNAME OUTPUT-FILE requires the installed library libNAME |
6856 | -module build a library that can dlopened | 6791 | -module build a library that can dlopened |
@@ -6864,11 +6799,9 @@ The following components of LINK-COMMAND are treated specially: | |||
6864 | -release RELEASE specify package release information | 6799 | -release RELEASE specify package release information |
6865 | -rpath LIBDIR the created library will eventually be installed in LIBDIR | 6800 | -rpath LIBDIR the created library will eventually be installed in LIBDIR |
6866 | -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries | 6801 | -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries |
6867 | -static do not do any dynamic linking of uninstalled libtool libraries | 6802 | -static do not do any dynamic linking of libtool libraries |
6868 | -static-libtool-libs | ||
6869 | do not do any dynamic linking of libtool libraries | ||
6870 | -version-info CURRENT[:REVISION[:AGE]] | 6803 | -version-info CURRENT[:REVISION[:AGE]] |
6871 | specify library version info [each variable defaults to 0] | 6804 | specify library version info [each variable defaults to 0] |
6872 | 6805 | ||
6873 | All other options (arguments beginning with \`-') are ignored. | 6806 | All other options (arguments beginning with \`-') are ignored. |
6874 | 6807 | ||
diff --git a/src/common/helper.c b/src/common/helper.c index 8689c8b5..5b02a9fa 100644 --- a/src/common/helper.c +++ b/src/common/helper.c | |||
@@ -334,7 +334,7 @@ GNUNET_GTK_initialize_common_library (struct GNUNET_GE_Context *e, | |||
334 | #endif | 334 | #endif |
335 | GNUNET_free (filename); | 335 | GNUNET_free (filename); |
336 | 336 | ||
337 | mainXML = glade_xml_new (gladeFile, "mainWindow", PACKAGNUNET_GE_NAME); | 337 | mainXML = glade_xml_new (gladeFile, "mainWindow", PACKAGE_NAME); |
338 | if (mainXML == NULL) | 338 | if (mainXML == NULL) |
339 | GNUNET_GE_DIE_STRERROR_FILE (ectx, | 339 | GNUNET_GE_DIE_STRERROR_FILE (ectx, |
340 | GNUNET_GE_FATAL | GNUNET_GE_USER | | 340 | GNUNET_GE_FATAL | GNUNET_GE_USER | |