Mercurial > emacs
changeset 6845:e1420213cfdb
(window_system): If no X, set USE_X_TOOLKIT=no.
(printing the choices): State choice of toolkit.
(libsrc_libs): Recalculate after writing config.h;
then update lib-src/Makefile.
Conditionals testing for null $CC were backwards.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 13 Apr 1994 05:37:24 +0000 |
parents | 208d3f9f831d |
children | a6803ff29cca |
files | configure1.in |
diffstat | 1 files changed, 31 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/configure1.in Wed Apr 13 05:01:07 1994 +0000 +++ b/configure1.in Wed Apr 13 05:37:24 1994 +0000 @@ -1317,9 +1317,9 @@ #endif #ifdef __GNUC__ -configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH +configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH $(CFLAGS) #else -configure___ CFLAGS=C_DEBUG_SWITCH +configure___ CFLAGS=C_DEBUG_SWITCH $(CFLAGS) #endif ' > ${tempcname} # The value of CPP is a quoted variable reference, so we need to do this @@ -1409,7 +1409,6 @@ [ fi - #### Specify what sort of things we'll be editing into Makefile and config.h. ### Use configuration here uncanonicalized to avoid exceeding size limits. ] @@ -1433,7 +1432,6 @@ AC_SUBST(docdir) AC_SUBST(c_switch_system) AC_SUBST(c_switch_machine) -AC_SUBST(libsrc_libs) AC_SUBST(LD_SWITCH_X_SITE) AC_SUBST(LD_SWITCH_X_SITE_AUX) AC_SUBST(C_SWITCH_X_SITE) @@ -1537,6 +1535,7 @@ Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} What window system should Emacs use? ${window_system}${x_includes+ + What toolkit should Emacs use? ${USE_X_TOOLKIT} Where do we find X Windows header files? }${x_includes}${x_libraries+ Where do we find X Windows libraries? }${x_libraries} @@ -1549,6 +1548,7 @@ exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` ] AC_OUTPUT(Makefile lib-src/Makefile oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [ + # Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done # after src/config.h is built, since we rely on that file. @@ -1578,3 +1578,30 @@ chmod 444 Makefile.new; mv -f Makefile.new Makefile; )]) + +# Now recalculate libsrc_libs based on the new decisions made above, +# and substitute it into lib-src/Makefile. +# This is necessary in case the m/ or s/ file contains conditionals +# that test macros defined by config.h. + +[ +echo ' +#include "'${srcdir}'/src/'${opsysfile}'" +#include "'${srcdir}'/src/'${machfile}'" +#ifndef LIBS_MACHINE +#define LIBS_MACHINE +#endif +#ifndef LIBS_SYSTEM +#define LIBS_SYSTEM +#endif +configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM +' > ${tempcname} +${CPP} -Isrc ${tempcname} \ + | grep 'configure___' \ + | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/' > foofoo1 +eval `cat foofoo1` +rm ${tempcname} + +cat lib-src/Makefile | sed -e "s/@libsrc_libs@/$libsrc_libs/" > lib-src/Makefoo +mv lib-src/Makefoo lib-src/Makefile +] \ No newline at end of file