Mercurial > emacs
comparison configure @ 108783:3eac08e0e4ee
merge trunk
author | Kenichi Handa <handa@etlken> |
---|---|
date | Wed, 26 May 2010 09:36:51 +0900 |
parents | f6d1128c9985 |
children | b77dfb08cff8 |
comparison
equal
deleted
inserted
replaced
108762:d3db77511b9e | 108783:3eac08e0e4ee |
---|---|
818 RALLOC_OBJ | 818 RALLOC_OBJ |
819 CYGWIN_OBJ | 819 CYGWIN_OBJ |
820 PRE_ALLOC_OBJ | 820 PRE_ALLOC_OBJ |
821 POST_ALLOC_OBJ | 821 POST_ALLOC_OBJ |
822 LD_SWITCH_SYSTEM_TEMACS | 822 LD_SWITCH_SYSTEM_TEMACS |
823 LD_SWITCH_SYSTEM_EXTRA | |
824 YMF_PASS_LDFLAGS | 823 YMF_PASS_LDFLAGS |
825 LINKER | 824 LINKER |
826 LIB_GCC | 825 LIB_GCC |
827 MOUSE_SUPPORT | 826 MOUSE_SUPPORT |
828 TOOLTIP_SUPPORT | 827 TOOLTIP_SUPPORT |
5928 esac | 5927 esac |
5929 | 5928 |
5930 | 5929 |
5931 ac_link="$ac_link $LD_SWITCH_SYSTEM" | 5930 ac_link="$ac_link $LD_SWITCH_SYSTEM" |
5932 | 5931 |
5933 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference | 5932 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX, |
5934 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using | 5933 ## which has not been defined yet. When this was handled with cpp, |
5935 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different | 5934 ## it was expanded to null when configure sourced the s/*.h file. |
5936 ## values in configure and the Makefiles. How helpful. | 5935 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles. |
5937 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead? | 5936 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS |
5937 ## (or somesuch), but because it is supposed to go at the _front_ | |
5938 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way. | |
5939 ## Compare with the gnu-linux case below, which added to the end | |
5940 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of | |
5941 ## LD_SWITCH_SYSTEM_TEMACS. | |
5938 case "$opsys" in | 5942 case "$opsys" in |
5939 gnu-linux) | |
5940 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time. | |
5941 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;; | |
5942 | |
5943 netbsd|openbsd) | 5943 netbsd|openbsd) |
5944 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R. | 5944 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R. |
5945 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;; | 5945 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;; |
5946 esac | 5946 esac |
5947 | 5947 |
26593 | 26593 |
26594 case "$opsys" in | 26594 case "$opsys" in |
26595 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;; | 26595 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;; |
26596 | 26596 |
26597 darwin) | 26597 darwin) |
26598 ## The -headerpad option tells ld (see man page) to leave room at the | 26598 ## The -headerpad option tells ld (see man page) to leave room at the |
26599 ## end of the header for adding load commands. Needed for dumping. | 26599 ## end of the header for adding load commands. Needed for dumping. |
26600 ## 0x690 is the total size of 30 segment load commands (at 56 | 26600 ## 0x690 is the total size of 30 segment load commands (at 56 |
26601 ## each); under Cocoa 31 commands are required. | 26601 ## each); under Cocoa 31 commands are required. |
26602 if test "$HAVE_NS" = "yes"; then | 26602 if test "$HAVE_NS" = "yes"; then |
26603 libs_nsgui="-framework AppKit" | 26603 libs_nsgui="-framework AppKit" |
26604 headerpad_extra=6C8 | 26604 headerpad_extra=6C8 |
26605 else | 26605 else |
26606 libs_nsgui= | 26606 libs_nsgui= |
26607 headerpad_extra=690 | 26607 headerpad_extra=690 |
26608 fi | 26608 fi |
26609 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" | 26609 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" |
26610 ;; | 26610 |
26611 ## This is here because src/Makefile.in did some extra fiddling around | |
26612 ## with LD_SWITCH_SYSTEM. The cpp logic was: | |
26613 ## #ifndef LD_SWITCH_SYSTEM | |
26614 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF))) | |
26615 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to: | |
26616 ## not using gcc, darwin system not on an alpha (ie darwin, since | |
26617 ## darwin + alpha does not occur). | |
26618 ## Because this was done in src/Makefile.in, the resulting part of | |
26619 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link). | |
26620 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS, | |
26621 ## rather than LD_SWITCH_SYSTEM. | |
26622 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \ | |
26623 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS" | |
26624 ;; | |
26625 | |
26626 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time. | |
26627 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at | |
26628 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX | |
26629 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM | |
26630 ## had different values in configure (in ac_link) and src/Makefile.in. | |
26631 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS. | |
26632 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;; | |
26611 | 26633 |
26612 *) LD_SWITCH_SYSTEM_TEMACS= ;; | 26634 *) LD_SWITCH_SYSTEM_TEMACS= ;; |
26613 esac | 26635 esac |
26614 | |
26615 | |
26616 | |
26617 ## This exists because src/Makefile.in did some extra fiddling around | |
26618 ## with LD_SWITCH_SYSTEM. The cpp logic was: | |
26619 ## #ifndef LD_SWITCH_SYSTEM | |
26620 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF))) | |
26621 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to: | |
26622 ## not using gcc, darwin system not on an alpha (ie darwin, since | |
26623 ## darwin + alpha does not occur). | |
26624 ## Note that unlike L_S_S, this is not used in ac_link. | |
26625 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \ | |
26626 test "$opsys" = "darwin"; then | |
26627 LD_SWITCH_SYSTEM_EXTRA="-X" | |
26628 else | |
26629 LD_SWITCH_SYSTEM_EXTRA= | |
26630 fi | |
26631 | 26636 |
26632 | 26637 |
26633 | 26638 |
26634 LINKER= | 26639 LINKER= |
26635 ORDINARY_LINK= | 26640 ORDINARY_LINK= |
28153 for dir in etc lisp ; do | 28158 for dir in etc lisp ; do |
28154 test -d ${dir} || mkdir ${dir} | 28159 test -d ${dir} || mkdir ${dir} |
28155 done | 28160 done |
28156 | 28161 |
28157 # Build src/Makefile from ${srcdir}/src/Makefile.c | 28162 # Build src/Makefile from ${srcdir}/src/Makefile.c |
28158 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
28159 # This must be done after src/config.h is built, since we rely on that file. | 28163 # This must be done after src/config.h is built, since we rely on that file. |
28160 | 28164 |
28161 echo creating src/epaths.h | 28165 echo creating src/epaths.h |
28162 ${MAKE-make} epaths-force | 28166 ${MAKE-make} epaths-force |
28163 | 28167 |