diff options
Diffstat (limited to 'gas/configure.in')
-rw-r--r-- | gas/configure.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gas/configure.in b/gas/configure.in index 24ba82e..cce1faa 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -43,6 +43,16 @@ using_cgen=no # Generate a header file AM_CONFIG_HEADER(config.h:config.in) +# If we are on a DOS filesystem, we must use gdb.ini rather than +# .gdbinit. +GDBINIT=".gdbinit" +case "${host}" in + *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) + GDBINIT="gdb.ini" + ;; +esac +AC_SUBST(GDBINIT) + te_file=generic # Makefile target for installing gas in $(tooldir)/bin. @@ -757,7 +767,7 @@ dnl the build directory which include the right .h file. Make sure dnl the old symlinks don't exist, so that a reconfigure in an existing dnl directory behaves reasonably. -AC_OUTPUT(Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in, +AC_OUTPUT(Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in, [rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h |