2
0

config.rpath 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  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. freebsd1*)
  350. ld_shlibs=no
  351. ;;
  352. freebsd2.2*)
  353. hardcode_libdir_flag_spec='-R$libdir'
  354. hardcode_direct=yes
  355. ;;
  356. freebsd2*)
  357. hardcode_direct=yes
  358. hardcode_minus_L=yes
  359. ;;
  360. freebsd* | dragonfly*)
  361. hardcode_libdir_flag_spec='-R$libdir'
  362. hardcode_direct=yes
  363. ;;
  364. hpux9*)
  365. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  366. hardcode_libdir_separator=:
  367. hardcode_direct=yes
  368. # hardcode_minus_L: Not really in the search PATH,
  369. # but as the default location of the library.
  370. hardcode_minus_L=yes
  371. ;;
  372. hpux10*)
  373. if test "$with_gnu_ld" = no; then
  374. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  375. hardcode_libdir_separator=:
  376. hardcode_direct=yes
  377. # hardcode_minus_L: Not really in the search PATH,
  378. # but as the default location of the library.
  379. hardcode_minus_L=yes
  380. fi
  381. ;;
  382. hpux11*)
  383. if test "$with_gnu_ld" = no; then
  384. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  385. hardcode_libdir_separator=:
  386. case $host_cpu in
  387. hppa*64*|ia64*)
  388. hardcode_direct=no
  389. ;;
  390. *)
  391. hardcode_direct=yes
  392. # hardcode_minus_L: Not really in the search PATH,
  393. # but as the default location of the library.
  394. hardcode_minus_L=yes
  395. ;;
  396. esac
  397. fi
  398. ;;
  399. irix5* | irix6* | nonstopux*)
  400. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  401. hardcode_libdir_separator=:
  402. ;;
  403. netbsd*)
  404. hardcode_libdir_flag_spec='-R$libdir'
  405. hardcode_direct=yes
  406. ;;
  407. newsos6)
  408. hardcode_direct=yes
  409. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  410. hardcode_libdir_separator=:
  411. ;;
  412. openbsd*)
  413. if test -f /usr/libexec/ld.so; then
  414. hardcode_direct=yes
  415. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  416. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  417. else
  418. case "$host_os" in
  419. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  420. hardcode_libdir_flag_spec='-R$libdir'
  421. ;;
  422. *)
  423. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  424. ;;
  425. esac
  426. fi
  427. else
  428. ld_shlibs=no
  429. fi
  430. ;;
  431. os2*)
  432. hardcode_libdir_flag_spec='-L$libdir'
  433. hardcode_minus_L=yes
  434. ;;
  435. osf3*)
  436. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  437. hardcode_libdir_separator=:
  438. ;;
  439. osf4* | osf5*)
  440. if test "$GCC" = yes; then
  441. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  442. else
  443. # Both cc and cxx compiler support -rpath directly
  444. hardcode_libdir_flag_spec='-rpath $libdir'
  445. fi
  446. hardcode_libdir_separator=:
  447. ;;
  448. solaris*)
  449. hardcode_libdir_flag_spec='-R$libdir'
  450. ;;
  451. sunos4*)
  452. hardcode_libdir_flag_spec='-L$libdir'
  453. hardcode_direct=yes
  454. hardcode_minus_L=yes
  455. ;;
  456. sysv4)
  457. case $host_vendor in
  458. sni)
  459. hardcode_direct=yes # is this really true???
  460. ;;
  461. siemens)
  462. hardcode_direct=no
  463. ;;
  464. motorola)
  465. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  466. ;;
  467. esac
  468. ;;
  469. sysv4.3*)
  470. ;;
  471. sysv4*MP*)
  472. if test -d /usr/nec; then
  473. ld_shlibs=yes
  474. fi
  475. ;;
  476. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  477. ;;
  478. sysv5* | sco3.2v5* | sco5v6*)
  479. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  480. hardcode_libdir_separator=':'
  481. ;;
  482. uts4*)
  483. hardcode_libdir_flag_spec='-L$libdir'
  484. ;;
  485. *)
  486. ld_shlibs=no
  487. ;;
  488. esac
  489. fi
  490. # Check dynamic linker characteristics
  491. # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
  492. # Unlike libtool.m4, here we don't care about _all_ names of the library, but
  493. # only about the one the linker finds when passed -lNAME. This is the last
  494. # element of library_names_spec in libtool.m4, or possibly two of them if the
  495. # linker has special search rules.
  496. library_names_spec= # the last element of library_names_spec in libtool.m4
  497. libname_spec='lib$name'
  498. case "$host_os" in
  499. aix3*)
  500. library_names_spec='$libname.a'
  501. ;;
  502. aix[4-9]*)
  503. library_names_spec='$libname$shrext'
  504. ;;
  505. amigaos*)
  506. library_names_spec='$libname.a'
  507. ;;
  508. beos*)
  509. library_names_spec='$libname$shrext'
  510. ;;
  511. bsdi[45]*)
  512. library_names_spec='$libname$shrext'
  513. ;;
  514. cygwin* | mingw* | pw32* | cegcc*)
  515. shrext=.dll
  516. library_names_spec='$libname.dll.a $libname.lib'
  517. ;;
  518. darwin* | rhapsody*)
  519. shrext=.dylib
  520. library_names_spec='$libname$shrext'
  521. ;;
  522. dgux*)
  523. library_names_spec='$libname$shrext'
  524. ;;
  525. freebsd1*)
  526. ;;
  527. freebsd* | dragonfly*)
  528. case "$host_os" in
  529. freebsd[123]*)
  530. library_names_spec='$libname$shrext$versuffix' ;;
  531. *)
  532. library_names_spec='$libname$shrext' ;;
  533. esac
  534. ;;
  535. gnu*)
  536. library_names_spec='$libname$shrext'
  537. ;;
  538. hpux9* | hpux10* | hpux11*)
  539. case $host_cpu in
  540. ia64*)
  541. shrext=.so
  542. ;;
  543. hppa*64*)
  544. shrext=.sl
  545. ;;
  546. *)
  547. shrext=.sl
  548. ;;
  549. esac
  550. library_names_spec='$libname$shrext'
  551. ;;
  552. interix[3-9]*)
  553. library_names_spec='$libname$shrext'
  554. ;;
  555. irix5* | irix6* | nonstopux*)
  556. library_names_spec='$libname$shrext'
  557. case "$host_os" in
  558. irix5* | nonstopux*)
  559. libsuff= shlibsuff=
  560. ;;
  561. *)
  562. case $LD in
  563. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
  564. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
  565. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
  566. *) libsuff= shlibsuff= ;;
  567. esac
  568. ;;
  569. esac
  570. ;;
  571. linux*oldld* | linux*aout* | linux*coff*)
  572. ;;
  573. linux* | k*bsd*-gnu)
  574. library_names_spec='$libname$shrext'
  575. ;;
  576. knetbsd*-gnu)
  577. library_names_spec='$libname$shrext'
  578. ;;
  579. netbsd*)
  580. library_names_spec='$libname$shrext'
  581. ;;
  582. newsos6)
  583. library_names_spec='$libname$shrext'
  584. ;;
  585. nto-qnx*)
  586. library_names_spec='$libname$shrext'
  587. ;;
  588. openbsd*)
  589. library_names_spec='$libname$shrext$versuffix'
  590. ;;
  591. os2*)
  592. libname_spec='$name'
  593. shrext=.dll
  594. library_names_spec='$libname.a'
  595. ;;
  596. osf3* | osf4* | osf5*)
  597. library_names_spec='$libname$shrext'
  598. ;;
  599. rdos*)
  600. ;;
  601. solaris*)
  602. library_names_spec='$libname$shrext'
  603. ;;
  604. sunos4*)
  605. library_names_spec='$libname$shrext$versuffix'
  606. ;;
  607. sysv4 | sysv4.3*)
  608. library_names_spec='$libname$shrext'
  609. ;;
  610. sysv4*MP*)
  611. library_names_spec='$libname$shrext'
  612. ;;
  613. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  614. library_names_spec='$libname$shrext'
  615. ;;
  616. uts4*)
  617. library_names_spec='$libname$shrext'
  618. ;;
  619. esac
  620. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  621. escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
  622. shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
  623. escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
  624. escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
  625. escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
  626. LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
  627. # How to pass a linker flag through the compiler.
  628. wl="$escaped_wl"
  629. # Static library suffix (normally "a").
  630. libext="$libext"
  631. # Shared library suffix (normally "so").
  632. shlibext="$shlibext"
  633. # Format of library name prefix.
  634. libname_spec="$escaped_libname_spec"
  635. # Library names that the linker finds when passed -lNAME.
  636. library_names_spec="$escaped_library_names_spec"
  637. # Flag to hardcode \$libdir into a binary during linking.
  638. # This must work even if \$libdir does not exist.
  639. hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
  640. # Whether we need a single -rpath flag with a separated argument.
  641. hardcode_libdir_separator="$hardcode_libdir_separator"
  642. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  643. # resulting binary.
  644. hardcode_direct="$hardcode_direct"
  645. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  646. # resulting binary.
  647. hardcode_minus_L="$hardcode_minus_L"
  648. EOF