diff options
author | Fred Fish <fnf@specifix.com> | 1996-04-05 04:14:36 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-04-05 04:14:36 +0000 |
commit | ab1aa5cd6cd1e18814c20c8801e989fc260b8ee9 (patch) | |
tree | c3696d76f932c42351db234110e6405fefe20dec /bfd/configure | |
parent | 72c9954b87f955fa8a62ff70a29c2f8a3aa7ece4 (diff) | |
download | gdb-ab1aa5cd6cd1e18814c20c8801e989fc260b8ee9.zip gdb-ab1aa5cd6cd1e18814c20c8801e989fc260b8ee9.tar.gz gdb-ab1aa5cd6cd1e18814c20c8801e989fc260b8ee9.tar.bz2 |
* configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
(AC_CHECK_HEADERS): Check for sys/time.h
(AC_HEADER_TIME): Add macro.
* configure: Rebuild.
* sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
to control what combination of <time> and <sys/time.h>
get included.
Diffstat (limited to 'bfd/configure')
-rwxr-xr-x | bfd/configure | 66 |
1 files changed, 50 insertions, 16 deletions
diff --git a/bfd/configure b/bfd/configure index a2d00df..9dd09a6 100755 --- a/bfd/configure +++ b/bfd/configure @@ -1172,7 +1172,7 @@ else fi done -for ac_hdr in fcntl.h sys/file.h +for ac_hdr in fcntl.h sys/file.h sys/time.h do ac_safe=`echo "$ac_hdr" | tr './\055' '___'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 @@ -1209,6 +1209,40 @@ else fi done +echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1218 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <sys/time.h> +#include <time.h> +int main() { return 0; } +int t() { +struct tm *tp; +; return 0; } +EOF +if { (eval echo configure:1228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_time=yes +else + rm -rf conftest* + ac_cv_header_time=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_header_time" 1>&6 +if test $ac_cv_header_time = yes; then + cat >> confdefs.h <<\EOF +#define TIME_WITH_SYS_TIME 1 +EOF + +fi + for ac_func in fcntl getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 @@ -1216,7 +1250,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1220 "configure" +#line 1254 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1238,7 +1272,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:1242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1275,7 +1309,7 @@ if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1279 "configure" +#line 1313 "configure" #include "confdefs.h" #include <stdio.h> @@ -1290,7 +1324,7 @@ int t() { char *(*pfn) = (char *(*)) malloc ; return 0; } EOF -if { (eval echo configure:1294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_decl_needed_malloc=no else @@ -1315,7 +1349,7 @@ if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1319 "configure" +#line 1353 "configure" #include "confdefs.h" #include <stdio.h> @@ -1330,7 +1364,7 @@ int t() { char *(*pfn) = (char *(*)) free ; return 0; } EOF -if { (eval echo configure:1334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_decl_needed_free=no else @@ -1475,7 +1509,7 @@ EOF mips-sony-bsd*) COREFILE=trad-core.o cat >> confdefs.h <<\EOF -#define TRAD_HEADER "hosts/news-mips".h +#define TRAD_HEADER "hosts/news-mips.h" EOF ;; @@ -1602,7 +1636,7 @@ EOF echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1606 "configure" +#line 1640 "configure" #include "confdefs.h" #include <sys/procfs.h> int main() { return 0; } @@ -1610,7 +1644,7 @@ int t() { prstatus_t t; ; return 0; } EOF -if { (eval echo configure:1614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_header_sys_procfs_h=yes else @@ -1890,7 +1924,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1894 "configure" +#line 1928 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1912,7 +1946,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1942,7 +1976,7 @@ else ac_cv_func_mmap=no else cat > conftest.$ac_ext <<EOF -#line 1946 "configure" +#line 1980 "configure" #include "confdefs.h" /* Thanks to Mike Haertel and Jim Avera for this test. */ @@ -2011,7 +2045,7 @@ main() } EOF -{ (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } +{ (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } if test -s conftest && (./conftest; exit) 2>/dev/null; then ac_cv_func_mmap=yes else @@ -2036,7 +2070,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2040 "configure" +#line 2074 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2058,7 +2092,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else |