diff options
Diffstat (limited to 'config.rpath')
-rwxr-xr-x | config.rpath | 230 |
1 files changed, 150 insertions, 80 deletions
diff --git a/config.rpath b/config.rpath index c492a93b6..b625621fa 100755 --- a/config.rpath +++ b/config.rpath | |||
@@ -2,7 +2,7 @@ | |||
2 | # Output a system dependent set of variables, describing how to set the | 2 | # Output a system dependent set of variables, describing how to set the |
3 | # run time search path of shared libraries in an executable. | 3 | # run time search path of shared libraries in an executable. |
4 | # | 4 | # |
5 | # Copyright 1996-2006 Free Software Foundation, Inc. | 5 | # Copyright 1996-2014 Free Software Foundation, Inc. |
6 | # Taken from GNU libtool, 2001 | 6 | # Taken from GNU libtool, 2001 |
7 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 7 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
8 | # | 8 | # |
@@ -25,7 +25,7 @@ | |||
25 | # known workaround is to choose shorter directory names for the build | 25 | # known workaround is to choose shorter directory names for the build |
26 | # directory and/or the installation directory. | 26 | # directory and/or the installation directory. |
27 | 27 | ||
28 | # All known linkers require a `.a' archive for static linking (except MSVC, | 28 | # All known linkers require a '.a' archive for static linking (except MSVC, |
29 | # which needs '.lib'). | 29 | # which needs '.lib'). |
30 | libext=a | 30 | libext=a |
31 | shrext=.so | 31 | shrext=.so |
@@ -47,7 +47,7 @@ for cc_temp in $CC""; do | |||
47 | done | 47 | done |
48 | cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` | 48 | cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` |
49 | 49 | ||
50 | # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. | 50 | # Code taken from libtool.m4's _LT_COMPILER_PIC. |
51 | 51 | ||
52 | wl= | 52 | wl= |
53 | if test "$GCC" = yes; then | 53 | if test "$GCC" = yes; then |
@@ -57,14 +57,7 @@ else | |||
57 | aix*) | 57 | aix*) |
58 | wl='-Wl,' | 58 | wl='-Wl,' |
59 | ;; | 59 | ;; |
60 | darwin*) | 60 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
61 | case $cc_basename in | ||
62 | xlc*) | ||
63 | wl='-Wl,' | ||
64 | ;; | ||
65 | esac | ||
66 | ;; | ||
67 | mingw* | pw32* | os2*) | ||
68 | ;; | 61 | ;; |
69 | hpux9* | hpux10* | hpux11*) | 62 | hpux9* | hpux10* | hpux11*) |
70 | wl='-Wl,' | 63 | wl='-Wl,' |
@@ -72,24 +65,37 @@ else | |||
72 | irix5* | irix6* | nonstopux*) | 65 | irix5* | irix6* | nonstopux*) |
73 | wl='-Wl,' | 66 | wl='-Wl,' |
74 | ;; | 67 | ;; |
75 | newsos6) | 68 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
76 | ;; | ||
77 | linux*) | ||
78 | case $cc_basename in | 69 | case $cc_basename in |
79 | icc* | ecc*) | 70 | ecc*) |
71 | wl='-Wl,' | ||
72 | ;; | ||
73 | icc* | ifort*) | ||
80 | wl='-Wl,' | 74 | wl='-Wl,' |
81 | ;; | 75 | ;; |
82 | pgcc | pgf77 | pgf90) | 76 | lf95*) |
77 | wl='-Wl,' | ||
78 | ;; | ||
79 | nagfor*) | ||
80 | wl='-Wl,-Wl,,' | ||
81 | ;; | ||
82 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
83 | wl='-Wl,' | 83 | wl='-Wl,' |
84 | ;; | 84 | ;; |
85 | ccc*) | 85 | ccc*) |
86 | wl='-Wl,' | 86 | wl='-Wl,' |
87 | ;; | 87 | ;; |
88 | xl* | bgxl* | bgf* | mpixl*) | ||
89 | wl='-Wl,' | ||
90 | ;; | ||
88 | como) | 91 | como) |
89 | wl='-lopt=' | 92 | wl='-lopt=' |
90 | ;; | 93 | ;; |
91 | *) | 94 | *) |
92 | case `$CC -V 2>&1 | sed 5q` in | 95 | case `$CC -V 2>&1 | sed 5q` in |
96 | *Sun\ F* | *Sun*Fortran*) | ||
97 | wl= | ||
98 | ;; | ||
93 | *Sun\ C*) | 99 | *Sun\ C*) |
94 | wl='-Wl,' | 100 | wl='-Wl,' |
95 | ;; | 101 | ;; |
@@ -97,22 +103,36 @@ else | |||
97 | ;; | 103 | ;; |
98 | esac | 104 | esac |
99 | ;; | 105 | ;; |
106 | newsos6) | ||
107 | ;; | ||
108 | *nto* | *qnx*) | ||
109 | ;; | ||
100 | osf3* | osf4* | osf5*) | 110 | osf3* | osf4* | osf5*) |
101 | wl='-Wl,' | 111 | wl='-Wl,' |
102 | ;; | 112 | ;; |
103 | sco3.2v5*) | 113 | rdos*) |
104 | ;; | 114 | ;; |
105 | solaris*) | 115 | solaris*) |
106 | wl='-Wl,' | 116 | case $cc_basename in |
117 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
118 | wl='-Qoption ld ' | ||
119 | ;; | ||
120 | *) | ||
121 | wl='-Wl,' | ||
122 | ;; | ||
123 | esac | ||
107 | ;; | 124 | ;; |
108 | sunos4*) | 125 | sunos4*) |
109 | wl='-Qoption ld ' | 126 | wl='-Qoption ld ' |
110 | ;; | 127 | ;; |
111 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 128 | sysv4 | sysv4.2uw2* | sysv4.3*) |
112 | wl='-Wl,' | 129 | wl='-Wl,' |
113 | ;; | 130 | ;; |
114 | sysv4*MP*) | 131 | sysv4*MP*) |
115 | ;; | 132 | ;; |
133 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
134 | wl='-Wl,' | ||
135 | ;; | ||
116 | unicos*) | 136 | unicos*) |
117 | wl='-Wl,' | 137 | wl='-Wl,' |
118 | ;; | 138 | ;; |
@@ -121,7 +141,7 @@ else | |||
121 | esac | 141 | esac |
122 | fi | 142 | fi |
123 | 143 | ||
124 | # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. | 144 | # Code taken from libtool.m4's _LT_LINKER_SHLIBS. |
125 | 145 | ||
126 | hardcode_libdir_flag_spec= | 146 | hardcode_libdir_flag_spec= |
127 | hardcode_libdir_separator= | 147 | hardcode_libdir_separator= |
@@ -129,7 +149,7 @@ hardcode_direct=no | |||
129 | hardcode_minus_L=no | 149 | hardcode_minus_L=no |
130 | 150 | ||
131 | case "$host_os" in | 151 | case "$host_os" in |
132 | cygwin* | mingw* | pw32*) | 152 | cygwin* | mingw* | pw32* | cegcc*) |
133 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 153 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
134 | # When not using gcc, we currently assume that we are using | 154 | # When not using gcc, we currently assume that we are using |
135 | # Microsoft Visual C++. | 155 | # Microsoft Visual C++. |
@@ -155,22 +175,21 @@ if test "$with_gnu_ld" = yes; then | |||
155 | # option of GNU ld is called -rpath, not --rpath. | 175 | # option of GNU ld is called -rpath, not --rpath. |
156 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 176 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
157 | case "$host_os" in | 177 | case "$host_os" in |
158 | aix3* | aix4* | aix5*) | 178 | aix[3-9]*) |
159 | # On AIX/PPC, the GNU linker is very broken | 179 | # On AIX/PPC, the GNU linker is very broken |
160 | if test "$host_cpu" != ia64; then | 180 | if test "$host_cpu" != ia64; then |
161 | ld_shlibs=no | 181 | ld_shlibs=no |
162 | fi | 182 | fi |
163 | ;; | 183 | ;; |
164 | amigaos*) | 184 | amigaos*) |
165 | hardcode_libdir_flag_spec='-L$libdir' | 185 | case "$host_cpu" in |
166 | hardcode_minus_L=yes | 186 | powerpc) |
167 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 187 | ;; |
168 | # that the semantics of dynamic libraries on AmigaOS, at least up | 188 | m68k) |
169 | # to version 4, is to share data among multiple programs linked | 189 | hardcode_libdir_flag_spec='-L$libdir' |
170 | # with the same dynamic library. Since this doesn't match the | 190 | hardcode_minus_L=yes |
171 | # behavior of shared libraries on other platforms, we cannot use | 191 | ;; |
172 | # them. | 192 | esac |
173 | ld_shlibs=no | ||
174 | ;; | 193 | ;; |
175 | beos*) | 194 | beos*) |
176 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 195 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
@@ -179,7 +198,7 @@ if test "$with_gnu_ld" = yes; then | |||
179 | ld_shlibs=no | 198 | ld_shlibs=no |
180 | fi | 199 | fi |
181 | ;; | 200 | ;; |
182 | cygwin* | mingw* | pw32*) | 201 | cygwin* | mingw* | pw32* | cegcc*) |
183 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 202 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
184 | # no search path for DLLs. | 203 | # no search path for DLLs. |
185 | hardcode_libdir_flag_spec='-L$libdir' | 204 | hardcode_libdir_flag_spec='-L$libdir' |
@@ -189,11 +208,13 @@ if test "$with_gnu_ld" = yes; then | |||
189 | ld_shlibs=no | 208 | ld_shlibs=no |
190 | fi | 209 | fi |
191 | ;; | 210 | ;; |
192 | interix3*) | 211 | haiku*) |
212 | ;; | ||
213 | interix[3-9]*) | ||
193 | hardcode_direct=no | 214 | hardcode_direct=no |
194 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 215 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
195 | ;; | 216 | ;; |
196 | linux*) | 217 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
197 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 218 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
198 | : | 219 | : |
199 | else | 220 | else |
@@ -251,7 +272,7 @@ else | |||
251 | hardcode_direct=unsupported | 272 | hardcode_direct=unsupported |
252 | fi | 273 | fi |
253 | ;; | 274 | ;; |
254 | aix4* | aix5*) | 275 | aix[4-9]*) |
255 | if test "$host_cpu" = ia64; then | 276 | if test "$host_cpu" = ia64; then |
256 | # On IA64, the linker does run time linking by default, so we don't | 277 | # On IA64, the linker does run time linking by default, so we don't |
257 | # have to do anything special. | 278 | # have to do anything special. |
@@ -261,7 +282,7 @@ else | |||
261 | # Test if we are trying to use run time linking or normal | 282 | # Test if we are trying to use run time linking or normal |
262 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 283 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
263 | # need to do runtime linking. | 284 | # need to do runtime linking. |
264 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 285 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
265 | for ld_flag in $LDFLAGS; do | 286 | for ld_flag in $LDFLAGS; do |
266 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 287 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
267 | aix_use_runtimelinking=yes | 288 | aix_use_runtimelinking=yes |
@@ -280,7 +301,7 @@ else | |||
280 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 301 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
281 | then | 302 | then |
282 | # We have reworked collect2 | 303 | # We have reworked collect2 |
283 | hardcode_direct=yes | 304 | : |
284 | else | 305 | else |
285 | # We have old collect2 | 306 | # We have old collect2 |
286 | hardcode_direct=unsupported | 307 | hardcode_direct=unsupported |
@@ -316,14 +337,18 @@ else | |||
316 | fi | 337 | fi |
317 | ;; | 338 | ;; |
318 | amigaos*) | 339 | amigaos*) |
319 | hardcode_libdir_flag_spec='-L$libdir' | 340 | case "$host_cpu" in |
320 | hardcode_minus_L=yes | 341 | powerpc) |
321 | # see comment about different semantics on the GNU ld section | 342 | ;; |
322 | ld_shlibs=no | 343 | m68k) |
344 | hardcode_libdir_flag_spec='-L$libdir' | ||
345 | hardcode_minus_L=yes | ||
346 | ;; | ||
347 | esac | ||
323 | ;; | 348 | ;; |
324 | bsdi[45]*) | 349 | bsdi[45]*) |
325 | ;; | 350 | ;; |
326 | cygwin* | mingw* | pw32*) | 351 | cygwin* | mingw* | pw32* | cegcc*) |
327 | # When not using gcc, we currently assume that we are using | 352 | # When not using gcc, we currently assume that we are using |
328 | # Microsoft Visual C++. | 353 | # Microsoft Visual C++. |
329 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 354 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
@@ -333,33 +358,20 @@ else | |||
333 | ;; | 358 | ;; |
334 | darwin* | rhapsody*) | 359 | darwin* | rhapsody*) |
335 | hardcode_direct=no | 360 | hardcode_direct=no |
336 | if test "$GCC" = yes ; then | 361 | if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then |
337 | : | 362 | : |
338 | else | 363 | else |
339 | case $cc_basename in | 364 | ld_shlibs=no |
340 | xlc*) | ||
341 | ;; | ||
342 | *) | ||
343 | ld_shlibs=no | ||
344 | ;; | ||
345 | esac | ||
346 | fi | 365 | fi |
347 | ;; | 366 | ;; |
348 | dgux*) | 367 | dgux*) |
349 | hardcode_libdir_flag_spec='-L$libdir' | 368 | hardcode_libdir_flag_spec='-L$libdir' |
350 | ;; | 369 | ;; |
351 | freebsd1*) | 370 | freebsd2.[01]*) |
352 | ld_shlibs=no | ||
353 | ;; | ||
354 | freebsd2.2*) | ||
355 | hardcode_libdir_flag_spec='-R$libdir' | ||
356 | hardcode_direct=yes | ||
357 | ;; | ||
358 | freebsd2*) | ||
359 | hardcode_direct=yes | 371 | hardcode_direct=yes |
360 | hardcode_minus_L=yes | 372 | hardcode_minus_L=yes |
361 | ;; | 373 | ;; |
362 | freebsd* | kfreebsd*-gnu | dragonfly*) | 374 | freebsd* | dragonfly*) |
363 | hardcode_libdir_flag_spec='-R$libdir' | 375 | hardcode_libdir_flag_spec='-R$libdir' |
364 | hardcode_direct=yes | 376 | hardcode_direct=yes |
365 | ;; | 377 | ;; |
@@ -411,19 +423,25 @@ else | |||
411 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 423 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
412 | hardcode_libdir_separator=: | 424 | hardcode_libdir_separator=: |
413 | ;; | 425 | ;; |
426 | *nto* | *qnx*) | ||
427 | ;; | ||
414 | openbsd*) | 428 | openbsd*) |
415 | hardcode_direct=yes | 429 | if test -f /usr/libexec/ld.so; then |
416 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 430 | hardcode_direct=yes |
417 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 431 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
432 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
433 | else | ||
434 | case "$host_os" in | ||
435 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
436 | hardcode_libdir_flag_spec='-R$libdir' | ||
437 | ;; | ||
438 | *) | ||
439 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
440 | ;; | ||
441 | esac | ||
442 | fi | ||
418 | else | 443 | else |
419 | case "$host_os" in | 444 | ld_shlibs=no |
420 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
421 | hardcode_libdir_flag_spec='-R$libdir' | ||
422 | ;; | ||
423 | *) | ||
424 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
425 | ;; | ||
426 | esac | ||
427 | fi | 445 | fi |
428 | ;; | 446 | ;; |
429 | os2*) | 447 | os2*) |
@@ -471,7 +489,7 @@ else | |||
471 | ld_shlibs=yes | 489 | ld_shlibs=yes |
472 | fi | 490 | fi |
473 | ;; | 491 | ;; |
474 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | 492 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
475 | ;; | 493 | ;; |
476 | sysv5* | sco3.2v5* | sco5v6*) | 494 | sysv5* | sco3.2v5* | sco5v6*) |
477 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | 495 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
@@ -487,34 +505,56 @@ else | |||
487 | fi | 505 | fi |
488 | 506 | ||
489 | # Check dynamic linker characteristics | 507 | # Check dynamic linker characteristics |
490 | # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. | 508 | # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. |
509 | # Unlike libtool.m4, here we don't care about _all_ names of the library, but | ||
510 | # only about the one the linker finds when passed -lNAME. This is the last | ||
511 | # element of library_names_spec in libtool.m4, or possibly two of them if the | ||
512 | # linker has special search rules. | ||
513 | library_names_spec= # the last element of library_names_spec in libtool.m4 | ||
491 | libname_spec='lib$name' | 514 | libname_spec='lib$name' |
492 | case "$host_os" in | 515 | case "$host_os" in |
493 | aix3*) | 516 | aix3*) |
517 | library_names_spec='$libname.a' | ||
494 | ;; | 518 | ;; |
495 | aix4* | aix5*) | 519 | aix[4-9]*) |
520 | library_names_spec='$libname$shrext' | ||
496 | ;; | 521 | ;; |
497 | amigaos*) | 522 | amigaos*) |
523 | case "$host_cpu" in | ||
524 | powerpc*) | ||
525 | library_names_spec='$libname$shrext' ;; | ||
526 | m68k) | ||
527 | library_names_spec='$libname.a' ;; | ||
528 | esac | ||
498 | ;; | 529 | ;; |
499 | beos*) | 530 | beos*) |
531 | library_names_spec='$libname$shrext' | ||
500 | ;; | 532 | ;; |
501 | bsdi[45]*) | 533 | bsdi[45]*) |
534 | library_names_spec='$libname$shrext' | ||
502 | ;; | 535 | ;; |
503 | cygwin* | mingw* | pw32*) | 536 | cygwin* | mingw* | pw32* | cegcc*) |
504 | shrext=.dll | 537 | shrext=.dll |
538 | library_names_spec='$libname.dll.a $libname.lib' | ||
505 | ;; | 539 | ;; |
506 | darwin* | rhapsody*) | 540 | darwin* | rhapsody*) |
507 | shrext=.dylib | 541 | shrext=.dylib |
542 | library_names_spec='$libname$shrext' | ||
508 | ;; | 543 | ;; |
509 | dgux*) | 544 | dgux*) |
545 | library_names_spec='$libname$shrext' | ||
510 | ;; | 546 | ;; |
511 | freebsd1*) | 547 | freebsd[23].*) |
512 | ;; | 548 | library_names_spec='$libname$shrext$versuffix' |
513 | kfreebsd*-gnu) | ||
514 | ;; | 549 | ;; |
515 | freebsd* | dragonfly*) | 550 | freebsd* | dragonfly*) |
551 | library_names_spec='$libname$shrext' | ||
516 | ;; | 552 | ;; |
517 | gnu*) | 553 | gnu*) |
554 | library_names_spec='$libname$shrext' | ||
555 | ;; | ||
556 | haiku*) | ||
557 | library_names_spec='$libname$shrext' | ||
518 | ;; | 558 | ;; |
519 | hpux9* | hpux10* | hpux11*) | 559 | hpux9* | hpux10* | hpux11*) |
520 | case $host_cpu in | 560 | case $host_cpu in |
@@ -528,10 +568,13 @@ case "$host_os" in | |||
528 | shrext=.sl | 568 | shrext=.sl |
529 | ;; | 569 | ;; |
530 | esac | 570 | esac |
571 | library_names_spec='$libname$shrext' | ||
531 | ;; | 572 | ;; |
532 | interix3*) | 573 | interix[3-9]*) |
574 | library_names_spec='$libname$shrext' | ||
533 | ;; | 575 | ;; |
534 | irix5* | irix6* | nonstopux*) | 576 | irix5* | irix6* | nonstopux*) |
577 | library_names_spec='$libname$shrext' | ||
535 | case "$host_os" in | 578 | case "$host_os" in |
536 | irix5* | nonstopux*) | 579 | irix5* | nonstopux*) |
537 | libsuff= shlibsuff= | 580 | libsuff= shlibsuff= |
@@ -548,41 +591,62 @@ case "$host_os" in | |||
548 | ;; | 591 | ;; |
549 | linux*oldld* | linux*aout* | linux*coff*) | 592 | linux*oldld* | linux*aout* | linux*coff*) |
550 | ;; | 593 | ;; |
551 | linux*) | 594 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
595 | library_names_spec='$libname$shrext' | ||
552 | ;; | 596 | ;; |
553 | knetbsd*-gnu) | 597 | knetbsd*-gnu) |
598 | library_names_spec='$libname$shrext' | ||
554 | ;; | 599 | ;; |
555 | netbsd*) | 600 | netbsd*) |
601 | library_names_spec='$libname$shrext' | ||
556 | ;; | 602 | ;; |
557 | newsos6) | 603 | newsos6) |
604 | library_names_spec='$libname$shrext' | ||
558 | ;; | 605 | ;; |
559 | nto-qnx*) | 606 | *nto* | *qnx*) |
607 | library_names_spec='$libname$shrext' | ||
560 | ;; | 608 | ;; |
561 | openbsd*) | 609 | openbsd*) |
610 | library_names_spec='$libname$shrext$versuffix' | ||
562 | ;; | 611 | ;; |
563 | os2*) | 612 | os2*) |
564 | libname_spec='$name' | 613 | libname_spec='$name' |
565 | shrext=.dll | 614 | shrext=.dll |
615 | library_names_spec='$libname.a' | ||
566 | ;; | 616 | ;; |
567 | osf3* | osf4* | osf5*) | 617 | osf3* | osf4* | osf5*) |
618 | library_names_spec='$libname$shrext' | ||
619 | ;; | ||
620 | rdos*) | ||
568 | ;; | 621 | ;; |
569 | solaris*) | 622 | solaris*) |
623 | library_names_spec='$libname$shrext' | ||
570 | ;; | 624 | ;; |
571 | sunos4*) | 625 | sunos4*) |
626 | library_names_spec='$libname$shrext$versuffix' | ||
572 | ;; | 627 | ;; |
573 | sysv4 | sysv4.3*) | 628 | sysv4 | sysv4.3*) |
629 | library_names_spec='$libname$shrext' | ||
574 | ;; | 630 | ;; |
575 | sysv4*MP*) | 631 | sysv4*MP*) |
632 | library_names_spec='$libname$shrext' | ||
576 | ;; | 633 | ;; |
577 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 634 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
635 | library_names_spec='$libname$shrext' | ||
636 | ;; | ||
637 | tpf*) | ||
638 | library_names_spec='$libname$shrext' | ||
578 | ;; | 639 | ;; |
579 | uts4*) | 640 | uts4*) |
641 | library_names_spec='$libname$shrext' | ||
580 | ;; | 642 | ;; |
581 | esac | 643 | esac |
582 | 644 | ||
583 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | 645 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
584 | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` | 646 | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` |
585 | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` | 647 | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` |
648 | escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
649 | escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
586 | escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | 650 | escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` |
587 | 651 | ||
588 | LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF | 652 | LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF |
@@ -596,6 +660,12 @@ libext="$libext" | |||
596 | # Shared library suffix (normally "so"). | 660 | # Shared library suffix (normally "so"). |
597 | shlibext="$shlibext" | 661 | shlibext="$shlibext" |
598 | 662 | ||
663 | # Format of library name prefix. | ||
664 | libname_spec="$escaped_libname_spec" | ||
665 | |||
666 | # Library names that the linker finds when passed -lNAME. | ||
667 | library_names_spec="$escaped_library_names_spec" | ||
668 | |||
599 | # Flag to hardcode \$libdir into a binary during linking. | 669 | # Flag to hardcode \$libdir into a binary during linking. |
600 | # This must work even if \$libdir does not exist. | 670 | # This must work even if \$libdir does not exist. |
601 | hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" | 671 | hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" |