mingw-cfg.site 4.72 KB
Newer Older
1
# -*- sh -*-
2
# Site defaults for the MinGW configuration of GNU Emacs.
3 4 5 6 7 8 9 10 11 12 13 14
#
# This file's purpose is to short-circuit configure-time tests for
# which we want to provide the results instead of letting the
# 'configure' script do that.  This is mainly for features that
# 'configure' tests that are implemented as part of Emacs sources, not
# as part of system libraries.  The idea is to set shell variables
# that appear to the script as cached values.
#
# For each header file foo.h you want to supply test results, set the
# value of a shell variable ac_cv_header_foo_h.  The value should be
# yes if the header is deemed to exist, no otherwise.  Or it could be
# something else, if the value computed by 'configure' requires that.
Dani Moncayo's avatar
Dani Moncayo committed
15 16 17 18 19
# In general, since configure (when invoked from an MSYS environment)
# instructs GCC to use header files in nt/inc, you should not need to
# futz with header file tests.  But there are exceptions, like with
# getopt.h below (which is a MinGW system header, but we do not want
# to use it).
20 21 22 23 24 25 26 27 28 29
#
# For each library function foo you want to supply test results, set
# the value of a shell variable ac_cv_func_foo.  Again, the value is
# determined by what 'configure' expects; sometimes it could be "not
# needed" or whatever, see the examples below.  In addition, you may
# need to set the various gl_cv_* variables for those tests that come
# from gnulib.
#
# In short, examine the test in 'configure' and push the knobs that
# are necessary to steer the test in the direction you need, by
Paul Eggert's avatar
Paul Eggert committed
30
# judiciously setting variables that control the test results.
31 32 33 34

# We want to use getopt.h from gnulib
ac_cv_header_getopt_h=no

35 36 37
# We don't want our struct timeval replaced due to Posix conformance
gl_cv_sys_struct_timeval_tv_sec=yes

38 39 40 41 42
# We don't want pthread.h to be picked up just because it defines timespec
gl_cv_sys_struct_timespec_in_pthread_h=no
# Or at all...
ac_cv_header_pthread_h=no

43 44 45 46 47 48
# We don't want to check for these functions
# because they are implemented in libwinpthread.
ac_cv_search_clock_gettime="none required"
ac_cv_func_clock_gettime=no
ac_cv_func_clock_settime=no

49 50 51
# ACL functions are implemented in w32.c
ac_cv_search_acl_get_file="none required"
ac_cv_func_acl_get_file=yes
52
ac_cv_func_acl_set_file=yes
53 54 55
ac_cv_func_acl_free=yes
ac_cv_func_acl_from_text=yes
gl_cv_func_working_acl_get_file=yes
56 57 58 59
# Autoconf's test program is not smart enough, and fails to detect gethostname
ac_cv_func_gethostname=yes
# Implemented as sys_select in w32proc.c
ac_cv_func_select=yes
60 61 62
ac_cv_func_pselect=yes
gl_cv_sig_pselect=yes
gl_cv_func_pselect_detects_ebadf=yes
63 64 65 66 67 68
# Implemented as sys_shutdown in w32.c
ac_cv_func_shutdown=yes
# Implemented in w32proc.c
ac_cv_func_setitimer=yes
# Implemented as sys_sendto in w32.c
ac_cv_func_sendto=yes
69 70
# Implemented as sys_recvfrom in w32.c
ac_cv_func_recvfrom=yes
71 72 73 74
# Implemented as sys_getsockname in w32.c
ac_cv_func_getsockname=yes
# Implemented as sys_getpeername in w32.c
ac_cv_func_getpeername=yes
75 76
# Implemented as sys_socket in w32.c
ac_cv_func_socket=yes
77 78 79 80
# Implemented as sys_getaddrinfo in w32.c
ac_cv_func_getaddrinfo=yes
# Implemented as an inline function in ws2tcpip.h
ac_cv_func_gai_strerror=yes
81 82
# Implemented in w32.c
ac_cv_func_readlink=yes
83 84
ac_cv_func_symlink=yes
# Avoid run-time tests of readlink and symlink, which will fail
85
gl_cv_func_readlink_works=yes
86
gl_cv_func_symlink_works=yes
87 88
ac_cv_func_readlinkat=yes
ac_cv_func_faccessat=yes
89 90 91 92
# Implemented in w32.c
ac_cv_func_fcntl=yes
gl_cv_func_fcntl_f_dupfd_cloexec=yes
gl_cv_func_fcntl_f_dupfd_works=yes
93
# We don't need fdopendir
94
ac_cv_func_fdopendir="not-needed"
95 96
gl_cv_func_fdopendir_works="no-but-not-needed-so-yes"
# Implemented in w32.c
97 98
ac_cv_func_lstat=yes
gl_cv_func_lstat_dereferences_slashed_symlink=yes
99 100 101 102
ac_cv_func_fstatat=yes
gl_cv_func_fstatat_zero_flag=yes
# Aliased to _commit in ms-w32.h
ac_cv_func_fsync=yes
103 104 105
ac_cv_func_fdatasync=yes
# Implemented in w32proc.c
ac_cv_func_pthread_sigmask=yes
106
# Avoid gnulib replacement
107
gl_threads_api=posix
108 109
gl_cv_func_pthread_sigmask_return_works=yes
gl_cv_func_pthread_sigmask_unblock_works="not relevant"
110 111 112 113 114 115 116 117 118 119 120
# Implemented in w32proc.c
emacs_cv_langinfo_codeset=yes
# Declared in ms-w32.h
ac_cv_have_decl_alarm=yes
# Avoid including the gnulib dup2 module
gl_cv_func_dup2_works=yes
# Defined in w32.c
ac_cv_func_getloadavg=yes
# Avoid compiling gnulib mktime
gl_cv_func_working_mktime=yes
# Implemented in w32.c
121
ac_cv_func_pipe2=yes
122 123 124 125 126 127
ac_cv_have_decl_unsetenv=yes
ac_cv_func_unsetenv=yes
gt_cv_func_unsetenv_ret='int'
gl_cv_func_unsetenv_works=yes
gl_cv_func_stat_dir_slash=yes
gl_cv_func_stat_file_slash=yes
128
ac_cv_func_random=yes
129 130
# Implemented in w32.c as sys_putenv
gl_cv_func_svid_putenv=yes
131 132
# Implemented in w32heap.c
ac_cv_func_sbrk=yes
133 134
ac_cv_func_getrlimit=yes
ac_cv_func_setrlimit=yes
135 136
# GCC warnings that produce too much noise
gl_cv_warn_c__Wredundant_decls=no