config.rpath 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. #! /bin/sh
  2. # Output a system dependent set of variables, describing how to set the
  3. # run time search path of shared libraries in an executable.
  4. #
  5. # Copyright 1996-2010 Free Software Foundation, Inc.
  6. # Taken from GNU libtool, 2001
  7. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  8. #
  9. # This file is free software; the Free Software Foundation gives
  10. # unlimited permission to copy and/or distribute it, with or without
  11. # modifications, as long as this notice is preserved.
  12. #
  13. # The first argument passed to this file is the canonical host specification,
  14. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  15. # or
  16. # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  17. # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
  18. # should be set by the caller.
  19. #
  20. # The set of defined variables is at the end of this script.
  21. # Known limitations:
  22. # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
  23. # than 256 bytes, otherwise the compiler driver will dump core. The only
  24. # known workaround is to choose shorter directory names for the build
  25. # directory and/or the installation directory.
  26. # All known linkers require a `.a' archive for static linking (except MSVC,
  27. # which needs '.lib').
  28. libext=a
  29. shrext=.so
  30. host="$1"
  31. host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  32. host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  33. host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  34. # Code taken from libtool.m4's _LT_CC_BASENAME.
  35. for cc_temp in $CC""; do
  36. case $cc_temp in
  37. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  38. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  39. \-*) ;;
  40. *) break;;
  41. esac
  42. done
  43. cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
  44. # Code taken from libtool.m4's _LT_COMPILER_PIC.
  45. wl=
  46. if test "$GCC" = yes; then
  47. wl='-Wl,'
  48. else
  49. case "$host_os" in
  50. aix*)
  51. wl='-Wl,'
  52. ;;
  53. darwin*)
  54. case $cc_basename in
  55. xlc*)
  56. wl='-Wl,'
  57. ;;
  58. esac
  59. ;;
  60. mingw* | cygwin* | pw32* | os2* | cegcc*)
  61. ;;
  62. hpux9* | hpux10* | hpux11*)
  63. wl='-Wl,'
  64. ;;
  65. irix5* | irix6* | nonstopux*)
  66. wl='-Wl,'
  67. ;;
  68. newsos6)
  69. ;;
  70. linux* | k*bsd*-gnu)
  71. case $cc_basename in
  72. ecc*)
  73. wl='-Wl,'
  74. ;;
  75. icc* | ifort*)
  76. wl='-Wl,'
  77. ;;
  78. lf95*)
  79. wl='-Wl,'
  80. ;;
  81. pgcc | pgf77 | pgf90)
  82. wl='-Wl,'
  83. ;;
  84. ccc*)
  85. wl='-Wl,'
  86. ;;
  87. como)
  88. wl='-lopt='
  89. ;;
  90. *)
  91. case `$CC -V 2>&1 | sed 5q` in
  92. *Sun\ C*)
  93. wl='-Wl,'
  94. ;;
  95. esac
  96. ;;
  97. esac
  98. ;;
  99. osf3* | osf4* | osf5*)
  100. wl='-Wl,'
  101. ;;
  102. rdos*)
  103. ;;
  104. solaris*)
  105. wl='-Wl,'
  106. ;;
  107. sunos4*)
  108. wl='-Qoption ld '
  109. ;;
  110. sysv4 | sysv4.2uw2* | sysv4.3*)
  111. wl='-Wl,'
  112. ;;
  113. sysv4*MP*)
  114. ;;
  115. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  116. wl='-Wl,'
  117. ;;
  118. unicos*)
  119. wl='-Wl,'
  120. ;;
  121. uts4*)
  122. ;;
  123. esac
  124. fi
  125. # Code taken from libtool.m4's _LT_LINKER_SHLIBS.
  126. hardcode_libdir_flag_spec=
  127. hardcode_libdir_separator=
  128. hardcode_direct=no
  129. hardcode_minus_L=no
  130. case "$host_os" in
  131. cygwin* | mingw* | pw32* | cegcc*)
  132. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  133. # When not using gcc, we currently assume that we are using
  134. # Microsoft Visual C++.
  135. if test "$GCC" != yes; then
  136. with_gnu_ld=no
  137. fi
  138. ;;
  139. interix*)
  140. # we just hope/assume this is gcc and not c89 (= MSVC++)
  141. with_gnu_ld=yes
  142. ;;
  143. openbsd*)
  144. with_gnu_ld=no
  145. ;;
  146. esac
  147. ld_shlibs=yes
  148. if test "$with_gnu_ld" = yes; then
  149. # Set some defaults for GNU ld with shared library support. These
  150. # are reset later if shared libraries are not supported. Putting them
  151. # here allows them to be overridden if necessary.
  152. # Unlike libtool, we use -rpath here, not --rpath, since the documented
  153. # option of GNU ld is called -rpath, not --rpath.
  154. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  155. case "$host_os" in
  156. aix[3-9]*)
  157. # On AIX/PPC, the GNU linker is very broken
  158. if test "$host_cpu" != ia64; then
  159. ld_shlibs=no
  160. fi
  161. ;;
  162. amigaos*)
  163. hardcode_libdir_flag_spec='-L$libdir'
  164. hardcode_minus_L=yes
  165. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  166. # that the semantics of dynamic libraries on AmigaOS, at least up
  167. # to version 4, is to share data among multiple programs linked
  168. # with the same dynamic library. Since this doesn't match the
  169. # behavior of shared libraries on other platforms, we cannot use
  170. # them.
  171. ld_shlibs=no
  172. ;;
  173. beos*)
  174. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  175. :
  176. else
  177. ld_shlibs=no
  178. fi
  179. ;;
  180. cygwin* | mingw* | pw32* | cegcc*)
  181. # hardcode_libdir_flag_spec is actually meaningless, as there is
  182. # no search path for DLLs.
  183. hardcode_libdir_flag_spec='-L$libdir'
  184. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  185. :
  186. else
  187. ld_shlibs=no
  188. fi
  189. ;;
  190. interix[3-9]*)
  191. hardcode_direct=no
  192. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  193. ;;
  194. gnu* | linux* | k*bsd*-gnu)
  195. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  196. :
  197. else
  198. ld_shlibs=no
  199. fi
  200. ;;
  201. netbsd*)
  202. ;;
  203. solaris*)
  204. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  205. ld_shlibs=no
  206. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  207. :
  208. else
  209. ld_shlibs=no
  210. fi
  211. ;;
  212. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  213. case `$LD -v 2>&1` in
  214. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  215. ld_shlibs=no
  216. ;;
  217. *)
  218. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  219. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  220. else
  221. ld_shlibs=no
  222. fi
  223. ;;
  224. esac
  225. ;;
  226. sunos4*)
  227. hardcode_direct=yes
  228. ;;
  229. *)
  230. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  231. :
  232. else
  233. ld_shlibs=no
  234. fi
  235. ;;
  236. esac
  237. if test "$ld_shlibs" = no; then
  238. hardcode_libdir_flag_spec=
  239. fi
  240. else
  241. case "$host_os" in
  242. aix3*)
  243. # Note: this linker hardcodes the directories in LIBPATH if there
  244. # are no directories specified by -L.
  245. hardcode_minus_L=yes
  246. if test "$GCC" = yes; then
  247. # Neither direct hardcoding nor static linking is supported with a
  248. # broken collect2.
  249. hardcode_direct=unsupported
  250. fi
  251. ;;
  252. aix[4-9]*)
  253. if test "$host_cpu" = ia64; then
  254. # On IA64, the linker does run time linking by default, so we don't
  255. # have to do anything special.
  256. aix_use_runtimelinking=no
  257. else
  258. aix_use_runtimelinking=no
  259. # Test if we are trying to use run time linking or normal
  260. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  261. # need to do runtime linking.
  262. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  263. for ld_flag in $LDFLAGS; do
  264. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  265. aix_use_runtimelinking=yes
  266. break
  267. fi
  268. done
  269. ;;
  270. esac
  271. fi
  272. hardcode_direct=yes
  273. hardcode_libdir_separator=':'
  274. if test "$GCC" = yes; then
  275. case $host_os in aix4.[012]|aix4.[012].*)
  276. collect2name=`${CC} -print-prog-name=collect2`
  277. if test -f "$collect2name" && \
  278. strings "$collect2name" | grep resolve_lib_name >/dev/null
  279. then
  280. # We have reworked collect2
  281. :
  282. else
  283. # We have old collect2
  284. hardcode_direct=unsupported
  285. hardcode_minus_L=yes
  286. hardcode_libdir_flag_spec='-L$libdir'
  287. hardcode_libdir_separator=
  288. fi
  289. ;;
  290. esac
  291. fi
  292. # Begin _LT_AC_SYS_LIBPATH_AIX.
  293. echo 'int main () { return 0; }' > conftest.c
  294. ${CC} ${LDFLAGS} conftest.c -o conftest
  295. aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  296. }'`
  297. if test -z "$aix_libpath"; then
  298. aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  299. }'`
  300. fi
  301. if test -z "$aix_libpath"; then
  302. aix_libpath="/usr/lib:/lib"
  303. fi
  304. rm -f conftest.c conftest
  305. # End _LT_AC_SYS_LIBPATH_AIX.
  306. if test "$aix_use_runtimelinking" = yes; then
  307. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  308. else
  309. if test "$host_cpu" = ia64; then
  310. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  311. else
  312. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  313. fi
  314. fi
  315. ;;
  316. amigaos*)
  317. hardcode_libdir_flag_spec='-L$libdir'
  318. hardcode_minus_L=yes
  319. # see comment about different semantics on the GNU ld section
  320. ld_shlibs=no
  321. ;;
  322. bsdi[45]*)
  323. ;;
  324. cygwin* | mingw* | pw32* | cegcc*)
  325. # When not using gcc, we currently assume that we are using
  326. # Microsoft Visual C++.
  327. # hardcode_libdir_flag_spec is actually meaningless, as there is
  328. # no search path for DLLs.
  329. hardcode_libdir_flag_spec=' '
  330. libext=lib
  331. ;;
  332. darwin* | rhapsody*)
  333. hardcode_direct=no
  334. if test "$GCC" = yes ; then
  335. :
  336. else
  337. case $cc_basename in
  338. xlc*)
  339. ;;
  340. *)
  341. ld_shlibs=no
  342. ;;
  343. esac
  344. fi
  345. ;;
  346. dgux*)
  347. hardcode_libdir_flag_spec='-L$libdir'
  348. ;;
  349. freebsd2.2*)
  350. hardcode_libdir_flag_spec='-R$libdir'
  351. hardcode_direct=yes
  352. ;;
  353. freebsd2.*)
  354. hardcode_direct=yes
  355. hardcode_minus_L=yes
  356. ;;
  357. freebsd* | dragonfly*)
  358. hardcode_libdir_flag_spec='-R$libdir'
  359. hardcode_direct=yes
  360. ;;
  361. hpux9*)
  362. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  363. hardcode_libdir_separator=:
  364. hardcode_direct=yes
  365. # hardcode_minus_L: Not really in the search PATH,
  366. # but as the default location of the library.
  367. hardcode_minus_L=yes
  368. ;;
  369. hpux10*)
  370. if test "$with_gnu_ld" = no; then
  371. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  372. hardcode_libdir_separator=:
  373. hardcode_direct=yes
  374. # hardcode_minus_L: Not really in the search PATH,
  375. # but as the default location of the library.
  376. hardcode_minus_L=yes
  377. fi
  378. ;;
  379. hpux11*)
  380. if test "$with_gnu_ld" = no; then
  381. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  382. hardcode_libdir_separator=:
  383. case $host_cpu in
  384. hppa*64*|ia64*)
  385. hardcode_direct=no
  386. ;;
  387. *)
  388. hardcode_direct=yes
  389. # hardcode_minus_L: Not really in the search PATH,
  390. # but as the default location of the library.
  391. hardcode_minus_L=yes
  392. ;;
  393. esac
  394. fi
  395. ;;
  396. irix5* | irix6* | nonstopux*)
  397. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  398. hardcode_libdir_separator=:
  399. ;;
  400. netbsd*)
  401. hardcode_libdir_flag_spec='-R$libdir'
  402. hardcode_direct=yes
  403. ;;
  404. newsos6)
  405. hardcode_direct=yes
  406. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  407. hardcode_libdir_separator=:
  408. ;;
  409. openbsd*)
  410. if test -f /usr/libexec/ld.so; then
  411. hardcode_direct=yes
  412. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  413. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  414. else
  415. case "$host_os" in
  416. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  417. hardcode_libdir_flag_spec='-R$libdir'
  418. ;;
  419. *)
  420. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  421. ;;
  422. esac
  423. fi
  424. else
  425. ld_shlibs=no
  426. fi
  427. ;;
  428. os2*)
  429. hardcode_libdir_flag_spec='-L$libdir'
  430. hardcode_minus_L=yes
  431. ;;
  432. osf3*)
  433. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  434. hardcode_libdir_separator=:
  435. ;;
  436. osf4* | osf5*)
  437. if test "$GCC" = yes; then
  438. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  439. else
  440. # Both cc and cxx compiler support -rpath directly
  441. hardcode_libdir_flag_spec='-rpath $libdir'
  442. fi
  443. hardcode_libdir_separator=:
  444. ;;
  445. solaris*)
  446. hardcode_libdir_flag_spec='-R$libdir'
  447. ;;
  448. sunos4*)
  449. hardcode_libdir_flag_spec='-L$libdir'
  450. hardcode_direct=yes
  451. hardcode_minus_L=yes
  452. ;;
  453. sysv4)
  454. case $host_vendor in
  455. sni)
  456. hardcode_direct=yes # is this really true???
  457. ;;
  458. siemens)
  459. hardcode_direct=no
  460. ;;
  461. motorola)
  462. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  463. ;;
  464. esac
  465. ;;
  466. sysv4.3*)
  467. ;;
  468. sysv4*MP*)
  469. if test -d /usr/nec; then
  470. ld_shlibs=yes
  471. fi
  472. ;;
  473. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  474. ;;
  475. sysv5* | sco3.2v5* | sco5v6*)
  476. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  477. hardcode_libdir_separator=':'
  478. ;;
  479. uts4*)
  480. hardcode_libdir_flag_spec='-L$libdir'
  481. ;;
  482. *)
  483. ld_shlibs=no
  484. ;;
  485. esac
  486. fi
  487. # Check dynamic linker characteristics
  488. # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
  489. # Unlike libtool.m4, here we don't care about _all_ names of the library, but
  490. # only about the one the linker finds when passed -lNAME. This is the last
  491. # element of library_names_spec in libtool.m4, or possibly two of them if the
  492. # linker has special search rules.
  493. library_names_spec= # the last element of library_names_spec in libtool.m4
  494. libname_spec='lib$name'
  495. case "$host_os" in
  496. aix3*)
  497. library_names_spec='$libname.a'
  498. ;;
  499. aix[4-9]*)
  500. library_names_spec='$libname$shrext'
  501. ;;
  502. amigaos*)
  503. library_names_spec='$libname.a'
  504. ;;
  505. beos*)
  506. library_names_spec='$libname$shrext'
  507. ;;
  508. bsdi[45]*)
  509. library_names_spec='$libname$shrext'
  510. ;;
  511. cygwin* | mingw* | pw32* | cegcc*)
  512. shrext=.dll
  513. library_names_spec='$libname.dll.a $libname.lib'
  514. ;;
  515. darwin* | rhapsody*)
  516. shrext=.dylib
  517. library_names_spec='$libname$shrext'
  518. ;;
  519. dgux*)
  520. library_names_spec='$libname$shrext'
  521. ;;
  522. freebsd* | dragonfly*)
  523. case "$host_os" in
  524. freebsd[23].*)
  525. library_names_spec='$libname$shrext$versuffix' ;;
  526. *)
  527. library_names_spec='$libname$shrext' ;;
  528. esac
  529. ;;
  530. gnu*)
  531. library_names_spec='$libname$shrext'
  532. ;;
  533. hpux9* | hpux10* | hpux11*)
  534. case $host_cpu in
  535. ia64*)
  536. shrext=.so
  537. ;;
  538. hppa*64*)
  539. shrext=.sl
  540. ;;
  541. *)
  542. shrext=.sl
  543. ;;
  544. esac
  545. library_names_spec='$libname$shrext'
  546. ;;
  547. interix[3-9]*)
  548. library_names_spec='$libname$shrext'
  549. ;;
  550. irix5* | irix6* | nonstopux*)
  551. library_names_spec='$libname$shrext'
  552. case "$host_os" in
  553. irix5* | nonstopux*)
  554. libsuff= shlibsuff=
  555. ;;
  556. *)
  557. case $LD in
  558. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
  559. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
  560. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
  561. *) libsuff= shlibsuff= ;;
  562. esac
  563. ;;
  564. esac
  565. ;;
  566. linux*oldld* | linux*aout* | linux*coff*)
  567. ;;
  568. linux* | k*bsd*-gnu)
  569. library_names_spec='$libname$shrext'
  570. ;;
  571. knetbsd*-gnu)
  572. library_names_spec='$libname$shrext'
  573. ;;
  574. netbsd*)
  575. library_names_spec='$libname$shrext'
  576. ;;
  577. newsos6)
  578. library_names_spec='$libname$shrext'
  579. ;;
  580. nto-qnx*)
  581. library_names_spec='$libname$shrext'
  582. ;;
  583. openbsd*)
  584. library_names_spec='$libname$shrext$versuffix'
  585. ;;
  586. os2*)
  587. libname_spec='$name'
  588. shrext=.dll
  589. library_names_spec='$libname.a'
  590. ;;
  591. osf3* | osf4* | osf5*)
  592. library_names_spec='$libname$shrext'
  593. ;;
  594. rdos*)
  595. ;;
  596. solaris*)
  597. library_names_spec='$libname$shrext'
  598. ;;
  599. sunos4*)
  600. library_names_spec='$libname$shrext$versuffix'
  601. ;;
  602. sysv4 | sysv4.3*)
  603. library_names_spec='$libname$shrext'
  604. ;;
  605. sysv4*MP*)
  606. library_names_spec='$libname$shrext'
  607. ;;
  608. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  609. library_names_spec='$libname$shrext'
  610. ;;
  611. uts4*)
  612. library_names_spec='$libname$shrext'
  613. ;;
  614. esac
  615. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  616. escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
  617. shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
  618. escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
  619. escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
  620. escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
  621. LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
  622. # How to pass a linker flag through the compiler.
  623. wl="$escaped_wl"
  624. # Static library suffix (normally "a").
  625. libext="$libext"
  626. # Shared library suffix (normally "so").
  627. shlibext="$shlibext"
  628. # Format of library name prefix.
  629. libname_spec="$escaped_libname_spec"
  630. # Library names that the linker finds when passed -lNAME.
  631. library_names_spec="$escaped_library_names_spec"
  632. # Flag to hardcode \$libdir into a binary during linking.
  633. # This must work even if \$libdir does not exist.
  634. hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
  635. # Whether we need a single -rpath flag with a separated argument.
  636. hardcode_libdir_separator="$hardcode_libdir_separator"
  637. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  638. # resulting binary.
  639. hardcode_direct="$hardcode_direct"
  640. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  641. # resulting binary.
  642. hardcode_minus_L="$hardcode_minus_L"
  643. EOF