diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-01 21:10:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-01 21:10:15 +0000 |
commit | fec1633e47dc8b9949caaf9aefb5efacd53ba171 (patch) | |
tree | 1571b2f37a5bc583f19f043481880ef8cc454ea3 | |
parent | 674d30fe0fc12fc2a39ba121a772d29a763d3414 (diff) | |
download | gnunet-gtk-fec1633e47dc8b9949caaf9aefb5efacd53ba171.tar.gz gnunet-gtk-fec1633e47dc8b9949caaf9aefb5efacd53ba171.zip |
-support same logging and hardening options as gnunet-main
-rw-r--r-- | configure.ac | 34 | ||||
-rwxr-xr-x | ltmain.sh | 95 | ||||
-rw-r--r-- | m4/libtool.m4 | 264 | ||||
-rw-r--r-- | m4/ltoptions.m4 | 19 | ||||
-rw-r--r-- | m4/ltversion.m4 | 10 | ||||
-rw-r--r-- | src/fs/gnunet-fs-gtk-main_window_file_publish.c | 3 |
6 files changed, 322 insertions, 103 deletions
diff --git a/configure.ac b/configure.ac index 80dffb87..1b33e28c 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -267,6 +267,40 @@ fi | |||
267 | AC_SUBST(GLADE_CFLAGS) | 267 | AC_SUBST(GLADE_CFLAGS) |
268 | AC_SUBST(GLADE_LIBS) | 268 | AC_SUBST(GLADE_LIBS) |
269 | 269 | ||
270 | |||
271 | # Adam shostack suggests the following for Windows: | ||
272 | # -D_FORTIFY_SOURCE=2 -fstack-protector-all | ||
273 | AC_ARG_ENABLE(gcc-hardening, | ||
274 | AS_HELP_STRING(--enable-gcc-hardening, enable compiler security checks), | ||
275 | [if test x$enableval = xyes; then | ||
276 | CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all" | ||
277 | CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector" | ||
278 | CFLAGS="$CFLAGS --param ssp-buffer-size=1" | ||
279 | LDFLAGS="$LDFLAGS -pie" | ||
280 | fi]) | ||
281 | |||
282 | |||
283 | # Linker hardening options | ||
284 | # Currently these options are ELF specific - you can't use this with MacOSX | ||
285 | AC_ARG_ENABLE(linker-hardening, | ||
286 | AS_HELP_STRING(--enable-linker-hardening, enable linker security fixups), | ||
287 | [if test x$enableval = xyes; then | ||
288 | LDFLAGS="$LDFLAGS -z relro -z now" | ||
289 | fi]) | ||
290 | |||
291 | |||
292 | extra_logging=GNUNET_NO | ||
293 | AC_ARG_ENABLE([logging], | ||
294 | AS_HELP_STRING([--enable-logging@<:@=value@:>@],[Enable logging calls. Possible values: yes,no,verbose,veryverbose ('yes' is the default)]), | ||
295 | [AS_IF([test "x$enableval" = "xyes"], [], | ||
296 | [test "x$enableval" = "xno"], [AC_DEFINE([GNUNET_CULL_LOGGING],[],[Define to cull all logging calls])], | ||
297 | [test "x$enableval" = "xverbose"], [extra_logging=GNUNET_YES] | ||
298 | [test "x$enableval" = "xveryverbose"], [extra_logging=\(GNUNET_YES+1\)]) | ||
299 | ], []) | ||
300 | AC_DEFINE_UNQUOTED([GNUNET_EXTRA_LOGGING],[$extra_logging],[1 if extra logging is enabled, 2 for very verbose extra logging, 0 otherwise]) | ||
301 | |||
302 | |||
303 | |||
270 | # test for GNUnet core | 304 | # test for GNUnet core |
271 | gnunet=0 | 305 | gnunet=0 |
272 | lookin=${prefix} | 306 | lookin=${prefix} |
@@ -1,9 +1,9 @@ | |||
1 | 1 | ||
2 | # libtool (GNU libtool) 2.4 | 2 | # libtool (GNU libtool) 2.4.2 |
3 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 3 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
4 | 4 | ||
5 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, | 5 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, |
6 | # 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 6 | # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. |
7 | # This is free software; see the source for copying conditions. There is NO | 7 | # This is free software; see the source for copying conditions. There is NO |
8 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 8 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
9 | 9 | ||
@@ -41,6 +41,7 @@ | |||
41 | # --quiet, --silent don't print informational messages | 41 | # --quiet, --silent don't print informational messages |
42 | # --no-quiet, --no-silent | 42 | # --no-quiet, --no-silent |
43 | # print informational messages (default) | 43 | # print informational messages (default) |
44 | # --no-warn don't display warning messages | ||
44 | # --tag=TAG use configuration variables from tag TAG | 45 | # --tag=TAG use configuration variables from tag TAG |
45 | # -v, --verbose print more informational messages than default | 46 | # -v, --verbose print more informational messages than default |
46 | # --no-verbose don't print the extra informational messages | 47 | # --no-verbose don't print the extra informational messages |
@@ -69,7 +70,7 @@ | |||
69 | # compiler: $LTCC | 70 | # compiler: $LTCC |
70 | # compiler flags: $LTCFLAGS | 71 | # compiler flags: $LTCFLAGS |
71 | # linker: $LD (gnu? $with_gnu_ld) | 72 | # linker: $LD (gnu? $with_gnu_ld) |
72 | # $progname: (GNU libtool) 2.4 Debian-2.4-3 | 73 | # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1 |
73 | # automake: $automake_version | 74 | # automake: $automake_version |
74 | # autoconf: $autoconf_version | 75 | # autoconf: $autoconf_version |
75 | # | 76 | # |
@@ -79,9 +80,9 @@ | |||
79 | 80 | ||
80 | PROGRAM=libtool | 81 | PROGRAM=libtool |
81 | PACKAGE=libtool | 82 | PACKAGE=libtool |
82 | VERSION="2.4 Debian-2.4-3" | 83 | VERSION="2.4.2 Debian-2.4.2-1" |
83 | TIMESTAMP="" | 84 | TIMESTAMP="" |
84 | package_revision=1.3293 | 85 | package_revision=1.3337 |
85 | 86 | ||
86 | # Be Bourne compatible | 87 | # Be Bourne compatible |
87 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 88 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
@@ -136,15 +137,10 @@ progpath="$0" | |||
136 | 137 | ||
137 | : ${CP="cp -f"} | 138 | : ${CP="cp -f"} |
138 | test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} | 139 | test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} |
139 | : ${EGREP="/bin/grep -E"} | ||
140 | : ${FGREP="/bin/grep -F"} | ||
141 | : ${GREP="/bin/grep"} | ||
142 | : ${LN_S="ln -s"} | ||
143 | : ${MAKE="make"} | 140 | : ${MAKE="make"} |
144 | : ${MKDIR="mkdir"} | 141 | : ${MKDIR="mkdir"} |
145 | : ${MV="mv -f"} | 142 | : ${MV="mv -f"} |
146 | : ${RM="rm -f"} | 143 | : ${RM="rm -f"} |
147 | : ${SED="/bin/sed"} | ||
148 | : ${SHELL="${CONFIG_SHELL-/bin/sh}"} | 144 | : ${SHELL="${CONFIG_SHELL-/bin/sh}"} |
149 | : ${Xsed="$SED -e 1s/^X//"} | 145 | : ${Xsed="$SED -e 1s/^X//"} |
150 | 146 | ||
@@ -387,7 +383,7 @@ case $progpath in | |||
387 | ;; | 383 | ;; |
388 | *) | 384 | *) |
389 | save_IFS="$IFS" | 385 | save_IFS="$IFS" |
390 | IFS=: | 386 | IFS=${PATH_SEPARATOR-:} |
391 | for progdir in $PATH; do | 387 | for progdir in $PATH; do |
392 | IFS="$save_IFS" | 388 | IFS="$save_IFS" |
393 | test -x "$progdir/$progname" && break | 389 | test -x "$progdir/$progname" && break |
@@ -771,8 +767,8 @@ func_help () | |||
771 | s*\$LTCFLAGS*'"$LTCFLAGS"'* | 767 | s*\$LTCFLAGS*'"$LTCFLAGS"'* |
772 | s*\$LD*'"$LD"'* | 768 | s*\$LD*'"$LD"'* |
773 | s/\$with_gnu_ld/'"$with_gnu_ld"'/ | 769 | s/\$with_gnu_ld/'"$with_gnu_ld"'/ |
774 | s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ | 770 | s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ |
775 | s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ | 771 | s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ |
776 | p | 772 | p |
777 | d | 773 | d |
778 | } | 774 | } |
@@ -1052,6 +1048,7 @@ opt_finish=false | |||
1052 | opt_help=false | 1048 | opt_help=false |
1053 | opt_help_all=false | 1049 | opt_help_all=false |
1054 | opt_silent=: | 1050 | opt_silent=: |
1051 | opt_warning=: | ||
1055 | opt_verbose=: | 1052 | opt_verbose=: |
1056 | opt_silent=false | 1053 | opt_silent=false |
1057 | opt_verbose=false | 1054 | opt_verbose=false |
@@ -1120,6 +1117,10 @@ esac | |||
1120 | opt_silent=false | 1117 | opt_silent=false |
1121 | func_append preserve_args " $opt" | 1118 | func_append preserve_args " $opt" |
1122 | ;; | 1119 | ;; |
1120 | --no-warning|--no-warn) | ||
1121 | opt_warning=false | ||
1122 | func_append preserve_args " $opt" | ||
1123 | ;; | ||
1123 | --no-verbose) | 1124 | --no-verbose) |
1124 | opt_verbose=false | 1125 | opt_verbose=false |
1125 | func_append preserve_args " $opt" | 1126 | func_append preserve_args " $opt" |
@@ -2059,7 +2060,7 @@ func_mode_compile () | |||
2059 | *.[cCFSifmso] | \ | 2060 | *.[cCFSifmso] | \ |
2060 | *.ada | *.adb | *.ads | *.asm | \ | 2061 | *.ada | *.adb | *.ads | *.asm | \ |
2061 | *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ | 2062 | *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ |
2062 | *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup) | 2063 | *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) |
2063 | func_xform "$libobj" | 2064 | func_xform "$libobj" |
2064 | libobj=$func_xform_result | 2065 | libobj=$func_xform_result |
2065 | ;; | 2066 | ;; |
@@ -3201,11 +3202,13 @@ func_mode_install () | |||
3201 | 3202 | ||
3202 | # Set up the ranlib parameters. | 3203 | # Set up the ranlib parameters. |
3203 | oldlib="$destdir/$name" | 3204 | oldlib="$destdir/$name" |
3205 | func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 | ||
3206 | tool_oldlib=$func_to_tool_file_result | ||
3204 | 3207 | ||
3205 | func_show_eval "$install_prog \$file \$oldlib" 'exit $?' | 3208 | func_show_eval "$install_prog \$file \$oldlib" 'exit $?' |
3206 | 3209 | ||
3207 | if test -n "$stripme" && test -n "$old_striplib"; then | 3210 | if test -n "$stripme" && test -n "$old_striplib"; then |
3208 | func_show_eval "$old_striplib $oldlib" 'exit $?' | 3211 | func_show_eval "$old_striplib $tool_oldlib" 'exit $?' |
3209 | fi | 3212 | fi |
3210 | 3213 | ||
3211 | # Do each command in the postinstall commands. | 3214 | # Do each command in the postinstall commands. |
@@ -3470,7 +3473,7 @@ static const void *lt_preloaded_setup() { | |||
3470 | # linked before any other PIC object. But we must not use | 3473 | # linked before any other PIC object. But we must not use |
3471 | # pic_flag when linking with -static. The problem exists in | 3474 | # pic_flag when linking with -static. The problem exists in |
3472 | # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. | 3475 | # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. |
3473 | *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) | 3476 | *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) |
3474 | pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; | 3477 | pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; |
3475 | *-*-hpux*) | 3478 | *-*-hpux*) |
3476 | pic_flag_for_symtable=" $pic_flag" ;; | 3479 | pic_flag_for_symtable=" $pic_flag" ;; |
@@ -3982,14 +3985,17 @@ func_exec_program_core () | |||
3982 | # launches target application with the remaining arguments. | 3985 | # launches target application with the remaining arguments. |
3983 | func_exec_program () | 3986 | func_exec_program () |
3984 | { | 3987 | { |
3985 | for lt_wr_arg | 3988 | case \" \$* \" in |
3986 | do | 3989 | *\\ --lt-*) |
3987 | case \$lt_wr_arg in | 3990 | for lt_wr_arg |
3988 | --lt-*) ;; | 3991 | do |
3989 | *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; | 3992 | case \$lt_wr_arg in |
3990 | esac | 3993 | --lt-*) ;; |
3991 | shift | 3994 | *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; |
3992 | done | 3995 | esac |
3996 | shift | ||
3997 | done ;; | ||
3998 | esac | ||
3993 | func_exec_program_core \${1+\"\$@\"} | 3999 | func_exec_program_core \${1+\"\$@\"} |
3994 | } | 4000 | } |
3995 | 4001 | ||
@@ -5057,9 +5063,15 @@ void lt_dump_script (FILE* f) | |||
5057 | { | 5063 | { |
5058 | EOF | 5064 | EOF |
5059 | func_emit_wrapper yes | | 5065 | func_emit_wrapper yes | |
5060 | $SED -e 's/\([\\"]\)/\\\1/g' \ | 5066 | $SED -n -e ' |
5061 | -e 's/^/ fputs ("/' -e 's/$/\\n", f);/' | 5067 | s/^\(.\{79\}\)\(..*\)/\1\ |
5062 | 5068 | \2/ | |
5069 | h | ||
5070 | s/\([\\"]\)/\\\1/g | ||
5071 | s/$/\\n/ | ||
5072 | s/\([^\n]*\).*/ fputs ("\1", f);/p | ||
5073 | g | ||
5074 | D' | ||
5063 | cat <<"EOF" | 5075 | cat <<"EOF" |
5064 | } | 5076 | } |
5065 | EOF | 5077 | EOF |
@@ -5643,7 +5655,8 @@ func_mode_link () | |||
5643 | continue | 5655 | continue |
5644 | ;; | 5656 | ;; |
5645 | 5657 | ||
5646 | -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) | 5658 | -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |
5659 | |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) | ||
5647 | func_append compiler_flags " $arg" | 5660 | func_append compiler_flags " $arg" |
5648 | func_append compile_command " $arg" | 5661 | func_append compile_command " $arg" |
5649 | func_append finalize_command " $arg" | 5662 | func_append finalize_command " $arg" |
@@ -6150,7 +6163,8 @@ func_mode_link () | |||
6150 | lib= | 6163 | lib= |
6151 | found=no | 6164 | found=no |
6152 | case $deplib in | 6165 | case $deplib in |
6153 | -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) | 6166 | -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |
6167 | |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) | ||
6154 | if test "$linkmode,$pass" = "prog,link"; then | 6168 | if test "$linkmode,$pass" = "prog,link"; then |
6155 | compile_deplibs="$deplib $compile_deplibs" | 6169 | compile_deplibs="$deplib $compile_deplibs" |
6156 | finalize_deplibs="$deplib $finalize_deplibs" | 6170 | finalize_deplibs="$deplib $finalize_deplibs" |
@@ -6834,7 +6848,7 @@ func_mode_link () | |||
6834 | test "$hardcode_direct_absolute" = no; then | 6848 | test "$hardcode_direct_absolute" = no; then |
6835 | add="$dir/$linklib" | 6849 | add="$dir/$linklib" |
6836 | elif test "$hardcode_minus_L" = yes; then | 6850 | elif test "$hardcode_minus_L" = yes; then |
6837 | add_dir="-L$dir" | 6851 | add_dir="-L$absdir" |
6838 | # Try looking first in the location we're being installed to. | 6852 | # Try looking first in the location we're being installed to. |
6839 | if test -n "$inst_prefix_dir"; then | 6853 | if test -n "$inst_prefix_dir"; then |
6840 | case $libdir in | 6854 | case $libdir in |
@@ -7319,6 +7333,7 @@ func_mode_link () | |||
7319 | # which has an extra 1 added just for fun | 7333 | # which has an extra 1 added just for fun |
7320 | # | 7334 | # |
7321 | case $version_type in | 7335 | case $version_type in |
7336 | # correct linux to gnu/linux during the next big refactor | ||
7322 | darwin|linux|osf|windows|none) | 7337 | darwin|linux|osf|windows|none) |
7323 | func_arith $number_major + $number_minor | 7338 | func_arith $number_major + $number_minor |
7324 | current=$func_arith_result | 7339 | current=$func_arith_result |
@@ -7438,7 +7453,7 @@ func_mode_link () | |||
7438 | versuffix="$major.$revision" | 7453 | versuffix="$major.$revision" |
7439 | ;; | 7454 | ;; |
7440 | 7455 | ||
7441 | linux) | 7456 | linux) # correct to gnu/linux during the next big refactor |
7442 | func_arith $current - $age | 7457 | func_arith $current - $age |
7443 | major=.$func_arith_result | 7458 | major=.$func_arith_result |
7444 | versuffix="$major.$age.$revision" | 7459 | versuffix="$major.$age.$revision" |
@@ -8026,6 +8041,11 @@ EOF | |||
8026 | 8041 | ||
8027 | # Test again, we may have decided not to build it any more | 8042 | # Test again, we may have decided not to build it any more |
8028 | if test "$build_libtool_libs" = yes; then | 8043 | if test "$build_libtool_libs" = yes; then |
8044 | # Remove ${wl} instances when linking with ld. | ||
8045 | # FIXME: should test the right _cmds variable. | ||
8046 | case $archive_cmds in | ||
8047 | *\$LD\ *) wl= ;; | ||
8048 | esac | ||
8029 | if test "$hardcode_into_libs" = yes; then | 8049 | if test "$hardcode_into_libs" = yes; then |
8030 | # Hardcode the library paths | 8050 | # Hardcode the library paths |
8031 | hardcode_libdirs= | 8051 | hardcode_libdirs= |
@@ -8056,7 +8076,7 @@ EOF | |||
8056 | elif test -n "$runpath_var"; then | 8076 | elif test -n "$runpath_var"; then |
8057 | case "$perm_rpath " in | 8077 | case "$perm_rpath " in |
8058 | *" $libdir "*) ;; | 8078 | *" $libdir "*) ;; |
8059 | *) func_apped perm_rpath " $libdir" ;; | 8079 | *) func_append perm_rpath " $libdir" ;; |
8060 | esac | 8080 | esac |
8061 | fi | 8081 | fi |
8062 | done | 8082 | done |
@@ -8064,11 +8084,7 @@ EOF | |||
8064 | if test -n "$hardcode_libdir_separator" && | 8084 | if test -n "$hardcode_libdir_separator" && |
8065 | test -n "$hardcode_libdirs"; then | 8085 | test -n "$hardcode_libdirs"; then |
8066 | libdir="$hardcode_libdirs" | 8086 | libdir="$hardcode_libdirs" |
8067 | if test -n "$hardcode_libdir_flag_spec_ld"; then | 8087 | eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" |
8068 | eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" | ||
8069 | else | ||
8070 | eval dep_rpath=\"$hardcode_libdir_flag_spec\" | ||
8071 | fi | ||
8072 | fi | 8088 | fi |
8073 | if test -n "$runpath_var" && test -n "$perm_rpath"; then | 8089 | if test -n "$runpath_var" && test -n "$perm_rpath"; then |
8074 | # We should set the runpath_var. | 8090 | # We should set the runpath_var. |
@@ -9158,6 +9174,8 @@ EOF | |||
9158 | esac | 9174 | esac |
9159 | done | 9175 | done |
9160 | fi | 9176 | fi |
9177 | func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 | ||
9178 | tool_oldlib=$func_to_tool_file_result | ||
9161 | eval cmds=\"$old_archive_cmds\" | 9179 | eval cmds=\"$old_archive_cmds\" |
9162 | 9180 | ||
9163 | func_len " $cmds" | 9181 | func_len " $cmds" |
@@ -9267,7 +9285,8 @@ EOF | |||
9267 | *.la) | 9285 | *.la) |
9268 | func_basename "$deplib" | 9286 | func_basename "$deplib" |
9269 | name="$func_basename_result" | 9287 | name="$func_basename_result" |
9270 | eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` | 9288 | func_resolve_sysroot "$deplib" |
9289 | eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` | ||
9271 | test -z "$libdir" && \ | 9290 | test -z "$libdir" && \ |
9272 | func_fatal_error "\`$deplib' is not a valid libtool archive" | 9291 | func_fatal_error "\`$deplib' is not a valid libtool archive" |
9273 | func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" | 9292 | func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" |
diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 8ff3c76f..828104cf 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 | |||
@@ -1,8 +1,8 @@ | |||
1 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 1 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
2 | # | 2 | # |
3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
4 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | 4 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
5 | # Inc. | 5 | # Foundation, Inc. |
6 | # Written by Gordon Matzigkeit, 1996 | 6 | # Written by Gordon Matzigkeit, 1996 |
7 | # | 7 | # |
8 | # This file is free software; the Free Software Foundation gives | 8 | # This file is free software; the Free Software Foundation gives |
@@ -11,8 +11,8 @@ | |||
11 | 11 | ||
12 | m4_define([_LT_COPYING], [dnl | 12 | m4_define([_LT_COPYING], [dnl |
13 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 13 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
14 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | 14 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
15 | # Inc. | 15 | # Foundation, Inc. |
16 | # Written by Gordon Matzigkeit, 1996 | 16 | # Written by Gordon Matzigkeit, 1996 |
17 | # | 17 | # |
18 | # This file is part of GNU Libtool. | 18 | # This file is part of GNU Libtool. |
@@ -146,6 +146,8 @@ AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |||
146 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | 146 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
147 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | 147 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
148 | 148 | ||
149 | _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl | ||
150 | dnl | ||
149 | _LT_DECL([], [host_alias], [0], [The host system])dnl | 151 | _LT_DECL([], [host_alias], [0], [The host system])dnl |
150 | _LT_DECL([], [host], [0])dnl | 152 | _LT_DECL([], [host], [0])dnl |
151 | _LT_DECL([], [host_os], [0])dnl | 153 | _LT_DECL([], [host_os], [0])dnl |
@@ -637,7 +639,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | |||
637 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | 639 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
638 | configured by $[0], generated by m4_PACKAGE_STRING. | 640 | configured by $[0], generated by m4_PACKAGE_STRING. |
639 | 641 | ||
640 | Copyright (C) 2010 Free Software Foundation, Inc. | 642 | Copyright (C) 2011 Free Software Foundation, Inc. |
641 | This config.lt script is free software; the Free Software Foundation | 643 | This config.lt script is free software; the Free Software Foundation |
642 | gives unlimited permision to copy, distribute and modify it." | 644 | gives unlimited permision to copy, distribute and modify it." |
643 | 645 | ||
@@ -801,6 +803,7 @@ AC_DEFUN([LT_LANG], | |||
801 | m4_case([$1], | 803 | m4_case([$1], |
802 | [C], [_LT_LANG(C)], | 804 | [C], [_LT_LANG(C)], |
803 | [C++], [_LT_LANG(CXX)], | 805 | [C++], [_LT_LANG(CXX)], |
806 | [Go], [_LT_LANG(GO)], | ||
804 | [Java], [_LT_LANG(GCJ)], | 807 | [Java], [_LT_LANG(GCJ)], |
805 | [Fortran 77], [_LT_LANG(F77)], | 808 | [Fortran 77], [_LT_LANG(F77)], |
806 | [Fortran], [_LT_LANG(FC)], | 809 | [Fortran], [_LT_LANG(FC)], |
@@ -822,6 +825,31 @@ m4_defun([_LT_LANG], | |||
822 | ])# _LT_LANG | 825 | ])# _LT_LANG |
823 | 826 | ||
824 | 827 | ||
828 | m4_ifndef([AC_PROG_GO], [ | ||
829 | ############################################################ | ||
830 | # NOTE: This macro has been submitted for inclusion into # | ||
831 | # GNU Autoconf as AC_PROG_GO. When it is available in # | ||
832 | # a released version of Autoconf we should remove this # | ||
833 | # macro and use it instead. # | ||
834 | ############################################################ | ||
835 | m4_defun([AC_PROG_GO], | ||
836 | [AC_LANG_PUSH(Go)dnl | ||
837 | AC_ARG_VAR([GOC], [Go compiler command])dnl | ||
838 | AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl | ||
839 | _AC_ARG_VAR_LDFLAGS()dnl | ||
840 | AC_CHECK_TOOL(GOC, gccgo) | ||
841 | if test -z "$GOC"; then | ||
842 | if test -n "$ac_tool_prefix"; then | ||
843 | AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) | ||
844 | fi | ||
845 | fi | ||
846 | if test -z "$GOC"; then | ||
847 | AC_CHECK_PROG(GOC, gccgo, gccgo, false) | ||
848 | fi | ||
849 | ])#m4_defun | ||
850 | ])#m4_ifndef | ||
851 | |||
852 | |||
825 | # _LT_LANG_DEFAULT_CONFIG | 853 | # _LT_LANG_DEFAULT_CONFIG |
826 | # ----------------------- | 854 | # ----------------------- |
827 | m4_defun([_LT_LANG_DEFAULT_CONFIG], | 855 | m4_defun([_LT_LANG_DEFAULT_CONFIG], |
@@ -852,6 +880,10 @@ AC_PROVIDE_IFELSE([AC_PROG_GCJ], | |||
852 | m4_ifdef([LT_PROG_GCJ], | 880 | m4_ifdef([LT_PROG_GCJ], |
853 | [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) | 881 | [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
854 | 882 | ||
883 | AC_PROVIDE_IFELSE([AC_PROG_GO], | ||
884 | [LT_LANG(GO)], | ||
885 | [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) | ||
886 | |||
855 | AC_PROVIDE_IFELSE([LT_PROG_RC], | 887 | AC_PROVIDE_IFELSE([LT_PROG_RC], |
856 | [LT_LANG(RC)], | 888 | [LT_LANG(RC)], |
857 | [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) | 889 | [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
@@ -954,7 +986,13 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ | |||
954 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 986 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
955 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | 987 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
956 | _lt_result=$? | 988 | _lt_result=$? |
957 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | 989 | # If there is a non-empty error log, and "single_module" |
990 | # appears in it, assume the flag caused a linker warning | ||
991 | if test -s conftest.err && $GREP single_module conftest.err; then | ||
992 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
993 | # Otherwise, if the output was created with a 0 exit code from | ||
994 | # the compiler, it worked. | ||
995 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | ||
958 | lt_cv_apple_cc_single_mod=yes | 996 | lt_cv_apple_cc_single_mod=yes |
959 | else | 997 | else |
960 | cat conftest.err >&AS_MESSAGE_LOG_FD | 998 | cat conftest.err >&AS_MESSAGE_LOG_FD |
@@ -962,6 +1000,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ | |||
962 | rm -rf libconftest.dylib* | 1000 | rm -rf libconftest.dylib* |
963 | rm -f conftest.* | 1001 | rm -f conftest.* |
964 | fi]) | 1002 | fi]) |
1003 | |||
965 | AC_CACHE_CHECK([for -exported_symbols_list linker flag], | 1004 | AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
966 | [lt_cv_ld_exported_symbols_list], | 1005 | [lt_cv_ld_exported_symbols_list], |
967 | [lt_cv_ld_exported_symbols_list=no | 1006 | [lt_cv_ld_exported_symbols_list=no |
@@ -973,6 +1012,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ | |||
973 | [lt_cv_ld_exported_symbols_list=no]) | 1012 | [lt_cv_ld_exported_symbols_list=no]) |
974 | LDFLAGS="$save_LDFLAGS" | 1013 | LDFLAGS="$save_LDFLAGS" |
975 | ]) | 1014 | ]) |
1015 | |||
976 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | 1016 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
977 | [lt_cv_ld_force_load=no | 1017 | [lt_cv_ld_force_load=no |
978 | cat > conftest.c << _LT_EOF | 1018 | cat > conftest.c << _LT_EOF |
@@ -990,7 +1030,9 @@ _LT_EOF | |||
990 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | 1030 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD |
991 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | 1031 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
992 | _lt_result=$? | 1032 | _lt_result=$? |
993 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | 1033 | if test -s conftest.err && $GREP force_load conftest.err; then |
1034 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1035 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | ||
994 | lt_cv_ld_force_load=yes | 1036 | lt_cv_ld_force_load=yes |
995 | else | 1037 | else |
996 | cat conftest.err >&AS_MESSAGE_LOG_FD | 1038 | cat conftest.err >&AS_MESSAGE_LOG_FD |
@@ -1035,8 +1077,8 @@ _LT_EOF | |||
1035 | ]) | 1077 | ]) |
1036 | 1078 | ||
1037 | 1079 | ||
1038 | # _LT_DARWIN_LINKER_FEATURES | 1080 | # _LT_DARWIN_LINKER_FEATURES([TAG]) |
1039 | # -------------------------- | 1081 | # --------------------------------- |
1040 | # Checks for linker and compiler features on darwin | 1082 | # Checks for linker and compiler features on darwin |
1041 | m4_defun([_LT_DARWIN_LINKER_FEATURES], | 1083 | m4_defun([_LT_DARWIN_LINKER_FEATURES], |
1042 | [ | 1084 | [ |
@@ -1047,6 +1089,8 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], | |||
1047 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 1089 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
1048 | if test "$lt_cv_ld_force_load" = "yes"; then | 1090 | if test "$lt_cv_ld_force_load" = "yes"; then |
1049 | _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | 1091 | _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
1092 | m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], | ||
1093 | [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) | ||
1050 | else | 1094 | else |
1051 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' | 1095 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
1052 | fi | 1096 | fi |
@@ -1330,14 +1374,27 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |||
1330 | CFLAGS="$SAVE_CFLAGS" | 1374 | CFLAGS="$SAVE_CFLAGS" |
1331 | fi | 1375 | fi |
1332 | ;; | 1376 | ;; |
1333 | sparc*-*solaris*) | 1377 | *-*solaris*) |
1334 | # Find out which ABI we are using. | 1378 | # Find out which ABI we are using. |
1335 | echo 'int i;' > conftest.$ac_ext | 1379 | echo 'int i;' > conftest.$ac_ext |
1336 | if AC_TRY_EVAL(ac_compile); then | 1380 | if AC_TRY_EVAL(ac_compile); then |
1337 | case `/usr/bin/file conftest.o` in | 1381 | case `/usr/bin/file conftest.o` in |
1338 | *64-bit*) | 1382 | *64-bit*) |
1339 | case $lt_cv_prog_gnu_ld in | 1383 | case $lt_cv_prog_gnu_ld in |
1340 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | 1384 | yes*) |
1385 | case $host in | ||
1386 | i?86-*-solaris*) | ||
1387 | LD="${LD-ld} -m elf_x86_64" | ||
1388 | ;; | ||
1389 | sparc*-*-solaris*) | ||
1390 | LD="${LD-ld} -m elf64_sparc" | ||
1391 | ;; | ||
1392 | esac | ||
1393 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | ||
1394 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | ||
1395 | LD="${LD-ld}_sol2" | ||
1396 | fi | ||
1397 | ;; | ||
1341 | *) | 1398 | *) |
1342 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | 1399 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
1343 | LD="${LD-ld} -64" | 1400 | LD="${LD-ld} -64" |
@@ -1414,13 +1471,13 @@ old_postuninstall_cmds= | |||
1414 | if test -n "$RANLIB"; then | 1471 | if test -n "$RANLIB"; then |
1415 | case $host_os in | 1472 | case $host_os in |
1416 | openbsd*) | 1473 | openbsd*) |
1417 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | 1474 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
1418 | ;; | 1475 | ;; |
1419 | *) | 1476 | *) |
1420 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | 1477 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
1421 | ;; | 1478 | ;; |
1422 | esac | 1479 | esac |
1423 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 1480 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
1424 | fi | 1481 | fi |
1425 | 1482 | ||
1426 | case $host_os in | 1483 | case $host_os in |
@@ -1600,6 +1657,11 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | |||
1600 | lt_cv_sys_max_cmd_len=196608 | 1657 | lt_cv_sys_max_cmd_len=196608 |
1601 | ;; | 1658 | ;; |
1602 | 1659 | ||
1660 | os2*) | ||
1661 | # The test takes a long time on OS/2. | ||
1662 | lt_cv_sys_max_cmd_len=8192 | ||
1663 | ;; | ||
1664 | |||
1603 | osf*) | 1665 | osf*) |
1604 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | 1666 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
1605 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | 1667 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
@@ -1639,7 +1701,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | |||
1639 | # If test is not a shell built-in, we'll probably end up computing a | 1701 | # If test is not a shell built-in, we'll probably end up computing a |
1640 | # maximum length that is only half of the actual maximum length, but | 1702 | # maximum length that is only half of the actual maximum length, but |
1641 | # we can't tell. | 1703 | # we can't tell. |
1642 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | 1704 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
1643 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | 1705 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
1644 | test $i != 17 # 1/2 MB should be enough | 1706 | test $i != 17 # 1/2 MB should be enough |
1645 | do | 1707 | do |
@@ -2185,7 +2247,7 @@ need_version=unknown | |||
2185 | 2247 | ||
2186 | case $host_os in | 2248 | case $host_os in |
2187 | aix3*) | 2249 | aix3*) |
2188 | version_type=linux | 2250 | version_type=linux # correct to gnu/linux during the next big refactor |
2189 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 2251 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
2190 | shlibpath_var=LIBPATH | 2252 | shlibpath_var=LIBPATH |
2191 | 2253 | ||
@@ -2194,7 +2256,7 @@ aix3*) | |||
2194 | ;; | 2256 | ;; |
2195 | 2257 | ||
2196 | aix[[4-9]]*) | 2258 | aix[[4-9]]*) |
2197 | version_type=linux | 2259 | version_type=linux # correct to gnu/linux during the next big refactor |
2198 | need_lib_prefix=no | 2260 | need_lib_prefix=no |
2199 | need_version=no | 2261 | need_version=no |
2200 | hardcode_into_libs=yes | 2262 | hardcode_into_libs=yes |
@@ -2259,7 +2321,7 @@ beos*) | |||
2259 | ;; | 2321 | ;; |
2260 | 2322 | ||
2261 | bsdi[[45]]*) | 2323 | bsdi[[45]]*) |
2262 | version_type=linux | 2324 | version_type=linux # correct to gnu/linux during the next big refactor |
2263 | need_version=no | 2325 | need_version=no |
2264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2265 | soname_spec='${libname}${release}${shared_ext}$major' | 2327 | soname_spec='${libname}${release}${shared_ext}$major' |
@@ -2398,7 +2460,7 @@ m4_if([$1], [],[ | |||
2398 | ;; | 2460 | ;; |
2399 | 2461 | ||
2400 | dgux*) | 2462 | dgux*) |
2401 | version_type=linux | 2463 | version_type=linux # correct to gnu/linux during the next big refactor |
2402 | need_lib_prefix=no | 2464 | need_lib_prefix=no |
2403 | need_version=no | 2465 | need_version=no |
2404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 2466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
@@ -2406,10 +2468,6 @@ dgux*) | |||
2406 | shlibpath_var=LD_LIBRARY_PATH | 2468 | shlibpath_var=LD_LIBRARY_PATH |
2407 | ;; | 2469 | ;; |
2408 | 2470 | ||
2409 | freebsd1*) | ||
2410 | dynamic_linker=no | ||
2411 | ;; | ||
2412 | |||
2413 | freebsd* | dragonfly*) | 2471 | freebsd* | dragonfly*) |
2414 | # DragonFly does not have aout. When/if they implement a new | 2472 | # DragonFly does not have aout. When/if they implement a new |
2415 | # versioning mechanism, adjust this. | 2473 | # versioning mechanism, adjust this. |
@@ -2417,7 +2475,7 @@ freebsd* | dragonfly*) | |||
2417 | objformat=`/usr/bin/objformat` | 2475 | objformat=`/usr/bin/objformat` |
2418 | else | 2476 | else |
2419 | case $host_os in | 2477 | case $host_os in |
2420 | freebsd[[123]]*) objformat=aout ;; | 2478 | freebsd[[23]].*) objformat=aout ;; |
2421 | *) objformat=elf ;; | 2479 | *) objformat=elf ;; |
2422 | esac | 2480 | esac |
2423 | fi | 2481 | fi |
@@ -2435,7 +2493,7 @@ freebsd* | dragonfly*) | |||
2435 | esac | 2493 | esac |
2436 | shlibpath_var=LD_LIBRARY_PATH | 2494 | shlibpath_var=LD_LIBRARY_PATH |
2437 | case $host_os in | 2495 | case $host_os in |
2438 | freebsd2*) | 2496 | freebsd2.*) |
2439 | shlibpath_overrides_runpath=yes | 2497 | shlibpath_overrides_runpath=yes |
2440 | ;; | 2498 | ;; |
2441 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | 2499 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
@@ -2455,7 +2513,7 @@ freebsd* | dragonfly*) | |||
2455 | ;; | 2513 | ;; |
2456 | 2514 | ||
2457 | gnu*) | 2515 | gnu*) |
2458 | version_type=linux | 2516 | version_type=linux # correct to gnu/linux during the next big refactor |
2459 | need_lib_prefix=no | 2517 | need_lib_prefix=no |
2460 | need_version=no | 2518 | need_version=no |
2461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 2519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
@@ -2466,7 +2524,7 @@ gnu*) | |||
2466 | ;; | 2524 | ;; |
2467 | 2525 | ||
2468 | haiku*) | 2526 | haiku*) |
2469 | version_type=linux | 2527 | version_type=linux # correct to gnu/linux during the next big refactor |
2470 | need_lib_prefix=no | 2528 | need_lib_prefix=no |
2471 | need_version=no | 2529 | need_version=no |
2472 | dynamic_linker="$host_os runtime_loader" | 2530 | dynamic_linker="$host_os runtime_loader" |
@@ -2527,7 +2585,7 @@ hpux9* | hpux10* | hpux11*) | |||
2527 | ;; | 2585 | ;; |
2528 | 2586 | ||
2529 | interix[[3-9]]*) | 2587 | interix[[3-9]]*) |
2530 | version_type=linux | 2588 | version_type=linux # correct to gnu/linux during the next big refactor |
2531 | need_lib_prefix=no | 2589 | need_lib_prefix=no |
2532 | need_version=no | 2590 | need_version=no |
2533 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 2591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
@@ -2543,7 +2601,7 @@ irix5* | irix6* | nonstopux*) | |||
2543 | nonstopux*) version_type=nonstopux ;; | 2601 | nonstopux*) version_type=nonstopux ;; |
2544 | *) | 2602 | *) |
2545 | if test "$lt_cv_prog_gnu_ld" = yes; then | 2603 | if test "$lt_cv_prog_gnu_ld" = yes; then |
2546 | version_type=linux | 2604 | version_type=linux # correct to gnu/linux during the next big refactor |
2547 | else | 2605 | else |
2548 | version_type=irix | 2606 | version_type=irix |
2549 | fi ;; | 2607 | fi ;; |
@@ -2580,9 +2638,9 @@ linux*oldld* | linux*aout* | linux*coff*) | |||
2580 | dynamic_linker=no | 2638 | dynamic_linker=no |
2581 | ;; | 2639 | ;; |
2582 | 2640 | ||
2583 | # This must be Linux ELF. | 2641 | # This must be glibc/ELF. |
2584 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 2642 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
2585 | version_type=linux | 2643 | version_type=linux # correct to gnu/linux during the next big refactor |
2586 | need_lib_prefix=no | 2644 | need_lib_prefix=no |
2587 | need_version=no | 2645 | need_version=no |
2588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
@@ -2657,7 +2715,7 @@ netbsd*) | |||
2657 | ;; | 2715 | ;; |
2658 | 2716 | ||
2659 | newsos6) | 2717 | newsos6) |
2660 | version_type=linux | 2718 | version_type=linux # correct to gnu/linux during the next big refactor |
2661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2662 | shlibpath_var=LD_LIBRARY_PATH | 2720 | shlibpath_var=LD_LIBRARY_PATH |
2663 | shlibpath_overrides_runpath=yes | 2721 | shlibpath_overrides_runpath=yes |
@@ -2726,7 +2784,7 @@ rdos*) | |||
2726 | ;; | 2784 | ;; |
2727 | 2785 | ||
2728 | solaris*) | 2786 | solaris*) |
2729 | version_type=linux | 2787 | version_type=linux # correct to gnu/linux during the next big refactor |
2730 | need_lib_prefix=no | 2788 | need_lib_prefix=no |
2731 | need_version=no | 2789 | need_version=no |
2732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
@@ -2751,7 +2809,7 @@ sunos4*) | |||
2751 | ;; | 2809 | ;; |
2752 | 2810 | ||
2753 | sysv4 | sysv4.3*) | 2811 | sysv4 | sysv4.3*) |
2754 | version_type=linux | 2812 | version_type=linux # correct to gnu/linux during the next big refactor |
2755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2756 | soname_spec='${libname}${release}${shared_ext}$major' | 2814 | soname_spec='${libname}${release}${shared_ext}$major' |
2757 | shlibpath_var=LD_LIBRARY_PATH | 2815 | shlibpath_var=LD_LIBRARY_PATH |
@@ -2775,7 +2833,7 @@ sysv4 | sysv4.3*) | |||
2775 | 2833 | ||
2776 | sysv4*MP*) | 2834 | sysv4*MP*) |
2777 | if test -d /usr/nec ;then | 2835 | if test -d /usr/nec ;then |
2778 | version_type=linux | 2836 | version_type=linux # correct to gnu/linux during the next big refactor |
2779 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 2837 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
2780 | soname_spec='$libname${shared_ext}.$major' | 2838 | soname_spec='$libname${shared_ext}.$major' |
2781 | shlibpath_var=LD_LIBRARY_PATH | 2839 | shlibpath_var=LD_LIBRARY_PATH |
@@ -2806,7 +2864,7 @@ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |||
2806 | 2864 | ||
2807 | tpf*) | 2865 | tpf*) |
2808 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | 2866 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
2809 | version_type=linux | 2867 | version_type=linux # correct to gnu/linux during the next big refactor |
2810 | need_lib_prefix=no | 2868 | need_lib_prefix=no |
2811 | need_version=no | 2869 | need_version=no |
2812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2870 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
@@ -2816,7 +2874,7 @@ tpf*) | |||
2816 | ;; | 2874 | ;; |
2817 | 2875 | ||
2818 | uts4*) | 2876 | uts4*) |
2819 | version_type=linux | 2877 | version_type=linux # correct to gnu/linux during the next big refactor |
2820 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2878 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2821 | soname_spec='${libname}${release}${shared_ext}$major' | 2879 | soname_spec='${libname}${release}${shared_ext}$major' |
2822 | shlibpath_var=LD_LIBRARY_PATH | 2880 | shlibpath_var=LD_LIBRARY_PATH |
@@ -3238,7 +3296,7 @@ irix5* | irix6* | nonstopux*) | |||
3238 | lt_cv_deplibs_check_method=pass_all | 3296 | lt_cv_deplibs_check_method=pass_all |
3239 | ;; | 3297 | ;; |
3240 | 3298 | ||
3241 | # This must be Linux ELF. | 3299 | # This must be glibc/ELF. |
3242 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 3300 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
3243 | lt_cv_deplibs_check_method=pass_all | 3301 | lt_cv_deplibs_check_method=pass_all |
3244 | ;; | 3302 | ;; |
@@ -3658,6 +3716,7 @@ for ac_symprfx in "" "_"; do | |||
3658 | # which start with @ or ?. | 3716 | # which start with @ or ?. |
3659 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ | 3717 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
3660 | " {last_section=section; section=\$ 3};"\ | 3718 | " {last_section=section; section=\$ 3};"\ |
3719 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | ||
3661 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | 3720 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
3662 | " \$ 0!~/External *\|/{next};"\ | 3721 | " \$ 0!~/External *\|/{next};"\ |
3663 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | 3722 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
@@ -4242,7 +4301,9 @@ m4_if([$1], [CXX], [ | |||
4242 | case $cc_basename in | 4301 | case $cc_basename in |
4243 | nvcc*) # Cuda Compiler Driver 2.2 | 4302 | nvcc*) # Cuda Compiler Driver 2.2 |
4244 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' | 4303 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' |
4245 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' | 4304 | if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
4305 | _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" | ||
4306 | fi | ||
4246 | ;; | 4307 | ;; |
4247 | esac | 4308 | esac |
4248 | else | 4309 | else |
@@ -4334,18 +4395,33 @@ m4_if([$1], [CXX], [ | |||
4334 | ;; | 4395 | ;; |
4335 | *) | 4396 | *) |
4336 | case `$CC -V 2>&1 | sed 5q` in | 4397 | case `$CC -V 2>&1 | sed 5q` in |
4337 | *Sun\ F* | *Sun*Fortran*) | 4398 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) |
4338 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | 4399 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
4339 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4400 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4340 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4401 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4341 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | 4402 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
4342 | ;; | 4403 | ;; |
4404 | *Sun\ F* | *Sun*Fortran*) | ||
4405 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4406 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4407 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
4408 | ;; | ||
4343 | *Sun\ C*) | 4409 | *Sun\ C*) |
4344 | # Sun C 5.9 | 4410 | # Sun C 5.9 |
4345 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4411 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4346 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4412 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4347 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4413 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4348 | ;; | 4414 | ;; |
4415 | *Intel*\ [[CF]]*Compiler*) | ||
4416 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4417 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4418 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4419 | ;; | ||
4420 | *Portland\ Group*) | ||
4421 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4422 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
4423 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4424 | ;; | ||
4349 | esac | 4425 | esac |
4350 | ;; | 4426 | ;; |
4351 | esac | 4427 | esac |
@@ -4505,7 +4581,9 @@ m4_if([$1], [CXX], [ | |||
4505 | ;; | 4581 | ;; |
4506 | cygwin* | mingw* | cegcc*) | 4582 | cygwin* | mingw* | cegcc*) |
4507 | case $cc_basename in | 4583 | case $cc_basename in |
4508 | cl*) ;; | 4584 | cl*) |
4585 | _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | ||
4586 | ;; | ||
4509 | *) | 4587 | *) |
4510 | _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' | 4588 | _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' |
4511 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | 4589 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
@@ -4533,7 +4611,6 @@ m4_if([$1], [CXX], [ | |||
4533 | _LT_TAGVAR(hardcode_direct, $1)=no | 4611 | _LT_TAGVAR(hardcode_direct, $1)=no |
4534 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 4612 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
4535 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 4613 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4536 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
4537 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | 4614 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
4538 | _LT_TAGVAR(hardcode_minus_L, $1)=no | 4615 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
4539 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 4616 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
@@ -4787,8 +4864,7 @@ _LT_EOF | |||
4787 | xlf* | bgf* | bgxlf* | mpixlf*) | 4864 | xlf* | bgf* | bgxlf* | mpixlf*) |
4788 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | 4865 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
4789 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' | 4866 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
4790 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 4867 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4791 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | ||
4792 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | 4868 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
4793 | if test "x$supports_anon_versioning" = xyes; then | 4869 | if test "x$supports_anon_versioning" = xyes; then |
4794 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | 4870 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
@@ -5084,6 +5160,7 @@ _LT_EOF | |||
5084 | # The linker will not automatically build a static lib if we build a DLL. | 5160 | # The linker will not automatically build a static lib if we build a DLL. |
5085 | # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | 5161 | # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
5086 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5162 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5163 | _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | ||
5087 | _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' | 5164 | _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' |
5088 | # Don't use ranlib | 5165 | # Don't use ranlib |
5089 | _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | 5166 | _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
@@ -5130,10 +5207,6 @@ _LT_EOF | |||
5130 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5207 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5131 | ;; | 5208 | ;; |
5132 | 5209 | ||
5133 | freebsd1*) | ||
5134 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
5135 | ;; | ||
5136 | |||
5137 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 5210 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
5138 | # support. Future versions do this automatically, but an explicit c++rt0.o | 5211 | # support. Future versions do this automatically, but an explicit c++rt0.o |
5139 | # does not break anything, and helps significantly (at the cost of a little | 5212 | # does not break anything, and helps significantly (at the cost of a little |
@@ -5146,7 +5219,7 @@ _LT_EOF | |||
5146 | ;; | 5219 | ;; |
5147 | 5220 | ||
5148 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 5221 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
5149 | freebsd2*) | 5222 | freebsd2.*) |
5150 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 5223 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
5151 | _LT_TAGVAR(hardcode_direct, $1)=yes | 5224 | _LT_TAGVAR(hardcode_direct, $1)=yes |
5152 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5225 | _LT_TAGVAR(hardcode_minus_L, $1)=yes |
@@ -5185,7 +5258,6 @@ _LT_EOF | |||
5185 | fi | 5258 | fi |
5186 | if test "$with_gnu_ld" = no; then | 5259 | if test "$with_gnu_ld" = no; then |
5187 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5260 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5188 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | ||
5189 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5261 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5190 | _LT_TAGVAR(hardcode_direct, $1)=yes | 5262 | _LT_TAGVAR(hardcode_direct, $1)=yes |
5191 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 5263 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
@@ -5627,9 +5699,6 @@ _LT_TAGDECL([], [no_undefined_flag], [1], | |||
5627 | _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], | 5699 | _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
5628 | [Flag to hardcode $libdir into a binary during linking. | 5700 | [Flag to hardcode $libdir into a binary during linking. |
5629 | This must work even if $libdir does not exist]) | 5701 | This must work even if $libdir does not exist]) |
5630 | _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], | ||
5631 | [[If ld is used when linking, flag to hardcode $libdir into a binary | ||
5632 | during linking. This must work even if $libdir does not exist]]) | ||
5633 | _LT_TAGDECL([], [hardcode_libdir_separator], [1], | 5702 | _LT_TAGDECL([], [hardcode_libdir_separator], [1], |
5634 | [Whether we need a single "-rpath" flag with a separated argument]) | 5703 | [Whether we need a single "-rpath" flag with a separated argument]) |
5635 | _LT_TAGDECL([], [hardcode_direct], [0], | 5704 | _LT_TAGDECL([], [hardcode_direct], [0], |
@@ -5787,7 +5856,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |||
5787 | _LT_TAGVAR(hardcode_direct, $1)=no | 5856 | _LT_TAGVAR(hardcode_direct, $1)=no |
5788 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 5857 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
5789 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 5858 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5790 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
5791 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | 5859 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
5792 | _LT_TAGVAR(hardcode_minus_L, $1)=no | 5860 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
5793 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 5861 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
@@ -6157,7 +6225,7 @@ if test "$_lt_caught_CXX_error" != yes; then | |||
6157 | esac | 6225 | esac |
6158 | ;; | 6226 | ;; |
6159 | 6227 | ||
6160 | freebsd[[12]]*) | 6228 | freebsd2.*) |
6161 | # C++ shared libraries reported to be fairly broken before | 6229 | # C++ shared libraries reported to be fairly broken before |
6162 | # switch to ELF | 6230 | # switch to ELF |
6163 | _LT_TAGVAR(ld_shlibs, $1)=no | 6231 | _LT_TAGVAR(ld_shlibs, $1)=no |
@@ -6918,12 +6986,18 @@ public class foo { | |||
6918 | } | 6986 | } |
6919 | }; | 6987 | }; |
6920 | _LT_EOF | 6988 | _LT_EOF |
6989 | ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF | ||
6990 | package foo | ||
6991 | func foo() { | ||
6992 | } | ||
6993 | _LT_EOF | ||
6921 | ]) | 6994 | ]) |
6922 | 6995 | ||
6923 | _lt_libdeps_save_CFLAGS=$CFLAGS | 6996 | _lt_libdeps_save_CFLAGS=$CFLAGS |
6924 | case "$CC $CFLAGS " in #( | 6997 | case "$CC $CFLAGS " in #( |
6925 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | 6998 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
6926 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | 6999 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
7000 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; | ||
6927 | esac | 7001 | esac |
6928 | 7002 | ||
6929 | dnl Parse the compiler output and extract the necessary | 7003 | dnl Parse the compiler output and extract the necessary |
@@ -7120,7 +7194,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |||
7120 | _LT_TAGVAR(hardcode_direct, $1)=no | 7194 | _LT_TAGVAR(hardcode_direct, $1)=no |
7121 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 7195 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
7122 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 7196 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
7123 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
7124 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | 7197 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
7125 | _LT_TAGVAR(hardcode_minus_L, $1)=no | 7198 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
7126 | _LT_TAGVAR(hardcode_automatic, $1)=no | 7199 | _LT_TAGVAR(hardcode_automatic, $1)=no |
@@ -7253,7 +7326,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |||
7253 | _LT_TAGVAR(hardcode_direct, $1)=no | 7326 | _LT_TAGVAR(hardcode_direct, $1)=no |
7254 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 7327 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
7255 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 7328 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
7256 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
7257 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | 7329 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
7258 | _LT_TAGVAR(hardcode_minus_L, $1)=no | 7330 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
7259 | _LT_TAGVAR(hardcode_automatic, $1)=no | 7331 | _LT_TAGVAR(hardcode_automatic, $1)=no |
@@ -7440,6 +7512,77 @@ CFLAGS=$lt_save_CFLAGS | |||
7440 | ])# _LT_LANG_GCJ_CONFIG | 7512 | ])# _LT_LANG_GCJ_CONFIG |
7441 | 7513 | ||
7442 | 7514 | ||
7515 | # _LT_LANG_GO_CONFIG([TAG]) | ||
7516 | # -------------------------- | ||
7517 | # Ensure that the configuration variables for the GNU Go compiler | ||
7518 | # are suitably defined. These variables are subsequently used by _LT_CONFIG | ||
7519 | # to write the compiler configuration to `libtool'. | ||
7520 | m4_defun([_LT_LANG_GO_CONFIG], | ||
7521 | [AC_REQUIRE([LT_PROG_GO])dnl | ||
7522 | AC_LANG_SAVE | ||
7523 | |||
7524 | # Source file extension for Go test sources. | ||
7525 | ac_ext=go | ||
7526 | |||
7527 | # Object file extension for compiled Go test sources. | ||
7528 | objext=o | ||
7529 | _LT_TAGVAR(objext, $1)=$objext | ||
7530 | |||
7531 | # Code to be used in simple compile tests | ||
7532 | lt_simple_compile_test_code="package main; func main() { }" | ||
7533 | |||
7534 | # Code to be used in simple link tests | ||
7535 | lt_simple_link_test_code='package main; func main() { }' | ||
7536 | |||
7537 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
7538 | _LT_TAG_COMPILER | ||
7539 | |||
7540 | # save warnings/boilerplate of simple test code | ||
7541 | _LT_COMPILER_BOILERPLATE | ||
7542 | _LT_LINKER_BOILERPLATE | ||
7543 | |||
7544 | # Allow CC to be a program name with arguments. | ||
7545 | lt_save_CC=$CC | ||
7546 | lt_save_CFLAGS=$CFLAGS | ||
7547 | lt_save_GCC=$GCC | ||
7548 | GCC=yes | ||
7549 | CC=${GOC-"gccgo"} | ||
7550 | CFLAGS=$GOFLAGS | ||
7551 | compiler=$CC | ||
7552 | _LT_TAGVAR(compiler, $1)=$CC | ||
7553 | _LT_TAGVAR(LD, $1)="$LD" | ||
7554 | _LT_CC_BASENAME([$compiler]) | ||
7555 | |||
7556 | # Go did not exist at the time GCC didn't implicitly link libc in. | ||
7557 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | ||
7558 | |||
7559 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
7560 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | ||
7561 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | ||
7562 | |||
7563 | ## CAVEAT EMPTOR: | ||
7564 | ## There is no encapsulation within the following macros, do not change | ||
7565 | ## the running order or otherwise move them around unless you know exactly | ||
7566 | ## what you are doing... | ||
7567 | if test -n "$compiler"; then | ||
7568 | _LT_COMPILER_NO_RTTI($1) | ||
7569 | _LT_COMPILER_PIC($1) | ||
7570 | _LT_COMPILER_C_O($1) | ||
7571 | _LT_COMPILER_FILE_LOCKS($1) | ||
7572 | _LT_LINKER_SHLIBS($1) | ||
7573 | _LT_LINKER_HARDCODE_LIBPATH($1) | ||
7574 | |||
7575 | _LT_CONFIG($1) | ||
7576 | fi | ||
7577 | |||
7578 | AC_LANG_RESTORE | ||
7579 | |||
7580 | GCC=$lt_save_GCC | ||
7581 | CC=$lt_save_CC | ||
7582 | CFLAGS=$lt_save_CFLAGS | ||
7583 | ])# _LT_LANG_GO_CONFIG | ||
7584 | |||
7585 | |||
7443 | # _LT_LANG_RC_CONFIG([TAG]) | 7586 | # _LT_LANG_RC_CONFIG([TAG]) |
7444 | # ------------------------- | 7587 | # ------------------------- |
7445 | # Ensure that the configuration variables for the Windows resource compiler | 7588 | # Ensure that the configuration variables for the Windows resource compiler |
@@ -7509,6 +7652,13 @@ dnl aclocal-1.4 backwards compatibility: | |||
7509 | dnl AC_DEFUN([LT_AC_PROG_GCJ], []) | 7652 | dnl AC_DEFUN([LT_AC_PROG_GCJ], []) |
7510 | 7653 | ||
7511 | 7654 | ||
7655 | # LT_PROG_GO | ||
7656 | # ---------- | ||
7657 | AC_DEFUN([LT_PROG_GO], | ||
7658 | [AC_CHECK_TOOL(GOC, gccgo,) | ||
7659 | ]) | ||
7660 | |||
7661 | |||
7512 | # LT_PROG_RC | 7662 | # LT_PROG_RC |
7513 | # ---------- | 7663 | # ---------- |
7514 | AC_DEFUN([LT_PROG_RC], | 7664 | AC_DEFUN([LT_PROG_RC], |
diff --git a/m4/ltoptions.m4 b/m4/ltoptions.m4 index 17cfd51c..5d9acd8e 100644 --- a/m4/ltoptions.m4 +++ b/m4/ltoptions.m4 | |||
@@ -326,9 +326,24 @@ dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) | |||
326 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | 326 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
327 | m4_define([_LT_WITH_PIC], | 327 | m4_define([_LT_WITH_PIC], |
328 | [AC_ARG_WITH([pic], | 328 | [AC_ARG_WITH([pic], |
329 | [AS_HELP_STRING([--with-pic], | 329 | [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], |
330 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | 330 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
331 | [pic_mode="$withval"], | 331 | [lt_p=${PACKAGE-default} |
332 | case $withval in | ||
333 | yes|no) pic_mode=$withval ;; | ||
334 | *) | ||
335 | pic_mode=default | ||
336 | # Look at the argument we got. We use all the common list separators. | ||
337 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
338 | for lt_pkg in $withval; do | ||
339 | IFS="$lt_save_ifs" | ||
340 | if test "X$lt_pkg" = "X$lt_p"; then | ||
341 | pic_mode=yes | ||
342 | fi | ||
343 | done | ||
344 | IFS="$lt_save_ifs" | ||
345 | ;; | ||
346 | esac], | ||
332 | [pic_mode=default]) | 347 | [pic_mode=default]) |
333 | 348 | ||
334 | test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) | 349 | test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) |
diff --git a/m4/ltversion.m4 b/m4/ltversion.m4 index 9c7b5d41..07a8602d 100644 --- a/m4/ltversion.m4 +++ b/m4/ltversion.m4 | |||
@@ -9,15 +9,15 @@ | |||
9 | 9 | ||
10 | # @configure_input@ | 10 | # @configure_input@ |
11 | 11 | ||
12 | # serial 3293 ltversion.m4 | 12 | # serial 3337 ltversion.m4 |
13 | # This file is part of GNU Libtool | 13 | # This file is part of GNU Libtool |
14 | 14 | ||
15 | m4_define([LT_PACKAGE_VERSION], [2.4]) | 15 | m4_define([LT_PACKAGE_VERSION], [2.4.2]) |
16 | m4_define([LT_PACKAGE_REVISION], [1.3293]) | 16 | m4_define([LT_PACKAGE_REVISION], [1.3337]) |
17 | 17 | ||
18 | AC_DEFUN([LTVERSION_VERSION], | 18 | AC_DEFUN([LTVERSION_VERSION], |
19 | [macro_version='2.4' | 19 | [macro_version='2.4.2' |
20 | macro_revision='1.3293' | 20 | macro_revision='1.3337' |
21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) | 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
22 | _LT_DECL(, macro_revision, 0) | 22 | _LT_DECL(, macro_revision, 0) |
23 | ]) | 23 | ]) |
diff --git a/src/fs/gnunet-fs-gtk-main_window_file_publish.c b/src/fs/gnunet-fs-gtk-main_window_file_publish.c index dc20aa93..f62c8928 100644 --- a/src/fs/gnunet-fs-gtk-main_window_file_publish.c +++ b/src/fs/gnunet-fs-gtk-main_window_file_publish.c | |||
@@ -730,7 +730,8 @@ GNUNET_GTK_master_publish_dialog_edit_button_clicked_cb (GtkWidget * dummy, | |||
730 | bo.content_priority = priority; | 730 | bo.content_priority = priority; |
731 | bo.expiration_time.abs_value = (uint64_t) abs_etime; | 731 | bo.expiration_time.abs_value = (uint64_t) abs_etime; |
732 | bo.replication_level = replication_level; | 732 | bo.replication_level = replication_level; |
733 | 733 | /* FIXME: can we just give our anon_liststore out like this? What about | |
734 | (unintended) sharing of state? */ | ||
734 | GNUNET_FS_GTK_edit_publish_dialog (ctx->master_pubdialog, do_index, | 735 | GNUNET_FS_GTK_edit_publish_dialog (ctx->master_pubdialog, do_index, |
735 | short_fn, bo, fip, TRUE, anon_liststore, | 736 | short_fn, bo, fip, TRUE, anon_liststore, |
736 | &master_publish_edit_publish_dialog_cb, | 737 | &master_publish_edit_publish_dialog_cb, |