aboutsummaryrefslogtreecommitdiff
path: root/binutils/acconfig.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-06 00:52:07 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-06 00:52:07 +0000
commit5ab6ca68fd4501b867135f74d890dca2b30c130c (patch)
tree94eb3954c1bb0c717d4042b3d791af7f30c3253f /binutils/acconfig.h
parentdcf62f7359fe45da9198df2c582b078f1800fe66 (diff)
downloadgdb-5ab6ca68fd4501b867135f74d890dca2b30c130c.zip
gdb-5ab6ca68fd4501b867135f74d890dca2b30c130c.tar.gz
gdb-5ab6ca68fd4501b867135f74d890dca2b30c130c.tar.bz2
* configure.in: Rewrite to use autoconf.
* aclocal.m4: New file. * configure: New file, built by autoconf. * acconfig.h: New file. * config.h.in: New file, built by autoheader. * Makefile.in: Various changes for new configure script. Also: (PROGS): Remove $(SYSINFO_PROG). (ALL_CFLAGS): Remove $(TDEFINES). (version.o): Use $(ALL_CFLAGS). (cplus-dem.o, dlltool.o, nlmconv.o): Likewise. (sysdump.o): Depend upon bucomm.h and config.h. (srconv.o, arsup.o, strings.o): Depend upon config.h. (filemode.o): Don't depend upon ../bfd/sysdep.h. (bucomm.o): Depend upon config.h, not ../bfd/sysdep.h. (size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise. (nlmheader.o, nlmconv.o): Likewise. (distclean): Don't remove sysdep.h. * bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h". Include "fopen-same.h" or "fopen-bin.h", based on USE_BINARY_FOPEN. Include <errno.h>, and declare errno if it is not a macro. Include <unistd.h>, <string.h>, <strings.h>, <stdlib.h>, and <fcntl.h> if they are present. Declare strchr, strrchr, and strstr if no string header file exists. Include <sys/file.h> if it exists and <fcntl.h> does not. Define O_RDONLY and O_RDWR if necessary. * ar.c: Don't include "sysdep.h". Do include <sys/types.h> and <sys/stat.h>. Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME. Use HAVE_UTIMES rather than !USE_UTIME. Don't include <errno.h>, and don't declare errno. * arsup.c: Don't include <sysdep.h>. * bucomm.c: Don't include "sysdep.h". Include <stdio.h>, <sys/types.h>, and <sys/stat.h>. Include <time.h> if it defines time_t. Define time_t if necessary. * coffdump.c: Don't include "sysdep.h". * coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise. * srconv.c, strings.c: Likewise. * nm.c: Don't include "sysdep.h". Don't try to define HAVE_SBRK. * objcopy.c: Don't include "sysdep.h". Include <sys/types.h> and <sys/stat.h>. (simple_copy): Use creat rather than assuming that O_CREAT is defined. * objdump.c: Don't include "sysdep.h". Use NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED. * sysdump.c: Include "bfd.h" and "bucomm.h". Don't include "sysdep.h" or <stdlib.h>. (dump_symbol_info): Rename from symbol_info. Change all callers.
Diffstat (limited to 'binutils/acconfig.h')
-rw-r--r--binutils/acconfig.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/binutils/acconfig.h b/binutils/acconfig.h
new file mode 100644
index 0000000..1ae1eae
--- /dev/null
+++ b/binutils/acconfig.h
@@ -0,0 +1,14 @@
+/* Is the type time_t defined in <time.h>? */
+#undef HAVE_TIME_T_IN_TIME_H
+
+/* Is the type time_t defined in <sys/types.h>? */
+#undef HAVE_TIME_T_IN_TYPES_H
+
+/* Does <utime.h> define struct utimbuf? */
+#undef HAVE_GOOD_UTIME_H
+
+/* Whether fprintf must be declared even if <stdio.h> is included. */
+#undef NEED_DECLARATION_FPRINTF
+
+/* Do we need to use the b modifier when opening binary files? */
+#undef USE_BINARY_FOPEN