diff options
author | Nick Clifton <nickc@redhat.com> | 2006-08-02 14:26:07 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-08-02 14:26:07 +0000 |
commit | c973bc5cd4b6024ab430a41cae5b75c2c54fd55e (patch) | |
tree | 48241288762d48451ef8c5eb6c4121309d665469 /gas/acinclude.m4 | |
parent | 87177905630953bf5b7ba6ed7938c2a483873e07 (diff) | |
download | gdb-c973bc5cd4b6024ab430a41cae5b75c2c54fd55e.zip gdb-c973bc5cd4b6024ab430a41cae5b75c2c54fd55e.tar.gz gdb-c973bc5cd4b6024ab430a41cae5b75c2c54fd55e.tar.bz2 |
PR gas/2991
* acinclude.m4 (BFD_BINARY_FOPEN): Import this function from bfd/aclocal.m4.
* configure.in: Run BFD_BINARY_FOPEN.
* configure: Regenerate.
* as.h: Look at USE_BINARY_FOPEN to decide which fopen-*.h header file to include.
Diffstat (limited to 'gas/acinclude.m4')
-rw-r--r-- | gas/acinclude.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/acinclude.m4 b/gas/acinclude.m4 index 7ba95d0..096b0af 100644 --- a/gas/acinclude.m4 +++ b/gas/acinclude.m4 @@ -4,6 +4,16 @@ sinclude(../config/nls.m4) sinclude(../config/po.m4) sinclude(../config/progtest.m4) +dnl See whether we need to use fopen-bin.h rather than fopen-same.h. +AC_DEFUN([BFD_BINARY_FOPEN], +[AC_REQUIRE([AC_CANONICAL_TARGET]) +case "${host}" in +changequote(,)dnl +*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) +changequote([,])dnl + AC_DEFINE(USE_BINARY_FOPEN, 1, [Use b modifier when opening binary files?]) ;; +esac])dnl + dnl GAS_CHECK_DECL_NEEDED(name, typedefname, typedef, headers) AC_DEFUN([GAS_CHECK_DECL_NEEDED],[ AC_MSG_CHECKING(whether declaration is required for $1) |