diff -Naur vim72-vendor/src/auto/config.cache vim72-working-copy/src/auto/config.cache
--- vim72-vendor/src/auto/config.cache	1970-01-01 00:00:00.000000000 +0000
+++ vim72-working-copy/src/auto/config.cache	2008-12-12 16:19:35.000000000 +0000
@@ -0,0 +1,175 @@
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems.  If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+ac_cv_c_compiler_gnu=${ac_cv_c_compiler_gnu=yes}
+ac_cv_c_const=${ac_cv_c_const=yes}
+ac_cv_env_CC_set=
+ac_cv_env_CC_value=
+ac_cv_env_CFLAGS_set=
+ac_cv_env_CFLAGS_value=
+ac_cv_env_CPPFLAGS_set=
+ac_cv_env_CPPFLAGS_value=
+ac_cv_env_CPP_set=
+ac_cv_env_CPP_value=
+ac_cv_env_LDFLAGS_set=
+ac_cv_env_LDFLAGS_value=
+ac_cv_env_LIBS_set=
+ac_cv_env_LIBS_value=
+ac_cv_env_XMKMF_set=
+ac_cv_env_XMKMF_value=
+ac_cv_env_build_alias_set=
+ac_cv_env_build_alias_value=
+ac_cv_env_host_alias_set=
+ac_cv_env_host_alias_value=
+ac_cv_env_target_alias_set=
+ac_cv_env_target_alias_value=
+ac_cv_func_bcmp=${ac_cv_func_bcmp=yes}
+ac_cv_func_fchdir=${ac_cv_func_fchdir=yes}
+ac_cv_func_fchown=${ac_cv_func_fchown=yes}
+ac_cv_func_fseeko=${ac_cv_func_fseeko=yes}
+ac_cv_func_fsync=${ac_cv_func_fsync=yes}
+ac_cv_func_ftello=${ac_cv_func_ftello=yes}
+ac_cv_func_getcwd=${ac_cv_func_getcwd=yes}
+ac_cv_func_getpseudotty=${ac_cv_func_getpseudotty=no}
+ac_cv_func_getpwnam=${ac_cv_func_getpwnam=yes}
+ac_cv_func_getpwuid=${ac_cv_func_getpwuid=yes}
+ac_cv_func_getrlimit=${ac_cv_func_getrlimit=yes}
+ac_cv_func_gettimeofday=${ac_cv_func_gettimeofday=yes}
+ac_cv_func_getwd=${ac_cv_func_getwd=no}
+ac_cv_func_iswupper=${ac_cv_func_iswupper=yes}
+ac_cv_func_lstat=${ac_cv_func_lstat=yes}
+ac_cv_func_memcmp=${ac_cv_func_memcmp=yes}
+ac_cv_func_memset=${ac_cv_func_memset=yes}
+ac_cv_func_nanosleep=${ac_cv_func_nanosleep=yes}
+ac_cv_func_opendir=${ac_cv_func_opendir=yes}
+ac_cv_func_putenv=${ac_cv_func_putenv=yes}
+ac_cv_func_qsort=${ac_cv_func_qsort=yes}
+ac_cv_func_readlink=${ac_cv_func_readlink=yes}
+ac_cv_func_select=${ac_cv_func_select=yes}
+ac_cv_func_setenv=${ac_cv_func_setenv=yes}
+ac_cv_func_setpgid=${ac_cv_func_setpgid=yes}
+ac_cv_func_setsid=${ac_cv_func_setsid=yes}
+ac_cv_func_sigaction=${ac_cv_func_sigaction=yes}
+ac_cv_func_sigaltstack=${ac_cv_func_sigaltstack=yes}
+ac_cv_func_sigset=${ac_cv_func_sigset=yes}
+ac_cv_func_sigsetjmp=${ac_cv_func_sigsetjmp=yes}
+ac_cv_func_sigstack=${ac_cv_func_sigstack=no}
+ac_cv_func_sigvec=${ac_cv_func_sigvec=no}
+ac_cv_func_strcasecmp=${ac_cv_func_strcasecmp=yes}
+ac_cv_func_strerror=${ac_cv_func_strerror=yes}
+ac_cv_func_strftime=${ac_cv_func_strftime=yes}
+ac_cv_func_stricmp=${ac_cv_func_stricmp=no}
+ac_cv_func_strncasecmp=${ac_cv_func_strncasecmp=yes}
+ac_cv_func_strnicmp=${ac_cv_func_strnicmp=no}
+ac_cv_func_strpbrk=${ac_cv_func_strpbrk=yes}
+ac_cv_func_strtol=${ac_cv_func_strtol=yes}
+ac_cv_func_tgetent=${ac_cv_func_tgetent=yes}
+ac_cv_func_towlower=${ac_cv_func_towlower=yes}
+ac_cv_func_towupper=${ac_cv_func_towupper=yes}
+ac_cv_func_usleep=${ac_cv_func_usleep=yes}
+ac_cv_func_utime=${ac_cv_func_utime=yes}
+ac_cv_func_utimes=${ac_cv_func_utimes=yes}
+ac_cv_have_x=${ac_cv_have_x=have_x=no}
+ac_cv_header_X11_SM_SMlib_h=${ac_cv_header_X11_SM_SMlib_h=no}
+ac_cv_header_dirent_dirent_h=${ac_cv_header_dirent_dirent_h=yes}
+ac_cv_header_dlfcn_h=${ac_cv_header_dlfcn_h=yes}
+ac_cv_header_elf_h=${ac_cv_header_elf_h=no}
+ac_cv_header_errno_h=${ac_cv_header_errno_h=yes}
+ac_cv_header_fcntl_h=${ac_cv_header_fcntl_h=yes}
+ac_cv_header_frame_h=${ac_cv_header_frame_h=no}
+ac_cv_header_iconv_h=${ac_cv_header_iconv_h=yes}
+ac_cv_header_langinfo_h=${ac_cv_header_langinfo_h=no}
+ac_cv_header_libc_h=${ac_cv_header_libc_h=no}
+ac_cv_header_libgen_h=${ac_cv_header_libgen_h=no}
+ac_cv_header_libintl_h=${ac_cv_header_libintl_h=no}
+ac_cv_header_locale_h=${ac_cv_header_locale_h=yes}
+ac_cv_header_math_h=${ac_cv_header_math_h=yes}
+ac_cv_header_poll_h=${ac_cv_header_poll_h=yes}
+ac_cv_header_pwd_h=${ac_cv_header_pwd_h=yes}
+ac_cv_header_setjmp_h=${ac_cv_header_setjmp_h=yes}
+ac_cv_header_sgtty_h=${ac_cv_header_sgtty_h=no}
+ac_cv_header_stdarg_h=${ac_cv_header_stdarg_h=yes}
+ac_cv_header_stdc=${ac_cv_header_stdc=yes}
+ac_cv_header_stdlib_h=${ac_cv_header_stdlib_h=yes}
+ac_cv_header_string_h=${ac_cv_header_string_h=yes}
+ac_cv_header_strings_h=${ac_cv_header_strings_h=yes}
+ac_cv_header_stropts_h=${ac_cv_header_stropts_h=no}
+ac_cv_header_sys_access_h=${ac_cv_header_sys_access_h=no}
+ac_cv_header_sys_acl_h=${ac_cv_header_sys_acl_h=no}
+ac_cv_header_sys_ioctl_h=${ac_cv_header_sys_ioctl_h=yes}
+ac_cv_header_sys_param_h=${ac_cv_header_sys_param_h=yes}
+ac_cv_header_sys_poll_h=${ac_cv_header_sys_poll_h=yes}
+ac_cv_header_sys_ptem_h=${ac_cv_header_sys_ptem_h=no}
+ac_cv_header_sys_resource_h=${ac_cv_header_sys_resource_h=yes}
+ac_cv_header_sys_select_h=${ac_cv_header_sys_select_h=yes}
+ac_cv_header_sys_statfs_h=${ac_cv_header_sys_statfs_h=no}
+ac_cv_header_sys_stream_h=${ac_cv_header_sys_stream_h=no}
+ac_cv_header_sys_sysctl_h=${ac_cv_header_sys_sysctl_h=no}
+ac_cv_header_sys_sysinfo_h=${ac_cv_header_sys_sysinfo_h=no}
+ac_cv_header_sys_systeminfo_h=${ac_cv_header_sys_systeminfo_h=no}
+ac_cv_header_sys_time_h=${ac_cv_header_sys_time_h=yes}
+ac_cv_header_sys_types_h=${ac_cv_header_sys_types_h=yes}
+ac_cv_header_sys_utsname_h=${ac_cv_header_sys_utsname_h=yes}
+ac_cv_header_sys_wait_h=${ac_cv_header_sys_wait_h=yes}
+ac_cv_header_termcap_h=${ac_cv_header_termcap_h=yes}
+ac_cv_header_termio_h=${ac_cv_header_termio_h=no}
+ac_cv_header_termios_h=${ac_cv_header_termios_h=yes}
+ac_cv_header_time=${ac_cv_header_time=yes}
+ac_cv_header_unistd_h=${ac_cv_header_unistd_h=yes}
+ac_cv_header_util_debug_h=${ac_cv_header_util_debug_h=no}
+ac_cv_header_util_msg18n_h=${ac_cv_header_util_msg18n_h=no}
+ac_cv_header_utime_h=${ac_cv_header_utime_h=yes}
+ac_cv_header_wchar_h=${ac_cv_header_wchar_h=yes}
+ac_cv_header_wctype_h=${ac_cv_header_wctype_h=yes}
+ac_cv_lib_acl_acl_get_file=${ac_cv_lib_acl_acl_get_file=no}
+ac_cv_lib_m_strtod=${ac_cv_lib_m_strtod=no}
+ac_cv_lib_ncurses___tgetent=${ac_cv_lib_ncurses___tgetent=yes}
+ac_cv_lib_nsl_gethostbyname=${ac_cv_lib_nsl_gethostbyname=no}
+ac_cv_lib_posix1e_acl_get_file=${ac_cv_lib_posix1e_acl_get_file=no}
+ac_cv_lib_selinux_is_selinux_enabled=${ac_cv_lib_selinux_is_selinux_enabled=no}
+ac_cv_lib_socket_socket=${ac_cv_lib_socket_socket=no}
+ac_cv_lib_xpg4__xpg4_setrunelocale=${ac_cv_lib_xpg4__xpg4_setrunelocale=no}
+ac_cv_objext=${ac_cv_objext=o}
+ac_cv_path_EGREP=${ac_cv_path_EGREP='/bin/grep -E'}
+ac_cv_path_GREP=${ac_cv_path_GREP=/bin/grep}
+ac_cv_prog_AWK=${ac_cv_prog_AWK=gawk}
+ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'}
+ac_cv_prog_STRIP=${ac_cv_prog_STRIP=strip}
+ac_cv_prog_ac_ct_CC=${ac_cv_prog_ac_ct_CC=gcc}
+ac_cv_prog_cc_c89=${ac_cv_prog_cc_c89=}
+ac_cv_prog_cc_g=${ac_cv_prog_cc_g=yes}
+ac_cv_prog_gcc_traditional=${ac_cv_prog_gcc_traditional=no}
+ac_cv_prog_make_make_set=${ac_cv_prog_make_make_set=yes}
+ac_cv_search_opendir=${ac_cv_search_opendir='none required'}
+ac_cv_search_strerror=${ac_cv_search_strerror='none required'}
+ac_cv_sizeof_int=${ac_cv_sizeof_int=4}
+ac_cv_type_dev_t=${ac_cv_type_dev_t=yes}
+ac_cv_type_ino_t=${ac_cv_type_ino_t=yes}
+ac_cv_type_mode_t=${ac_cv_type_mode_t=yes}
+ac_cv_type_off_t=${ac_cv_type_off_t=yes}
+ac_cv_type_pid_t=${ac_cv_type_pid_t=yes}
+ac_cv_type_rlim_t=${ac_cv_type_rlim_t=yes}
+ac_cv_type_signal=${ac_cv_type_signal=void}
+ac_cv_type_size_t=${ac_cv_type_size_t=yes}
+ac_cv_type_stack_t=${ac_cv_type_stack_t=yes}
+ac_cv_type_uid_t=${ac_cv_type_uid_t=yes}
+cf_cv_ebcdic=${cf_cv_ebcdic=no}
+vi_cv_have_gpm=${vi_cv_have_gpm=no}
+vi_cv_have_sysmouse=${vi_cv_have_sysmouse=no}
+vim_cv_getcwd_broken=${vim_cv_getcwd_broken=no}
+vim_cv_memmove_handles_overlap=${vim_cv_memmove_handles_overlap=yes}
+vim_cv_stat_ignores_slash=${vim_cv_stat_ignores_slash=yes}
+vim_cv_terminfo=${vim_cv_terminfo=yes}
+vim_cv_tgent=${vim_cv_tgent=zero}
+vim_cv_toupper_broken=${vim_cv_toupper_broken=no}
+vim_cv_tty_group=${vim_cv_tty_group=world}
diff -Naur vim72-vendor/src/auto/config.h vim72-working-copy/src/auto/config.h
--- vim72-vendor/src/auto/config.h	2008-12-08 21:47:36.000000000 +0000
+++ vim72-working-copy/src/auto/config.h	2008-12-12 16:19:35.000000000 +0000
@@ -0,0 +1,381 @@
+/* auto/config.h.  Generated from config.h.in by configure.  */
+/*
+ * config.h.in.  Generated automatically from configure.in by autoheader, and
+ * manually changed after that.
+ */
+
+/* Define if we have EBCDIC code */
+/* #undef EBCDIC */
+
+/* Define unless no X support found */
+/* #undef HAVE_X11 */
+
+/* Define when terminfo support found */
+#define TERMINFO 1
+
+/* Define when termcap.h contains ospeed */
+#define HAVE_OSPEED 1
+
+/* Define when ospeed can be extern */
+/* #undef OSPEED_EXTERN */
+
+/* Define when termcap.h contains UP, BC and PC */
+#define HAVE_UP_BC_PC 1
+
+/* Define when UP, BC and PC can be extern */
+/* #undef UP_BC_PC_EXTERN */
+
+/* Define when termcap.h defines outfuntype */
+/* #undef HAVE_OUTFUNTYPE */
+
+/* Define when __DATE__ " " __TIME__ can be used */
+#define HAVE_DATE_TIME 1
+
+/* defined always when using configure */
+#define UNIX 1
+
+/* Defined to the size of an int */
+#define SIZEOF_INT 4
+
+/*
+ * If we cannot trust one of the following from the libraries, we use our
+ * own safe but probably slower vim_memmove().
+ */
+/* #undef USEBCOPY */
+#define USEMEMMOVE 1
+/* #undef USEMEMCPY */
+
+/* Define when "man -s 2" is to be used */
+/* #undef USEMAN_S */
+
+/* Define to empty if the keyword does not work.  */
+/* #undef const */
+
+/* Define to `int' if <sys/types.h> doesn't define.  */
+/* #undef mode_t */
+
+/* Define to `long' if <sys/types.h> doesn't define.  */
+/* #undef off_t */
+
+/* Define to `long' if <sys/types.h> doesn't define.  */
+/* #undef pid_t */
+
+/* Define to `unsigned' if <sys/types.h> doesn't define.  */
+/* #undef size_t */
+
+/* Define to `int' if <sys/types.h> doesn't define.  */
+/* #undef uid_t */
+
+/* Define to `int' if <sys/types.h> doesn't define.  */
+/* #undef gid_t */
+
+/* Define to `long' if <sys/types.h> doesn't define.  */
+/* #undef ino_t */
+
+/* Define to `unsigned' if <sys/types.h> doesn't define.  */
+/* #undef dev_t */
+
+/* Define to `unsigned long' if <sys/types.h> doesn't define.  */
+/* #undef rlim_t */
+
+/* Define to `struct sigaltstack' if <signal.h> doesn't define.  */
+/* #undef stack_t */
+
+/* Define if stack_t has the ss_base field. */
+/* #undef HAVE_SS_BASE */
+
+/* Define if you can safely include both <sys/time.h> and <time.h>.  */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define if you can safely include both <sys/time.h> and <sys/select.h>.  */
+#define SYS_SELECT_WITH_SYS_TIME 1
+
+/* Define if you have /dev/ptc */
+/* #undef HAVE_DEV_PTC */
+
+/* Define if you have Sys4 ptys */
+#define HAVE_SVR4_PTYS 1
+
+/* Define to range of pty names to try */
+/* #undef PTYRANGE0 */
+/* #undef PTYRANGE1 */
+
+/* Define mode for pty */
+/* #undef PTYMODE */
+
+/* Define group for pty */
+/* #undef PTYGROUP */
+
+/* Define as the return type of signal handlers (int or void).  */
+#define RETSIGTYPE void
+
+/* Define as the command at the end of signal handlers ("" or "return 0;").  */
+#define SIGRETURN return
+
+/* Define if struct sigcontext is present */
+#define HAVE_SIGCONTEXT 1
+
+/* Define if touuper/tolower only work on lower/upercase characters */
+/* #undef BROKEN_TOUPPER */
+
+/* Define if stat() ignores a trailing slash */
+#define STAT_IGNORES_SLASH 1
+
+/* Define if tgetstr() has a second argument that is (char *) */
+/* #undef TGETSTR_CHAR_P */
+
+/* Define if tgetent() returns zero for an error */
+#define TGETENT_ZERO_ERR 0
+
+/* Define if the getcwd() function should not be used.  */
+/* #undef BAD_GETCWD */
+
+/* Define if you the function: */
+#define HAVE_BCMP 1
+#define HAVE_FCHDIR 1
+#define HAVE_FCHOWN 1
+#define HAVE_FSEEKO 1
+#define HAVE_FSYNC 1
+#define HAVE_FTELLO 1
+#define HAVE_GETCWD 1
+/* #undef HAVE_GETPSEUDOTTY */
+#define HAVE_GETPWNAM 1
+#define HAVE_GETPWUID 1
+#define HAVE_GETRLIMIT 1
+#define HAVE_GETTIMEOFDAY 1
+/* #undef HAVE_GETWD */
+#define HAVE_ICONV 1
+/* #undef HAVE_NL_LANGINFO_CODESET */
+#define HAVE_LSTAT 1
+#define HAVE_MEMCMP 1
+#define HAVE_MEMSET 1
+#define HAVE_NANOSLEEP 1
+#define HAVE_OPENDIR 1
+#define HAVE_FLOAT_FUNCS 1
+#define HAVE_PUTENV 1
+#define HAVE_QSORT 1
+#define HAVE_READLINK 1
+#define HAVE_RENAME 1
+#define HAVE_SELECT 1
+/* #undef HAVE_SELINUX */
+#define HAVE_SETENV 1
+#define HAVE_SETPGID 1
+#define HAVE_SETSID 1
+#define HAVE_SIGACTION 1
+#define HAVE_SIGALTSTACK 1
+#define HAVE_SIGSET 1
+#define HAVE_SIGSETJMP 1
+/* #undef HAVE_SIGSTACK */
+/* #undef HAVE_SIGVEC */
+#define HAVE_STRCASECMP 1
+#define HAVE_STRERROR 1
+#define HAVE_STRFTIME 1
+/* #undef HAVE_STRICMP */
+#define HAVE_STRNCASECMP 1
+/* #undef HAVE_STRNICMP */
+#define HAVE_STRPBRK 1
+#define HAVE_STRTOL 1
+#define HAVE_ST_BLKSIZE 1
+#define HAVE_SYSCONF 1
+/* #undef HAVE_SYSCTL */
+/* #undef HAVE_SYSINFO */
+/* #undef HAVE_SYSINFO_MEM_UNIT */
+#define HAVE_TGETENT 1
+#define HAVE_TOWLOWER 1
+#define HAVE_TOWUPPER 1
+#define HAVE_ISWUPPER 1
+#define HAVE_USLEEP 1
+#define HAVE_UTIME 1
+/* #undef HAVE_BIND_TEXTDOMAIN_CODESET */
+
+/* Define if you do not have utime(), but do have the utimes() function. */
+#define HAVE_UTIMES 1
+
+/* Define if you have the header file: */
+#define HAVE_DIRENT_H 1
+#define HAVE_ERRNO_H 1
+#define HAVE_FCNTL_H 1
+/* #undef HAVE_FRAME_H */
+#define HAVE_ICONV_H 1
+/* #undef HAVE_LANGINFO_H */
+/* #undef HAVE_LIBC_H */
+/* #undef HAVE_LIBGEN_H */
+/* #undef HAVE_LIBINTL_H */
+#define HAVE_LOCALE_H 1
+#define HAVE_MATH_H 1
+/* #undef HAVE_NDIR_H */
+#define HAVE_POLL_H 1
+/* #undef HAVE_PTHREAD_NP_H */
+#define HAVE_PWD_H 1
+#define HAVE_SETJMP_H 1
+/* #undef HAVE_SGTTY_H */
+#define HAVE_STRINGS_H 1
+/* #undef HAVE_STROPTS_H */
+/* #undef HAVE_SYS_ACCESS_H */
+/* #undef HAVE_SYS_ACL_H */
+/* #undef HAVE_SYS_DIR_H */
+#define HAVE_SYS_IOCTL_H 1
+/* #undef HAVE_SYS_NDIR_H */
+#define HAVE_SYS_PARAM_H 1
+#define HAVE_SYS_POLL_H 1
+/* #undef HAVE_SYS_PTEM_H */
+#define HAVE_SYS_RESOURCE_H 1
+#define HAVE_SYS_SELECT_H 1
+/* #undef HAVE_SYS_STATFS_H */
+/* #undef HAVE_SYS_STREAM_H */
+/* #undef HAVE_SYS_SYSCTL_H */
+/* #undef HAVE_SYS_SYSINFO_H */
+/* #undef HAVE_SYS_SYSTEMINFO_H */
+#define HAVE_SYS_TIME_H 1
+#define HAVE_SYS_UTSNAME_H 1
+#define HAVE_WCHAR_H 1
+#define HAVE_WCTYPE_H 1
+#define HAVE_TERMCAP_H 1
+#define HAVE_TERMIOS_H 1
+/* #undef HAVE_TERMIO_H */
+#define HAVE_UNISTD_H 1
+/* #undef HAVE_UTIL_DEBUG_H */
+/* #undef HAVE_UTIL_MSGI18N_H */
+#define HAVE_UTIME_H 1
+/* #undef HAVE_X11_SUNKEYSYM_H */
+/* #undef HAVE_XM_XM_H */
+/* #undef HAVE_XM_XPMP_H */
+/* #undef HAVE_XM_TRAITP_H */
+/* #undef HAVE_XM_MANAGER_H */
+/* #undef HAVE_XM_UNHIGHLIGHTT_H */
+/* #undef HAVE_XM_JOINSIDET_H */
+/* #undef HAVE_XM_NOTEBOOK_H */
+/* #undef HAVE_X11_XPM_H */
+/* #undef HAVE_X11_XMU_EDITRES_H */
+/* #undef HAVE_X11_SM_SMLIB_H */
+
+/* Define to the type of the XpmAttributes type. */
+/* #undef XPMATTRIBUTES_TYPE */
+
+/* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define if you have a <sys/wait.h> that is not POSIX.1 compatible. */
+/* #undef HAVE_UNION_WAIT */
+
+/* This is currently unused in vim: */
+/* Define if you have the ANSI C header files. */
+/* #undef STDC_HEADERS */
+
+/* instead, we check a few STDC things ourselves */
+#define HAVE_STDARG_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRING_H 1
+
+/* Define if strings.h cannot be included when strings.h already is */
+/* #undef NO_STRINGS_WITH_STRING_H */
+
+/* Define if you want tiny features. */
+/* #undef FEAT_TINY */
+
+/* Define if you want small features. */
+/* #undef FEAT_SMALL */
+
+/* Define if you want normal features. */
+#define FEAT_NORMAL 1
+
+/* Define if you want big features. */
+/* #undef FEAT_BIG */
+
+/* Define if you want huge features. */
+/* #undef FEAT_HUGE */
+
+/* Define if you want to include the MzScheme interpreter. */
+/* #undef FEAT_MZSCHEME */
+
+/* Define if you want to include the Perl interpreter. */
+/* #undef FEAT_PERL */
+
+/* Define if you want to include the Python interpreter. */
+/* #undef FEAT_PYTHON */
+
+/* Define if you want to include the Ruby interpreter. */
+/* #undef FEAT_RUBY */
+
+/* Define if you want to include the Tcl interpreter. */
+/* #undef FEAT_TCL */
+
+/* Define if you want to include the Sniff interface. */
+/* #undef FEAT_SNIFF */
+
+/* Define if you want to add support for ACL */
+/* #undef HAVE_POSIX_ACL */
+/* #undef HAVE_SOLARIS_ACL */
+/* #undef HAVE_AIX_ACL */
+
+/* Define if you want to add support of GPM (Linux console mouse daemon) */
+/* #undef HAVE_GPM */
+
+/* Define if you want to add support of sysmouse (*BSD console mouse) */
+/* #undef HAVE_SYSMOUSE */
+
+/* Define if you want to include the Cscope interface. */
+/* #undef FEAT_CSCOPE */
+
+/* Define if you want to include multibyte support. */
+#define FEAT_MBYTE 1
+
+/* Define if you want to include fontset support. */
+/* #undef FEAT_XFONTSET */
+
+/* Define if you want to include XIM support. */
+/* #undef FEAT_XIM */
+
+/* Define if you want to include Hangul input support. */
+/* #undef FEAT_HANGULIN */
+
+/* Define if you use GTK and want GNOME support. */
+/* #undef FEAT_GUI_GNOME */
+
+/* Define if you use KDE and want KDE Toolbar support. */
+/* #undef FEAT_KDETOOLBAR */
+
+/* Define if GTK+ 2 is available. */
+/* #undef HAVE_GTK2 */
+
+/* Define if GTK+ multihead support is available (requires GTK+ >= 2.1.1). */
+/* #undef HAVE_GTK_MULTIHEAD */
+
+/* Define if your X has own locale library */
+/* #undef X_LOCALE */
+
+/* Define if we have dlfcn.h. */
+#define HAVE_DLFCN_H 1
+
+/* Define if there is a working gettext(). */
+/* #undef HAVE_GETTEXT */
+
+/* Define if _nl_msg_cat_cntr is present. */
+/* #undef HAVE_NL_MSG_CAT_CNTR */
+
+/* Define if we have dlopen() */
+#define HAVE_DLOPEN 1
+
+/* Define if we have dlsym() */
+#define HAVE_DLSYM 1
+
+/* Define if we have dl.h. */
+/* #undef HAVE_DL_H */
+
+/* Define if we have shl_load() */
+/* #undef HAVE_SHL_LOAD */
+
+/* Define if you want to include Sun Visual Workshop support. */
+/* #undef FEAT_SUN_WORKSHOP */
+
+/* Define if you want to include NetBeans integration. */
+/* #undef FEAT_NETBEANS_INTG */
+
+/* Define default global runtime path */
+/* #undef RUNTIME_GLOBAL */
+
+/* Define name of who modified a released Vim */
+/* #undef MODIFIED_BY */
+
+/* Define if you want XSMP interaction as well as vanilla swapfile safety */
+#define USE_XSMP_INTERACT 1
diff -Naur vim72-vendor/src/auto/config.log vim72-working-copy/src/auto/config.log
--- vim72-vendor/src/auto/config.log	1970-01-01 00:00:00.000000000 +0000
+++ vim72-working-copy/src/auto/config.log	2008-12-12 16:19:35.000000000 +0000
@@ -0,0 +1,6793 @@
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by configure, which was
+generated by GNU Autoconf 2.62.  Invocation command line was
+
+  $ auto/configure --srcdir=. --cache-file=auto/config.cache
+
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = desk
+uname -m = BePC
+uname -r = 1
+uname -s = Haiku
+uname -v = r28736 Nov 14 2008 21:47:54
+
+/usr/bin/uname -p = unknown
+/bin/uname -X     = unknown
+
+/bin/arch              = unknown
+/usr/bin/arch -k       = unknown
+/usr/convex/getsysinfo = unknown
+/usr/bin/hostinfo      = unknown
+/bin/machine           = unknown
+/usr/bin/oslevel       = unknown
+/bin/universe          = unknown
+
+PATH: .
+PATH: /boot/home/config/bin
+PATH: /boot/common/bin
+PATH: /bin
+PATH: /boot/apps
+PATH: /boot/preferences
+PATH: /boot/beos/apps
+PATH: /boot/beos/preferences
+PATH: /boot/develop/tools/gnupro/bin
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+configure:1875: creating cache auto/config.cache
+configure:1968: checking whether make sets $(MAKE)
+configure:1990: result: yes
+configure:2048: checking for gcc
+configure:2064: found /boot/develop/tools/gnupro/bin/gcc
+configure:2075: result: gcc
+configure:2313: checking for C compiler version
+configure:2321: gcc --version >&5
+2.95.3-haiku-081024
+configure:2325: $? = 0
+configure:2332: gcc -v >&5
+using priority 5
+Reading specs from /boot/develop/tools/gnupro/lib/gcc-lib/i586-pc-haiku/2.95.3-haiku-081024/specs
+gcc version 2.95.3-haiku-081024
+configure:2336: $? = 0
+configure:2343: gcc -V >&5
+gcc: argument to `-V' is missing
+configure:2347: $? = 1
+configure:2370: checking for C compiler default output file name
+configure:2392: gcc    conftest.c  >&5
+configure:2396: $? = 0
+configure:2434: result: conftest
+configure:2451: checking whether the C compiler works
+configure:2461: ./conftest
+configure:2465: $? = 0
+configure:2482: result: yes
+configure:2489: checking whether we are cross compiling
+configure:2491: result: no
+configure:2494: checking for suffix of executables
+configure:2501: gcc -o conftest    conftest.c  >&5
+configure:2505: $? = 0
+configure:2529: result: 
+configure:2535: checking for suffix of object files
+configure:2561: gcc -c   conftest.c >&5
+configure:2565: $? = 0
+configure:2588: result: o
+configure:2592: checking whether we are using the GNU C compiler
+configure:2621: gcc -c   conftest.c >&5
+configure:2628: $? = 0
+configure:2645: result: yes
+configure:2654: checking whether gcc accepts -g
+configure:2684: gcc -c -g  conftest.c >&5
+configure:2691: $? = 0
+configure:2792: result: yes
+configure:2809: checking for gcc option to accept ISO C89
+configure:2883: gcc  -c -g -O2  conftest.c >&5
+configure:2890: $? = 0
+configure:2913: result: none needed
+configure:2935: checking how to run the C preprocessor
+configure:2975: gcc -E  conftest.c
+configure:2982: $? = 0
+configure:3013: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:9: ac_nonexistent.h: No such file or directory
+configure:3020: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| /* end confdefs.h.  */
+| #include <ac_nonexistent.h>
+configure:3053: result: gcc -E
+configure:3082: gcc -E  conftest.c
+configure:3089: $? = 0
+configure:3120: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:9: ac_nonexistent.h: No such file or directory
+configure:3127: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| /* end confdefs.h.  */
+| #include <ac_nonexistent.h>
+configure:3165: checking for grep that handles long lines and -e
+configure:3225: result: /bin/grep
+configure:3230: checking for egrep
+configure:3294: result: /bin/grep -E
+configure:3308: checking for library containing strerror
+configure:3349: gcc -o conftest -g -O2   conftest.c  >&5
+configure:3356: $? = 0
+configure:3387: result: none required
+configure:3398: checking for gawk
+configure:3414: found /bin/gawk
+configure:3425: result: gawk
+configure:3438: checking for strip
+configure:3454: found /boot/develop/tools/gnupro/bin/strip
+configure:3466: result: strip
+configure:3477: checking for ANSI C header files
+configure:3507: gcc -c -g -O2  conftest.c >&5
+configure:3514: $? = 0
+configure:3610: gcc -o conftest -g -O2   conftest.c  >&5
+configure:3614: $? = 0
+configure:3620: ./conftest
+configure:3624: $? = 0
+configure:3642: result: yes
+configure:3652: checking for sys/wait.h that is POSIX.1 compatible
+configure:3688: gcc -c -g -O2  conftest.c >&5
+configure:3695: $? = 0
+configure:3710: result: yes
+configure:3749: checking for buggy tools...
+configure:3756: checking for BeOS
+configure:3762: result: no
+configure:3766: checking for QNX
+configure:3773: result: no
+configure:3777: checking for Darwin (Mac OS X)
+configure:4171: result: no
+configure:4179: checking --with-local-dir argument
+configure:4205: result: Defaulting to /usr/local
+configure:4230: checking --with-vim-name argument
+configure:4238: result: Defaulting to vim
+configure:4243: checking --with-ex-name argument
+configure:4251: result: Defaulting to ex
+configure:4256: checking --with-view-name argument
+configure:4264: result: Defaulting to view
+configure:4270: checking --with-global-runtime argument
+configure:4281: result: no
+configure:4286: checking --with-modified-by argument
+configure:4297: result: no
+configure:4302: checking if character set is EBCDIC
+configure:4331: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:20: `make' undeclared (first use in this function)
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:20: (Each undeclared identifier is reported only once
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:20: for each function it appears in.)
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:20: parse error before `an'
+configure:4338: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| /* end confdefs.h.  */
+| 
+| int
+| main ()
+| {
+|  /* TryCompile function for CharSet.
+|    Treat any failure as ASCII for compatibility with existing art.
+|    Use compile-time rather than run-time tests for cross-compiler
+|    tolerance.  */
+| #if '0'!=240
+| make an error "Character set is not EBCDIC"
+| #endif
+|   ;
+|   return 0;
+| }
+configure:4356: result: no
+configure:4407: checking --disable-selinux argument
+configure:4417: result: no
+configure:4419: checking for is_selinux_enabled in -lselinux
+configure:4454: gcc -o conftest -g -O2   conftest.c -lselinux   >&5
+/boot/develop/tools/gnupro/i586-pc-haiku/bin/ld: cannot find -lselinux
+collect2: ld returned 1 exit status
+configure:4461: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| /* end confdefs.h.  */
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char is_selinux_enabled ();
+| int
+| main ()
+| {
+| return is_selinux_enabled ();
+|   ;
+|   return 0;
+| }
+configure:4482: result: no
+configure:4498: checking --with-features argument
+configure:4506: result: Defaulting to normal
+configure:4544: checking --with-compiledby argument
+configure:4552: result: no
+configure:4558: checking --disable-xsmp argument
+configure:4569: result: no
+configure:4571: checking --disable-xsmp-interact argument
+configure:4581: result: no
+configure:4596: checking --enable-mzschemeinterp argument
+configure:4605: result: no
+configure:4763: checking --enable-perlinterp argument
+configure:4772: result: no
+configure:4966: checking --enable-pythoninterp argument
+configure:4975: result: no
+configure:5314: checking --enable-tclinterp argument
+configure:5323: result: no
+configure:5656: checking --enable-rubyinterp argument
+configure:5665: result: no
+configure:5770: checking --enable-cscope argument
+configure:5779: result: no
+configure:5788: checking --enable-workshop argument
+configure:5797: result: no
+configure:5813: checking --disable-netbeans argument
+configure:5823: result: no
+configure:5826: checking for socket in -lsocket
+configure:5861: gcc -o conftest -g -O2   conftest.c -lsocket   >&5
+/boot/develop/tools/gnupro/i586-pc-haiku/bin/ld: cannot find -lsocket
+collect2: ld returned 1 exit status
+configure:5868: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| /* end confdefs.h.  */
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char socket ();
+| int
+| main ()
+| {
+| return socket ();
+|   ;
+|   return 0;
+| }
+configure:5889: result: no
+configure:5901: checking for gethostbyname in -lnsl
+configure:5936: gcc -o conftest -g -O2   conftest.c -lnsl   >&5
+/boot/develop/tools/gnupro/i586-pc-haiku/bin/ld: cannot find -lnsl
+collect2: ld returned 1 exit status
+configure:5943: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| /* end confdefs.h.  */
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char gethostbyname ();
+| int
+| main ()
+| {
+| return gethostbyname ();
+|   ;
+|   return 0;
+| }
+configure:5964: result: no
+configure:5975: checking whether compiling netbeans integration is possible
+configure:6021: gcc -o conftest -g -O2   conftest.c  >&5
+/tmp/ccwseaqB.o: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:35: undefined reference to `socket'
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:37: undefined reference to `gethostbyname'
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:39: undefined reference to `connect'
+collect2: ld returned 1 exit status
+configure:6028: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| /* end confdefs.h.  */
+| 
+| #include <stdio.h>
+| #include <stdlib.h>
+| #include <stdarg.h>
+| #include <fcntl.h>
+| #include <netdb.h>
+| #include <netinet/in.h>
+| #include <errno.h>
+| #include <sys/types.h>
+| #include <sys/socket.h>
+| 	/* Check bitfields */
+| 	struct nbbuf {
+| 	unsigned int  initDone:1;
+| 	ushort signmaplen;
+| 	};
+| 
+| int
+| main ()
+| {
+| 
+| 		/* Check creating a socket. */
+| 		struct sockaddr_in server;
+| 		(void)socket(AF_INET, SOCK_STREAM, 0);
+| 		(void)htons(100);
+| 		(void)gethostbyname("microsoft.com");
+| 		if (errno == ECONNREFUSED)
+| 		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
+| 
+|   ;
+|   return 0;
+| }
+configure:6042: result: no
+configure:6064: checking --enable-sniff argument
+configure:6073: result: no
+configure:6086: checking --enable-multibyte argument
+configure:6095: result: no
+configure:6104: checking --enable-hangulinput argument
+configure:6113: result: no
+configure:6116: checking --enable-xim argument
+configure:6123: result: defaulting to auto
+configure:6128: checking --enable-fontset argument
+configure:6137: result: no
+configure:6149: checking for xmkmf
+configure:6182: result: no
+configure:6188: checking for X
+configure:6303: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:13: X11/Xlib.h: No such file or directory
+configure:6310: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| /* end confdefs.h.  */
+| #include <X11/Xlib.h>
+configure:6359: gcc -o conftest -g -O2   conftest.c -lX11  >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:13: X11/Xlib.h: No such file or directory
+configure:6366: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| /* end confdefs.h.  */
+| #include <X11/Xlib.h>
+| int
+| main ()
+| {
+| XrmInitialize ()
+|   ;
+|   return 0;
+| }
+configure:6417: result: no
+configure:7598: checking if X11 header files can be found
+configure:7624: gcc -c -g -O2    conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:14: X11/Xlib.h: No such file or directory
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:15: X11/Intrinsic.h: No such file or directory
+configure:7631: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| /* end confdefs.h.  */
+| #include <X11/Xlib.h>
+| #include <X11/Intrinsic.h>
+| int
+| main ()
+| {
+| 
+|   ;
+|   return 0;
+| }
+configure:7642: result: no
+configure:7975: checking --enable-gui argument
+configure:8035: result: no GUI support
+configure:9580: checking X11/SM/SMlib.h usability
+configure:9597: gcc -c -g -O2    conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:47: X11/SM/SMlib.h: No such file or directory
+configure:9604: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <X11/SM/SMlib.h>
+configure:9618: result: no
+configure:9622: checking X11/SM/SMlib.h presence
+configure:9637: gcc -E    conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:14: X11/SM/SMlib.h: No such file or directory
+configure:9644: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| /* end confdefs.h.  */
+| #include <X11/SM/SMlib.h>
+configure:9658: result: no
+configure:9686: checking for X11/SM/SMlib.h
+configure:9695: result: no
+configure:10237: checking whether toupper is broken
+configure:10267: gcc -o conftest -g -O2   conftest.c  >&5
+configure:10271: $? = 0
+configure:10277: ./conftest
+configure:10281: $? = 1
+configure: program exited with status 1
+configure: failed program was:
+| 
+| #include "confdefs.h"
+| #include <ctype.h>
+| #if STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #endif
+| main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
+| 
+configure:10302: result: no
+configure:10312: checking whether __DATE__ and __TIME__ work
+configure:10335: gcc -c -g -O2  conftest.c >&5
+configure:10342: $? = 0
+configure:10347: result: yes
+configure:10372: checking elf.h usability
+configure:10389: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:48: elf.h: No such file or directory
+configure:10396: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <elf.h>
+configure:10410: result: no
+configure:10414: checking elf.h presence
+configure:10429: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:15: elf.h: No such file or directory
+configure:10436: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| /* end confdefs.h.  */
+| #include <elf.h>
+configure:10450: result: no
+configure:10478: checking for elf.h
+configure:10485: result: no
+configure:10574: checking for dirent.h that defines DIR
+configure:10603: gcc -c -g -O2  conftest.c >&5
+configure:10610: $? = 0
+configure:10627: result: yes
+configure:10641: checking for library containing opendir
+configure:10682: gcc -o conftest -g -O2   conftest.c  >&5
+configure:10689: $? = 0
+configure:10720: result: none required
+configure:10939: checking stdarg.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking stdarg.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for stdarg.h
+configure:11054: result: yes
+configure:10939: checking stdlib.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking stdlib.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for stdlib.h
+configure:11054: result: yes
+configure:10939: checking string.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking string.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for string.h
+configure:11054: result: yes
+configure:10939: checking sys/select.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking sys/select.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for sys/select.h
+configure:11054: result: yes
+configure:10939: checking sys/utsname.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking sys/utsname.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for sys/utsname.h
+configure:11054: result: yes
+configure:10939: checking termcap.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking termcap.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for termcap.h
+configure:11054: result: yes
+configure:10939: checking fcntl.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking fcntl.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for fcntl.h
+configure:11054: result: yes
+configure:10939: checking sgtty.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:56: sgtty.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <sgtty.h>
+configure:10977: result: no
+configure:10981: checking sgtty.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:23: sgtty.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| /* end confdefs.h.  */
+| #include <sgtty.h>
+configure:11017: result: no
+configure:11045: checking for sgtty.h
+configure:11054: result: no
+configure:10939: checking sys/ioctl.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking sys/ioctl.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for sys/ioctl.h
+configure:11054: result: yes
+configure:10939: checking sys/time.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking sys/time.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for sys/time.h
+configure:11054: result: yes
+configure:10939: checking sys/types.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking sys/types.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for sys/types.h
+configure:11054: result: yes
+configure:10939: checking termio.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:59: termio.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <termio.h>
+configure:10977: result: no
+configure:10981: checking termio.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:26: termio.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| /* end confdefs.h.  */
+| #include <termio.h>
+configure:11017: result: no
+configure:11045: checking for termio.h
+configure:11054: result: no
+configure:10939: checking iconv.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking iconv.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for iconv.h
+configure:11054: result: yes
+configure:10939: checking langinfo.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:60: langinfo.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <langinfo.h>
+configure:10977: result: no
+configure:10981: checking langinfo.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:27: langinfo.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| /* end confdefs.h.  */
+| #include <langinfo.h>
+configure:11017: result: no
+configure:11045: checking for langinfo.h
+configure:11054: result: no
+configure:10939: checking math.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking math.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for math.h
+configure:11054: result: yes
+configure:10939: checking unistd.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking unistd.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for unistd.h
+configure:11054: result: yes
+configure:10939: checking stropts.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:62: stropts.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <stropts.h>
+configure:10977: result: no
+configure:10981: checking stropts.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:29: stropts.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| /* end confdefs.h.  */
+| #include <stropts.h>
+configure:11017: result: no
+configure:11045: checking for stropts.h
+configure:11054: result: no
+configure:10939: checking errno.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking errno.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for errno.h
+configure:11054: result: yes
+configure:10939: checking sys/resource.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking sys/resource.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for sys/resource.h
+configure:11054: result: yes
+configure:10939: checking sys/systeminfo.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:64: sys/systeminfo.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <sys/systeminfo.h>
+configure:10977: result: no
+configure:10981: checking sys/systeminfo.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:31: sys/systeminfo.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| /* end confdefs.h.  */
+| #include <sys/systeminfo.h>
+configure:11017: result: no
+configure:11045: checking for sys/systeminfo.h
+configure:11054: result: no
+configure:10939: checking locale.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking locale.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for locale.h
+configure:11054: result: yes
+configure:10939: checking sys/stream.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:65: sys/stream.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <sys/stream.h>
+configure:10977: result: no
+configure:10981: checking sys/stream.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:32: sys/stream.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| /* end confdefs.h.  */
+| #include <sys/stream.h>
+configure:11017: result: no
+configure:11045: checking for sys/stream.h
+configure:11054: result: no
+configure:10939: checking termios.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking termios.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for termios.h
+configure:11054: result: yes
+configure:10939: checking libc.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:66: libc.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <libc.h>
+configure:10977: result: no
+configure:10981: checking libc.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:33: libc.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| /* end confdefs.h.  */
+| #include <libc.h>
+configure:11017: result: no
+configure:11045: checking for libc.h
+configure:11054: result: no
+configure:10939: checking sys/statfs.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:66: sys/statfs.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <sys/statfs.h>
+configure:10977: result: no
+configure:10981: checking sys/statfs.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:33: sys/statfs.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| /* end confdefs.h.  */
+| #include <sys/statfs.h>
+configure:11017: result: no
+configure:11045: checking for sys/statfs.h
+configure:11054: result: no
+configure:10939: checking poll.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking poll.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for poll.h
+configure:11054: result: yes
+configure:10939: checking sys/poll.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking sys/poll.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for sys/poll.h
+configure:11054: result: yes
+configure:10939: checking pwd.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking pwd.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for pwd.h
+configure:11054: result: yes
+configure:10939: checking utime.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking utime.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for utime.h
+configure:11054: result: yes
+configure:10939: checking sys/param.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking sys/param.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for sys/param.h
+configure:11054: result: yes
+configure:10939: checking libintl.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:71: libintl.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <libintl.h>
+configure:10977: result: no
+configure:10981: checking libintl.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:38: libintl.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <libintl.h>
+configure:11017: result: no
+configure:11045: checking for libintl.h
+configure:11054: result: no
+configure:10939: checking libgen.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:71: libgen.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <libgen.h>
+configure:10977: result: no
+configure:10981: checking libgen.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:38: libgen.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <libgen.h>
+configure:11017: result: no
+configure:11045: checking for libgen.h
+configure:11054: result: no
+configure:10939: checking util/debug.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:71: util/debug.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <util/debug.h>
+configure:10977: result: no
+configure:10981: checking util/debug.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:38: util/debug.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <util/debug.h>
+configure:11017: result: no
+configure:11045: checking for util/debug.h
+configure:11054: result: no
+configure:10939: checking util/msg18n.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:71: util/msg18n.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <util/msg18n.h>
+configure:10977: result: no
+configure:10981: checking util/msg18n.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:38: util/msg18n.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <util/msg18n.h>
+configure:11017: result: no
+configure:11045: checking for util/msg18n.h
+configure:11054: result: no
+configure:10939: checking frame.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:71: frame.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <frame.h>
+configure:10977: result: no
+configure:10981: checking frame.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:38: frame.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <frame.h>
+configure:11017: result: no
+configure:11045: checking for frame.h
+configure:11054: result: no
+configure:10939: checking sys/acl.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:71: sys/acl.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <sys/acl.h>
+configure:10977: result: no
+configure:10981: checking sys/acl.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:38: sys/acl.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <sys/acl.h>
+configure:11017: result: no
+configure:11045: checking for sys/acl.h
+configure:11054: result: no
+configure:10939: checking sys/access.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:71: sys/access.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <sys/access.h>
+configure:10977: result: no
+configure:10981: checking sys/access.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:38: sys/access.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <sys/access.h>
+configure:11017: result: no
+configure:11045: checking for sys/access.h
+configure:11054: result: no
+configure:10939: checking sys/sysctl.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:71: sys/sysctl.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <sys/sysctl.h>
+configure:10977: result: no
+configure:10981: checking sys/sysctl.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:38: sys/sysctl.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <sys/sysctl.h>
+configure:11017: result: no
+configure:11045: checking for sys/sysctl.h
+configure:11054: result: no
+configure:10939: checking sys/sysinfo.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:71: sys/sysinfo.h: No such file or directory
+configure:10963: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| #include <sys/sysinfo.h>
+configure:10977: result: no
+configure:10981: checking sys/sysinfo.h presence
+configure:10996: gcc -E  conftest.c
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:38: sys/sysinfo.h: No such file or directory
+configure:11003: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| /* end confdefs.h.  */
+| #include <sys/sysinfo.h>
+configure:11017: result: no
+configure:11045: checking for sys/sysinfo.h
+configure:11054: result: no
+configure:10939: checking wchar.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking wchar.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for wchar.h
+configure:11054: result: yes
+configure:10939: checking wctype.h usability
+configure:10956: gcc -c -g -O2  conftest.c >&5
+configure:10963: $? = 0
+configure:10977: result: yes
+configure:10981: checking wctype.h presence
+configure:10996: gcc -E  conftest.c
+configure:11003: $? = 0
+configure:11017: result: yes
+configure:11045: checking for wctype.h
+configure:11054: result: yes
+configure:11073: checking for sys/ptem.h
+configure:11096: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:44: sys/ptem.h: No such file or directory
+configure:11103: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| /* end confdefs.h.  */
+| #if defined HAVE_SYS_STREAM_H
+| #  include <sys/stream.h>
+| #endif
+| 
+| #include <sys/ptem.h>
+configure:11120: result: no
+configure:11134: checking for pthread_np.h
+configure:11159: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:42: pthread_np.h: No such file or directory
+configure:11166: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| /* end confdefs.h.  */
+| 
+| #include <pthread.h>
+| #include <pthread_np.h>
+| int
+| main ()
+| {
+| int i; i = 0;
+|   ;
+|   return 0;
+| }
+configure:11181: result: no
+configure:11203: checking strings.h usability
+configure:11220: gcc -c -g -O2  conftest.c >&5
+configure:11227: $? = 0
+configure:11241: result: yes
+configure:11245: checking strings.h presence
+configure:11260: gcc -E  conftest.c
+configure:11267: $? = 0
+configure:11281: result: yes
+configure:11309: checking for strings.h
+configure:11318: result: yes
+configure:11339: checking if strings.h can be included after string.h
+configure:11378: gcc -c -g -O2    conftest.c >&5
+configure:11385: $? = 0
+configure:11390: result: yes
+configure:11409: checking whether gcc needs -traditional
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:41: sgtty.h: No such file or directory
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:41: termio.h: No such file or directory
+configure:11451: result: no
+configure:11458: checking for an ANSI C-conforming const
+configure:11533: gcc -c -g -O2  conftest.c >&5
+configure:11540: $? = 0
+configure:11555: result: yes
+configure:11565: checking for mode_t
+configure:11593: gcc -c -g -O2  conftest.c >&5
+configure:11600: $? = 0
+configure:11627: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:77: parse error before `)'
+configure:11634: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| if (sizeof ((mode_t)))
+| 	  return 0;
+|   ;
+|   return 0;
+| }
+configure:11657: result: yes
+configure:11669: checking for off_t
+configure:11697: gcc -c -g -O2  conftest.c >&5
+configure:11704: $? = 0
+configure:11731: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:77: parse error before `)'
+configure:11738: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| if (sizeof ((off_t)))
+| 	  return 0;
+|   ;
+|   return 0;
+| }
+configure:11761: result: yes
+configure:11773: checking for pid_t
+configure:11801: gcc -c -g -O2  conftest.c >&5
+configure:11808: $? = 0
+configure:11835: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:77: parse error before `)'
+configure:11842: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| if (sizeof ((pid_t)))
+| 	  return 0;
+|   ;
+|   return 0;
+| }
+configure:11865: result: yes
+configure:11877: checking for size_t
+configure:11905: gcc -c -g -O2  conftest.c >&5
+configure:11912: $? = 0
+configure:11939: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:77: parse error before `)'
+configure:11946: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| if (sizeof ((size_t)))
+| 	  return 0;
+|   ;
+|   return 0;
+| }
+configure:11969: result: yes
+configure:11981: checking for uid_t in sys/types.h
+configure:12004: result: yes
+configure:12019: checking whether time.h and sys/time.h may both be included
+configure:12049: gcc -c -g -O2  conftest.c >&5
+configure:12056: $? = 0
+configure:12071: result: yes
+configure:12081: checking for ino_t
+configure:12109: gcc -c -g -O2  conftest.c >&5
+configure:12116: $? = 0
+configure:12143: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:78: parse error before `)'
+configure:12150: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| if (sizeof ((ino_t)))
+| 	  return 0;
+|   ;
+|   return 0;
+| }
+configure:12173: result: yes
+configure:12185: checking for dev_t
+configure:12213: gcc -c -g -O2  conftest.c >&5
+configure:12220: $? = 0
+configure:12247: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:78: parse error before `)'
+configure:12254: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| /* end confdefs.h.  */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| #  include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| #  include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| if (sizeof ((dev_t)))
+| 	  return 0;
+|   ;
+|   return 0;
+| }
+configure:12277: result: yes
+configure:12290: checking for rlim_t
+configure:12321: result: yes
+configure:12330: checking for stack_t
+configure:12359: result: yes
+configure:12368: checking whether stack_t has an ss_base field
+configure:12399: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:54: structure has no member named `ss_base'
+configure:12406: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| /* end confdefs.h.  */
+| 
+| #include <sys/types.h>
+| #if STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #endif
+| #include <signal.h>
+| #include "confdefs.h"
+| 
+| int
+| main ()
+| {
+| stack_t sigstk; sigstk.ss_base = 0;
+|   ;
+|   return 0;
+| }
+configure:12420: result: no
+configure:12427: checking --with-tlib argument
+configure:12493: result: empty: automatic terminal library selection
+configure:12502: checking for tgetent in -lncurses
+configure:12537: gcc -o conftest -g -O2   conftest.c -lncurses   >&5
+configure:12544: $? = 0
+configure:12567: result: yes
+configure:12605: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:12609: $? = 0
+configure:12615: ./conftest
+configure:12619: $? = 0
+configure:12708: checking whether we talk terminfo
+configure:12744: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:12748: $? = 0
+configure:12754: ./conftest
+configure:12758: $? = 1
+configure: program exited with status 1
+configure: failed program was:
+| 
+| #include "confdefs.h"
+| #ifdef HAVE_TERMCAP_H
+| # include <termcap.h>
+| #endif
+| #ifdef HAVE_STRING_H
+| # include <string.h>
+| #endif
+| #if STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #endif
+| main()
+| {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
+| 
+configure:12780: result: yes
+configure:12791: checking what tgetent() returns for an unknown terminal
+configure:12824: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:12828: $? = 0
+configure:12834: ./conftest
+"/etc/termcap", line 8075, terminal 'att4424': exit_insert_mode but no enter_insert_mode
+"/etc/termcap", line 8091, terminal 'att4424-1': exit_insert_mode but no enter_insert_mode
+"/etc/termcap", line 8107, terminal 'att4424m': exit_insert_mode but no enter_insert_mode
+"/etc/termcap", line 8201, terminal 'att4426': exit_insert_mode but no enter_insert_mode
+"/etc/termcap", line 10708, terminal 'c108': from_status_line but no to_status_line
+"/etc/termcap", line 10729, terminal 'c108-4p': from_status_line but no to_status_line
+"/etc/termcap", line 10750, terminal 'c108-rv': from_status_line but no to_status_line
+"/etc/termcap", line 10771, terminal 'c108-rv-4p': from_status_line but no to_status_line
+"/etc/termcap", line 10792, terminal 'c108-w': from_status_line but no to_status_line
+"/etc/termcap", line 11215, terminal 'dg+ccc': set_color_pair but no initialize_pair
+"/etc/termcap", line 11934, terminal 'd412-unix-s': from_status_line but no to_status_line
+"/etc/termcap", line 12074, terminal 'd413-unix-s': from_status_line but no to_status_line
+"/etc/termcap", line 12213, terminal 'd414-unix-s': from_status_line but no to_status_line
+"/etc/termcap", line 12298, terminal 'd430c-dg-ccc': set_color_pair but no initialize_pair
+"/etc/termcap", line 12416, terminal 'd430c-unix-s': from_status_line but no to_status_line
+"/etc/termcap", line 12572, terminal 'd430c-unix-s-ccc': from_status_line but no to_status_line
+"/etc/termcap", line 14429, terminal 'hp+color': set_color_pair but no initialize_pair
+"/etc/termcap", line 14436, terminal 'hp2397a': set_color_pair but no initialize_pair
+"/etc/termcap", line 14715, terminal 'ibm5081': from_status_line but no to_status_line
+"/etc/termcap", line 14727, terminal 'ibm5081-c': from_status_line but no to_status_line
+"/etc/termcap", line 14933, terminal 'ibm8514': from_status_line but no to_status_line
+"/etc/termcap", line 14944, terminal 'ibm8514-c': from_status_line but no to_status_line
+"/etc/termcap", line 14968, terminal 'ibmmono': from_status_line but no to_status_line
+"/etc/termcap", line 14979, terminal 'ibmega': from_status_line but no to_status_line
+"/etc/termcap", line 14990, terminal 'ibmega-c': from_status_line but no to_status_line
+"/etc/termcap", line 15001, terminal 'ibmvga-c': from_status_line but no to_status_line
+"/etc/termcap", line 15012, terminal 'ibmvga': from_status_line but no to_status_line
+"/etc/termcap", line 15023, terminal 'rtpc': from_status_line but no to_status_line
+"/etc/termcap", line 15034, terminal 'ibmapa8c': from_status_line but no to_status_line
+"/etc/termcap", line 15045, terminal 'ibmapa8c-c': from_status_line but no to_status_line
+"/etc/termcap", line 15464, terminal 'prism9': from_status_line but no to_status_line
+"/etc/termcap", line 15485, terminal 'prism9-w': from_status_line but no to_status_line
+"/etc/termcap", line 15533, terminal 'prism12': from_status_line but no to_status_line
+"/etc/termcap", line 15554, terminal 'prism12-w': from_status_line but no to_status_line
+"/etc/termcap", line 15602, terminal 'prism14': from_status_line but no to_status_line
+"/etc/termcap", line 15623, terminal 'prism14-w': from_status_line but no to_status_line
+"/etc/termcap", line 17550, terminal 'tty40': exit_insert_mode but no enter_insert_mode
+"/etc/termcap", line 19120, terminal 'z29': from_status_line but no to_status_line
+"/etc/termcap", line 19246, terminal 'ztx': from_status_line but no to_status_line
+configure:12838: $? = 0
+configure:12860: result: zero
+configure:12871: checking whether termcap.h contains ospeed
+configure:12898: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:12905: $? = 0
+configure:12913: result: yes
+configure:12990: checking whether termcap.h contains UP, BC and PC
+configure:13017: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13024: $? = 0
+configure:13032: result: yes
+configure:13109: checking whether tputs() uses outfuntype
+configure:13136: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:55: `outfuntype' undeclared (first use in this function)
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:55: (Each undeclared identifier is reported only once
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:55: for each function it appears in.)
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:55: parse error before `xx'
+configure:13143: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| /* end confdefs.h.  */
+| 
+| #ifdef HAVE_TERMCAP_H
+| # include <termcap.h>
+| #endif
+| 
+| int
+| main ()
+| {
+| extern int xx(); tputs("test", 1, (outfuntype)xx)
+|   ;
+|   return 0;
+| }
+configure:13157: result: no
+configure:13163: checking whether sys/select.h and sys/time.h may both be included
+configure:13189: gcc -c -g -O2  conftest.c >&5
+configure:13196: $? = 0
+configure:13201: result: yes
+configure:13218: checking for /dev/ptc
+configure:13228: result: no
+configure:13232: checking for SVR4 ptys
+configure:13256: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13263: $? = 0
+configure:13271: result: yes
+configure:13292: checking for ptyranges
+configure:13332: result: don't know
+configure:13337: checking default tty permissions/group
+configure:13395: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13399: $? = 0
+configure:13405: ./conftest
+configure:13409: $? = 1
+configure: program exited with status 1
+configure: failed program was:
+| 
+| #include "confdefs.h"
+| #include <sys/types.h>
+| #if STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| #include <unistd.h>
+| #endif
+| #include <sys/stat.h>
+| #include <stdio.h>
+| main()
+| {
+|   struct stat sb;
+|   char *x,*ttyname();
+|   int om, m;
+|   FILE *fp;
+| 
+|   if (!(x = ttyname(0))) exit(1);
+|   if (stat(x, &sb)) exit(1);
+|   om = sb.st_mode;
+|   if (om & 002) exit(0);
+|   m = system("mesg y");
+|   if (m == -1 || m == 127) exit(1);
+|   if (stat(x, &sb)) exit(1);
+|   m = sb.st_mode;
+|   if (chmod(x, om)) exit(1);
+|   if (m & 002) exit(0);
+|   if (sb.st_gid == getgid()) exit(1);
+|   if (!(fp=fopen("conftest_grp", "w")))
+|     exit(1);
+|   fprintf(fp, "%d\n", sb.st_gid);
+|   fclose(fp);
+|   exit(0);
+| }
+| 
+configure:13433: result: can't determine - assume ptys are world accessable
+configure:13444: result: world
+configure:13466: checking return type of signal handlers
+configure:13494: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:55: void value not ignored as it ought to be
+configure:13501: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| /* end confdefs.h.  */
+| #include <sys/types.h>
+| #include <signal.h>
+| 
+| int
+| main ()
+| {
+| return *(signal (0, 0)) (0) == 1;
+|   ;
+|   return 0;
+| }
+configure:13516: result: void
+configure:13537: checking for struct sigcontext
+configure:13567: gcc -c -g -O2  conftest.c >&5
+configure:13574: $? = 0
+configure:13579: result: yes
+configure:13595: checking getcwd implementation is broken
+configure:13630: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13634: $? = 0
+configure:13640: ./conftest
+configure:13644: $? = 0
+configure:13666: result: no
+configure:13731: checking for bcmp
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for fchdir
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for fchown
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for fseeko
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for fsync
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for ftello
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for getcwd
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for getpseudotty
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+/tmp/cc45sYLN.o: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:93: undefined reference to `getpseudotty'
+collect2: ld returned 1 exit status
+configure:13794: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| /* end confdefs.h.  */
+| /* Define getpseudotty to an innocuous variant, in case <limits.h> declares getpseudotty.
+|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+| #define getpseudotty innocuous_getpseudotty
+| 
+| /* System header to define __stub macros and hopefully few prototypes,
+|     which can conflict with char getpseudotty (); below.
+|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+|     <limits.h> exists even on freestanding compilers.  */
+| 
+| #ifdef __STDC__
+| # include <limits.h>
+| #else
+| # include <assert.h>
+| #endif
+| 
+| #undef getpseudotty
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char getpseudotty ();
+| /* The GNU C library defines this for functions which it implements
+|     to always fail with ENOSYS.  Some functions are actually named
+|     something starting with __ and the normal name is an alias.  */
+| #if defined __stub_getpseudotty || defined __stub___getpseudotty
+| choke me
+| #endif
+| 
+| int
+| main ()
+| {
+| return getpseudotty ();
+|   ;
+|   return 0;
+| }
+configure:13816: result: no
+configure:13731: checking for getpwnam
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for getpwuid
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for getrlimit
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for gettimeofday
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for getwd
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+/tmp/cc86zrKO.o: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:97: undefined reference to `getwd'
+collect2: ld returned 1 exit status
+configure:13794: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| /* end confdefs.h.  */
+| /* Define getwd to an innocuous variant, in case <limits.h> declares getwd.
+|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+| #define getwd innocuous_getwd
+| 
+| /* System header to define __stub macros and hopefully few prototypes,
+|     which can conflict with char getwd (); below.
+|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+|     <limits.h> exists even on freestanding compilers.  */
+| 
+| #ifdef __STDC__
+| # include <limits.h>
+| #else
+| # include <assert.h>
+| #endif
+| 
+| #undef getwd
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char getwd ();
+| /* The GNU C library defines this for functions which it implements
+|     to always fail with ENOSYS.  Some functions are actually named
+|     something starting with __ and the normal name is an alias.  */
+| #if defined __stub_getwd || defined __stub___getwd
+| choke me
+| #endif
+| 
+| int
+| main ()
+| {
+| return getwd ();
+|   ;
+|   return 0;
+| }
+configure:13816: result: no
+configure:13731: checking for lstat
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for memcmp
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:87: warning: conflicting types for built-in function `memcmp'
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for memset
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:88: warning: conflicting types for built-in function `memset'
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for nanosleep
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for opendir
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for putenv
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for qsort
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for readlink
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for select
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for setenv
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for setpgid
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for setsid
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for sigaltstack
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for sigstack
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+/tmp/ccU6BaCz.o: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:110: undefined reference to `sigstack'
+collect2: ld returned 1 exit status
+configure:13794: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| /* end confdefs.h.  */
+| /* Define sigstack to an innocuous variant, in case <limits.h> declares sigstack.
+|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+| #define sigstack innocuous_sigstack
+| 
+| /* System header to define __stub macros and hopefully few prototypes,
+|     which can conflict with char sigstack (); below.
+|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+|     <limits.h> exists even on freestanding compilers.  */
+| 
+| #ifdef __STDC__
+| # include <limits.h>
+| #else
+| # include <assert.h>
+| #endif
+| 
+| #undef sigstack
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char sigstack ();
+| /* The GNU C library defines this for functions which it implements
+|     to always fail with ENOSYS.  Some functions are actually named
+|     something starting with __ and the normal name is an alias.  */
+| #if defined __stub_sigstack || defined __stub___sigstack
+| choke me
+| #endif
+| 
+| int
+| main ()
+| {
+| return sigstack ();
+|   ;
+|   return 0;
+| }
+configure:13816: result: no
+configure:13731: checking for sigset
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for sigsetjmp
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for sigaction
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for sigvec
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+/tmp/ccZFkgXz.o: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:113: undefined reference to `sigvec'
+collect2: ld returned 1 exit status
+configure:13794: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| /* end confdefs.h.  */
+| /* Define sigvec to an innocuous variant, in case <limits.h> declares sigvec.
+|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+| #define sigvec innocuous_sigvec
+| 
+| /* System header to define __stub macros and hopefully few prototypes,
+|     which can conflict with char sigvec (); below.
+|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+|     <limits.h> exists even on freestanding compilers.  */
+| 
+| #ifdef __STDC__
+| # include <limits.h>
+| #else
+| # include <assert.h>
+| #endif
+| 
+| #undef sigvec
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char sigvec ();
+| /* The GNU C library defines this for functions which it implements
+|     to always fail with ENOSYS.  Some functions are actually named
+|     something starting with __ and the normal name is an alias.  */
+| #if defined __stub_sigvec || defined __stub___sigvec
+| choke me
+| #endif
+| 
+| int
+| main ()
+| {
+| return sigvec ();
+|   ;
+|   return 0;
+| }
+configure:13816: result: no
+configure:13731: checking for strcasecmp
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for strerror
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for strftime
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for stricmp
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+/tmp/cchqn4a1.o: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:116: undefined reference to `stricmp'
+collect2: ld returned 1 exit status
+configure:13794: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| /* end confdefs.h.  */
+| /* Define stricmp to an innocuous variant, in case <limits.h> declares stricmp.
+|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+| #define stricmp innocuous_stricmp
+| 
+| /* System header to define __stub macros and hopefully few prototypes,
+|     which can conflict with char stricmp (); below.
+|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+|     <limits.h> exists even on freestanding compilers.  */
+| 
+| #ifdef __STDC__
+| # include <limits.h>
+| #else
+| # include <assert.h>
+| #endif
+| 
+| #undef stricmp
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char stricmp ();
+| /* The GNU C library defines this for functions which it implements
+|     to always fail with ENOSYS.  Some functions are actually named
+|     something starting with __ and the normal name is an alias.  */
+| #if defined __stub_stricmp || defined __stub___stricmp
+| choke me
+| #endif
+| 
+| int
+| main ()
+| {
+| return stricmp ();
+|   ;
+|   return 0;
+| }
+configure:13816: result: no
+configure:13731: checking for strncasecmp
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for strnicmp
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+/tmp/ccAY9nKz.o: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:117: undefined reference to `strnicmp'
+collect2: ld returned 1 exit status
+configure:13794: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| /* end confdefs.h.  */
+| /* Define strnicmp to an innocuous variant, in case <limits.h> declares strnicmp.
+|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+| #define strnicmp innocuous_strnicmp
+| 
+| /* System header to define __stub macros and hopefully few prototypes,
+|     which can conflict with char strnicmp (); below.
+|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+|     <limits.h> exists even on freestanding compilers.  */
+| 
+| #ifdef __STDC__
+| # include <limits.h>
+| #else
+| # include <assert.h>
+| #endif
+| 
+| #undef strnicmp
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char strnicmp ();
+| /* The GNU C library defines this for functions which it implements
+|     to always fail with ENOSYS.  Some functions are actually named
+|     something starting with __ and the normal name is an alias.  */
+| #if defined __stub_strnicmp || defined __stub___strnicmp
+| choke me
+| #endif
+| 
+| int
+| main ()
+| {
+| return strnicmp ();
+|   ;
+|   return 0;
+| }
+configure:13816: result: no
+configure:13731: checking for strpbrk
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for strtol
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for tgetent
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for towlower
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for towupper
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for iswupper
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for usleep
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for utime
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13731: checking for utimes
+configure:13787: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13794: $? = 0
+configure:13816: result: yes
+configure:13828: checking for st_blksize
+configure:13856: gcc -c -g -O2  conftest.c >&5
+configure:13863: $? = 0
+configure:13868: result: yes
+configure:13883: checking whether stat() ignores a trailing slash
+configure:13914: gcc -o conftest -g -O2   conftest.c -lncurses  >&5
+configure:13918: $? = 0
+configure:13924: ./conftest
+configure:13928: $? = 0
+configure:13950: result: yes
+configure:13960: checking for iconv_open()
+configure:13989: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+configure:13996: $? = 0
+configure:14004: result: yes; with -liconv
+configure:14077: checking for nl_langinfo(CODESET)
+configure:14104: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:103: `CODESET' undeclared (first use in this function)
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:103: (Each undeclared identifier is reported only once
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:103: for each function it appears in.)
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:103: warning: initialization makes pointer from integer without a cast
+configure:14111: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| /* end confdefs.h.  */
+| 
+| #ifdef HAVE_LANGINFO_H
+| # include <langinfo.h>
+| #endif
+| 
+| int
+| main ()
+| {
+| char *cs = nl_langinfo(CODESET);
+|   ;
+|   return 0;
+| }
+configure:14128: result: no
+configure:14137: checking for strtod in -lm
+configure:14172: gcc -o conftest -g -O2   conftest.c -lm  -lncurses  -liconv >&5
+/boot/develop/tools/gnupro/i586-pc-haiku/bin/ld: cannot find -lm
+collect2: ld returned 1 exit status
+configure:14179: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| /* end confdefs.h.  */
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char strtod ();
+| int
+| main ()
+| {
+| return strtod ();
+|   ;
+|   return 0;
+| }
+configure:14200: result: no
+configure:14211: checking for strtod() and other floating point functions
+configure:14253: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+configure:14260: $? = 0
+configure:14268: result: yes
+configure:14285: checking --disable-acl argument
+configure:14295: result: no
+configure:14297: checking for acl_get_file in -lposix1e
+configure:14332: gcc -o conftest -g -O2   conftest.c -lposix1e  -lncurses  -liconv >&5
+/boot/develop/tools/gnupro/i586-pc-haiku/bin/ld: cannot find -lposix1e
+collect2: ld returned 1 exit status
+configure:14339: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| #define HAVE_FLOAT_FUNCS 1
+| /* end confdefs.h.  */
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char acl_get_file ();
+| int
+| main ()
+| {
+| return acl_get_file ();
+|   ;
+|   return 0;
+| }
+configure:14360: result: no
+configure:14365: checking for acl_get_file in -lacl
+configure:14400: gcc -o conftest -g -O2   conftest.c -lacl  -lncurses  -liconv >&5
+/boot/develop/tools/gnupro/i586-pc-haiku/bin/ld: cannot find -lacl
+collect2: ld returned 1 exit status
+configure:14407: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| #define HAVE_FLOAT_FUNCS 1
+| /* end confdefs.h.  */
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char acl_get_file ();
+| int
+| main ()
+| {
+| return acl_get_file ();
+|   ;
+|   return 0;
+| }
+configure:14428: result: no
+configure:14506: checking for POSIX ACL support
+configure:14536: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:101: parse error before `acl'
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:101: warning: data definition has no type or storage class
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:105: `ACL_TYPE_ACCESS' undeclared (first use in this function)
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:105: (Each undeclared identifier is reported only once
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:105: for each function it appears in.)
+configure:14543: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| #define HAVE_FLOAT_FUNCS 1
+| /* end confdefs.h.  */
+| 
+| #include <sys/types.h>
+| #ifdef HAVE_SYS_ACL_H
+| # include <sys/acl.h>
+| #endif
+| acl_t acl;
+| int
+| main ()
+| {
+| acl = acl_get_file("foo", ACL_TYPE_ACCESS);
+| 	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
+| 	acl_free(acl);
+|   ;
+|   return 0;
+| }
+configure:14560: result: no
+configure:14568: checking for Solaris ACL support
+configure:14595: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:103: `GETACLCNT' undeclared (first use in this function)
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:103: (Each undeclared identifier is reported only once
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:103: for each function it appears in.)
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:103: `NULL' undeclared (first use in this function)
+configure:14602: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| #define HAVE_FLOAT_FUNCS 1
+| /* end confdefs.h.  */
+| 
+| #ifdef HAVE_SYS_ACL_H
+| # include <sys/acl.h>
+| #endif
+| int
+| main ()
+| {
+| acl("foo", GETACLCNT, 0, NULL);
+| 
+|   ;
+|   return 0;
+| }
+configure:14619: result: no
+configure:14627: checking for AIX ACL support
+configure:14669: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c: In function `main':
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:116: sizeof applied to an incomplete type
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:118: `STX_NORMAL' undeclared (first use in this function)
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:118: (Each undeclared identifier is reported only once
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:118: for each function it appears in.)
+configure:14676: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| #define HAVE_FLOAT_FUNCS 1
+| /* end confdefs.h.  */
+| 
+| #if STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #endif
+| #ifdef HAVE_SYS_ACL_H
+| # include <sys/acl.h>
+| #endif
+| #ifdef HAVE_SYS_ACCESS_H
+| # include <sys/access.h>
+| #endif
+| #define _ALL_SOURCE
+| 
+| #include <sys/stat.h>
+| 
+| int aclsize;
+| struct acl *aclent;
+| int
+| main ()
+| {
+| aclsize = sizeof(struct acl);
+| 	aclent = (void *)malloc(aclsize);
+| 	statacl("foo", STX_NORMAL, aclent, aclsize);
+| 
+|   ;
+|   return 0;
+| }
+configure:14693: result: no
+configure:14705: checking --disable-gpm argument
+configure:14716: result: no
+configure:14718: checking for gpm
+configure:14746: gcc -o conftest -g -O2   conftest.c -lgpm >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:96: gpm.h: No such file or directory
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:97: linux/keyboard.h: No such file or directory
+configure:14753: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| #define HAVE_FLOAT_FUNCS 1
+| /* end confdefs.h.  */
+| #include <gpm.h>
+| 	    #include <linux/keyboard.h>
+| int
+| main ()
+| {
+| Gpm_GetLibVersion(NULL);
+|   ;
+|   return 0;
+| }
+configure:14775: result: no
+configure:14789: checking --disable-sysmouse argument
+configure:14800: result: no
+configure:14802: checking for sysmouse
+configure:14834: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:96: sys/consio.h: No such file or directory
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:98: sys/fbio.h: No such file or directory
+configure:14841: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| #define HAVE_FLOAT_FUNCS 1
+| /* end confdefs.h.  */
+| #include <sys/consio.h>
+| 	     #include <signal.h>
+| 	     #include <sys/fbio.h>
+| int
+| main ()
+| {
+| struct mouse_info   mouse;
+| 	     mouse.operation = MOUSE_MODE;
+| 	     mouse.operation = MOUSE_SHOW;
+| 	     mouse.u.mode.mode = 0;
+| 	     mouse.u.mode.signal = SIGUSR2;
+|   ;
+|   return 0;
+| }
+configure:14862: result: no
+configure:14875: checking for rename
+configure:14898: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+configure:14905: $? = 0
+configure:14913: result: yes
+configure:14930: checking for sysctl
+configure:14961: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:98: sys/sysctl.h: No such file or directory
+configure:14968: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| #define HAVE_FLOAT_FUNCS 1
+| #define HAVE_RENAME 1
+| /* end confdefs.h.  */
+| #include <sys/types.h>
+| #include <sys/sysctl.h>
+| int
+| main ()
+| {
+| 	int mib[2], r;
+| 	size_t len;
+| 
+| 	mib[0] = CTL_HW;
+| 	mib[1] = HW_USERMEM;
+| 	len = sizeof(r);
+| 	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
+| 
+|   ;
+|   return 0;
+| }
+configure:14982: result: not usable
+configure:14988: checking for sysinfo
+configure:15017: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:98: sys/sysinfo.h: No such file or directory
+configure:15024: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| #define HAVE_FLOAT_FUNCS 1
+| #define HAVE_RENAME 1
+| /* end confdefs.h.  */
+| #include <sys/types.h>
+| #include <sys/sysinfo.h>
+| int
+| main ()
+| {
+| 	struct sysinfo sinfo;
+| 	int t;
+| 
+| 	(void)sysinfo(&sinfo);
+| 	t = sinfo.totalram;
+| 
+|   ;
+|   return 0;
+| }
+configure:15038: result: not usable
+configure:15044: checking for sysinfo.mem_unit
+configure:15070: gcc -c -g -O2  conftest.c >&5
+/haiku-dane/home/res/vim/vim72-working-copy/src/conftest.c:98: sys/sysinfo.h: No such file or directory
+configure:15077: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| #define HAVE_FLOAT_FUNCS 1
+| #define HAVE_RENAME 1
+| /* end confdefs.h.  */
+| #include <sys/types.h>
+| #include <sys/sysinfo.h>
+| int
+| main ()
+| {
+| 	struct sysinfo sinfo;
+|  	sinfo.mem_unit = 1;
+| 
+|   ;
+|   return 0;
+| }
+configure:15091: result: no
+configure:15097: checking for sysconf
+configure:15122: gcc -c -g -O2  conftest.c >&5
+configure:15129: $? = 0
+configure:15134: result: yes
+configure:15150: checking size of int
+configure:15186: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+configure:15190: $? = 0
+configure:15196: ./conftest
+configure:15200: $? = 0
+configure:15218: result: 4
+configure:15249: checking whether memmove handles overlaps
+configure:15271: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+configure:15275: $? = 0
+configure:15281: ./conftest
+configure:15285: $? = 0
+configure:15307: result: yes
+configure:15570: checking for _xpg4_setrunelocale in -lxpg4
+configure:15605: gcc -o conftest -g -O2   conftest.c -lxpg4  -lncurses  -liconv >&5
+/boot/develop/tools/gnupro/i586-pc-haiku/bin/ld: cannot find -lxpg4
+collect2: ld returned 1 exit status
+configure:15612: $? = 1
+configure: failed program was:
+| /* confdefs.h.  */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define UNIX 1
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_WAIT_H 1
+| #define FEAT_NORMAL 1
+| #define USE_XSMP_INTERACT 1
+| #define X_DISPLAY_MISSING 1
+| #define HAVE_DATE_TIME 1
+| #define HAVE_DIRENT_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_SYS_SELECT_H 1
+| #define HAVE_SYS_UTSNAME_H 1
+| #define HAVE_TERMCAP_H 1
+| #define HAVE_FCNTL_H 1
+| #define HAVE_SYS_IOCTL_H 1
+| #define HAVE_SYS_TIME_H 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_ICONV_H 1
+| #define HAVE_MATH_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_ERRNO_H 1
+| #define HAVE_SYS_RESOURCE_H 1
+| #define HAVE_LOCALE_H 1
+| #define HAVE_TERMIOS_H 1
+| #define HAVE_POLL_H 1
+| #define HAVE_SYS_POLL_H 1
+| #define HAVE_PWD_H 1
+| #define HAVE_UTIME_H 1
+| #define HAVE_SYS_PARAM_H 1
+| #define HAVE_WCHAR_H 1
+| #define HAVE_WCTYPE_H 1
+| #define HAVE_STRINGS_H 1
+| #define TIME_WITH_SYS_TIME 1
+| #define HAVE_LIBNCURSES 1
+| #define TERMINFO 1
+| #define TGETENT_ZERO_ERR 0
+| #define HAVE_OSPEED 1
+| #define HAVE_UP_BC_PC 1
+| #define SYS_SELECT_WITH_SYS_TIME 1
+| #define HAVE_SVR4_PTYS 1
+| #define RETSIGTYPE void
+| #define SIGRETURN return
+| #define HAVE_SIGCONTEXT 1
+| #define HAVE_BCMP 1
+| #define HAVE_FCHDIR 1
+| #define HAVE_FCHOWN 1
+| #define HAVE_FSEEKO 1
+| #define HAVE_FSYNC 1
+| #define HAVE_FTELLO 1
+| #define HAVE_GETCWD 1
+| #define HAVE_GETPWNAM 1
+| #define HAVE_GETPWUID 1
+| #define HAVE_GETRLIMIT 1
+| #define HAVE_GETTIMEOFDAY 1
+| #define HAVE_LSTAT 1
+| #define HAVE_MEMCMP 1
+| #define HAVE_MEMSET 1
+| #define HAVE_NANOSLEEP 1
+| #define HAVE_OPENDIR 1
+| #define HAVE_PUTENV 1
+| #define HAVE_QSORT 1
+| #define HAVE_READLINK 1
+| #define HAVE_SELECT 1
+| #define HAVE_SETENV 1
+| #define HAVE_SETPGID 1
+| #define HAVE_SETSID 1
+| #define HAVE_SIGALTSTACK 1
+| #define HAVE_SIGSET 1
+| #define HAVE_SIGSETJMP 1
+| #define HAVE_SIGACTION 1
+| #define HAVE_STRCASECMP 1
+| #define HAVE_STRERROR 1
+| #define HAVE_STRFTIME 1
+| #define HAVE_STRNCASECMP 1
+| #define HAVE_STRPBRK 1
+| #define HAVE_STRTOL 1
+| #define HAVE_TGETENT 1
+| #define HAVE_TOWLOWER 1
+| #define HAVE_TOWUPPER 1
+| #define HAVE_ISWUPPER 1
+| #define HAVE_USLEEP 1
+| #define HAVE_UTIME 1
+| #define HAVE_UTIMES 1
+| #define HAVE_ST_BLKSIZE 1
+| #define STAT_IGNORES_SLASH 1
+| #define HAVE_ICONV 1
+| #define HAVE_FLOAT_FUNCS 1
+| #define HAVE_RENAME 1
+| #define HAVE_SYSCONF 1
+| #define SIZEOF_INT 4
+| #define USEMEMMOVE 1
+| /* end confdefs.h.  */
+| 
+| /* Override any GCC internal prototype to avoid an error.
+|    Use char because int might match the return type of a GCC
+|    builtin and then its argument prototype would still apply.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char _xpg4_setrunelocale ();
+| int
+| main ()
+| {
+| return _xpg4_setrunelocale ();
+|   ;
+|   return 0;
+| }
+configure:15633: result: no
+configure:15640: checking how to create tags
+Exuberant Ctags 5.7, Copyright (C) 1996-2007 Darren Hiebert
+configure:15655: result: ctags -I INIT+ --fields=+S
+configure:15658: checking how to run man with a section nr
+auto/configure: line 1: man: command not found
+configure:15662: result: man
+configure:15671: checking --disable-nls argument
+configure:15682: result: no
+configure:15692: checking for msgfmt
+configure:15722: result: no
+configure:15727: checking for NLS
+configure:15832: result: msgfmt not found - disabled
+configure:16017: checking dlfcn.h usability
+configure:16034: gcc -c -g -O2  conftest.c >&5
+configure:16041: $? = 0
+configure:16055: result: yes
+configure:16059: checking dlfcn.h presence
+configure:16074: gcc -E  conftest.c
+configure:16081: $? = 0
+configure:16095: result: yes
+configure:16123: checking for dlfcn.h
+configure:16130: result: yes
+configure:16278: checking for dlopen()
+configure:16304: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+configure:16311: $? = 0
+configure:16319: result: yes
+configure:16399: checking for dlsym()
+configure:16425: gcc -o conftest -g -O2   conftest.c -lncurses  -liconv >&5
+configure:16432: $? = 0
+configure:16440: result: yes
+configure:16664: checking setjmp.h usability
+configure:16681: gcc -c -g -O2  conftest.c >&5
+configure:16688: $? = 0
+configure:16702: result: yes
+configure:16706: checking setjmp.h presence
+configure:16721: gcc -E  conftest.c
+configure:16728: $? = 0
+configure:16742: result: yes
+configure:16770: checking for setjmp.h
+configure:16779: result: yes
+configure:16819: checking for GCC 3 or later
+configure:16829: result: no
+configure:16904: updating cache auto/config.cache
+configure:16941: creating auto/config.status
+
+## ---------------------- ##
+## Running config.status. ##
+## ---------------------- ##
+
+This file was extended by config.status, which was
+generated by GNU Autoconf 2.62.  Invocation command line was
+
+  CONFIG_FILES    = 
+  CONFIG_HEADERS  = 
+  CONFIG_LINKS    = 
+  CONFIG_COMMANDS = 
+  $ auto/config.status 
+
+on desk
+
+config.status:890: creating auto/config.mk
+config.status:890: creating auto/config.h
+
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+
+ac_cv_c_compiler_gnu=yes
+ac_cv_c_const=yes
+ac_cv_env_CC_set=
+ac_cv_env_CC_value=
+ac_cv_env_CFLAGS_set=
+ac_cv_env_CFLAGS_value=
+ac_cv_env_CPPFLAGS_set=
+ac_cv_env_CPPFLAGS_value=
+ac_cv_env_CPP_set=
+ac_cv_env_CPP_value=
+ac_cv_env_LDFLAGS_set=
+ac_cv_env_LDFLAGS_value=
+ac_cv_env_LIBS_set=
+ac_cv_env_LIBS_value=
+ac_cv_env_XMKMF_set=
+ac_cv_env_XMKMF_value=
+ac_cv_env_build_alias_set=
+ac_cv_env_build_alias_value=
+ac_cv_env_host_alias_set=
+ac_cv_env_host_alias_value=
+ac_cv_env_target_alias_set=
+ac_cv_env_target_alias_value=
+ac_cv_func_bcmp=yes
+ac_cv_func_fchdir=yes
+ac_cv_func_fchown=yes
+ac_cv_func_fseeko=yes
+ac_cv_func_fsync=yes
+ac_cv_func_ftello=yes
+ac_cv_func_getcwd=yes
+ac_cv_func_getpseudotty=no
+ac_cv_func_getpwnam=yes
+ac_cv_func_getpwuid=yes
+ac_cv_func_getrlimit=yes
+ac_cv_func_gettimeofday=yes
+ac_cv_func_getwd=no
+ac_cv_func_iswupper=yes
+ac_cv_func_lstat=yes
+ac_cv_func_memcmp=yes
+ac_cv_func_memset=yes
+ac_cv_func_nanosleep=yes
+ac_cv_func_opendir=yes
+ac_cv_func_putenv=yes
+ac_cv_func_qsort=yes
+ac_cv_func_readlink=yes
+ac_cv_func_select=yes
+ac_cv_func_setenv=yes
+ac_cv_func_setpgid=yes
+ac_cv_func_setsid=yes
+ac_cv_func_sigaction=yes
+ac_cv_func_sigaltstack=yes
+ac_cv_func_sigset=yes
+ac_cv_func_sigsetjmp=yes
+ac_cv_func_sigstack=no
+ac_cv_func_sigvec=no
+ac_cv_func_strcasecmp=yes
+ac_cv_func_strerror=yes
+ac_cv_func_strftime=yes
+ac_cv_func_stricmp=no
+ac_cv_func_strncasecmp=yes
+ac_cv_func_strnicmp=no
+ac_cv_func_strpbrk=yes
+ac_cv_func_strtol=yes
+ac_cv_func_tgetent=yes
+ac_cv_func_towlower=yes
+ac_cv_func_towupper=yes
+ac_cv_func_usleep=yes
+ac_cv_func_utime=yes
+ac_cv_func_utimes=yes
+ac_cv_have_x=have_x=no
+ac_cv_header_X11_SM_SMlib_h=no
+ac_cv_header_dirent_dirent_h=yes
+ac_cv_header_dlfcn_h=yes
+ac_cv_header_elf_h=no
+ac_cv_header_errno_h=yes
+ac_cv_header_fcntl_h=yes
+ac_cv_header_frame_h=no
+ac_cv_header_iconv_h=yes
+ac_cv_header_langinfo_h=no
+ac_cv_header_libc_h=no
+ac_cv_header_libgen_h=no
+ac_cv_header_libintl_h=no
+ac_cv_header_locale_h=yes
+ac_cv_header_math_h=yes
+ac_cv_header_poll_h=yes
+ac_cv_header_pwd_h=yes
+ac_cv_header_setjmp_h=yes
+ac_cv_header_sgtty_h=no
+ac_cv_header_stdarg_h=yes
+ac_cv_header_stdc=yes
+ac_cv_header_stdlib_h=yes
+ac_cv_header_string_h=yes
+ac_cv_header_strings_h=yes
+ac_cv_header_stropts_h=no
+ac_cv_header_sys_access_h=no
+ac_cv_header_sys_acl_h=no
+ac_cv_header_sys_ioctl_h=yes
+ac_cv_header_sys_param_h=yes
+ac_cv_header_sys_poll_h=yes
+ac_cv_header_sys_ptem_h=no
+ac_cv_header_sys_resource_h=yes
+ac_cv_header_sys_select_h=yes
+ac_cv_header_sys_statfs_h=no
+ac_cv_header_sys_stream_h=no
+ac_cv_header_sys_sysctl_h=no
+ac_cv_header_sys_sysinfo_h=no
+ac_cv_header_sys_systeminfo_h=no
+ac_cv_header_sys_time_h=yes
+ac_cv_header_sys_types_h=yes
+ac_cv_header_sys_utsname_h=yes
+ac_cv_header_sys_wait_h=yes
+ac_cv_header_termcap_h=yes
+ac_cv_header_termio_h=no
+ac_cv_header_termios_h=yes
+ac_cv_header_time=yes
+ac_cv_header_unistd_h=yes
+ac_cv_header_util_debug_h=no
+ac_cv_header_util_msg18n_h=no
+ac_cv_header_utime_h=yes
+ac_cv_header_wchar_h=yes
+ac_cv_header_wctype_h=yes
+ac_cv_lib_acl_acl_get_file=no
+ac_cv_lib_m_strtod=no
+ac_cv_lib_ncurses___tgetent=yes
+ac_cv_lib_nsl_gethostbyname=no
+ac_cv_lib_posix1e_acl_get_file=no
+ac_cv_lib_selinux_is_selinux_enabled=no
+ac_cv_lib_socket_socket=no
+ac_cv_lib_xpg4__xpg4_setrunelocale=no
+ac_cv_objext=o
+ac_cv_path_EGREP='/bin/grep -E'
+ac_cv_path_GREP=/bin/grep
+ac_cv_prog_AWK=gawk
+ac_cv_prog_CPP='gcc -E'
+ac_cv_prog_STRIP=strip
+ac_cv_prog_ac_ct_CC=gcc
+ac_cv_prog_cc_c89=
+ac_cv_prog_cc_g=yes
+ac_cv_prog_gcc_traditional=no
+ac_cv_prog_make_make_set=yes
+ac_cv_search_opendir='none required'
+ac_cv_search_strerror='none required'
+ac_cv_sizeof_int=4
+ac_cv_type_dev_t=yes
+ac_cv_type_ino_t=yes
+ac_cv_type_mode_t=yes
+ac_cv_type_off_t=yes
+ac_cv_type_pid_t=yes
+ac_cv_type_rlim_t=yes
+ac_cv_type_signal=void
+ac_cv_type_size_t=yes
+ac_cv_type_stack_t=yes
+ac_cv_type_uid_t=yes
+cf_cv_ebcdic=no
+vi_cv_have_gpm=no
+vi_cv_have_sysmouse=no
+vim_cv_getcwd_broken=no
+vim_cv_memmove_handles_overlap=yes
+vim_cv_stat_ignores_slash=yes
+vim_cv_terminfo=yes
+vim_cv_tgent=zero
+vim_cv_toupper_broken=no
+vim_cv_tty_group=world
+
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+
+AWK='gawk'
+CC='gcc'
+CFLAGS='-g -O2'
+CPP='gcc -E'
+CPPFLAGS=''
+CPP_MM='M'
+DEFS='-DHAVE_CONFIG_H'
+DEPEND_CFLAGS_FILTER=''
+ECHO_C=''
+ECHO_N='-n'
+ECHO_T=''
+EGREP='/bin/grep -E'
+EXEEXT=''
+EXNAME='ex'
+GNOME_CONFIG=''
+GNOME_INCLUDEDIR=''
+GNOME_LIBDIR=''
+GNOME_LIBS=''
+GREP='/bin/grep'
+GTK12_CONFIG=''
+GTK_CFLAGS=''
+GTK_CONFIG=''
+GTK_LIBNAME=''
+GTK_LIBS=''
+GUITYPE='NONE'
+GUI_INC_LOC=''
+GUI_LIB_LOC=''
+GUI_X_LIBS=''
+HANGULIN_OBJ=''
+HANGULIN_SRC=''
+INSTALL_LANGS='install-languages'
+INSTALL_TOOL_LANGS='install-tool-languages'
+LDFLAGS=''
+LIBOBJS=''
+LIBS='-lncurses  -liconv'
+LTLIBOBJS=''
+MAKEMO=''
+MOTIF_LIBNAME=''
+MSGFMT=''
+MZSCHEME_CFLAGS=''
+MZSCHEME_LIBS=''
+MZSCHEME_OBJ=''
+MZSCHEME_PRO=''
+MZSCHEME_SRC=''
+NARROW_PROTO=''
+NETBEANS_OBJ=''
+NETBEANS_SRC=''
+OBJEXT='o'
+OS_EXTRA_OBJ=''
+OS_EXTRA_SRC=''
+PACKAGE_BUGREPORT=''
+PACKAGE_NAME=''
+PACKAGE_STRING=''
+PACKAGE_TARNAME=''
+PACKAGE_VERSION=''
+PATH_SEPARATOR=':'
+PERL_CFLAGS=''
+PERL_LIBS=''
+PERL_OBJ=''
+PERL_PRO=''
+PERL_SRC=''
+PKG_CONFIG=''
+PYTHON_CFLAGS=''
+PYTHON_CONFDIR=''
+PYTHON_GETPATH_CFLAGS=''
+PYTHON_LIBS=''
+PYTHON_OBJ=''
+PYTHON_SRC=''
+RUBY_CFLAGS=''
+RUBY_LIBS=''
+RUBY_OBJ=''
+RUBY_PRO=''
+RUBY_SRC=''
+SET_MAKE=''
+SHELL='/bin/sh'
+SNIFF_OBJ=''
+SNIFF_SRC=''
+STRIP='strip'
+TAGPRG='ctags -I INIT+ --fields=+S'
+TCL_CFLAGS=''
+TCL_LIBS=''
+TCL_OBJ=''
+TCL_PRO=''
+TCL_SRC=''
+VIEWNAME='view'
+VIMNAME='vim'
+WORKSHOP_OBJ=''
+WORKSHOP_SRC=''
+XMKMF=''
+X_CFLAGS=' '
+X_EXTRA_LIBS=''
+X_LIB=''
+X_LIBS=' '
+X_PRE_LIBS=''
+ac_ct_CC='gcc'
+bindir='${exec_prefix}/bin'
+build_alias=''
+compiledby=''
+datadir='${datarootdir}'
+datarootdir='${prefix}/share'
+docdir='${datarootdir}/doc/${PACKAGE}'
+dogvimdiff='installgvimdiff'
+dovimdiff='installvimdiff'
+dvidir='${docdir}'
+exec_prefix='${prefix}'
+host_alias=''
+htmldir='${docdir}'
+includedir='${prefix}/include'
+infodir='${datarootdir}/info'
+libdir='${exec_prefix}/lib'
+libexecdir='${exec_prefix}/libexec'
+line_break='"\\012"'
+localedir='${datarootdir}/locale'
+localstatedir='${prefix}/var'
+mandir='${datarootdir}/man'
+oldincludedir='/usr/include'
+pdfdir='${docdir}'
+prefix='/usr/local'
+program_transform_name='s,x,x,'
+psdir='${docdir}'
+sbindir='${exec_prefix}/sbin'
+sharedstatedir='${prefix}/com'
+shrpenv=''
+sysconfdir='${prefix}/etc'
+target_alias=''
+vi_cv_path_mzscheme=''
+vi_cv_path_perl=''
+vi_cv_path_python=''
+vi_cv_path_ruby=''
+vi_cv_path_tcl=''
+vi_cv_perllib=''
+xmkmfpath=''
+
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+
+#define PACKAGE_NAME ""
+#define PACKAGE_TARNAME ""
+#define PACKAGE_VERSION ""
+#define PACKAGE_STRING ""
+#define PACKAGE_BUGREPORT ""
+#define UNIX 1
+#define STDC_HEADERS 1
+#define HAVE_SYS_WAIT_H 1
+#define FEAT_NORMAL 1
+#define USE_XSMP_INTERACT 1
+#define X_DISPLAY_MISSING 1
+#define HAVE_DATE_TIME 1
+#define HAVE_DIRENT_H 1
+#define HAVE_STDARG_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRING_H 1
+#define HAVE_SYS_SELECT_H 1
+#define HAVE_SYS_UTSNAME_H 1
+#define HAVE_TERMCAP_H 1
+#define HAVE_FCNTL_H 1
+#define HAVE_SYS_IOCTL_H 1
+#define HAVE_SYS_TIME_H 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_ICONV_H 1
+#define HAVE_MATH_H 1
+#define HAVE_UNISTD_H 1
+#define HAVE_ERRNO_H 1
+#define HAVE_SYS_RESOURCE_H 1
+#define HAVE_LOCALE_H 1
+#define HAVE_TERMIOS_H 1
+#define HAVE_POLL_H 1
+#define HAVE_SYS_POLL_H 1
+#define HAVE_PWD_H 1
+#define HAVE_UTIME_H 1
+#define HAVE_SYS_PARAM_H 1
+#define HAVE_WCHAR_H 1
+#define HAVE_WCTYPE_H 1
+#define HAVE_STRINGS_H 1
+#define TIME_WITH_SYS_TIME 1
+#define HAVE_LIBNCURSES 1
+#define TERMINFO 1
+#define TGETENT_ZERO_ERR 0
+#define HAVE_OSPEED 1
+#define HAVE_UP_BC_PC 1
+#define SYS_SELECT_WITH_SYS_TIME 1
+#define HAVE_SVR4_PTYS 1
+#define RETSIGTYPE void
+#define SIGRETURN return
+#define HAVE_SIGCONTEXT 1
+#define HAVE_BCMP 1
+#define HAVE_FCHDIR 1
+#define HAVE_FCHOWN 1
+#define HAVE_FSEEKO 1
+#define HAVE_FSYNC 1
+#define HAVE_FTELLO 1
+#define HAVE_GETCWD 1
+#define HAVE_GETPWNAM 1
+#define HAVE_GETPWUID 1
+#define HAVE_GETRLIMIT 1
+#define HAVE_GETTIMEOFDAY 1
+#define HAVE_LSTAT 1
+#define HAVE_MEMCMP 1
+#define HAVE_MEMSET 1
+#define HAVE_NANOSLEEP 1
+#define HAVE_OPENDIR 1
+#define HAVE_PUTENV 1
+#define HAVE_QSORT 1
+#define HAVE_READLINK 1
+#define HAVE_SELECT 1
+#define HAVE_SETENV 1
+#define HAVE_SETPGID 1
+#define HAVE_SETSID 1
+#define HAVE_SIGALTSTACK 1
+#define HAVE_SIGSET 1
+#define HAVE_SIGSETJMP 1
+#define HAVE_SIGACTION 1
+#define HAVE_STRCASECMP 1
+#define HAVE_STRERROR 1
+#define HAVE_STRFTIME 1
+#define HAVE_STRNCASECMP 1
+#define HAVE_STRPBRK 1
+#define HAVE_STRTOL 1
+#define HAVE_TGETENT 1
+#define HAVE_TOWLOWER 1
+#define HAVE_TOWUPPER 1
+#define HAVE_ISWUPPER 1
+#define HAVE_USLEEP 1
+#define HAVE_UTIME 1
+#define HAVE_UTIMES 1
+#define HAVE_ST_BLKSIZE 1
+#define STAT_IGNORES_SLASH 1
+#define HAVE_ICONV 1
+#define HAVE_FLOAT_FUNCS 1
+#define HAVE_RENAME 1
+#define HAVE_SYSCONF 1
+#define SIZEOF_INT 4
+#define USEMEMMOVE 1
+#define HAVE_DLFCN_H 1
+#define HAVE_DLOPEN 1
+#define HAVE_DLSYM 1
+#define HAVE_SETJMP_H 1
+
+configure: exit 0
diff -Naur vim72-vendor/src/auto/config.mk vim72-working-copy/src/auto/config.mk
--- vim72-vendor/src/auto/config.mk	2008-12-08 21:47:36.000000000 +0000
+++ vim72-working-copy/src/auto/config.mk	2008-12-12 16:19:35.000000000 +0000
@@ -1,5 +1,151 @@
-the first targets to make vim are: scratch config myself
-srcdir = .
-VIMNAME = vim
-EXNAME = ex
-VIEWNAME = view
+#
+# config.mk.in -- autoconf template for Vim on Unix		vim:ts=8:sw=8:
+#
+# DO NOT EDIT config.mk!!  It will be overwritten by configure.
+# Edit Makefile and run "make" or run ./configure with other arguments.
+#
+# Configure does not edit the makefile directly. This method is not the
+# standard use of GNU autoconf, but it has two advantages:
+#   a) The user can override every choice made by configure.
+#   b) Modifications to the makefile are not lost when configure is run.
+#
+# I hope this is worth being nonstandard. jw.
+
+
+
+VIMNAME		= vim
+EXNAME		= ex
+VIEWNAME	= view
+
+CC		= gcc
+DEFS		= -DHAVE_CONFIG_H
+CFLAGS		= -g -O2
+CPPFLAGS	= 
+srcdir		= .
+
+LDFLAGS		= 
+LIBS		= -lncurses  -liconv
+TAGPRG		= ctags -I INIT+ --fields=+S
+
+CPP		= gcc -E
+CPP_MM		= M
+DEPEND_CFLAGS_FILTER = 
+X_CFLAGS	=  
+X_LIBS_DIR	=  
+X_PRE_LIBS	= 
+X_EXTRA_LIBS	= 
+X_LIBS		= 
+
+MZSCHEME_LIBS	= 
+MZSCHEME_SRC	= 
+MZSCHEME_OBJ	= 
+MZSCHEME_CFLAGS	= 
+MZSCHEME_PRO	= 
+
+PERL		= 
+PERLLIB		= 
+PERL_LIBS	= 
+SHRPENV		= 
+PERL_SRC	= 
+PERL_OBJ	= 
+PERL_PRO	= 
+PERL_CFLAGS	= 
+
+PYTHON_SRC	= 
+PYTHON_OBJ	= 
+PYTHON_CFLAGS	= 
+PYTHON_LIBS	= 
+PYTHON_CONFDIR	= 
+PYTHON_GETPATH_CFLAGS = 
+
+TCL		= 
+TCL_SRC		= 
+TCL_OBJ		= 
+TCL_PRO		= 
+TCL_CFLAGS	= 
+TCL_LIBS	= 
+
+HANGULIN_SRC	= 
+HANGULIN_OBJ	= 
+
+WORKSHOP_SRC	= 
+WORKSHOP_OBJ	= 
+
+NETBEANS_SRC	= 
+NETBEANS_OBJ	= 
+
+RUBY		= 
+RUBY_SRC	= 
+RUBY_OBJ	= 
+RUBY_PRO	= 
+RUBY_CFLAGS	= 
+RUBY_LIBS	= 
+
+SNIFF_SRC	= 
+SNIFF_OBJ	= 
+
+AWK		= gawk
+
+STRIP		= strip
+
+EXEEXT		= 
+
+COMPILEDBY	= 
+
+INSTALLVIMDIFF	= installvimdiff
+INSTALLGVIMDIFF	= installgvimdiff
+INSTALL_LANGS	= install-languages
+INSTALL_TOOL_LANGS	= install-tool-languages
+
+### Line break character as octal number for "tr"
+NL		= "\\012"
+
+### Top directory for everything
+prefix		= /usr/local
+
+### Top directory for the binary
+exec_prefix	= ${prefix}
+
+### Prefix for location of data files
+BINDIR		= ${exec_prefix}/bin
+
+### For autoconf 2.60 and later (avoid a warning)
+datarootdir	= ${prefix}/share
+
+### Prefix for location of data files
+DATADIR		= ${datarootdir}
+
+### Prefix for location of man pages
+MANDIR		= ${datarootdir}/man
+
+### Do we have a GUI
+GUI_INC_LOC	= 
+GUI_LIB_LOC	= 
+GUI_SRC		= $(NONE_SRC)
+GUI_OBJ		= $(NONE_OBJ)
+GUI_DEFS	= $(NONE_DEFS)
+GUI_IPATH	= $(NONE_IPATH)
+GUI_LIBS_DIR	= $(NONE_LIBS_DIR)
+GUI_LIBS1	= $(NONE_LIBS1)
+GUI_LIBS2	= $(NONE_LIBS2)
+GUI_INSTALL	= $(NONE_INSTALL)
+GUI_TARGETS	= $(NONE_TARGETS)
+GUI_MAN_TARGETS	= $(NONE_MAN_TARGETS)
+GUI_TESTTARGET	= $(NONE_TESTTARGET)
+GUI_TESTARG	= $(NONE_TESTARG)
+GUI_BUNDLE	= $(NONE_BUNDLE)
+NARROW_PROTO	= 
+GUI_X_LIBS	= 
+MOTIF_LIBNAME	= 
+GTK_LIBNAME	= 
+
+### Any OS dependent extra source and object file
+OS_EXTRA_SRC	= 
+OS_EXTRA_OBJ	= 
+
+### If the *.po files are to be translated to *.mo files.
+MAKEMO		= 
+
+# Make sure that "make first" will run "make all" once configure has done its
+# work.  This is needed when using the Makefile in the top directory.
+first: all
diff -Naur vim72-vendor/src/auto/config.status vim72-working-copy/src/auto/config.status
--- vim72-vendor/src/auto/config.status	1970-01-01 00:00:00.000000000 +0000
+++ vim72-working-copy/src/auto/config.status	2008-12-12 16:19:35.000000000 +0000
@@ -0,0 +1,1125 @@
+#! /bin/sh
+# Generated by configure.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+SHELL=${CONFIG_SHELL-/bin/sh}
+## --------------------- ##
+## M4sh Initialization.  ##
+## --------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+  setopt NO_GLOB_SUBST
+else
+  case `(set -o) 2>/dev/null` in
+  *posix*) set -o posix ;;
+esac
+
+fi
+
+
+
+
+# PATH needs CR
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+  as_echo='printf %s\n'
+  as_echo_n='printf %s'
+else
+  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+    as_echo_n='/usr/ucb/echo -n'
+  else
+    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+    as_echo_n_body='eval
+      arg=$1;
+      case $arg in
+      *"$as_nl"*)
+	expr "X$arg" : "X\\(.*\\)$as_nl";
+	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+      esac;
+      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+    '
+    export as_echo_n_body
+    as_echo_n='sh -c $as_echo_n_body as_echo'
+  fi
+  export as_echo_body
+  as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+  PATH_SEPARATOR=:
+  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+      PATH_SEPARATOR=';'
+  }
+fi
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.  Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" ""	$as_nl"
+
+# Find who we are.  Look in the path if we contain no directory separator.
+case $0 in
+  *[\\/]* ) as_myself=$0 ;;
+  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+IFS=$as_save_IFS
+
+     ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+  as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+  { (exit 1); exit 1; }
+fi
+
+# Work around bugs in pre-3.0 UWIN ksh.
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+  as_basename=basename
+else
+  as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+	 X"$0" : 'X\(//\)$' \| \
+	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+    sed '/^.*\/\([^/][^/]*\)\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\/\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\/\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+
+# CDPATH.
+$as_unset CDPATH
+
+
+
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
+
+  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+  # uniformly replaced by the line number.  The first 'sed' inserts a
+  # line-number line after each line using $LINENO; the second 'sed'
+  # does the real work.  The second script uses 'N' to pair each
+  # line-number line with the line containing $LINENO, and appends
+  # trailing '-' during substitution so that $LINENO is not a special
+  # case at line end.
+  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+  # scripts with optimization help from Paolo Bonzini.  Blame Lee
+  # E. McMahon (1931-1989) for sed's syntax.  :-)
+  sed -n '
+    p
+    /[$]LINENO/=
+  ' <$as_myself |
+    sed '
+      s/[$]LINENO.*/&-/
+      t lineno
+      b
+      :lineno
+      N
+      :loop
+      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+      t loop
+      s/-\n.*//
+    ' >$as_me.lineno &&
+  chmod +x "$as_me.lineno" ||
+    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+   { (exit 1); exit 1; }; }
+
+  # Don't try to exec as it changes $[0], causing all sort of problems
+  # (the dirname of $[0] is not the place where we might find the
+  # original and so on.  Autoconf is especially sensitive to this).
+  . "./$as_me.lineno"
+  # Exit status is that of the last command.
+  exit
+}
+
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+  as_dirname=dirname
+else
+  as_dirname=false
+fi
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in
+-n*)
+  case `echo 'x\c'` in
+  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
+  *)   ECHO_C='\c';;
+  esac;;
+*)
+  ECHO_N='-n';;
+esac
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+  rm -f conf$$.dir/conf$$.file
+else
+  rm -f conf$$.dir
+  mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+  if ln -s conf$$.file conf$$ 2>/dev/null; then
+    as_ln_s='ln -s'
+    # ... but there are two gotchas:
+    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+    # In both cases, we have to default to `cp -p'.
+    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+      as_ln_s='cp -p'
+  elif ln conf$$.file conf$$ 2>/dev/null; then
+    as_ln_s=ln
+  else
+    as_ln_s='cp -p'
+  fi
+else
+  as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p=:
+else
+  test -d ./-p && rmdir ./-p
+  as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+  as_test_x='test -x'
+else
+  if ls -dL / >/dev/null 2>&1; then
+    as_ls_L_option=L
+  else
+    as_ls_L_option=
+  fi
+  as_test_x='
+    eval sh -c '\''
+      if test -d "$1"; then
+	test -d "$1/.";
+      else
+	case $1 in
+	-*)set "./$1";;
+	esac;
+	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+	???[sx]*):;;*)false;;esac;fi
+    '\'' sh
+  '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+
+# Save the log message, to keep $[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by $as_me, which was
+generated by GNU Autoconf 2.62.  Invocation command line was
+
+  CONFIG_FILES    = $CONFIG_FILES
+  CONFIG_HEADERS  = $CONFIG_HEADERS
+  CONFIG_LINKS    = $CONFIG_LINKS
+  CONFIG_COMMANDS = $CONFIG_COMMANDS
+  $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+# Files that config.status was made for.
+config_files=" auto/config.mk:config.mk.in"
+config_headers=" auto/config.h:config.h.in"
+
+ac_cs_usage="\
+\`$as_me' instantiates files from templates according to the
+current configuration.
+
+Usage: $0 [OPTIONS] [FILE]...
+
+  -h, --help       print this help, then exit
+  -V, --version    print version number and configuration settings, then exit
+  -q, --quiet      do not print progress messages
+  -d, --debug      don't remove temporary files
+      --recheck    update $as_me by reconfiguring in the same conditions
+  --file=FILE[:TEMPLATE]
+                   instantiate the configuration file FILE
+  --header=FILE[:TEMPLATE]
+                   instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Report bugs to <bug-autoconf@gnu.org>."
+
+ac_cs_version="\
+config.status
+configured by auto/configure, generated by GNU Autoconf 2.62,
+  with options \"'--srcdir=.' '--cache-file=auto/config.cache'\"
+
+Copyright (C) 2008 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='/haiku-dane/home/res/vim/vim72-working-copy/src'
+srcdir='.'
+AWK='gawk'
+test -n "$AWK" || AWK=awk
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+  case $1 in
+  --*=*)
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
+    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+    ac_shift=:
+    ;;
+  *)
+    ac_option=$1
+    ac_optarg=$2
+    ac_shift=shift
+    ;;
+  esac
+
+  case $ac_option in
+  # Handling of the options.
+  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+    ac_cs_recheck=: ;;
+  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+    $as_echo "$ac_cs_version"; exit ;;
+  --debug | --debu | --deb | --de | --d | -d )
+    debug=: ;;
+  --file | --fil | --fi | --f )
+    $ac_shift
+    case $ac_optarg in
+    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+    esac
+    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
+    ac_need_defaults=false;;
+  --header | --heade | --head | --hea )
+    $ac_shift
+    case $ac_optarg in
+    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+    esac
+    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
+    ac_need_defaults=false;;
+  --he | --h)
+    # Conflict between --help and --header
+    { $as_echo "$as_me: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&2
+   { (exit 1); exit 1; }; };;
+  --help | --hel | -h )
+    $as_echo "$ac_cs_usage"; exit ;;
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil | --si | --s)
+    ac_cs_silent=: ;;
+
+  # This is an error.
+  -*) { $as_echo "$as_me: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&2
+   { (exit 1); exit 1; }; } ;;
+
+  *) ac_config_targets="$ac_config_targets $1"
+     ac_need_defaults=false ;;
+
+  esac
+  shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+  exec 6>/dev/null
+  ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+if $ac_cs_recheck; then
+  set X '/bin/sh' 'auto/configure'  '--srcdir=.' '--cache-file=auto/config.cache' $ac_configure_extra_args --no-create --no-recursion
+  shift
+  $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
+  CONFIG_SHELL='/bin/sh'
+  export CONFIG_SHELL
+  exec "$@"
+fi
+
+exec 5>>auto/config.log
+{
+  echo
+  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+  $as_echo "$ac_log"
+} >&5
+
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+  case $ac_config_target in
+    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
+    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
+
+  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used.  Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+fi
+
+# Have a temporary directory for convenience.  Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+  tmp=
+  trap 'exit_status=$?
+  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
+' 0
+  trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+  test -n "$tmp" && test -d "$tmp"
+}  ||
+{
+  tmp=./conf$$-$RANDOM
+  (umask 077 && mkdir "$tmp")
+} ||
+{
+   $as_echo "$as_me: cannot create a temporary directory in ." >&2
+   { (exit 1); exit 1; }
+}
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr='
'
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+  ac_cs_awk_cr='\\r'
+else
+  ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$tmp/subs1.awk" &&
+cat >>"$tmp/subs1.awk" <<\_ACAWK &&
+S["SHELL"]="/bin/sh"
+S["PATH_SEPARATOR"]=":"
+S["PACKAGE_NAME"]=""
+S["PACKAGE_TARNAME"]=""
+S["PACKAGE_VERSION"]=""
+S["PACKAGE_STRING"]=""
+S["PACKAGE_BUGREPORT"]=""
+S["exec_prefix"]="${prefix}"
+S["prefix"]="/usr/local"
+S["program_transform_name"]="s,x,x,"
+S["bindir"]="${exec_prefix}/bin"
+S["sbindir"]="${exec_prefix}/sbin"
+S["libexecdir"]="${exec_prefix}/libexec"
+S["datarootdir"]="${prefix}/share"
+S["datadir"]="${datarootdir}"
+S["sysconfdir"]="${prefix}/etc"
+S["sharedstatedir"]="${prefix}/com"
+S["localstatedir"]="${prefix}/var"
+S["includedir"]="${prefix}/include"
+S["oldincludedir"]="/usr/include"
+S["docdir"]="${datarootdir}/doc/${PACKAGE}"
+S["infodir"]="${datarootdir}/info"
+S["htmldir"]="${docdir}"
+S["dvidir"]="${docdir}"
+S["pdfdir"]="${docdir}"
+S["psdir"]="${docdir}"
+S["libdir"]="${exec_prefix}/lib"
+S["localedir"]="${datarootdir}/locale"
+S["mandir"]="${datarootdir}/man"
+S["DEFS"]="-DHAVE_CONFIG_H"
+S["ECHO_C"]=""
+S["ECHO_N"]="-n"
+S["ECHO_T"]=""
+S["LIBS"]="-lncurses  -liconv"
+S["build_alias"]=""
+S["host_alias"]=""
+S["target_alias"]=""
+S["SET_MAKE"]=""
+S["CC"]="gcc"
+S["CFLAGS"]="-g -O2"
+S["LDFLAGS"]=""
+S["CPPFLAGS"]=""
+S["ac_ct_CC"]="gcc"
+S["EXEEXT"]=""
+S["OBJEXT"]="o"
+S["CPP"]="gcc -E"
+S["GREP"]="/bin/grep"
+S["EGREP"]="/bin/grep -E"
+S["AWK"]="gawk"
+S["STRIP"]="strip"
+S["CPP_MM"]="M"
+S["OS_EXTRA_SRC"]=""
+S["OS_EXTRA_OBJ"]=""
+S["VIMNAME"]="vim"
+S["EXNAME"]="ex"
+S["VIEWNAME"]="view"
+S["line_break"]="\"\\\\012\""
+S["dovimdiff"]="installvimdiff"
+S["dogvimdiff"]="installgvimdiff"
+S["compiledby"]=""
+S["vi_cv_path_mzscheme"]=""
+S["MZSCHEME_SRC"]=""
+S["MZSCHEME_OBJ"]=""
+S["MZSCHEME_PRO"]=""
+S["MZSCHEME_LIBS"]=""
+S["MZSCHEME_CFLAGS"]=""
+S["vi_cv_path_perl"]=""
+S["vi_cv_perllib"]=""
+S["shrpenv"]=""
+S["PERL_SRC"]=""
+S["PERL_OBJ"]=""
+S["PERL_PRO"]=""
+S["PERL_CFLAGS"]=""
+S["PERL_LIBS"]=""
+S["vi_cv_path_python"]=""
+S["PYTHON_CONFDIR"]=""
+S["PYTHON_LIBS"]=""
+S["PYTHON_GETPATH_CFLAGS"]=""
+S["PYTHON_CFLAGS"]=""
+S["PYTHON_SRC"]=""
+S["PYTHON_OBJ"]=""
+S["vi_cv_path_tcl"]=""
+S["TCL_SRC"]=""
+S["TCL_OBJ"]=""
+S["TCL_PRO"]=""
+S["TCL_CFLAGS"]=""
+S["TCL_LIBS"]=""
+S["vi_cv_path_ruby"]=""
+S["RUBY_SRC"]=""
+S["RUBY_OBJ"]=""
+S["RUBY_PRO"]=""
+S["RUBY_CFLAGS"]=""
+S["RUBY_LIBS"]=""
+S["WORKSHOP_SRC"]=""
+S["WORKSHOP_OBJ"]=""
+S["NETBEANS_SRC"]=""
+S["NETBEANS_OBJ"]=""
+S["SNIFF_SRC"]=""
+S["SNIFF_OBJ"]=""
+S["xmkmfpath"]=""
+S["XMKMF"]=""
+S["X_CFLAGS"]=" "
+S["X_PRE_LIBS"]=""
+S["X_LIBS"]=" "
+S["X_EXTRA_LIBS"]=""
+S["X_LIB"]=""
+S["GTK_CONFIG"]=""
+S["GTK12_CONFIG"]=""
+S["PKG_CONFIG"]=""
+S["GTK_CFLAGS"]=""
+S["GTK_LIBS"]=""
+S["GTK_LIBNAME"]=""
+S["GNOME_LIBS"]=""
+S["GNOME_LIBDIR"]=""
+S["GNOME_INCLUDEDIR"]=""
+S["GNOME_CONFIG"]=""
+S["MOTIF_LIBNAME"]=""
+S["NARROW_PROTO"]=""
+S["GUI_INC_LOC"]=""
+S["GUI_LIB_LOC"]=""
+S["GUITYPE"]="NONE"
+S["GUI_X_LIBS"]=""
+S["HANGULIN_SRC"]=""
+S["HANGULIN_OBJ"]=""
+S["TAGPRG"]="ctags -I INIT+ --fields=+S"
+S["INSTALL_LANGS"]="install-languages"
+S["INSTALL_TOOL_LANGS"]="install-tool-languages"
+S["MSGFMT"]=""
+S["MAKEMO"]=""
+S["DEPEND_CFLAGS_FILTER"]=""
+S["LIBOBJS"]=""
+S["LTLIBOBJS"]=""
+_ACAWK
+cat >>"$tmp/subs1.awk" <<_ACAWK &&
+  for (key in S) S_is_set[key] = 1
+  FS = ""
+
+}
+{
+  line = $ 0
+  nfields = split(line, field, "@")
+  substed = 0
+  len = length(field[1])
+  for (i = 2; i < nfields; i++) {
+    key = field[i]
+    keylen = length(key)
+    if (S_is_set[key]) {
+      value = S[key]
+      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+      len += length(value) + length(field[++i])
+      substed = 1
+    } else
+      len += 1 + keylen
+  }
+
+  print line
+}
+
+_ACAWK
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+  cat
+fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
+  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
+$as_echo "$as_me: error: could not setup config files machinery" >&2;}
+   { (exit 1); exit 1; }; }
+fi # test -n "$CONFIG_FILES"
+
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
+D["PACKAGE_NAME"]=" \"\""
+D["PACKAGE_TARNAME"]=" \"\""
+D["PACKAGE_VERSION"]=" \"\""
+D["PACKAGE_STRING"]=" \"\""
+D["PACKAGE_BUGREPORT"]=" \"\""
+D["UNIX"]=" 1"
+D["STDC_HEADERS"]=" 1"
+D["HAVE_SYS_WAIT_H"]=" 1"
+D["FEAT_NORMAL"]=" 1"
+D["USE_XSMP_INTERACT"]=" 1"
+D["X_DISPLAY_MISSING"]=" 1"
+D["HAVE_DATE_TIME"]=" 1"
+D["HAVE_DIRENT_H"]=" 1"
+D["HAVE_STDARG_H"]=" 1"
+D["HAVE_STDLIB_H"]=" 1"
+D["HAVE_STRING_H"]=" 1"
+D["HAVE_SYS_SELECT_H"]=" 1"
+D["HAVE_SYS_UTSNAME_H"]=" 1"
+D["HAVE_TERMCAP_H"]=" 1"
+D["HAVE_FCNTL_H"]=" 1"
+D["HAVE_SYS_IOCTL_H"]=" 1"
+D["HAVE_SYS_TIME_H"]=" 1"
+D["HAVE_SYS_TYPES_H"]=" 1"
+D["HAVE_ICONV_H"]=" 1"
+D["HAVE_MATH_H"]=" 1"
+D["HAVE_UNISTD_H"]=" 1"
+D["HAVE_ERRNO_H"]=" 1"
+D["HAVE_SYS_RESOURCE_H"]=" 1"
+D["HAVE_LOCALE_H"]=" 1"
+D["HAVE_TERMIOS_H"]=" 1"
+D["HAVE_POLL_H"]=" 1"
+D["HAVE_SYS_POLL_H"]=" 1"
+D["HAVE_PWD_H"]=" 1"
+D["HAVE_UTIME_H"]=" 1"
+D["HAVE_SYS_PARAM_H"]=" 1"
+D["HAVE_WCHAR_H"]=" 1"
+D["HAVE_WCTYPE_H"]=" 1"
+D["HAVE_STRINGS_H"]=" 1"
+D["TIME_WITH_SYS_TIME"]=" 1"
+D["HAVE_LIBNCURSES"]=" 1"
+D["TERMINFO"]=" 1"
+D["TGETENT_ZERO_ERR"]=" 0"
+D["HAVE_OSPEED"]=" 1"
+D["HAVE_UP_BC_PC"]=" 1"
+D["SYS_SELECT_WITH_SYS_TIME"]=" 1"
+D["HAVE_SVR4_PTYS"]=" 1"
+D["RETSIGTYPE"]=" void"
+D["SIGRETURN"]=" return"
+D["HAVE_SIGCONTEXT"]=" 1"
+D["HAVE_BCMP"]=" 1"
+D["HAVE_FCHDIR"]=" 1"
+D["HAVE_FCHOWN"]=" 1"
+D["HAVE_FSEEKO"]=" 1"
+D["HAVE_FSYNC"]=" 1"
+D["HAVE_FTELLO"]=" 1"
+D["HAVE_GETCWD"]=" 1"
+D["HAVE_GETPWNAM"]=" 1"
+D["HAVE_GETPWUID"]=" 1"
+D["HAVE_GETRLIMIT"]=" 1"
+D["HAVE_GETTIMEOFDAY"]=" 1"
+D["HAVE_LSTAT"]=" 1"
+D["HAVE_MEMCMP"]=" 1"
+D["HAVE_MEMSET"]=" 1"
+D["HAVE_NANOSLEEP"]=" 1"
+D["HAVE_OPENDIR"]=" 1"
+D["HAVE_PUTENV"]=" 1"
+D["HAVE_QSORT"]=" 1"
+D["HAVE_READLINK"]=" 1"
+D["HAVE_SELECT"]=" 1"
+D["HAVE_SETENV"]=" 1"
+D["HAVE_SETPGID"]=" 1"
+D["HAVE_SETSID"]=" 1"
+D["HAVE_SIGALTSTACK"]=" 1"
+D["HAVE_SIGSET"]=" 1"
+D["HAVE_SIGSETJMP"]=" 1"
+D["HAVE_SIGACTION"]=" 1"
+D["HAVE_STRCASECMP"]=" 1"
+D["HAVE_STRERROR"]=" 1"
+D["HAVE_STRFTIME"]=" 1"
+D["HAVE_STRNCASECMP"]=" 1"
+D["HAVE_STRPBRK"]=" 1"
+D["HAVE_STRTOL"]=" 1"
+D["HAVE_TGETENT"]=" 1"
+D["HAVE_TOWLOWER"]=" 1"
+D["HAVE_TOWUPPER"]=" 1"
+D["HAVE_ISWUPPER"]=" 1"
+D["HAVE_USLEEP"]=" 1"
+D["HAVE_UTIME"]=" 1"
+D["HAVE_UTIMES"]=" 1"
+D["HAVE_ST_BLKSIZE"]=" 1"
+D["STAT_IGNORES_SLASH"]=" 1"
+D["HAVE_ICONV"]=" 1"
+D["HAVE_FLOAT_FUNCS"]=" 1"
+D["HAVE_RENAME"]=" 1"
+D["HAVE_SYSCONF"]=" 1"
+D["SIZEOF_INT"]=" 4"
+D["USEMEMMOVE"]=" 1"
+D["HAVE_DLFCN_H"]=" 1"
+D["HAVE_DLOPEN"]=" 1"
+D["HAVE_DLSYM"]=" 1"
+D["HAVE_SETJMP_H"]=" 1"
+  for (key in D) D_is_set[key] = 1
+  FS = ""
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
+  line = $ 0
+  split(line, arg, " ")
+  if (arg[1] == "#") {
+    defundef = arg[2]
+    mac1 = arg[3]
+  } else {
+    defundef = substr(arg[1], 2)
+    mac1 = arg[2]
+  }
+  split(mac1, mac2, "(") #)
+  macro = mac2[1]
+  if (D_is_set[macro]) {
+    # Preserve the white space surrounding the "#".
+    prefix = substr(line, 1, index(line, defundef) - 1)
+    print prefix "define", macro P[macro] D[macro]
+    next
+  } else {
+    # Replace #undef with comments.  This is necessary, for example,
+    # in the case of _POSIX_SOURCE, which is predefined and required
+    # on some systems where configure will not decide to define it.
+    if (defundef == "undef") {
+      print "/*", line, "*/"
+      next
+    }
+  }
+}
+{ print }
+_ACAWK
+  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
+$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
+   { (exit 1); exit 1; }; }
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
+shift
+for ac_tag
+do
+  case $ac_tag in
+  :[FHLC]) ac_mode=$ac_tag; continue;;
+  esac
+  case $ac_mode$ac_tag in
+  :[FHL]*:*);;
+  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
+$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
+   { (exit 1); exit 1; }; };;
+  :[FH]-) ac_tag=-:-;;
+  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+  esac
+  ac_save_IFS=$IFS
+  IFS=:
+  set x $ac_tag
+  IFS=$ac_save_IFS
+  shift
+  ac_file=$1
+  shift
+
+  case $ac_mode in
+  :L) ac_source=$1;;
+  :[FH])
+    ac_file_inputs=
+    for ac_f
+    do
+      case $ac_f in
+      -) ac_f="$tmp/stdin";;
+      *) # Look for the file first in the build tree, then in the source tree
+	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
+	 # because $ac_f cannot contain `:'.
+	 test -f "$ac_f" ||
+	   case $ac_f in
+	   [\\/$]*) false;;
+	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+	   esac ||
+	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
+$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
+   { (exit 1); exit 1; }; };;
+      esac
+      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+      ac_file_inputs="$ac_file_inputs '$ac_f'"
+    done
+
+    # Let's still pretend it is `configure' which instantiates (i.e., don't
+    # use $as_me), people would be surprised to read:
+    #    /* config.h.  Generated by config.status.  */
+    configure_input='Generated from '`
+	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+	`' by configure.'
+    if test x"$ac_file" != x-; then
+      configure_input="$ac_file.  $configure_input"
+      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+    fi
+    # Neutralize special characters interpreted by sed in replacement strings.
+    case $configure_input in #(
+    *\&* | *\|* | *\\* )
+       ac_sed_conf_input=`$as_echo "$configure_input" |
+       sed 's/[\\\\&|]/\\\\&/g'`;; #(
+    *) ac_sed_conf_input=$configure_input;;
+    esac
+
+    case $ac_tag in
+    *:-:* | *:-) cat >"$tmp/stdin" \
+      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+   { (exit 1); exit 1; }; } ;;
+    esac
+    ;;
+  esac
+
+  ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$ac_file" : 'X\(//\)[^/]' \| \
+	 X"$ac_file" : 'X\(//\)$' \| \
+	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ac_file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)[^/].*/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+  { as_dir="$ac_dir"
+  case $as_dir in #(
+  -*) as_dir=./$as_dir;;
+  esac
+  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
+    as_dirs=
+    while :; do
+      case $as_dir in #(
+      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+      *) as_qdir=$as_dir;;
+      esac
+      as_dirs="'$as_qdir' $as_dirs"
+      as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$as_dir" : 'X\(//\)[^/]' \| \
+	 X"$as_dir" : 'X\(//\)$' \| \
+	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)[^/].*/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+      test -d "$as_dir" && break
+    done
+    test -z "$as_dirs" || eval "mkdir $as_dirs"
+  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
+$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
+   { (exit 1); exit 1; }; }; }
+  ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+  # A ".." for each directory in $ac_dir_suffix.
+  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+  case $ac_top_builddir_sub in
+  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+  esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+  .)  # We are building in place.
+    ac_srcdir=.
+    ac_top_srcdir=$ac_top_builddir_sub
+    ac_abs_top_srcdir=$ac_pwd ;;
+  [\\/]* | ?:[\\/]* )  # Absolute name.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir
+    ac_abs_top_srcdir=$srcdir ;;
+  *) # Relative name.
+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_build_prefix$srcdir
+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+  case $ac_mode in
+  :F)
+  #
+  # CONFIG_FILE
+  #
+
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+
+ac_sed_dataroot='
+/datarootdir/ {
+  p
+  q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p
+'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+  ac_datarootdir_hack='
+  s&@datadir@&${datarootdir}&g
+  s&@docdir@&${datarootdir}/doc/${PACKAGE}&g
+  s&@infodir@&${datarootdir}/info&g
+  s&@localedir@&${datarootdir}/locale&g
+  s&@mandir@&${datarootdir}/man&g
+    s&\${datarootdir}&${prefix}/share&g' ;;
+esac
+ac_sed_extra="/^[	 ]*VPATH[	 ]*=/{
+s/:*\$(srcdir):*/:/
+s/:*\${srcdir}:*/:/
+s/:*@srcdir@:*/:/
+s/^\([^=]*=[	 ]*\):*/\1/
+s/:*$//
+s/^[^=]*=[	 ]*$//
+}
+
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
+  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+   { (exit 1); exit 1; }; }
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
+  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
+  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined.  Please make sure it is defined." >&5
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined.  Please make sure it is defined." >&2;}
+
+  rm -f "$tmp/stdin"
+  case $ac_file in
+  -) cat "$tmp/out" && rm -f "$tmp/out";;
+  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
+  esac \
+  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+   { (exit 1); exit 1; }; }
+ ;;
+  :H)
+  #
+  # CONFIG_HEADER
+  #
+  if test x"$ac_file" != x-; then
+    {
+      $as_echo "/* $configure_input  */" \
+      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
+    } >"$tmp/config.h" \
+      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+   { (exit 1); exit 1; }; }
+    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
+      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
+$as_echo "$as_me: $ac_file is unchanged" >&6;}
+    else
+      rm -f "$ac_file"
+      mv "$tmp/config.h" "$ac_file" \
+	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+   { (exit 1); exit 1; }; }
+    fi
+  else
+    $as_echo "/* $configure_input  */" \
+      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
+      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
+$as_echo "$as_me: error: could not create -" >&2;}
+   { (exit 1); exit 1; }; }
+  fi
+ ;;
+
+
+  esac
+
+done # for ac_tag
+
+
+{ (exit 0); exit 0; }
diff -Naur vim72-vendor/src/auto/link.log vim72-working-copy/src/auto/link.log
--- vim72-vendor/src/auto/link.log	1970-01-01 00:00:00.000000000 +0000
+++ vim72-working-copy/src/auto/link.log	2008-12-12 16:19:35.000000000 +0000
@@ -0,0 +1 @@
+  gcc    	-o vim objects/buffer.o objects/charset.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o  objects/if_cscope.o objects/if_xcmdsrv.o objects/main.o objects/mark.o objects/memfile.o objects/memline.o objects/menu.o objects/message.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/popupmnu.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/spell.o objects/syntax.o  objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/window.o           objects/version.o       -lncurses  
diff -Naur vim72-vendor/src/comp vim72-working-copy/src/comp
--- vim72-vendor/src/comp	1970-01-01 00:00:00.000000000 +0000
+++ vim72-working-copy/src/comp	2008-12-12 16:42:02.000000000 +0000
@@ -0,0 +1,53 @@
+CC="gcc -Iproto -DHAVE_CONFIG_H           " srcdir=. sh ./osdef.sh
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/buffer.o buffer.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/charset.o charset.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/diff.o diff.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/digraph.o digraph.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/edit.o edit.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/eval.o eval.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/ex_cmds.o ex_cmds.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/ex_cmds2.o ex_cmds2.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/ex_docmd.o ex_docmd.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/ex_eval.o ex_eval.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/ex_getln.o ex_getln.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/fileio.o fileio.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/fold.o fold.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/getchar.o getchar.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/hardcopy.o hardcopy.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/hashtab.o hashtab.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/if_cscope.o if_cscope.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/if_xcmdsrv.o if_xcmdsrv.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/main.o main.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/mark.o mark.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/memfile.o memfile.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/memline.o memline.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/menu.o menu.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/message.o message.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/misc1.o misc1.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/misc2.o misc2.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/move.o move.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/mbyte.o mbyte.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/normal.o normal.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/ops.o ops.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/option.o option.c
+cc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/os_unix.o os_unix.c
+#creating auto/pathdef.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/pathdef.o auto/pathdef.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/popupmnu.o popupmnu.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/quickfix.o quickfix.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/regexp.o regexp.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/screen.o screen.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/search.o search.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/spell.o spell.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/syntax.o syntax.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/tag.o tag.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/term.o term.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/ui.o ui.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/undo.o undo.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         -o objects/window.o window.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2         version.c -o objects/version.o
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2	      -o objects/gui.o      gui.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2	      -o objects/gui_beos.o gui_beos.cc
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2	      -o objects/os_beos.o os_beos.c
+gcc -c -I. -Iproto -DHAVE_CONFIG_H  -DFEAT_GUI_BEOS   -g -O2	      -o objects/pty.o pty.c
+  gcc   -Xlinker -soname=_APP_	-o vim /boot/beos/system/lib/libbe.so objects/buffer.o objects/charset.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o  objects/if_cscope.o objects/if_xcmdsrv.o objects/main.o objects/mark.o objects/memfile.o objects/memline.o objects/menu.o objects/message.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/popupmnu.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/spell.o objects/syntax.o  objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/window.o           objects/version.o  objects/gui_beos.o  objects/gui.o  objects/os_beos.o objects/pty.o -lncurses  -liconv        
diff -Naur vim72-vendor/src/eval.c vim72-working-copy/src/eval.c
--- vim72-vendor/src/eval.c	2008-12-08 21:47:35.000000000 +0000
+++ vim72-working-copy/src/eval.c	2008-12-12 16:36:33.000000000 +0000
@@ -10735,7 +10735,9 @@
 	    if (font == NOFONT)
 		return;	    /* Invalid font name, return empty string. */
 	}
-	rettv->vval.v_string = gui_mch_get_fontname(font, name);
+	//rettv->vval.v_string = gui_mch_get_fontname(font, name);
+	//QQQ
+	fprintf(stderr, "gui_mch_get_fontname\n");
 	if (argvars[0].v_type != VAR_UNKNOWN)
 	    gui_mch_free_font(font);
     }
@@ -11330,7 +11332,7 @@
 	"arp",
 # endif
 #endif
-#ifdef __BEOS__
+#if (defined(__BEOS__) || defined(__HAIKU__))
 	"beos",
 #endif
 #ifdef MSDOS
diff -Naur vim72-vendor/src/gui.c vim72-working-copy/src/gui.c
--- vim72-vendor/src/gui.c	2008-12-08 21:47:35.000000000 +0000
+++ vim72-working-copy/src/gui.c	2008-12-12 16:38:17.000000000 +0000
@@ -58,7 +58,7 @@
 gui_start()
 {
     char_u	*old_term;
-#if defined(UNIX) && !defined(__BEOS__) && !defined(MACOS_X)
+#if defined(UNIX) && !defined(__BEOS__) && !defined(__HAIKU__) && !defined(MACOS_X)
 # define MAY_FORK
     int		dofork = TRUE;
 #endif
@@ -626,7 +626,7 @@
 gui_exit(rc)
     int		rc;
 {
-#ifndef __BEOS__
+#if !defined(__BEOS__) && !defined(__HAIKU__)
     /* don't free the fonts, it leads to a BUS error
      * richard@whitequeen.com Jul 99 */
     free_highlight_fonts();
@@ -2140,7 +2140,9 @@
 	gui_mch_set_bg_color(bg_color);
 #endif
     }
-    gui_mch_set_sp_color(sp_color);
+    //gui_mch_set_sp_color(sp_color);
+    //QQQ
+    fprintf(stderr, "gui_mch_set_sp_color\n");
 
     /* Clear the selection if we are about to write over it */
     if (!(flags & GUI_MON_NOCLEAR))
@@ -4644,7 +4646,9 @@
     if (!(gui.in_use && p_mousef))
 	return;
 
-    gui_mch_getmouse(&x, &y);
+    //gui_mch_getmouse(&x, &y);
+    //QQQ
+    fprintf(stderr, "gui_mch_getmouse\n");
     /* Don't move the mouse when it's left or right of the Vim window */
     if (x < 0 || x > Columns * gui.char_width)
 	return;
diff -Naur vim72-vendor/src/gui.h vim72-working-copy/src/gui.h
--- vim72-vendor/src/gui.h	2008-12-08 21:47:35.000000000 +0000
+++ vim72-working-copy/src/gui.h	2008-12-12 15:45:37.000000000 +0000
@@ -33,6 +33,10 @@
 # include <gtk/gtk.h>
 #endif
 
+#ifdef FEAT_GUI_BEOS
+# include "gui_beos.h"
+#endif
+
 #ifdef FEAT_GUI_MAC
 # include <Types.h>
 /*# include <Memory.h>*/
@@ -83,7 +87,7 @@
  * GUIs that support dropping files on a running Vim.
  */
 #if defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_MAC) \
-	|| defined(FEAT_GUI_GTK)
+	|| defined(FEAT_GUI_BEOS) || defined(FEAT_GUI_GTK)
 # define HAVE_DROP_FILE
 #endif
 
@@ -216,6 +220,9 @@
 				   scroll_shift is set to the number of shifts
 				   to reduce the count.  */
 #endif
+#if FEAT_GUI_BEOS
+	VimScrollBar *id;	/* Pointer to real scroll bar */
+#endif
 #ifdef FEAT_GUI_MAC
     ControlHandle id;		/* A handle to the scrollbar */
 #endif
@@ -456,6 +463,14 @@
     guicolor_T	currSpColor;	    /* Current special text color */
 #endif
 
+#ifdef FEAT_GUI_BEOS
+    VimApp     *vimApp;
+    VimWindow  *vimWindow;
+    VimFormView *vimForm;
+    VimTextAreaView *vimTextArea;
+    int         vdcmp;              /* Vim Direct Communication Message Port */
+#endif
+
 #ifdef FEAT_GUI_MAC
     WindowPtr	VimWindow;
     MenuHandle	MacOSHelpMenu;	    /* Help menu provided by the MacOS */
diff -Naur vim72-vendor/src/gui_beos.cc vim72-working-copy/src/gui_beos.cc
--- vim72-vendor/src/gui_beos.cc	1970-01-01 00:00:00.000000000 +0000
+++ vim72-working-copy/src/gui_beos.cc	2008-12-12 15:52:40.000000000 +0000
@@ -0,0 +1,3569 @@
+/* vi:set ts=8 sts=4 sw=4:
+ *
+ * VIM - Vi IMproved			by Bram Moolenaar
+ *			    BeBox GUI support Copyright 1998 by Olaf Seibert.
+ *			    All Rights Reserved.
+ *
+ * Do ":help uganda"  in Vim to read copying and usage conditions.
+ * Do ":help credits" in Vim to see a list of people who contributed.
+ *
+ * BeOS GUI.
+ *
+ * GUI support for the Buzzword Enhanced Operating System.
+ *
+ * Ported to R4 by Richard Offer <richard@whitequeen.com> Jul 99
+ *
+ */
+
+/*
+ * Structure of the BeOS GUI code:
+ *
+ * There are 3 threads.
+ * 1. The initial thread. In gui_mch_prepare() this gets to run the
+ *    BApplication message loop. But before it starts doing that,
+ *    it creates thread 2:
+ * 2. The main() thread. This thread is created in gui_mch_prepare()
+ *    and its purpose in life is to call main(argc, argv) again.
+ *    This thread is doing the bulk of the work.
+ * 3. Sooner or later, a window is opened by the main() thread. This
+ *    causes a second message loop to be created: the window thread.
+ *
+ * == alternatively ===
+ *
+ * #if RUN_BAPPLICATION_IN_NEW_THREAD...
+ *
+ * 1. The initial thread. In gui_mch_prepare() this gets to spawn
+ *    thread 2. After doing that, it returns to main() to do the
+ *    bulk of the work, being the main() thread.
+ * 2. Runs the BApplication.
+ * 3. The window thread, just like in the first case.
+ *
+ * This second alternative is cleaner from Vim's viewpoint. However,
+ * the BeBook seems to assume everywhere that the BApplication *must*
+ * run in the initial thread. So perhaps doing otherwise is very wrong.
+ *
+ * However, from a B_SINGLE_LAUNCH viewpoint, the first is better.
+ * If Vim is marked "Single Launch" in its application resources,
+ * and a file is dropped on the Vim icon, and another Vim is already
+ * running, the file is passed on to the earlier Vim. This happens
+ * in BApplication::Run(). So we want Vim to terminate if
+ * BApplication::Run() terminates. (See the BeBook, on BApplication.
+ * However, it seems that the second copy of Vim isn't even started
+ * in this case... which is for the better since I wouldn't know how
+ * to detect this case.)
+ *
+ * Communication between these threads occurs mostly by translating
+ * BMessages that come in and posting an appropriate translation on
+ * the VDCMP (Vim Direct Communication Message Port). Therefore the
+ * actions required for keypresses and window resizes, etc, are mostly
+ * performed in the main() thread.
+ *
+ * A notable exception to this is the Draw() event. The redrawing of
+ * the window contents is performed asynchronously from the window
+ * thread. To make this work correctly, a locking protocol is used when
+ * any thread is accessing the essential variables that are used by
+ * the window thread.
+ *
+ * This locking protocol consists of locking Vim's window. This is both
+ * convenient and necessary.
+ */
+extern "C" {
+
+#include <float.h>
+#include <assert.h>
+#include "vim.h"
+#include "globals.h"
+#include "proto.h"
+#include "option.h"
+
+}	/* extern "C" */
+
+/* ---------------- start of header part ---------------- */
+
+#include <app/MessageQueue.h>
+#include <app/MessageFilter.h>
+#include <app/Clipboard.h>
+#include <kernel/OS.h>
+#include <support/Beep.h>
+#include <interface/View.h>
+#include <interface/Window.h>
+#include <interface/MenuBar.h>
+#include <interface/MenuItem.h>
+#include <interface/ScrollBar.h>
+#include <interface/Region.h>
+#include <interface/Screen.h>
+#include <storage/Path.h>
+#include <storage/Directory.h>
+#include <storage/Entry.h>
+#include <app/Application.h>
+#include <support/Debug.h>
+#include <support/String.h>
+#include <interface/Input.h>
+
+/*
+ * If you don't have R3 or later,
+ * switch this to 0.
+ */
+#define HAVE_R3_OR_LATER 1
+
+/*
+ * Turn on to use inline IM input.
+ */
+//#ifdef FEAT_MBYTE_IME
+# define USE_INLINE_IM
+//#endif
+
+class VimApp;
+class VimFormView;
+class VimTextAreaView;
+class VimWindow;
+
+extern key_map *keyMap;
+extern char *keyMapChars;
+
+extern int main(int argc, char **argv);
+
+#ifndef B_MAX_PORT_COUNT
+#define B_MAX_PORT_COUNT    255
+#endif
+
+/*
+ * VimApp seems comparable to the X "vimShell"
+ */
+class VimApp: public BApplication
+{
+    typedef BApplication Inherited;
+public:
+    VimApp(const char *appsig);
+    ~VimApp();
+
+    // callbacks:
+#if 0
+    virtual void DispatchMessage(BMessage *m, BHandler *h)
+    {
+	m->PrintToStream();
+	Inherited::DispatchMessage(m, h);
+    }
+#endif
+    virtual void ReadyToRun();
+    virtual void ArgvReceived(int32 argc, char **argv);
+    virtual void RefsReceived(BMessage *m);
+    virtual bool QuitRequested();
+
+    static void SendRefs(BMessage *m, bool changedir);
+private:
+};
+
+class VimWindow: public BWindow
+{
+    typedef BWindow Inherited;
+public:
+    VimWindow();
+    ~VimWindow();
+
+    virtual void WindowActivated(bool active);
+    virtual bool QuitRequested();
+
+    VimFormView		*formView;
+
+private:
+    void init();
+
+};
+
+class VimFormView: public BView
+{
+    typedef BView Inherited;
+public:
+    VimFormView(BRect frame);
+    ~VimFormView();
+
+    // callbacks:
+    virtual void AllAttached();
+    virtual void FrameResized(float new_width, float new_height);
+
+#define MENUBAR_MARGIN	1
+    float MenuHeight() const
+	{ return menuBar ? menuBar->Frame().Height() + MENUBAR_MARGIN: 0; }
+    BMenuBar *MenuBar() const
+	{ return menuBar; }
+
+private:
+    void init(BRect);
+
+    BMenuBar		*menuBar;
+    VimTextAreaView	*textArea;
+};
+
+class VimTextAreaView: public BView
+{
+    typedef BView Inherited;
+public:
+    VimTextAreaView(BRect frame);
+    ~VimTextAreaView();
+
+    // callbacks:
+    virtual void Draw(BRect updateRect);
+    virtual void KeyDown(const char *bytes, int32 numBytes);
+    virtual void MouseDown(BPoint point);
+    virtual void MouseUp(BPoint point);
+    virtual void MouseMoved(BPoint point, uint32 transit, const BMessage *message);
+    virtual void MessageReceived(BMessage *m);
+
+    // own functions:
+    int mchInitFont(char_u *name);
+    void mchDrawString(int row, int col, char_u *s, int len, int flags);
+    void mchClearBlock(int row1, int col1, int row2, int col2);
+    void mchClearAll();
+    void mchDeleteLines(int row, int num_lines);
+    void mchInsertLines(int row, int num_lines);
+
+    static void guiSendMouseEvent(int button, int x, int y, int repeated_click, int_u modifiers);
+    static void guiMouseMoved(int x, int y);
+    static void guiBlankMouse(bool should_hide);
+    static int_u mouseModifiersToVim(int32 beModifiers);
+
+    int32 mouseDragEventCount;
+
+#ifdef USE_INLINE_IM
+    void DrawIMString(void);
+#endif
+    
+private:
+    void init(BRect);
+
+    int_u	    vimMouseButton;
+    int_u	    vimMouseModifiers;
+
+#ifdef USE_INLINE_IM
+    struct {
+	BMessenger* messenger;
+	BMessage* message;
+	BPoint location;
+	int row;
+	int col;
+	int count;
+    } IMData;
+#endif
+};
+
+class VimScrollBar: public BScrollBar
+{
+    typedef BScrollBar Inherited;
+public:
+    VimScrollBar(scrollbar_T *gsb, orientation posture);
+    ~VimScrollBar();
+
+    virtual void ValueChanged(float newValue);
+    virtual void MouseUp(BPoint where);
+    void SetValue(float newval);
+    scrollbar_T *getGsb()
+	{ return gsb; }
+
+    int32	    scrollEventCount;
+
+private:
+    scrollbar_T *gsb;
+    float	ignoreValue;
+    
+};
+
+
+/*
+ * For caching the fonts that are used;
+ * Vim seems rather sloppy in this regard.
+ */
+class VimFont: public BFont
+{
+    typedef BFont Inherited;
+public:
+    VimFont();
+    VimFont(const VimFont *rhs);
+    VimFont(const BFont *rhs);
+    VimFont(const VimFont &rhs);
+    ~VimFont();
+
+    VimFont *next;
+    int refcount;
+    char_u *name;
+
+private:
+    void init();
+};
+
+/* ---------------- end of GUI classes ---------------- */
+
+struct MainArgs {
+    int		 argc;
+    char	**argv;
+};
+
+/*
+ * These messages are copied through the VDCMP.
+ * Therefore they ought not to have anything fancy.
+ * They must be of POD type (Plain Old Data)
+ * as the C++ standard calls them.
+ */
+
+#define	KEY_MSG_BUFSIZ	7
+#if KEY_MSG_BUFSIZ < MAX_KEY_CODE_LEN
+#error Increase KEY_MSG_BUFSIZ!
+#endif
+
+struct VimKeyMsg {
+    char_u	length;
+    char_u	chars[KEY_MSG_BUFSIZ];	/* contains Vim encoding */
+#ifdef FEAT_MBYTE
+    bool        csi_escape;
+#endif
+};
+
+struct VimResizeMsg {
+    int		width;
+    int		height;
+};
+
+struct VimScrollBarMsg {
+    VimScrollBar *sb;
+    long	value;
+    int		stillDragging;
+};
+
+struct VimMenuMsg {
+    vimmenu_T	*guiMenu;
+};
+
+struct VimMouseMsg {
+    int		button;
+    int		x;
+    int		y;
+    int		repeated_click;
+    int_u	modifiers;
+};
+
+struct VimMouseMovedMsg {
+    int		x;
+    int		y;
+};
+
+struct VimFocusMsg {
+    bool	active;
+};
+
+struct VimRefsMsg {
+    BMessage   *message;
+    bool	changedir;
+};
+
+struct VimMsg {
+    enum VimMsgType {
+	Key, Resize, ScrollBar, Menu, Mouse, MouseMoved, Focus, Refs
+    };
+
+    union {
+	struct VimKeyMsg	Key;
+	struct VimResizeMsg	NewSize;
+	struct VimScrollBarMsg	Scroll;
+	struct VimMenuMsg	Menu;
+	struct VimMouseMsg	Mouse;
+	struct VimMouseMovedMsg	MouseMoved;
+	struct VimFocusMsg	Focus;
+	struct VimRefsMsg	Refs;
+    } u;
+};
+
+#define RGB(r, g, b)	((char_u)(r) << 16 | (char_u)(g) << 8 | (char_u)(b) << 0)
+#define GUI_TO_RGB(g)	{ (g) >> 16, (g) >> 8, (g) >> 0, 255 }
+
+/* ---------------- end of header part ---------------- */
+
+static struct specialkey
+{
+    uint16  BeKeys;
+#define KEY(a,b)	((a)<<8|(b))
+#define K(a)		KEY(0,a)		    // for ASCII codes
+#define F(b)		KEY(1,b)		    // for scancodes
+    char_u  vim_code0;
+    char_u  vim_code1;
+} special_keys[] =
+{
+    {K(B_UP_ARROW),	    'k', 'u'},
+    {K(B_DOWN_ARROW),	    'k', 'd'},
+    {K(B_LEFT_ARROW),	    'k', 'l'},
+    {K(B_RIGHT_ARROW),	    'k', 'r'},
+    {K(B_BACKSPACE),	    'k', 'b'},
+    {K(B_INSERT),	    'k', 'I'},
+    {K(B_DELETE),	    'k', 'D'},
+    {K(B_HOME),		    'k', 'h'},
+    {K(B_END),		    '@', '7'},
+    {K(B_PAGE_UP),	    'k', 'P'},	    /* XK_Prior */
+    {K(B_PAGE_DOWN),	    'k', 'N'},	    /* XK_Next, */
+
+#define FIRST_FUNCTION_KEY  11
+    {F(B_F1_KEY),	    'k', '1'},
+    {F(B_F2_KEY),	    'k', '2'},
+    {F(B_F3_KEY),	    'k', '3'},
+    {F(B_F4_KEY),	    'k', '4'},
+    {F(B_F5_KEY),	    'k', '5'},
+    {F(B_F6_KEY),	    'k', '6'},
+    {F(B_F7_KEY),	    'k', '7'},
+    {F(B_F8_KEY),	    'k', '8'},
+    {F(B_F9_KEY),	    'k', '9'},
+    {F(B_F10_KEY),	    'k', ';'},
+
+    {F(B_F11_KEY),	    'F', '1'},
+    {F(B_F12_KEY),	    'F', '2'},
+//  {XK_F13,		    'F', '3'},		/* would be print screen/ */
+						/* sysreq */
+    {F(0x0F),		    'F', '4'},		/* scroll lock */
+    {F(0x10),		    'F', '5'},		/* pause/break */
+//  {XK_F16,	    'F', '6'},
+//  {XK_F17,	    'F', '7'},
+//  {XK_F18,	    'F', '8'},
+//  {XK_F19,	    'F', '9'},
+//  {XK_F20,	    'F', 'A'},
+//
+//  {XK_F21,	    'F', 'B'},
+//  {XK_F22,	    'F', 'C'},
+//  {XK_F23,	    'F', 'D'},
+//  {XK_F24,	    'F', 'E'},
+//  {XK_F25,	    'F', 'F'},
+//  {XK_F26,	    'F', 'G'},
+//  {XK_F27,	    'F', 'H'},
+//  {XK_F28,	    'F', 'I'},
+//  {XK_F29,	    'F', 'J'},
+//  {XK_F30,	    'F', 'K'},
+//
+//  {XK_F31,	    'F', 'L'},
+//  {XK_F32,	    'F', 'M'},
+//  {XK_F33,	    'F', 'N'},
+//  {XK_F34,	    'F', 'O'},
+//  {XK_F35,	    'F', 'P'},	    /* keysymdef.h defines up to F35 */
+
+//  {XK_Help,	    '%', '1'},	    /* XK_Help */
+    {F(B_PRINT_KEY),	    '%', '9'},
+
+#if 0
+    /* Keypad keys: */
+    {F(0x48),	    'k', 'l'},	    /* XK_KP_Left */
+    {F(0x4A),	    'k', 'r'},	    /* XK_KP_Right */
+    {F(0x38),	    'k', 'u'},	    /* XK_KP_Up */
+    {F(0x59),	    'k', 'd'},	    /* XK_KP_Down */
+    {F(0x64),	    'k', 'I'},	    /* XK_KP_Insert */
+    {F(0x65),	    'k', 'D'},	    /* XK_KP_Delete */
+    {F(0x37),	    'k', 'h'},	    /* XK_KP_Home */
+    {F(0x58),	    '@', '7'},	    /* XK_KP_End */
+    {F(0x39),	    'k', 'P'},	    /* XK_KP_Prior */
+    {F(0x60),	    'k', 'N'},	    /* XK_KP_Next */
+    {F(0x49),	    '&', '8'},	    /* XK_Undo, keypad 5 */
+#endif
+
+    /* End of list marker: */
+    {0,			    0, 0}
+};
+
+#define NUM_SPECIAL_KEYS    (sizeof(special_keys)/sizeof(special_keys[0]))
+
+/* ---------------- VimApp ---------------- */
+
+    static void
+docd(BPath &path)
+{
+    mch_chdir(path.Path());
+    /* Do this to get the side effects of a :cd command */
+    do_cmdline_cmd((char_u *)"cd .");
+}
+
+/*
+ * Really handle dropped files and folders.
+ */
+    static void
+RefsReceived(BMessage *m, bool changedir)
+{
+    uint32 type;
+    int32 count;
+
+    //m->PrintToStream();
+    switch (m->what) {
+    case B_REFS_RECEIVED:
+    case B_SIMPLE_DATA:
+	m->GetInfo("refs", &type, &count);
+	if (type != B_REF_TYPE)
+	    goto bad;
+	break;
+    case B_ARGV_RECEIVED:
+	m->GetInfo("argv", &type, &count);
+	if (type != B_STRING_TYPE)
+	    goto bad;
+	if (changedir) {
+	    char *dirname;
+	    if (m->FindString("cwd", (const char **) &dirname) == B_OK) {
+		chdir(dirname);
+		do_cmdline_cmd((char_u *)"cd .");
+	    }
+	}
+	break;
+    default:
+    bad:
+	//fprintf(stderr, "bad!\n");
+	delete m;
+	return;
+    }
+
+#ifdef FEAT_VISUAL
+    reset_VIsual();
+#endif
+
+    char_u  **fnames;
+    fnames = (char_u **) alloc(count * sizeof(char_u *));
+    int fname_index = 0;
+
+    switch (m->what) {
+    case B_REFS_RECEIVED:
+    case B_SIMPLE_DATA:
+	//fprintf(stderr, "case B_REFS_RECEIVED\n");
+	for (int i = 0; i < count; ++i)
+	{
+	    entry_ref ref;
+	    if (m->FindRef("refs", i, &ref) == B_OK) {
+		BEntry entry(&ref, false);
+		BPath path;
+		entry.GetPath(&path);
+
+		/* Change to parent directory? */
+		if (changedir) {
+		    BPath parentpath;
+		    path.GetParent(&parentpath);
+		    docd(parentpath);
+		}
+
+		/* Is it a directory? If so, cd into it. */
+		BDirectory bdir(&ref);
+		if (bdir.InitCheck() == B_OK) {
+		    /* don't cd if we already did it */
+		    if (!changedir)
+			docd(path);
+		} else {
+		    mch_dirname(IObuff, IOSIZE);
+		    char_u *fname = shorten_fname((char_u *)path.Path(), IObuff);
+		    if (fname == NULL)
+			fname = (char_u *)path.Path();
+		    fnames[fname_index++] = vim_strsave(fname);
+		    //fprintf(stderr, "%s\n", fname);
+		}
+
+		/* Only do it for the first file/dir */
+		changedir = false;
+	    }
+	}
+	break;
+    case B_ARGV_RECEIVED:
+	//fprintf(stderr, "case B_ARGV_RECEIVED\n");
+	for (int i = 1; i < count; ++i)
+	{
+	    char *fname;
+
+	    if (m->FindString("argv", i, (const char **) &fname) == B_OK) {
+		fnames[fname_index++] = vim_strsave((char_u *)fname);
+	    }
+	}
+	break;
+    default:
+	//fprintf(stderr, "case default\n");
+	break;
+    }
+
+    delete m;
+
+    /* Handle the drop, :edit to get to the file */
+    if (fname_index > 0) {
+	handle_drop(fname_index, fnames, FALSE);
+
+	/* Update the screen display */
+	update_screen(NOT_VALID);
+	setcursor();
+	out_flush();
+    } else {
+	vim_free(fnames);
+    }
+}
+
+VimApp::VimApp(const char *appsig):
+    BApplication(appsig)
+{
+}
+
+VimApp::~VimApp()
+{
+}
+
+    void
+VimApp::ReadyToRun()
+{
+    /*
+     * Apparently signals are inherited by the created thread -
+     * disable the most annoying ones.
+     */
+    signal(SIGINT, SIG_IGN);
+    signal(SIGQUIT, SIG_IGN);
+}
+
+    void
+VimApp::ArgvReceived(int32 arg_argc, char **arg_argv)
+{
+    if (!IsLaunching()) {
+	/*
+	 * This can happen if we are set to Single or Exclusive
+	 * Launch. Be nice and open the file(s).
+	 */
+	if (gui.vimWindow)
+	    gui.vimWindow->Minimize(false);
+	BMessage *m = CurrentMessage();
+	DetachCurrentMessage();
+	SendRefs(m, true);
+    }
+}
+
+    void
+VimApp::RefsReceived(BMessage *m)
+{
+    /* Horrible hack!!! XXX XXX XXX
+     * The real problem is that b_start_ffc is set too late for
+     * the initial empty buffer. As a result the window will be
+     * split instead of abandoned.
+     */
+    int limit = 15;
+    while (--limit >= 0 && (curbuf == NULL || curbuf->b_start_ffc == 0))
+	snooze(100000);    // 0.1 s
+    if (gui.vimWindow)
+	gui.vimWindow->Minimize(false);
+    DetachCurrentMessage();
+    SendRefs(m, true);
+}
+
+/*
+ * Pass a BMessage on to the main() thread.
+ * Caller must have detached the message.
+ */
+    void
+VimApp::SendRefs(BMessage *m, bool changedir)
+{
+    VimRefsMsg rm;
+    rm.message = m;
+    rm.changedir = changedir;
+
+    write_port(gui.vdcmp, VimMsg::Refs, &rm, sizeof(rm));
+    // calls ::RefsReceived
+}
+
+    bool
+VimApp::QuitRequested()
+{
+    (void)Inherited::QuitRequested();
+    return false;
+}
+
+/* ---------------- VimWindow ---------------- */
+
+VimWindow::VimWindow():
+    BWindow(BRect(40, 40, 150, 150),
+	    "Vim",
+	    B_TITLED_WINDOW,
+	    0,
+	    B_CURRENT_WORKSPACE)
+
+{
+    init();
+}
+
+VimWindow::~VimWindow()
+{
+    if (formView) {
+	RemoveChild(formView);
+	delete formView;
+    }
+    gui.vimWindow = NULL;
+}
+
+    void
+VimWindow::init()
+{
+    /* Attach the VimFormView */
+    formView = new VimFormView(Bounds());
+    if (formView != NULL) {
+	AddChild(formView);
+    }
+}
+
+    void
+VimWindow::WindowActivated(bool active)
+{
+    Inherited::WindowActivated(active);
+    /* the textArea gets the keyboard action */
+    if (active && gui.vimTextArea)
+	gui.vimTextArea->MakeFocus(true);
+
+    struct VimFocusMsg fm;
+    fm.active = active;
+
+    write_port(gui.vdcmp, VimMsg::Focus, &fm, sizeof(fm));
+}
+
+    bool
+VimWindow::QuitRequested()
+{
+    struct VimKeyMsg km;
+    km.length = 5;
+    memcpy((char *)km.chars, "\033:qa\r", km.length);
+#ifdef FEAT_MBYTE
+    km.csi_escape = false;
+#endif
+    
+    write_port(gui.vdcmp, VimMsg::Key, &km, sizeof(km));
+
+    return false;
+}
+
+/* ---------------- VimFormView ---------------- */
+
+VimFormView::VimFormView(BRect frame):
+    BView(frame, "VimFormView", B_FOLLOW_ALL_SIDES,
+	    B_WILL_DRAW | B_FRAME_EVENTS),
+    menuBar(NULL),
+    textArea(NULL)
+{
+    init(frame);
+}
+
+VimFormView::~VimFormView()
+{
+    if (menuBar) {
+	RemoveChild(menuBar);
+#ifdef never
+	// deleting the menuBar leads to SEGV on exit
+	// richard@whitequeen.com Jul 99
+	delete menuBar;
+#endif
+    }
+    if (textArea) {
+	RemoveChild(textArea);
+	delete textArea;
+    }
+    gui.vimForm = NULL;
+}
+
+    void
+VimFormView::init(BRect frame)
+{
+    menuBar = new BMenuBar(BRect(0,0,-MENUBAR_MARGIN,-MENUBAR_MARGIN),
+	    "VimMenuBar");
+
+    AddChild(menuBar);
+
+    BRect remaining = frame;
+    textArea = new VimTextAreaView(remaining);
+    AddChild(textArea);
+    /* The textArea will be resized later when menus are added */
+
+    gui.vimForm = this;
+}
+
+    void
+VimFormView::AllAttached()
+{
+    /*
+     * Apparently signals are inherited by the created thread -
+     * disable the most annoying ones.
+     */
+    signal(SIGINT, SIG_IGN);
+    signal(SIGQUIT, SIG_IGN);
+
+    if (menuBar && textArea) {
+	/*
+	 * Resize the textArea to fill the space left over by the menu.
+	 * This is somewhat futile since it will be done again once
+	 * menus are added to the menu bar.
+	 */
+	BRect remaining = Bounds();
+	remaining.top = MenuHeight();
+	textArea->ResizeTo(remaining.Width(), remaining.Height());
+	textArea->MoveTo(remaining.left, remaining.top);
+
+#ifdef FEAT_MENU
+	menuBar->ResizeTo(remaining.right, remaining.top);
+	gui.menu_height = (int) remaining.top;
+#endif
+    }
+    Inherited::AllAttached();
+}
+
+    void
+VimFormView::FrameResized(float new_width, float new_height)
+{
+    struct VimResizeMsg sm;
+    int adjust_h, adjust_w;
+
+    new_width += 1;	    // adjust from width to number of pixels occupied
+    new_height += 1;
+
+    sm.width = (int) new_width;
+    sm.height = (int) new_height;
+    adjust_w = ((int)new_width - gui_get_base_width()) % gui.char_width;
+    adjust_h = ((int)new_height - gui_get_base_height()) % gui.char_height;
+
+    if (adjust_w > 0 || adjust_h > 0) {
+	sm.width  -= adjust_w;
+	sm.height -= adjust_h;
+    }
+
+    write_port(gui.vdcmp, VimMsg::Resize, &sm, sizeof(sm));
+    // calls gui_resize_shell(new_width, new_height);
+
+    return;
+
+    /*
+     * The area below the vertical scrollbar is erased to the colour
+     * set with SetViewColor() automatically, because we had set
+     * B_WILL_DRAW. Resizing the window tight around the vertical
+     * scroll bar also helps to avoid debris.
+     */
+}
+
+/* ---------------- VimTextAreaView ---------------- */
+
+VimTextAreaView::VimTextAreaView(BRect frame):
+    BView(frame, "VimTextAreaView", B_FOLLOW_ALL_SIDES,
+	    B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE
+#ifdef USE_INLINE_IM
+	    | B_INPUT_METHOD_AWARE
+#endif
+	    ),
+    mouseDragEventCount(0)
+{
+    IMData.messenger = NULL;
+    IMData.message = NULL;
+    init(frame);
+}
+
+VimTextAreaView::~VimTextAreaView()
+{
+    gui.vimTextArea = NULL;
+}
+
+    void
+VimTextAreaView::init(BRect frame)
+{
+    /* set up global var for fast access */
+    gui.vimTextArea = this;
+
+    /*
+     * Tell the app server not to erase the view: we will
+     * fill it in completely by ourselves.
+     * (Does this really work? Even if not, it won't harm either.)
+     */
+    SetViewColor(B_TRANSPARENT_32_BIT);
+#define PEN_WIDTH   1
+    SetPenSize(PEN_WIDTH);
+}
+
+    void
+VimTextAreaView::Draw(BRect updateRect)
+{
+    /*
+     * XXX Other ports call here:
+     * out_flush();	     * make sure all output has been processed *
+     * but we can't do that, since it involves too much information
+     * that is owned by other threads...
+     */
+
+    /*
+     *  No need to use gui.vimWindow->Lock(): we are locked already.
+     *  However, it would not hurt.
+     */
+    rgb_color rgb = GUI_TO_RGB(gui.back_pixel);
+    SetLowColor(rgb);
+    FillRect(updateRect, B_SOLID_LOW);
+    gui_redraw((int) updateRect.left, (int) updateRect.top,
+	    (int) (updateRect.Width() + PEN_WIDTH), (int) (updateRect.Height() + PEN_WIDTH));
+
+    /* Clear the border areas if needed */
+    SetLowColor(rgb);
+
+    if (updateRect.left < FILL_X(0))	// left border
+	FillRect(BRect(updateRect.left, updateRect.top,
+		       FILL_X(0)-PEN_WIDTH, updateRect.bottom), B_SOLID_LOW);
+    if (updateRect.top < FILL_Y(0))	// top border
+	FillRect(BRect(updateRect.left, updateRect.top,
+		       updateRect.right, FILL_Y(0)-PEN_WIDTH), B_SOLID_LOW);
+    if (updateRect.right >= FILL_X(Columns)) // right border
+	FillRect(BRect(FILL_X((int)Columns), updateRect.top,
+		       updateRect.right, updateRect.bottom), B_SOLID_LOW);
+    if (updateRect.bottom >= FILL_Y(Rows))   // bottom border
+	FillRect(BRect(updateRect.left, FILL_Y((int)Rows),
+		       updateRect.right, updateRect.bottom), B_SOLID_LOW);
+
+#ifdef USE_INLINE_IM
+    DrawIMString();
+#endif
+}
+
+    void
+VimTextAreaView::KeyDown(const char *bytes, int32 numBytes)
+{
+    struct VimKeyMsg km;
+    char_u *dest = km.chars;
+    bool canHaveVimModifiers = false;
+
+    BMessage *msg = Window()->CurrentMessage();
+    assert(msg);
+    //msg->PrintToStream();
+
+    /*
+     * Convert special keys to Vim codes.
+     * I think it is better to do it in the window thread
+     * so we use at least a little bit of the potential
+     * of our 2 CPUs. Besides, due to the fantastic mapping
+     * of special keys to UTF-8, we have quite some work to
+     * do...
+     * TODO: I'm not quite happy with detection of special
+     * keys. Perhaps I should use scan codes after all...
+     */
+    if (numBytes > 1) {
+	/* This cannot be a special key */
+	if (numBytes > KEY_MSG_BUFSIZ)
+	    numBytes = KEY_MSG_BUFSIZ;	    // should never happen... ???
+	km.length = numBytes;
+	memcpy((char *)dest, bytes, numBytes);
+#ifdef FEAT_MBYTE
+	km.csi_escape = true;
+#endif
+    } else {
+	int32 scancode = 0;
+	msg->FindInt32("key", &scancode);
+
+	int32 beModifiers = 0;
+	msg->FindInt32("modifiers", &beModifiers);
+
+	char_u string[3];
+	int len = 0;
+	km.length = 0;
+
+	/*
+	 * For normal, printable ASCII characters, don't look them up
+	 * to check if they might be a special key. They aren't.
+	 */
+	assert(B_BACKSPACE <= 0x20);
+	assert(B_DELETE == 0x7F);
+	if (((char_u)bytes[0] <= 0x20 || (char_u)bytes[0] == 0x7F) &&
+		numBytes == 1) {
+	    /*
+	     * Due to the great nature of Be's mapping of special keys,
+	     * viz. into the range of the control characters,
+	     * we can only be sure it is *really* a special key if
+	     * if it is special without using ctrl. So, only if ctrl is
+	     * used, we need to check it unmodified.
+	     */
+	    if (beModifiers & B_CONTROL_KEY) {
+		int index = keyMap->normal_map[scancode];
+		int newNumBytes = keyMapChars[index];
+		char_u *newBytes = (char_u *)&keyMapChars[index + 1];
+
+		/*
+		 * Check if still special without the control key.
+		 * This is needed for BACKSPACE: that key does produce
+		 * different values with modifiers (DEL).
+		 * Otherwise we could simply have checked for equality.
+		 */
+		if (newNumBytes != 1 || (*newBytes > 0x20 &&
+					 *newBytes != 0x7F )) {
+		    goto notspecial;
+		}
+		bytes = (char *)newBytes;
+	    }
+	    canHaveVimModifiers = true;
+
+	    uint16 beoskey;
+	    int first, last;
+
+	    /*
+	     * If numBytes == 0 that probably always indicates a special key.
+	     * (does not happen yet)
+	     */
+	    if (numBytes == 0 || bytes[0] == B_FUNCTION_KEY) {
+		beoskey = F(scancode);
+		first = FIRST_FUNCTION_KEY;
+		last = NUM_SPECIAL_KEYS;
+	    } else if (*bytes == '\n' && scancode == 0x47) {
+		 /* remap the (non-keypad) ENTER key from \n to \r. */
+		string[0] = '\r';
+		len = 1;
+		first = last = 0;
+	    } else {
+		beoskey = K(bytes[0]);
+		first = 0;
+		last = FIRST_FUNCTION_KEY;
+	    }
+
+	    for (int i = first; i < last; i++) {
+		if (special_keys[i].BeKeys == beoskey) {
+		    string[0] = CSI;
+		    string[1] = special_keys[i].vim_code0;
+		    string[2] = special_keys[i].vim_code1;
+		    len = 3;
+		}
+	    }
+	}
+    notspecial:
+	if (len == 0) {
+	    string[0] = bytes[0];
+	    len = 1;
+	}
+
+	/* Special keys (and a few others) may have modifiers */
+#if 0
+	if (len == 3 ||
+		bytes[0] == B_SPACE || bytes[0] == B_TAB ||
+		bytes[0] == B_RETURN || bytes[0] == '\r' ||
+		bytes[0] == B_ESCAPE)
+#else
+	if (canHaveVimModifiers)
+#endif
+	{
+	    int modifiers;
+	    modifiers = 0;
+	    if (beModifiers & B_SHIFT_KEY)
+		modifiers |= MOD_MASK_SHIFT;
+	    if (beModifiers & B_CONTROL_KEY)
+		modifiers |= MOD_MASK_CTRL;
+	    if (beModifiers & B_OPTION_KEY)
+		modifiers |= MOD_MASK_ALT;
+
+	    /*
+	     * For some keys a shift modifier is translated into another key
+	     * code.  Do we need to handle the case where len != 1 and
+	     * string[0] != CSI? (Not for BeOS, since len == 3 implies
+	     * string[0] == CSI...)
+	     */
+	    int key;
+	    if (string[0] == CSI && len == 3)
+		key = TO_SPECIAL(string[1], string[2]);
+	    else
+		key = string[0];
+	    key = simplify_key(key, &modifiers);
+	    if (IS_SPECIAL(key))
+	    {
+		string[0] = CSI;
+		string[1] = K_SECOND(key);
+		string[2] = K_THIRD(key);
+		len = 3;
+	    }
+	    else
+	    {
+		string[0] = key;
+		len = 1;
+	    }
+
+	    if (modifiers)
+	    {
+		*dest++ = CSI;
+		*dest++ = KS_MODIFIER;
+		*dest++ = modifiers;
+		km.length = 3;
+	    }
+	}
+	memcpy((char *)dest, string, len);
+	km.length += len;
+#ifdef FEAT_MBYTE
+	km.csi_escape = false;
+#endif
+    }
+
+    write_port(gui.vdcmp, VimMsg::Key, &km, sizeof(km));
+
+    /*
+     * blank out the pointer if necessary
+     */
+    if (p_mh && !gui.pointer_hidden)
+    {
+	guiBlankMouse(true);
+	gui.pointer_hidden = TRUE;
+    }
+}
+
+    void
+VimTextAreaView::guiSendMouseEvent(
+    int	    button,
+    int	    x,
+    int	    y,
+    int	    repeated_click,
+    int_u   modifiers)
+{
+    VimMouseMsg mm;
+
+    mm.button = button;
+    mm.x = x;
+    mm.y = y;
+    mm.repeated_click = repeated_click;
+    mm.modifiers = modifiers;
+
+    write_port(gui.vdcmp, VimMsg::Mouse, &mm, sizeof(mm));
+    // calls gui_send_mouse_event()
+
+    /*
+     * if our pointer is currently hidden, then we should show it.
+     */
+    if (gui.pointer_hidden)
+    {
+	guiBlankMouse(false);
+	gui.pointer_hidden = FALSE;
+    }
+}
+
+    void
+VimTextAreaView::guiMouseMoved(
+    int	    x,
+    int	    y)
+{
+    VimMouseMovedMsg mm;
+
+    mm.x = x;
+    mm.y = y;
+
+    write_port(gui.vdcmp, VimMsg::MouseMoved, &mm, sizeof(mm));
+
+    if (gui.pointer_hidden)
+    {
+	guiBlankMouse(false);
+	gui.pointer_hidden = FALSE;
+    }
+}
+
+    void
+VimTextAreaView::guiBlankMouse(bool should_hide)
+{
+    if (should_hide) {
+	//gui.vimApp->HideCursor();
+	gui.vimApp->ObscureCursor();
+	/*
+	 * ObscureCursor() would even be easier, but then
+	 * Vim's idea of mouse visibility does not necessarily
+	 * correspond to reality.
+	 */
+    } else {
+	//gui.vimApp->ShowCursor();
+    }
+}
+
+    int_u
+VimTextAreaView::mouseModifiersToVim(int32 beModifiers)
+{
+    int_u vim_modifiers = 0x0;
+
+    if (beModifiers & B_SHIFT_KEY)
+	vim_modifiers |= MOUSE_SHIFT;
+    if (beModifiers & B_CONTROL_KEY)
+	vim_modifiers |= MOUSE_CTRL;
+    if (beModifiers & B_OPTION_KEY)	    /* Alt or Meta key */
+	vim_modifiers |= MOUSE_ALT;
+
+    return vim_modifiers;
+}
+
+    void
+VimTextAreaView::MouseDown(BPoint point)
+{
+    BMessage *m = Window()->CurrentMessage();
+    assert(m);
+
+    int32 buttons = 0;
+    m->FindInt32("buttons", &buttons);
+
+    int vimButton;
+
+    if (buttons & B_PRIMARY_MOUSE_BUTTON)
+	vimButton = MOUSE_LEFT;
+    else if (buttons & B_SECONDARY_MOUSE_BUTTON)
+	vimButton = MOUSE_RIGHT;
+    else if (buttons & B_TERTIARY_MOUSE_BUTTON)
+	vimButton = MOUSE_MIDDLE;
+    else
+	return;			/* Unknown button */
+
+    vimMouseButton = 1;		/* don't care which one */
+
+    /* Handle multiple clicks */
+    int32 clicks = 0;
+    m->FindInt32("clicks", &clicks);
+
+    int32 modifiers = 0;
+    m->FindInt32("modifiers", &modifiers);
+
+    vimMouseModifiers = mouseModifiersToVim(modifiers);
+
+    guiSendMouseEvent(vimButton, point.x, point.y,
+	    clicks > 1 /* = repeated_click*/, vimMouseModifiers);
+}
+
+    void
+VimTextAreaView::MouseUp(BPoint point)
+{
+    vimMouseButton = 0;
+
+    BMessage *m = Window()->CurrentMessage();
+    assert(m);
+    //m->PrintToStream();
+
+    int32 modifiers = 0;
+    m->FindInt32("modifiers", &modifiers);
+
+    vimMouseModifiers = mouseModifiersToVim(modifiers);
+
+    guiSendMouseEvent(MOUSE_RELEASE, point.x, point.y,
+	    0 /* = repeated_click*/, vimMouseModifiers);
+
+    Inherited::MouseUp(point);
+}
+
+    void
+VimTextAreaView::MouseMoved(BPoint point, uint32 transit, const BMessage *message)
+{
+    /*
+     * if our pointer is currently hidden, then we should show it.
+     */
+    if (gui.pointer_hidden)
+    {
+	guiBlankMouse(false);
+	gui.pointer_hidden = FALSE;
+    }
+
+    if (!vimMouseButton) {
+	/* could also check m->"buttons" */
+	guiMouseMoved(point.x, point.y);
+	return;
+    }
+
+    atomic_add(&mouseDragEventCount, 1);
+
+    guiSendMouseEvent(MOUSE_DRAG, point.x, point.y, 0, vimMouseModifiers);
+}
+
+    void
+VimTextAreaView::MessageReceived(BMessage *m)
+{
+    switch (m->what) {
+    case 'menu':
+	{
+	    VimMenuMsg mm;
+	    mm.guiMenu = NULL;	/* in case no pointer in msg */
+	    m->FindPointer("VimMenu", (void **)&mm.guiMenu);
+
+	    write_port(gui.vdcmp, VimMsg::Menu, &mm, sizeof(mm));
+	}
+	break;
+    case B_MOUSE_WHEEL_CHANGED:
+	{
+	    VimScrollBar* scb = curwin->w_scrollbars[1].id;
+	    float small=0, big=0, dy=0;
+	    m->FindFloat("be:wheel_delta_y", &dy);
+	    scb->GetSteps(&small, &big);
+	    scb->SetValue(scb->Value()+small*dy);
+	    scb->ValueChanged(scb->Value());
+#if 0
+	    scb = curwin->w_scrollbars[0].id;
+	    scb->GetSteps(&small, &big);
+	    scb->SetValue(scb->Value()+small*dy);
+	    scb->ValueChanged(scb->Value());
+#endif
+	}
+	break;
+#ifdef USE_INLINE_IM
+    case B_INPUT_METHOD_EVENT:
+	{
+	    int32 opcode;
+	    m->FindInt32("be:opcode", &opcode);
+	    switch(opcode)
+	    {
+	    case B_INPUT_METHOD_STARTED:
+		if(!IMData.messenger) delete IMData.messenger;
+		IMData.messenger = new BMessenger();
+		m->FindMessenger("be:reply_to", IMData.messenger);
+		break;
+	    case B_INPUT_METHOD_CHANGED:
+		{
+		    BString str;
+		    bool confirmed;
+		    if(IMData.message) *(IMData.message) = *m;
+		    else               IMData.message = new BMessage(*m);
+		    DrawIMString();
+		    m->FindBool("be:confirmed", &confirmed);
+		    if (confirmed)
+		    {
+			m->FindString("be:string", &str);
+			char_u *chars = (char_u*)str.String();
+			struct VimKeyMsg km;
+			km.csi_escape = true;
+			int clen;
+			int i = 0;
+			while (i < str.Length())
+			{
+			    clen = utf_ptr2len(chars+i);
+			    memcpy(km.chars, chars+i, clen);
+			    km.length = clen;
+			    write_port(gui.vdcmp, VimMsg::Key, &km, sizeof(km));
+			    i += clen;
+			}
+		    }
+		}
+		break;
+	    case B_INPUT_METHOD_LOCATION_REQUEST:
+		{
+		    BMessage msg(B_INPUT_METHOD_EVENT);
+		    msg.AddInt32("be:opcode", B_INPUT_METHOD_LOCATION_REQUEST);
+		    msg.AddPoint("be:location_reply", IMData.location);
+		    msg.AddFloat("be:height_reply", FILL_Y(1));
+		    IMData.messenger->SendMessage(&msg);
+		}
+		break;   
+	    case B_INPUT_METHOD_STOPPED:
+		delete IMData.messenger;
+		delete IMData.message;
+		IMData.messenger = NULL;
+		IMData.message = NULL;
+		break;
+	    }
+	}
+#endif
+    default:
+	if (m->WasDropped()) {
+	    BWindow *w = Window();
+	    w->DetachCurrentMessage();
+	    w->Minimize(false);
+	    VimApp::SendRefs(m, (modifiers() & B_SHIFT_KEY) != 0);
+	} else {
+	    Inherited::MessageReceived(m);
+	}
+	break;
+    }
+}
+
+    int
+VimTextAreaView::mchInitFont(char_u *name)
+{
+    VimFont *newFont = (VimFont *)gui_mch_get_font(name, 0);
+
+    gui.norm_font = (GuiFont)newFont;
+    gui_mch_set_font((GuiFont)newFont);
+    if (name)
+	hl_set_font_name(name);
+
+    SetDrawingMode(B_OP_COPY);
+
+    /*
+     * Try to load other fonts for bold, italic, and bold-italic.
+     * We should also try to work out what font to use for these when they are
+     * not specified by X resources, but we don't yet.
+     */
+
+    return OK;
+}
+
+    void
+VimTextAreaView::mchDrawString(int row, int col, char_u *s, int len, int flags)
+{
+    /*
+     * First we must erase the area, because DrawString won't do
+     * that for us. XXX Most of the time this is a waste of effort
+     * since the bachground has been erased already... DRAW_TRANSP
+     * should be set when appropriate!!!
+     * (Rectangles include the bottom and right edge)
+     */
+    if (!(flags & DRAW_TRANSP)) {
+	int cells;
+#ifdef FEAT_MBYTE
+	cells = 0;
+	for(int i=0; i<len; i++) {
+	    int cn = utf_ptr2cells((char_u *)(s+i));
+	    if(cn<4) cells += cn;
+	}
+#else
+	cells = len;
+#endif
+	BRect r(FILL_X(col), FILL_Y(row),
+		FILL_X(col + cells) - PEN_WIDTH, FILL_Y(row + 1) - PEN_WIDTH);
+	FillRect(r, B_SOLID_LOW);
+    }
+    
+    BFont font;
+    this->GetFont(&font);
+    if(!font.IsFixed())
+    {
+	char* p = (char*)s;
+	int32 clen, lastpos = 0;
+	BPoint where;
+	int cells;
+	while((p - (char*)s) < len) {
+#ifdef FEAT_MBYTE
+	    clen = utf_ptr2len((u_char*)p);
+#else
+	    clen = 1;
+#endif
+	    where.Set(TEXT_X(col+lastpos), TEXT_Y(row));
+	    DrawString(p, clen, where);
+	    if (flags & DRAW_BOLD) {
+		where.x += 1.0;
+		SetDrawingMode(B_OP_BLEND);
+		DrawString(p, clen, where);
+		SetDrawingMode(B_OP_COPY);
+	    }
+#ifdef FEAT_MBYTE
+	    cells = utf_ptr2cells((char_u *)p);
+	    if(cells<4) lastpos += cells;
+	    else        lastpos++;
+#else
+	    lastpos++;
+#endif
+	    p += clen;
+	}
+    }
+    else
+    {
+	BPoint where(TEXT_X(col), TEXT_Y(row));
+	DrawString((char*)s, len, where);
+	if (flags & DRAW_BOLD) {
+	    where.x += 1.0;
+	    SetDrawingMode(B_OP_BLEND);
+	    DrawString((char*)s, len, where);
+	    SetDrawingMode(B_OP_COPY);
+	}
+    }
+
+    if (flags & DRAW_UNDERL) {
+	int cells;
+#ifdef FEAT_MBYTE
+	cells = 0;
+	for(int i=0; i<len; i++) {
+	    int cn = utf_ptr2cells((char_u *)(s+i));
+	    if(cn<4) cells += cn;
+	}
+#else
+	cells = len;
+#endif
+	BPoint start(FILL_X(col), FILL_Y(row + 1) - PEN_WIDTH);
+	BPoint end(FILL_X(col + cells) - PEN_WIDTH, start.y);
+
+	StrokeLine(start, end);
+    }
+}
+
+    void
+VimTextAreaView::mchClearBlock(
+    int		row1,
+    int		col1,
+    int		row2,
+    int		col2)
+{
+    BRect r(FILL_X(col1), FILL_Y(row1),
+	    FILL_X(col2 + 1) - PEN_WIDTH, FILL_Y(row2 + 1) - PEN_WIDTH);
+    gui_mch_set_bg_color(gui.back_pixel);
+    FillRect(r, B_SOLID_LOW);
+}
+
+    void
+VimTextAreaView::mchClearAll()
+{
+    gui_mch_set_bg_color(gui.back_pixel);
+    FillRect(Bounds(), B_SOLID_LOW);
+}
+
+/*
+ * mchDeleteLines() Lock()s the window by itself.
+ */
+    void
+VimTextAreaView::mchDeleteLines(int row, int num_lines)
+{
+    BRect source, dest;
+
+    source.left = FILL_X(gui.scroll_region_left);
+    source.top = FILL_Y(row + num_lines);
+    source.right = FILL_X(gui.scroll_region_right + 1) - PEN_WIDTH;
+    source.bottom = FILL_Y(gui.scroll_region_bot + 1) - PEN_WIDTH;
+
+    dest.left = FILL_X(gui.scroll_region_left);
+    dest.top = FILL_Y(row);
+    dest.right = FILL_X(gui.scroll_region_right + 1) - PEN_WIDTH;
+    dest.bottom = FILL_Y(gui.scroll_region_bot - num_lines + 1) - PEN_WIDTH;
+
+    if (gui.vimWindow->Lock()) {
+	/* Clear one column more for when bold has spilled over */
+	CopyBits(source, dest);
+	gui_clear_block(gui.scroll_region_bot - num_lines + 1,
+    					       gui.scroll_region_left,
+			gui.scroll_region_bot, gui.scroll_region_right);
+
+	gui.vimWindow->Unlock();
+	/*
+	 * The Draw() callback will be called now if some of the source
+	 * bits were not in the visible region.
+	 */
+
+	//gui_x11_check_copy_area();
+    }
+}
+
+/*
+ * mchInsertLines() Lock()s the window by itself.
+ */
+    void
+VimTextAreaView::mchInsertLines(int row, int num_lines)
+{
+    BRect source, dest;
+
+    source.left = FILL_X(gui.scroll_region_left);
+    source.top = FILL_Y(row);
+    source.right = FILL_X(gui.scroll_region_right + 1) - PEN_WIDTH;
+    source.bottom = FILL_Y(gui.scroll_region_bot - num_lines + 1) - PEN_WIDTH;
+
+    dest.left = FILL_X(gui.scroll_region_left);
+    dest.top = FILL_Y(row + num_lines);
+    dest.right = FILL_X(gui.scroll_region_right + 1) - PEN_WIDTH;
+    dest.bottom = FILL_Y(gui.scroll_region_bot + 1) - PEN_WIDTH;
+    
+    if (gui.vimWindow->Lock()) {
+	/* Clear one column more for when bold has spilled over */
+	CopyBits(source, dest);
+	gui_clear_block(row, gui.scroll_region_left,
+		    row + num_lines - 1, gui.scroll_region_right);
+
+	gui.vimWindow->Unlock();
+	/*
+	 * The Draw() callback will be called now if some of the source
+	 * bits were not in the visible region.
+	 * However, if we scroll too fast it can't keep up and the
+	 * update region gets messed up. This seems to be because copying
+	 * un-Draw()n bits does not generate Draw() calls for the copy...
+	 * I moved the hack to before the CopyBits() to reduce the
+	 * amount of additional waiting needed.
+	 */
+
+	//gui_x11_check_copy_area();
+    }
+}
+
+#ifdef USE_INLINE_IM
+/*
+ * DrawIMString draws string with IMData.message.
+*/
+void VimTextAreaView::DrawIMString(void)
+{
+    static const rgb_color r_highlight = {255, 152, 152, 255},
+                           b_highlight = {152, 203, 255, 255};
+    BString str;
+    const char* s;
+    int len;
+    BMessage* msg = IMData.message;
+    if (!msg)
+	return;
+    gui_redraw_block(IMData.row, 0,
+                     IMData.row + IMData.count, W_WIDTH(curwin), GUI_MON_NOCLEAR);
+    bool confirmed = false;
+    msg->FindBool("be:confirmed", &confirmed);
+    if (confirmed) 
+	return;
+    rgb_color hcolor = HighColor(), lcolor = LowColor();
+    msg->FindString("be:string", &str);
+    s = str.String();
+    len = str.Length();
+    SetHighColor(0, 0, 0);
+    IMData.row = gui.row;
+    IMData.col = gui.col;
+    int32 sel_start = 0, sel_end = 0;
+    msg->FindInt32("be:selection", 0, &sel_start);
+    msg->FindInt32("be:selection", 1, &sel_end);
+    int clen, cn;
+    BPoint pos(IMData.col, 0);
+    BRect r;
+    BPoint where;
+    IMData.location = ConvertToScreen(
+	    BPoint(FILL_X(pos.x), FILL_Y(IMData.row + pos.y)));
+    for (int i=0; i<len; i+=clen)
+    {
+	cn = utf_ptr2cells((char_u *)(s+i));
+	clen = utf_ptr2len((char_u *)(s+i));
+	if (pos.x + cn > W_WIDTH(curwin))
+	{
+	    pos.y++;
+	    pos.x = 0;
+	}
+	if (sel_start<=i && i<sel_end)
+	{
+	    SetLowColor(r_highlight);
+	    IMData.location = ConvertToScreen(
+		    BPoint(FILL_X(pos.x), FILL_Y(IMData.row + pos.y)));
+	}
+	else
+	{
+	    SetLowColor(b_highlight);
+	}
+	r.Set(FILL_X(pos.x), FILL_Y(IMData.row + pos.y),
+	      FILL_X(pos.x + cn) - PEN_WIDTH,
+	      FILL_Y(IMData.row + pos.y + 1) - PEN_WIDTH);
+	FillRect(r, B_SOLID_LOW);
+	where.Set(TEXT_X(pos.x), TEXT_Y(IMData.row + pos.y));
+	DrawString((s+i), clen, where);
+	pos.x += cn;
+    }
+    IMData.count = (int)pos.y;
+    
+    SetHighColor(hcolor);
+    SetLowColor(lcolor);
+}
+#endif
+
+/* ---------------- VimScrollBar ---------------- */
+
+/* BUG: XXX
+ * It seems that BScrollBar determine their direction not from
+ * "posture" but from if they are "tall" or "wide" in shape...
+ *
+ * Also, place them out of sight, because Vim enables them before
+ * they are positioned.
+ */
+VimScrollBar::VimScrollBar(scrollbar_T *g, orientation posture):
+    BScrollBar(posture == B_HORIZONTAL ?  BRect(-100,-100,-10,-90) :
+					  BRect(-100,-100,-90,-10),
+		"vim scrollbar", (BView *)NULL,
+	    0.0, 10.0, posture),
+    ignoreValue(-1),
+    scrollEventCount(0)
+{
+    gsb = g;
+    SetResizingMode(B_FOLLOW_NONE);
+}
+
+VimScrollBar::~VimScrollBar()
+{
+}
+
+    void
+VimScrollBar::ValueChanged(float newValue)
+{
+    if (ignoreValue >= 0.0 && newValue == ignoreValue) {
+	ignoreValue = -1;
+	return;
+    }
+    ignoreValue = -1;
+    /*
+     * We want to throttle the amount of scroll messages generated.
+     * Normally I presume you won't get a new message before we've
+     * handled the previous one, but because we're passing them on this
+     * happens very quickly. So instead we keep a counter of how many
+     * scroll events there are (or will be) in the VDCMP, and the
+     * throttling happens at the receiving end.
+     */
+    atomic_add(&scrollEventCount, 1);
+
+    struct VimScrollBarMsg sm;
+
+    sm.sb = this;
+    sm.value = (long) newValue;
+    sm.stillDragging = TRUE;
+
+    write_port(gui.vdcmp, VimMsg::ScrollBar, &sm, sizeof(sm));
+
+    // calls gui_drag_scrollbar(sb, newValue, TRUE);
+}
+
+/*
+ * When the mouse goes up, report that scrolling has stopped.
+ * MouseUp() is NOT called when the mouse-up occurs outside
+ * the window, even though the thumb does move while the mouse
+ * is outside... This has some funny effects... XXX
+ * So we do special processing when the window de/activates.
+ */
+    void
+VimScrollBar::MouseUp(BPoint where)
+{
+    //BMessage *m = Window()->CurrentMessage();
+    //m->PrintToStream();
+
+    atomic_add(&scrollEventCount, 1);
+
+    struct VimScrollBarMsg sm;
+
+    sm.sb = this;
+    sm.value = (long) Value();
+    sm.stillDragging = FALSE;
+
+    write_port(gui.vdcmp, VimMsg::ScrollBar, &sm, sizeof(sm));
+
+    // calls gui_drag_scrollbar(sb, newValue, FALSE);
+
+    Inherited::MouseUp(where);
+}
+
+    void
+VimScrollBar::SetValue(float newValue)
+{
+    if (newValue == Value())
+	return;
+
+    ignoreValue = newValue;
+    Inherited::SetValue(newValue);
+}
+
+/* ---------------- VimFont ---------------- */
+
+VimFont::VimFont(): BFont()
+{
+    init();
+}
+
+VimFont::VimFont(const VimFont *rhs): BFont(rhs)
+{
+    init();
+}
+
+VimFont::VimFont(const BFont *rhs): BFont(rhs)
+{
+    init();
+}
+
+VimFont::VimFont(const VimFont &rhs): BFont(rhs)
+{
+    init();
+}
+
+VimFont::~VimFont()
+{
+}
+
+    void
+VimFont::init()
+{
+    next = NULL;
+    refcount = 1;
+    name = NULL;
+}
+
+/* ---------------- ---------------- */
+
+// some global variables
+static char appsig[] = "application/x-vnd.Rhialto-Vim";
+key_map *keyMap;
+char *keyMapChars;
+int main_exitcode = 127;
+
+    status_t
+gui_beos_process_event(bigtime_t timeout)
+{
+    struct VimMsg vm;
+    long what;
+    ssize_t size;
+
+    size = read_port_etc(gui.vdcmp, &what, &vm, sizeof(vm),
+	    B_TIMEOUT, timeout);
+
+    if (size >= 0) {
+	switch (what) {
+	case VimMsg::Key:
+	    {
+		char_u *string = vm.u.Key.chars;
+		int len = vm.u.Key.length;
+		if (len == 1 && string[0] == Ctrl_chr('C')) {
+		    trash_input_buf();
+		    got_int = TRUE;
+		}
+#ifdef FEAT_MBYTE
+		if (vm.u.Key.csi_escape)
+#ifndef FEAT_MBYTE_IME
+		{
+		    int		i;
+		    char_u	buf[2];
+
+		    for (i = 0; i < len; ++i)
+		    {
+			add_to_input_buf(string + i, 1);
+			if (string[i] == CSI)
+			{
+			    /* Turn CSI into K_CSI. */
+			    buf[0] = KS_EXTRA;
+			    buf[1] = (int)KE_CSI;
+			    add_to_input_buf(buf, 2);
+			}
+		    }
+		}
+#else
+		    add_to_input_buf_csi(string, len);
+#endif
+		else
+#endif
+		    add_to_input_buf(string, len);
+	    }
+	    break;
+	case VimMsg::Resize:
+	    gui_resize_shell(vm.u.NewSize.width, vm.u.NewSize.height);
+	    break;
+	case VimMsg::ScrollBar:
+	    {
+		/*
+		 * If loads of scroll messages queue up, use only the last
+		 * one. Always report when the scrollbar stops dragging.
+		 * This is not perfect yet anyway: these events are queued
+		 * yet again, this time in the keyboard input buffer.
+		 */
+		int32 oldCount =
+		    atomic_add(&vm.u.Scroll.sb->scrollEventCount, -1);
+		if (oldCount <= 1 || !vm.u.Scroll.stillDragging)
+		    gui_drag_scrollbar(vm.u.Scroll.sb->getGsb(),
+			    vm.u.Scroll.value, vm.u.Scroll.stillDragging);
+	    }
+	    break;
+	case VimMsg::Menu:
+	    gui_menu_cb(vm.u.Menu.guiMenu);
+	    break;
+	case VimMsg::Mouse:
+	    {
+		int32 oldCount;
+		if (vm.u.Mouse.button == MOUSE_DRAG)
+		    oldCount =
+			atomic_add(&gui.vimTextArea->mouseDragEventCount, -1);
+		else
+		    oldCount = 0;
+		if (oldCount <= 1)
+		    gui_send_mouse_event(vm.u.Mouse.button, vm.u.Mouse.x,
+			    vm.u.Mouse.y, vm.u.Mouse.repeated_click,
+			    vm.u.Mouse.modifiers);
+	    }
+	    break;
+	case VimMsg::MouseMoved:
+	    {
+		gui_mouse_moved(vm.u.MouseMoved.x, vm.u.MouseMoved.y);
+	    }
+	    break;
+	case VimMsg::Focus:
+	    gui.in_focus = vm.u.Focus.active;
+	    /* XXX Signal that scrollbar dragging has stopped?
+	     * This is needed because we don't get a MouseUp if
+	     * that happens while outside the window... :-(
+	     */
+	    if (gui.dragged_sb) {
+		gui.dragged_sb = SBAR_NONE;
+	    }
+	    //gui_update_cursor(TRUE, FALSE);
+	    break;
+	case VimMsg::Refs:
+	    ::RefsReceived(vm.u.Refs.message, vm.u.Refs.changedir);
+	    break;
+	default:
+	    // unrecognised message, ignore it
+	    break;
+	}
+    }
+
+    /*
+     * If size < B_OK, it is an error code.
+     */
+    return size;
+}
+
+/*
+ * Here are some functions to protect access to ScreenLines[] and
+ * LineOffset[]. These are used from the window thread to respond
+ * to a Draw() callback. When that occurs, the window is already
+ * locked by the system.
+ *
+ * Other code that needs to lock is any code that changes these
+ * variables. Other read-only access, or access merely to the
+ * contents of the screen buffer, need not be locked.
+ *
+ * If there is no window, don't call Lock() but do succeed.
+ */
+
+    int
+vim_lock_screen()
+{
+    return !gui.vimWindow || gui.vimWindow->Lock();
+}
+
+    void
+vim_unlock_screen()
+{
+    if (gui.vimWindow)
+	gui.vimWindow->Unlock();
+}
+
+#define RUN_BAPPLICATION_IN_NEW_THREAD 1
+
+#if RUN_BAPPLICATION_IN_NEW_THREAD
+
+    int32
+run_vimapp(void *args)
+{
+    VimApp app(appsig);
+
+    gui.vimApp = &app;
+    app.Run();			    /* Run until Quit() called */
+
+    return 0;
+}
+
+#else
+
+    int32
+call_main(void *args)
+{
+    struct MainArgs *ma = (MainArgs *)args;
+
+    return main(ma->argc, ma->argv);
+}
+#endif
+
+extern "C" {
+
+/*
+ * Parse the GUI related command-line arguments.  Any arguments used are
+ * deleted from argv, and *argc is decremented accordingly.  This is called
+ * when vim is started, whether or not the GUI has been started.
+ */
+    void
+gui_mch_prepare(
+    int		*argc,
+    char	**argv)
+{
+    /*
+     * We don't have any command line arguments for the BeOS GUI yet,
+     * but this is an excellent place to create our Application object.
+     */
+    if (!gui.vimApp) {
+	thread_info tinfo;
+	get_thread_info(find_thread(NULL), &tinfo);
+
+	/* May need the port very early on to process RefsReceived() */
+	gui.vdcmp = create_port(B_MAX_PORT_COUNT, "vim VDCMP");
+
+#if RUN_BAPPLICATION_IN_NEW_THREAD
+	thread_id tid = spawn_thread(run_vimapp, "vim VimApp",
+						tinfo.priority, NULL);
+	if (tid >= B_OK) {
+	    resume_thread(tid);
+	} else {
+	    getout(1);
+	}
+#else
+	MainArgs ma = { *argc, argv };
+	thread_id tid = spawn_thread(call_main, "vim main()",
+						tinfo.priority, &ma);
+	if (tid >= B_OK) {
+	    VimApp app(appsig);
+
+	    gui.vimApp = &app;
+	    resume_thread(tid);
+	    /*
+	     * This is rather horrible.
+	     * call_main will call main() again...
+	     * There will be no infinite recursion since
+	     * gui.vimApp is set now.
+	     */
+	    app.Run();			    /* Run until Quit() called */
+	    //fprintf(stderr, "app.Run() returned...\n");
+	    status_t dummy_exitcode;
+	    (void)wait_for_thread(tid, &dummy_exitcode);
+
+	    /*
+	     * This path should be the normal one taken to exit Vim.
+	     * The main() thread calls mch_exit() which calls
+	     * gui_mch_exit() which terminates its thread.
+	     */
+	    exit(main_exitcode);
+	}
+#endif
+    }
+    /* Don't fork() when starting the GUI. Spawned threads are not
+     * duplicated with a fork(). The result is a mess.
+     */
+    gui.dofork = FALSE;
+    /*
+     * XXX Try to determine whether we were started from
+     * the Tracker or the terminal.
+     * It would be nice to have this work, because the Tracker
+     * follows symlinks, so even if you double-click on gvim,
+     * when it is a link to vim it will still pass a command name
+     * of vim...
+     * We try here to see if stdin comes from /dev/null. If so,
+     * (or if there is an error, which should never happen) start the GUI.
+     * This does the wrong thing for vim - </dev/null, and we're
+     * too early to see the command line parsing. Tough.
+     * On the other hand, it starts the gui for vim file & which is nice.
+     */
+    if (!isatty(0)) {
+	struct stat stat_stdin, stat_dev_null;
+
+	if (fstat(0, &stat_stdin) == -1 ||
+	    stat("/dev/null", &stat_dev_null) == -1 ||
+	    (stat_stdin.st_dev == stat_dev_null.st_dev &&
+	     stat_stdin.st_ino == stat_dev_null.st_ino))
+	    gui.starting = TRUE;
+    }
+}
+
+/*
+ * Check if the GUI can be started.  Called before gvimrc is sourced.
+ * Return OK or FAIL.
+ */
+    int
+gui_mch_init_check(void)
+{
+    return OK;		/* TODO: GUI can always be started? */
+}
+
+/*
+ * Initialise the GUI.  Create all the windows, set up all the call-backs
+ * etc.
+ */
+    int
+gui_mch_init()
+{
+    gui.def_norm_pixel = RGB(0x00, 0x00, 0x00);	// black
+    gui.def_back_pixel = RGB(0xFF, 0xFF, 0xFF);	// white
+    gui.norm_pixel = gui.def_norm_pixel;
+    gui.back_pixel = gui.def_back_pixel;
+
+    gui.scrollbar_width = (int) B_V_SCROLL_BAR_WIDTH;
+    gui.scrollbar_height = (int) B_H_SCROLL_BAR_HEIGHT;
+#ifdef FEAT_MENU
+    gui.menu_height = 19;	// initial guess -
+				// correct for my default settings
+#endif
+    gui.border_offset = 3;	// coordinates are inside window borders
+
+    if (gui.vdcmp < B_OK)
+	return FAIL;
+    get_key_map(&keyMap, &keyMapChars);
+    
+    gui.vimWindow = new VimWindow();	/* hidden and locked */
+    if (!gui.vimWindow)
+	return FAIL;
+
+    gui.vimWindow->Run();		/* Run() unlocks but does not show */
+
+    /* Get the colors from the "Normal" group (set in syntax.c or in a vimrc
+     * file) */
+    set_normal_colors();
+
+    /*
+     * Check that none of the colors are the same as the background color
+     */
+    gui_check_colors();
+
+    /* Get the colors for the highlight groups (gui_check_colors() might have
+     * changed them) */
+    highlight_gui_started();		/* re-init colors and fonts */
+
+    gui_mch_new_colors();		/* window must exist for this */
+
+    return OK;
+}
+
+/*
+ * Called when the foreground or background color has been changed.
+ */
+    void
+gui_mch_new_colors()
+{
+    rgb_color rgb = GUI_TO_RGB(gui.back_pixel);
+
+    if (gui.vimWindow->Lock()) {
+	gui.vimForm->SetViewColor(rgb);
+	// Does this not have too much effect for those small rectangles?
+	gui.vimForm->Invalidate();
+	gui.vimWindow->Unlock();
+    }
+}
+
+/*
+ * Open the GUI window which was created by a call to gui_mch_init().
+ */
+    int
+gui_mch_open()
+{
+    if (gui_win_x != -1 && gui_win_y != -1)
+	gui_mch_set_winpos(gui_win_x, gui_win_y);
+
+    /* Actually open the window */
+    if (gui.vimWindow->Lock()) {
+	gui.vimWindow->Show();
+	gui.vimWindow->Unlock();
+
+#if USE_THREAD_FOR_INPUT_WITH_TIMEOUT
+	/* Kill the thread that may have been created for the Terminal */
+	beos_cleanup_read_thread();
+#endif
+
+	return OK;
+    }
+
+    return FAIL;
+}
+
+    void
+gui_mch_exit(int vim_exitcode)
+{
+    if (gui.vimWindow) {
+	thread_id tid = gui.vimWindow->Thread();
+	gui.vimWindow->Lock();
+	gui.vimWindow->Quit();
+	/* Wait until it is truely gone */
+	int32 exitcode;
+	wait_for_thread(tid, &exitcode);
+    }
+    delete_port(gui.vdcmp);
+#if !RUN_BAPPLICATION_IN_NEW_THREAD
+    /*
+     * We are in the main() thread - quit the App thread and
+     * quit ourselves (passing on the exitcode). Use a global since the
+     * value from exit_thread() is only used if wait_for_thread() is
+     * called in time (race condition).
+     */
+#endif
+    if (gui.vimApp) {
+	VimTextAreaView::guiBlankMouse(false);
+
+	main_exitcode = vim_exitcode;
+#if RUN_BAPPLICATION_IN_NEW_THREAD
+	thread_id tid = gui.vimApp->Thread();
+	int32 exitcode;
+	gui.vimApp->Lock();
+	gui.vimApp->Quit();
+	gui.vimApp->Unlock();
+	wait_for_thread(tid, &exitcode);
+#else
+	gui.vimApp->Lock();
+	gui.vimApp->Quit();
+	gui.vimApp->Unlock();
+	/* suicide */
+	exit_thread(vim_exitcode);
+#endif
+    }
+    /* If we are somehow still here, let mch_exit() handle things. */
+}
+
+/*
+ * Get the position of the top left corner of the window.
+ */
+    int
+gui_mch_get_winpos(int *x, int *y)
+{
+    if (gui.vimWindow->Lock()) {
+	BRect r;
+	r = gui.vimWindow->Bounds();
+	gui.vimWindow->Unlock();
+	*x = (int)r.left;
+	*y = (int)r.top;
+	return OK;
+    }
+    else
+	return FAIL;
+}
+
+/*
+ * Set the position of the top left corner of the window to the given
+ * coordinates.
+ */
+    void
+gui_mch_set_winpos(int x, int y)
+{
+    if (gui.vimWindow->Lock()) {
+	gui.vimWindow->MoveTo(x, y);
+	gui.vimWindow->Unlock();
+    }
+}
+
+/*
+ * Set the size of the window to the given width and height in pixels.
+ */
+    void
+gui_mch_set_shellsize(
+    int		width,
+    int		height,
+    int		min_width,
+    int		min_height,
+    int		base_width,
+    int		base_height)
+{
+    /*
+     * We are basically given the size of the VimForm, if I understand
+     * correctly. Since it fills the window completely, this will also
+     * be the size of the window.
+     */
+    if (gui.vimWindow->Lock()) {
+	gui.vimWindow->ResizeTo(width - PEN_WIDTH, height - PEN_WIDTH);
+
+	/* set size limits */
+	float minWidth, maxWidth, minHeight, maxHeight;
+
+	gui.vimWindow->GetSizeLimits(&minWidth, &maxWidth,
+				     &minHeight, &maxHeight);
+	gui.vimWindow->SetSizeLimits(min_width, maxWidth,
+				     min_height, maxHeight);
+
+#if HAVE_R3_OR_LATER
+	/*
+	 * Set the resizing alignment depending on font size.
+	 */
+	gui.vimWindow->SetWindowAlignment(
+	    B_PIXEL_ALIGNMENT,		// window_alignment mode,
+	    1,				// int32 h,
+	    0,				// int32 hOffset = 0,
+	    gui.char_width,		// int32 width = 0,
+	    base_width,			// int32 widthOffset = 0,
+	    1,				// int32 v = 0,
+	    0,				// int32 vOffset = 0,
+	    gui.char_height,		// int32 height = 0,
+	    base_height			// int32 heightOffset = 0
+	);
+#else
+	/* don't know what to do with base_{width,height}. */
+#endif
+
+	gui.vimWindow->Unlock();
+    }
+}
+
+    void
+gui_mch_get_screen_dimensions(
+    int		*screen_w,
+    int		*screen_h)
+{
+    BRect frame;
+
+    {
+	BScreen screen(gui.vimWindow);
+
+	if (screen.IsValid()) {
+	    frame = screen.Frame();
+	} else {
+	    frame.right = 640;
+	    frame.bottom = 480;
+	}
+    }
+
+    /* XXX approximations... */
+    *screen_w = (int) frame.right - 2 * gui.scrollbar_width - 20;
+    *screen_h = (int) frame.bottom - gui.scrollbar_height
+#ifdef FEAT_MENU
+	- gui.menu_height
+#endif
+	- 30;
+}
+
+    void
+gui_mch_set_text_area_pos(
+    int		x,
+    int		y,
+    int		w,
+    int		h)
+{
+    if (!gui.vimTextArea)
+	return;
+
+    if (gui.vimWindow->Lock()) {
+	gui.vimTextArea->MoveTo(x, y);
+	gui.vimTextArea->ResizeTo(w - PEN_WIDTH, h - PEN_WIDTH);
+	gui.vimWindow->Unlock();
+    }
+}
+
+
+/*
+ * Scrollbar stuff:
+ */
+
+    void
+gui_mch_enable_scrollbar(
+    scrollbar_T	*sb,
+    int		flag)
+{
+    VimScrollBar *vsb = sb->id;
+    if (gui.vimWindow->Lock()) {
+	/*
+	 * This function is supposed to be idempotent, but Show()/Hide()
+	 * is not. Therefore we test if they are needed.
+	 */
+	if (flag) {
+	    if (vsb->IsHidden()) {
+		vsb->Show();
+	    }
+	} else {
+	    if (!vsb->IsHidden()) {
+		vsb->Hide();
+	    }
+	}
+	gui.vimWindow->Unlock();
+    }
+}
+
+    void
+gui_mch_set_scrollbar_thumb(
+    scrollbar_T *sb,
+    int		val,
+    int		size,
+    int		max)
+{
+    if (gui.vimWindow->Lock()) {
+	VimScrollBar *s = sb->id;
+	if (max == 0) {
+	    s->SetValue(0);
+	    s->SetRange(0.0, 0.0);
+	} else {
+	    s->SetProportion((float)size / (max + 1.0));
+	    s->SetSteps(1.0, size > 5 ? size - 2 : size);
+#ifndef SCROLL_PAST_END		// really only defined in gui.c...
+	    max = max + 1 - size;
+#endif
+	    if (max < s->Value()) {
+		/*
+		 * If the new maximum is lower than the current value,
+		 * setting it would cause the value to be clipped and
+		 * therefore a ValueChanged() call.
+		 * We avoid this by setting the value first, because
+		 * it presumably is <= max.
+		 */
+		s->SetValue(val);
+		s->SetRange(0.0, max);
+	    } else {
+		/*
+		 * In the other case, set the range first, since the
+		 * new value might be higher than the current max.
+		 */
+		s->SetRange(0.0, max);
+		s->SetValue(val);
+	    }
+	}
+	gui.vimWindow->Unlock();
+    }
+}
+
+    void
+gui_mch_set_scrollbar_pos(
+    scrollbar_T *sb,
+    int		x,
+    int		y,
+    int		w,
+    int		h)
+{
+    if (gui.vimWindow->Lock()) {
+	BRect winb = gui.vimWindow->Bounds();
+	float vsbx = x, vsby = y;
+	VimScrollBar *vsb = sb->id;
+	vsb->ResizeTo(w - PEN_WIDTH, h - PEN_WIDTH);
+	if(winb.right-(x+w)<w) vsbx = winb.right - (w - PEN_WIDTH);
+	vsb->MoveTo(vsbx, vsby);
+	gui.vimWindow->Unlock();
+    }
+}
+
+    void
+gui_mch_create_scrollbar(
+    scrollbar_T *sb,
+    int		orient)		/* SBAR_VERT or SBAR_HORIZ */
+{
+    orientation posture =
+	(orient == SBAR_HORIZ) ? B_HORIZONTAL : B_VERTICAL;
+
+    VimScrollBar *vsb = sb->id = new VimScrollBar(sb, posture);
+    if (gui.vimWindow->Lock()) {
+	vsb->SetTarget(gui.vimTextArea);
+	vsb->Hide();
+	gui.vimForm->AddChild(vsb);
+	gui.vimWindow->Unlock();
+    }
+}
+
+#if defined(FEAT_WINDOWS) || defined(PROTO)
+    void
+gui_mch_destroy_scrollbar(
+    scrollbar_T	*sb)
+{
+    if (gui.vimWindow->Lock()) {
+	sb->id->RemoveSelf();
+	delete sb->id;
+	gui.vimWindow->Unlock();
+    }
+}
+#endif
+
+/*
+ * Cursor blink functions.
+ *
+ * This is a simple state machine:
+ * BLINK_NONE	not blinking at all
+ * BLINK_OFF	blinking, cursor is not shown
+ * BLINK_ON	blinking, cursor is shown
+ */
+
+#define BLINK_NONE  0
+#define BLINK_OFF   1
+#define BLINK_ON    2
+
+static int		blink_state = BLINK_NONE;
+static long_u		blink_waittime = 700;
+static long_u		blink_ontime = 400;
+static long_u		blink_offtime = 250;
+static int	blink_timer = 0;
+
+    void
+gui_mch_set_blinking(
+    long    waittime,
+    long    on,
+    long    off)
+{
+	/* TODO */
+    blink_waittime = waittime;
+    blink_ontime = on;
+    blink_offtime = off;
+}
+
+/*
+ * Stop the cursor blinking.  Show the cursor if it wasn't shown.
+ */
+    void
+gui_mch_stop_blink()
+{
+	/* TODO */
+    if (blink_timer != 0)
+    {
+	//XtRemoveTimeOut(blink_timer);
+	blink_timer = 0;
+    }
+    if (blink_state == BLINK_OFF)
+	gui_update_cursor(TRUE, FALSE);
+    blink_state = BLINK_NONE;
+}
+
+/*
+ * Start the cursor blinking.  If it was already blinking, this restarts the
+ * waiting time and shows the cursor.
+ */
+    void
+gui_mch_start_blink()
+{
+	/* TODO */
+    if (blink_timer != 0)
+	;//XtRemoveTimeOut(blink_timer);
+    /* Only switch blinking on if none of the times is zero */
+    if (blink_waittime && blink_ontime && blink_offtime && gui.in_focus)
+    {
+	blink_timer = 1; //XtAppAddTimeOut(app_context, blink_waittime,
+	blink_state = BLINK_ON;
+	gui_update_cursor(TRUE, FALSE);
+    }
+}
+
+/*
+ * Initialise vim to use the font with the given name.	Return FAIL if the font
+ * could not be loaded, OK otherwise.
+ */
+    int
+gui_mch_init_font(
+    char_u		*font_name,
+    int			fontset)
+{
+    if (gui.vimWindow->Lock())
+    {
+	int rc = gui.vimTextArea->mchInitFont(font_name);
+	gui.vimWindow->Unlock();
+
+	return rc;
+    }
+
+    return FAIL;
+}
+
+    int
+gui_mch_adjust_charsize()
+{
+    return FAIL;
+}
+
+    GuiFont
+gui_mch_get_font(
+    char_u		*name,
+    int			giveErrorIfMissing)
+{
+    VimFont		*font = 0;
+    static VimFont *fontList = NULL;
+
+    if (!gui.in_use)		    /* can't do this when GUI not running */
+	return NOFONT;
+
+    if (!name)
+	name = (char_u *)"be_fixed_font";
+
+    VimFont *flp;
+    for (flp = fontList; flp; flp = flp->next) {
+	if (STRCMP(name, flp->name) == 0) {
+	    flp->refcount++;
+	    return (GuiFont)flp;
+	}
+    }
+
+    //font = new VimFont(be_fixed_font);
+    font = new VimFont();
+
+    /* Set some universal features: */
+    font->SetSpacing(B_FIXED_SPACING);
+    font->SetEncoding(B_UNICODE_UTF8);
+
+    /* Remember font for later use */
+    font->name = vim_strsave(name);
+    font->next = fontList;
+    fontList = font;
+
+    font_family family;
+    font_style style;
+    float size;
+    int len;
+    char_u *end;
+
+#ifdef never
+    // This leads to SEGV/BUS on R4+
+    // Replace underscores with spaces, and I can't see why ?
+    // richard@whitequeen.com jul 99
+    while (end = (char_u *)strchr((char *)name, '_'))
+	*end = ' ';
+#endif
+    /*
+     *  Parse font names as Family/Style/Size.
+     *  On errors, just keep the be_fixed_font.
+     */
+    if(*name!='\0') {
+	end = (char_u *)strchr((char *)name, '/');
+	if (!end) 
+	    strncpy(family, (char *)name, len = strlen((char*)name));
+	else
+	    strncpy(family, (char *)name, len = end - name);
+	family[len] = '\0';
+	font->SetFamilyAndStyle(family, NULL);
+	name += len + 1;
+    }
+
+    if(*name!='\0') {
+	end = (char_u *)strchr((char *)name, '/');
+	if (!end) 
+	    strncpy(style, (char *)name, len = strlen((char*)name));
+	else
+	    strncpy(style, (char *)name, len = end - name);
+	style[len] = '\0';
+	font->SetFamilyAndStyle(NULL, style);
+	name += len + 1;
+    }
+
+    if(*name!='\0') {
+	size = atof((char *)name);
+	if (size > 0) font->SetSize(size);
+    }
+	
+    font->SetSpacing(B_FIXED_SPACING);
+    font->SetEncoding(B_UNICODE_UTF8);
+
+    return (GuiFont)font;
+
+//error:
+//    if (giveErrorIfMissing)
+//	EMSG2("(fe0) Unknown font: %s", name);
+//
+//    return (GuiFont)font;
+}
+
+/*
+ * Set the current text font.
+ */
+    void
+gui_mch_set_font(
+    GuiFont	font)
+{
+    if (gui.vimWindow->Lock()) {
+	VimFont *vf = (VimFont *)font;
+
+	gui.vimTextArea->SetFont(vf);
+
+	gui.char_width = (int) vf->StringWidth("n");
+	font_height fh;
+	vf->GetHeight(&fh);
+	gui.char_height = (int)(fh.ascent + 0.9999)
+		    + (int)(fh.descent + 0.9999) + (int)(fh.leading + 0.9999);
+	gui.char_ascent = (int)(fh.ascent + 0.9999);
+
+	gui.vimWindow->Unlock();
+    }
+}
+
+#if 0 /* not used */
+/*
+ * Return TRUE if the two fonts given are equivalent.
+ */
+    int
+gui_mch_same_font(
+    GuiFont	f1,
+    GuiFont	f2)
+{
+    VimFont *vf1 = (VimFont *)f1;
+    VimFont *vf2 = (VimFont *)f2;
+
+    return f1 == f2 ||
+	    (vf1->FamilyAndStyle() == vf2->FamilyAndStyle() &&
+	     vf1->Size() == vf2->Size());
+}
+#endif
+
+/* XXX TODO This is apparently never called... */
+    void
+gui_mch_free_font(
+    GuiFont	font)
+{
+    if(font==NOFONT) return;
+    VimFont *f = (VimFont *)font;
+    if (--f->refcount <= 0) {
+	if (f->refcount < 0)
+	    fprintf(stderr, "VimFont: refcount < 0\n");
+	delete f;
+    }
+}
+
+    static int
+hex_digit(int c)
+{
+    if (isdigit(c))
+	return c - '0';
+    c = TOLOWER_ASC(c);
+    if (c >= 'a' && c <= 'f')
+	return c - 'a' + 10;
+    return -1000;
+}
+
+/*
+ * This function has been lifted from gui_w32.c and extended a bit.
+ *
+ * Return the Pixel value (color) for the given color name.
+ * Return INVALCOLOR for error.
+ */
+    guicolor_T
+gui_mch_get_color(
+    char_u	*name)
+{
+    typedef struct GuiColourTable
+    {
+	char	    *name;
+	guicolor_T     colour;
+    } GuiColourTable;
+
+#define NSTATIC_COLOURS		32
+#define NDYNAMIC_COLOURS	33
+#define NCOLOURS		(NSTATIC_COLOURS + NDYNAMIC_COLOURS)
+
+    static GuiColourTable table[NCOLOURS] =
+    {
+	{"Black",	    RGB(0x00, 0x00, 0x00)},
+	{"DarkGray",	    RGB(0x80, 0x80, 0x80)},
+	{"DarkGrey",	    RGB(0x80, 0x80, 0x80)},
+//QQQ
+//XXX copy other colors from gui_x11.c or gui_gtk_x11.c
+	{"Grey90",	    RGB(0xE5, 0xE5, 0xE5)},
+	{"Gray",	    RGB(0xC0, 0xC0, 0xC0)},
+	{"Grey",	    RGB(0xC0, 0xC0, 0xC0)},
+	{"LightGray",	    RGB(0xD3, 0xD3, 0xD3)},
+	{"LightGrey",	    RGB(0xD3, 0xD3, 0xD3)},
+	{"White",	    RGB(0xFF, 0xFF, 0xFF)},
+	{"DarkRed",	    RGB(0x80, 0x00, 0x00)},
+	{"Red",		    RGB(0xFF, 0x00, 0x00)},
+	{"LightRed",	    RGB(0xFF, 0xA0, 0xA0)},
+	{"DarkBlue",	    RGB(0x00, 0x00, 0x80)},
+	{"Blue",	    RGB(0x00, 0x00, 0xFF)},
+	{"LightBlue",	    RGB(0xA0, 0xA0, 0xFF)},
+	{"DarkGreen",	    RGB(0x00, 0x80, 0x00)},
+	{"Green",	    RGB(0x00, 0xFF, 0x00)},
+	{"LightGreen",	    RGB(0xA0, 0xFF, 0xA0)},
+	{"DarkCyan",	    RGB(0x00, 0x80, 0x80)},
+	{"Cyan",	    RGB(0x00, 0xFF, 0xFF)},
+	{"LightCyan",	    RGB(0xA0, 0xFF, 0xFF)},
+	{"DarkMagenta",	    RGB(0x80, 0x00, 0x80)},
+	{"Magenta",	    RGB(0xFF, 0x00, 0xFF)},
+	{"LightMagenta",    RGB(0xFF, 0xA0, 0xFF)},
+	{"Brown",	    RGB(0x80, 0x40, 0x40)},
+	{"Yellow",	    RGB(0xFF, 0xFF, 0x00)},
+	{"LightYellow",	    RGB(0xFF, 0xFF, 0xA0)},
+	{"DarkYellow",	    RGB(0xBB, 0xBB, 0x00)},
+	{"SeaGreen",	    RGB(0x2E, 0x8B, 0x57)},
+	{"Orange",	    RGB(0xFF, 0xA5, 0x00)},
+	{"Purple",	    RGB(0xA0, 0x20, 0xF0)},
+	{"SlateBlue",	    RGB(0x6A, 0x5A, 0xCD)},
+	{"Violet",	    RGB(0xEE, 0x82, 0xEE)},
+    };
+
+    static int endColour = NSTATIC_COLOURS;
+    static int newColour = NSTATIC_COLOURS;
+
+    int		    r, g, b;
+    int		    i;
+
+    if (name[0] == '#' && STRLEN(name) == 7)
+    {
+	/* Name is in "#rrggbb" format */
+	r = hex_digit(name[1]) * 16 + hex_digit(name[2]);
+	g = hex_digit(name[3]) * 16 + hex_digit(name[4]);
+	b = hex_digit(name[5]) * 16 + hex_digit(name[6]);
+	if (r < 0 || g < 0 || b < 0)
+	    return INVALCOLOR;
+	return RGB(r, g, b);
+    }
+    else
+    {
+	/* Check if the name is one of the colours we know */
+	for (i = 0; i < endColour; i++)
+	    if (STRICMP(name, table[i].name) == 0)
+		return table[i].colour;
+    }
+
+    /*
+     * Last attempt. Look in the file "$VIM/rgb.txt".
+     */
+    {
+#define LINE_LEN 100
+	FILE	*fd;
+	char	line[LINE_LEN];
+	char_u	*fname;
+
+	fname = expand_env_save((char_u *)"/boot/beos/etc/rgb.txt");
+	if (fname == NULL)
+	    return INVALCOLOR;
+
+	fd = fopen((char *)fname, "rt");
+	vim_free(fname);
+	if (fd == NULL)
+	    return INVALCOLOR;
+
+	while (!feof(fd))
+	{
+	    int	    len;
+	    int	    pos;
+	    char    *colour;
+
+	    fgets(line, LINE_LEN, fd);
+	    len = strlen(line);
+
+	    if (len <= 1 || line[len-1] != '\n')
+		continue;
+
+	    line[len-1] = '\0';
+
+	    i = sscanf(line, "%d %d %d %n", &r, &g, &b, &pos);
+	    if (i != 3)
+		continue;
+
+	    colour = line + pos;
+
+	    if (STRICMP(colour, name) == 0)
+	    {
+		fclose(fd);
+		/*
+		 * Now remember this colour in the table.
+		 * A LRU scheme might be better but this is simpler.
+		 * Or could use a growing array.
+		 */
+		guicolor_T gcolour = RGB(r,g,b);
+
+		vim_free(table[newColour].name);
+		table[newColour].name = (char *)vim_strsave((char_u *)colour);
+		table[newColour].colour = gcolour;
+
+		newColour++;
+		if (newColour >= NCOLOURS)
+		    newColour = NSTATIC_COLOURS;
+		if (endColour < NCOLOURS)
+		    endColour = newColour;
+
+		return gcolour;
+	    }
+	}
+
+	fclose(fd);
+    }
+
+    return INVALCOLOR;
+}
+
+/*
+ * Set the current text foreground color.
+ */
+    void
+gui_mch_set_fg_color(
+    guicolor_T	color)
+{
+    rgb_color rgb = GUI_TO_RGB(color);
+    if (gui.vimWindow->Lock()) {
+	gui.vimTextArea->SetHighColor(rgb);
+	gui.vimWindow->Unlock();
+    }
+}
+
+/*
+ * Set the current text background color.
+ */
+    void
+gui_mch_set_bg_color(
+    guicolor_T	color)
+{
+    rgb_color rgb = GUI_TO_RGB(color);
+    if (gui.vimWindow->Lock()) {
+	gui.vimTextArea->SetLowColor(rgb);
+	gui.vimWindow->Unlock();
+    }
+}
+
+    void
+gui_mch_draw_string(
+    int		row,
+    int		col,
+    char_u	*s,
+    int		len,
+    int		flags)
+{
+    if (gui.vimWindow->Lock()) {
+	gui.vimTextArea->mchDrawString(row, col, s, len, flags);
+	gui.vimWindow->Unlock();
+    }
+}
+
+/*
+ * Return OK if the key with the termcap name "name" is supported.
+ */
+    int
+gui_mch_haskey(
+    char_u	*name)
+{
+    int i;
+
+    for (i = 0; special_keys[i].BeKeys != 0; i++)
+	if (name[0] == special_keys[i].vim_code0 &&
+					 name[1] == special_keys[i].vim_code1)
+	    return OK;
+    return FAIL;
+}
+
+    void
+gui_mch_beep()
+{
+    ::beep();
+}
+
+    void
+gui_mch_flash(int msec)
+{
+    /* Do a visual beep by reversing the foreground and background colors */
+
+    if (gui.vimWindow->Lock()) {
+	BRect rect = gui.vimTextArea->Bounds();
+
+	gui.vimTextArea->SetDrawingMode(B_OP_INVERT);
+	gui.vimTextArea->FillRect(rect);
+	gui.vimTextArea->Sync();
+	snooze(msec * 1000);	 /* wait for a few msec */
+	gui.vimTextArea->FillRect(rect);
+	gui.vimTextArea->SetDrawingMode(B_OP_COPY);
+	gui.vimTextArea->Flush();
+	gui.vimWindow->Unlock();
+    }
+}
+
+/*
+ * Invert a rectangle from row r, column c, for nr rows and nc columns.
+ */
+    void
+gui_mch_invert_rectangle(
+    int		r,
+    int		c,
+    int		nr,
+    int		nc)
+{
+    BRect rect;
+    rect.left = FILL_X(c);
+    rect.top = FILL_Y(r);
+    rect.right = rect.left + nc * gui.char_width - PEN_WIDTH;
+    rect.bottom = rect.top + nr * gui.char_height - PEN_WIDTH;
+
+    if (gui.vimWindow->Lock()) {
+	gui.vimTextArea->SetDrawingMode(B_OP_INVERT);
+	gui.vimTextArea->FillRect(rect);
+	gui.vimTextArea->SetDrawingMode(B_OP_COPY);
+	gui.vimWindow->Unlock();
+    }
+}
+
+/*
+ * Iconify the GUI window.
+ */
+    void
+gui_mch_iconify()
+{
+    if (gui.vimWindow->Lock()) {
+	gui.vimWindow->Minimize(true);
+	gui.vimWindow->Unlock();
+    }
+}
+
+#if defined(FEAT_EVAL) || defined(PROTO)
+/*
+ * Bring the Vim window to the foreground.
+ */
+    void
+gui_mch_set_foreground()
+{
+    /* TODO */
+}
+#endif
+
+/*
+ * Set the window title
+ */
+    void
+gui_mch_settitle(
+    char_u	*title,
+    char_u	*icon)
+{
+    if (gui.vimWindow->Lock()) {
+	gui.vimWindow->SetTitle((char *)title);
+	gui.vimWindow->Unlock();
+    }
+}
+
+/*
+ * Draw a cursor without focus.
+ */
+    void
+gui_mch_draw_hollow_cursor(guicolor_T color)
+{
+    gui_mch_set_fg_color(color);
+    
+    BRect r;
+    r.left = FILL_X(gui.col);
+    r.top = FILL_Y(gui.row);
+#ifdef FEAT_MBYTE
+    int cells = utf_off2cells(LineOffset[gui.row] + gui.col, 1000000);
+//QQQ
+    fprintf(stderr, "%s: %s: %d: utf_off2cells\n", __FILE__, __func__, __LINE__);
+    if(cells>=4) cells = 1;
+    r.right = r.left + cells*gui.char_width - PEN_WIDTH;
+#else
+    r.right = r.left + gui.char_width - PEN_WIDTH;
+#endif
+    r.bottom = r.top + gui.char_height - PEN_WIDTH;
+
+    if (gui.vimWindow->Lock()) {
+	gui.vimTextArea->StrokeRect(r);
+	gui.vimWindow->Unlock();
+	//gui_mch_flush();
+    }
+}
+
+/*
+ * Draw part of a cursor, only w pixels wide, and h pixels high.
+ */
+    void
+gui_mch_draw_part_cursor(
+    int		w,
+    int		h,
+    guicolor_T	color)
+{
+    gui_mch_set_fg_color(color);
+
+    BRect r;
+    r.left =
+#ifdef FEAT_RIGHTLEFT
+	/* vertical line should be on the right of current point */
+	CURSOR_BAR_RIGHT ? FILL_X(gui.col + 1) - w :
+#endif
+	    FILL_X(gui.col);
+    r.right = r.left + w - PEN_WIDTH;
+    r.bottom = FILL_Y(gui.row + 1) - PEN_WIDTH;
+    r.top = r.bottom - h + PEN_WIDTH;
+
+    if (gui.vimWindow->Lock()) {
+	gui.vimTextArea->FillRect(r);
+	gui.vimWindow->Unlock();
+	//gui_mch_flush();
+    }
+}
+
+/*
+ * Catch up with any queued events.  This may put keyboard input into the
+ * input buffer, call resize call-backs, trigger timers etc.  If there is
+ * nothing in the event queue (& no timers pending), then we return
+ * immediately.
+ */
+    void
+gui_mch_update()
+{
+    gui_mch_flush();
+    while (port_count(gui.vdcmp) > 0 &&
+	    !vim_is_input_buf_full() &&
+	    gui_beos_process_event(0) >= B_OK)
+	/* nothing */ ;
+}
+
+/*
+ * GUI input routine called by gui_wait_for_chars().  Waits for a character
+ * from the keyboard.
+ *	wtime == -1		Wait forever.
+ *	wtime == 0		This should never happen.
+ *	wtime > 0		Wait wtime milliseconds for a character.
+ * Returns OK if a character was found to be available within the given time,
+ * or FAIL otherwise.
+ */
+    int
+gui_mch_wait_for_chars(
+    int		wtime)
+{
+    int		    focus;
+    bigtime_t	    until, timeout;
+    status_t	    st;
+
+    if (wtime >= 0) {
+	timeout = wtime * 1000;
+	until = system_time() + timeout;
+    } else {
+	timeout = B_INFINITE_TIMEOUT;
+    }
+
+    focus = gui.in_focus;
+    for (;;)
+    {
+	/* Stop or start blinking when focus changes */
+	if (gui.in_focus != focus)
+	{
+	    if (gui.in_focus)
+		gui_mch_start_blink();
+	    else
+		gui_mch_stop_blink();
+	    focus = gui.in_focus;
+	}
+
+	gui_mch_flush();
+	/*
+	 * Don't use gui_mch_update() because then we will spin-lock until a
+	 * char arrives, instead we use gui_beos_process_event() to hang until
+	 * an event arrives.  No need to check for input_buf_full because we
+	 * are returning as soon as it contains a single char.
+	 */
+	st = gui_beos_process_event(timeout);
+
+	if (!vim_is_input_buf_empty())
+	    return OK;
+	if (st < B_OK)		    /* includes B_TIMED_OUT */
+	    return FAIL;
+
+	/*
+	 * Calculate how much longer we're willing to wait for the
+	 * next event.
+	 */
+	if (wtime >= 0) {
+	    timeout = until - system_time();
+	    if (timeout < 0)
+		break;
+	}
+    }
+    return FAIL;
+
+}
+
+/*
+ * Output routines.
+ */
+
+/*
+ * Flush any output to the screen. This is typically called before
+ * the app goes to sleep.
+ */
+    void
+gui_mch_flush()
+{
+    // does this need to lock the window? Apparently not but be safe.
+    if (gui.vimWindow->Lock()) {
+	gui.vimWindow->Flush();
+	gui.vimWindow->Unlock();
+    }
+    return;
+}
+
+/*
+ * Clear a rectangular region of the screen from text pos (row1, col1) to
+ * (row2, col2) inclusive.
+ */
+    void
+gui_mch_clear_block(
+    int		row1,
+    int		col1,
+    int		row2,
+    int		col2)
+{
+    if (gui.vimWindow->Lock()) {
+	gui.vimTextArea->mchClearBlock(row1, col1, row2, col2);
+	gui.vimWindow->Unlock();
+    }
+}
+
+    void
+gui_mch_clear_all()
+{
+    if (gui.vimWindow->Lock()) {
+	gui.vimTextArea->mchClearAll();
+	gui.vimWindow->Unlock();
+    }
+}
+
+/*
+ * Delete the given number of lines from the given row, scrolling up any
+ * text further down within the scroll region.
+ */
+    void
+gui_mch_delete_lines(
+    int		row,
+    int		num_lines)
+{
+    gui.vimTextArea->mchDeleteLines(row, num_lines);
+}
+
+/*
+ * Insert the given number of lines before the given row, scrolling down any
+ * following text within the scroll region.
+ */
+    void
+gui_mch_insert_lines(
+    int		row,
+    int		num_lines)
+{
+    gui.vimTextArea->mchInsertLines(row, num_lines);
+}
+
+#if defined(FEAT_MENU) || defined(PROTO)
+/*
+ * Menu stuff.
+ */
+
+    void
+gui_mch_enable_menu(
+    int		flag)
+{
+    if (gui.vimWindow->Lock())
+    {
+	BMenuBar *menubar = gui.vimForm->MenuBar();
+	menubar->SetEnabled(flag);
+	gui.vimWindow->Unlock();
+    }
+}
+
+    void
+gui_mch_set_menu_pos(
+    int		x,
+    int		y,
+    int		w,
+    int		h)
+{
+    /* It will be in the right place anyway */
+}
+
+/*
+ * Add a sub menu to the menu bar.
+ */
+    void
+gui_mch_add_menu(
+    vimmenu_T	*menu,
+    int		idx)
+{
+    vimmenu_T	*parent = menu->parent;
+
+    if (!menu_is_menubar(menu->name)
+	    || (parent != NULL && parent->submenu_id == NULL))
+	return;
+
+    if (gui.vimWindow->Lock())
+    {
+/* Major re-write of the menu code, it was failing with memory corruption when
+ * we started loading multiple files (the Buffer menu)
+ *
+ * Note we don't use the preference values yet, all are inserted into the
+ * menubar on a first come-first served basis...
+ *
+ * richard@whitequeen.com jul 99
+ */
+
+	BMenu *tmp;
+
+	if ( parent )
+	    tmp = parent->submenu_id;
+	else
+	    tmp = gui.vimForm->MenuBar();
+// make sure we don't try and add the same menu twice. The Buffers menu tries to
+// do this and Be starts to crash...
+
+	if ( ! tmp->FindItem((const char *) menu->dname)) {
+
+	    BMenu *bmenu = new BMenu((char *)menu->dname);
+
+	    menu->submenu_id = bmenu;
+
+// when we add a BMenu to another Menu, it creates the interconnecting BMenuItem
+	    tmp->AddItem(bmenu);
+
+// Now its safe to query the menu for the associated MenuItem....
+	    menu->id = tmp->FindItem((const char *) menu->dname);
+
+	}
+	gui.vimWindow->Unlock();
+    }
+}
+
+    void
+gui_mch_toggle_tearoffs(int enable)
+{
+    /* no tearoff menus */
+}
+
+    static BMessage *
+MenuMessage(vimmenu_T *menu)
+{
+    BMessage *m = new BMessage('menu');
+    m->AddPointer("VimMenu", (void *)menu);
+
+    return m;
+}
+
+/*
+ * Add a menu item to a menu
+ */
+    void
+gui_mch_add_menu_item(
+    vimmenu_T	*menu,
+    int		idx)
+{
+    int		mnemonic = 0;
+    vimmenu_T	*parent = menu->parent;
+
+    if (parent->submenu_id == NULL)
+	return;
+
+#ifdef never
+    /* why not add separators ?
+     * richard
+     */
+    /* Don't add menu separator */
+    if (menu_is_separator(menu->name))
+	return;
+#endif
+
+    /* TODO: use menu->actext */
+    /* This is difficult, since on Be, an accelerator must be a single char
+     * and a lot of Vim ones are the standard VI commands.
+     *
+     * Punt for Now...
+     * richard@whiequeen.com jul 99
+     */
+    if (gui.vimWindow->Lock())
+    {
+	if ( menu_is_separator(menu->name)) {
+	    BSeparatorItem *item = new BSeparatorItem();
+	    parent->submenu_id->AddItem(item);
+	    menu->id = item;
+	    menu->submenu_id = NULL;
+	}
+	else {
+	    BMenuItem *item = new BMenuItem((char *)menu->dname,
+		    MenuMessage(menu));
+	    item->SetTarget(gui.vimTextArea);
+	    item->SetTrigger((char) menu->mnemonic);
+	    parent->submenu_id->AddItem(item);
+	    menu->id = item;
+	    menu->submenu_id = NULL;
+	}
+	gui.vimWindow->Unlock();
+    }
+}
+
+/*
+ * Destroy the machine specific menu widget.
+ */
+    void
+gui_mch_destroy_menu(
+    vimmenu_T	*menu)
+{
+    if (gui.vimWindow->Lock())
+    {
+	assert(menu->submenu_id == NULL || menu->submenu_id->CountItems() == 0);
+	/*
+	 * Detach this menu from its parent, so that it is not deleted
+	 * twice once we get to delete that parent.
+	 * Deleting a BMenuItem also deletes the associated BMenu, if any
+	 * (which does not have any items anymore since they were
+	 * removed and deleted before).
+	 */
+	BMenu *bmenu = menu->id->Menu();
+	if (bmenu)
+	{
+	    bmenu->RemoveItem(menu->id);
+	    /*
+	     * If we removed the last item from the menu bar,
+	     * resize it out of sight.
+	     */
+	    if (bmenu == gui.vimForm->MenuBar() && bmenu->CountItems() == 0)
+	    {
+		bmenu->ResizeTo(-MENUBAR_MARGIN, -MENUBAR_MARGIN);
+	    }
+	}
+	delete menu->id;
+	menu->id = NULL;
+	menu->submenu_id = NULL;
+
+	gui.menu_height = (int) gui.vimForm->MenuHeight();
+	gui.vimWindow->Unlock();
+    }
+}
+
+/*
+ * Make a menu either grey or not grey.
+ */
+    void
+gui_mch_menu_grey(
+    vimmenu_T	*menu,
+    int		grey)
+{
+    if (menu->id != NULL)
+	menu->id->SetEnabled(!grey);
+}
+
+/*
+ * Make menu item hidden or not hidden
+ */
+    void
+gui_mch_menu_hidden(
+    vimmenu_T	*menu,
+    int		hidden)
+{
+    if (menu->id != NULL)
+	menu->id->SetEnabled(!hidden);
+}
+
+/*
+ * This is called after setting all the menus to grey/hidden or not.
+ */
+    void
+gui_mch_draw_menubar()
+{
+    /* Nothing to do in BeOS */
+}
+
+#endif /* FEAT_MENU */
+
+/* Mouse stuff */
+
+#ifdef FEAT_CLIPBOARD
+/*
+ * Clipboard stuff, for cutting and pasting text to other windows.
+ */
+char textplain[] = "text/plain";
+char vimselectiontype[] = "application/x-vnd.Rhialto-Vim-selectiontype";
+
+/*
+ * Get the current selection and put it in the clipboard register.
+ */
+    void
+clip_mch_request_selection(VimClipboard *cbd)
+{
+    if (be_clipboard->Lock())
+    {
+	BMessage *m = be_clipboard->Data();
+	//m->PrintToStream();
+
+	char_u *string = NULL;
+	ssize_t stringlen = -1;
+
+	if (m->FindData(textplain, B_MIME_TYPE,
+				   (const void **)&string, &stringlen) == B_OK
+		|| m->FindString("text", (const char **)&string) == B_OK)
+	{
+	    if (stringlen == -1)
+		stringlen = STRLEN(string);
+
+	    int type;
+	    char *seltype;
+	    ssize_t seltypelen;
+
+	    /*
+	     * Try to get the special vim selection type first
+	     */
+	    if (m->FindData(vimselectiontype, B_MIME_TYPE,
+		    (const void **)&seltype, &seltypelen) == B_OK)
+	    {
+		switch (*seltype)
+		{
+		    default:
+		    case 'L':	type = MLINE;	break;
+		    case 'C':	type = MCHAR;	break;
+#ifdef FEAT_VISUAL
+		    case 'B':	type = MBLOCK;	break;
+#endif
+		}
+	    }
+	    else
+	    {
+		/* Otherwise use heuristic as documented */
+		type = memchr(string, stringlen, '\n') ? MLINE : MCHAR;
+	    }
+	    clip_yank_selection(type, string, (long)stringlen, cbd);
+	}
+	be_clipboard->Unlock();
+    }
+}
+/*
+ * Make vim the owner of the current selection.
+ */
+    void
+clip_mch_lose_selection(VimClipboard *cbd)
+{
+    /* Nothing needs to be done here */
+}
+
+/*
+ * Make vim the owner of the current selection.  Return OK upon success.
+ */
+    int
+clip_mch_own_selection(VimClipboard *cbd)
+{
+    /*
+     * Never actually own the clipboard.  If another application sets the
+     * clipboard, we don't want to think that we still own it.
+     */
+    return FAIL;
+}
+
+/*
+ * Send the current selection to the clipboard.
+ */
+    void
+clip_mch_set_selection(VimClipboard *cbd)
+{
+    if (be_clipboard->Lock())
+    {
+	be_clipboard->Clear();
+	BMessage *m = be_clipboard->Data();
+	assert(m);
+
+	/* If the '*' register isn't already filled in, fill it in now */
+	cbd->owned = TRUE;
+	clip_get_selection(cbd);
+	cbd->owned = FALSE;
+
+	char_u  *str = NULL;
+	long_u  count;
+	int	type;
+
+	type = clip_convert_selection(&str, &count, cbd);
+
+	if (type < 0)
+	    return;
+
+	m->AddData(textplain, B_MIME_TYPE, (void *)str, count);
+
+	/* Add type of selection */
+	char    vtype;
+	switch (type)
+	{
+	    default:
+	    case MLINE:    vtype = 'L';    break;
+	    case MCHAR:    vtype = 'C';    break;
+#ifdef FEAT_VISUAL
+	    case MBLOCK:   vtype = 'B';    break;
+#endif
+	}
+	m->AddData(vimselectiontype, B_MIME_TYPE, (void *)&vtype, 1);
+
+	vim_free(str);
+
+	be_clipboard->Commit();
+	be_clipboard->Unlock();
+    }
+}
+
+#endif	/* FEAT_CLIPBOARD */
+
+/*
+ * Return the RGB value of a pixel as long.
+ */
+    long_u
+gui_mch_get_rgb(guicolor_T pixel)
+{
+    rgb_color rgb = GUI_TO_RGB(pixel);
+
+    return ((rgb.red & 0xff) << 16) + ((rgb.green & 0xff) << 8)
+							  + (rgb.blue & 0xff);
+}
+
+    void
+gui_mch_setmouse(int x, int y)
+{
+    TRACE();
+    /* TODO */
+}
+
+    void
+gui_mch_show_popupmenu(vimmenu_T *menu)
+{
+    TRACE();
+    /* TODO */
+}
+
+int
+gui_mch_get_mouse_x()
+{
+    TRACE();
+    return -1;
+}
+
+
+int
+gui_mch_get_mouse_y()
+{
+    TRACE();
+    return -1;
+}
+
+#ifdef FEAT_MBYTE_IME
+    void
+im_set_active(int activate)
+{
+#if 0
+    if(activate)
+	printf("IME ON\n");
+    else
+	printf("IME OFF\n");
+#endif
+    return;
+}
+
+    void
+im_set_position(int row, int col)
+{
+    if(gui.vimWindow->Lock())
+    {
+	gui.vimTextArea->DrawIMString();
+	gui.vimWindow->Unlock();
+    }
+    return;
+}
+    
+    int 
+im_get_status()
+{
+    return(1);
+}
+#endif
+
+} /* extern "C" */
diff -Naur vim72-vendor/src/gui_beos.h vim72-working-copy/src/gui_beos.h
--- vim72-vendor/src/gui_beos.h	1970-01-01 00:00:00.000000000 +0000
+++ vim72-working-copy/src/gui_beos.h	2008-12-12 15:26:01.000000000 +0000
@@ -0,0 +1,49 @@
+/* vi:set ts=8 sts=4 sw=4:
+ *
+ * VIM - Vi IMproved		by Bram Moolenaar
+ *				GUI support by Olaf "Rhialto" Seibert
+ *
+ * Do ":help uganda"  in Vim to read copying and usage conditions.
+ * Do ":help credits" in Vim to see a list of people who contributed.
+ *
+ * BeOS GUI.
+ *
+ * GUI support for the Buzzword Enhanced Operating System for PPC.
+ *
+ */
+
+/*
+ * This file must be acceptable both as C and C++.
+ * The BeOS API is defined in terms of C++, but some classes
+ * should be somewhat known in the common C code.
+ */
+
+/* System classes */
+
+struct BMenu;
+struct BMenuItem;
+
+/* Our own Vim-related classes */
+
+struct VimApp;
+struct VimFormView;
+struct VimTextAreaView;
+struct VimWindow;
+struct VimScrollBar;
+
+/* Locking functions */
+
+extern int vim_lock_screen();
+extern void vim_unlock_screen();
+
+#ifndef __cplusplus
+
+typedef struct BMenu BMenu;
+typedef struct BMenuItem BMenuItem;
+typedef struct VimWindow VimWindow;
+typedef struct VimFormView VimFormView;
+typedef struct VimTextAreaView VimTextAreaView;
+typedef struct VimApp VimApp;
+typedef struct VimScrollBar VimScrollBar;
+
+#endif
diff -Naur vim72-vendor/src/normal.c vim72-working-copy/src/normal.c
--- vim72-vendor/src/normal.c	2008-12-08 21:47:35.000000000 +0000
+++ vim72-working-copy/src/normal.c	2008-12-12 15:04:50.000000000 +0000
@@ -5280,7 +5280,7 @@
 {
     if (!checkclearop(cap->oap))
     {
-#if defined(__BEOS__) && !USE_THREAD_FOR_INPUT_WITH_TIMEOUT
+#if (defined(__BEOS__) || defined(__HAIKU__)) && !USE_THREAD_FOR_INPUT_WITH_TIMEOUT
 	/*
 	 * Right now, the BeBox doesn't seem to have an easy way to detect
 	 * window resizing, so we cheat and make the user detect it
diff -Naur vim72-vendor/src/option.c vim72-working-copy/src/option.c
--- vim72-vendor/src/option.c	2008-12-08 21:47:35.000000000 +0000
+++ vim72-working-copy/src/option.c	2008-12-12 16:37:20.000000000 +0000
@@ -7700,7 +7700,10 @@
     {
 	/* Recompute gui.char_height and resize the Vim window to keep the
 	 * same number of lines. */
-	if (gui.in_use && gui_mch_adjust_charheight() == OK)
+	//if (gui.in_use && gui_mch_adjust_charheight() == OK)
+	//QQQ
+	fprintf(stderr, "gui_mch_adjust_charheight\n");
+	if (gui.in_use)
 	    gui_set_shellsize(FALSE, FALSE, RESIZE_VERT);
     }
 #endif
diff -Naur vim72-vendor/src/option.h vim72-working-copy/src/option.h
--- vim72-vendor/src/option.h	2008-12-08 21:47:35.000000000 +0000
+++ vim72-working-copy/src/option.h	2008-12-12 15:34:32.000000000 +0000
@@ -1,3 +1,6 @@
+#ifndef __VIM_OPTION_H__
+#define __VIM_OPTION_H__
+
 /* vi:set ts=8 sts=4 sw=4:
  *
  * VIM - Vi IMproved	by Bram Moolenaar
@@ -1072,3 +1075,6 @@
     , WV_WRAP
     , WV_COUNT	    /* must be the last one */
 };
+
+#endif
+
diff -Naur vim72-vendor/src/os_beos.c vim72-working-copy/src/os_beos.c
--- vim72-vendor/src/os_beos.c	2008-12-08 21:47:27.000000000 +0000
+++ vim72-working-copy/src/os_beos.c	2008-12-12 15:08:39.000000000 +0000
@@ -23,8 +23,8 @@
 #define thread_id int
 #endif
 
-char_u charbuf;
-signed char charcount;
+volatile char_u charbuf;
+volatile signed char charcount;
 sem_id character_present;
 sem_id character_wanted;
 thread_id read_thread_id;
@@ -47,11 +47,11 @@
     signal(SIGUSR1, mostly_ignore);
 #endif
 
-    for (;;) {
-	if (acquire_sem(character_wanted) != B_NO_ERROR)
+	while(1) {
+	  if (acquire_sem(character_wanted) != B_NO_ERROR)
 	    break;
-	charcount = read(read_cmd_fd, &charbuf, 1);
-	release_sem(character_present);
+	  charcount = read(read_cmd_fd, (char_u*)&charbuf, 1);
+	  release_sem(character_present);
     }
 
     return 0;
@@ -85,6 +85,9 @@
 {
     bigtime_t tmo;
 
+    if (gui.in_use)
+	return select(nbits, rbits, wbits, ebits, timeout);
+
     if (nbits == 0) {
 	/* select is purely being used for delay */
 	snooze(timeout->tv_sec * 1e6 + timeout->tv_usec);
@@ -153,13 +156,15 @@
 	    acquired = acquire_sem(character_present);
 	if (acquired == B_NO_ERROR) {
 	    if (charcount > 0) {
-		add_to_input_buf(&charbuf, 1);
+		add_to_input_buf((char_u*)&charbuf, charcount);
 #if !TRY_ABORT
 		release_sem(character_wanted);
 #endif
 
 		return 1;
 	    } else {
+		charbuf = 0;
+		add_to_input_buf((char_u*)&charbuf, 1);
 #if !TRY_ABORT
 		release_sem(character_wanted);
 #endif
@@ -183,7 +188,7 @@
 	    if (acquired == B_TIMED_OUT)
 		acquire_sem(character_present);
 	    if (charcount > 0) {
-		add_to_input_buf(&charbuf, 1);
+		add_to_input_buf(&charbuf, charcount);
 		return 1;
 	    }
 	    return 0;
diff -Naur vim72-vendor/src/os_beos.h vim72-working-copy/src/os_beos.h
--- vim72-vendor/src/os_beos.h	2008-12-08 21:47:27.000000000 +0000
+++ vim72-working-copy/src/os_beos.h	2008-12-12 15:20:25.000000000 +0000
@@ -22,4 +22,7 @@
 
 /* select emulation */
 
-#include <net/socket.h>		/* for typedefs and #defines only */
+#ifndef HAIKU_TARGET_PLATFORM_HAIKU
+//#include <net/socket.h>		/* for typedefs and #defines only */
+#endif
+//#include <bone/sys/socket.h>	/* for typedefs and #defines only */
diff -Naur vim72-vendor/src/os_unix.c vim72-working-copy/src/os_unix.c
--- vim72-vendor/src/os_unix.c	2008-12-08 21:47:36.000000000 +0000
+++ vim72-working-copy/src/os_unix.c	2008-12-12 15:11:59.000000000 +0000
@@ -51,7 +51,7 @@
  */
 #ifndef __TANDEM
 # undef select
-# ifdef __BEOS__
+# if (defined(__BEOS__) || defined(__HAIKU__))
 #  define select	beos_select
 # endif
 #endif
@@ -155,7 +155,7 @@
 static void may_core_dump __ARGS((void));
 
 static int  WaitForChar __ARGS((long));
-#if defined(__BEOS__)
+#if (defined(__BEOS__) || defined(__HAIKU__))
 int  RealWaitForChar __ARGS((int, long, int *));
 #else
 static int  RealWaitForChar __ARGS((int, long, int *));
@@ -1094,7 +1094,7 @@
 mch_suspend()
 {
     /* BeOS does have SIGTSTP, but it doesn't work. */
-#if defined(SIGTSTP) && !defined(__BEOS__)
+#if defined(SIGTSTP) && !defined(__BEOS__) && !defined(__HAIKU__)
     out_flush();	    /* needed to make cursor visible on some systems */
     settmode(TMODE_COOK);
     out_flush();	    /* needed to disable mouse on some systems */
@@ -3865,7 +3865,7 @@
 
     if (!pipe_error)			/* pty or pipe opened or not used */
     {
-# ifdef __BEOS__
+# if (defined(__BEOS__) || defined(__HAIKU__))
 	beos_cleanup_read_thread();
 # endif
 
@@ -4673,7 +4673,7 @@
  * Or when a Linux GPM mouse event is waiting.
  */
 /* ARGSUSED */
-#if defined(__BEOS__)
+#if (defined(__BEOS__) || defined(__HAIKU__))
     int
 #else
     static  int
diff -Naur vim72-vendor/src/proto/gui_beos.pro vim72-working-copy/src/proto/gui_beos.pro
--- vim72-vendor/src/proto/gui_beos.pro	1970-01-01 00:00:00.000000000 +0000
+++ vim72-working-copy/src/proto/gui_beos.pro	2008-12-12 16:03:56.000000000 +0000
@@ -0,0 +1,14 @@
+/* gui_beos.cc - hand crafted */
+int vim_lock_screen __ARGS((void));
+void vim_unlock_screen __ARGS((void));
+void gui_mch_prepare __ARGS((int *argc, char **argv));
+int gui_mch_init __ARGS((void));
+void gui_mch_new_colors __ARGS((void));
+int gui_mch_open __ARGS((void));
+void gui_mch_exit __ARGS((int vim_exitcode));
+GuiFont gui_mch_get_font __ARGS((char_u *name, int giveErrorIfMissing));
+void gui_mch_set_bg_color __ARGS((guicolor_T color));
+void gui_mch_set_font __ARGS((GuiFont font));
+void gui_mch_flush __ARGS((void));
+long_u gui_mch_get_rgb __ARGS((guicolor_T pixel));
+void gui_mch_set_winpos __ARGS((int x, int y));
diff -Naur vim72-vendor/src/proto/os_beos.pro vim72-working-copy/src/proto/os_beos.pro
--- vim72-vendor/src/proto/os_beos.pro	1970-01-01 00:00:00.000000000 +0000
+++ vim72-working-copy/src/proto/os_beos.pro	2008-12-12 15:19:33.000000000 +0000
@@ -0,0 +1,4 @@
+/* os_beos.c */
+void beos_cleanup_read_thread __ARGS((void));
+int beos_select __ARGS((int nbits, struct fd_set *rbits, struct fd_set *wbits, struct fd_set *ebits, struct timeval *timeout));
+/* vim: set ft=c : */
diff -Naur vim72-vendor/src/proto.h vim72-working-copy/src/proto.h
--- vim72-vendor/src/proto.h	2008-12-08 21:47:36.000000000 +0000
+++ vim72-working-copy/src/proto.h	2008-12-12 15:47:08.000000000 +0000
@@ -59,7 +59,7 @@
 # ifdef VMS
 #  include "os_vms.pro"
 # endif
-# ifdef __BEOS__
+# if (defined(__BEOS__) || defined(__HAIKU__))
 #  include "os_beos.pro"
 # endif
 # ifdef RISCOS
@@ -211,6 +211,9 @@
 extern char *vim_SelFile __ARGS((Widget toplevel, char *prompt, char *init_path, int (*show_entry)(), int x, int y, guicolor_T fg, guicolor_T bg, guicolor_T scroll_fg, guicolor_T scroll_bg));
 #   endif
 #  endif
+#  ifdef FEAT_GUI_BEOS
+#   include "gui_beos.pro"
+#  endif
 #  ifdef FEAT_GUI_MAC
 #   include "gui_mac.pro"
 #  endif
diff -Naur vim72-vendor/src/pty.c vim72-working-copy/src/pty.c
--- vim72-vendor/src/pty.c	2008-12-08 21:47:36.000000000 +0000
+++ vim72-working-copy/src/pty.c	2008-12-12 15:12:40.000000000 +0000
@@ -352,7 +352,7 @@
 static char PtyProto[] = "/dev/ptym/ptyXY";
 static char TtyProto[] = "/dev/pty/ttyXY";
 # else
-#  ifdef __BEOS__
+#  if (defined(__BEOS__) || defined(__HAIKU__))
 static char PtyProto[] = "/dev/pt/XY";
 static char TtyProto[] = "/dev/tt/XY";
 #  else
diff -Naur vim72-vendor/src/structs.h vim72-working-copy/src/structs.h
--- vim72-vendor/src/structs.h	2008-12-08 21:47:35.000000000 +0000
+++ vim72-working-copy/src/structs.h	2008-12-12 15:59:51.000000000 +0000
@@ -2239,6 +2239,10 @@
     HMENU	submenu_id;	    /* If this is submenu, add children here */
     HWND	tearoff_handle;	    /* hWnd of tearoff if created */
 #endif
+#if FEAT_GUI_BEOS
+    BMenuItem   *id;                /* Id of menu item */
+    BMenu       *submenu_id;        /* If this is submenu, add children here */
+#endif
 #ifdef FEAT_GUI_MAC
 /*  MenuHandle	id; */
 /*  short	index;	*/	    /* the item index within the father menu */
diff -Naur vim72-vendor/src/term.c vim72-working-copy/src/term.c
--- vim72-vendor/src/term.c	2008-12-08 21:47:36.000000000 +0000
+++ vim72-working-copy/src/term.c	2008-12-12 15:15:20.000000000 +0000
@@ -365,7 +365,7 @@
     {TERMCAP2KEY('*', '7'), "\233\065\065~"},	/* shifted end key */
 # endif
 
-# if defined(__BEOS__) || defined(ALL_BUILTIN_TCAPS)
+# if defined(__BEOS__) || defined(__HAIKU__) || defined(ALL_BUILTIN_TCAPS)
 /*
  * almost standard ANSI terminal, default for bebox
  */
@@ -1431,7 +1431,7 @@
 # define DEFAULT_TERM	(char_u *)"vt320"
 #endif
 
-#ifdef __BEOS__
+#if (defined(__BEOS__) || defined(__HAIKU__))
 # undef DEFAULT_TERM
 # define DEFAULT_TERM	(char_u *)"beos-ansi"
 #endif
@@ -2481,7 +2481,7 @@
 	name = NULL;	    /* empty name is equal to no name */
     term = name;
 
-#ifdef __BEOS__
+#if (defined(__BEOS__) || defined(__HAIKU__))
     /*
      * TERM environment variable is normally set to 'ansi' on the Bebox;
      * Since the BeBox doesn't quite support full ANSI yet, we use our
diff -Naur vim72-vendor/src/ui.c vim72-working-copy/src/ui.c
--- vim72-vendor/src/ui.c	2008-12-08 21:47:36.000000000 +0000
+++ vim72-working-copy/src/ui.c	2008-12-12 15:15:56.000000000 +0000
@@ -269,7 +269,7 @@
     mch_suspend();
 }
 
-#if !defined(UNIX) || !defined(SIGTSTP) || defined(PROTO) || defined(__BEOS__)
+#if !defined(UNIX) || !defined(SIGTSTP) || defined(PROTO) || defined(__BEOS__) || defined(__HAIKU__)
 /*
  * When the OS can't really suspend, call this function to start a shell.
  * This is never called in the GUI.
@@ -1739,7 +1739,7 @@
      * If we can't get any, and there isn't any in the buffer, we give up and
      * exit Vim.
      */
-# ifdef __BEOS__
+# if (defined(__BEOS__) || defined(__HAIKU__))
     /*
      * On the BeBox version (for now), all input is secretly performed within
      * beos_select() which is called from RealWaitForChar().
diff -Naur vim72-vendor/src/vim.h vim72-working-copy/src/vim.h
--- vim72-vendor/src/vim.h	2008-12-08 21:47:36.000000000 +0000
+++ vim72-working-copy/src/vim.h	2008-12-12 15:48:25.000000000 +0000
@@ -95,6 +95,7 @@
     || defined(FEAT_GUI_MAC) \
     || defined(FEAT_GUI_W32) \
     || defined(FEAT_GUI_W16) \
+    || defined(FEAT_GUI_BEOS) \
     || defined(FEAT_GUI_PHOTON)
 # if !defined(FEAT_GUI) && !defined(NO_X11_INCLUDES)
 #  define FEAT_GUI
@@ -235,7 +236,7 @@
 # define __ARGS(x) x
 #endif
 
-#ifdef __BEOS__
+#if (defined(__BEOS__) || defined(__HAIKU__))
 # include "os_beos.h"
 # define __ARGS(x)  x
 #endif
@@ -1789,6 +1790,9 @@
     int_u	format;		/* Vim's own special clipboard format */
     int_u	format_raw;	/* Vim's raw text clipboard format */
 # endif
+# ifdef FEAT_GUI_BEOS
+				/* no clipboard at the moment */
+# endif
 } VimClipboard;
 #else
 typedef int VimClipboard;	/* This is required for the prototypes. */
diff -Naur vim72-vendor/src/vim.rdef vim72-working-copy/src/vim.rdef
--- vim72-vendor/src/vim.rdef	1970-01-01 00:00:00.000000000 +0000
+++ vim72-working-copy/src/vim.rdef	2008-12-12 15:17:29.000000000 +0000
@@ -0,0 +1,11 @@
+resource app_version
+{
+	major = 7,
+	middle = 2,
+	minor = 0,
+	variety = 5,
+	internal = 0,
+	short_info = "7.2", 
+    long_info  = "7.2 ©2008 Bram Moolenaar et al"
+};
+
