Allow packages to change the hl-line overlay priority
[emacs.git] / nt / mingw-cfg.site
blob6ab81e943f1491091ac6206ef3d1f8334ee2c76b
1 # -*- sh -*-
2 # Site defaults for the MinGW configuration of GNU Emacs.
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.
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 configure (when invoked from an MSYS environment)
16 # instructs GCC to use header files in nt/inc, you should not need to
17 # futz with header file tests.  But there are exceptions, like with
18 # getopt.h below (which is a MinGW system header, but we do not want
19 # to use it).
21 # For each library function foo you want to supply test results, set
22 # the value of a shell variable ac_cv_func_foo.  Again, the value is
23 # determined by what 'configure' expects; sometimes it could be "not
24 # needed" or whatever, see the examples below.  In addition, you may
25 # need to set the various gl_cv_* variables for those tests that come
26 # from gnulib.
28 # In short, examine the test in 'configure' and push the knobs that
29 # are necessary to steer the test in the direction you need, by
30 # judiciously setting variables that control the test results.
32 # We want to use getopt.h from gnulib
33 ac_cv_header_getopt_h=no
35 # We don't want our struct timeval replaced due to Posix conformance
36 gl_cv_sys_struct_timeval_tv_sec=yes
38 # We don't want pthread.h to be picked up just because it defines timespec
39 gl_cv_sys_struct_timespec_in_pthread_h=no
40 # Or at all...
41 ac_cv_header_pthread_h=no
43 # We don't want to check for these functions
44 # because they are implemented in libwinpthread.
45 ac_cv_search_clock_gettime="none required"
46 ac_cv_func_clock_gettime=no
47 ac_cv_func_clock_settime=no
49 # ACL functions are implemented in w32.c
50 ac_cv_search_acl_get_file="none required"
51 ac_cv_func_acl_get_file=yes
52 ac_cv_func_acl_set_file=yes
53 ac_cv_func_acl_free=yes
54 ac_cv_func_acl_from_text=yes
55 gl_cv_func_working_acl_get_file=yes
56 # Autoconf's test program is not smart enough, and fails to detect gethostname
57 ac_cv_func_gethostname=yes
58 # Implemented as sys_select in w32proc.c
59 ac_cv_func_select=yes
60 ac_cv_func_pselect=yes
61 gl_cv_sig_pselect=yes
62 gl_cv_func_pselect_detects_ebadf=yes
63 # Implemented as sys_shutdown in w32.c
64 ac_cv_func_shutdown=yes
65 # Implemented in w32proc.c
66 ac_cv_func_setitimer=yes
67 # Implemented as sys_sendto in w32.c
68 ac_cv_func_sendto=yes
69 # Implemented as sys_recvfrom in w32.c
70 ac_cv_func_recvfrom=yes
71 # Implemented as sys_getsockname in w32.c
72 ac_cv_func_getsockname=yes
73 # Implemented as sys_getpeername in w32.c
74 ac_cv_func_getpeername=yes
75 # Implemented as sys_socket in w32.c
76 ac_cv_func_socket=yes
77 # Implemented as sys_getaddrinfo in w32.c
78 ac_cv_func_getaddrinfo=yes
79 # Implemented as an inline function in ws2tcpip.h
80 ac_cv_func_gai_strerror=yes
81 # Implemented in w32.c
82 ac_cv_func_readlink=yes
83 ac_cv_func_symlink=yes
84 # Avoid run-time tests of readlink and symlink, which will fail
85 gl_cv_func_readlink_works=yes
86 gl_cv_func_readlink_trailing_slash=yes
87 gl_cv_func_readlink_truncate=yes
88 gl_cv_func_symlink_works=yes
89 ac_cv_func_readlinkat=yes
90 ac_cv_func_faccessat=yes
91 # Avoid compiling Gnulib's canonicalize-lgpl.c, which fails
92 ac_cv_func_canonicalize_file_name=yes
93 # Implemented in w32.c
94 ac_cv_func_realpath=yes
95 gl_cv_func_realpath_works=yes
96 # Implemented in w32.c
97 ac_cv_func_fcntl=yes
98 gl_cv_func_fcntl_f_dupfd_cloexec=yes
99 gl_cv_func_fcntl_f_dupfd_works=yes
100 # We don't need fdopendir
101 ac_cv_func_fdopendir="not-needed"
102 gl_cv_func_fdopendir_works="no-but-not-needed-so-yes"
103 # Implemented in w32.c
104 ac_cv_func_lstat=yes
105 gl_cv_func_lstat_dereferences_slashed_symlink=yes
106 ac_cv_func_fstatat=yes
107 gl_cv_func_fstatat_zero_flag=yes
108 ac_cv_func_fchmodat=yes
109 gl_cv_func_fchmodat_works="not-needed-so-yes"
110 ac_cv_func_lchmod=yes
111 ac_cv_func_futimens=not-needed
112 gl_cv_func_futimens_works="not-needed-so-yes"
113 ac_cv_func_utimensat=yes
114 gl_cv_func_utimensat_works=yes
115 ac_cv_func_explicit_bzero=yes
116 # Aliased to _commit in ms-w32.h
117 ac_cv_func_fsync=yes
118 ac_cv_func_fdatasync=yes
119 # Implemented in w32proc.c
120 ac_cv_func_pthread_sigmask=yes
121 # Avoid gnulib replacement
122 gl_threads_api=posix
123 gl_cv_func_pthread_sigmask_return_works=yes
124 gl_cv_func_pthread_sigmask_unblock_works="not relevant"
125 gl_cv_func_pthread_sigmask_macro=no
126 # Implemented in w32proc.c
127 emacs_cv_langinfo_codeset=yes
128 emacs_cv_langinfo__nl_paper_width=yes
129 # Declared in ms-w32.h
130 ac_cv_have_decl_alarm=yes
131 # Avoid including the gnulib dup2 module
132 gl_cv_func_dup2_works=yes
133 # Defined in w32.c
134 ac_cv_func_getloadavg=yes
135 # Avoid compiling gnulib mktime
136 gl_cv_func_working_mktime=yes
137 # Implemented in w32.c
138 ac_cv_func_pipe2=yes
139 ac_cv_have_decl_unsetenv=yes
140 ac_cv_func_unsetenv=yes
141 gt_cv_func_unsetenv_ret='int'
142 gl_cv_func_unsetenv_works=yes
143 gl_cv_func_stat_dir_slash=yes
144 gl_cv_func_stat_file_slash=yes
145 ac_cv_func_random=yes
146 # Implemented in w32.c as sys_putenv
147 gl_cv_func_svid_putenv=yes
148 # Implemented in w32heap.c
149 ac_cv_func_sbrk=yes
150 ac_cv_func_getrlimit=yes
151 ac_cv_func_setrlimit=yes
152 # GCC warnings that produce too much noise
153 gl_cv_warn_c__Wredundant_decls=no
154 # We don't want to compile lib/copy-file-range.c because it isn't used
155 # on Windows, and because compiling it triggers a warning about a
156 # missing prototype, since lib/unistd.h, where Gnulib has its
157 # prototype, isn't built on Windows.
158 gl_cv_func_copy_file_range=yes
159 # We don't want to build Emacs so it depends on bcrypt.dll, since then
160 # it will refuse to start on systems where that DLL is absent.
161 gl_cv_lib_assume_bcrypt=no
162 # Force 'ac_cv_func_strsignal' to no as mingw64 libgccjit exports this
163 # symbol erroneously
164 # <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45303#83>.
165 ac_cv_func_strsignal=no
166 # Don't build the Gnulib free.c: it is not needed, since the w32
167 # implementation of 'free' doesn't touch errno, and it emits a
168 # compilation warning.
169 gl_cv_func_free_preserves_errno=yes