Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.81 KB | None | 0 0
  1. grep echo lib/libapetag/libtool
  2. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  3. # An echo program that does not interpret backslashes.
  4. ECHO="echo"
  5. archive_expsym_cmds="echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~
  6. echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~
  7. progname=`echo "$progpath" | $SED $basename`
  8. # Check that we have a working $echo.
  9. elif test "X$1" = X--fallback-echo; then
  10. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  11. # Yippee, $echo works!
  12. # Restart under the correct shell, and then maybe $echo will work.
  13. if test "X$1" = X--fallback-echo; then
  14. # used as fallback echo
  15. case `echo X|tr X '\101'` in
  16. $echo "$modename: not configured to build any kind of library" 1>&2
  17. $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  18. show="$echo"
  19. $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  20. $echo "X$my_tmpdir" | $Xsed
  21. $echo $win32_libid_type
  22. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  23. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  24. $echo "$modename: unable to infer tagged configuration"
  25. $echo "$modename: specify a tag with \`--tag'" 1>&2
  26. # $echo "$modename: using $tagname tagged configuration"
  27. $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  28. my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  29. darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  30. darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  31. -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  32. $echo "$progname: invalid tag name: $tagname" 1>&2
  33. $echo "$progname: ignoring unknown tag $tagname" 1>&2
  34. echo "\
  35. $echo "$progname: enabling shell trace mode"
  36. $echo "host: $host"
  37. $echo "enable shared libraries"
  38. $echo "disable shared libraries"
  39. $echo "enable static libraries"
  40. $echo "disable static libraries"
  41. $echo "$modename: unrecognized option \`$arg'" 1>&2
  42. $echo "$help" 1>&2
  43. $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  44. $echo "$help" 1>&2
  45. build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  46. $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  47. $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  48. $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  49. $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  50. $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  51. $echo "$help" 1>&2
  52. $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  53. args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  54. lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  55. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  56. $echo "$modename: you must specify an argument for -Xcompile"
  57. $echo "$modename: you must specify a target with \`-o'" 1>&2
  58. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  59. libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  60. *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  61. $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  62. qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  63. && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  64. && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  65. objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  66. xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  67. $echo "$modename: you must specify a compilation command" 1>&2
  68. $echo "$help" 1>&2
  69. output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  70. $echo "\
  71. $echo "$srcfile" > "$lockfile"
  72. qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  73. $echo "\
  74. $echo "\
  75. $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  76. qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  77. $echo "$modename: symbol file \`$arg' does not exist"
  78. $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  79. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  80. $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  81. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  82. pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  83. non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  84. $echo "$modename: link input file \`$save_arg' does not exist"
  85. $echo "$modename: only absolute run-paths are allowed" 1>&2
  86. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  87. $echo "$modename: more than one -exported-symbols argument is not allowed"
  88. dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  89. $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  90. testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  91. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  92. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  93. $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  94. dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  95. $echo "$modename: only absolute run-paths are allowed" 1>&2
  96. args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  97. arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  98. args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  99. arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  100. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  101. $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  102. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  103. $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  104. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  105. pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  106. non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  107. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  108. $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  109. $echo "$help" 1>&2
  110. outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  111. eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  112. output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  113. $echo "$modename: you must specify an output file" 1>&2
  114. $echo "$help" 1>&2
  115. $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  116. $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  117. name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  118. ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  119. newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  120. newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  121. $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  122. dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  123. if eval $echo \"$deplib\" 2>/dev/null \
  124. $echo
  125. $echo "*** Warning: Trying to link with static lib archive $deplib."
  126. $echo "*** I have the capability to make that library automatically link in when"
  127. $echo "*** you link to this library. But I can only do this if you have a"
  128. $echo "*** shared version of the library, which you do not appear to have"
  129. $echo "*** because the file extensions .$libext of this argument makes me believe"
  130. $echo "*** that it is just a static archive that I should not used here."
  131. $echo
  132. $echo "*** Warning: Linking the shared library $output against the"
  133. $echo "*** static library $deplib is not portable!"
  134. $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  135. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  136. ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  137. $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  138. $echo "$modename: \`$lib' is not a convenience library" 1>&2
  139. $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  140. $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  141. $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  142. $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  143. laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  144. $echo "$modename: warning: library \`$lib' was moved." 1>&2
  145. name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  146. $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  147. -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  148. $echo
  149. $echo "*** Warning: Linking the executable $output against the loadable module"
  150. $echo "*** Warning: Linking the shared library $output against the loadable module"
  151. $echo "*** $linklib is not portable!"
  152. libname=`eval \\$echo \"$libname_spec\"`
  153. soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  154. newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  155. $echo "** Warning, lib $linklib is a module, not a shared library"
  156. $echo
  157. $echo "** And there doesn't seem to be a static archive available"
  158. $echo "** The link will probably fail, sorry"
  159. $echo "$modename: configuration error: unsupported hardcode properties"
  160. $echo
  161. $echo "*** Warning: This system can not link to static lib archive $lib."
  162. $echo "*** I have the capability to make that library automatically link in when"
  163. $echo "*** you link to this library. But I can only do this if you have a"
  164. $echo "*** shared version of the library, which you do not appear to have."
  165. $echo "*** But as you try to build a module library, libtool will still create "
  166. $echo "*** a static module, that should work as long as the dlopening application"
  167. $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  168. $echo
  169. $echo "*** However, this would only work if libtool was able to extract symbol"
  170. $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  171. $echo "*** not find such a program. So, this module is probably useless."
  172. $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  173. -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  174. dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  175. $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  176. $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  177. $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  178. eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  179. $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
  180. $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  181. $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  182. $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  183. $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  184. $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  185. $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  186. name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  187. $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  188. $echo "$help" 1>&2
  189. name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  190. libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  191. $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  192. $echo
  193. $echo "*** Warning: Linking the shared library $output against the non-libtool"
  194. $echo "*** objects $objs is not portable!"
  195. $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  196. $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  197. $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  198. $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  199. $echo "$modename: too many parameters to \`-version-info'" 1>&2
  200. $echo "$help" 1>&2
  201. $echo "$modename: unknown library version type \`$version_type'" 1>&2
  202. $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  203. $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  204. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  205. $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  206. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  207. $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  208. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  209. $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  210. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  211. $echo "$modename: unknown library version type \`$version_type'" 1>&2
  212. $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  213. $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  214. tempremovelist=`$echo "$output_objdir/*"`
  215. if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  216. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  217. # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  218. # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  219. # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  220. libname=`eval \\$echo \"$libname_spec\"`
  221. deplib_matches=`eval \\$echo \"$library_names_spec\"`
  222. $echo
  223. $echo "*** Warning: dynamic linker does not accept needed library $i."
  224. $echo "*** I have the capability to make that library automatically link in when"
  225. $echo "*** you link to this library. But I can only do this if you have a"
  226. $echo "*** shared version of the library, which I believe you do not have"
  227. $echo "*** because a test_compile did reveal that the linker did not use it for"
  228. $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  229. libname=`eval \\$echo \"$libname_spec\"`
  230. deplib_matches=`eval \\$echo \"$library_names_spec\"`
  231. $echo
  232. $echo "*** Warning: dynamic linker does not accept needed library $i."
  233. $echo "*** I have the capability to make that library automatically link in when"
  234. $echo "*** you link to this library. But I can only do this if you have a"
  235. $echo "*** shared version of the library, which you do not appear to have"
  236. $echo "*** because a test_compile did reveal that the linker did not use this one"
  237. $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  238. $echo
  239. $echo "*** Warning! Library $i is needed by this library but I was not able to"
  240. $echo "*** make it link in! You will probably need to install it or some"
  241. $echo "*** library that it depends on before this library will be fully"
  242. $echo "*** functional. Installing it before continuing would be even better."
  243. libname=`eval \\$echo \"$libname_spec\"`
  244. *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  245. $echo
  246. $echo "*** Warning: linker path does not have real file for library $a_deplib."
  247. $echo "*** I have the capability to make that library automatically link in when"
  248. $echo "*** you link to this library. But I can only do this if you have a"
  249. $echo "*** shared version of the library, which you do not appear to have"
  250. $echo "*** because I did check the linker path looking for a file starting"
  251. $echo "*** with $libname but no candidates were found. (...for file magic test)"
  252. $echo "*** with $libname and none of the candidates passed a file format test"
  253. $echo "*** using a file magic. Last file checked: $potlib"
  254. libname=`eval \\$echo \"$libname_spec\"`
  255. if eval $echo \"$potent_lib\" 2>/dev/null \
  256. $echo
  257. $echo "*** Warning: linker path does not have real file for library $a_deplib."
  258. $echo "*** I have the capability to make that library automatically link in when"
  259. $echo "*** you link to this library. But I can only do this if you have a"
  260. $echo "*** shared version of the library, which you do not appear to have"
  261. $echo "*** because I did check the linker path looking for a file starting"
  262. $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  263. $echo "*** with $libname and none of the candidates passed a file format test"
  264. $echo "*** using a regex pattern. Last file checked: $potlib"
  265. tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  266. tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  267. if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  268. $echo
  269. $echo "*** Warning: inter-library dependencies are not supported in this platform."
  270. $echo "*** Warning: inter-library dependencies are not known to be supported."
  271. $echo "*** All declared inter-library dependencies are being dropped."
  272. newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  273. $echo
  274. $echo "*** Warning: libtool could not satisfy all declared inter-library"
  275. $echo "*** dependencies of module $libname. Therefore, libtool will create"
  276. $echo "*** a static module, that should work as long as the dlopening"
  277. $echo "*** application is linked with the -dlopen flag."
  278. $echo
  279. $echo "*** However, this would only work if libtool was able to extract symbol"
  280. $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  281. $echo "*** not find such a program. So, this module is probably useless."
  282. $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  283. $echo "*** The inter-library dependencies that have been dropped here will be"
  284. $echo "*** automatically added whenever a program is linked with this library"
  285. $echo "*** or is declared to -dlopen it."
  286. $echo
  287. $echo "*** Since this library must not contain undefined symbols,"
  288. $echo "*** because either the platform does not support them or"
  289. $echo "*** it was explicitly requested with -no-undefined,"
  290. $echo "*** libtool will only create a static version of it."
  291. test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  292. $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  293. $echo "creating reloadable object files..."
  294. output_la=`$echo "X$output" | $Xsed -e "$basename"`
  295. $echo "creating a temporary reloadable object file: $output"
  296. $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
  297. $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  298. $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  299. $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  300. $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  301. $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  302. $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  303. obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  304. reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  305. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  306. # $show "echo timestamp > $libobj"
  307. # $run eval "echo timestamp > $libobj" || exit $?
  308. *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  309. $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  310. $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  311. $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  312. compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  313. finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  314. testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  315. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  316. finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  317. $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  318. test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  319. test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  320. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  321. $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  322. $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  323. name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  324. $run eval '$echo ": $name " >> "$nlist"'
  325. $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  326. $echo >> "$output_objdir/$dlsyms" "\
  327. $echo >> "$output_objdir/$dlsyms" "\
  328. $echo >> "$output_objdir/$dlsyms" "\
  329. $echo >> "$output_objdir/$dlsyms" "\
  330. $echo >> "$output_objdir/$dlsyms" "\
  331. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  332. finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  333. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  334. finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  335. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  336. finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  337. $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  338. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  339. finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  340. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
  341. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  342. $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  343. $echo "$modename: \`$output' will be relinked during installation" 1>&2
  344. relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
  345. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  346. var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  347. relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  348. # Quote $echo for shipping.
  349. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  350. [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  351. *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  352. qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  353. qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  354. *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  355. outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  356. $echo > $output "\
  357. # When we are sourced in execute mode, \$file and \$echo are already set.
  358. echo=\"$qecho\"
  359. # Make sure echo works.
  360. elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  361. # Yippee, \$echo works!
  362. # Restart under the correct shell, and then maybe \$echo will work.
  363. $echo >> $output "\
  364. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  365. destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  366. file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  367. $echo >> $output "\
  368. $echo >> $output "\
  369. $echo \"\$relink_command_output\" >&2
  370. $echo >> $output "\
  371. $echo >> $output "\
  372. $echo >> $output "\
  373. $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  374. $echo >> $output "\
  375. $echo >> $output "\
  376. $echo >> $output "\
  377. $echo >> $output "\
  378. $echo >> $output "\
  379. \$echo \"\$0: cannot exec \$program \$*\"
  380. \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  381. \$echo \"This script is just a wrapper for \$program.\" 1>&2
  382. $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  383. $echo "X$obj" | $Xsed -e 's%^.*/%%'
  384. $echo "copying selected object files to avoid basename conflicts..."
  385. objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  386. $echo "using piecewise archive linking..."
  387. var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  388. relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  389. name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  390. $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  391. name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  392. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  393. name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  394. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  395. $echo > $output "\
  396. $echo >> $output "\
  397. $echo "X$nonopt" | grep shtool > /dev/null; then
  398. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  399. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  400. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  401. $echo "$modename: you must specify an install program" 1>&2
  402. $echo "$help" 1>&2
  403. $echo "$modename: the \`$prev' option requires an argument" 1>&2
  404. $echo "$help" 1>&2
  405. $echo "$modename: no file or destination specified" 1>&2
  406. $echo "$modename: you must specify a destination" 1>&2
  407. $echo "$help" 1>&2
  408. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  409. destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  410. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  411. $echo "$modename: \`$dest' is not a directory" 1>&2
  412. $echo "$help" 1>&2
  413. $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  414. $echo "$help" 1>&2
  415. $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  416. $echo "$help" 1>&2
  417. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  418. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  419. $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  420. relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
  421. relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
  422. $echo "$modename: warning: relinking \`$file'" 1>&2
  423. $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  424. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  425. destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  426. staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  427. $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  428. $echo "$help" 1>&2
  429. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  430. destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  431. file=`$echo $file|${SED} 's,.exe$,,'`
  432. wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  433. $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  434. libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  435. $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  436. file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  437. relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
  438. $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  439. $echo "$modename: warning: cannot relink \`$file'" 1>&2
  440. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  441. destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  442. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  443. $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  444. $echo "X----------------------------------------------------------------------" | $Xsed
  445. $echo "Libraries have been installed in:"
  446. $echo " $libdir"
  447. $echo
  448. $echo "If you ever happen to want to link against installed libraries"
  449. $echo "in a given directory, LIBDIR, you must either use libtool, and"
  450. $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  451. $echo "flag during linking and do at least one of the following:"
  452. $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  453. $echo " during execution"
  454. $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  455. $echo " during linking"
  456. $echo " - use the \`$flag' linker flag"
  457. $echo " - have your system administrator run these commands:$admincmds"
  458. $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  459. $echo
  460. $echo "See any operating system documentation about shared libraries for"
  461. $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  462. $echo "X----------------------------------------------------------------------" | $Xsed
  463. $echo "$modename: you must specify a COMMAND" 1>&2
  464. $echo "$help"
  465. $echo "$modename: \`$file' is not a file" 1>&2
  466. $echo "$help" 1>&2
  467. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  468. $echo "$help" 1>&2
  469. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  470. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  471. $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  472. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  473. $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  474. file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  475. eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  476. $echo "export $shlibpath_var"
  477. $echo "$cmd$args"
  478. $echo "$modename: you must specify an RM program" 1>&2
  479. $echo "$help" 1>&2
  480. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  481. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  482. file=`$echo $file|${SED} 's,.exe$,,'`
  483. noexename=`$echo $name|${SED} 's,.exe$,,'`
  484. $echo "$modename: you must specify a MODE" 1>&2
  485. $echo "$generic_help" 1>&2
  486. $echo "$modename: invalid operation mode \`$mode'" 1>&2
  487. $echo "$generic_help" 1>&2
  488. "") $echo \
  489. $echo \
  490. $echo \
  491. $echo \
  492. $echo \
  493. $echo \
  494. $echo \
  495. $echo \
  496. $echo "$modename: invalid operation mode \`$mode'" 1>&2
  497. $echo "$help" 1>&2
  498. $echo
  499. $echo "Try \`$modename --help' for more information about other modes."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement