Branch: Tag:

2004-05-10

2004-05-10 21:45:13 by Marcus Agehall <agehall@gmail.com>

Effort to make Pike compile on native win32 using Mingw32. This patch
does still have some problems. For example, detection of the fpclass
method under NT does not mean that the constants used are present. It
also lacks the correct translation of paths. There is still lots to be
done, but it is a start.

Rev: src/configure.in:1.832
Rev: src/fdlib.h:1.52
Rev: src/global.h:1.97
Rev: src/main.c:1.201
Rev: src/modules/system/nt.c:1.64
Rev: src/port.c:1.77
Rev: src/port.h:1.56
Rev: src/smartlink.c:1.16

1: - AC_REVISION("$Id: configure.in,v 1.831 2004/05/08 08:32:51 agehall Exp $") + AC_REVISION("$Id: configure.in,v 1.832 2004/05/10 21:45:13 agehall Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
673:    *solaris*) pike_cv_sys_os="Solaris";;    *sunos*) pike_cv_sys_os="SunOS";;    *windows*) pike_cv_sys_os="Windows_NT";; +  *mingw*) pike_cv_sys_os="Windows_NT" +  pike_is_mingw="yes";;    *) pike_cv_sys_os="Unknown";;    esac   else
699:    *Windows*|*windows*)    pike_cv_sys_os="Windows_NT"    ;; +  *MINGW*|*mingw*) +  # Stupid mingw does not define __NT__ so we must... +  CFLAGS="$CFLAGS -D__NT__=1" +  pike_is_mingw="yes" +  pike_cv_sys_os="Windows_NT" +  ;; +     esac   else    pike_cv_sys_os="Not Solaris"
758:    ac_cv_header_windows_h="no"    with_machine_code="no"    ;; +  Windows_NT) +  if test "$pike_is_mingw" = "yes"; then +  with_machine_code="no" +  ac_cv_func_fpclass="no" +  fi +  ;;    FreeBSD*)    # FreeBSD have other naming convention for gtk-config and sdl-config    if test "x${GTK_CONFIG}" = "x"; then
940:    #### For exec-shield in newer linux kernels.    #### We should really fix the machine code generator to use mprotect instead.    #### That should work. +  #### This test crashes under mingw32 so let's disable for win32 for now. +  if test "$pike_cv_sys_os" != "Windows_NT"; then    AC_SYS_COMPILER_FLAG([[-Wa,--execstack]],executableheap,CFLAGS)    fi    fi -  + fi      LD='$(CC) $(CFLAGS)'   LC_REQ="-lc"