diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-08 09:04:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-08 09:04:33 +0000 |
commit | bef62afd1d9ba22c41bf2ccb9dbff320e66790a6 (patch) | |
tree | b7d3b8060755a0a221e2968bd096fdf85c2651cb /config.rpath | |
parent | 49210e38b06a2e611cf506c1c2744eb431cd33cb (diff) | |
download | libextractor-bef62afd1d9ba22c41bf2ccb9dbff320e66790a6.tar.gz libextractor-bef62afd1d9ba22c41bf2ccb9dbff320e66790a6.zip |
infrastructure updates
Diffstat (limited to 'config.rpath')
-rwxr-xr-x | config.rpath | 228 |
1 files changed, 152 insertions, 76 deletions
diff --git a/config.rpath b/config.rpath index c492a93..1a07018 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-2012 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*) |
80 | wl='-Wl,' | 71 | wl='-Wl,' |
81 | ;; | 72 | ;; |
82 | pgcc | pgf77 | pgf90) | 73 | icc* | ifort*) |
74 | wl='-Wl,' | ||
75 | ;; | ||
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,24 +358,15 @@ 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*) | ||
352 | ld_shlibs=no | ||
353 | ;; | ||
354 | freebsd2.2*) | 370 | freebsd2.2*) |
355 | hardcode_libdir_flag_spec='-R$libdir' | 371 | hardcode_libdir_flag_spec='-R$libdir' |
356 | hardcode_direct=yes | 372 | hardcode_direct=yes |
@@ -359,7 +375,7 @@ else | |||
359 | hardcode_direct=yes | 375 | hardcode_direct=yes |
360 | hardcode_minus_L=yes | 376 | hardcode_minus_L=yes |
361 | ;; | 377 | ;; |
362 | freebsd* | kfreebsd*-gnu | dragonfly*) | 378 | freebsd* | dragonfly*) |
363 | hardcode_libdir_flag_spec='-R$libdir' | 379 | hardcode_libdir_flag_spec='-R$libdir' |
364 | hardcode_direct=yes | 380 | hardcode_direct=yes |
365 | ;; | 381 | ;; |
@@ -411,19 +427,25 @@ else | |||
411 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 427 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
412 | hardcode_libdir_separator=: | 428 | hardcode_libdir_separator=: |
413 | ;; | 429 | ;; |
430 | *nto* | *qnx*) | ||
431 | ;; | ||
414 | openbsd*) | 432 | openbsd*) |
415 | hardcode_direct=yes | 433 | 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 | 434 | hardcode_direct=yes |
417 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 435 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
436 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
437 | else | ||
438 | case "$host_os" in | ||
439 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
440 | hardcode_libdir_flag_spec='-R$libdir' | ||
441 | ;; | ||
442 | *) | ||
443 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
444 | ;; | ||
445 | esac | ||
446 | fi | ||
418 | else | 447 | else |
419 | case "$host_os" in | 448 | 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 | 449 | fi |
428 | ;; | 450 | ;; |
429 | os2*) | 451 | os2*) |
@@ -471,7 +493,7 @@ else | |||
471 | ld_shlibs=yes | 493 | ld_shlibs=yes |
472 | fi | 494 | fi |
473 | ;; | 495 | ;; |
474 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | 496 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
475 | ;; | 497 | ;; |
476 | sysv5* | sco3.2v5* | sco5v6*) | 498 | sysv5* | sco3.2v5* | sco5v6*) |
477 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | 499 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
@@ -487,34 +509,58 @@ else | |||
487 | fi | 509 | fi |
488 | 510 | ||
489 | # Check dynamic linker characteristics | 511 | # Check dynamic linker characteristics |
490 | # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. | 512 | # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. |
513 | # Unlike libtool.m4, here we don't care about _all_ names of the library, but | ||
514 | # only about the one the linker finds when passed -lNAME. This is the last | ||
515 | # element of library_names_spec in libtool.m4, or possibly two of them if the | ||
516 | # linker has special search rules. | ||
517 | library_names_spec= # the last element of library_names_spec in libtool.m4 | ||
491 | libname_spec='lib$name' | 518 | libname_spec='lib$name' |
492 | case "$host_os" in | 519 | case "$host_os" in |
493 | aix3*) | 520 | aix3*) |
521 | library_names_spec='$libname.a' | ||
494 | ;; | 522 | ;; |
495 | aix4* | aix5*) | 523 | aix[4-9]*) |
524 | library_names_spec='$libname$shrext' | ||
496 | ;; | 525 | ;; |
497 | amigaos*) | 526 | amigaos*) |
527 | case "$host_cpu" in | ||
528 | powerpc*) | ||
529 | library_names_spec='$libname$shrext' ;; | ||
530 | m68k) | ||
531 | library_names_spec='$libname.a' ;; | ||
532 | esac | ||
498 | ;; | 533 | ;; |
499 | beos*) | 534 | beos*) |
535 | library_names_spec='$libname$shrext' | ||
500 | ;; | 536 | ;; |
501 | bsdi[45]*) | 537 | bsdi[45]*) |
538 | library_names_spec='$libname$shrext' | ||
502 | ;; | 539 | ;; |
503 | cygwin* | mingw* | pw32*) | 540 | cygwin* | mingw* | pw32* | cegcc*) |
504 | shrext=.dll | 541 | shrext=.dll |
542 | library_names_spec='$libname.dll.a $libname.lib' | ||
505 | ;; | 543 | ;; |
506 | darwin* | rhapsody*) | 544 | darwin* | rhapsody*) |
507 | shrext=.dylib | 545 | shrext=.dylib |
546 | library_names_spec='$libname$shrext' | ||
508 | ;; | 547 | ;; |
509 | dgux*) | 548 | dgux*) |
510 | ;; | 549 | library_names_spec='$libname$shrext' |
511 | freebsd1*) | ||
512 | ;; | ||
513 | kfreebsd*-gnu) | ||
514 | ;; | 550 | ;; |
515 | freebsd* | dragonfly*) | 551 | freebsd* | dragonfly*) |
552 | case "$host_os" in | ||
553 | freebsd[123]*) | ||
554 | library_names_spec='$libname$shrext$versuffix' ;; | ||
555 | *) | ||
556 | library_names_spec='$libname$shrext' ;; | ||
557 | esac | ||
516 | ;; | 558 | ;; |
517 | gnu*) | 559 | gnu*) |
560 | library_names_spec='$libname$shrext' | ||
561 | ;; | ||
562 | haiku*) | ||
563 | library_names_spec='$libname$shrext' | ||
518 | ;; | 564 | ;; |
519 | hpux9* | hpux10* | hpux11*) | 565 | hpux9* | hpux10* | hpux11*) |
520 | case $host_cpu in | 566 | case $host_cpu in |
@@ -528,10 +574,13 @@ case "$host_os" in | |||
528 | shrext=.sl | 574 | shrext=.sl |
529 | ;; | 575 | ;; |
530 | esac | 576 | esac |
577 | library_names_spec='$libname$shrext' | ||
531 | ;; | 578 | ;; |
532 | interix3*) | 579 | interix[3-9]*) |
580 | library_names_spec='$libname$shrext' | ||
533 | ;; | 581 | ;; |
534 | irix5* | irix6* | nonstopux*) | 582 | irix5* | irix6* | nonstopux*) |
583 | library_names_spec='$libname$shrext' | ||
535 | case "$host_os" in | 584 | case "$host_os" in |
536 | irix5* | nonstopux*) | 585 | irix5* | nonstopux*) |
537 | libsuff= shlibsuff= | 586 | libsuff= shlibsuff= |
@@ -548,41 +597,62 @@ case "$host_os" in | |||
548 | ;; | 597 | ;; |
549 | linux*oldld* | linux*aout* | linux*coff*) | 598 | linux*oldld* | linux*aout* | linux*coff*) |
550 | ;; | 599 | ;; |
551 | linux*) | 600 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
601 | library_names_spec='$libname$shrext' | ||
552 | ;; | 602 | ;; |
553 | knetbsd*-gnu) | 603 | knetbsd*-gnu) |
604 | library_names_spec='$libname$shrext' | ||
554 | ;; | 605 | ;; |
555 | netbsd*) | 606 | netbsd*) |
607 | library_names_spec='$libname$shrext' | ||
556 | ;; | 608 | ;; |
557 | newsos6) | 609 | newsos6) |
610 | library_names_spec='$libname$shrext' | ||
558 | ;; | 611 | ;; |
559 | nto-qnx*) | 612 | *nto* | *qnx*) |
613 | library_names_spec='$libname$shrext' | ||
560 | ;; | 614 | ;; |
561 | openbsd*) | 615 | openbsd*) |
616 | library_names_spec='$libname$shrext$versuffix' | ||
562 | ;; | 617 | ;; |
563 | os2*) | 618 | os2*) |
564 | libname_spec='$name' | 619 | libname_spec='$name' |
565 | shrext=.dll | 620 | shrext=.dll |
621 | library_names_spec='$libname.a' | ||
566 | ;; | 622 | ;; |
567 | osf3* | osf4* | osf5*) | 623 | osf3* | osf4* | osf5*) |
624 | library_names_spec='$libname$shrext' | ||
625 | ;; | ||
626 | rdos*) | ||
568 | ;; | 627 | ;; |
569 | solaris*) | 628 | solaris*) |
629 | library_names_spec='$libname$shrext' | ||
570 | ;; | 630 | ;; |
571 | sunos4*) | 631 | sunos4*) |
632 | library_names_spec='$libname$shrext$versuffix' | ||
572 | ;; | 633 | ;; |
573 | sysv4 | sysv4.3*) | 634 | sysv4 | sysv4.3*) |
635 | library_names_spec='$libname$shrext' | ||
574 | ;; | 636 | ;; |
575 | sysv4*MP*) | 637 | sysv4*MP*) |
638 | library_names_spec='$libname$shrext' | ||
576 | ;; | 639 | ;; |
577 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 640 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
641 | library_names_spec='$libname$shrext' | ||
642 | ;; | ||
643 | tpf*) | ||
644 | library_names_spec='$libname$shrext' | ||
578 | ;; | 645 | ;; |
579 | uts4*) | 646 | uts4*) |
647 | library_names_spec='$libname$shrext' | ||
580 | ;; | 648 | ;; |
581 | esac | 649 | esac |
582 | 650 | ||
583 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | 651 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
584 | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` | 652 | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` |
585 | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` | 653 | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` |
654 | escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
655 | 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"` | 656 | escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` |
587 | 657 | ||
588 | LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF | 658 | LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF |
@@ -596,6 +666,12 @@ libext="$libext" | |||
596 | # Shared library suffix (normally "so"). | 666 | # Shared library suffix (normally "so"). |
597 | shlibext="$shlibext" | 667 | shlibext="$shlibext" |
598 | 668 | ||
669 | # Format of library name prefix. | ||
670 | libname_spec="$escaped_libname_spec" | ||
671 | |||
672 | # Library names that the linker finds when passed -lNAME. | ||
673 | library_names_spec="$escaped_library_names_spec" | ||
674 | |||
599 | # Flag to hardcode \$libdir into a binary during linking. | 675 | # Flag to hardcode \$libdir into a binary during linking. |
600 | # This must work even if \$libdir does not exist. | 676 | # This must work even if \$libdir does not exist. |
601 | hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" | 677 | hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" |