comparison aclocal.m4 @ 1678:2422c1cd1afd

[xemacs-hg @ 2003-09-12 02:02:06 by james] Andrew Begel's patch to make modules build correctly on MacOS X.
author james
date Fri, 12 Sep 2003 02:02:07 +0000
parents baca156a450b
children b5db5c9230b1
comparison
equal deleted inserted replaced
1677:c28d1cb3107d 1678:2422c1cd1afd
90 case "$xehost_os" in 90 case "$xehost_os" in
91 aix[[3-9]]* | irix[[5-9]]* | osf[[3-9]]) 91 aix[[3-9]]* | irix[[5-9]]* | osf[[3-9]])
92 # PIC is the default for these OSes. 92 # PIC is the default for these OSes.
93 ;; 93 ;;
94 94
95 *darwin*) dll_cflags='-dynamic'
96 ;;
97
95 os2*) 98 os2*)
96 # We can build DLLs from non-PIC. 99 # We can build DLLs from non-PIC.
97 ;; 100 ;;
98 amigaos*) 101 amigaos*)
99 # FIXME: we need at least 68020 code to build shared libraries, but 102 # FIXME: we need at least 68020 code to build shared libraries, but
242 cc_produces_so=no 245 cc_produces_so=no
243 xldf= 246 xldf=
244 xcldf= 247 xcldf=
245 AC_MSG_CHECKING(if C compiler can produce shared libraries) 248 AC_MSG_CHECKING(if C compiler can produce shared libraries)
246 if test "$XEGCC" = yes; then 249 if test "$XEGCC" = yes; then
247 xcldf="-shared" 250 case "$xehost_os" in
248 xldf="-shared" 251 *darwin*)
252 xcldf='-bundle'
253 xldf='-bundle -bundle_loader ../../src/xemacs'
254 ;;
255 *)
256 xcldf="-shared"
257 xldf="-shared"
258 ;;
259 esac
249 else # Not using GCC 260 else # Not using GCC
250 case "$xehost_os" in 261 case "$xehost_os" in
251 aix[[3-9]]*) 262 aix[[3-9]]*)
252 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc" 263 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
253 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc" 264 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
391 ;; 402 ;;
392 esac 403 esac
393 404
394 if test "$cc_produces_so" = "yes"; then 405 if test "$cc_produces_so" = "yes"; then
395 dll_ld=$CC 406 dll_ld=$CC
396 dll_ldflags=$xcldf 407 case "$xehost_os" in
408 *darwin*)
409 dnl On Darwin, we test with xcldf, but we use xldf
410 dll_ldflags=$xldf
411 ;;
412 *)
413 dll_ldflags=$xcldf
414 ;;
415 esac
397 can_build_shared=yes 416 can_build_shared=yes
398 ld_shlibs=yes 417 ld_shlibs=yes
399 else 418 else
400 # OK - only NOW do we futz about with ld. 419 # OK - only NOW do we futz about with ld.
401 # See if the linker supports building shared libraries. 420 # See if the linker supports building shared libraries.
540 case "$xehost_os" in 559 case "$xehost_os" in
541 aix[[3-9]]*) 560 aix[[3-9]]*)
542 ld_dynamic_link_flags= 561 ld_dynamic_link_flags=
543 ;; 562 ;;
544 563
564 *darwin*)
565 ld_dynamic_link_flags=
566 ;;
567
545 freebsd2.2*) 568 freebsd2.2*)
546 ld_dynamic_link_flags= 569 ld_dynamic_link_flags=
547 ;; 570 ;;
548 571
549 freebsd2*) 572 freebsd2*)