diff options
| author | Jim Blandy | 1993-05-04 14:17:07 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-04 14:17:07 +0000 |
| commit | a6eb67976982ccf22d8245e364e0641fdca8e11b (patch) | |
| tree | a073b43be100a45d5755b7c4bf5f18525e9594a1 | |
| parent | d03f79ef75b515dbb01a229d7766176ea67439b5 (diff) | |
| download | emacs-a6eb67976982ccf22d8245e364e0641fdca8e11b.tar.gz emacs-a6eb67976982ccf22d8245e364e0641fdca8e11b.zip | |
* configure.in: Use AC_HAVE_HEADERS to test for sys/time.h, and
call AC_STRUCT_TM to see what's in time.h.
* configure.in: Employ quoting stupidity to get the value of CPP
to expand properly.
| -rwxr-xr-x | configure1.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure1.in b/configure1.in index b642840db07..1a3915b019d 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -817,10 +817,11 @@ fi | |||
| 817 | #### Some other nice autoconf tests. | 817 | #### Some other nice autoconf tests. |
| 818 | ] | 818 | ] |
| 819 | AC_PROG_CPP | 819 | AC_PROG_CPP |
| 820 | AC_HAVE_HEADERS(sys/timeb.h) | 820 | AC_HAVE_HEADERS(sys/timeb.h sys/time.h) |
| 821 | AC_RETSIGTYPE | 821 | AC_RETSIGTYPE |
| 822 | AC_ALLOCA | 822 | AC_ALLOCA |
| 823 | AC_HAVE_FUNCS(gettimeofday gethostname dup2) | 823 | AC_HAVE_FUNCS(gettimeofday gethostname dup2) |
| 824 | AC_STRUCT_TM | ||
| 824 | AC_CONST | 825 | AC_CONST |
| 825 | [ | 826 | [ |
| 826 | 827 | ||
| @@ -942,7 +943,10 @@ echo ' | |||
| 942 | @configure@ system_malloc=no | 943 | @configure@ system_malloc=no |
| 943 | #endif | 944 | #endif |
| 944 | ' > ${tempcname} | 945 | ' > ${tempcname} |
| 945 | eval `${CPP} ${tempcname} \ | 946 | # The value of CPP is a quoted variable reference, so we need to do this |
| 947 | # to get its actual value... | ||
| 948 | foo=`eval "echo $CPP"` | ||
| 949 | eval `${foo} ${tempcname} \ | ||
| 946 | | grep '@configure@' \ | 950 | | grep '@configure@' \ |
| 947 | | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'` | 951 | | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'` |
| 948 | rm ${tempcname} | 952 | rm ${tempcname} |