comparison configure @ 108798:dedcf813aa69

Do not preprocess src/Makefile.in. * configure.in: Do not preprocess src/Makefile.in. (cpp_undefs, CPP_NEED_TRADITIONAL): Remove. (AC_EGREP_CPP): Test no longer needed. * configure: Regenerate. * config.bat: Do not preprocess src/Makefile.in. * make-dist: No more Makefile.c files. * INSTALL, src/README: Makefiles are not preprocessed. * src/Makefile.in, src/autodeps.mk, src/deps.mk, src/ns.mk: Convert comments to Makefile format. * lib-src/Makefile.in (distclean): No more Makefile.c. * src/Makefile.in (bootstrap-clean): No more Makefile.c. * admin/notes/cpp: Remove file. * admin/quick-install-emacs (AVOID): No more Makefile.c files. * etc/PROBLEMS, etc/MACHINES: Remove details of cpp problems which can no longer occur.
author Glenn Morris <rgm@gnu.org>
date Wed, 26 May 2010 22:43:27 -0700
parents 939ecb6ccd4d
children cf18062c81fd
comparison
equal deleted inserted replaced
108797:d674108e8753 108798:dedcf813aa69
26692 fi 26692 fi
26693 26693
26694 26694
26695 26695
26696 test "x$LINKER" = "x" && LINKER=ld 26696 test "x$LINKER" = "x" && LINKER=ld
26697 ## FIXME? What setting of YMF_PASS_LDFLAGS should this have? 26697 ## FIXME? What setting of EDIT_LDFLAGS should this have?
26698 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic" 26698 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
26699 26699
26700 26700
26701 26701
26702 26702
26703 ## FIXME? The logic here is not precisely the same as that above 26703 ## FIXME? The logic here is not precisely the same as that above.
26704 ## setting YMF_PASS_LDFLAGS. There is no check here for a pre-defined 26704 ## There is no check here for a pre-defined LINKER.
26705 ## LINKER. Should we only be setting LIB_GCC if LD ~ -nostdlib? 26705 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
26706 LIB_GCC= 26706 LIB_GCC=
26707 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then 26707 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26708 26708
26709 case "$opsys" in 26709 case "$opsys" in
26710 ## cygwin: don't link against static libgcc. 26710 ## cygwin: don't link against static libgcc.
26846 test "${prefix}" != NONE && 26846 test "${prefix}" != NONE &&
26847 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` 26847 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26848 test "${exec_prefix}" != NONE && 26848 test "${exec_prefix}" != NONE &&
26849 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` 26849 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26850 26850
26851 # Now get this: Some word that is part of the ${srcdir} directory name 26851 ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
26852 # or the ${configuration} value might, just might, happen to be an
26853 # identifier like `sun4' or `i386' or something, and be predefined by
26854 # the C preprocessor to some helpful value like 1, or maybe the empty
26855 # string. Needless to say consequent macro substitutions are less
26856 # than conducive to the makefile finding the correct directory.
26857 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26858 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26859 # so that cannot have been doing anything.
26860 cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 |
26861 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26862 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26863
26864 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26865 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26866 ## from Makefile.c can correctly provide the arg `-traditional' to the
26867 ## C preprocessor.
26868
26869 cat >conftest.$ac_ext <<_ACEOF
26870 /* confdefs.h. */
26871 _ACEOF
26872 cat confdefs.h >>conftest.$ac_ext
26873 cat >>conftest.$ac_ext <<_ACEOF
26874 /* end confdefs.h. */
26875 yes..yes
26876 _ACEOF
26877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26878 $EGREP "yes..yes" >/dev/null 2>&1; then
26879 CPP_NEED_TRADITIONAL=no
26880 else
26881 CPP_NEED_TRADITIONAL=yes
26882 fi
26883 rm -f conftest*
26884
26885
26886 ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26887 26852
26888 ac_config_commands="$ac_config_commands default" 26853 ac_config_commands="$ac_config_commands default"
26889 26854
26890 cat >confcache <<\_ACEOF 26855 cat >confcache <<\_ACEOF
26891 # This file is a shell script that caches the results of configure 26856 # This file is a shell script that caches the results of configure
27468 _ACEOF 27433 _ACEOF
27469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27470 # 27435 #
27471 # INIT-COMMANDS 27436 # INIT-COMMANDS
27472 # 27437 #
27473 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs" 27438 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
27474 27439
27475 _ACEOF 27440 _ACEOF
27476 27441
27477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27478 27443
27486 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; 27451 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27487 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;; 27452 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27488 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; 27453 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27489 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;; 27454 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27490 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;; 27455 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27491 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; 27456 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27492 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; 27457 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27493 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; 27458 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27494 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 27459 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27495 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 27460 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27496 27461
28153 ### Make the necessary directories, if they don't exist. 28118 ### Make the necessary directories, if they don't exist.
28154 for dir in etc lisp ; do 28119 for dir in etc lisp ; do
28155 test -d ${dir} || mkdir ${dir} 28120 test -d ${dir} || mkdir ${dir}
28156 done 28121 done
28157 28122
28158 # Build src/Makefile from ${srcdir}/src/Makefile.c
28159 # This must be done after src/config.h is built, since we rely on that file.
28160
28161 echo creating src/epaths.h 28123 echo creating src/epaths.h
28162 ${MAKE-make} epaths-force 28124 ${MAKE-make} epaths-force
28163
28164 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28165 # `..' to `. .' unless invoked with -traditional
28166
28167 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
28168 CPPFLAGS="$CPPFLAGS -traditional"
28169 fi
28170
28171 echo creating src/Makefile
28172 ( cd src
28173 rm -f junk.c junk1.c junk2.c
28174 sed -e '/start of cpp stuff/q' \
28175 < Makefile.c > junk1.c
28176 sed -e '1,/start of cpp stuff/d'\
28177 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28178 < Makefile.c > junk.c
28179 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
28180 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
28181 cat junk1.c junk2.c > Makefile.new
28182 rm -f junk.c junk1.c junk2.c
28183 chmod 444 Makefile.new
28184 mv -f Makefile.new Makefile
28185 )
28186 28125
28187 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then 28126 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28188 echo creating src/.gdbinit 28127 echo creating src/.gdbinit
28189 echo source $srcdir/src/.gdbinit > src/.gdbinit 28128 echo source $srcdir/src/.gdbinit > src/.gdbinit
28190 fi 28129 fi