Branch: Tag:

2005-01-06

2005-01-06 17:41:21 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Some MinGW-related fixes.
Added creation of posix_to_native.sh.

Rev: src/configure.in:1.867

1: - AC_REVISION("$Id: configure.in,v 1.866 2005/01/03 15:25:23 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.867 2005/01/06 17:41:21 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
705:    *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";; +  *mingw*|*MINGW*) +  pike_cv_sys_os="Windows_NT" +  pike_cv_is_mingw="yes";;    *) pike_cv_sys_os="Unknown";;    esac   else
734:    pike_cv_sys_os="Windows_NT"    ;;    *MINGW*|*mingw*) -  # Stupid mingw does not define __NT__ so we must... -  CPPFLAGS="$CPPFLAGS -D__NT__=1" -  pike_is_mingw="yes" +  pike_cv_is_mingw="yes"    pike_cv_sys_os="Windows_NT"    ;;   
800:    with_machine_code="no"    ;;    Windows_NT) -  if test "$pike_is_mingw" = "yes"; then -  with_machine_code="no" +  if test "$pike_cv_is_mingw" = "yes"; then +  #with_machine_code="no"    ac_cv_func_fpclass="no"    fi    ;;
2194:      #############################################################################    + # Script to translate from POSIX paths to native paths. + echo "Creating posix_to_native.sh..." + if test "x$PIKE_PATH_TRANSLATE" = "x"; then +  if test "x$pike_cv_is_mingw" = "xyes"; then +  # MinGW system. +  cat <<\EOF + #!/bin/sh + # Automatically generated by $Id: configure.in,v 1.867 2005/01/06 17:41:21 grubba Exp $. + # MinGW-version. Do NOT edit. + posix_name="`cat`" + posix_prefix="/" + native_prefix="/" + case "$posix_name" in +  /*) ;; +  *) posix_name="`pwd`/$posix_name" ;; + esac + case "$posix_name" in + EOF +  mount | sed -e 's/\(.*\) on \(.*\) type user.*/\2 \1/p' -ed | sort -r | \ +  sed -e 's/\(.*\) \(.*\)/ \1|\1\/*)\ +  posix_prefix="\1"\ +  native_prefix="\2"\ +  \;\;/p' -ed +  cat <<\EOF + esac + echo "$posix_name" | sed -e "s,^$posix_prefix,$native_prefix," + EOF +  else +  # Native POSIX system. +  cat <<\EOF + #!/bin/sh + # Automatically generated by $Id: configure.in,v 1.867 2005/01/06 17:41:21 grubba Exp $. + # POSIX-version. Do NOT edit. + cat + EOF +  fi + else +  # rntcl-style +  cat <<\EOF + #!/bin/sh + # Automatically generated by $Id: configure.in,v 1.867 2005/01/06 17:41:21 grubba Exp $. + # RNTCL-version. Do NOT edit. + sed -e "$PIKE_PATH_TRANSLATE" + EOF + fi >posix_to_native.sh +  + chmod a+x posix_to_native.sh +  + ############################################################################# +    if test ! -d modules/. ; then    mkdir modules   fi