diff options
| author | Richard M. Stallman | 1994-02-11 21:32:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-11 21:32:49 +0000 |
| commit | 764b979bfe24a4fa1bbe6f30c0b71f6c3fbf344f (patch) | |
| tree | d156b2e33e7d689dcdd9885147800d0610534c74 | |
| parent | 237e6ab0561e86e787b2ccd129f009aa06d81c27 (diff) | |
| download | emacs-764b979bfe24a4fa1bbe6f30c0b71f6c3fbf344f.tar.gz emacs-764b979bfe24a4fa1bbe6f30c0b71f6c3fbf344f.zip | |
Don't initialize CC.
(creating src/Makefile): Also generate -U switches
for symbols in the $configuration value.
(creating src/Makefile): Delete blank lines along with lines of whitespace.
Check for sys_siglist being declared in system header.
(m68k-motorola-sysv*, m68000-motorola-sysv*): Compute proper CC value.
| -rwxr-xr-x | configure1.in | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/configure1.in b/configure1.in index 526f834a415..bcef86a7b37 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -79,7 +79,6 @@ lisppath='${locallisppath}:${lispdir}' | |||
| 79 | etcdir='${datadir}/emacs/${version}/etc' | 79 | etcdir='${datadir}/emacs/${version}/etc' |
| 80 | lockdir='${statedir}/emacs/lock' | 80 | lockdir='${statedir}/emacs/lock' |
| 81 | archlibdir='${libdir}/emacs/${version}/${configuration}' | 81 | archlibdir='${libdir}/emacs/${version}/${configuration}' |
| 82 | CC= | ||
| 83 | 82 | ||
| 84 | # On Sun systems, people sometimes set up the variable CPP | 83 | # On Sun systems, people sometimes set up the variable CPP |
| 85 | # with a value that is a directory, not an executable at all. | 84 | # with a value that is a directory, not an executable at all. |
| @@ -580,7 +579,14 @@ case "${canonical}" in | |||
| 580 | ## Motorola Delta machines | 579 | ## Motorola Delta machines |
| 581 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | 580 | m68k-motorola-sysv* | m68000-motorola-sysv* ) |
| 582 | machine=delta opsys=usg5-3 | 581 | machine=delta opsys=usg5-3 |
| 583 | CC=gnucc | 582 | if [ -z "`type gnucc | grep 'not found'`" ] |
| 583 | then CC=gnucc | ||
| 584 | else | ||
| 585 | if [ -z "`type gcc | grep 'not found'`" ] | ||
| 586 | then CC=gcc | ||
| 587 | else CC=cc | ||
| 588 | fi | ||
| 589 | fi | ||
| 584 | ;; | 590 | ;; |
| 585 | m88k-motorola-sysv4* ) | 591 | m88k-motorola-sysv4* ) |
| 586 | machine=delta88k opsys=usg5-4 | 592 | machine=delta88k opsys=usg5-4 |
| @@ -1097,6 +1103,14 @@ dnl checks for header files | |||
| 1097 | AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h) | 1103 | AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h) |
| 1098 | AC_STDC_HEADERS | 1104 | AC_STDC_HEADERS |
| 1099 | AC_TIME_WITH_SYS_TIME | 1105 | AC_TIME_WITH_SYS_TIME |
| 1106 | dnl In Autoconf 1.8 use AC_SYS_SIGLIST_DECLARED instead of this. | ||
| 1107 | AC_COMPILE_CHECK(sys_siglist declaration in signal.h or unistd.h, | ||
| 1108 | [#include <signal.h> | ||
| 1109 | /* NetBSD declares sys_siglist in <unistd.h>. */ | ||
| 1110 | #ifdef HAVE_UNISTD_H | ||
| 1111 | #include <unistd.h> | ||
| 1112 | #endif], [char *msg = *(sys_siglist + 1);], | ||
| 1113 | AC_DEFINE(SYS_SIGLIST_DECLARED)) | ||
| 1100 | 1114 | ||
| 1101 | dnl checks for typedefs | 1115 | dnl checks for typedefs |
| 1102 | AC_RETSIGTYPE | 1116 | AC_RETSIGTYPE |
| @@ -1509,12 +1523,13 @@ AC_OUTPUT(Makefile lib-src/Makefile oldXMenu/Makefile lwlib/Makefile src/Makefil | |||
| 1509 | # after src/config.h is built, since we rely on that file. | 1523 | # after src/config.h is built, since we rely on that file. |
| 1510 | 1524 | ||
| 1511 | changequote(,)dnl The horror, the horror. | 1525 | changequote(,)dnl The horror, the horror. |
| 1512 | # Now get this: Some word that is part of the ${srcdir} directory name might, | 1526 | # Now get this: Some word that is part of the ${srcdir} directory name |
| 1513 | # just might, happen to be an identifier like `sun4' or `i386' or something, | 1527 | # or the ${configuration} value might, just might, happen to be an |
| 1514 | # and be predefined by the C preprocessor to some helpful value like 1, or | 1528 | # identifier like `sun4' or `i386' or something, and be predefined by |
| 1515 | # maybe the empty string. Needless to say consequent macro substitutions are | 1529 | # the C preprocessor to some helpful value like 1, or maybe the empty |
| 1516 | # less than conducive to the makefile finding the correct directory. | 1530 | # string. Needless to say consequent macro substitutions are less |
| 1517 | srcdir_undefs="`echo $top_srcdir | | 1531 | # than conducive to the makefile finding the correct directory. |
| 1532 | undefs="`echo $top_srcdir $configuration | | ||
| 1518 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/ */ -U/g' \ | 1533 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/ */ -U/g' \ |
| 1519 | -e 's/ -U$//' -e 's/^[^ ]/-U/' \ | 1534 | -e 's/ -U$//' -e 's/^[^ ]/-U/' \ |
| 1520 | -e 's/-U[0-9][^ ]*//g' \ | 1535 | -e 's/-U[0-9][^ ]*//g' \ |
| @@ -1527,8 +1542,8 @@ echo creating src/Makefile | |||
| 1527 | sed -e 's@^# \(Generated.*\)$@/* \1 */@' \ | 1542 | sed -e 's@^# \(Generated.*\)$@/* \1 */@' \ |
| 1528 | -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | 1543 | -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ |
| 1529 | < Makefile.in > junk.c | 1544 | < Makefile.in > junk.c |
| 1530 | $CPP $srcdir_undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | | 1545 | $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | |
| 1531 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ][ ]*$/d' > Makefile.new | 1546 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > Makefile.new |
| 1532 | rm -f junk.c | 1547 | rm -f junk.c |
| 1533 | chmod 444 Makefile.new; | 1548 | chmod 444 Makefile.new; |
| 1534 | mv -f Makefile.new Makefile; | 1549 | mv -f Makefile.new Makefile; |