config.rpath 18 KB

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