(1/8) i386-mingw32 fixes: toplevel
Mumit Khan
khan@xraylith.wisc.edu
Sun Dec 21 00:41:00 GMT 1997
Patch for egcs toplevel to enable i386-mingw32 support.
Sat Dec 20 16:17:05 1997 Mumit Khan <khan@xraylith.wisc.edu>
* config.sub: Add mingw32 support.
* configure.in: Likewise.
Index: egcs/config.sub
diff -c egcs/config.sub:1.1.1.1 egcs/config.sub:1.2
*** egcs/config.sub:1.1.1.1 Sat Dec 20 12:10:18 1997
--- egcs/config.sub Sat Dec 20 17:02:21 1997
***************
*** 462,467 ****
--- 462,471 ----
basic_machine=i386-unknown
os=-go32
;;
+ i386-mingw32 | mingw32)
+ basic_machine=i386-unknown
+ os=-mingw32
+ ;;
iris | iris4d)
basic_machine=mips-sgi
case $os in
Index: egcs/configure.in
diff -c egcs/configure.in:1.1.1.1 egcs/configure.in:1.2
*** egcs/configure.in:1.1.1.1 Sat Dec 20 12:10:18 1997
--- egcs/configure.in Sat Dec 20 17:02:21 1997
***************
*** 131,136 ****
--- 131,137 ----
i[3456]86-*-aix*) host_makefile_frag=config/mh-aix386 ;;
i[3456]86-*-go32*) host_makefile_frag=config/mh-go32 ;;
i[3456]86-*-msdosdjgpp*) host_makefile_frag=config/mh-go32 ;;
+ i[3456]86-*-mingw32*) host_makefile_frag=config/mh-mingw32 ;;
*-cygwin32*) host_makefile_frag=config/mh-cygwin32 ;;
*-windows*) host_makefile_frag=config/mh-windows ;;
vax-*-ultrix2*) host_makefile_frag=config/mh-vaxult2 ;;
***************
*** 365,370 ****
--- 366,373 ----
case "${host}" in
i[3456]86-*-go32*)
configdirs="$configdirs dosrel" ;;
+ i[3456]86-*-mingw32*)
+ configdirs="$configdirs dosrel" ;;
*-cygwin32*)
configdirs="$configdirs dosrel" ;;
esac
***************
*** 382,387 ****
--- 385,394 ----
i[3456]86-*-go32* | i[3456]86-*-msdosdjgpp*)
noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl apache inet itcl tix db sn gnuserv"
;;
+ i[3456]86-*-mingw32*)
+ # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl apache inet itcl tix db sn gnuserv"
+ noconfigdirs="expect dejagnu cvs autoconf automake send-pr gprof rcs guile perl texinfo apache inet"
+ ;;
*-*-cygwin32)
noconfigdirs="expect dejagnu cvs autoconf automake bison send-pr gprof rcs guile perl texinfo apache inet"
;;
***************
*** 461,466 ****
--- 468,484 ----
# linux has rx in libc
skipdirs="$skipdirs target-librx"
;;
+ i[3456]86-*-mingw32*)
+ target_configdirs="$target_configdirs target-mingw"
+ noconfigdirs="$noconfigdirs expect target-libgloss"
+
+ # Can't build gdb for cygwin32 if not native.
+ case "${host}" in
+ i[3456]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
+ *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix db sn gnuserv"
+ ;;
+ esac
+ ;;
*-*-cygwin32)
target_configdirs="$target_configdirs target-winsup"
noconfigdirs="$noconfigdirs expect target-libgloss"
***************
*** 834,843 ****
esac
fi
! # If we are building for a cygwin32 host, then set INSTALL_PROGRAM_ARGS to
# -x. This will cause programs to be installed with .exe extensions.
case "${host}" in
! *-*-cygwin32*)
sed -e 's/^INSTALL_PROGRAM_ARGS[ ]*=.*$/INSTALL_PROGRAM_ARGS = -x/' \
Makefile > Makefile.tem
rm -f Makefile
--- 852,861 ----
esac
fi
! # If we are building for a win32 host, then set INSTALL_PROGRAM_ARGS to
# -x. This will cause programs to be installed with .exe extensions.
case "${host}" in
! *-*-cygwin32* | i[3456]86-*-mingw32)
sed -e 's/^INSTALL_PROGRAM_ARGS[ ]*=.*$/INSTALL_PROGRAM_ARGS = -x/' \
Makefile > Makefile.tem
rm -f Makefile
Regards,
Mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/
More information about the Gcc-bugs
mailing list