config.rpath 19 KB

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