merge trunk
[bpt/emacs.git] / nt / mingw-cfg.site
CommitLineData
c38ad11c
EZ
1#! /bin/sh
2# Site defaults for the MinGW configuration of GNU Emacs.
3946d31b
EZ
3#
4# This file's purpose is to short-circuit configure-time tests for
5# which we want to provide the results instead of letting the
6# 'configure' script do that. This is mainly for features that
7# 'configure' tests that are implemented as part of Emacs sources, not
8# as part of system libraries. The idea is to set shell variables
9# that appear to the script as cached values.
10#
11# For each header file foo.h you want to supply test results, set the
12# value of a shell variable ac_cv_header_foo_h. The value should be
13# yes if the header is deemed to exist, no otherwise. Or it could be
14# something else, if the value computed by 'configure' requires that.
15# In general, since nt/msysconfig.sh instructs GCC to use header files
16# in nt/inc, you should not need to futz with header file tests. But
17# there are exceptions, like with getopt.h below (which is a MinGW
18# system header, but we do not want to use it).
19#
20# For each library function foo you want to supply test results, set
21# the value of a shell variable ac_cv_func_foo. Again, the value is
22# determined by what 'configure' expects; sometimes it could be "not
23# needed" or whatever, see the examples below. In addition, you may
24# need to set the various gl_cv_* variables for those tests that come
25# from gnulib.
26#
27# In short, examine the test in 'configure' and push the knobs that
28# are necessary to steer the test in the direction you need, by
8a9f4fb4 29# judiciously setting variables that control the test results.
c38ad11c
EZ
30
31# We want to use getopt.h from gnulib
32ac_cv_header_getopt_h=no
33
9e5b5c79
EZ
34# ACL functions are implemented in w32.c
35ac_cv_search_acl_get_file="none required"
36ac_cv_func_acl_get_file=yes
c38ad11c 37ac_cv_func_acl_set_file=yes
9e5b5c79
EZ
38ac_cv_func_acl_free=yes
39ac_cv_func_acl_from_text=yes
40gl_cv_func_working_acl_get_file=yes
c38ad11c
EZ
41# Autoconf's test program is not smart enough, and fails to detect gethostname
42ac_cv_func_gethostname=yes
43# Implemented as sys_select in w32proc.c
44ac_cv_func_select=yes
6cd0eaeb
EZ
45ac_cv_func_pselect=yes
46gl_cv_sig_pselect=yes
47gl_cv_func_pselect_detects_ebadf=yes
c38ad11c
EZ
48# Implemented as sys_shutdown in w32.c
49ac_cv_func_shutdown=yes
50# Implemented in w32proc.c
51ac_cv_func_setitimer=yes
52# Implemented as sys_sendto in w32.c
53ac_cv_func_sendto=yes
cb11bd95
EZ
54# Implemented as sys_recvfrom in w32.c
55ac_cv_func_recvfrom=yes
c38ad11c
EZ
56# Implemented as sys_getsockname in w32.c
57ac_cv_func_getsockname=yes
58# Implemented as sys_getpeername in w32.c
59ac_cv_func_getpeername=yes
da6c9624
EZ
60# Implemented as sys_socket in w32.c
61ac_cv_func_socket=yes
c38ad11c
EZ
62# Implemented in w32.c
63ac_cv_func_readlink=yes
da6c9624
EZ
64ac_cv_func_symlink=yes
65# Avoid run-time tests of readlink and symlink, which will fail
c38ad11c 66gl_cv_func_readlink_works=yes
da6c9624 67gl_cv_func_symlink_works=yes
c38ad11c
EZ
68ac_cv_func_readlinkat=yes
69ac_cv_func_faccessat=yes
70# We don't need fdopendir
52aa6b17 71ac_cv_func_fdopendir="not-needed"
ef904742
EZ
72gl_cv_func_fdopendir_works="no-but-not-needed-so-yes"
73# Implemented in w32.c
da6c9624
EZ
74ac_cv_func_lstat=yes
75gl_cv_func_lstat_dereferences_slashed_symlink=yes
ef904742
EZ
76ac_cv_func_fstatat=yes
77gl_cv_func_fstatat_zero_flag=yes
ef904742
EZ
78# Aliased to _commit in ms-w32.h
79ac_cv_func_fsync=yes
da6c9624
EZ
80ac_cv_func_fdatasync=yes
81# Implemented in w32proc.c
82ac_cv_func_pthread_sigmask=yes
cb11bd95 83# Avoid gnulib replacement
6cd0eaeb 84gl_threads_api=posix
cb11bd95
EZ
85gl_cv_func_pthread_sigmask_return_works=yes
86gl_cv_func_pthread_sigmask_unblock_works="not relevant"
da6c9624
EZ
87# Implemented in w32proc.c
88emacs_cv_langinfo_codeset=yes
89# Declared in ms-w32.h
90ac_cv_have_decl_alarm=yes
91# Avoid including the gnulib dup2 module
92gl_cv_func_dup2_works=yes
93# Defined in w32.c
94ac_cv_func_getloadavg=yes
95# Avoid compiling gnulib mktime
96gl_cv_func_working_mktime=yes
97# Implemented in w32.c
98ac_cv_have_decl_unsetenv=yes
99ac_cv_func_unsetenv=yes
100gt_cv_func_unsetenv_ret='int'
101gl_cv_func_unsetenv_works=yes
102gl_cv_func_stat_dir_slash=yes
103gl_cv_func_stat_file_slash=yes
cb11bd95 104ac_cv_func_random=yes
6cd0eaeb
EZ
105# Implemented in w32.c as sys_putenv
106gl_cv_func_svid_putenv=yes