Branch: Tag:

2002-10-13

2002-10-13 16:04:42 by Xavier Beaudouin <kiwi@oav.net>

Avoid detection GetSystemTimeAsFileTime() on Cygwin... :)
Added some helper to find gtk-config script and sdl-config script on FreeBSD since they are renamed in other name...

Rev: src/configure.in:1.636

1: - AC_REVISION("$Id: configure.in,v 1.635 2002/10/09 10:03:16 kiwi Exp $") + AC_REVISION("$Id: configure.in,v 1.636 2002/10/13 16:04:42 kiwi Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
618:    :   fi    - # Workaround for compiling Pike on Cygwin + # Workaround for compiling Pike on some OS that have some clues   case "$pike_cv_sys_os" in    CYGWIN*) -  +  # Cygwin have both Windows includes and Unix ones. +  # Hiding them make it a somewhat Unix compliant OS.    echo 'Cygwin host detected. Enabling workarounds...'    # winsock.h, winbase.h, winsock2.h, windows.h, wingdi.h, windef.h    # are part of VC api but given as headers in cygwin. We
632:    ac_cv_header_winbase_h="no"    ac_cv_header_windows_h="no"    ;; +  FreeBSD*) +  # FreeBSD have other naming convention for gtk-config and sdl-config +  if test "x${GTK_CONFIG}" == "x"; then +  GTK_CONFIG=`which gtk12-config` +  fi +  if test "x${SDL_CONFIG}" == "x"; then +  SDL_CONFIG=`which sdl11-config` +  fi +  ;;   esac      # FIXME: Add proper tests
3876:   #############################################################################   MY_CHECK_FUNCTION(GetSystemTimeAsFileTime,   [ + #ifdef HAVE_WINDOWS_H   #include <windows.h> -  + #endif + #ifdef HAVE_WINBASE_H   #include <winbase.h> -  + #endif   ], [    FILETIME f;    GetSystemTimeAsFileTime(&f);