diff options
| author | Jim Blandy | 1993-06-08 07:18:40 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-08 07:18:40 +0000 |
| commit | 4ed216b38b147c21be99ab39eeb1a87048595342 (patch) | |
| tree | c3f3852d3dae732f5de28eb39e71fe0eda34dde8 | |
| parent | ea2c2e02dbeb12cf77d6b277d1a496d8a97fe815 (diff) | |
| download | emacs-4ed216b38b147c21be99ab39eeb1a87048595342.tar.gz emacs-4ed216b38b147c21be99ab39eeb1a87048595342.zip | |
* configure.in (CFLAGS): Don't set this according to the value of
the GCC shell variable. Instead, consult the machine and system
files for the values of C_OPTIMIZE_SWITCH and C_DEBUG_SWITCH, and
test __GNUC__ while we're at it.
* configure.in: Check to see if the system has -ldnet.
| -rwxr-xr-x | configure1.in | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/configure1.in b/configure1.in index 1d494e24dc6..30cfb321170 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -921,11 +921,6 @@ case ${with_gcc} in | |||
| 921 | ] AC_PROG_CC [ | 921 | ] AC_PROG_CC [ |
| 922 | esac | 922 | esac |
| 923 | 923 | ||
| 924 | CFLAGS='-g' | ||
| 925 | if test -n "${GCC}"; then | ||
| 926 | CFLAGS='-g -O' | ||
| 927 | fi | ||
| 928 | |||
| 929 | #### Some other nice autoconf tests. If you add a test here which | 924 | #### Some other nice autoconf tests. If you add a test here which |
| 930 | #### should make an entry in src/config.h, don't forget to add an | 925 | #### should make an entry in src/config.h, don't forget to add an |
| 931 | #### #undef clause to src/config.h.in for autoconf to modify. | 926 | #### #undef clause to src/config.h.in for autoconf to modify. |
| @@ -942,6 +937,9 @@ AC_HAVE_HEADERS(sys/timeb.h sys/time.h) | |||
| 942 | AC_STDC_HEADERS | 937 | AC_STDC_HEADERS |
| 943 | AC_TIME_WITH_SYS_TIME | 938 | AC_TIME_WITH_SYS_TIME |
| 944 | 939 | ||
| 940 | dnl checks for library files | ||
| 941 | AC_HAVE_LIBRARY(-ldnet) | ||
| 942 | |||
| 945 | dnl checks for typedefs | 943 | dnl checks for typedefs |
| 946 | AC_RETSIGTYPE | 944 | AC_RETSIGTYPE |
| 947 | 945 | ||
| @@ -1085,6 +1083,20 @@ echo ' | |||
| 1085 | #else | 1083 | #else |
| 1086 | @configure@ system_malloc=no | 1084 | @configure@ system_malloc=no |
| 1087 | #endif | 1085 | #endif |
| 1086 | |||
| 1087 | #ifndef C_DEBUG_SWITCH | ||
| 1088 | #define C_DEBUG_SWITCH -g | ||
| 1089 | #endif | ||
| 1090 | |||
| 1091 | #ifndef C_OPTIMIZE_SWITCH | ||
| 1092 | #define C_OPTIMIZE_SWITCH -O | ||
| 1093 | #endif | ||
| 1094 | |||
| 1095 | #ifdef __GNUC__ | ||
| 1096 | @configure@ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH | ||
| 1097 | #else | ||
| 1098 | @configure@ CFLAGS=C_DEBUG_SWITCH | ||
| 1099 | #endif | ||
| 1088 | ' > ${tempcname} | 1100 | ' > ${tempcname} |
| 1089 | # The value of CPP is a quoted variable reference, so we need to do this | 1101 | # The value of CPP is a quoted variable reference, so we need to do this |
| 1090 | # to get its actual value... | 1102 | # to get its actual value... |