Mercurial > SDL_sound_CoreAudio
annotate acinclude.m4 @ 446:ce8937e44e7a
Updated.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 10 Mar 2003 22:44:59 +0000 |
parents | 6d94441c854e |
children | 75819e5c59d4 |
rev | line source |
---|---|
68 | 1 # Configure paths for SDL |
2 # Sam Lantinga 9/21/99 | |
3 # stolen from Manish Singh | |
4 # stolen back from Frank Belew | |
5 # stolen from Manish Singh | |
6 # Shamelessly stolen from Owen Taylor | |
7 | |
8 dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) | |
9 dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS | |
10 dnl | |
11 AC_DEFUN(AM_PATH_SDL, | |
12 [dnl | |
13 dnl Get the cflags and libraries from the sdl-config script | |
14 dnl | |
15 AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)], | |
16 sdl_prefix="$withval", sdl_prefix="") | |
17 AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)], | |
18 sdl_exec_prefix="$withval", sdl_exec_prefix="") | |
19 AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program], | |
20 , enable_sdltest=yes) | |
21 | |
22 if test x$sdl_exec_prefix != x ; then | |
23 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
24 if test x${SDL_CONFIG+set} != xset ; then | |
25 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
26 fi | |
27 fi | |
28 if test x$sdl_prefix != x ; then | |
29 sdl_args="$sdl_args --prefix=$sdl_prefix" | |
30 if test x${SDL_CONFIG+set} != xset ; then | |
31 SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
32 fi | |
33 fi | |
34 | |
35 AC_PATH_PROG(SDL_CONFIG, sdl-config, no) | |
36 min_sdl_version=ifelse([$1], ,0.11.0,$1) | |
37 AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) | |
38 no_sdl="" | |
39 if test "$SDL_CONFIG" = "no" ; then | |
40 no_sdl=yes | |
41 else | |
42 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
43 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
44 | |
45 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
46 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | |
47 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
48 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | |
49 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
50 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | |
51 if test "x$enable_sdltest" = "xyes" ; then | |
52 ac_save_CFLAGS="$CFLAGS" | |
53 ac_save_LIBS="$LIBS" | |
54 CFLAGS="$CFLAGS $SDL_CFLAGS" | |
55 LIBS="$LIBS $SDL_LIBS" | |
56 dnl | |
57 dnl Now check if the installed SDL is sufficiently new. (Also sanity | |
58 dnl checks the results of sdl-config to some extent | |
59 dnl | |
60 rm -f conf.sdltest | |
61 AC_TRY_RUN([ | |
62 #include <stdio.h> | |
63 #include <stdlib.h> | |
64 #include <string.h> | |
65 #include "SDL.h" | |
66 | |
67 char* | |
68 my_strdup (char *str) | |
69 { | |
70 char *new_str; | |
71 | |
72 if (str) | |
73 { | |
74 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
75 strcpy (new_str, str); | |
76 } | |
77 else | |
78 new_str = NULL; | |
79 | |
80 return new_str; | |
81 } | |
82 | |
83 int main (int argc, char *argv[]) | |
84 { | |
85 int major, minor, micro; | |
86 char *tmp_version; | |
87 | |
88 /* This hangs on some systems (?) | |
89 system ("touch conf.sdltest"); | |
90 */ | |
91 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
92 | |
93 /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
94 tmp_version = my_strdup("$min_sdl_version"); | |
95 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
96 printf("%s, bad version string\n", "$min_sdl_version"); | |
97 exit(1); | |
98 } | |
99 | |
100 if (($sdl_major_version > major) || | |
101 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
102 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
103 { | |
104 return 0; | |
105 } | |
106 else | |
107 { | |
108 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
109 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
110 printf("*** best to upgrade to the required version.\n"); | |
111 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
112 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
113 printf("*** config.cache before re-running configure\n"); | |
114 return 1; | |
115 } | |
116 } | |
117 | |
118 ],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | |
119 CFLAGS="$ac_save_CFLAGS" | |
120 LIBS="$ac_save_LIBS" | |
121 fi | |
122 fi | |
123 if test "x$no_sdl" = x ; then | |
124 AC_MSG_RESULT(yes) | |
125 ifelse([$2], , :, [$2]) | |
126 else | |
127 AC_MSG_RESULT(no) | |
128 if test "$SDL_CONFIG" = "no" ; then | |
129 echo "*** The sdl-config script installed by SDL could not be found" | |
130 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
131 echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
132 echo "*** full path to sdl-config." | |
133 else | |
134 if test -f conf.sdltest ; then | |
135 : | |
136 else | |
137 echo "*** Could not run SDL test program, checking why..." | |
138 CFLAGS="$CFLAGS $SDL_CFLAGS" | |
139 LIBS="$LIBS $SDL_LIBS" | |
140 AC_TRY_LINK([ | |
141 #include <stdio.h> | |
142 #include "SDL.h" | |
143 | |
144 int main(int argc, char *argv[]) | |
145 { return 0; } | |
146 #undef main | |
147 #define main K_and_R_C_main | |
148 ], [ return 0; ], | |
149 [ echo "*** The test program compiled, but did not run. This usually means" | |
150 echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
151 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
152 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
153 echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
154 echo "*** is required on your system" | |
155 echo "***" | |
156 echo "*** If you have an old version installed, it is best to remove it, although" | |
157 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], | |
158 [ echo "*** The test program failed to compile or link. See the file config.log for the" | |
159 echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
160 echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
161 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ]) | |
162 CFLAGS="$ac_save_CFLAGS" | |
163 LIBS="$ac_save_LIBS" | |
164 fi | |
165 fi | |
166 SDL_CFLAGS="" | |
167 SDL_LIBS="" | |
168 ifelse([$3], , :, [$3]) | |
169 fi | |
170 AC_SUBST(SDL_CFLAGS) | |
171 AC_SUBST(SDL_LIBS) | |
172 rm -f conf.sdltest | |
173 ]) | |
174 # Configure paths for libmikmod | |
175 # | |
176 # Derived from glib.m4 (Owen Taylor 97-11-3) | |
177 # Improved by Chris Butler | |
178 # | |
179 | |
180 dnl AM_PATH_LIBMIKMOD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) | |
181 dnl Test for libmikmod, and define LIBMIKMOD_CFLAGS, LIBMIKMOD_LIBS and | |
182 dnl LIBMIKMOD_LDADD | |
183 dnl | |
184 AC_DEFUN(AM_PATH_LIBMIKMOD, | |
185 [dnl | |
186 dnl Get the cflags and libraries from the libmikmod-config script | |
187 dnl | |
188 AC_ARG_WITH(libmikmod-prefix,[ --with-libmikmod-prefix=PFX Prefix where libmikmod is installed (optional)], | |
189 libmikmod_config_prefix="$withval", libmikmod_config_prefix="") | |
190 AC_ARG_WITH(libmikmod-exec-prefix,[ --with-libmikmod-exec-prefix=PFX Exec prefix where libmikmod is installed (optional)], | |
191 libmikmod_config_exec_prefix="$withval", libmikmod_config_exec_prefix="") | |
192 AC_ARG_ENABLE(libmikmodtest, [ --disable-libmikmodtest Do not try to compile and run a test libmikmod program], | |
193 , enable_libmikmodtest=yes) | |
194 | |
195 if test x$libmikmod_config_exec_prefix != x ; then | |
196 libmikmod_config_args="$libmikmod_config_args --exec-prefix=$libmikmod_config_exec_prefix" | |
197 if test x${LIBMIKMOD_CONFIG+set} != xset ; then | |
198 LIBMIKMOD_CONFIG=$libmikmod_config_exec_prefix/bin/libmikmod-config | |
199 fi | |
200 fi | |
201 if test x$libmikmod_config_prefix != x ; then | |
202 libmikmod_config_args="$libmikmod_config_args --prefix=$libmikmod_config_prefix" | |
203 if test x${LIBMIKMOD_CONFIG+set} != xset ; then | |
204 LIBMIKMOD_CONFIG=$libmikmod_config_prefix/bin/libmikmod-config | |
205 fi | |
206 fi | |
207 | |
208 AC_PATH_PROG(LIBMIKMOD_CONFIG, libmikmod-config, no) | |
209 min_libmikmod_version=ifelse([$1], ,3.1.5,$1) | |
210 AC_MSG_CHECKING(for libmikmod - version >= $min_libmikmod_version) | |
211 no_libmikmod="" | |
212 if test "$LIBMIKMOD_CONFIG" = "no" ; then | |
213 no_libmikmod=yes | |
214 else | |
215 LIBMIKMOD_CFLAGS=`$LIBMIKMOD_CONFIG $libmikmod_config_args --cflags` | |
216 LIBMIKMOD_LIBS=`$LIBMIKMOD_CONFIG $libmikmod_config_args --libs` | |
217 LIBMIKMOD_LDADD=`$LIBMIKMOD_CONFIG $libmikmod_config_args --ldadd` | |
218 libmikmod_config_major_version=`$LIBMIKMOD_CONFIG $libmikmod_config_args --version | \ | |
219 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\1/'` | |
220 libmikmod_config_minor_version=`$LIBMIKMOD_CONFIG $libmikmod_config_args --version | \ | |
221 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\2/'` | |
222 libmikmod_config_micro_version=`$LIBMIKMOD_CONFIG $libmikmod_config_args --version | \ | |
223 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\3/'` | |
224 if test "x$enable_libmikmodtest" = "xyes" ; then | |
225 ac_save_CFLAGS="$CFLAGS" | |
226 ac_save_LIBS="$LIBS" | |
227 AC_LANG_SAVE | |
228 AC_LANG_C | |
229 CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS $LIBMIKMOD_LDADD" | |
230 LIBS="$LIBMIKMOD_LIBS $LIBS" | |
231 dnl | |
232 dnl Now check if the installed libmikmod is sufficiently new. (Also sanity | |
233 dnl checks the results of libmikmod-config to some extent | |
234 dnl | |
235 rm -f conf.mikmodtest | |
236 AC_TRY_RUN([ | |
237 #include <mikmod.h> | |
238 #include <stdio.h> | |
239 #include <stdlib.h> | |
240 | |
241 char* my_strdup (char *str) | |
242 { | |
243 char *new_str; | |
244 | |
245 if (str) { | |
246 new_str = malloc ((strlen (str) + 1) * sizeof(char)); | |
247 strcpy (new_str, str); | |
248 } else | |
249 new_str = NULL; | |
250 | |
251 return new_str; | |
252 } | |
253 | |
254 int main() | |
255 { | |
256 int major,minor,micro; | |
257 int libmikmod_major_version,libmikmod_minor_version,libmikmod_micro_version; | |
258 char *tmp_version; | |
259 | |
260 system("touch conf.mikmodtest"); | |
261 | |
262 /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
263 tmp_version = my_strdup("$min_libmikmod_version"); | |
264 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
265 printf("%s, bad version string\n", "$min_libmikmod_version"); | |
266 exit(1); | |
267 } | |
268 | |
269 libmikmod_major_version=(MikMod_GetVersion() >> 16) & 255; | |
270 libmikmod_minor_version=(MikMod_GetVersion() >> 8) & 255; | |
271 libmikmod_micro_version=(MikMod_GetVersion() ) & 255; | |
272 | |
273 if ((libmikmod_major_version != $libmikmod_config_major_version) || | |
274 (libmikmod_minor_version != $libmikmod_config_minor_version) || | |
275 (libmikmod_micro_version != $libmikmod_config_micro_version)) | |
276 { | |
277 printf("\n*** 'libmikmod-config --version' returned %d.%d.%d, but libmikmod (%d.%d.%d)\n", | |
278 $libmikmod_config_major_version, $libmikmod_config_minor_version, $libmikmod_config_micro_version, | |
279 libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version); | |
280 printf ("*** was found! If libmikmod-config was correct, then it is best\n"); | |
281 printf ("*** to remove the old version of libmikmod. You may also be able to fix the error\n"); | |
282 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
283 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
284 printf("*** required on your system.\n"); | |
285 printf("*** If libmikmod-config was wrong, set the environment variable LIBMIKMOD_CONFIG\n"); | |
286 printf("*** to point to the correct copy of libmikmod-config, and remove the file config.cache\n"); | |
287 printf("*** before re-running configure\n"); | |
288 } | |
289 else if ((libmikmod_major_version != LIBMIKMOD_VERSION_MAJOR) || | |
290 (libmikmod_minor_version != LIBMIKMOD_VERSION_MINOR) || | |
291 (libmikmod_micro_version != LIBMIKMOD_REVISION)) | |
292 { | |
293 printf("*** libmikmod header files (version %d.%d.%d) do not match\n", | |
294 LIBMIKMOD_VERSION_MAJOR, LIBMIKMOD_VERSION_MINOR, LIBMIKMOD_REVISION); | |
295 printf("*** library (version %d.%d.%d)\n", | |
296 libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version); | |
297 } | |
298 else | |
299 { | |
300 if ((libmikmod_major_version > major) || | |
301 ((libmikmod_major_version == major) && (libmikmod_minor_version > minor)) || | |
302 ((libmikmod_major_version == major) && (libmikmod_minor_version == minor) && (libmikmod_micro_version >= micro))) | |
303 { | |
304 return 0; | |
305 } | |
306 else | |
307 { | |
308 printf("\n*** An old version of libmikmod (%d.%d.%d) was found.\n", | |
309 libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version); | |
310 printf("*** You need a version of libmikmod newer than %d.%d.%d.\n", | |
311 major, minor, micro); | |
312 printf("***\n"); | |
313 printf("*** If you have already installed a sufficiently new version, this error\n"); | |
314 printf("*** probably means that the wrong copy of the libmikmod-config shell script is\n"); | |
315 printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
316 printf("*** of libmikmod, but you can also set the LIBMIKMOD_CONFIG environment to point to the\n"); | |
317 printf("*** correct copy of libmikmod-config. (In this case, you will have to\n"); | |
318 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
319 printf("*** so that the correct libraries are found at run-time))\n"); | |
320 } | |
321 } | |
322 return 1; | |
323 } | |
324 ],, no_libmikmod=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | |
325 CFLAGS="$ac_save_CFLAGS" | |
326 LIBS="$ac_save_LIBS" | |
327 AC_LANG_RESTORE | |
328 fi | |
329 fi | |
330 if test "x$no_libmikmod" = x ; then | |
331 AC_MSG_RESULT([yes, `$LIBMIKMOD_CONFIG --version`]) | |
332 ifelse([$2], , :, [$2]) | |
333 else | |
334 AC_MSG_RESULT(no) | |
335 if test "$LIBMIKMOD_CONFIG" = "no" ; then | |
336 echo "*** The libmikmod-config script installed by libmikmod could not be found" | |
337 echo "*** If libmikmod was installed in PREFIX, make sure PREFIX/bin is in" | |
338 echo "*** your path, or set the LIBMIKMOD_CONFIG environment variable to the" | |
339 echo "*** full path to libmikmod-config." | |
340 else | |
341 if test -f conf.mikmodtest ; then | |
342 : | |
343 else | |
344 echo "*** Could not run libmikmod test program, checking why..." | |
345 CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS" | |
346 LIBS="$LIBS $LIBMIKMOD_LIBS" | |
347 AC_LANG_SAVE | |
348 AC_LANG_C | |
349 AC_TRY_LINK([ | |
350 #include <mikmod.h> | |
351 #include <stdio.h> | |
352 ], [ return (MikMod_GetVersion()!=0); ], | |
353 [ echo "*** The test program compiled, but did not run. This usually means" | |
354 echo "*** that the run-time linker is not finding libmikmod or finding the wrong" | |
355 echo "*** version of libmikmod. If it is not finding libmikmod, you'll need to set your" | |
356 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
357 echo "*** to the installed location. Also, make sure you have run ldconfig if that" | |
358 echo "*** is required on your system." | |
359 echo "***" | |
360 echo "*** If you have an old version installed, it is best to remove it, although" | |
361 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], | |
362 [ echo "*** The test program failed to compile or link. See the file config.log for the" | |
363 echo "*** exact error that occured. This usually means libmikmod was incorrectly installed" | |
364 echo "*** or that you have moved libmikmod since it was installed. In the latter case, you" | |
365 echo "*** may want to edit the libmikmod-config script: $LIBMIKMOD_CONFIG" ]) | |
366 CFLAGS="$ac_save_CFLAGS" | |
367 LIBS="$ac_save_LIBS" | |
368 AC_LANG_RESTORE | |
369 fi | |
370 fi | |
371 LIBMIKMOD_CFLAGS="" | |
372 LIBMIKMOD_LIBS="" | |
373 LIBMIKMOD_LDADD="" | |
374 ifelse([$3], , :, [$3]) | |
375 fi | |
376 AC_SUBST(LIBMIKMOD_CFLAGS) | |
377 AC_SUBST(LIBMIKMOD_LIBS) | |
378 AC_SUBST(LIBMIKMOD_LDADD) | |
379 rm -f conf.mikmodtest | |
380 ]) | |
381 # Configure paths for libvorbis | |
382 # Jack Moffitt <jack@icecast.org> 10-21-2000 | |
383 # Shamelessly stolen from Owen Taylor and Manish Singh | |
384 | |
385 dnl AM_PATH_VORBIS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) | |
386 dnl Test for libvorbis, and define VORBIS_CFLAGS and VORBIS_LIBS | |
387 dnl | |
388 AC_DEFUN(AM_PATH_VORBIS, | |
389 [dnl | |
390 dnl Get the cflags and libraries | |
391 dnl | |
392 AC_ARG_WITH(vorbis-prefix,[ --with-vorbis-prefix=PFX Prefix where libvorbis is installed (optional)], vorbis_prefix="$withval", vorbis_prefix="") | |
393 AC_ARG_ENABLE(vorbistest, [ --disable-vorbistest Do not try to compile and run a test Vorbis program],, enable_vorbistest=yes) | |
394 | |
395 if test x$vorbis_prefix != x ; then | |
396 vorbis_args="$vorbis_args --prefix=$vorbis_prefix" | |
397 VORBIS_CFLAGS="-I$vorbis_prefix/include" | |
398 VORBIS_LIBDIR="-L$vorbis_prefix/lib" | |
399 fi | |
400 | |
401 VORBIS_LIBS="$VORBIS_LIBDIR -lvorbis -lm" | |
402 VORBISFILE_LIBS="-lvorbisfile" | |
403 VORBISENC_LIBS="-lvorbisenc" | |
404 | |
405 AC_MSG_CHECKING(for Vorbis) | |
406 no_vorbis="" | |
407 | |
408 | |
409 if test "x$enable_vorbistest" = "xyes" ; then | |
410 ac_save_CFLAGS="$CFLAGS" | |
411 ac_save_LIBS="$LIBS" | |
412 CFLAGS="$CFLAGS $VORBIS_CFLAGS" | |
413 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS" | |
414 dnl | |
415 dnl Now check if the installed Vorbis is sufficiently new. | |
416 dnl | |
417 rm -f conf.vorbistest | |
418 AC_TRY_RUN([ | |
419 #include <stdio.h> | |
420 #include <stdlib.h> | |
421 #include <string.h> | |
422 #include <vorbis/codec.h> | |
423 | |
424 int main () | |
425 { | |
426 system("touch conf.vorbistest"); | |
427 return 0; | |
428 } | |
429 | |
430 ],, no_vorbis=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | |
431 CFLAGS="$ac_save_CFLAGS" | |
432 LIBS="$ac_save_LIBS" | |
433 fi | |
434 | |
435 if test "x$no_vorbis" = x ; then | |
436 AC_MSG_RESULT(yes) | |
437 ifelse([$1], , :, [$1]) | |
438 else | |
439 AC_MSG_RESULT(no) | |
440 if test -f conf.vorbistest ; then | |
441 : | |
442 else | |
443 echo "*** Could not run Vorbis test program, checking why..." | |
444 CFLAGS="$CFLAGS $VORBIS_CFLAGS" | |
445 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS" | |
446 AC_TRY_LINK([ | |
447 #include <stdio.h> | |
448 #include <vorbis/codec.h> | |
449 ], [ return 0; ], | |
450 [ echo "*** The test program compiled, but did not run. This usually means" | |
451 echo "*** that the run-time linker is not finding Vorbis or finding the wrong" | |
452 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your" | |
453 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
454 echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
455 echo "*** is required on your system" | |
456 echo "***" | |
457 echo "*** If you have an old version installed, it is best to remove it, although" | |
458 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], | |
459 [ echo "*** The test program failed to compile or link. See the file config.log for the" | |
460 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed" | |
461 echo "*** or that you have moved Vorbis since it was installed." ]) | |
462 CFLAGS="$ac_save_CFLAGS" | |
463 LIBS="$ac_save_LIBS" | |
464 fi | |
465 VORBIS_CFLAGS="" | |
466 VORBIS_LIBS="" | |
467 VORBISFILE_LIBS="" | |
468 VORBISENC_LIBS="" | |
469 ifelse([$2], , :, [$2]) | |
470 fi | |
471 AC_SUBST(VORBIS_CFLAGS) | |
472 AC_SUBST(VORBIS_LIBS) | |
473 AC_SUBST(VORBISFILE_LIBS) | |
474 AC_SUBST(VORBISENC_LIBS) | |
475 rm -f conf.vorbistest | |
476 ]) | |
477 # Configure paths for SMPEG | |
478 # Nicolas Vignal 11/19/2000 | |
479 # stolen from Sam Lantinga | |
480 # stolen from Manish Singh | |
481 # stolen back from Frank Belew | |
482 # stolen from Manish Singh | |
483 # Shamelessly stolen from Owen Taylor | |
484 | |
485 dnl AM_PATH_SMPEG([MINIMUM-VERSION, [ACTION-IF-FOUND [, | |
486 ACTION-IF-NOT-FOUND]]]) | |
487 dnl Test for SMPEG, and define SMPEG_CFLAGS and SMPEG_LIBS | |
488 dnl | |
489 AC_DEFUN(AM_PATH_SMPEG, | |
490 [dnl | |
491 dnl Get the cflags and libraries from the smpeg-config script | |
492 dnl | |
493 AC_ARG_WITH(smpeg-prefix,[ --with-smpeg-prefix=PFX Prefix where SMPEG is | |
494 installed (optional)], | |
495 smpeg_prefix="$withval", smpeg_prefix="") | |
496 AC_ARG_WITH(smpeg-exec-prefix,[ --with-smpeg-exec-prefix=PFX Exec prefix | |
497 where SMPEG is installed (optional)], | |
498 smpeg_exec_prefix="$withval", smpeg_exec_prefix="") | |
499 AC_ARG_ENABLE(smpegtest, [ --disable-smpegtest Do not try to compile | |
500 and run a test SMPEG program], | |
501 , enable_smpegtest=yes) | |
502 | |
503 if test x$smpeg_exec_prefix != x ; then | |
504 smpeg_args="$smpeg_args --exec-prefix=$smpeg_exec_prefix" | |
505 if test x${SMPEG_CONFIG+set} != xset ; then | |
506 SMPEG_CONFIG=$smpeg_exec_prefix/bin/smpeg-config | |
507 fi | |
508 fi | |
509 if test x$smpeg_prefix != x ; then | |
510 smpeg_args="$smpeg_args --prefix=$smpeg_prefix" | |
511 if test x${SMPEG_CONFIG+set} != xset ; then | |
512 SMPEG_CONFIG=$smpeg_prefix/bin/smpeg-config | |
513 fi | |
514 fi | |
515 | |
516 AC_PATH_PROG(SMPEG_CONFIG, smpeg-config, no) | |
517 min_smpeg_version=ifelse([$1], ,0.2.7,$1) | |
518 AC_MSG_CHECKING(for SMPEG - version >= $min_smpeg_version) | |
519 no_smpeg="" | |
520 if test "$SMPEG_CONFIG" = "no" ; then | |
521 no_smpeg=yes | |
522 else | |
523 SMPEG_CFLAGS=`$SMPEG_CONFIG $smpegconf_args --cflags` | |
524 SMPEG_LIBS=`$SMPEG_CONFIG $smpegconf_args --libs` | |
525 | |
526 smpeg_major_version=`$SMPEG_CONFIG $smpeg_args --version | \ | |
527 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | |
528 smpeg_minor_version=`$SMPEG_CONFIG $smpeg_args --version | \ | |
529 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | |
530 smpeg_micro_version=`$SMPEG_CONFIG $smpeg_config_args --version | \ | |
531 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | |
532 if test "x$enable_smpegtest" = "xyes" ; then | |
533 ac_save_CFLAGS="$CFLAGS" | |
534 ac_save_LIBS="$LIBS" | |
535 CFLAGS="$CFLAGS $SMPEG_CFLAGS $SDL_CFLAGS" | |
536 LIBS="$LIBS $SMPEG_LIBS $SDL_LIBS" | |
537 dnl | |
538 dnl Now check if the installed SMPEG is sufficiently new. (Also sanity | |
539 dnl checks the results of smpeg-config to some extent | |
540 dnl | |
541 rm -f conf.smpegtest | |
542 AC_TRY_RUN([ | |
543 #include <stdio.h> | |
544 #include <stdlib.h> | |
545 #include <string.h> | |
546 #include "smpeg.h" | |
547 | |
548 char* | |
549 my_strdup (char *str) | |
550 { | |
551 char *new_str; | |
552 | |
553 if (str) | |
554 { | |
555 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
556 strcpy (new_str, str); | |
557 } | |
558 else | |
559 new_str = NULL; | |
560 | |
561 return new_str; | |
562 } | |
563 | |
564 int main (int argc, char *argv[]) | |
565 { | |
566 int major, minor, micro; | |
567 char *tmp_version; | |
568 | |
569 /* This hangs on some systems (?) | |
570 system ("touch conf.smpegtest"); | |
571 */ | |
572 { FILE *fp = fopen("conf.smpegtest", "a"); if ( fp ) fclose(fp); } | |
573 | |
574 /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
575 tmp_version = my_strdup("$min_smpeg_version"); | |
576 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
577 printf("%s, bad version string\n", "$min_smpeg_version"); | |
578 exit(1); | |
579 } | |
580 | |
581 if (($smpeg_major_version > major) || | |
582 (($smpeg_major_version == major) && ($smpeg_minor_version > minor)) || | |
583 (($smpeg_major_version == major) && ($smpeg_minor_version == minor) | |
584 && ($smpeg_micro_version >= micro))) | |
585 { | |
586 return 0; | |
587 } | |
588 else | |
589 { | |
590 printf("\n*** 'smpeg-config --version' returned %d.%d.%d, but the | |
591 minimum version\n", $smpeg_major_version, $smpeg_minor_version, | |
592 $smpeg_micro_version); | |
593 printf("*** of SMPEG required is %d.%d.%d. If smpeg-config is | |
594 correct, then it is\n", major, minor, micro); | |
595 printf("*** best to upgrade to the required version.\n"); | |
596 printf("*** If smpeg-config was wrong, set the environment variable | |
597 SMPEG_CONFIG\n"); | |
598 printf("*** to point to the correct copy of smpeg-config, and remove | |
599 the file\n"); | |
600 printf("*** config.cache before re-running configure\n"); | |
601 return 1; | |
602 } | |
603 } | |
604 | |
605 ],, no_smpeg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | |
606 CFLAGS="$ac_save_CFLAGS" | |
607 LIBS="$ac_save_LIBS" | |
608 fi | |
609 fi | |
610 if test "x$no_smpeg" = x ; then | |
611 AC_MSG_RESULT(yes) | |
612 ifelse([$2], , :, [$2]) | |
613 else | |
614 AC_MSG_RESULT(no) | |
615 if test "$SMPEG_CONFIG" = "no" ; then | |
616 echo "*** The smpeg-config script installed by SMPEG could not be | |
617 found" | |
618 echo "*** If SMPEG was installed in PREFIX, make sure PREFIX/bin is | |
619 in" | |
620 echo "*** your path, or set the SMPEG_CONFIG environment variable to | |
621 the" | |
622 echo "*** full path to smpeg-config." | |
623 else | |
624 if test -f conf.smpegtest ; then | |
625 : | |
626 else | |
627 echo "*** Could not run SMPEG test program, checking why..." | |
628 CFLAGS="$CFLAGS $SMPEG_CFLAGS $SDL_CFLAGS" | |
629 LIBS="$LIBS $SMPEG_LIBS $SDL_LIBS" | |
630 AC_TRY_LINK([ | |
631 #include <stdio.h> | |
632 #include "smpeg.h" | |
633 ], [ return 0; ], | |
634 [ echo "*** The test program compiled, but did not run. This | |
635 usually means" | |
636 echo "*** that the run-time linker is not finding SMPEG or | |
637 finding the wrong" | |
638 echo "*** version of SMPEG. If it is not finding SMPEG, you'll | |
639 need to set your" | |
640 echo "*** LD_LIBRARY_PATH environment variable, or edit | |
641 /etc/ld.so.conf to point" | |
642 echo "*** to the installed location Also, make sure you have run | |
643 ldconfig if that" | |
644 echo "*** is required on your system" | |
645 echo "***" | |
646 echo "*** If you have an old version installed, it is best to | |
647 remove it, although" | |
648 echo "*** you may also be able to get things to work by modifying | |
649 LD_LIBRARY_PATH"], | |
650 [ echo "*** The test program failed to compile or link. See the | |
651 file config.log for the" | |
652 echo "*** exact error that occured. This usually means SMPEG was | |
653 incorrectly installed" | |
654 echo "*** or that you have moved SMPEG since it was installed. In | |
655 the latter case, you" | |
656 echo "*** may want to edit the smpeg-config script: | |
657 $SMPEG_CONFIG" ]) | |
658 CFLAGS="$ac_save_CFLAGS" | |
659 LIBS="$ac_save_LIBS" | |
660 fi | |
661 fi | |
662 SMPEG_CFLAGS="" | |
663 SMPEG_LIBS="" | |
664 ifelse([$3], , :, [$3]) | |
665 fi | |
666 AC_SUBST(SMPEG_CFLAGS) | |
667 AC_SUBST(SMPEG_LIBS) | |
668 rm -f conf.smpegtest | |
669 ]) | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
670 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
671 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
672 ## Free Software Foundation, Inc. |
73 | 673 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
674 ## | |
675 ## This program is free software; you can redistribute it and/or modify | |
676 ## it under the terms of the GNU General Public License as published by | |
677 ## the Free Software Foundation; either version 2 of the License, or | |
678 ## (at your option) any later version. | |
679 ## | |
680 ## This program is distributed in the hope that it will be useful, but | |
681 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
682 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
683 ## General Public License for more details. | |
684 ## | |
685 ## You should have received a copy of the GNU General Public License | |
686 ## along with this program; if not, write to the Free Software | |
687 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
688 ## | |
689 ## As a special exception to the GNU General Public License, if you | |
690 ## distribute this file as part of a program that contains a | |
691 ## configuration script generated by Autoconf, you may include it under | |
692 ## the same distribution terms that you use for the rest of that program. | |
693 | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
694 # serial 46 AC_PROG_LIBTOOL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
695 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
696 AC_DEFUN([AC_PROG_LIBTOOL], |
73 | 697 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
698 | |
699 # This can be used to rebuild libtool when needed | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
700 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
73 | 701 |
702 # Always use our own libtool. | |
703 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
704 AC_SUBST(LIBTOOL)dnl | |
705 | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
706 # Prevent multiple expansion |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
707 define([AC_PROG_LIBTOOL], []) |
73 | 708 ]) |
709 | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
710 AC_DEFUN([AC_LIBTOOL_SETUP], |
73 | 711 [AC_PREREQ(2.13)dnl |
712 AC_REQUIRE([AC_ENABLE_SHARED])dnl | |
713 AC_REQUIRE([AC_ENABLE_STATIC])dnl | |
714 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl | |
715 AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
716 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
717 AC_REQUIRE([AC_PROG_CC])dnl | |
718 AC_REQUIRE([AC_PROG_LD])dnl | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
719 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
73 | 720 AC_REQUIRE([AC_PROG_NM])dnl |
721 AC_REQUIRE([AC_PROG_LN_S])dnl | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
722 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
723 AC_REQUIRE([AC_OBJEXT])dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
724 AC_REQUIRE([AC_EXEEXT])dnl |
73 | 725 dnl |
726 | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
727 _LT_AC_PROG_ECHO_BACKSLASH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
728 # Only perform the check for file, if the check method requires it |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
729 case $deplibs_check_method in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
730 file_magic*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
731 if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
732 AC_PATH_MAGIC |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
733 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
734 ;; |
73 | 735 esac |
736 | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
737 AC_CHECK_TOOL(RANLIB, ranlib, :) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
738 AC_CHECK_TOOL(STRIP, strip, :) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
739 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
740 ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
73 | 741 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
742 enable_win32_dll=yes, enable_win32_dll=no) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
743 |
73 | 744 AC_ARG_ENABLE(libtool-lock, |
745 [ --disable-libtool-lock avoid locking (might break parallel builds)]) | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
746 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
73 | 747 |
748 # Some flags need to be propagated to the compiler or linker for good | |
749 # libtool support. | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
750 case $host in |
73 | 751 *-*-irix6*) |
752 # Find out which ABI we are using. | |
753 echo '[#]line __oline__ "configure"' > conftest.$ac_ext | |
754 if AC_TRY_EVAL(ac_compile); then | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
755 case `/usr/bin/file conftest.$ac_objext` in |
73 | 756 *32-bit*) |
757 LD="${LD-ld} -32" | |
758 ;; | |
759 *N32*) | |
760 LD="${LD-ld} -n32" | |
761 ;; | |
762 *64-bit*) | |
763 LD="${LD-ld} -64" | |
764 ;; | |
765 esac | |
766 fi | |
767 rm -rf conftest* | |
768 ;; | |
769 | |
770 *-*-sco3.2v5*) | |
771 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
772 SAVE_CFLAGS="$CFLAGS" | |
773 CFLAGS="$CFLAGS -belf" | |
774 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
775 [AC_LANG_SAVE |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
776 AC_LANG_C |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
777 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
778 AC_LANG_RESTORE]) |
73 | 779 if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
780 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
781 CFLAGS="$SAVE_CFLAGS" | |
782 fi | |
783 ;; | |
784 | |
785 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
786 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
73 | 787 AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
788 AC_CHECK_TOOL(AS, as, false) | |
789 AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
790 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
791 # recent cygwin and mingw systems supply a stub DllMain which the user |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
792 # can override, but on older systems we have to supply one |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
793 AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
794 [AC_TRY_LINK([], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
795 [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
796 DllMain (0, 0, 0);], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
797 [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
798 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
799 case $host/$CC in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
800 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
801 # old mingw systems require "-dll" to link a DLL, while more recent ones |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
802 # require "-mdll" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
803 SAVE_CFLAGS="$CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
804 CFLAGS="$CFLAGS -mdll" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
805 AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
806 [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
807 CFLAGS="$SAVE_CFLAGS" ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
808 *-*-cygwin* | *-*-pw32*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
809 # cygwin systems need to pass --dll to the linker, and not link |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
810 # crt.o which will require a WinMain@16 definition. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
811 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
812 esac |
73 | 813 ;; |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
814 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
815 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
816 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
817 _LT_AC_LTCONFIG_HACK |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
818 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
819 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
820 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
821 # AC_LIBTOOL_HEADER_ASSERT |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
822 # ------------------------ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
823 AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
824 [AC_CACHE_CHECK([whether $CC supports assert without backlinking], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
825 [lt_cv_func_assert_works], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
826 [case $host in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
827 *-*-solaris*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
828 if test "$GCC" = yes && test "$with_gnu_ld" != yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
829 case `$CC --version 2>/dev/null` in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
830 [[12]].*) lt_cv_func_assert_works=no ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
831 *) lt_cv_func_assert_works=yes ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
832 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
833 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
834 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
835 esac]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
836 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
837 if test "x$lt_cv_func_assert_works" = xyes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
838 AC_CHECK_HEADERS(assert.h) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
839 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
840 ])# AC_LIBTOOL_HEADER_ASSERT |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
841 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
842 # _LT_AC_CHECK_DLFCN |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
843 # -------------------- |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
844 AC_DEFUN([_LT_AC_CHECK_DLFCN], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
845 [AC_CHECK_HEADERS(dlfcn.h) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
846 ])# _LT_AC_CHECK_DLFCN |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
847 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
848 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
849 # --------------------------------- |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
850 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
851 [AC_REQUIRE([AC_CANONICAL_HOST]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
852 AC_REQUIRE([AC_PROG_NM]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
853 AC_REQUIRE([AC_OBJEXT]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
854 # Check for command to grab the raw symbol name followed by C symbol from nm. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
855 AC_MSG_CHECKING([command to parse $NM output]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
856 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
857 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
858 # These are sane defaults that work on at least a few old systems. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
859 # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
860 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
861 # Character class describing NM global symbol codes. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
862 symcode='[[BCDEGRST]]' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
863 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
864 # Regexp to match symbols that can be accessed directly from C. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
865 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
866 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
867 # Transform the above into a raw symbol and a C symbol. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
868 symxfrm='\1 \2\3 \3' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
869 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
870 # Transform an extracted symbol line into a proper C declaration |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
871 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
872 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
873 # Transform an extracted symbol line into symbol name and symbol address |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
874 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
875 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
876 # Define system-specific variables. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
877 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
878 aix*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
879 symcode='[[BCDT]]' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
880 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
881 cygwin* | mingw* | pw32*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
882 symcode='[[ABCDGISTW]]' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
883 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
884 hpux*) # Its linker distinguishes data from code symbols |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
885 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
886 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
887 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
888 irix*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
889 symcode='[[BCDEGRST]]' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
890 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
891 solaris* | sysv5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
892 symcode='[[BDT]]' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
893 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
894 sysv4) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
895 symcode='[[DFNSTU]]' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
896 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
897 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
898 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
899 # Handle CRLF in mingw tool chain |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
900 opt_cr= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
901 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
902 mingw*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
903 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
904 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
905 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
906 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
907 # If we're using GNU nm, then use its standard symbol codes. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
908 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
909 symcode='[[ABCDGISTW]]' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
910 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
911 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
912 # Try without a prefix undercore, then with it. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
913 for ac_symprfx in "" "_"; do |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
914 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
915 # Write the raw and C identifiers. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
916 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
917 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
918 # Check to see that the pipe works correctly. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
919 pipe_works=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
920 rm -f conftest* |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
921 cat > conftest.$ac_ext <<EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
922 #ifdef __cplusplus |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
923 extern "C" { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
924 #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
925 char nm_test_var; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
926 void nm_test_func(){} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
927 #ifdef __cplusplus |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
928 } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
929 #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
930 int main(){nm_test_var='a';nm_test_func();return(0);} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
931 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
932 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
933 if AC_TRY_EVAL(ac_compile); then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
934 # Now try to grab the symbols. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
935 nlist=conftest.nm |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
936 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
937 # Try sorting and uniquifying the output. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
938 if sort "$nlist" | uniq > "$nlist"T; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
939 mv -f "$nlist"T "$nlist" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
940 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
941 rm -f "$nlist"T |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
942 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
943 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
944 # Make sure that we snagged all the symbols we need. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
945 if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
946 if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
947 cat <<EOF > conftest.$ac_ext |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
948 #ifdef __cplusplus |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
949 extern "C" { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
950 #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
951 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
952 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
953 # Now generate the symbol file. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
954 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
955 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
956 cat <<EOF >> conftest.$ac_ext |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
957 #if defined (__STDC__) && __STDC__ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
958 # define lt_ptr void * |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
959 #else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
960 # define lt_ptr char * |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
961 # define const |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
962 #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
963 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
964 /* The mapping between symbol names and symbols. */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
965 const struct { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
966 const char *name; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
967 lt_ptr address; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
968 } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
969 lt_preloaded_symbols[[]] = |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
970 { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
971 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
972 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
973 cat <<\EOF >> conftest.$ac_ext |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
974 {0, (lt_ptr) 0} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
975 }; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
976 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
977 #ifdef __cplusplus |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
978 } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
979 #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
980 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
981 # Now try linking the two files. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
982 mv conftest.$ac_objext conftstm.$ac_objext |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
983 save_LIBS="$LIBS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
984 save_CFLAGS="$CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
985 LIBS="conftstm.$ac_objext" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
986 CFLAGS="$CFLAGS$no_builtin_flag" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
987 if AC_TRY_EVAL(ac_link) && test -s conftest; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
988 pipe_works=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
989 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
990 LIBS="$save_LIBS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
991 CFLAGS="$save_CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
992 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
993 echo "cannot find nm_test_func in $nlist" >&AC_FD_CC |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
994 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
995 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
996 echo "cannot find nm_test_var in $nlist" >&AC_FD_CC |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
997 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
998 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
999 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1000 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1001 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1002 echo "$progname: failed program was:" >&AC_FD_CC |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1003 cat conftest.$ac_ext >&5 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1004 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1005 rm -f conftest* conftst* |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1006 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1007 # Do not use the global_symbol_pipe unless it works. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1008 if test "$pipe_works" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1009 break |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1010 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1011 lt_cv_sys_global_symbol_pipe= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1012 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1013 done |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1014 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1015 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1016 if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1017 global_symbol_to_cdecl= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1018 global_symbol_to_c_name_address= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1019 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1020 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1021 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1022 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1023 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1024 then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1025 AC_MSG_RESULT(failed) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1026 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1027 AC_MSG_RESULT(ok) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1028 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1029 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1030 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1031 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1032 # --------------------------------- |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1033 AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1034 [# Find the correct PATH separator. Usually this is `:', but |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1035 # DJGPP uses `;' like DOS. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1036 if test "X${PATH_SEPARATOR+set}" != Xset; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1037 UNAME=${UNAME-`uname 2>/dev/null`} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1038 case X$UNAME in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1039 *-DOS) lt_cv_sys_path_separator=';' ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1040 *) lt_cv_sys_path_separator=':' ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1041 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1042 PATH_SEPARATOR=$lt_cv_sys_path_separator |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1043 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1044 ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1045 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1046 # _LT_AC_PROG_ECHO_BACKSLASH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1047 # -------------------------- |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1048 # Add some code to the start of the generated configure script which |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1049 # will find an echo command which doesn't interpret backslashes. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1050 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1051 [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1052 [AC_DIVERT_PUSH(NOTICE)]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1053 _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1054 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1055 # Check that we are running under the correct shell. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1056 SHELL=${CONFIG_SHELL-/bin/sh} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1057 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1058 case X$ECHO in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1059 X*--fallback-echo) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1060 # Remove one level of quotation (which was required for Make). |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1061 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1062 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1063 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1064 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1065 echo=${ECHO-echo} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1066 if test "X[$]1" = X--no-reexec; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1067 # Discard the --no-reexec flag, and continue. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1068 shift |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1069 elif test "X[$]1" = X--fallback-echo; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1070 # Avoid inline document here, it may be left over |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1071 : |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1072 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1073 # Yippee, $echo works! |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1074 : |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1075 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1076 # Restart under the correct shell. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1077 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1078 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1079 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1080 if test "X[$]1" = X--fallback-echo; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1081 # used as fallback echo |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1082 shift |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1083 cat <<EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1084 $* |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1085 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1086 exit 0 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1087 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1088 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1089 # The HP-UX ksh and POSIX shell print the target directory to stdout |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1090 # if CDPATH is set. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1091 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1092 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1093 if test -z "$ECHO"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1094 if test "X${echo_test_string+set}" != Xset; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1095 # find a string as large as possible, as long as the shell can cope with it |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1096 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1097 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1098 if (echo_test_string="`eval $cmd`") 2>/dev/null && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1099 echo_test_string="`eval $cmd`" && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1100 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1101 then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1102 break |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1103 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1104 done |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1105 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1106 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1107 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1108 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1109 test "X$echo_testing_string" = "X$echo_test_string"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1110 : |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1111 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1112 # The Solaris, AIX, and Digital Unix default echo programs unquote |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1113 # backslashes. This makes it impossible to quote backslashes using |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1114 # echo "$something" | sed 's/\\/\\\\/g' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1115 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1116 # So, first we look for a working echo in the user's PATH. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1117 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1118 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1119 for dir in $PATH /usr/ucb; do |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1120 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1121 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1122 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1123 test "X$echo_testing_string" = "X$echo_test_string"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1124 echo="$dir/echo" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1125 break |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1126 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1127 done |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1128 IFS="$save_ifs" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1129 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1130 if test "X$echo" = Xecho; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1131 # We didn't find a better echo, so look for alternatives. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1132 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1133 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1134 test "X$echo_testing_string" = "X$echo_test_string"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1135 # This shell has a builtin print -r that does the trick. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1136 echo='print -r' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1137 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1138 test "X$CONFIG_SHELL" != X/bin/ksh; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1139 # If we have ksh, try running configure again with it. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1140 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1141 export ORIGINAL_CONFIG_SHELL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1142 CONFIG_SHELL=/bin/ksh |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1143 export CONFIG_SHELL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1144 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1145 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1146 # Try using printf. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1147 echo='printf %s\n' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1148 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1149 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1150 test "X$echo_testing_string" = "X$echo_test_string"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1151 # Cool, printf works |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1152 : |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1153 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1154 test "X$echo_testing_string" = 'X\t' && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1155 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1156 test "X$echo_testing_string" = "X$echo_test_string"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1157 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1158 export CONFIG_SHELL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1159 SHELL="$CONFIG_SHELL" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1160 export SHELL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1161 echo="$CONFIG_SHELL [$]0 --fallback-echo" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1162 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1163 test "X$echo_testing_string" = 'X\t' && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1164 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1165 test "X$echo_testing_string" = "X$echo_test_string"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1166 echo="$CONFIG_SHELL [$]0 --fallback-echo" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1167 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1168 # maybe with a smaller string... |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1169 prev=: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1170 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1171 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1172 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1173 then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1174 break |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1175 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1176 prev="$cmd" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1177 done |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1178 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1179 if test "$prev" != 'sed 50q "[$]0"'; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1180 echo_test_string=`eval $prev` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1181 export echo_test_string |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1182 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1183 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1184 # Oops. We lost completely, so just stick with echo. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1185 echo=echo |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1186 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1187 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1188 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1189 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1190 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1191 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1192 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1193 # Copy echo and quote the copy suitably for passing to libtool from |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1194 # the Makefile, instead of quoting the original, which is used later. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1195 ECHO=$echo |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1196 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1197 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1198 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1199 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1200 AC_SUBST(ECHO) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1201 AC_DIVERT_POP |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1202 ])# _LT_AC_PROG_ECHO_BACKSLASH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1203 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1204 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1205 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1206 # ------------------------------------------------------------------ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1207 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1208 [if test "$cross_compiling" = yes; then : |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1209 [$4] |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1210 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1211 AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1213 lt_status=$lt_dlunknown |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1214 cat > conftest.$ac_ext <<EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1215 [#line __oline__ "configure" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1216 #include "confdefs.h" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1217 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1218 #if HAVE_DLFCN_H |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1219 #include <dlfcn.h> |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1220 #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1221 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1222 #include <stdio.h> |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1223 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1224 #ifdef RTLD_GLOBAL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1225 # define LT_DLGLOBAL RTLD_GLOBAL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1226 #else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1227 # ifdef DL_GLOBAL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1228 # define LT_DLGLOBAL DL_GLOBAL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1229 # else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1230 # define LT_DLGLOBAL 0 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1231 # endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1232 #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1233 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1235 find out it does not work in some platform. */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1236 #ifndef LT_DLLAZY_OR_NOW |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1237 # ifdef RTLD_LAZY |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1238 # define LT_DLLAZY_OR_NOW RTLD_LAZY |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1239 # else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1240 # ifdef DL_LAZY |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1241 # define LT_DLLAZY_OR_NOW DL_LAZY |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1242 # else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1243 # ifdef RTLD_NOW |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1244 # define LT_DLLAZY_OR_NOW RTLD_NOW |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1245 # else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1246 # ifdef DL_NOW |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1247 # define LT_DLLAZY_OR_NOW DL_NOW |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1248 # else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1249 # define LT_DLLAZY_OR_NOW 0 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1250 # endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1251 # endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1252 # endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1253 # endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1254 #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1255 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1256 #ifdef __cplusplus |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1257 extern "C" void exit (int); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1258 #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1259 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1260 void fnord() { int i=42;} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1261 int main () |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1262 { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1264 int status = $lt_dlunknown; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1265 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1266 if (self) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1267 { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1269 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1270 /* dlclose (self); */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1271 } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1272 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1273 exit (status); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1274 }] |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1275 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1276 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1277 (./conftest; exit; ) 2>/dev/null |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1278 lt_status=$? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1279 case x$lt_status in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1280 x$lt_dlno_uscore) $1 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1281 x$lt_dlneed_uscore) $2 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1282 x$lt_unknown|x*) $3 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1283 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1284 else : |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1285 # compilation failed |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1286 $3 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1287 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1288 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1289 rm -fr conftest* |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1290 ])# _LT_AC_TRY_DLOPEN_SELF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1291 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1292 # AC_LIBTOOL_DLOPEN_SELF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1293 # ------------------- |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1294 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1295 [if test "x$enable_dlopen" != xyes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1296 enable_dlopen=unknown |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1297 enable_dlopen_self=unknown |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1298 enable_dlopen_self_static=unknown |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1299 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1300 lt_cv_dlopen=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1301 lt_cv_dlopen_libs= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1302 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1303 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1304 beos*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1305 lt_cv_dlopen="load_add_on" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1306 lt_cv_dlopen_libs= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1307 lt_cv_dlopen_self=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1308 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1309 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1310 cygwin* | mingw* | pw32*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1311 lt_cv_dlopen="LoadLibrary" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1312 lt_cv_dlopen_libs= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1313 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1314 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1315 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1316 AC_CHECK_FUNC([shl_load], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1317 [lt_cv_dlopen="shl_load"], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1318 [AC_CHECK_LIB([dld], [shl_load], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1319 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1320 [AC_CHECK_FUNC([dlopen], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1321 [lt_cv_dlopen="dlopen"], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1322 [AC_CHECK_LIB([dl], [dlopen], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1323 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1324 [AC_CHECK_LIB([svld], [dlopen], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1325 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1326 [AC_CHECK_LIB([dld], [dld_link], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1327 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1328 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1329 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1330 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1331 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1332 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1333 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1334 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1335 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1336 if test "x$lt_cv_dlopen" != xno; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1337 enable_dlopen=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1338 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1339 enable_dlopen=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1340 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1341 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1342 case $lt_cv_dlopen in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1343 dlopen) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1344 save_CPPFLAGS="$CPPFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1345 AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1346 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1347 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1348 save_LDFLAGS="$LDFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1349 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1350 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1351 save_LIBS="$LIBS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1352 LIBS="$lt_cv_dlopen_libs $LIBS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1353 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1354 AC_CACHE_CHECK([whether a program can dlopen itself], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1355 lt_cv_dlopen_self, [dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1356 _LT_AC_TRY_DLOPEN_SELF( |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1357 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1358 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1359 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1360 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1361 if test "x$lt_cv_dlopen_self" = xyes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1362 LDFLAGS="$LDFLAGS $link_static_flag" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1363 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1364 lt_cv_dlopen_self_static, [dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1365 _LT_AC_TRY_DLOPEN_SELF( |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1366 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1367 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1368 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1369 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1370 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1371 CPPFLAGS="$save_CPPFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1372 LDFLAGS="$save_LDFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1373 LIBS="$save_LIBS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1374 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1375 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1376 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1377 case $lt_cv_dlopen_self in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1378 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1379 *) enable_dlopen_self=unknown ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1380 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1381 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1382 case $lt_cv_dlopen_self_static in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1383 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1384 *) enable_dlopen_self_static=unknown ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1385 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1386 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1387 ])# AC_LIBTOOL_DLOPEN_SELF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1388 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1389 AC_DEFUN([_LT_AC_LTCONFIG_HACK], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1390 [AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1391 # Sed substitution that helps us do robust quoting. It backslashifies |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1392 # metacharacters that are still active within double-quoted strings. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1393 Xsed='sed -e s/^X//' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1394 sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1395 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1396 # Same as above, but do not quote variable references. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1397 double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1398 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1399 # Sed substitution to delay expansion of an escaped shell variable in a |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1400 # double_quote_subst'ed string. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1401 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1402 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1403 # Constants: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1404 rm="rm -f" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1405 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1406 # Global variables: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1407 default_ofile=libtool |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1408 can_build_shared=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1409 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1410 # All known linkers require a `.a' archive for static linking (except M$VC, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1411 # which needs '.lib'). |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1412 libext=a |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1413 ltmain="$ac_aux_dir/ltmain.sh" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1414 ofile="$default_ofile" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1415 with_gnu_ld="$lt_cv_prog_gnu_ld" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1416 need_locks="$enable_libtool_lock" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1417 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1418 old_CC="$CC" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1419 old_CFLAGS="$CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1420 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1421 # Set sane defaults for various variables |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1422 test -z "$AR" && AR=ar |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1423 test -z "$AR_FLAGS" && AR_FLAGS=cru |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1424 test -z "$AS" && AS=as |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1425 test -z "$CC" && CC=cc |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1426 test -z "$DLLTOOL" && DLLTOOL=dlltool |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1427 test -z "$LD" && LD=ld |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1428 test -z "$LN_S" && LN_S="ln -s" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1429 test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1430 test -z "$NM" && NM=nm |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1431 test -z "$OBJDUMP" && OBJDUMP=objdump |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1432 test -z "$RANLIB" && RANLIB=: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1433 test -z "$STRIP" && STRIP=: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1434 test -z "$ac_objext" && ac_objext=o |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1435 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1436 if test x"$host" != x"$build"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1437 ac_tool_prefix=${host_alias}- |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1438 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1439 ac_tool_prefix= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1440 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1441 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1442 # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1443 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1444 linux-gnu*) ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1445 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1446 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1447 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1448 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1449 aix3*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1450 # AIX sometimes has problems with the GCC collect2 program. For some |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1451 # reason, if we set the COLLECT_NAMES environment variable, the problems |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1452 # vanish in a puff of smoke. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1453 if test "X${COLLECT_NAMES+set}" != Xset; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1454 COLLECT_NAMES= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1455 export COLLECT_NAMES |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1456 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1457 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1458 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1459 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1460 # Determine commands to create old-style static archives. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1461 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1462 old_postinstall_cmds='chmod 644 $oldlib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1463 old_postuninstall_cmds= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1464 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1465 if test -n "$RANLIB"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1466 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1467 openbsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1468 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1469 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1470 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1471 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1472 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1473 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1474 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1475 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1476 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1477 # Allow CC to be a program name with arguments. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1478 set dummy $CC |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1479 compiler="[$]2" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1480 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1481 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1482 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1483 AC_MSG_CHECKING([for objdir]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1484 rm -f .libs 2>/dev/null |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1485 mkdir .libs 2>/dev/null |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1486 if test -d .libs; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1487 objdir=.libs |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1488 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1489 # MS-DOS does not allow filenames that begin with a dot. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1490 objdir=_libs |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1491 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1492 rmdir .libs 2>/dev/null |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1493 AC_MSG_RESULT($objdir) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1494 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1495 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1496 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1497 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1498 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1499 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1500 AC_ARG_WITH(pic, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1501 [ --with-pic try to use only PIC/non-PIC objects [default=use both]], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1502 pic_mode="$withval", pic_mode=default) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1503 test -z "$pic_mode" && pic_mode=default |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1504 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1505 # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1506 # in isolation, and that seeing it set (from the cache) indicates that |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1507 # the associated values are set (in the cache) correctly too. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1508 AC_MSG_CHECKING([for $compiler option to produce PIC]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1509 AC_CACHE_VAL(lt_cv_prog_cc_pic, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1510 [ lt_cv_prog_cc_pic= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1511 lt_cv_prog_cc_shlib= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1512 lt_cv_prog_cc_wl= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1513 lt_cv_prog_cc_static= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1514 lt_cv_prog_cc_no_builtin= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1515 lt_cv_prog_cc_can_build_shared=$can_build_shared |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1516 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1517 if test "$GCC" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1518 lt_cv_prog_cc_wl='-Wl,' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1519 lt_cv_prog_cc_static='-static' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1520 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1521 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1522 aix*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1523 # Below there is a dirty hack to force normal static linking with -ldl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1524 # The problem is because libdl dynamically linked with both libc and |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1525 # libC (AIX C++ library), which obviously doesn't included in libraries |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1526 # list by gcc. This cause undefined symbols with -static flags. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1527 # This hack allows C programs to be linked with "-static -ldl", but |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1528 # not sure about C++ programs. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1529 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1530 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1531 amigaos*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1532 # FIXME: we need at least 68020 code to build shared libraries, but |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1533 # adding the `-m68020' flag to GCC prevents building anything better, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1534 # like `-m68040'. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1535 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1536 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1537 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1538 # PIC is the default for these OSes. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1539 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1540 darwin* | rhapsody*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1541 # PIC is the default on this platform |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1542 # Common symbols not allowed in MH_DYLIB files |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1543 lt_cv_prog_cc_pic='-fno-common' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1544 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1545 cygwin* | mingw* | pw32* | os2*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1546 # This hack is so that the source file can tell whether it is being |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1547 # built for inclusion in a dll (and should export symbols for example). |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1548 lt_cv_prog_cc_pic='-DDLL_EXPORT' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1549 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1550 sysv4*MP*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1551 if test -d /usr/nec; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1552 lt_cv_prog_cc_pic=-Kconform_pic |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1553 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1554 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1555 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1556 lt_cv_prog_cc_pic='-fPIC' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1557 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1558 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1559 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1560 # PORTME Check for PIC flags for the system compiler. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1561 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1562 aix3* | aix4* | aix5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1563 lt_cv_prog_cc_wl='-Wl,' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1564 # All AIX code is PIC. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1565 if test "$host_cpu" = ia64; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1566 # AIX 5 now supports IA64 processor |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1567 lt_cv_prog_cc_static='-Bstatic' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1568 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1569 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1570 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1571 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1572 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1573 hpux9* | hpux10* | hpux11*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1574 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1575 lt_cv_prog_cc_wl='-Wl,' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1576 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1577 lt_cv_prog_cc_pic='+Z' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1578 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1579 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1580 irix5* | irix6*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1581 lt_cv_prog_cc_wl='-Wl,' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1582 lt_cv_prog_cc_static='-non_shared' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1583 # PIC (with -KPIC) is the default. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1584 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1585 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1586 cygwin* | mingw* | pw32* | os2*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1587 # This hack is so that the source file can tell whether it is being |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1588 # built for inclusion in a dll (and should export symbols for example). |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1589 lt_cv_prog_cc_pic='-DDLL_EXPORT' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1590 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1591 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1592 newsos6) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1593 lt_cv_prog_cc_pic='-KPIC' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1594 lt_cv_prog_cc_static='-Bstatic' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1595 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1596 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1597 osf3* | osf4* | osf5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1598 # All OSF/1 code is PIC. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1599 lt_cv_prog_cc_wl='-Wl,' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1600 lt_cv_prog_cc_static='-non_shared' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1601 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1602 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1603 sco3.2v5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1604 lt_cv_prog_cc_pic='-Kpic' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1605 lt_cv_prog_cc_static='-dn' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1606 lt_cv_prog_cc_shlib='-belf' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1607 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1608 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1609 solaris*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1610 lt_cv_prog_cc_pic='-KPIC' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1611 lt_cv_prog_cc_static='-Bstatic' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1612 lt_cv_prog_cc_wl='-Wl,' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1613 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1614 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1615 sunos4*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1616 lt_cv_prog_cc_pic='-PIC' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1617 lt_cv_prog_cc_static='-Bstatic' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1618 lt_cv_prog_cc_wl='-Qoption ld ' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1619 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1620 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1621 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1622 lt_cv_prog_cc_pic='-KPIC' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1623 lt_cv_prog_cc_static='-Bstatic' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1624 if test "x$host_vendor" = xsni; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1625 lt_cv_prog_cc_wl='-LD' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1626 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1627 lt_cv_prog_cc_wl='-Wl,' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1628 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1629 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1630 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1631 uts4*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1632 lt_cv_prog_cc_pic='-pic' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1633 lt_cv_prog_cc_static='-Bstatic' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1634 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1635 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1636 sysv4*MP*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1637 if test -d /usr/nec ;then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1638 lt_cv_prog_cc_pic='-Kconform_pic' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1639 lt_cv_prog_cc_static='-Bstatic' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1640 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1641 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1642 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1643 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1644 lt_cv_prog_cc_can_build_shared=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1645 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1646 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1647 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1648 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1649 if test -z "$lt_cv_prog_cc_pic"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1650 AC_MSG_RESULT([none]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1651 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1652 AC_MSG_RESULT([$lt_cv_prog_cc_pic]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1653 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1654 # Check to make sure the pic_flag actually works. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1655 AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1656 AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1657 save_CFLAGS="$CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1658 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1659 AC_TRY_COMPILE([], [], [dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1660 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1661 hpux9* | hpux10* | hpux11*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1662 # On HP-UX, both CC and GCC only warn that PIC is supported... then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1663 # they create non-PIC objects. So, if there were any warnings, we |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1664 # assume that PIC is not supported. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1665 if test -s conftest.err; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1666 lt_cv_prog_cc_pic_works=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1667 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1668 lt_cv_prog_cc_pic_works=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1669 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1670 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1671 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1672 lt_cv_prog_cc_pic_works=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1673 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1674 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1675 ], [dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1676 lt_cv_prog_cc_pic_works=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1677 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1678 CFLAGS="$save_CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1679 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1680 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1681 if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1682 lt_cv_prog_cc_pic= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1683 lt_cv_prog_cc_can_build_shared=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1684 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1685 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1686 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1687 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1688 AC_MSG_RESULT([$lt_cv_prog_cc_pic_works]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1689 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1690 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1691 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1692 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1693 # Check for any special shared library compilation flags. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1694 if test -n "$lt_cv_prog_cc_shlib"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1695 AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1696 if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then : |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1697 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1698 AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1699 lt_cv_prog_cc_can_build_shared=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1700 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1701 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1702 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1703 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1704 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1705 AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1706 AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1707 lt_cv_prog_cc_static_works=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1708 save_LDFLAGS="$LDFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1709 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1710 AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1711 LDFLAGS="$save_LDFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1712 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1713 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1714 # Belt *and* braces to stop my trousers falling down: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1715 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1716 AC_MSG_RESULT([$lt_cv_prog_cc_static_works]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1717 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1718 pic_flag="$lt_cv_prog_cc_pic" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1719 special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1720 wl="$lt_cv_prog_cc_wl" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1721 link_static_flag="$lt_cv_prog_cc_static" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1722 no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1723 can_build_shared="$lt_cv_prog_cc_can_build_shared" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1724 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1725 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1726 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1727 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1728 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1729 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1730 # Check to see if options -o and -c are simultaneously supported by compiler |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1731 AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1732 AC_CACHE_VAL([lt_cv_compiler_c_o], [ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1733 $rm -r conftest 2>/dev/null |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1734 mkdir conftest |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1735 cd conftest |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1736 echo "int some_variable = 0;" > conftest.$ac_ext |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1737 mkdir out |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1738 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1739 # that will create temporary files in the current directory regardless of |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1740 # the output directory. Thus, making CWD read-only will cause this test |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1741 # to fail, enabling locking or at least warning the user not to do parallel |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1742 # builds. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1743 chmod -w . |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1744 save_CFLAGS="$CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1745 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1746 compiler_c_o=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1747 if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1748 # The compiler can only warn and ignore the option if not recognized |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1749 # So say no if there are warnings |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1750 if test -s out/conftest.err; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1751 lt_cv_compiler_c_o=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1752 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1753 lt_cv_compiler_c_o=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1754 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1755 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1756 # Append any errors to the config.log. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1757 cat out/conftest.err 1>&AC_FD_CC |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1758 lt_cv_compiler_c_o=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1759 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1760 CFLAGS="$save_CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1761 chmod u+w . |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1762 $rm conftest* out/* |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1763 rmdir out |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1764 cd .. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1765 rmdir conftest |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1766 $rm -r conftest 2>/dev/null |
73 | 1767 ]) |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1768 compiler_c_o=$lt_cv_compiler_c_o |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1769 AC_MSG_RESULT([$compiler_c_o]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1770 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1771 if test x"$compiler_c_o" = x"yes"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1772 # Check to see if we can write to a .lo |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1773 AC_MSG_CHECKING([if $compiler supports -c -o file.lo]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1774 AC_CACHE_VAL([lt_cv_compiler_o_lo], [ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1775 lt_cv_compiler_o_lo=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1776 save_CFLAGS="$CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1777 CFLAGS="$CFLAGS -c -o conftest.lo" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1778 save_objext="$ac_objext" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1779 ac_objext=lo |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1780 AC_TRY_COMPILE([], [int some_variable = 0;], [dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1781 # The compiler can only warn and ignore the option if not recognized |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1782 # So say no if there are warnings |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1783 if test -s conftest.err; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1784 lt_cv_compiler_o_lo=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1785 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1786 lt_cv_compiler_o_lo=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1787 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1788 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1789 ac_objext="$save_objext" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1790 CFLAGS="$save_CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1791 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1792 compiler_o_lo=$lt_cv_compiler_o_lo |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1793 AC_MSG_RESULT([$compiler_o_lo]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1794 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1795 compiler_o_lo=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1796 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1797 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1798 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1799 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1800 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1801 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1802 # Check to see if we can do hard links to lock some files if needed |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1803 hard_links="nottested" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1804 if test "$compiler_c_o" = no && test "$need_locks" != no; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1805 # do not overwrite the value of need_locks provided by the user |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1806 AC_MSG_CHECKING([if we can lock with hard links]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1807 hard_links=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1808 $rm conftest* |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1809 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1810 touch conftest.a |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1811 ln conftest.a conftest.b 2>&5 || hard_links=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1812 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1813 AC_MSG_RESULT([$hard_links]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1814 if test "$hard_links" = no; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1815 AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1816 need_locks=warn |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1817 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1818 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1819 need_locks=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1820 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1821 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1822 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1823 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1824 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1825 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1826 if test "$GCC" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1827 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1828 AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1829 echo "int some_variable = 0;" > conftest.$ac_ext |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1830 save_CFLAGS="$CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1831 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1832 compiler_rtti_exceptions=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1833 AC_TRY_COMPILE([], [int some_variable = 0;], [dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1834 # The compiler can only warn and ignore the option if not recognized |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1835 # So say no if there are warnings |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1836 if test -s conftest.err; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1837 compiler_rtti_exceptions=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1838 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1839 compiler_rtti_exceptions=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1840 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1841 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1842 CFLAGS="$save_CFLAGS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1843 AC_MSG_RESULT([$compiler_rtti_exceptions]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1844 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1845 if test "$compiler_rtti_exceptions" = "yes"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1846 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1847 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1848 no_builtin_flag=' -fno-builtin' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1849 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1850 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1851 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1852 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1853 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1854 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1855 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1856 # See if the linker supports building shared libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1857 AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1858 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1859 allow_undefined_flag= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1860 no_undefined_flag= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1861 need_lib_prefix=unknown |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1862 need_version=unknown |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1863 # when you set need_version to no, make sure it does not cause -set_version |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1864 # flags to be left without arguments |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1865 archive_cmds= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1866 archive_expsym_cmds= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1867 old_archive_from_new_cmds= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1868 old_archive_from_expsyms_cmds= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1869 export_dynamic_flag_spec= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1870 whole_archive_flag_spec= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1871 thread_safe_flag_spec= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1872 hardcode_into_libs=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1873 hardcode_libdir_flag_spec= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1874 hardcode_libdir_separator= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1875 hardcode_direct=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1876 hardcode_minus_L=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1877 hardcode_shlibpath_var=unsupported |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1878 runpath_var= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1879 link_all_deplibs=unknown |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1880 always_export_symbols=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1881 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1882 # include_expsyms should be a list of space-separated symbols to be *always* |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1883 # included in the symbol list |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1884 include_expsyms= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1885 # exclude_expsyms can be an egrep regular expression of symbols to exclude |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1886 # it will be wrapped by ` (' and `)$', so one must not match beginning or |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1887 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1888 # as well as any symbol that contains `d'. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1889 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1890 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1891 # platforms (ab)use it in PIC code, but their linkers get confused if |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1892 # the symbol is explicitly referenced. Since portable code cannot |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1893 # rely on this symbol name, it's probably fine to never include it in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1894 # preloaded symbol tables. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1895 extract_expsyms_cmds= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1896 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1897 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1898 cygwin* | mingw* | pw32*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1899 # FIXME: the MSVC++ port hasn't been tested in a loooong time |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1900 # When not using gcc, we currently assume that we are using |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1901 # Microsoft Visual C++. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1902 if test "$GCC" != yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1903 with_gnu_ld=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1904 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1905 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1906 openbsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1907 with_gnu_ld=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1908 ;; |
73 | 1909 esac |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1910 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1911 ld_shlibs=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1912 if test "$with_gnu_ld" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1913 # If archive_cmds runs LD, not CC, wlarc should be empty |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1914 wlarc='${wl}' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1915 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1916 # See if GNU ld supports shared libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1917 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1918 aix3* | aix4* | aix5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1919 # On AIX, the GNU linker is very broken |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1920 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1921 ld_shlibs=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1922 cat <<EOF 1>&2 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1923 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1924 *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1925 *** to be unable to reliably create shared libraries on AIX. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1926 *** Therefore, libtool is disabling shared libraries support. If you |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1927 *** really care for shared libraries, you may want to modify your PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1928 *** so that a non-GNU linker is found, and then restart. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1929 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1930 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1931 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1932 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1933 amigaos*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1934 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1935 hardcode_libdir_flag_spec='-L$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1936 hardcode_minus_L=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1937 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1938 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1939 # that the semantics of dynamic libraries on AmigaOS, at least up |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1940 # to version 4, is to share data among multiple programs linked |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1941 # with the same dynamic library. Since this doesn't match the |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1942 # behavior of shared libraries on other platforms, we can use |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1943 # them. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1944 ld_shlibs=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1945 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1946 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1947 beos*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1948 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1949 allow_undefined_flag=unsupported |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1950 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1951 # support --undefined. This deserves some investigation. FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1952 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1953 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1954 ld_shlibs=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1955 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1956 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1957 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1958 cygwin* | mingw* | pw32*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1959 # hardcode_libdir_flag_spec is actually meaningless, as there is |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1960 # no search path for DLLs. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1961 hardcode_libdir_flag_spec='-L$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1962 allow_undefined_flag=unsupported |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1963 always_export_symbols=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1964 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1965 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1966 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1967 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1968 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1969 else $CC -o impgen impgen.c ; fi)~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1970 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1971 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1972 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1973 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1974 # cygwin and mingw dlls have different entry points and sets of symbols |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1975 # to exclude. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1976 # FIXME: what about values for MSVC? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1977 dll_entry=__cygwin_dll_entry@12 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1978 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1979 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1980 mingw*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1981 # mingw values |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1982 dll_entry=_DllMainCRTStartup@12 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1983 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1984 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1985 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1986 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1987 # mingw and cygwin differ, and it's simplest to just exclude the union |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1988 # of the two symbol sets. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1989 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1990 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1991 # recent cygwin and mingw systems supply a stub DllMain which the user |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1992 # can override, but on older systems we have to supply one (in ltdll.c) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1993 if test "x$lt_cv_need_dllmain" = "xyes"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1994 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1995 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1996 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1997 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1998 ltdll_obj= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
1999 ltdll_cmds= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2000 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2001 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2002 # Extract the symbol export list from an `--export-all' def file, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2003 # then regenerate the def file from the symbol export list, so that |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2004 # the compiled dll only exports the symbol export list. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2005 # Be careful not to strip the DATA tag left be newer dlltools. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2006 export_symbols_cmds="$ltdll_cmds"' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2007 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2008 sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2009 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2010 # If the export-symbols file already is a .def file (1st line |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2011 # is EXPORTS), use it as is. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2012 # If DATA tags from a recent dlltool are present, honour them! |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2013 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2014 cp $export_symbols $output_objdir/$soname-def; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2015 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2016 echo EXPORTS > $output_objdir/$soname-def; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2017 _lt_hint=1; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2018 cat $export_symbols | while read symbol; do |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2019 set dummy \$symbol; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2020 case \[$]# in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2021 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2022 *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2023 esac; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2024 _lt_hint=`expr 1 + \$_lt_hint`; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2025 done; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2026 fi~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2027 '"$ltdll_cmds"' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2028 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2029 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2030 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2031 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2032 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2033 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2034 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2035 netbsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2037 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2038 wlarc= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2039 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2040 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2041 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2042 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2043 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2044 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2045 solaris* | sysv5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2046 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2047 ld_shlibs=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2048 cat <<EOF 1>&2 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2049 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2050 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2051 *** create shared libraries on Solaris systems. Therefore, libtool |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2052 *** is disabling shared libraries support. We urge you to upgrade GNU |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2053 *** binutils to release 2.9.1 or newer. Another option is to modify |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2054 *** your PATH or compiler configuration so that the native linker is |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2055 *** used, and then restart. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2056 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2057 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2058 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2061 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2062 ld_shlibs=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2063 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2064 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2065 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2066 sunos4*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2067 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2068 wlarc= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2069 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2070 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2071 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2072 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2073 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2074 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2076 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2077 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2078 ld_shlibs=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2079 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2080 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2081 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2082 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2083 if test "$ld_shlibs" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2084 runpath_var=LD_RUN_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2085 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2086 export_dynamic_flag_spec='${wl}--export-dynamic' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2087 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2088 cygwin* | mingw* | pw32*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2089 # dlltool doesn't understand --whole-archive et. al. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2090 whole_archive_flag_spec= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2091 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2092 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2093 # ancient GNU ld didn't support --whole-archive et. al. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2094 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2095 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2096 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2097 whole_archive_flag_spec= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2098 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2099 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2100 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2101 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2102 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2103 # PORTME fill in a description of your system's linker (not GNU ld) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2104 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2105 aix3*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2106 allow_undefined_flag=unsupported |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2107 always_export_symbols=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2108 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2109 # Note: this linker hardcodes the directories in LIBPATH if there |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2110 # are no directories specified by -L. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2111 hardcode_minus_L=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2112 if test "$GCC" = yes && test -z "$link_static_flag"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2113 # Neither direct hardcoding nor static linking is supported with a |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2114 # broken collect2. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2115 hardcode_direct=unsupported |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2116 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2117 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2118 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2119 aix4* | aix5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2120 if test "$host_cpu" = ia64; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2121 # On IA64, the linker does run time linking by default, so we don't |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2122 # have to do anything special. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2123 aix_use_runtimelinking=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2124 exp_sym_flag='-Bexport' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2125 no_entry_flag="" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2126 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2127 aix_use_runtimelinking=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2128 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2129 # Test if we are trying to use run time linking or normal |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2130 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2131 # need to do runtime linking. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2132 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2133 for ld_flag in $LDFLAGS; do |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2134 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2135 aix_use_runtimelinking=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2136 break |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2137 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2138 done |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2139 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2140 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2141 exp_sym_flag='-bexport' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2142 no_entry_flag='-bnoentry' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2143 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2144 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2145 # When large executables or shared objects are built, AIX ld can |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2146 # have problems creating the table of contents. If linking a library |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2147 # or program results in "error TOC overflow" add -mminimal-toc to |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2148 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2149 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2150 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2151 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2152 archive_cmds='' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2153 hardcode_libdir_separator=':' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2154 if test "$GCC" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2155 case $host_os in aix4.[[012]]|aix4.[[012]].*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2156 collect2name=`${CC} -print-prog-name=collect2` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2157 if test -f "$collect2name" && \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2158 strings "$collect2name" | grep resolve_lib_name >/dev/null |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2159 then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2160 # We have reworked collect2 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2161 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2162 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2163 # We have old collect2 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2164 hardcode_direct=unsupported |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2165 # It fails to find uninstalled libraries when the uninstalled |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2166 # path is not listed in the libpath. Setting hardcode_minus_L |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2167 # to unsupported forces relinking |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2168 hardcode_minus_L=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2169 hardcode_libdir_flag_spec='-L$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2170 hardcode_libdir_separator= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2171 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2172 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2173 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2174 shared_flag='-shared' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2175 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2176 # not using gcc |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2177 if test "$host_cpu" = ia64; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2178 shared_flag='${wl}-G' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2179 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2180 if test "$aix_use_runtimelinking" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2181 shared_flag='${wl}-G' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2182 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2183 shared_flag='${wl}-bM:SRE' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2184 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2185 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2186 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2187 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2188 # It seems that -bexpall can do strange things, so it is better to |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2189 # generate a list of symbols to export. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2190 always_export_symbols=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2191 if test "$aix_use_runtimelinking" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2192 # Warning - without using the other runtime loading flags (-brtl), |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2193 # -berok will link without error, but may produce a broken library. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2194 allow_undefined_flag='-berok' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2195 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2196 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2197 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2198 if test "$host_cpu" = ia64; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2199 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2200 allow_undefined_flag="-z nodefs" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2201 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2202 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2203 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2204 # Warning - without using the other run time loading flags, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2205 # -berok will link without error, but may produce a broken library. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2206 allow_undefined_flag='${wl}-berok' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2207 # This is a bit strange, but is similar to how AIX traditionally builds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2208 # it's shared libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2209 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2210 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2211 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2212 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2213 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2214 amigaos*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2215 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2216 hardcode_libdir_flag_spec='-L$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2217 hardcode_minus_L=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2218 # see comment about different semantics on the GNU ld section |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2219 ld_shlibs=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2220 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2221 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2222 cygwin* | mingw* | pw32*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2223 # When not using gcc, we currently assume that we are using |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2224 # Microsoft Visual C++. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2225 # hardcode_libdir_flag_spec is actually meaningless, as there is |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2226 # no search path for DLLs. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2227 hardcode_libdir_flag_spec=' ' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2228 allow_undefined_flag=unsupported |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2229 # Tell ltmain to make .lib files, not .a files. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2230 libext=lib |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2231 # FIXME: Setting linknames here is a bad hack. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2232 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2233 # The linker will automatically build a .lib file if we build a DLL. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2234 old_archive_from_new_cmds='true' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2235 # FIXME: Should let the user specify the lib program. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2236 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2237 fix_srcfile_path='`cygpath -w "$srcfile"`' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2238 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2239 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2240 darwin* | rhapsody*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2241 case "$host_os" in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2242 rhapsody* | darwin1.[[012]]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2243 allow_undefined_flag='-undefined suppress' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2244 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2245 *) # Darwin 1.3 on |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2246 allow_undefined_flag='-flat_namespace -undefined suppress' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2247 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2248 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2249 # FIXME: Relying on posixy $() will cause problems for |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2250 # cross-compilation, but unfortunately the echo tests do not |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2251 # yet detect zsh echo's removal of \ escapes. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2252 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2253 # We need to add '_' to the symbols in $export_symbols first |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2254 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2255 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2256 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2257 whole_archive_flag_spec='-all_load $convenience' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2258 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2259 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2260 freebsd1*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2261 ld_shlibs=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2262 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2263 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2264 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2265 # support. Future versions do this automatically, but an explicit c++rt0.o |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2266 # does not break anything, and helps significantly (at the cost of a little |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2267 # extra space). |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2268 freebsd2.2*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2270 hardcode_libdir_flag_spec='-R$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2271 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2272 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2273 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2274 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2275 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2276 freebsd2*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2278 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2279 hardcode_minus_L=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2280 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2281 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2282 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2283 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2284 freebsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2285 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2286 hardcode_libdir_flag_spec='-R$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2287 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2288 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2289 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2290 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2291 hpux9* | hpux10* | hpux11*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2292 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2293 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2294 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2295 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2297 hardcode_libdir_separator=: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2298 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2299 hardcode_minus_L=yes # Not in the search PATH, but as the default |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2300 # location of the library. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2301 export_dynamic_flag_spec='${wl}-E' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2302 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2303 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2304 irix5* | irix6*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2305 if test "$GCC" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2307 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2308 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2309 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2311 hardcode_libdir_separator=: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2312 link_all_deplibs=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2313 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2314 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2315 netbsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2318 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2319 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2320 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2321 hardcode_libdir_flag_spec='-R$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2322 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2323 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2324 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2325 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2326 newsos6) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2328 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2330 hardcode_libdir_separator=: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2331 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2332 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2333 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2334 openbsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2335 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2336 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2339 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2340 export_dynamic_flag_spec='${wl}-E' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2341 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2342 case "$host_os" in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2343 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2345 hardcode_libdir_flag_spec='-R$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2346 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2347 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2348 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2349 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2350 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2351 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2352 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2353 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2354 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2355 os2*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2356 hardcode_libdir_flag_spec='-L$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2357 hardcode_minus_L=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2358 allow_undefined_flag=unsupported |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2359 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2360 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2361 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2362 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2363 osf3*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2364 if test "$GCC" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2365 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2366 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2367 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2368 allow_undefined_flag=' -expect_unresolved \*' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2369 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2370 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2372 hardcode_libdir_separator=: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2373 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2374 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2375 osf4* | osf5*) # as osf3* with the addition of -msym flag |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2376 if test "$GCC" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2377 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2378 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2380 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2381 allow_undefined_flag=' -expect_unresolved \*' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2382 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2383 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2384 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2385 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2386 #Both c and cxx compiler support -rpath directly |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2387 hardcode_libdir_flag_spec='-rpath $libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2388 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2389 hardcode_libdir_separator=: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2390 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2391 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2392 sco3.2v5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2394 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2395 runpath_var=LD_RUN_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2396 hardcode_runpath_var=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2397 export_dynamic_flag_spec='${wl}-Bexport' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2398 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2399 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2400 solaris*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2401 # gcc --version < 3.0 without binutils cannot create self contained |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2402 # shared libraries reliably, requiring libgcc.a to resolve some of |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2403 # the object symbols generated in some cases. Libraries that use |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2404 # assert need libgcc.a to resolve __eprintf, for example. Linking |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2405 # a copy of libgcc.a into every shared library to guarantee resolving |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2406 # such symbols causes other problems: According to Tim Van Holder |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2407 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2408 # (to the application) exception stack for one thing. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2409 no_undefined_flag=' -z defs' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2410 if test "$GCC" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2411 case `$CC --version 2>/dev/null` in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2412 [[12]].*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2413 cat <<EOF 1>&2 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2414 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2415 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2416 *** create self contained shared libraries on Solaris systems, without |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2417 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2418 *** -no-undefined support, which will at least allow you to build shared |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2419 *** libraries. However, you may find that when you link such libraries |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2420 *** into an application without using GCC, you have to manually add |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2421 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2422 *** upgrade to a newer version of GCC. Another option is to rebuild your |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2423 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2424 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2425 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2426 no_undefined_flag= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2427 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2428 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2429 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2430 # $CC -shared without GNU ld will not create a library from C++ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2431 # object files and a static libstdc++, better avoid it by now |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2432 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2433 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2434 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2435 hardcode_libdir_flag_spec='-R$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2436 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2437 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2438 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2439 *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2440 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2441 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2442 link_all_deplibs=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2443 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2444 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2445 sunos4*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2446 if test "x$host_vendor" = xsequent; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2447 # Use $CC to link under sequent, because it throws in some extra .o |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2448 # files that make .init and .fini sections work. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2449 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2450 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2451 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2452 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2453 hardcode_libdir_flag_spec='-L$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2454 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2455 hardcode_minus_L=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2456 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2457 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2458 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2459 sysv4) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2460 if test "x$host_vendor" = xsno; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2461 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2462 hardcode_direct=yes # is this really true??? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2463 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2465 hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2466 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2467 runpath_var='LD_RUN_PATH' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2468 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2469 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2470 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2471 sysv4.3*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2473 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2474 export_dynamic_flag_spec='-Bexport' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2475 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2476 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2477 sysv5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2478 no_undefined_flag=' -z text' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2479 # $CC -shared without GNU ld will not create a library from C++ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2480 # object files and a static libstdc++, better avoid it by now |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2481 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2482 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2483 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2484 hardcode_libdir_flag_spec= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2485 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2486 runpath_var='LD_RUN_PATH' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2487 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2488 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2489 uts4*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2491 hardcode_libdir_flag_spec='-L$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2492 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2493 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2494 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2495 dgux*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2497 hardcode_libdir_flag_spec='-L$libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2498 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2499 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2500 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2501 sysv4*MP*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2502 if test -d /usr/nec; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2504 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2505 runpath_var=LD_RUN_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2506 hardcode_runpath_var=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2507 ld_shlibs=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2508 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2509 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2510 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2511 sysv4.2uw2*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2512 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2513 hardcode_direct=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2514 hardcode_minus_L=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2515 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2516 hardcode_runpath_var=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2517 runpath_var=LD_RUN_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2518 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2519 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2520 sysv5uw7* | unixware7*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2521 no_undefined_flag='${wl}-z ${wl}text' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2522 if test "$GCC" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2523 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2524 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2525 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2526 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2527 runpath_var='LD_RUN_PATH' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2528 hardcode_shlibpath_var=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2529 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2530 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2531 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2532 ld_shlibs=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2533 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2534 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2535 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2536 AC_MSG_RESULT([$ld_shlibs]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2537 test "$ld_shlibs" = no && can_build_shared=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2538 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2539 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2540 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2541 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2542 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2543 # Check hardcoding attributes. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2544 AC_MSG_CHECKING([how to hardcode library paths into programs]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2545 hardcode_action= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2546 if test -n "$hardcode_libdir_flag_spec" || \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2547 test -n "$runpath_var"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2548 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2549 # We can hardcode non-existant directories. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2550 if test "$hardcode_direct" != no && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2551 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2552 # have to relink, otherwise we might link with an installed library |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2553 # when we should be linking with a yet-to-be-installed one |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2554 ## test "$hardcode_shlibpath_var" != no && |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2555 test "$hardcode_minus_L" != no; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2556 # Linking always hardcodes the temporary library directory. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2557 hardcode_action=relink |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2558 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2559 # We can link without hardcoding, and we can hardcode nonexisting dirs. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2560 hardcode_action=immediate |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2561 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2562 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2563 # We cannot hardcode anything, or else we can only hardcode existing |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2564 # directories. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2565 hardcode_action=unsupported |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2566 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2567 AC_MSG_RESULT([$hardcode_action]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2568 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2569 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2570 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2571 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2572 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2573 striplib= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2574 old_striplib= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2575 AC_MSG_CHECKING([whether stripping libraries is possible]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2576 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2577 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2578 test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2579 AC_MSG_RESULT([yes]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2580 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2581 AC_MSG_RESULT([no]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2582 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2583 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2584 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2585 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2586 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2587 test -z "$deplibs_check_method" && deplibs_check_method=unknown |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2588 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2589 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2590 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2591 # PORTME Fill in your ld.so characteristics |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2592 AC_MSG_CHECKING([dynamic linker characteristics]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2593 library_names_spec= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2594 libname_spec='lib$name' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2595 soname_spec= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2596 postinstall_cmds= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2597 postuninstall_cmds= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2598 finish_cmds= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2599 finish_eval= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2600 shlibpath_var= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2601 shlibpath_overrides_runpath=unknown |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2602 version_type=none |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2603 dynamic_linker="$host_os ld.so" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2604 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2605 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2606 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2607 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2608 aix3*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2609 version_type=linux |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2610 library_names_spec='${libname}${release}.so$versuffix $libname.a' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2611 shlibpath_var=LIBPATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2612 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2613 # AIX has no versioning support, so we append a major version to the name. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2614 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2615 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2616 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2617 aix4* | aix5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2618 version_type=linux |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2619 if test "$host_cpu" = ia64; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2620 # AIX 5 supports IA64 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2621 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2622 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2623 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2624 # With GCC up to 2.95.x, collect2 would create an import file |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2625 # for dependence libraries. The import file would start with |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2626 # the line `#! .'. This would cause the generated library to |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2627 # depend on `.', always an invalid library. This was fixed in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2628 # development snapshots of GCC prior to 3.0. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2629 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2630 aix4 | aix4.[[01]] | aix4.[[01]].*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2631 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2632 echo ' yes ' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2633 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2634 : |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2635 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2636 can_build_shared=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2637 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2638 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2639 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2640 # AIX (on Power*) has no versioning support, so currently we can |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2641 # not hardcode correct soname into executable. Probably we can |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2642 # add versioning support to collect2, so additional links can |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2643 # be useful in future. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2644 if test "$aix_use_runtimelinking" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2645 # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2646 # instead of lib<name>.a to let people know that these are not |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2647 # typical AIX shared libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2648 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2649 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2650 # We preserve .a as extension for shared libraries through AIX4.2 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2651 # and later when we are not doing run time linking. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2652 library_names_spec='${libname}${release}.a $libname.a' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2653 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2654 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2655 shlibpath_var=LIBPATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2656 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2657 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2658 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2659 amigaos*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2660 library_names_spec='$libname.ixlibrary $libname.a' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2661 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2662 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2663 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2664 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2665 beos*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2666 library_names_spec='${libname}.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2667 dynamic_linker="$host_os ld.so" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2668 shlibpath_var=LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2669 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2670 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2671 bsdi4*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2672 version_type=linux |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2673 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2674 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2675 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2676 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2677 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2678 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2679 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2680 export_dynamic_flag_spec=-rdynamic |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2681 # the default ld.so.conf also contains /usr/contrib/lib and |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2682 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2683 # libtool to hard-code these into programs |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2684 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2685 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2686 cygwin* | mingw* | pw32*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2687 version_type=windows |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2688 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2689 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2690 case $GCC,$host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2691 yes,cygwin*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2692 library_names_spec='$libname.dll.a' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2693 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2694 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2695 dldir=$destdir/`dirname \$dlpath`~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2696 test -d \$dldir || mkdir -p \$dldir~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2697 $install_prog .libs/$dlname \$dldir/$dlname' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2698 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2699 dlpath=$dir/\$dldll~ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2700 $rm \$dlpath' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2701 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2702 yes,mingw*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2703 library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2705 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2706 yes,pw32*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2707 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2708 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2709 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2710 library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2711 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2712 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2713 dynamic_linker='Win32 ld.exe' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2714 # FIXME: first we should search . and the directory the executable is in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2715 shlibpath_var=PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2716 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2717 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2718 darwin* | rhapsody*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2719 dynamic_linker="$host_os dyld" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2720 version_type=darwin |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2721 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2722 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2723 # FIXME: Relying on posixy $() will cause problems for |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2724 # cross-compilation, but unfortunately the echo tests do not |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2725 # yet detect zsh echo's removal of \ escapes. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2726 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2727 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2728 shlibpath_overrides_runpath=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2729 shlibpath_var=DYLD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2730 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2731 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2732 freebsd1*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2733 dynamic_linker=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2734 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2735 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2736 freebsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2737 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2738 version_type=freebsd-$objformat |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2739 case $version_type in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2740 freebsd-elf*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2741 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2742 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2743 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2744 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2745 freebsd-*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2746 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2747 need_version=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2748 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2749 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2750 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2751 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2752 freebsd2*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2753 shlibpath_overrides_runpath=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2754 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2755 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2756 shlibpath_overrides_runpath=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2757 hardcode_into_libs=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2758 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2759 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2760 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2761 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2762 gnu*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2763 version_type=linux |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2764 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2765 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2766 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2767 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2768 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2769 hardcode_into_libs=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2770 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2771 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2772 hpux9* | hpux10* | hpux11*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2773 # Give a soname corresponding to the major version so that dld.sl refuses to |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2774 # link against other versions. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2775 dynamic_linker="$host_os dld.sl" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2776 version_type=sunos |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2777 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2778 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2779 shlibpath_var=SHLIB_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2780 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2781 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2782 soname_spec='${libname}${release}.sl$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2783 # HP-UX runs *really* slowly unless shared libraries are mode 555. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2784 postinstall_cmds='chmod 555 $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2785 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2786 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2787 irix5* | irix6*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2788 version_type=irix |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2789 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2790 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2791 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2792 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2793 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2794 irix5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2795 libsuff= shlibsuff= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2796 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2797 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2798 case $LD in # libtool.m4 will add one of these switches to LD |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2799 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2800 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2801 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2802 *) libsuff= shlibsuff= libmagic=never-match;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2803 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2804 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2805 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2807 shlibpath_overrides_runpath=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2810 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2811 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2812 # No shared lib support for Linux oldld, aout, or coff. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2813 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2814 dynamic_linker=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2815 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2816 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2817 # This must be Linux ELF. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2818 linux-gnu*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2819 version_type=linux |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2820 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2821 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2822 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2823 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2825 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2826 shlibpath_overrides_runpath=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2827 # This implies no fast_install, which is unacceptable. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2828 # Some rework will be needed to allow for fast_install |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2829 # before this can be enabled. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2830 hardcode_into_libs=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2831 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2832 # We used to test for /lib/ld.so.1 and disable shared libraries on |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2833 # powerpc, because MkLinux only supported shared libraries with the |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2834 # GNU dynamic linker. Since this was broken with cross compilers, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2835 # most powerpc-linux boxes support dynamic linking these days and |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2836 # people can always --disable-shared, the test was removed, and we |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2837 # assume the GNU/Linux dynamic linker is in use. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2838 dynamic_linker='GNU/Linux ld.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2839 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2840 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2841 netbsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2842 version_type=sunos |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2843 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2844 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2845 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2846 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2848 dynamic_linker='NetBSD (a.out) ld.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2849 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2850 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2851 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2852 dynamic_linker='NetBSD ld.elf_so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2853 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2854 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2855 shlibpath_overrides_runpath=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2856 hardcode_into_libs=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2857 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2858 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2859 newsos6) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2860 version_type=linux |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2861 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2862 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2863 shlibpath_overrides_runpath=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2864 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2865 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2866 openbsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2867 version_type=sunos |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2868 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2869 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2871 case "$host_os" in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2872 openbsd2.[[89]] | openbsd2.[[89]].*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2873 shlibpath_overrides_runpath=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2874 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2875 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2876 shlibpath_overrides_runpath=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2877 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2878 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2879 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2880 shlibpath_overrides_runpath=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2881 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2882 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2884 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2885 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2886 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2887 os2*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2888 libname_spec='$name' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2889 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2890 library_names_spec='$libname.dll $libname.a' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2891 dynamic_linker='OS/2 ld.exe' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2892 shlibpath_var=LIBPATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2893 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2894 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2895 osf3* | osf4* | osf5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2896 version_type=osf |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2897 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2898 soname_spec='${libname}${release}.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2899 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2900 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2901 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2902 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2903 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2904 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2905 sco3.2v5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2906 version_type=osf |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2907 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2908 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2909 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2910 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2911 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2912 solaris*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2913 version_type=linux |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2914 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2915 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2916 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2917 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2918 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2919 shlibpath_overrides_runpath=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2920 hardcode_into_libs=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2921 # ldd complains unless libraries are executable |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2922 postinstall_cmds='chmod +x $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2923 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2924 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2925 sunos4*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2926 version_type=sunos |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2927 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2928 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2929 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2930 shlibpath_overrides_runpath=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2931 if test "$with_gnu_ld" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2932 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2933 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2934 need_version=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2935 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2936 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2937 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2938 version_type=linux |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2939 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2940 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2941 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2942 case $host_vendor in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2943 sni) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2944 shlibpath_overrides_runpath=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2945 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2946 motorola) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2947 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2948 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2949 shlibpath_overrides_runpath=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2950 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2951 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2952 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2953 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2954 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2955 uts4*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2956 version_type=linux |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2957 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2958 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2959 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2960 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2961 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2962 dgux*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2963 version_type=linux |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2964 need_lib_prefix=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2965 need_version=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2966 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2967 soname_spec='${libname}${release}.so$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2968 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2969 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2970 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2971 sysv4*MP*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2972 if test -d /usr/nec ;then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2973 version_type=linux |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2974 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2975 soname_spec='$libname.so.$major' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2976 shlibpath_var=LD_LIBRARY_PATH |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2977 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2978 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2979 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2980 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2981 dynamic_linker=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2982 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2983 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2984 AC_MSG_RESULT([$dynamic_linker]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2985 test "$dynamic_linker" = no && can_build_shared=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2986 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2987 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2988 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2989 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2990 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2991 # Report the final consequences. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2992 AC_MSG_CHECKING([if libtool supports shared libraries]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2993 AC_MSG_RESULT([$can_build_shared]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2994 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2995 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2996 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2997 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2998 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
2999 AC_MSG_CHECKING([whether to build shared libraries]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3000 test "$can_build_shared" = "no" && enable_shared=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3001 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3002 # On AIX, shared libraries and static libraries use the same namespace, and |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3003 # are all built from PIC. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3004 case "$host_os" in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3005 aix3*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3006 test "$enable_shared" = yes && enable_static=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3007 if test -n "$RANLIB"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3008 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3009 postinstall_cmds='$RANLIB $lib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3010 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3011 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3012 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3013 aix4*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3014 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3015 test "$enable_shared" = yes && enable_static=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3016 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3017 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3018 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3019 AC_MSG_RESULT([$enable_shared]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3020 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3021 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3022 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3023 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3024 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3025 AC_MSG_CHECKING([whether to build static libraries]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3026 # Make sure either enable_shared or enable_static is yes. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3027 test "$enable_shared" = yes || enable_static=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3028 AC_MSG_RESULT([$enable_static]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3029 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3030 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3031 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3032 if test "$hardcode_action" = relink; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3033 # Fast installation is not supported |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3034 enable_fast_install=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3035 elif test "$shlibpath_overrides_runpath" = yes || |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3036 test "$enable_shared" = no; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3037 # Fast installation is not necessary |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3038 enable_fast_install=needless |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3039 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3040 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3041 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3042 if test "$GCC" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3044 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3045 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3046 AC_LIBTOOL_DLOPEN_SELF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3047 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3048 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3049 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3050 if test "$enable_shared" = yes && test "$GCC" = yes; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3051 case $archive_cmds in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3052 *'~'*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3053 # FIXME: we may have to deal with multi-command sequences. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3054 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3055 '$CC '*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3056 # Test whether the compiler implicitly links with -lc since on some |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3057 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3058 # to ld, don't add -lc before -lgcc. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3059 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3060 AC_CACHE_VAL([lt_cv_archive_cmds_need_lc], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3061 [$rm conftest* |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3062 echo 'static int dummy;' > conftest.$ac_ext |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3063 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3064 if AC_TRY_EVAL(ac_compile); then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3065 soname=conftest |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3066 lib=conftest |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3067 libobjs=conftest.$ac_objext |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3068 deplibs= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3069 wl=$lt_cv_prog_cc_wl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3070 compiler_flags=-v |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3071 linker_flags=-v |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3072 verstring= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3073 output_objdir=. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3074 libname=conftest |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3075 save_allow_undefined_flag=$allow_undefined_flag |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3076 allow_undefined_flag= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3077 if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3078 then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3079 lt_cv_archive_cmds_need_lc=no |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3080 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3081 lt_cv_archive_cmds_need_lc=yes |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3082 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3083 allow_undefined_flag=$save_allow_undefined_flag |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3084 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3085 cat conftest.err 1>&5 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3086 fi]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3087 AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3088 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3089 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3090 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3091 need_lc=${lt_cv_archive_cmds_need_lc-yes} |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3092 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3093 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3094 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3095 ## FIXME: this should be a separate macro |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3096 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3097 # The second clause should only fire when bootstrapping the |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3098 # libtool distribution, otherwise you forgot to ship ltmain.sh |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3099 # with your package, and you will get complaints that there are |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3100 # no rules to generate ltmain.sh. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3101 if test -f "$ltmain"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3102 : |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3103 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3104 # If there is no Makefile yet, we rely on a make rule to execute |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3105 # `config.status --recheck' to rerun these tests and create the |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3106 # libtool script then. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3107 test -f Makefile && make "$ltmain" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3108 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3109 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3110 if test -f "$ltmain"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3111 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3112 $rm -f "${ofile}T" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3113 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3114 echo creating $ofile |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3115 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3116 # Now quote all the things that may contain metacharacters while being |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3117 # careful not to overquote the AC_SUBSTed values. We take copies of the |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3118 # variables and quote the copies for generation of the libtool script. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3119 for var in echo old_CC old_CFLAGS \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3120 AR AR_FLAGS CC LD LN_S NM SHELL \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3121 reload_flag reload_cmds wl \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3122 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3123 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3124 library_names_spec soname_spec \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3125 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3126 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3127 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3128 old_striplib striplib file_magic_cmd export_symbols_cmds \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3129 deplibs_check_method allow_undefined_flag no_undefined_flag \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3130 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3131 global_symbol_to_c_name_address \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3132 hardcode_libdir_flag_spec hardcode_libdir_separator \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3133 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3134 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3135 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3136 case $var in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3137 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3138 old_postinstall_cmds | old_postuninstall_cmds | \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3139 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3140 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3141 postinstall_cmds | postuninstall_cmds | \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3142 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3143 # Double-quote double-evaled strings. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3145 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3146 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3148 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3149 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3150 done |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3151 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3152 cat <<__EOF__ > "${ofile}T" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3153 #! $SHELL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3154 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3155 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3156 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3157 # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3158 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3159 # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3160 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3161 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3162 # This program is free software; you can redistribute it and/or modify |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3163 # it under the terms of the GNU General Public License as published by |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3164 # the Free Software Foundation; either version 2 of the License, or |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3165 # (at your option) any later version. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3166 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3167 # This program is distributed in the hope that it will be useful, but |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3168 # WITHOUT ANY WARRANTY; without even the implied warranty of |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3169 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3170 # General Public License for more details. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3171 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3172 # You should have received a copy of the GNU General Public License |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3173 # along with this program; if not, write to the Free Software |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3174 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3175 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3176 # As a special exception to the GNU General Public License, if you |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3177 # distribute this file as part of a program that contains a |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3178 # configuration script generated by Autoconf, you may include it under |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3179 # the same distribution terms that you use for the rest of that program. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3180 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3181 # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3182 Xsed="sed -e s/^X//" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3183 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3184 # The HP-UX ksh and POSIX shell print the target directory to stdout |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3185 # if CDPATH is set. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3186 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3187 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3188 # ### BEGIN LIBTOOL CONFIG |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3189 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3191 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3192 # Shell to use when invoking shell scripts. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3193 SHELL=$lt_SHELL |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3194 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3195 # Whether or not to build shared libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3196 build_libtool_libs=$enable_shared |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3197 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3198 # Whether or not to build static libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3199 build_old_libs=$enable_static |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3200 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3201 # Whether or not to add -lc for building shared libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3202 build_libtool_need_lc=$need_lc |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3203 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3204 # Whether or not to optimize for fast installation. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3205 fast_install=$enable_fast_install |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3206 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3207 # The host system. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3208 host_alias=$host_alias |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3209 host=$host |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3210 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3211 # An echo program that does not interpret backslashes. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3212 echo=$lt_echo |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3213 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3214 # The archiver. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3215 AR=$lt_AR |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3216 AR_FLAGS=$lt_AR_FLAGS |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3217 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3218 # The default C compiler. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3219 CC=$lt_CC |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3220 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3221 # Is the compiler the GNU C compiler? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3222 with_gcc=$GCC |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3223 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3224 # The linker used to build libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3225 LD=$lt_LD |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3226 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3227 # Whether we need hard or soft links. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3228 LN_S=$lt_LN_S |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3229 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3230 # A BSD-compatible nm program. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3231 NM=$lt_NM |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3232 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3233 # A symbol stripping program |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3234 STRIP=$STRIP |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3235 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3236 # Used to examine libraries when file_magic_cmd begins "file" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3237 MAGIC_CMD=$MAGIC_CMD |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3238 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3239 # Used on cygwin: DLL creation program. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3240 DLLTOOL="$DLLTOOL" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3241 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3242 # Used on cygwin: object dumper. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3243 OBJDUMP="$OBJDUMP" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3244 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3245 # Used on cygwin: assembler. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3246 AS="$AS" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3247 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3248 # The name of the directory that contains temporary libtool files. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3249 objdir=$objdir |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3250 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3251 # How to create reloadable object files. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3252 reload_flag=$lt_reload_flag |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3253 reload_cmds=$lt_reload_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3254 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3255 # How to pass a linker flag through the compiler. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3256 wl=$lt_wl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3257 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3258 # Object file suffix (normally "o"). |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3259 objext="$ac_objext" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3260 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3261 # Old archive suffix (normally "a"). |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3262 libext="$libext" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3263 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3264 # Executable file suffix (normally ""). |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3265 exeext="$exeext" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3266 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3267 # Additional compiler flags for building library objects. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3268 pic_flag=$lt_pic_flag |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3269 pic_mode=$pic_mode |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3270 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3271 # Does compiler simultaneously support -c and -o options? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3272 compiler_c_o=$lt_compiler_c_o |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3273 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3274 # Can we write directly to a .lo ? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3275 compiler_o_lo=$lt_compiler_o_lo |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3276 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3277 # Must we lock files when doing compilation ? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3278 need_locks=$lt_need_locks |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3279 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3280 # Do we need the lib prefix for modules? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3281 need_lib_prefix=$need_lib_prefix |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3282 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3283 # Do we need a version for libraries? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3284 need_version=$need_version |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3285 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3286 # Whether dlopen is supported. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3287 dlopen_support=$enable_dlopen |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3288 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3289 # Whether dlopen of programs is supported. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3290 dlopen_self=$enable_dlopen_self |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3291 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3292 # Whether dlopen of statically linked programs is supported. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3293 dlopen_self_static=$enable_dlopen_self_static |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3294 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3295 # Compiler flag to prevent dynamic linking. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3296 link_static_flag=$lt_link_static_flag |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3297 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3298 # Compiler flag to turn off builtin functions. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3299 no_builtin_flag=$lt_no_builtin_flag |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3300 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3301 # Compiler flag to allow reflexive dlopens. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3302 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3303 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3304 # Compiler flag to generate shared objects directly from archives. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3305 whole_archive_flag_spec=$lt_whole_archive_flag_spec |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3306 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3307 # Compiler flag to generate thread-safe objects. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3308 thread_safe_flag_spec=$lt_thread_safe_flag_spec |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3309 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3310 # Library versioning type. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3311 version_type=$version_type |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3312 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3313 # Format of library name prefix. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3314 libname_spec=$lt_libname_spec |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3315 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3316 # List of archive names. First name is the real one, the rest are links. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3317 # The last name is the one that the linker finds with -lNAME. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3318 library_names_spec=$lt_library_names_spec |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3319 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3320 # The coded name of the library, if different from the real name. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3321 soname_spec=$lt_soname_spec |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3322 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3323 # Commands used to build and install an old-style archive. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3324 RANLIB=$lt_RANLIB |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3325 old_archive_cmds=$lt_old_archive_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3326 old_postinstall_cmds=$lt_old_postinstall_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3327 old_postuninstall_cmds=$lt_old_postuninstall_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3328 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3329 # Create an old-style archive from a shared archive. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3330 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3331 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3332 # Create a temporary old-style archive to link instead of a shared archive. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3333 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3334 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3335 # Commands used to build and install a shared archive. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3336 archive_cmds=$lt_archive_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3337 archive_expsym_cmds=$lt_archive_expsym_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3338 postinstall_cmds=$lt_postinstall_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3339 postuninstall_cmds=$lt_postuninstall_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3340 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3341 # Commands to strip libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3342 old_striplib=$lt_old_striplib |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3343 striplib=$lt_striplib |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3344 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3345 # Method to check whether dependent libraries are shared objects. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3346 deplibs_check_method=$lt_deplibs_check_method |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3347 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3348 # Command to use when deplibs_check_method == file_magic. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3349 file_magic_cmd=$lt_file_magic_cmd |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3350 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3351 # Flag that allows shared libraries with undefined symbols to be built. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3352 allow_undefined_flag=$lt_allow_undefined_flag |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3353 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3354 # Flag that forces no undefined symbols. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3355 no_undefined_flag=$lt_no_undefined_flag |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3356 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3357 # Commands used to finish a libtool library installation in a directory. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3358 finish_cmds=$lt_finish_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3359 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3360 # Same as above, but a single script fragment to be evaled but not shown. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3361 finish_eval=$lt_finish_eval |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3362 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3363 # Take the output of nm and produce a listing of raw symbols and C names. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3364 global_symbol_pipe=$lt_global_symbol_pipe |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3365 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3366 # Transform the output of nm in a proper C declaration |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3367 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3368 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3369 # Transform the output of nm in a C name address pair |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3370 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3371 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3372 # This is the shared library runtime path variable. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3373 runpath_var=$runpath_var |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3374 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3375 # This is the shared library path variable. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3376 shlibpath_var=$shlibpath_var |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3377 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3378 # Is shlibpath searched before the hard-coded library search path? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3379 shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3380 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3381 # How to hardcode a shared library path into an executable. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3382 hardcode_action=$hardcode_action |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3383 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3384 # Whether we should hardcode library paths into libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3385 hardcode_into_libs=$hardcode_into_libs |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3386 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3387 # Flag to hardcode \$libdir into a binary during linking. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3388 # This must work even if \$libdir does not exist. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3390 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3391 # Whether we need a single -rpath flag with a separated argument. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3392 hardcode_libdir_separator=$lt_hardcode_libdir_separator |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3393 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3394 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3395 # resulting binary. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3396 hardcode_direct=$hardcode_direct |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3397 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3398 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3399 # resulting binary. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3400 hardcode_minus_L=$hardcode_minus_L |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3401 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3402 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3403 # the resulting binary. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3404 hardcode_shlibpath_var=$hardcode_shlibpath_var |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3405 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3406 # Variables whose values should be saved in libtool wrapper scripts and |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3407 # restored at relink time. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3408 variables_saved_for_relink="$variables_saved_for_relink" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3409 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3410 # Whether libtool must link a program against all its dependency libraries. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3411 link_all_deplibs=$link_all_deplibs |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3412 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3413 # Compile-time system search path for libraries |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3415 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3416 # Run-time system search path for libraries |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3417 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3418 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3419 # Fix the shell variable \$srcfile for the compiler. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3420 fix_srcfile_path="$fix_srcfile_path" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3421 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3422 # Set to yes if exported symbols are required. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3423 always_export_symbols=$always_export_symbols |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3424 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3425 # The commands to list exported symbols. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3426 export_symbols_cmds=$lt_export_symbols_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3427 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3428 # The commands to extract the exported symbol list from a shared archive. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3429 extract_expsyms_cmds=$lt_extract_expsyms_cmds |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3430 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3431 # Symbols that should not be listed in the preloaded symbols. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3432 exclude_expsyms=$lt_exclude_expsyms |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3433 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3434 # Symbols that must always be exported. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3435 include_expsyms=$lt_include_expsyms |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3436 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3437 # ### END LIBTOOL CONFIG |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3438 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3439 __EOF__ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3440 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3441 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3442 aix3*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3443 cat <<\EOF >> "${ofile}T" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3444 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3445 # AIX sometimes has problems with the GCC collect2 program. For some |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3446 # reason, if we set the COLLECT_NAMES environment variable, the problems |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3447 # vanish in a puff of smoke. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3448 if test "X${COLLECT_NAMES+set}" != Xset; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3449 COLLECT_NAMES= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3450 export COLLECT_NAMES |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3451 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3452 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3453 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3454 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3455 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3456 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3457 cygwin* | mingw* | pw32* | os2*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3458 cat <<'EOF' >> "${ofile}T" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3459 # This is a source program that is used to create dlls on Windows |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3460 # Don't remove nor modify the starting and closing comments |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3461 # /* ltdll.c starts here */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3462 # #define WIN32_LEAN_AND_MEAN |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3463 # #include <windows.h> |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3464 # #undef WIN32_LEAN_AND_MEAN |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3465 # #include <stdio.h> |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3466 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3467 # #ifndef __CYGWIN__ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3468 # # ifdef __CYGWIN32__ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3469 # # define __CYGWIN__ __CYGWIN32__ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3470 # # endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3471 # #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3472 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3473 # #ifdef __cplusplus |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3474 # extern "C" { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3475 # #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3476 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3477 # #ifdef __cplusplus |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3478 # } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3479 # #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3480 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3481 # #ifdef __CYGWIN__ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3482 # #include <cygwin/cygwin_dll.h> |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3483 # DECLARE_CYGWIN_DLL( DllMain ); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3484 # #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3485 # HINSTANCE __hDllInstance_base; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3486 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3487 # BOOL APIENTRY |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3488 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3489 # { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3490 # __hDllInstance_base = hInst; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3491 # return TRUE; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3492 # } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3493 # /* ltdll.c ends here */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3494 # This is a source program that is used to create import libraries |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3495 # on Windows for dlls which lack them. Don't remove nor modify the |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3496 # starting and closing comments |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3497 # /* impgen.c starts here */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3498 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3499 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3500 # This file is part of GNU libtool. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3501 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3502 # This program is free software; you can redistribute it and/or modify |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3503 # it under the terms of the GNU General Public License as published by |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3504 # the Free Software Foundation; either version 2 of the License, or |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3505 # (at your option) any later version. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3506 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3507 # This program is distributed in the hope that it will be useful, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3508 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3509 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3510 # GNU General Public License for more details. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3511 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3512 # You should have received a copy of the GNU General Public License |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3513 # along with this program; if not, write to the Free Software |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3514 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3515 # */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3516 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3517 # #include <stdio.h> /* for printf() */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3518 # #include <unistd.h> /* for open(), lseek(), read() */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3519 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3520 # #include <string.h> /* for strdup() */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3521 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3522 # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3523 # #ifndef O_BINARY |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3524 # #define O_BINARY 0 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3525 # #endif |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3526 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3527 # static unsigned int |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3528 # pe_get16 (fd, offset) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3529 # int fd; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3530 # int offset; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3531 # { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3532 # unsigned char b[2]; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3533 # lseek (fd, offset, SEEK_SET); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3534 # read (fd, b, 2); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3535 # return b[0] + (b[1]<<8); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3536 # } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3537 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3538 # static unsigned int |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3539 # pe_get32 (fd, offset) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3540 # int fd; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3541 # int offset; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3542 # { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3543 # unsigned char b[4]; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3544 # lseek (fd, offset, SEEK_SET); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3545 # read (fd, b, 4); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3546 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3547 # } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3548 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3549 # static unsigned int |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3550 # pe_as32 (ptr) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3551 # void *ptr; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3552 # { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3553 # unsigned char *b = ptr; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3554 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3555 # } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3556 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3557 # int |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3558 # main (argc, argv) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3559 # int argc; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3560 # char *argv[]; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3561 # { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3562 # int dll; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3563 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3564 # unsigned long export_rva, export_size, nsections, secptr, expptr; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3565 # unsigned long name_rvas, nexp; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3566 # unsigned char *expdata, *erva; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3567 # char *filename, *dll_name; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3568 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3569 # filename = argv[1]; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3570 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3571 # dll = open(filename, O_RDONLY|O_BINARY); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3572 # if (dll < 1) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3573 # return 1; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3574 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3575 # dll_name = filename; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3576 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3577 # for (i=0; filename[i]; i++) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3578 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3579 # dll_name = filename + i +1; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3580 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3581 # pe_header_offset = pe_get32 (dll, 0x3c); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3582 # opthdr_ofs = pe_header_offset + 4 + 20; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3583 # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3584 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3585 # if (num_entries < 1) /* no exports */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3586 # return 1; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3587 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3588 # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3589 # export_size = pe_get32 (dll, opthdr_ofs + 100); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3590 # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3591 # secptr = (pe_header_offset + 4 + 20 + |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3592 # pe_get16 (dll, pe_header_offset + 4 + 16)); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3593 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3594 # expptr = 0; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3595 # for (i = 0; i < nsections; i++) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3596 # { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3597 # char sname[8]; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3598 # unsigned long secptr1 = secptr + 40 * i; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3599 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3600 # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3601 # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3602 # lseek(dll, secptr1, SEEK_SET); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3603 # read(dll, sname, 8); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3604 # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3605 # { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3606 # expptr = fptr + (export_rva - vaddr); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3607 # if (export_rva + export_size > vaddr + vsize) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3608 # export_size = vsize - (export_rva - vaddr); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3609 # break; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3610 # } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3611 # } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3612 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3613 # expdata = (unsigned char*)malloc(export_size); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3614 # lseek (dll, expptr, SEEK_SET); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3615 # read (dll, expdata, export_size); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3616 # erva = expdata - export_rva; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3617 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3618 # nexp = pe_as32 (expdata+24); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3619 # name_rvas = pe_as32 (expdata+32); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3620 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3621 # printf ("EXPORTS\n"); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3622 # for (i = 0; i<nexp; i++) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3623 # { |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3624 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3625 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3626 # } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3627 # |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3628 # return 0; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3629 # } |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3630 # /* impgen.c ends here */ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3631 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3632 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3633 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3634 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3635 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3636 # We use sed instead of cat because bash on DJGPP gets confused if |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3637 # if finds mixed CR/LF and LF-only lines. Since sed operates in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3638 # text mode, it properly converts lines to CR/LF. This bash problem |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3639 # is reportedly fixed, but why not run on old versions too? |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3640 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3641 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3642 mv -f "${ofile}T" "$ofile" || \ |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3643 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3644 chmod +x "$ofile" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3645 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3646 ## |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3647 ## END FIXME |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3648 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3649 ])# _LT_AC_LTCONFIG_HACK |
73 | 3650 |
3651 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3652 AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) |
73 | 3653 |
3654 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3655 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) |
73 | 3656 |
3657 # AC_ENABLE_SHARED - implement the --enable-shared flag | |
3658 # Usage: AC_ENABLE_SHARED[(DEFAULT)] | |
3659 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | |
3660 # `yes'. | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3661 AC_DEFUN([AC_ENABLE_SHARED], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3662 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
73 | 3663 AC_ARG_ENABLE(shared, |
3664 changequote(<<, >>)dnl | |
3665 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], | |
3666 changequote([, ])dnl | |
3667 [p=${PACKAGE-default} | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3668 case $enableval in |
73 | 3669 yes) enable_shared=yes ;; |
3670 no) enable_shared=no ;; | |
3671 *) | |
3672 enable_shared=no | |
3673 # Look at the argument we got. We use all the common list separators. | |
3674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3675 for pkg in $enableval; do | |
3676 if test "X$pkg" = "X$p"; then | |
3677 enable_shared=yes | |
3678 fi | |
3679 done | |
3680 IFS="$ac_save_ifs" | |
3681 ;; | |
3682 esac], | |
3683 enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl | |
3684 ]) | |
3685 | |
3686 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3687 AC_DEFUN([AC_DISABLE_SHARED], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3688 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
73 | 3689 AC_ENABLE_SHARED(no)]) |
3690 | |
3691 # AC_ENABLE_STATIC - implement the --enable-static flag | |
3692 # Usage: AC_ENABLE_STATIC[(DEFAULT)] | |
3693 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | |
3694 # `yes'. | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3695 AC_DEFUN([AC_ENABLE_STATIC], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3696 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
73 | 3697 AC_ARG_ENABLE(static, |
3698 changequote(<<, >>)dnl | |
3699 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], | |
3700 changequote([, ])dnl | |
3701 [p=${PACKAGE-default} | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3702 case $enableval in |
73 | 3703 yes) enable_static=yes ;; |
3704 no) enable_static=no ;; | |
3705 *) | |
3706 enable_static=no | |
3707 # Look at the argument we got. We use all the common list separators. | |
3708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3709 for pkg in $enableval; do | |
3710 if test "X$pkg" = "X$p"; then | |
3711 enable_static=yes | |
3712 fi | |
3713 done | |
3714 IFS="$ac_save_ifs" | |
3715 ;; | |
3716 esac], | |
3717 enable_static=AC_ENABLE_STATIC_DEFAULT)dnl | |
3718 ]) | |
3719 | |
3720 # AC_DISABLE_STATIC - set the default static flag to --disable-static | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3721 AC_DEFUN([AC_DISABLE_STATIC], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3722 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
73 | 3723 AC_ENABLE_STATIC(no)]) |
3724 | |
3725 | |
3726 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag | |
3727 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] | |
3728 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | |
3729 # `yes'. | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3730 AC_DEFUN([AC_ENABLE_FAST_INSTALL], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3731 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl |
73 | 3732 AC_ARG_ENABLE(fast-install, |
3733 changequote(<<, >>)dnl | |
3734 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], | |
3735 changequote([, ])dnl | |
3736 [p=${PACKAGE-default} | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3737 case $enableval in |
73 | 3738 yes) enable_fast_install=yes ;; |
3739 no) enable_fast_install=no ;; | |
3740 *) | |
3741 enable_fast_install=no | |
3742 # Look at the argument we got. We use all the common list separators. | |
3743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3744 for pkg in $enableval; do | |
3745 if test "X$pkg" = "X$p"; then | |
3746 enable_fast_install=yes | |
3747 fi | |
3748 done | |
3749 IFS="$ac_save_ifs" | |
3750 ;; | |
3751 esac], | |
3752 enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl | |
3753 ]) | |
3754 | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3755 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3756 AC_DEFUN([AC_DISABLE_FAST_INSTALL], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3757 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
73 | 3758 AC_ENABLE_FAST_INSTALL(no)]) |
3759 | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3760 # AC_LIBTOOL_PICMODE - implement the --with-pic flag |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3761 # Usage: AC_LIBTOOL_PICMODE[(MODE)] |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3762 # Where MODE is either `yes' or `no'. If omitted, it defaults to |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3763 # `both'. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3764 AC_DEFUN([AC_LIBTOOL_PICMODE], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3765 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3766 pic_mode=ifelse($#,1,$1,default)]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3767 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3768 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3769 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3770 AC_DEFUN([AC_PATH_TOOL_PREFIX], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3771 [AC_MSG_CHECKING([for $1]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3772 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3773 [case $MAGIC_CMD in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3774 /*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3775 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3776 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3777 ?:/*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3778 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3779 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3780 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3781 ac_save_MAGIC_CMD="$MAGIC_CMD" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3783 dnl $ac_dummy forces splitting on constant user-supplied paths. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3784 dnl POSIX.2 word splitting is done only on the output of word expansions, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3785 dnl not every word. This closes a longstanding sh security hole. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3786 ac_dummy="ifelse([$2], , $PATH, [$2])" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3787 for ac_dir in $ac_dummy; do |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3788 test -z "$ac_dir" && ac_dir=. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3789 if test -f $ac_dir/$1; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3790 lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3791 if test -n "$file_magic_test_file"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3792 case $deplibs_check_method in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3793 "file_magic "*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3794 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3797 egrep "$file_magic_regex" > /dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3798 : |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3799 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3800 cat <<EOF 1>&2 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3801 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3802 *** Warning: the command libtool uses to detect shared libraries, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3803 *** $file_magic_cmd, produces output that libtool cannot recognize. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3804 *** The result is that libtool may fail to recognize shared libraries |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3805 *** as such. This will affect the creation of libtool libraries that |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3806 *** depend on shared libraries, but programs linked with such libtool |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3807 *** libraries will work regardless of this problem. Nevertheless, you |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3808 *** may want to report the problem to your system manager and/or to |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3809 *** bug-libtool@gnu.org |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3810 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3811 EOF |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3812 fi ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3813 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3814 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3815 break |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3816 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3817 done |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3818 IFS="$ac_save_ifs" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3819 MAGIC_CMD="$ac_save_MAGIC_CMD" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3820 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3821 esac]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3823 if test -n "$MAGIC_CMD"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3824 AC_MSG_RESULT($MAGIC_CMD) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3825 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3826 AC_MSG_RESULT(no) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3827 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3828 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3829 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3830 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3831 # AC_PATH_MAGIC - find a file program which can recognise a shared library |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3832 AC_DEFUN([AC_PATH_MAGIC], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3833 [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3834 AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3835 if test -z "$lt_cv_path_MAGIC_CMD"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3836 if test -n "$ac_tool_prefix"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3837 AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3838 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3839 MAGIC_CMD=: |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3840 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3841 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3842 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3843 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3844 |
73 | 3845 # AC_PROG_LD - find the path to the GNU or non-GNU linker |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3846 AC_DEFUN([AC_PROG_LD], |
73 | 3847 [AC_ARG_WITH(gnu-ld, |
3848 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], | |
3849 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) | |
3850 AC_REQUIRE([AC_PROG_CC])dnl | |
3851 AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
3852 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3853 AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl |
73 | 3854 ac_prog=ld |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3855 if test "$GCC" = yes; then |
73 | 3856 # Check if gcc -print-prog-name=ld gives a path. |
3857 AC_MSG_CHECKING([for ld used by GCC]) | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3858 case $host in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3859 *-*-mingw*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3860 # gcc leaves a trailing carriage return which upsets mingw |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3861 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3862 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3863 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3864 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3865 case $ac_prog in |
73 | 3866 # Accept absolute paths. |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3867 [[\\/]]* | [[A-Za-z]]:[[\\/]]*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3868 re_direlt='/[[^/]][[^/]]*/\.\./' |
73 | 3869 # Canonicalize the path of ld |
3870 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3871 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3872 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3873 done | |
3874 test -z "$LD" && LD="$ac_prog" | |
3875 ;; | |
3876 "") | |
3877 # If it fails, then pretend we aren't using GCC. | |
3878 ac_prog=ld | |
3879 ;; | |
3880 *) | |
3881 # If it is relative, then search for the first ld in PATH. | |
3882 with_gnu_ld=unknown | |
3883 ;; | |
3884 esac | |
3885 elif test "$with_gnu_ld" = yes; then | |
3886 AC_MSG_CHECKING([for GNU ld]) | |
3887 else | |
3888 AC_MSG_CHECKING([for non-GNU ld]) | |
3889 fi | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3890 AC_CACHE_VAL(lt_cv_path_LD, |
73 | 3891 [if test -z "$LD"; then |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
73 | 3893 for ac_dir in $PATH; do |
3894 test -z "$ac_dir" && ac_dir=. | |
3895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3896 lt_cv_path_LD="$ac_dir/$ac_prog" |
73 | 3897 # Check to see if the program is GNU ld. I'd rather use --version, |
3898 # but apparently some GNU ld's only accept -v. | |
3899 # Break only if it was the GNU/non-GNU ld that we prefer. | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3900 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
73 | 3901 test "$with_gnu_ld" != no && break |
3902 else | |
3903 test "$with_gnu_ld" != yes && break | |
3904 fi | |
3905 fi | |
3906 done | |
3907 IFS="$ac_save_ifs" | |
3908 else | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3909 lt_cv_path_LD="$LD" # Let the user override the test with a path. |
73 | 3910 fi]) |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3911 LD="$lt_cv_path_LD" |
73 | 3912 if test -n "$LD"; then |
3913 AC_MSG_RESULT($LD) | |
3914 else | |
3915 AC_MSG_RESULT(no) | |
3916 fi | |
3917 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | |
3918 AC_PROG_LD_GNU | |
3919 ]) | |
3920 | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3921 # AC_PROG_LD_GNU - |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3922 AC_DEFUN([AC_PROG_LD_GNU], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3923 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
73 | 3924 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
3925 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3926 lt_cv_prog_gnu_ld=yes |
73 | 3927 else |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3928 lt_cv_prog_gnu_ld=no |
73 | 3929 fi]) |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3930 with_gnu_ld=$lt_cv_prog_gnu_ld |
73 | 3931 ]) |
3932 | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3933 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3934 # -- PORTME Some linkers may need a different reload flag. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3935 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3936 [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3937 [lt_cv_ld_reload_flag='-r']) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3938 reload_flag=$lt_cv_ld_reload_flag |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3939 test -n "$reload_flag" && reload_flag=" $reload_flag" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3940 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3941 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3942 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3943 # -- PORTME fill in with the dynamic library characteristics |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3944 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3945 [AC_CACHE_CHECK([how to recognise dependant libraries], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3946 lt_cv_deplibs_check_method, |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3947 [lt_cv_file_magic_cmd='$MAGIC_CMD' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3948 lt_cv_file_magic_test_file= |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3949 lt_cv_deplibs_check_method='unknown' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3950 # Need to set the preceding variable on all platforms that support |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3951 # interlibrary dependencies. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3952 # 'none' -- dependencies not supported. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3953 # `unknown' -- same as none, but documents that we really don't know. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3954 # 'pass_all' -- all dependencies passed with no checks. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3955 # 'test_compile' -- check by making test program. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3956 # 'file_magic [[regex]]' -- check by looking for files in library path |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3957 # which responds to the $file_magic_cmd with a given egrep regex. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3958 # If you have `file' or equivalent on your system and you're not sure |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3959 # whether `pass_all' will *always* work, you probably want this one. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3960 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3961 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3962 aix4* | aix5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3963 lt_cv_deplibs_check_method=pass_all |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3964 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3965 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3966 beos*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3967 lt_cv_deplibs_check_method=pass_all |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3968 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3969 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3970 bsdi4*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3971 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3972 lt_cv_file_magic_cmd='/usr/bin/file -L' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3973 lt_cv_file_magic_test_file=/shlib/libc.so |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3974 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3975 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3976 cygwin* | mingw* | pw32*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3977 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3978 lt_cv_file_magic_cmd='$OBJDUMP -f' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3979 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3980 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3981 darwin* | rhapsody*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3982 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3983 lt_cv_file_magic_cmd='/usr/bin/file -L' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3984 case "$host_os" in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3985 rhapsody* | darwin1.[[012]]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3986 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3987 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3988 *) # Darwin 1.3 on |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3989 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3990 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3991 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3992 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3993 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3994 freebsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3995 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3996 case $host_cpu in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3997 i*86 ) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3998 # Not sure whether the presence of OpenBSD here was a mistake. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
3999 # Let's accept both of them until this is cleared up. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4000 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4001 lt_cv_file_magic_cmd=/usr/bin/file |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4002 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4003 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4004 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4005 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4006 lt_cv_deplibs_check_method=pass_all |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4007 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4008 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4009 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4010 gnu*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4011 lt_cv_deplibs_check_method=pass_all |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4012 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4013 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4014 hpux10.20*|hpux11*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4015 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4016 lt_cv_file_magic_cmd=/usr/bin/file |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4017 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4018 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4019 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4020 irix5* | irix6*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4021 case $host_os in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4022 irix5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4023 # this will be overridden with pass_all, but let us keep it just in case |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4024 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4025 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4026 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4027 case $LD in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4028 *-32|*"-32 ") libmagic=32-bit;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4029 *-n32|*"-n32 ") libmagic=N32;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4030 *-64|*"-64 ") libmagic=64-bit;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4031 *) libmagic=never-match;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4032 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4033 # this will be overridden with pass_all, but let us keep it just in case |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4034 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4035 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4036 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4037 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4038 lt_cv_deplibs_check_method=pass_all |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4039 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4040 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4041 # This must be Linux ELF. |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4042 linux-gnu*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4043 case $host_cpu in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4044 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4045 lt_cv_deplibs_check_method=pass_all ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4046 *) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4047 # glibc up to 2.1.1 does not perform some relocations on ARM |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4048 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4049 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4050 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4051 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4052 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4053 netbsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4054 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4055 lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4056 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4057 lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4058 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4059 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4060 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4061 newos6*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4062 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4063 lt_cv_file_magic_cmd=/usr/bin/file |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4064 lt_cv_file_magic_test_file=/usr/lib/libnls.so |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4065 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4066 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4067 openbsd*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4068 lt_cv_file_magic_cmd=/usr/bin/file |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4071 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4072 else |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4073 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4074 fi |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4075 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4076 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4077 osf3* | osf4* | osf5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4078 # this will be overridden with pass_all, but let us keep it just in case |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4079 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4080 lt_cv_file_magic_test_file=/shlib/libc.so |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4081 lt_cv_deplibs_check_method=pass_all |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4082 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4083 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4084 sco3.2v5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4085 lt_cv_deplibs_check_method=pass_all |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4086 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4087 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4088 solaris*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4089 lt_cv_deplibs_check_method=pass_all |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4090 lt_cv_file_magic_test_file=/lib/libc.so |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4091 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4092 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4093 sysv5uw[[78]]* | sysv4*uw2*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4094 lt_cv_deplibs_check_method=pass_all |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4095 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4096 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4097 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4098 case $host_vendor in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4099 motorola) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4100 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4101 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4102 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4103 ncr) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4104 lt_cv_deplibs_check_method=pass_all |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4105 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4106 sequent) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4107 lt_cv_file_magic_cmd='/bin/file' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4108 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4109 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4110 sni) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4111 lt_cv_file_magic_cmd='/bin/file' |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4112 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4113 lt_cv_file_magic_test_file=/lib/libc.so |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4114 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4115 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4116 ;; |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4117 esac |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4118 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4119 file_magic_cmd=$lt_cv_file_magic_cmd |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4120 deplibs_check_method=$lt_cv_deplibs_check_method |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4121 ]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4122 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4123 |
73 | 4124 # AC_PROG_NM - find the path to a BSD-compatible name lister |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4125 AC_DEFUN([AC_PROG_NM], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4126 [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4127 AC_MSG_CHECKING([for BSD-compatible nm]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4128 AC_CACHE_VAL(lt_cv_path_NM, |
73 | 4129 [if test -n "$NM"; then |
4130 # Let the user override the test. | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4131 lt_cv_path_NM="$NM" |
73 | 4132 else |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
73 | 4134 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
4135 test -z "$ac_dir" && ac_dir=. | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4136 tmp_nm=$ac_dir/${ac_tool_prefix}nm |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4137 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
73 | 4138 # Check to see if the nm accepts a BSD-compat flag. |
4139 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4140 # nm: unknown option "B" ignored | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4141 # Tru64's nm complains that /dev/null is an invalid object file |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4142 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4143 lt_cv_path_NM="$tmp_nm -B" |
73 | 4144 break |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4145 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4146 lt_cv_path_NM="$tmp_nm -p" |
73 | 4147 break |
4148 else | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4149 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
73 | 4150 continue # so that we can try to find one that supports BSD flags |
4151 fi | |
4152 fi | |
4153 done | |
4154 IFS="$ac_save_ifs" | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4155 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
73 | 4156 fi]) |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4157 NM="$lt_cv_path_NM" |
73 | 4158 AC_MSG_RESULT([$NM]) |
4159 ]) | |
4160 | |
4161 # AC_CHECK_LIBM - check for math library | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4162 AC_DEFUN([AC_CHECK_LIBM], |
73 | 4163 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4164 LIBM= | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4165 case $host in |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4166 *-*-beos* | *-*-cygwin* | *-*-pw32*) |
73 | 4167 # These system don't have libm |
4168 ;; | |
4169 *-ncr-sysv4.3*) | |
4170 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | |
4171 AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") | |
4172 ;; | |
4173 *) | |
4174 AC_CHECK_LIB(m, main, LIBM="-lm") | |
4175 ;; | |
4176 esac | |
4177 ]) | |
4178 | |
4179 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for | |
4180 # the libltdl convenience library and INCLTDL to the include flags for | |
4181 # the libltdl header and adds --enable-ltdl-convenience to the | |
4182 # configure arguments. Note that LIBLTDL and INCLTDL are not | |
4183 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not | |
4184 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed | |
4185 # with '${top_builddir}/' and INCLTDL will be prefixed with | |
4186 # '${top_srcdir}/' (note the single quotes!). If your package is not | |
4187 # flat and you're not using automake, define top_builddir and | |
4188 # top_srcdir appropriately in the Makefiles. | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4189 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4190 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4191 case $enable_ltdl_convenience in |
73 | 4192 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
4193 "") enable_ltdl_convenience=yes | |
4194 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
4195 esac | |
4196 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la | |
4197 INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | |
4198 ]) | |
4199 | |
4200 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for | |
4201 # the libltdl installable library and INCLTDL to the include flags for | |
4202 # the libltdl header and adds --enable-ltdl-install to the configure | |
4203 # arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is | |
4204 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed | |
4205 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will | |
4206 # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed | |
4207 # with '${top_srcdir}/' (note the single quotes!). If your package is | |
4208 # not flat and you're not using automake, define top_builddir and | |
4209 # top_srcdir appropriately in the Makefiles. | |
4210 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4211 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4212 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
73 | 4213 AC_CHECK_LIB(ltdl, main, |
4214 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | |
4215 [if test x"$enable_ltdl_install" = xno; then | |
4216 AC_MSG_WARN([libltdl not installed, but installation disabled]) | |
4217 else | |
4218 enable_ltdl_install=yes | |
4219 fi | |
4220 ]) | |
4221 if test x"$enable_ltdl_install" = x"yes"; then | |
4222 ac_configure_args="$ac_configure_args --enable-ltdl-install" | |
4223 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la | |
4224 INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | |
4225 else | |
4226 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | |
4227 LIBLTDL="-lltdl" | |
4228 INCLTDL= | |
4229 fi | |
4230 ]) | |
4231 | |
440
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4232 # old names |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4233 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4234 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4235 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4236 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4237 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4238 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4239 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4240 |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4241 # This is just to silence aclocal about the macro not being used |
6d94441c854e
Fixed (I hope!) some libtool problems.
Ryan C. Gordon <icculus@icculus.org>
parents:
73
diff
changeset
|
4242 ifelse([AC_DISABLE_FAST_INSTALL]) |