Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.10. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | # |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 5 | # Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7 | # |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9 | # |
10 | # | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | ||||
15 | ## -------------------- ## | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20 | emulate sh |
21 | NULLCMD=: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 26 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | ||||
29 | set -o posix ;; #( | ||||
30 | *) : | ||||
31 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 32 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 34 | |
35 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 36 | as_nl=' |
37 | ' | ||||
38 | export as_nl | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||||
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||||
44 | # but without wasting forks for bash or zsh. | ||||
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||||
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
47 | as_echo='print -r --' | ||||
48 | as_echo_n='print -rn --' | ||||
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
50 | as_echo='printf %s\n' | ||||
51 | as_echo_n='printf %s' | ||||
52 | else | ||||
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||||
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||||
55 | as_echo_n='/usr/ucb/echo -n' | ||||
56 | else | ||||
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||||
58 | as_echo_n_body='eval | ||||
59 | arg=$1; | ||||
60 | case $arg in #( | ||||
61 | *"$as_nl"*) | ||||
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||||
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||||
64 | esac; | ||||
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||||
66 | ' | ||||
67 | export as_echo_n_body | ||||
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||||
69 | fi | ||||
70 | export as_echo_body | ||||
71 | as_echo='sh -c $as_echo_body as_echo' | ||||
72 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 73 | |
74 | # The user is always right. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||||
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||||
79 | PATH_SEPARATOR=';' | ||||
80 | } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 81 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 82 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 83 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | ||||
86 | # there to prevent editors from complaining about space-tab. | ||||
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||||
88 | # splitting by setting IFS to empty value.) | ||||
89 | IFS=" "" $as_nl" | ||||
90 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 91 | # Find who we are. Look in the path if we contain no directory separator. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 92 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 93 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 96 | for as_dir in $PATH |
97 | do | ||||
98 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 99 | test -z "$as_dir" && as_dir=. |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 101 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 102 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 103 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 104 | ;; |
105 | esac | ||||
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||||
107 | # in which case we are not to be found in the path. | ||||
108 | if test "x$as_myself" = x; then | ||||
109 | as_myself=$0 | ||||
110 | fi | ||||
111 | if test ! -f "$as_myself"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 113 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 114 | fi |
115 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||||
118 | # suppresses any "Segmentation fault" message there. '((' could | ||||
119 | # trigger a bug in pdksh 5.2.14. | ||||
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||||
121 | do eval test x\${$as_var+set} = xset \ | ||||
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||||
123 | done | ||||
124 | PS1='$ ' | ||||
125 | PS2='> ' | ||||
126 | PS4='+ ' | ||||
127 | |||||
128 | # NLS nuisances. | ||||
129 | LC_ALL=C | ||||
130 | export LC_ALL | ||||
131 | LANGUAGE=C | ||||
132 | export LANGUAGE | ||||
133 | |||||
134 | # CDPATH. | ||||
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 136 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | ||||
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | ||||
140 | _as_can_reexec=no; export _as_can_reexec; | ||||
141 | # We cannot yet assume a decent shell, so we have to provide a | ||||
142 | # neutralization value for shells without unset; and this also | ||||
143 | # works around shells that cannot unset nonexistent variables. | ||||
144 | # Preserve -v and -x to the replacement shell. | ||||
145 | BASH_ENV=/dev/null | ||||
146 | ENV=/dev/null | ||||
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||||
148 | case $- in # (((( | ||||
149 | *v*x* | *x*v* ) as_opts=-vx ;; | ||||
150 | *v* ) as_opts=-v ;; | ||||
151 | *x* ) as_opts=-x ;; | ||||
152 | * ) as_opts= ;; | ||||
153 | esac | ||||
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | ||||
155 | # Admittedly, this is quite paranoid, since all the known shells bail | ||||
156 | # out after a failed `exec'. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
158 | as_fn_exit 255 | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 159 | fi |
160 | # We don't want this to propagate to other subprocesses. | ||||
161 | { _as_can_reexec=; unset _as_can_reexec;} | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 164 | emulate sh |
165 | NULLCMD=: | ||||
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||||
167 | # is contrary to our usage. Disable this feature. | ||||
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||||
169 | setopt NO_GLOB_SUBST | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 170 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 171 | case \`(set -o) 2>/dev/null\` in #( |
172 | *posix*) : | ||||
173 | set -o posix ;; #( | ||||
174 | *) : | ||||
175 | ;; | ||||
176 | esac | ||||
177 | fi | ||||
178 | " | ||||
179 | as_required="as_fn_return () { (exit \$1); } | ||||
180 | as_fn_success () { as_fn_return 0; } | ||||
181 | as_fn_failure () { as_fn_return 1; } | ||||
182 | as_fn_ret_success () { return 0; } | ||||
183 | as_fn_ret_failure () { return 1; } | ||||
184 | |||||
185 | exitcode=0 | ||||
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||||
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||||
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||||
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 191 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 192 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 193 | exitcode=1; echo positional parameters were not saved. |
194 | fi | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||||
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||||
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||||
201 | test \$(( 1 + 1 )) = 2 || exit 1" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 202 | if (eval "$as_required") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 203 | as_have_required=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 204 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 205 | as_have_required=no |
206 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 208 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 209 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
211 | as_found=false | ||||
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||||
213 | do | ||||
214 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 215 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 216 | as_found=: |
217 | case $as_dir in #( | ||||
218 | /*) | ||||
219 | for as_base in sh bash ksh sh5; do | ||||
220 | # Try only shells that exist, to save several forks. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 221 | as_shell=$as_dir/$as_base |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 226 | break 2 |
227 | fi | ||||
228 | fi | ||||
229 | done;; | ||||
230 | esac | ||||
231 | as_found=false | ||||
232 | done | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 236 | fi; } |
237 | IFS=$as_save_IFS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 238 | |
239 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 240 | if test "x$CONFIG_SHELL" != x; then : |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 241 | export CONFIG_SHELL |
242 | # We cannot yet assume a decent shell, so we have to provide a | ||||
243 | # neutralization value for shells without unset; and this also | ||||
244 | # works around shells that cannot unset nonexistent variables. | ||||
245 | # Preserve -v and -x to the replacement shell. | ||||
246 | BASH_ENV=/dev/null | ||||
247 | ENV=/dev/null | ||||
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||||
249 | case $- in # (((( | ||||
250 | *v*x* | *x*v* ) as_opts=-vx ;; | ||||
251 | *v* ) as_opts=-v ;; | ||||
252 | *x* ) as_opts=-x ;; | ||||
253 | * ) as_opts= ;; | ||||
254 | esac | ||||
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | ||||
256 | # Admittedly, this is quite paranoid, since all the known shells bail | ||||
257 | # out after a failed `exec'. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 259 | exit 255 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 260 | fi |
261 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 262 | if test x$as_have_required = xno; then : |
263 | $as_echo "$0: This script requires a shell more modern than all" | ||||
264 | $as_echo "$0: the shells that I found on your system." | ||||
265 | if test x${ZSH_VERSION+set} = xset ; then | ||||
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||||
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 268 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 270 | $0: https://bugs.python.org/ about your system, including |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 271 | $0: any error possibly output before this message. Then |
272 | $0: install a modern shell, or manually run the script | ||||
273 | $0: under such a shell if you do have one." | ||||
274 | fi | ||||
275 | exit 1 | ||||
276 | fi | ||||
277 | fi | ||||
278 | fi | ||||
279 | SHELL=${CONFIG_SHELL-/bin/sh} | ||||
280 | export SHELL | ||||
281 | # Unset more variables known to interfere with behavior of common tools. | ||||
282 | CLICOLOR_FORCE= GREP_OPTIONS= | ||||
283 | unset CLICOLOR_FORCE GREP_OPTIONS | ||||
284 | |||||
285 | ## --------------------- ## | ||||
286 | ## M4sh Shell Functions. ## | ||||
287 | ## --------------------- ## | ||||
288 | # as_fn_unset VAR | ||||
289 | # --------------- | ||||
290 | # Portably unset VAR. | ||||
291 | as_fn_unset () | ||||
292 | { | ||||
293 | { eval $1=; unset $1;} | ||||
294 | } | ||||
295 | as_unset=as_fn_unset | ||||
296 | |||||
297 | # as_fn_set_status STATUS | ||||
298 | # ----------------------- | ||||
299 | # Set $? to STATUS, without forking. | ||||
300 | as_fn_set_status () | ||||
301 | { | ||||
302 | return $1 | ||||
303 | } # as_fn_set_status | ||||
304 | |||||
305 | # as_fn_exit STATUS | ||||
306 | # ----------------- | ||||
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||||
308 | as_fn_exit () | ||||
309 | { | ||||
310 | set +e | ||||
311 | as_fn_set_status $1 | ||||
312 | exit $1 | ||||
313 | } # as_fn_exit | ||||
314 | |||||
315 | # as_fn_mkdir_p | ||||
316 | # ------------- | ||||
317 | # Create "$as_dir" as a directory, including parents if necessary. | ||||
318 | as_fn_mkdir_p () | ||||
319 | { | ||||
320 | |||||
321 | case $as_dir in #( | ||||
322 | -*) as_dir=./$as_dir;; | ||||
323 | esac | ||||
324 | test -d "$as_dir" || eval $as_mkdir_p || { | ||||
325 | as_dirs= | ||||
326 | while :; do | ||||
327 | case $as_dir in #( | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 329 | *) as_qdir=$as_dir;; |
330 | esac | ||||
331 | as_dirs="'$as_qdir' $as_dirs" | ||||
332 | as_dir=`$as_dirname -- "$as_dir" || | ||||
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||||
335 | X"$as_dir" : 'X\(//\)$' \| \ | ||||
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 337 | $as_echo X"$as_dir" | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
339 | s//\1/ | ||||
340 | q | ||||
341 | } | ||||
342 | /^X\(\/\/\)[^/].*/{ | ||||
343 | s//\1/ | ||||
344 | q | ||||
345 | } | ||||
346 | /^X\(\/\/\)$/{ | ||||
347 | s//\1/ | ||||
348 | q | ||||
349 | } | ||||
350 | /^X\(\/\).*/{ | ||||
351 | s//\1/ | ||||
352 | q | ||||
353 | } | ||||
354 | s/.*/./; q'` | ||||
355 | test -d "$as_dir" && break | ||||
356 | done | ||||
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 359 | |
360 | |||||
361 | } # as_fn_mkdir_p | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 362 | |
363 | # as_fn_executable_p FILE | ||||
364 | # ----------------------- | ||||
365 | # Test if FILE is an executable regular file. | ||||
366 | as_fn_executable_p () | ||||
367 | { | ||||
368 | test -f "$1" && test -x "$1" | ||||
369 | } # as_fn_executable_p | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 370 | # as_fn_append VAR VALUE |
371 | # ---------------------- | ||||
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||||
373 | # advantage of any shell optimizations that allow amortized linear growth over | ||||
374 | # repeated appends, instead of the typical quadratic growth present in naive | ||||
375 | # implementations. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 377 | eval 'as_fn_append () |
378 | { | ||||
379 | eval $1+=\$2 | ||||
380 | }' | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 381 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 382 | as_fn_append () |
383 | { | ||||
384 | eval $1=\$$1\$2 | ||||
385 | } | ||||
386 | fi # as_fn_append | ||||
387 | |||||
388 | # as_fn_arith ARG... | ||||
389 | # ------------------ | ||||
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||||
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||||
392 | # must be portable across $(()) and expr. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 394 | eval 'as_fn_arith () |
395 | { | ||||
396 | as_val=$(( $* )) | ||||
397 | }' | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 398 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 399 | as_fn_arith () |
400 | { | ||||
401 | as_val=`expr "$@" || test $? -eq 1` | ||||
402 | } | ||||
403 | fi # as_fn_arith | ||||
404 | |||||
405 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
407 | # ---------------------------------------- | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 411 | as_fn_error () |
412 | { | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
414 | if test "$4"; then | ||||
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 417 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 418 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 419 | as_fn_exit $as_status |
420 | } # as_fn_error | ||||
421 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||||
424 | as_expr=expr | ||||
425 | else | ||||
426 | as_expr=false | ||||
427 | fi | ||||
428 | |||||
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||||
430 | as_basename=basename | ||||
431 | else | ||||
432 | as_basename=false | ||||
433 | fi | ||||
434 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
436 | as_dirname=dirname | ||||
437 | else | ||||
438 | as_dirname=false | ||||
439 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 440 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||||
443 | X"$0" : 'X\(//\)$' \| \ | ||||
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 445 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
447 | s//\1/ | ||||
448 | q | ||||
449 | } | ||||
450 | /^X\/\(\/\/\)$/{ | ||||
451 | s//\1/ | ||||
452 | q | ||||
453 | } | ||||
454 | /^X\/\(\/\).*/{ | ||||
455 | s//\1/ | ||||
456 | q | ||||
457 | } | ||||
458 | s/.*/./; q'` | ||||
459 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. |
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||||
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||||
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||||
464 | as_cr_digits='0123456789' | ||||
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 | |
467 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||||
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||||
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||||
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 473 | sed -n ' |
474 | p | ||||
475 | /[$]LINENO/= | ||||
476 | ' <$as_myself | | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 477 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ |
479 | t lineno | ||||
480 | b | ||||
481 | :lineno | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 482 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 483 | :loop |
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 486 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 487 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
492 | # already done that, so ensure we don't try to do so again and fall | ||||
493 | # in an infinite loop. This has already happened in practice. | ||||
494 | _as_can_reexec=no; export _as_can_reexec | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
496 | # (the dirname of $[0] is not the place where we might find the | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 497 | # original and so on. Autoconf is especially sensitive to this). |
498 | . "./$as_me.lineno" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 499 | # Exit status is that of the last command. |
500 | exit | ||||
501 | } | ||||
502 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 504 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 505 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 506 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 508 | xy) ECHO_C='\c';; |
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||||
510 | ECHO_T=' ';; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 511 | esac;; |
512 | *) | ||||
513 | ECHO_N='-n';; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 514 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 517 | if test -d conf$$.dir; then |
518 | rm -f conf$$.dir/conf$$.file | ||||
519 | else | ||||
520 | rm -f conf$$.dir | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 521 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 522 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 523 | if (echo >conf$$.file) 2>/dev/null; then |
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||||
525 | as_ln_s='ln -s' | ||||
526 | # ... but there are two gotchas: | ||||
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||||
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 529 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 531 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
533 | as_ln_s=ln | ||||
534 | else | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 536 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 537 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 538 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 539 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
541 | rmdir conf$$.dir 2>/dev/null | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 542 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 543 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 545 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 546 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 547 | as_mkdir_p=false |
548 | fi | ||||
549 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 550 | as_test_x='test -x' |
551 | as_executable_p=as_fn_executable_p | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
553 | # Sed expression to map a string onto a valid CPP name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 555 | |
556 | # Sed expression to map a string onto a valid variable name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 558 | |
559 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
561 | exec 6>&1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | |
563 | # Name of the host. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 565 | # so uname gets run too. |
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||||
567 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 | # |
569 | # Initializations. | ||||
570 | # | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 571 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 572 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 574 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | cross_compiling=no |
576 | subdirs= | ||||
577 | MFLAGS= | ||||
578 | MAKEFLAGS= | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 581 | PACKAGE_NAME='python' |
582 | PACKAGE_TARNAME='python' | ||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 583 | PACKAGE_VERSION='3.10' |
584 | PACKAGE_STRING='python 3.10' | ||||
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://bugs.python.org/' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | |
588 | ac_unique_file="Include/object.h" | ||||
589 | # Factoring default headers for most tests. | ||||
590 | ac_includes_default="\ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 591 | #include <stdio.h> |
592 | #ifdef HAVE_SYS_TYPES_H | ||||
593 | # include <sys/types.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | #endif |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H |
596 | # include <sys/stat.h> | ||||
597 | #endif | ||||
598 | #ifdef STDC_HEADERS | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # include <stdlib.h> |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 600 | # include <stddef.h> |
601 | #else | ||||
602 | # ifdef HAVE_STDLIB_H | ||||
603 | # include <stdlib.h> | ||||
604 | # endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 605 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
608 | # include <memory.h> | ||||
609 | # endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <string.h> |
611 | #endif | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H |
613 | # include <strings.h> | ||||
614 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 617 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 618 | #ifdef HAVE_STDINT_H |
619 | # include <stdint.h> | ||||
620 | #endif | ||||
621 | #ifdef HAVE_UNISTD_H | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 622 | # include <unistd.h> |
623 | #endif" | ||||
624 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 626 | TEST_MODULES |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 627 | LIBRARY_DEPS |
628 | STATIC_LIBPYTHON | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 629 | OPENSSL_RPATH |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 630 | OPENSSL_LDFLAGS |
631 | OPENSSL_LIBS | ||||
632 | OPENSSL_INCLUDES | ||||
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 633 | ENSUREPIP |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 634 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 635 | THREADHEADERS |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 636 | WHEEL_PKG_DIR |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 637 | LIBPL |
638 | PY_ENABLE_SHARED | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 639 | PLATLIBDIR |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 640 | BINLIBDEST |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 641 | LIBPYTHON |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 642 | EXT_SUFFIX |
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 643 | ALT_SOABI |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 644 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 645 | LIBC |
646 | LIBM | ||||
647 | HAVE_GETHOSTBYNAME | ||||
648 | HAVE_GETHOSTBYNAME_R | ||||
649 | HAVE_GETHOSTBYNAME_R_3_ARG | ||||
650 | HAVE_GETHOSTBYNAME_R_5_ARG | ||||
651 | HAVE_GETHOSTBYNAME_R_6_ARG | ||||
652 | LIBOBJS | ||||
653 | TRUE | ||||
654 | MACHDEP_OBJS | ||||
655 | DYNLOADFILE | ||||
656 | DLINCLDIR | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 657 | DTRACE_OBJS |
658 | DTRACE_HEADERS | ||||
659 | DFLAGS | ||||
660 | DTRACE | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 661 | TCLTK_LIBS |
662 | TCLTK_INCLUDES | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 663 | LIBFFI_INCLUDEDIR |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 664 | PKG_CONFIG_LIBDIR |
665 | PKG_CONFIG_PATH | ||||
666 | PKG_CONFIG | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 667 | TZPATH |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 668 | SHLIBS |
669 | CFLAGSFORSHARED | ||||
670 | LINKFORSHARED | ||||
671 | CCSHARED | ||||
672 | BLDSHARED | ||||
673 | LDCXXSHARED | ||||
674 | LDSHARED | ||||
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 675 | SHLIB_SUFFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 676 | LIBTOOL_CRUFT |
677 | OTHER_LIBTOOL_OPT | ||||
678 | UNIVERSAL_ARCH_FLAGS | ||||
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 679 | LDFLAGS_NODIST |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 680 | CFLAGS_NODIST |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 681 | BASECFLAGS |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 682 | CFLAGS_ALIASING |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 683 | OPT |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 684 | LLVM_PROF_FOUND |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 685 | LLVM_PROFDATA |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 686 | LLVM_PROF_ERR |
687 | LLVM_PROF_FILE | ||||
688 | LLVM_PROF_MERGER | ||||
689 | PGO_PROF_USE_FLAG | ||||
690 | PGO_PROF_GEN_FLAG | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 691 | LLVM_AR_FOUND |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 692 | LLVM_AR |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 693 | PROFILE_TASK |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 694 | DEF_MAKE_RULE |
695 | DEF_MAKE_ALL_RULE | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 696 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 697 | LN |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 698 | MKDIR_P |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 699 | INSTALL_DATA |
700 | INSTALL_SCRIPT | ||||
701 | INSTALL_PROGRAM | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 702 | ac_ct_READELF |
703 | READELF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 704 | ARFLAGS |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 705 | ac_ct_AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 706 | AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 707 | GNULD |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 708 | EXPORTSFROM |
709 | EXPORTSYMS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 710 | LINKCC |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 711 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 712 | RUNSHARED |
713 | INSTSONAME | ||||
714 | LDLIBRARYDIR | ||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 715 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 716 | BLDLIBRARY |
717 | DLLLIBRARY | ||||
718 | LDLIBRARY | ||||
719 | LIBRARY | ||||
720 | BUILDEXEEXT | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 721 | EGREP |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 722 | NO_AS_NEEDED |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 723 | MULTIARCH_CPPFLAGS |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 724 | PLATFORM_TRIPLET |
725 | MULTIARCH | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 726 | ac_ct_CXX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 727 | MAINCC |
728 | CXX | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 729 | SED |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 730 | GREP |
731 | CPP | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 732 | OBJEXT |
733 | EXEEXT | ||||
734 | ac_ct_CC | ||||
735 | CPPFLAGS | ||||
736 | LDFLAGS | ||||
737 | CFLAGS | ||||
738 | CC | ||||
739 | EXPORT_MACOSX_DEPLOYMENT_TARGET | ||||
740 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 741 | _PYTHON_HOST_PLATFORM |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 742 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 743 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 744 | FRAMEWORKUNIXTOOLSPREFIX |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 745 | FRAMEWORKPYTHONW |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 746 | FRAMEWORKALTINSTALLLAST |
747 | FRAMEWORKALTINSTALLFIRST | ||||
748 | FRAMEWORKINSTALLLAST | ||||
749 | FRAMEWORKINSTALLFIRST | ||||
750 | PYTHONFRAMEWORKINSTALLDIR | ||||
751 | PYTHONFRAMEWORKPREFIX | ||||
752 | PYTHONFRAMEWORKDIR | ||||
753 | PYTHONFRAMEWORKIDENTIFIER | ||||
754 | PYTHONFRAMEWORK | ||||
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 755 | LIPO_INTEL64_FLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 756 | LIPO_32BIT_FLAGS |
757 | ARCH_RUN_32BIT | ||||
758 | UNIVERSALSDK | ||||
759 | CONFIG_ARGS | ||||
760 | SOVERSION | ||||
761 | VERSION | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 762 | PYTHON_FOR_BUILD |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 763 | PYTHON_FOR_REGEN |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 764 | host_os |
765 | host_vendor | ||||
766 | host_cpu | ||||
767 | host | ||||
768 | build_os | ||||
769 | build_vendor | ||||
770 | build_cpu | ||||
771 | build | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 772 | HAS_GIT |
773 | GITBRANCH | ||||
774 | GITTAG | ||||
775 | GITVERSION | ||||
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 776 | BASECPPFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 777 | target_alias |
778 | host_alias | ||||
779 | build_alias | ||||
780 | LIBS | ||||
781 | ECHO_T | ||||
782 | ECHO_N | ||||
783 | ECHO_C | ||||
784 | DEFS | ||||
785 | mandir | ||||
786 | localedir | ||||
787 | libdir | ||||
788 | psdir | ||||
789 | pdfdir | ||||
790 | dvidir | ||||
791 | htmldir | ||||
792 | infodir | ||||
793 | docdir | ||||
794 | oldincludedir | ||||
795 | includedir | ||||
796 | localstatedir | ||||
797 | sharedstatedir | ||||
798 | sysconfdir | ||||
799 | datadir | ||||
800 | datarootdir | ||||
801 | libexecdir | ||||
802 | sbindir | ||||
803 | bindir | ||||
804 | program_transform_name | ||||
805 | prefix | ||||
806 | exec_prefix | ||||
807 | PACKAGE_URL | ||||
808 | PACKAGE_BUGREPORT | ||||
809 | PACKAGE_STRING | ||||
810 | PACKAGE_VERSION | ||||
811 | PACKAGE_TARNAME | ||||
812 | PACKAGE_NAME | ||||
813 | PATH_SEPARATOR | ||||
814 | SHELL' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 815 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 816 | ac_user_opts=' |
817 | enable_option_checking | ||||
818 | enable_universalsdk | ||||
819 | with_universal_archs | ||||
820 | with_framework_name | ||||
821 | enable_framework | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 822 | with_cxx_main |
823 | with_suffix | ||||
824 | enable_shared | ||||
825 | enable_profiling | ||||
826 | with_pydebug | ||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 827 | with_trace_refs |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 828 | with_assertions |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 829 | enable_optimizations |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 830 | with_lto |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 831 | with_hash_algorithm |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 832 | with_tzpath |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 833 | with_address_sanitizer |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 834 | with_memory_sanitizer |
835 | with_undefined_behavior_sanitizer | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 836 | with_libs |
837 | with_system_expat | ||||
838 | with_system_ffi | ||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 839 | with_system_libmpdec |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 840 | with_decimal_contextvar |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 841 | enable_loadable_sqlite_extensions |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 842 | with_tcltk_includes |
843 | with_tcltk_libs | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 844 | with_dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 845 | enable_ipv6 |
846 | with_doc_strings | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 847 | with_pymalloc |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 848 | with_c_locale_coercion |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 849 | with_valgrind |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 850 | with_dtrace |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 851 | with_libm |
852 | with_libc | ||||
853 | enable_big_digits | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 854 | with_platlibdir |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 855 | with_wheel_pkg_dir |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 856 | with_readline |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 857 | with_computed_gotos |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 858 | with_ensurepip |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 859 | with_openssl |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 860 | with_openssl_rpath |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 861 | with_ssl_default_suites |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 862 | with_builtin_hashlib_hashes |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 863 | with_experimental_isolated_subinterpreters |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 864 | with_static_libpython |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 865 | enable_test_modules |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 866 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 867 | ac_precious_vars='build_alias |
868 | host_alias | ||||
869 | target_alias | ||||
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 870 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 871 | CC |
872 | CFLAGS | ||||
873 | LDFLAGS | ||||
874 | LIBS | ||||
875 | CPPFLAGS | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 876 | CPP |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 877 | PROFILE_TASK |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 878 | PKG_CONFIG |
879 | PKG_CONFIG_PATH | ||||
880 | PKG_CONFIG_LIBDIR' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 881 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 882 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 883 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 884 | ac_init_help= |
885 | ac_init_version=false | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 886 | ac_unrecognized_opts= |
887 | ac_unrecognized_sep= | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 888 | # The variables have the same names as the options, with |
889 | # dashes changed to underlines. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 890 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 891 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 892 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 893 | no_recursion= |
894 | prefix=NONE | ||||
895 | program_prefix=NONE | ||||
896 | program_suffix=NONE | ||||
897 | program_transform_name=s,x,x, | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 898 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 899 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 900 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 901 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 902 | x_includes=NONE |
903 | x_libraries=NONE | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 904 | |
905 | # Installation directory options. | ||||
906 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||||
907 | # and all the variables that are supposed to be based on exec_prefix | ||||
908 | # by default will actually change. | ||||
909 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 910 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 911 | bindir='${exec_prefix}/bin' |
912 | sbindir='${exec_prefix}/sbin' | ||||
913 | libexecdir='${exec_prefix}/libexec' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 914 | datarootdir='${prefix}/share' |
915 | datadir='${datarootdir}' | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 916 | sysconfdir='${prefix}/etc' |
917 | sharedstatedir='${prefix}/com' | ||||
918 | localstatedir='${prefix}/var' | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 919 | includedir='${prefix}/include' |
920 | oldincludedir='/usr/include' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 921 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
922 | infodir='${datarootdir}/info' | ||||
923 | htmldir='${docdir}' | ||||
924 | dvidir='${docdir}' | ||||
925 | pdfdir='${docdir}' | ||||
926 | psdir='${docdir}' | ||||
927 | libdir='${exec_prefix}/lib' | ||||
928 | localedir='${datarootdir}/locale' | ||||
929 | mandir='${datarootdir}/man' | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 930 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 931 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 932 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 933 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 934 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 935 | # If the previous option needs an argument, assign it. |
936 | if test -n "$ac_prev"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 937 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 938 | ac_prev= |
939 | continue | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 940 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 941 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 942 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 943 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
944 | *=) ac_optarg= ;; | ||||
945 | *) ac_optarg=yes ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 946 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 947 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 948 | # Accept the important Cygnus configure options, so we can diagnose typos. |
949 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 950 | case $ac_dashdash$ac_option in |
951 | --) | ||||
952 | ac_dashdash=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 953 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 954 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
955 | ac_prev=bindir ;; | ||||
956 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 957 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 958 | |
959 | -build | --build | --buil | --bui | --bu) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 960 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 961 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 962 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 963 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 964 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
965 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||||
966 | ac_prev=cache_file ;; | ||||
967 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||||
968 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 969 | cache_file=$ac_optarg ;; |
970 | |||||
971 | --config-cache | -C) | ||||
972 | cache_file=config.cache ;; | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 973 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 974 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 975 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 976 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 977 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 978 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 979 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
980 | | --dataroo | --dataro | --datar) | ||||
981 | ac_prev=datarootdir ;; | ||||
982 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||||
983 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||||
984 | datarootdir=$ac_optarg ;; | ||||
985 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 986 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 987 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 988 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 989 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 990 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 991 | ac_useropt_orig=$ac_useropt |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 992 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 993 | case $ac_user_opts in |
994 | *" | ||||
995 | "enable_$ac_useropt" | ||||
996 | "*) ;; | ||||
997 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||||
998 | ac_unrecognized_sep=', ';; | ||||
999 | esac | ||||
1000 | eval enable_$ac_useropt=no ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1001 | |
1002 | -docdir | --docdir | --docdi | --doc | --do) | ||||
1003 | ac_prev=docdir ;; | ||||
1004 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||||
1005 | docdir=$ac_optarg ;; | ||||
1006 | |||||
1007 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||||
1008 | ac_prev=dvidir ;; | ||||
1009 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||||
1010 | dvidir=$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1011 | |
1012 | -enable-* | --enable-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1013 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1014 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1015 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1016 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1017 | ac_useropt_orig=$ac_useropt |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1018 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1019 | case $ac_user_opts in |
1020 | *" | ||||
1021 | "enable_$ac_useropt" | ||||
1022 | "*) ;; | ||||
1023 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||||
1024 | ac_unrecognized_sep=', ';; | ||||
1025 | esac | ||||
1026 | eval enable_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1027 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1028 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1029 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||||
1030 | | --exec | --exe | --ex) | ||||
1031 | ac_prev=exec_prefix ;; | ||||
1032 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||||
1033 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||||
1034 | | --exec=* | --exe=* | --ex=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1035 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1036 | |
1037 | -gas | --gas | --ga | --g) | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1038 | # Obsolete; use --with-gas. |
1039 | with_gas=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1041 | -help | --help | --hel | --he | -h) |
1042 | ac_init_help=long ;; | ||||
1043 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||||
1044 | ac_init_help=recursive ;; | ||||
1045 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||||
1046 | ac_init_help=short ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1047 | |
1048 | -host | --host | --hos | --ho) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1049 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1050 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1051 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1052 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1053 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1054 | ac_prev=htmldir ;; | ||||
1055 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||||
1056 | | --ht=*) | ||||
1057 | htmldir=$ac_optarg ;; | ||||
1058 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1059 | -includedir | --includedir | --includedi | --included | --include \ |
1060 | | --includ | --inclu | --incl | --inc) | ||||
1061 | ac_prev=includedir ;; | ||||
1062 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||||
1063 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1064 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1065 | |
1066 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||||
1067 | ac_prev=infodir ;; | ||||
1068 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1069 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1070 | |
1071 | -libdir | --libdir | --libdi | --libd) | ||||
1072 | ac_prev=libdir ;; | ||||
1073 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1074 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1075 | |
1076 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||||
1077 | | --libexe | --libex | --libe) | ||||
1078 | ac_prev=libexecdir ;; | ||||
1079 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||||
1080 | | --libexe=* | --libex=* | --libe=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1081 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1082 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1083 | -localedir | --localedir | --localedi | --localed | --locale) |
1084 | ac_prev=localedir ;; | ||||
1085 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||||
1086 | localedir=$ac_optarg ;; | ||||
1087 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1088 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1089 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1090 | ac_prev=localstatedir ;; |
1091 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1092 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1093 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1094 | |
1095 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||||
1096 | ac_prev=mandir ;; | ||||
1097 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1098 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1099 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1100 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1101 | # Obsolete; use --without-fp. |
1102 | with_fp=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1103 | |
1104 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1105 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1106 | no_create=yes ;; |
1107 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1108 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1109 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||||
1110 | no_recursion=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1111 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1112 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1113 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||||
1114 | | --oldin | --oldi | --old | --ol | --o) | ||||
1115 | ac_prev=oldincludedir ;; | ||||
1116 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||||
1117 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||||
1118 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1119 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1120 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1121 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1122 | ac_prev=prefix ;; | ||||
1123 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1124 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1125 | |
1126 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||||
1127 | | --program-pre | --program-pr | --program-p) | ||||
1128 | ac_prev=program_prefix ;; | ||||
1129 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||||
1130 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1131 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1132 | |
1133 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||||
1134 | | --program-suf | --program-su | --program-s) | ||||
1135 | ac_prev=program_suffix ;; | ||||
1136 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||||
1137 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1138 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1139 | |
1140 | -program-transform-name | --program-transform-name \ | ||||
1141 | | --program-transform-nam | --program-transform-na \ | ||||
1142 | | --program-transform-n | --program-transform- \ | ||||
1143 | | --program-transform | --program-transfor \ | ||||
1144 | | --program-transfo | --program-transf \ | ||||
1145 | | --program-trans | --program-tran \ | ||||
1146 | | --progr-tra | --program-tr | --program-t) | ||||
1147 | ac_prev=program_transform_name ;; | ||||
1148 | -program-transform-name=* | --program-transform-name=* \ | ||||
1149 | | --program-transform-nam=* | --program-transform-na=* \ | ||||
1150 | | --program-transform-n=* | --program-transform-=* \ | ||||
1151 | | --program-transform=* | --program-transfor=* \ | ||||
1152 | | --program-transfo=* | --program-transf=* \ | ||||
1153 | | --program-trans=* | --program-tran=* \ | ||||
1154 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1155 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1156 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1157 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1158 | ac_prev=pdfdir ;; | ||||
1159 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||||
1160 | pdfdir=$ac_optarg ;; | ||||
1161 | |||||
1162 | -psdir | --psdir | --psdi | --psd | --ps) | ||||
1163 | ac_prev=psdir ;; | ||||
1164 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||||
1165 | psdir=$ac_optarg ;; | ||||
1166 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1167 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1168 | | -silent | --silent | --silen | --sile | --sil) | ||||
1169 | silent=yes ;; | ||||
1170 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1171 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1172 | ac_prev=sbindir ;; | ||||
1173 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||||
1174 | | --sbi=* | --sb=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1175 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1176 | |
1177 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||||
1178 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||||
1179 | | --sharedst | --shareds | --shared | --share | --shar \ | ||||
1180 | | --sha | --sh) | ||||
1181 | ac_prev=sharedstatedir ;; | ||||
1182 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||||
1183 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||||
1184 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||||
1185 | | --sha=* | --sh=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1186 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1187 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1188 | -site | --site | --sit) |
1189 | ac_prev=site ;; | ||||
1190 | -site=* | --site=* | --sit=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1191 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1192 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1193 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1194 | ac_prev=srcdir ;; | ||||
1195 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1196 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1197 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1198 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1199 | | --syscon | --sysco | --sysc | --sys | --sy) | ||||
1200 | ac_prev=sysconfdir ;; | ||||
1201 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||||
1202 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1203 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1204 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1205 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1206 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1207 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1208 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1209 | |
1210 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||||
1211 | verbose=yes ;; | ||||
1212 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1213 | -version | --version | --versio | --versi | --vers | -V) |
1214 | ac_init_version=: ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1215 | |
1216 | -with-* | --with-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1217 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1218 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1219 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1220 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1221 | ac_useropt_orig=$ac_useropt |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1222 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1223 | case $ac_user_opts in |
1224 | *" | ||||
1225 | "with_$ac_useropt" | ||||
1226 | "*) ;; | ||||
1227 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||||
1228 | ac_unrecognized_sep=', ';; | ||||
1229 | esac | ||||
1230 | eval with_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1231 | |
1232 | -without-* | --without-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1233 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1234 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1235 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1236 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1237 | ac_useropt_orig=$ac_useropt |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1238 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1239 | case $ac_user_opts in |
1240 | *" | ||||
1241 | "with_$ac_useropt" | ||||
1242 | "*) ;; | ||||
1243 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||||
1244 | ac_unrecognized_sep=', ';; | ||||
1245 | esac | ||||
1246 | eval with_$ac_useropt=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1247 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1248 | --x) |
1249 | # Obsolete; use --with-x. | ||||
1250 | with_x=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1251 | |
1252 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||||
1253 | | --x-incl | --x-inc | --x-in | --x-i) | ||||
1254 | ac_prev=x_includes ;; | ||||
1255 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||||
1256 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1257 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1258 | |
1259 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||||
1260 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||||
1261 | ac_prev=x_libraries ;; | ||||
1262 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||||
1263 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1264 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1265 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1266 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1267 | Try \`$0 --help' for more information" | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1268 | ;; |
1269 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1270 | *=*) |
1271 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||||
1272 | # Reject names that are not valid shell variable names. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1273 | case $ac_envvar in #( |
1274 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1275 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1276 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1277 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1278 | export $ac_envvar ;; |
1279 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1280 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1281 | # FIXME: should be removed in autoconf 3.0. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1282 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1283 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1284 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1285 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1286 | ;; |
1287 | |||||
1288 | esac | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1289 | done |
1290 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1291 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1292 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1293 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1294 | fi |
1295 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1296 | if test -n "$ac_unrecognized_opts"; then |
1297 | case $enable_option_checking in | ||||
1298 | no) ;; | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1299 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1300 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1301 | esac |
1302 | fi | ||||
1303 | |||||
1304 | # Check all directory arguments for consistency. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1305 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1306 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||||
1307 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1308 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1309 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1310 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1311 | # Remove trailing slashes. |
1312 | case $ac_val in | ||||
1313 | */ ) | ||||
1314 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||||
1315 | eval $ac_var=\$ac_val;; | ||||
1316 | esac | ||||
1317 | # Be sure to have absolute directory names. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1318 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1319 | [\\/$]* | ?:[\\/]* ) continue;; |
1320 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1321 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1322 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1323 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1325 | # There might be people who depend on the old broken behavior: `$host' |
1326 | # used to hold the argument of --host etc. | ||||
1327 | # FIXME: To remove some day. | ||||
1328 | build=$build_alias | ||||
1329 | host=$host_alias | ||||
1330 | target=$target_alias | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1332 | # FIXME: To remove some day. |
1333 | if test "x$host_alias" != x; then | ||||
1334 | if test "x$build_alias" = x; then | ||||
1335 | cross_compiling=maybe | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1336 | elif test "x$build_alias" != "x$host_alias"; then |
1337 | cross_compiling=yes | ||||
1338 | fi | ||||
1339 | fi | ||||
1340 | |||||
1341 | ac_tool_prefix= | ||||
1342 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||||
1343 | |||||
1344 | test "$silent" = yes && exec 6>/dev/null | ||||
1345 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1346 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1347 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1348 | ac_ls_di=`ls -di .` && | ||||
1349 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1350 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1351 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1352 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1353 | |
1354 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1355 | # Find the source files, if location was not specified. |
1356 | if test -z "$srcdir"; then | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1357 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1358 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1359 | ac_confdir=`$as_dirname -- "$as_myself" || |
1360 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
1361 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||||
1362 | X"$as_myself" : 'X\(//\)$' \| \ | ||||
1363 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1364 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1365 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1366 | s//\1/ | ||||
1367 | q | ||||
1368 | } | ||||
1369 | /^X\(\/\/\)[^/].*/{ | ||||
1370 | s//\1/ | ||||
1371 | q | ||||
1372 | } | ||||
1373 | /^X\(\/\/\)$/{ | ||||
1374 | s//\1/ | ||||
1375 | q | ||||
1376 | } | ||||
1377 | /^X\(\/\).*/{ | ||||
1378 | s//\1/ | ||||
1379 | q | ||||
1380 | } | ||||
1381 | s/.*/./; q'` | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1382 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1383 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1384 | srcdir=.. |
1385 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1386 | else |
1387 | ac_srcdir_defaulted=no | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1388 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1389 | if test ! -r "$srcdir/$ac_unique_file"; then |
1390 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1391 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1392 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1393 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1394 | ac_abs_confdir=`( | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1395 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1396 | pwd)` |
1397 | # When building in place, set srcdir=. | ||||
1398 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||||
1399 | srcdir=. | ||||
1400 | fi | ||||
1401 | # Remove unnecessary trailing slashes from srcdir. | ||||
1402 | # Double slashes in file names in object file debugging info | ||||
1403 | # mess up M-x gdb in Emacs. | ||||
1404 | case $srcdir in | ||||
1405 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||||
1406 | esac | ||||
1407 | for ac_var in $ac_precious_vars; do | ||||
1408 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||||
1409 | eval ac_env_${ac_var}_value=\$${ac_var} | ||||
1410 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||||
1411 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||||
1412 | done | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1414 | # |
1415 | # Report the --help message. | ||||
1416 | # | ||||
1417 | if test "$ac_init_help" = "long"; then | ||||
1418 | # Omit some internal or obsolete options to make the list less imposing. | ||||
1419 | # This message is too long to be a string in the A/UX 3.1 sh. | ||||
1420 | cat <<_ACEOF | ||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1421 | \`configure' configures python 3.10 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1422 | |
1423 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||||
1424 | |||||
1425 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||||
1426 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||||
1427 | |||||
1428 | Defaults for the options are specified in brackets. | ||||
1429 | |||||
1430 | Configuration: | ||||
1431 | -h, --help display this help and exit | ||||
1432 | --help=short display options specific to this package | ||||
1433 | --help=recursive display the short help of all the included packages | ||||
1434 | -V, --version display version information and exit | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1435 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1436 | --cache-file=FILE cache test results in FILE [disabled] |
1437 | -C, --config-cache alias for \`--cache-file=config.cache' | ||||
1438 | -n, --no-create do not create output files | ||||
1439 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||||
1440 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1441 | Installation directories: |
1442 | --prefix=PREFIX install architecture-independent files in PREFIX | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1443 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1445 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | |
1447 | By default, \`make install' will install all the files in | ||||
1448 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||||
1449 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||||
1450 | for instance \`--prefix=\$HOME'. | ||||
1451 | |||||
1452 | For better control, use the options below. | ||||
1453 | |||||
1454 | Fine tuning of the installation directories: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1455 | --bindir=DIR user executables [EPREFIX/bin] |
1456 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||||
1457 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||||
1458 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||||
1459 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||||
1460 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||||
1461 | --libdir=DIR object code libraries [EPREFIX/lib] | ||||
1462 | --includedir=DIR C header files [PREFIX/include] | ||||
1463 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||||
1464 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||||
1465 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||||
1466 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||||
1467 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||||
1468 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||||
1469 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] | ||||
1470 | --htmldir=DIR html documentation [DOCDIR] | ||||
1471 | --dvidir=DIR dvi documentation [DOCDIR] | ||||
1472 | --pdfdir=DIR pdf documentation [DOCDIR] | ||||
1473 | --psdir=DIR ps documentation [DOCDIR] | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1474 | _ACEOF |
1475 | |||||
1476 | cat <<\_ACEOF | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1477 | |
1478 | System types: | ||||
1479 | --build=BUILD configure for building on BUILD [guessed] | ||||
1480 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1481 | _ACEOF |
1482 | fi | ||||
1483 | |||||
1484 | if test -n "$ac_init_help"; then | ||||
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1485 | case $ac_init_help in |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1486 | short | recursive ) echo "Configuration of python 3.10:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1487 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1488 | cat <<\_ACEOF |
1489 | |||||
1490 | Optional Features: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1491 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1492 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1493 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||||
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1494 | --enable-universalsdk[=SDKDIR] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1495 | create a universal binary build. SDKDIR specifies |
1496 | which macOS SDK should be used to perform the build, | ||||
1497 | see Mac/README.rst. (default is no) | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1498 | --enable-framework[=INSTALLDIR] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1499 | create a Python.framework rather than a traditional |
1500 | Unix install. optional INSTALLDIR specifies the | ||||
1501 | installation path. see Mac/README.rst (default is | ||||
1502 | no) | ||||
1503 | --enable-shared enable building a shared Python library (default is | ||||
1504 | no) | ||||
1505 | --enable-profiling enable C-level code profiling with gprof (default is | ||||
1506 | no) | ||||
1507 | --enable-optimizations enable expensive, stable optimizations (PGO, etc.) | ||||
1508 | (default is no) | ||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1509 | --enable-loadable-sqlite-extensions |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1510 | support loadable extensions in _sqlite module, see |
1511 | Doc/library/sqlite3.rst (default is no) | ||||
1512 | --enable-ipv6 enable ipv6 (with ipv4) support, see | ||||
1513 | Doc/library/socket.rst (default is yes if supported) | ||||
1514 | --enable-big-digits[=15|30] | ||||
1515 | use big digits (30 or 15 bits) for Python longs | ||||
1516 | (default is system-dependent)] | ||||
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 1517 | --disable-test-modules don't build nor install test modules |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1518 | |
1519 | Optional Packages: | ||||
1520 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||||
1521 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1522 | --with-universal-archs=ARCH |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 1523 | specify the kind of macOS universal binary that |
1524 | should be created. This option is only valid when | ||||
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1525 | --enable-universalsdk is set; options are: |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 1526 | ("universal2", "intel-64", "intel-32", "intel", |
1527 | "32-bit", "64-bit", "3-way", or "all") see | ||||
1528 | Mac/README.rst | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1529 | --with-framework-name=FRAMEWORK |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1530 | specify the name for the python framework on macOS |
1531 | only valid when --enable-framework is set. see | ||||
1532 | Mac/README.rst (default is 'Python') | ||||
1533 | --with-cxx-main[=COMPILER] | ||||
1534 | compile main() and link Python executable with C++ | ||||
1535 | compiler specified in COMPILER (default is $CXX) | ||||
1536 | --with-suffix=SUFFIX set executable suffix to SUFFIX (default is '.exe') | ||||
1537 | --with-pydebug build with Py_DEBUG defined (default is no) | ||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 1538 | --with-trace-refs enable tracing references for debugging purpose |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1539 | (default is no) |
1540 | --with-assertions build with C assertions enabled (default is no) | ||||
1541 | --with-lto enable Link-Time-Optimization in any build (default | ||||
1542 | is no) | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1543 | --with-hash-algorithm=[fnv|siphash24] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1544 | select hash algorithm for use in Python/pyhash.c |
1545 | (default is SipHash24) | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 1546 | --with-tzpath=<list of absolute paths separated by pathsep> |
1547 | Select the default time zone search path for zoneinfo.TZPATH | ||||
1548 | |||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1549 | --with-address-sanitizer |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1550 | enable AddressSanitizer memory error detector, |
1551 | 'asan' (default is no) | ||||
1552 | --with-memory-sanitizer enable MemorySanitizer allocation error detector, | ||||
1553 | 'msan' (default is no) | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 1554 | --with-undefined-behavior-sanitizer |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1555 | enable UndefinedBehaviorSanitizer undefined |
1556 | behaviour detector, 'ubsan' (default is no) | ||||
1557 | --with-libs='lib1 ...' link against additional libs (default is no) | ||||
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1558 | --with-system-expat build pyexpat module using an installed expat |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1559 | library, see Doc/library/pyexpat.rst (default is no) |
1560 | --with-system-ffi build _ctypes module using an installed ffi library, | ||||
1561 | see Doc/library/ctypes.rst (default is | ||||
1562 | system-dependent) | ||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1563 | --with-system-libmpdec build _decimal module using an installed libmpdec |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1564 | library, see Doc/library/decimal.rst (default is no) |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 1565 | --with-decimal-contextvar |
1566 | build _decimal module using a coroutine-local rather | ||||
1567 | than a thread-local context (default is yes) | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1568 | --with-tcltk-includes='-I...' |
1569 | override search for Tcl and Tk include files | ||||
1570 | --with-tcltk-libs='-L...' | ||||
1571 | override search for Tcl and Tk libs | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1572 | --with-dbmliborder=db1:db2:... |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1573 | override order to check db backends for dbm; a valid |
1574 | value is a colon separated string with the backend | ||||
1575 | names `ndbm', `gdbm' and `bdb'. | ||||
1576 | --with-doc-strings enable documentation strings (default is yes) | ||||
1577 | --with-pymalloc enable specialized mallocs (default is yes) | ||||
1578 | --with-c-locale-coercion | ||||
1579 | enable C locale coercion to a UTF-8 based locale | ||||
1580 | (default is yes) | ||||
1581 | --with-valgrind enable Valgrind support (default is no) | ||||
1582 | --with-dtrace enable DTrace support (default is no) | ||||
1583 | --with-libm=STRING override libm math library to STRING (default is | ||||
1584 | system-dependent) | ||||
1585 | --with-libc=STRING override libc C library to STRING (default is | ||||
1586 | system-dependent) | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 1587 | --with-platlibdir=DIRNAME |
1588 | Python library directory name (default is "lib") | ||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 1589 | --with-wheel-pkg-dir=PATH |
1590 | Directory of wheel packages used by ensurepip | ||||
1591 | (default: none) | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 1592 | --with(out)-readline[=editline] |
1593 | use Editline for backend or disable readline module | ||||
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1594 | --with-computed-gotos enable computed gotos in evaluation loop (enabled by |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1595 | default on supported compilers) |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1596 | --with-ensurepip[=install|upgrade|no] |
1597 | "install" or "upgrade" using bundled pip (default is | ||||
1598 | upgrade) | ||||
Christian Heimes | 5d6e8c1 | 2021-03-27 14:44:04 +0100 | [diff] [blame] | 1599 | --with-openssl=DIR root of the OpenSSL directory |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1600 | --with-openssl-rpath=[DIR|auto|no] |
1601 | Set runtime library directory (rpath) for OpenSSL | ||||
1602 | libraries, no (default): don't set rpath, auto: | ||||
1603 | auto-detect rpath from --with-openssl and | ||||
1604 | pkg-config, DIR: set an explicit rpath | ||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 1605 | --with-ssl-default-suites=[python|openssl|STRING] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1606 | override default cipher suites string, python: use |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 1607 | Python's preferred selection (default), openssl: |
1608 | leave OpenSSL's defaults untouched, STRING: use a | ||||
Christian Heimes | e983252 | 2021-05-01 20:53:10 +0200 | [diff] [blame] | 1609 | custom string, python and STRING also set TLS 1.2 as |
1610 | minimum TLS version | ||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 1611 | --with-builtin-hashlib-hashes=md5,sha1,sha256,sha512,sha3,blake2 |
1612 | builtin hash modules, md5, sha1, sha256, sha512, | ||||
1613 | sha3 (with shake), blake2 | ||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 1614 | --with-experimental-isolated-subinterpreters |
1615 | better isolate subinterpreters, experimental build | ||||
1616 | mode (default is no) | ||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 1617 | --without-static-libpython |
1618 | do not build libpythonMAJOR.MINOR.a and do not | ||||
1619 | install python.o (default is yes) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1620 | |
1621 | Some influential environment variables: | ||||
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1622 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1623 | CC C compiler command |
1624 | CFLAGS C compiler flags | ||||
1625 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||||
1626 | nonstandard directory <lib dir> | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1627 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1628 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1629 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1630 | CPP C preprocessor |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 1631 | PROFILE_TASK |
1632 | Python args for PGO generation task | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 1633 | PKG_CONFIG path to pkg-config utility |
1634 | PKG_CONFIG_PATH | ||||
1635 | directories to add to pkg-config's search path | ||||
1636 | PKG_CONFIG_LIBDIR | ||||
1637 | path overriding pkg-config's built-in search path | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1638 | |
1639 | Use these variables to override the choices made by `configure' or to help | ||||
1640 | it to find libraries and programs with nonstandard names/locations. | ||||
1641 | |||||
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1642 | Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1644 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1645 | fi |
1646 | |||||
1647 | if test "$ac_init_help" = "recursive"; then | ||||
1648 | # If there are subdirs, report their specific --help. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1649 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1650 | test -d "$ac_dir" || |
1651 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||||
1652 | continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1653 | ac_builddir=. |
1654 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1655 | case "$ac_dir" in |
1656 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1657 | *) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1658 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1659 | # A ".." for each directory in $ac_dir_suffix. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1660 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1661 | case $ac_top_builddir_sub in |
1662 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1663 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
1664 | esac ;; | ||||
1665 | esac | ||||
1666 | ac_abs_top_builddir=$ac_pwd | ||||
1667 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
1668 | # for backward compatibility: | ||||
1669 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1670 | |
1671 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1672 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1673 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1674 | ac_top_srcdir=$ac_top_builddir_sub |
1675 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
1676 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1677 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1678 | ac_top_srcdir=$srcdir |
1679 | ac_abs_top_srcdir=$srcdir ;; | ||||
1680 | *) # Relative name. | ||||
1681 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
1682 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
1683 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1684 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1685 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1686 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1687 | cd "$ac_dir" || { ac_status=$?; continue; } |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1688 | # Check for guested configure. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1689 | if test -f "$ac_srcdir/configure.gnu"; then |
1690 | echo && | ||||
1691 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||||
1692 | elif test -f "$ac_srcdir/configure"; then | ||||
1693 | echo && | ||||
1694 | $SHELL "$ac_srcdir/configure" --help=recursive | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1695 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1696 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1697 | fi || ac_status=$? |
1698 | cd "$ac_pwd" || { ac_status=$?; break; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1699 | done |
1700 | fi | ||||
1701 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1702 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1703 | if $ac_init_version; then |
1704 | cat <<\_ACEOF | ||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1705 | python configure 3.10 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1706 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1707 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1708 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | This configure script is free software; the Free Software Foundation |
1710 | gives unlimited permission to copy, distribute and modify it. | ||||
1711 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1712 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1713 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1714 | |
1715 | ## ------------------------ ## | ||||
1716 | ## Autoconf initialization. ## | ||||
1717 | ## ------------------------ ## | ||||
1718 | |||||
1719 | # ac_fn_c_try_compile LINENO | ||||
1720 | # -------------------------- | ||||
1721 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||||
1722 | ac_fn_c_try_compile () | ||||
1723 | { | ||||
1724 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1725 | rm -f conftest.$ac_objext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1726 | if { { ac_try="$ac_compile" |
1727 | case "(($ac_try" in | ||||
1728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1729 | *) ac_try_echo=$ac_try;; | ||||
1730 | esac | ||||
1731 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1732 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1733 | (eval "$ac_compile") 2>conftest.err |
1734 | ac_status=$? | ||||
1735 | if test -s conftest.err; then | ||||
1736 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1737 | cat conftest.er1 >&5 | ||||
1738 | mv -f conftest.er1 conftest.err | ||||
1739 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1740 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1741 | test $ac_status = 0; } && { |
1742 | test -z "$ac_c_werror_flag" || | ||||
1743 | test ! -s conftest.err | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1744 | } && test -s conftest.$ac_objext; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1745 | ac_retval=0 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1746 | else |
1747 | $as_echo "$as_me: failed program was:" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1748 | sed 's/^/| /' conftest.$ac_ext >&5 |
1749 | |||||
1750 | ac_retval=1 | ||||
1751 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1752 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1753 | as_fn_set_status $ac_retval |
1754 | |||||
1755 | } # ac_fn_c_try_compile | ||||
1756 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1757 | # ac_fn_c_try_cpp LINENO |
1758 | # ---------------------- | ||||
1759 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||||
1760 | ac_fn_c_try_cpp () | ||||
1761 | { | ||||
1762 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1763 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||||
1764 | case "(($ac_try" in | ||||
1765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1766 | *) ac_try_echo=$ac_try;; | ||||
1767 | esac | ||||
1768 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1769 | $as_echo "$ac_try_echo"; } >&5 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1770 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1771 | ac_status=$? | ||||
1772 | if test -s conftest.err; then | ||||
1773 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1774 | cat conftest.er1 >&5 | ||||
1775 | mv -f conftest.er1 conftest.err | ||||
1776 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1777 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1778 | test $ac_status = 0; } > conftest.i && { |
1779 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||||
1780 | test ! -s conftest.err | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1781 | }; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1782 | ac_retval=0 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1783 | else |
1784 | $as_echo "$as_me: failed program was:" >&5 | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1785 | sed 's/^/| /' conftest.$ac_ext >&5 |
1786 | |||||
1787 | ac_retval=1 | ||||
1788 | fi | ||||
1789 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
1790 | as_fn_set_status $ac_retval | ||||
1791 | |||||
1792 | } # ac_fn_c_try_cpp | ||||
1793 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1794 | # ac_fn_c_try_link LINENO |
1795 | # ----------------------- | ||||
1796 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||||
1797 | ac_fn_c_try_link () | ||||
1798 | { | ||||
1799 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1800 | rm -f conftest.$ac_objext conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1801 | if { { ac_try="$ac_link" |
1802 | case "(($ac_try" in | ||||
1803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1804 | *) ac_try_echo=$ac_try;; | ||||
1805 | esac | ||||
1806 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1807 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1808 | (eval "$ac_link") 2>conftest.err |
1809 | ac_status=$? | ||||
1810 | if test -s conftest.err; then | ||||
1811 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1812 | cat conftest.er1 >&5 | ||||
1813 | mv -f conftest.er1 conftest.err | ||||
1814 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1815 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1816 | test $ac_status = 0; } && { |
1817 | test -z "$ac_c_werror_flag" || | ||||
1818 | test ! -s conftest.err | ||||
1819 | } && test -s conftest$ac_exeext && { | ||||
1820 | test "$cross_compiling" = yes || | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1821 | test -x conftest$ac_exeext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1822 | }; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1823 | ac_retval=0 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1824 | else |
1825 | $as_echo "$as_me: failed program was:" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1826 | sed 's/^/| /' conftest.$ac_ext >&5 |
1827 | |||||
1828 | ac_retval=1 | ||||
1829 | fi | ||||
1830 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||||
1831 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||||
1832 | # interfere with the next link command; also delete a directory that is | ||||
1833 | # left behind by Apple's compiler. We do this before executing the actions. | ||||
1834 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1835 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1836 | as_fn_set_status $ac_retval |
1837 | |||||
1838 | } # ac_fn_c_try_link | ||||
1839 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1840 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1841 | # ------------------------------------------------------- |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1842 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1843 | # the include files in INCLUDES and setting the cache variable VAR | ||||
1844 | # accordingly. | ||||
1845 | ac_fn_c_check_header_mongrel () | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1846 | { |
1847 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1848 | if eval \${$3+:} false; then : |
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1850 | $as_echo_n "checking for $2... " >&6; } | ||||
1851 | if eval \${$3+:} false; then : | ||||
1852 | $as_echo_n "(cached) " >&6 | ||||
1853 | fi | ||||
1854 | eval ac_res=\$$3 | ||||
1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1856 | $as_echo "$ac_res" >&6; } | ||||
1857 | else | ||||
1858 | # Is the header compilable? | ||||
1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||||
1860 | $as_echo_n "checking $2 usability... " >&6; } | ||||
1861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1862 | /* end confdefs.h. */ |
1863 | $4 | ||||
1864 | #include <$2> | ||||
1865 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1866 | if ac_fn_c_try_compile "$LINENO"; then : |
1867 | ac_header_compiler=yes | ||||
1868 | else | ||||
1869 | ac_header_compiler=no | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1870 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||||
1873 | $as_echo "$ac_header_compiler" >&6; } | ||||
1874 | |||||
1875 | # Is the header present? | ||||
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||||
1877 | $as_echo_n "checking $2 presence... " >&6; } | ||||
1878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1879 | /* end confdefs.h. */ | ||||
1880 | #include <$2> | ||||
1881 | _ACEOF | ||||
1882 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
1883 | ac_header_preproc=yes | ||||
1884 | else | ||||
1885 | ac_header_preproc=no | ||||
1886 | fi | ||||
1887 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
1888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||||
1889 | $as_echo "$ac_header_preproc" >&6; } | ||||
1890 | |||||
1891 | # So? What about this header? | ||||
1892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||||
1893 | yes:no: ) | ||||
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||||
1895 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||||
1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1897 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
1898 | ;; | ||||
1899 | no:yes:* ) | ||||
1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||||
1901 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||||
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||||
1903 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||||
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||||
1905 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||||
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||||
1907 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||||
1908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1909 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
1910 | ( $as_echo "## --------------------------------------- ## | ||||
1911 | ## Report this to https://bugs.python.org/ ## | ||||
1912 | ## --------------------------------------- ##" | ||||
1913 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||||
1914 | ;; | ||||
1915 | esac | ||||
1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1917 | $as_echo_n "checking for $2... " >&6; } | ||||
1918 | if eval \${$3+:} false; then : | ||||
1919 | $as_echo_n "(cached) " >&6 | ||||
1920 | else | ||||
1921 | eval "$3=\$ac_header_compiler" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1922 | fi |
1923 | eval ac_res=\$$3 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1925 | $as_echo "$ac_res" >&6; } | ||||
1926 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1927 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1928 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1929 | } # ac_fn_c_check_header_mongrel |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1930 | |
1931 | # ac_fn_c_try_run LINENO | ||||
1932 | # ---------------------- | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1933 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1934 | # that executables *can* be run. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1935 | ac_fn_c_try_run () |
1936 | { | ||||
1937 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1938 | if { { ac_try="$ac_link" | ||||
1939 | case "(($ac_try" in | ||||
1940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1941 | *) ac_try_echo=$ac_try;; | ||||
1942 | esac | ||||
1943 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1944 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1945 | (eval "$ac_link") 2>&5 |
1946 | ac_status=$? | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1947 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1948 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1949 | { { case "(($ac_try" in | ||||
1950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1951 | *) ac_try_echo=$ac_try;; | ||||
1952 | esac | ||||
1953 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1954 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1955 | (eval "$ac_try") 2>&5 |
1956 | ac_status=$? | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1958 | test $ac_status = 0; }; }; then : | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1959 | ac_retval=0 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1960 | else |
1961 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||||
1962 | $as_echo "$as_me: failed program was:" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1963 | sed 's/^/| /' conftest.$ac_ext >&5 |
1964 | |||||
1965 | ac_retval=$ac_status | ||||
1966 | fi | ||||
1967 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1968 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1969 | as_fn_set_status $ac_retval |
1970 | |||||
1971 | } # ac_fn_c_try_run | ||||
1972 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 1973 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1974 | # ------------------------------------------------------- | ||||
1975 | # Tests whether HEADER exists and can be compiled using the include files in | ||||
1976 | # INCLUDES, setting the cache variable VAR accordingly. | ||||
1977 | ac_fn_c_check_header_compile () | ||||
1978 | { | ||||
1979 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1981 | $as_echo_n "checking for $2... " >&6; } | ||||
1982 | if eval \${$3+:} false; then : | ||||
1983 | $as_echo_n "(cached) " >&6 | ||||
1984 | else | ||||
1985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1986 | /* end confdefs.h. */ | ||||
1987 | $4 | ||||
1988 | #include <$2> | ||||
1989 | _ACEOF | ||||
1990 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1991 | eval "$3=yes" | ||||
1992 | else | ||||
1993 | eval "$3=no" | ||||
1994 | fi | ||||
1995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1996 | fi | ||||
1997 | eval ac_res=\$$3 | ||||
1998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1999 | $as_echo "$ac_res" >&6; } | ||||
2000 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
2001 | |||||
2002 | } # ac_fn_c_check_header_compile | ||||
2003 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2004 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2005 | # ------------------------------------------- | ||||
2006 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||||
2007 | # variable VAR accordingly. | ||||
2008 | ac_fn_c_check_type () | ||||
2009 | { | ||||
2010 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2012 | $as_echo_n "checking for $2... " >&6; } | ||||
2013 | if eval \${$3+:} false; then : | ||||
2014 | $as_echo_n "(cached) " >&6 | ||||
2015 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2016 | eval "$3=no" |
2017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2018 | /* end confdefs.h. */ | ||||
2019 | $4 | ||||
2020 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2021 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2022 | { |
2023 | if (sizeof ($2)) | ||||
2024 | return 0; | ||||
2025 | ; | ||||
2026 | return 0; | ||||
2027 | } | ||||
2028 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2029 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2031 | /* end confdefs.h. */ | ||||
2032 | $4 | ||||
2033 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2034 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2035 | { |
2036 | if (sizeof (($2))) | ||||
2037 | return 0; | ||||
2038 | ; | ||||
2039 | return 0; | ||||
2040 | } | ||||
2041 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2042 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2043 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2044 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2045 | eval "$3=yes" |
2046 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2048 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2050 | fi |
2051 | eval ac_res=\$$3 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2053 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2054 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2055 | |
2056 | } # ac_fn_c_check_type | ||||
2057 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2058 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2059 | # -------------------------------------------- | ||||
2060 | # Tries to find the compile-time value of EXPR in a program that includes | ||||
2061 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||||
2062 | # computed | ||||
2063 | ac_fn_c_compute_int () | ||||
2064 | { | ||||
2065 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2066 | if test "$cross_compiling" = yes; then | ||||
2067 | # Depending upon the size, compute the lo and hi bounds. | ||||
2068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2069 | /* end confdefs.h. */ | ||||
2070 | $4 | ||||
2071 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2072 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2073 | { |
2074 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2075 | test_array [0] = 0; |
2076 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2077 | |
2078 | ; | ||||
2079 | return 0; | ||||
2080 | } | ||||
2081 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2082 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2083 | ac_lo=0 ac_mid=0 |
2084 | while :; do | ||||
2085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2086 | /* end confdefs.h. */ | ||||
2087 | $4 | ||||
2088 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2089 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2090 | { |
2091 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2092 | test_array [0] = 0; |
2093 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2094 | |
2095 | ; | ||||
2096 | return 0; | ||||
2097 | } | ||||
2098 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2099 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2100 | ac_hi=$ac_mid; break |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2101 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2102 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2103 | if test $ac_lo -le $ac_mid; then | ||||
2104 | ac_lo= ac_hi= | ||||
2105 | break | ||||
2106 | fi | ||||
2107 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||||
2108 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2110 | done |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2111 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2113 | /* end confdefs.h. */ | ||||
2114 | $4 | ||||
2115 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2116 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2117 | { |
2118 | static int test_array [1 - 2 * !(($2) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2119 | test_array [0] = 0; |
2120 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2121 | |
2122 | ; | ||||
2123 | return 0; | ||||
2124 | } | ||||
2125 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2126 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2127 | ac_hi=-1 ac_mid=-1 |
2128 | while :; do | ||||
2129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2130 | /* end confdefs.h. */ | ||||
2131 | $4 | ||||
2132 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2133 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2134 | { |
2135 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2136 | test_array [0] = 0; |
2137 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2138 | |
2139 | ; | ||||
2140 | return 0; | ||||
2141 | } | ||||
2142 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2143 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2144 | ac_lo=$ac_mid; break |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2145 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2146 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2147 | if test $ac_mid -le $ac_hi; then | ||||
2148 | ac_lo= ac_hi= | ||||
2149 | break | ||||
2150 | fi | ||||
2151 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||||
2152 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2154 | done |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2155 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2156 | ac_lo= ac_hi= |
2157 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2159 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2161 | # Binary search between lo and hi bounds. |
2162 | while test "x$ac_lo" != "x$ac_hi"; do | ||||
2163 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||||
2164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2165 | /* end confdefs.h. */ | ||||
2166 | $4 | ||||
2167 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2168 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2169 | { |
2170 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2171 | test_array [0] = 0; |
2172 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2173 | |
2174 | ; | ||||
2175 | return 0; | ||||
2176 | } | ||||
2177 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2178 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2179 | ac_hi=$ac_mid |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2180 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2181 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
2182 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2184 | done |
2185 | case $ac_lo in #(( | ||||
2186 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||||
2187 | '') ac_retval=1 ;; | ||||
2188 | esac | ||||
2189 | else | ||||
2190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2191 | /* end confdefs.h. */ | ||||
2192 | $4 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2193 | static long int longval () { return $2; } |
2194 | static unsigned long int ulongval () { return $2; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2195 | #include <stdio.h> |
2196 | #include <stdlib.h> | ||||
2197 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2198 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2199 | { |
2200 | |||||
2201 | FILE *f = fopen ("conftest.val", "w"); | ||||
2202 | if (! f) | ||||
2203 | return 1; | ||||
2204 | if (($2) < 0) | ||||
2205 | { | ||||
2206 | long int i = longval (); | ||||
2207 | if (i != ($2)) | ||||
2208 | return 1; | ||||
2209 | fprintf (f, "%ld", i); | ||||
2210 | } | ||||
2211 | else | ||||
2212 | { | ||||
2213 | unsigned long int i = ulongval (); | ||||
2214 | if (i != ($2)) | ||||
2215 | return 1; | ||||
2216 | fprintf (f, "%lu", i); | ||||
2217 | } | ||||
2218 | /* Do not output a trailing newline, as this causes \r\n confusion | ||||
2219 | on some platforms. */ | ||||
2220 | return ferror (f) || fclose (f) != 0; | ||||
2221 | |||||
2222 | ; | ||||
2223 | return 0; | ||||
2224 | } | ||||
2225 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2226 | if ac_fn_c_try_run "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2227 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2228 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2229 | ac_retval=1 |
2230 | fi | ||||
2231 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
2232 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
2233 | rm -f conftest.val | ||||
2234 | |||||
2235 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2236 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2237 | as_fn_set_status $ac_retval |
2238 | |||||
2239 | } # ac_fn_c_compute_int | ||||
2240 | |||||
2241 | # ac_fn_c_check_func LINENO FUNC VAR | ||||
2242 | # ---------------------------------- | ||||
2243 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||||
2244 | ac_fn_c_check_func () | ||||
2245 | { | ||||
2246 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2248 | $as_echo_n "checking for $2... " >&6; } | ||||
2249 | if eval \${$3+:} false; then : | ||||
2250 | $as_echo_n "(cached) " >&6 | ||||
2251 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2253 | /* end confdefs.h. */ | ||||
2254 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||||
2255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||||
2256 | #define $2 innocuous_$2 | ||||
2257 | |||||
2258 | /* System header to define __stub macros and hopefully few prototypes, | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2259 | which can conflict with char $2 (); below. |
2260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
2261 | <limits.h> exists even on freestanding compilers. */ | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2262 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2263 | #ifdef __STDC__ |
2264 | # include <limits.h> | ||||
2265 | #else | ||||
2266 | # include <assert.h> | ||||
2267 | #endif | ||||
2268 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2269 | #undef $2 |
2270 | |||||
2271 | /* Override any GCC internal prototype to avoid an error. | ||||
2272 | Use char because int might match the return type of a GCC | ||||
2273 | builtin and then its argument prototype would still apply. */ | ||||
2274 | #ifdef __cplusplus | ||||
2275 | extern "C" | ||||
2276 | #endif | ||||
2277 | char $2 (); | ||||
2278 | /* The GNU C library defines this for functions which it implements | ||||
2279 | to always fail with ENOSYS. Some functions are actually named | ||||
2280 | something starting with __ and the normal name is an alias. */ | ||||
2281 | #if defined __stub_$2 || defined __stub___$2 | ||||
2282 | choke me | ||||
2283 | #endif | ||||
2284 | |||||
2285 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2286 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2287 | { |
2288 | return $2 (); | ||||
2289 | ; | ||||
2290 | return 0; | ||||
2291 | } | ||||
2292 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2293 | if ac_fn_c_try_link "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2294 | eval "$3=yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2295 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2296 | eval "$3=no" |
2297 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2298 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2299 | conftest$ac_exeext conftest.$ac_ext |
2300 | fi | ||||
2301 | eval ac_res=\$$3 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2303 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2304 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2305 | |
2306 | } # ac_fn_c_check_func | ||||
2307 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2308 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2309 | # --------------------------------------------- | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2310 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2311 | # accordingly. |
2312 | ac_fn_c_check_decl () | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2313 | { |
2314 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2315 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||||
2316 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
2318 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||||
2319 | if eval \${$3+:} false; then : | ||||
2320 | $as_echo_n "(cached) " >&6 | ||||
2321 | else | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2323 | /* end confdefs.h. */ | ||||
2324 | $4 | ||||
2325 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2326 | main () |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2327 | { |
2328 | #ifndef $as_decl_name | ||||
2329 | #ifdef __cplusplus | ||||
2330 | (void) $as_decl_use; | ||||
2331 | #else | ||||
2332 | (void) $as_decl_name; | ||||
2333 | #endif | ||||
2334 | #endif | ||||
2335 | |||||
2336 | ; | ||||
2337 | return 0; | ||||
2338 | } | ||||
2339 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2340 | if ac_fn_c_try_compile "$LINENO"; then : |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2341 | eval "$3=yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2342 | else |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2343 | eval "$3=no" |
2344 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2346 | fi |
2347 | eval ac_res=\$$3 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2349 | $as_echo "$ac_res" >&6; } | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2350 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2351 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2352 | } # ac_fn_c_check_decl |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2353 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2354 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2355 | # ---------------------------------------------------- | ||||
2356 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||||
2357 | # INCLUDES, setting cache variable VAR accordingly. | ||||
2358 | ac_fn_c_check_member () | ||||
2359 | { | ||||
2360 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
2362 | $as_echo_n "checking for $2.$3... " >&6; } | ||||
2363 | if eval \${$4+:} false; then : | ||||
2364 | $as_echo_n "(cached) " >&6 | ||||
2365 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2367 | /* end confdefs.h. */ | ||||
2368 | $5 | ||||
2369 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2370 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2371 | { |
2372 | static $2 ac_aggr; | ||||
2373 | if (ac_aggr.$3) | ||||
2374 | return 0; | ||||
2375 | ; | ||||
2376 | return 0; | ||||
2377 | } | ||||
2378 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2379 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2380 | eval "$4=yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2381 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2383 | /* end confdefs.h. */ | ||||
2384 | $5 | ||||
2385 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2386 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2387 | { |
2388 | static $2 ac_aggr; | ||||
2389 | if (sizeof ac_aggr.$3) | ||||
2390 | return 0; | ||||
2391 | ; | ||||
2392 | return 0; | ||||
2393 | } | ||||
2394 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2395 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2396 | eval "$4=yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2397 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2398 | eval "$4=no" |
2399 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2401 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2403 | fi |
2404 | eval ac_res=\$$4 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2406 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2407 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2408 | |
2409 | } # ac_fn_c_check_member | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2410 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2411 | This file contains any messages produced by compilers while |
2412 | running configure, to aid debugging if configure makes a mistake. | ||||
2413 | |||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 2414 | It was created by python $as_me 3.10, which was |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2415 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2416 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2417 | $ $0 $@ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2418 | |
2419 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2420 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2421 | { |
2422 | cat <<_ASUNAME | ||||
2423 | ## --------- ## | ||||
2424 | ## Platform. ## | ||||
2425 | ## --------- ## | ||||
2426 | |||||
2427 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||||
2428 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||||
2429 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||||
2430 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||||
2431 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||||
2432 | |||||
2433 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||||
2434 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||||
2435 | |||||
2436 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||||
2437 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||||
2438 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2439 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2440 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2441 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||||
2442 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||||
2443 | |||||
2444 | _ASUNAME | ||||
2445 | |||||
2446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2447 | for as_dir in $PATH | ||||
2448 | do | ||||
2449 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2450 | test -z "$as_dir" && as_dir=. |
2451 | $as_echo "PATH: $as_dir" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2452 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2453 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 | |
2455 | } >&5 | ||||
2456 | |||||
2457 | cat >&5 <<_ACEOF | ||||
2458 | |||||
2459 | |||||
2460 | ## ----------- ## | ||||
2461 | ## Core tests. ## | ||||
2462 | ## ----------- ## | ||||
2463 | |||||
2464 | _ACEOF | ||||
2465 | |||||
2466 | |||||
2467 | # Keep a trace of the command line. | ||||
2468 | # Strip out --no-create and --no-recursion so they do not pile up. | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2469 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2471 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2472 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2473 | ac_configure_args0= |
2474 | ac_configure_args1= | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2475 | ac_must_keep_next=false |
2476 | for ac_pass in 1 2 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2477 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2478 | for ac_arg |
2479 | do | ||||
2480 | case $ac_arg in | ||||
2481 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||||
2482 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||||
2483 | | -silent | --silent | --silen | --sile | --sil) | ||||
2484 | continue ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2485 | *\'*) |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2486 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2487 | esac |
2488 | case $ac_pass in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2489 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2490 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2491 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2492 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2493 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2494 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2495 | case $ac_arg in |
2496 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||||
2497 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||||
2498 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||||
2499 | | -with-* | --with-* | -without-* | --without-* | --x) | ||||
2500 | case "$ac_configure_args0 " in | ||||
2501 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||||
2502 | esac | ||||
2503 | ;; | ||||
2504 | -* ) ac_must_keep_next=true ;; | ||||
2505 | esac | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2506 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2507 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2508 | ;; |
2509 | esac | ||||
2510 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2512 | { ac_configure_args0=; unset ac_configure_args0;} |
2513 | { ac_configure_args1=; unset ac_configure_args1;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2514 | |
2515 | # When interrupted or exit'd, cleanup temporary files, and complete | ||||
2516 | # config.log. We remove comments because anyway the quotes in there | ||||
2517 | # would cause problems or look ugly. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2518 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2519 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2520 | trap 'exit_status=$? |
2521 | # Save into config.log some information that might help in debugging. | ||||
2522 | { | ||||
2523 | echo | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2524 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2525 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2527 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2528 | echo |
2529 | # The following way of writing the cache mishandles newlines in values, | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2530 | ( |
2531 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||||
2532 | eval ac_val=\$$ac_var | ||||
2533 | case $ac_val in #( | ||||
2534 | *${as_nl}*) | ||||
2535 | case $ac_var in #( | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2536 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2537 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2538 | esac |
2539 | case $ac_var in #( | ||||
2540 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2541 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2542 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2543 | esac ;; |
2544 | esac | ||||
2545 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2546 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2547 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2548 | *${as_nl}ac_space=\ *) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2549 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2550 | "s/'\''/'\''\\\\'\'''\''/g; |
2551 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||||
2552 | ;; #( | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2553 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2554 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2555 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2556 | esac | |
2557 | sort | ||||
2558 | ) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2559 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2560 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2561 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2562 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2563 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2564 | echo |
2565 | for ac_var in $ac_subst_vars | ||||
2566 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2567 | eval ac_val=\$$ac_var |
2568 | case $ac_val in | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2569 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2570 | esac |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2571 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2572 | done | sort |
2573 | echo | ||||
2574 | |||||
2575 | if test -n "$ac_subst_files"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2576 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2577 | ## File substitutions. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2578 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2579 | echo |
2580 | for ac_var in $ac_subst_files | ||||
2581 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2582 | eval ac_val=\$$ac_var |
2583 | case $ac_val in | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2584 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2585 | esac |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2586 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2587 | done | sort |
2588 | echo | ||||
2589 | fi | ||||
2590 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2591 | if test -s confdefs.h; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2592 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2594 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2595 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2596 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2597 | echo |
2598 | fi | ||||
2599 | test "$ac_signal" != 0 && | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2600 | $as_echo "$as_me: caught signal $ac_signal" |
2601 | $as_echo "$as_me: exit $exit_status" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2602 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2603 | rm -f core *.core core.conftest.* && |
2604 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2606 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2607 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2608 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2609 | done |
2610 | ac_signal=0 | ||||
2611 | |||||
2612 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2613 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2615 | $as_echo "/* confdefs.h */" > confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2617 | # Predefined preprocessor variables. |
2618 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2619 | cat >>confdefs.h <<_ACEOF |
2620 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||||
2621 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2623 | cat >>confdefs.h <<_ACEOF |
2624 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||||
2625 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2627 | cat >>confdefs.h <<_ACEOF |
2628 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||||
2629 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2630 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2631 | cat >>confdefs.h <<_ACEOF |
2632 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||||
2633 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2635 | cat >>confdefs.h <<_ACEOF |
2636 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||||
2637 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2638 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2639 | cat >>confdefs.h <<_ACEOF |
2640 | #define PACKAGE_URL "$PACKAGE_URL" | ||||
2641 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2643 | |
2644 | # Let the site file select an alternate cache file if it wants to. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2645 | # Prefer an explicitly selected file to automatically selected ones. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2646 | ac_site_file1=NONE |
2647 | ac_site_file2=NONE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2648 | if test -n "$CONFIG_SITE"; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2649 | # We do not want a PATH search for config.site. |
2650 | case $CONFIG_SITE in #(( | ||||
2651 | -*) ac_site_file1=./$CONFIG_SITE;; | ||||
2652 | */*) ac_site_file1=$CONFIG_SITE;; | ||||
2653 | *) ac_site_file1=./$CONFIG_SITE;; | ||||
2654 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2655 | elif test "x$prefix" != xNONE; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2656 | ac_site_file1=$prefix/share/config.site |
2657 | ac_site_file2=$prefix/etc/config.site | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2658 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2659 | ac_site_file1=$ac_default_prefix/share/config.site |
2660 | ac_site_file2=$ac_default_prefix/etc/config.site | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2661 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2662 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2663 | do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2664 | test "x$ac_site_file" = xNONE && continue |
2665 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||||
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||||
2667 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2668 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2669 | . "$ac_site_file" \ |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2670 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2671 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2672 | as_fn_error $? "failed to load site script $ac_site_file |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2673 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2674 | fi |
2675 | done | ||||
2676 | |||||
2677 | if test -r "$cache_file"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2678 | # Some versions of bash will fail to source /dev/null (special files |
2679 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||||
2680 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2682 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2683 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2684 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2685 | *) . "./$cache_file";; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2686 | esac |
2687 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2688 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2690 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2691 | >$cache_file |
2692 | fi | ||||
2693 | |||||
2694 | # Check that the precious variables saved in the cache have kept the same | ||||
2695 | # value. | ||||
2696 | ac_cache_corrupted=false | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2697 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2698 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2699 | eval ac_new_set=\$ac_env_${ac_var}_set | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2700 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2701 | eval ac_new_val=\$ac_env_${ac_var}_value | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2702 | case $ac_old_set,$ac_new_set in |
2703 | set,) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2705 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2706 | ac_cache_corrupted=: ;; |
2707 | ,set) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2709 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2710 | ac_cache_corrupted=: ;; |
2711 | ,);; | ||||
2712 | *) | ||||
2713 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2714 | # differences in whitespace do not lead to failure. |
2715 | ac_old_val_w=`echo x $ac_old_val` | ||||
2716 | ac_new_val_w=`echo x $ac_new_val` | ||||
2717 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2719 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2720 | ac_cache_corrupted=: |
2721 | else | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2723 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2724 | eval $ac_var=\$ac_old_val |
2725 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2727 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||||
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||||
2729 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2730 | fi;; |
2731 | esac | ||||
2732 | # Pass precious variables to config.status. | ||||
2733 | if test "$ac_new_set" = set; then | ||||
2734 | case $ac_new_val in | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2735 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2736 | *) ac_arg=$ac_var=$ac_new_val ;; |
2737 | esac | ||||
2738 | case " $ac_configure_args " in | ||||
2739 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2740 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2741 | esac |
2742 | fi | ||||
2743 | done | ||||
2744 | if $ac_cache_corrupted; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2746 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||||
2748 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||||
2749 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2750 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2751 | ## -------------------- ## |
2752 | ## Main body of script. ## | ||||
2753 | ## -------------------- ## | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2754 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2755 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2756 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
2759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2760 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2761 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2762 | |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2763 | |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 2764 | |
2765 | |||||
Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame] | 2766 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2767 | # If we're building out-of-tree, we need to make sure the following |
2768 | # resources get picked up before their $srcdir counterparts. | ||||
2769 | # Objects/ -> typeslots.inc | ||||
Victor Stinner | 94faa07 | 2021-03-23 20:47:40 +0100 | [diff] [blame] | 2770 | # Include/ -> Python.h |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2771 | # Python/ -> importlib.h |
2772 | # (A side effect of this is that these resources will automatically be | ||||
2773 | # regenerated when building out-of-tree, regardless of whether or not | ||||
2774 | # the $srcdir counterpart is up-to-date. This is an acceptable trade | ||||
2775 | # off.) | ||||
2776 | BASECPPFLAGS="-IObjects -IInclude -IPython" | ||||
2777 | else | ||||
2778 | BASECPPFLAGS="" | ||||
2779 | fi | ||||
2780 | |||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2781 | |
2782 | |||||
2783 | |||||
2784 | |||||
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 2785 | if test -e $srcdir/.git |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2786 | then |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2787 | # Extract the first word of "git", so it can be a program name with args. |
2788 | set dummy git; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2790 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
2791 | if ${ac_cv_prog_HAS_GIT+:} false; then : | ||||
2792 | $as_echo_n "(cached) " >&6 | ||||
2793 | else | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2794 | if test -n "$HAS_GIT"; then |
2795 | ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2796 | else |
2797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2798 | for as_dir in $PATH | ||||
2799 | do | ||||
2800 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2801 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2802 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2804 | ac_cv_prog_HAS_GIT="found" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2806 | break 2 |
2807 | fi | ||||
2808 | done | ||||
2809 | done | ||||
2810 | IFS=$as_save_IFS | ||||
2811 | |||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2812 | test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2813 | fi |
2814 | fi | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2815 | HAS_GIT=$ac_cv_prog_HAS_GIT |
2816 | if test -n "$HAS_GIT"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 |
2818 | $as_echo "$HAS_GIT" >&6; } | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2819 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2821 | $as_echo "no" >&6; } | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2822 | fi |
2823 | |||||
2824 | |||||
2825 | else | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2826 | HAS_GIT=no-repository |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2827 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2828 | if test $HAS_GIT = found |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2829 | then |
Xiang Zhang | 4c85557 | 2018-08-20 22:36:19 +0800 | [diff] [blame] | 2830 | GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" |
2831 | GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" | ||||
2832 | GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2833 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2834 | GITVERSION="" |
2835 | GITTAG="" | ||||
2836 | GITBRANCH="" | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2837 | fi |
2838 | |||||
2839 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2840 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2841 | |
2842 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2843 | ac_aux_dir= |
2844 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||||
2845 | if test -f "$ac_dir/install-sh"; then | ||||
2846 | ac_aux_dir=$ac_dir | ||||
2847 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||||
2848 | break | ||||
2849 | elif test -f "$ac_dir/install.sh"; then | ||||
2850 | ac_aux_dir=$ac_dir | ||||
2851 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||||
2852 | break | ||||
2853 | elif test -f "$ac_dir/shtool"; then | ||||
2854 | ac_aux_dir=$ac_dir | ||||
2855 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||||
2856 | break | ||||
2857 | fi | ||||
2858 | done | ||||
2859 | if test -z "$ac_aux_dir"; then | ||||
2860 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||||
2861 | fi | ||||
2862 | |||||
2863 | # These three variables are undocumented and unsupported, | ||||
2864 | # and are intended to be withdrawn in a future Autoconf release. | ||||
2865 | # They can cause serious problems if a builder's source tree is in a directory | ||||
2866 | # whose full name contains unusual characters. | ||||
2867 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||||
2868 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||||
2869 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2870 | |
2871 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2872 | # Make sure we can run config.sub. |
2873 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||||
2874 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2875 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2877 | $as_echo_n "checking build system type... " >&6; } | ||||
2878 | if ${ac_cv_build+:} false; then : | ||||
2879 | $as_echo_n "(cached) " >&6 | ||||
2880 | else | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2881 | ac_build_alias=$build_alias |
2882 | test "x$ac_build_alias" = x && | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2883 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2884 | test "x$ac_build_alias" = x && |
2885 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2886 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2887 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2888 | |
2889 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2891 | $as_echo "$ac_cv_build" >&6; } | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2892 | case $ac_cv_build in |
2893 | *-*-*) ;; | ||||
2894 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||||
2895 | esac | ||||
2896 | build=$ac_cv_build | ||||
2897 | ac_save_IFS=$IFS; IFS='-' | ||||
2898 | set x $ac_cv_build | ||||
2899 | shift | ||||
2900 | build_cpu=$1 | ||||
2901 | build_vendor=$2 | ||||
2902 | shift; shift | ||||
2903 | # Remember, the first character of IFS is used to create $*, | ||||
2904 | # except with old shells: | ||||
2905 | build_os=$* | ||||
2906 | IFS=$ac_save_IFS | ||||
2907 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||||
2908 | |||||
2909 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2911 | $as_echo_n "checking host system type... " >&6; } | ||||
2912 | if ${ac_cv_host+:} false; then : | ||||
2913 | $as_echo_n "(cached) " >&6 | ||||
2914 | else | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2915 | if test "x$host_alias" = x; then |
2916 | ac_cv_host=$ac_cv_build | ||||
2917 | else | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2918 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2919 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2920 | fi |
2921 | |||||
2922 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2924 | $as_echo "$ac_cv_host" >&6; } | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2925 | case $ac_cv_host in |
2926 | *-*-*) ;; | ||||
2927 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||||
2928 | esac | ||||
2929 | host=$ac_cv_host | ||||
2930 | ac_save_IFS=$IFS; IFS='-' | ||||
2931 | set x $ac_cv_host | ||||
2932 | shift | ||||
2933 | host_cpu=$1 | ||||
2934 | host_vendor=$2 | ||||
2935 | shift; shift | ||||
2936 | # Remember, the first character of IFS is used to create $*, | ||||
2937 | # except with old shells: | ||||
2938 | host_os=$* | ||||
2939 | IFS=$ac_save_IFS | ||||
2940 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||||
2941 | |||||
2942 | |||||
2943 | |||||
doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2944 | |
2945 | |||||
Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2946 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
2947 | rm -f pybuilddir.txt | ||||
2948 | |||||
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2949 | for ac_prog in python$PACKAGE_VERSION python3 python |
2950 | do | ||||
2951 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
2952 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2954 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
2955 | if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : | ||||
2956 | $as_echo_n "(cached) " >&6 | ||||
2957 | else | ||||
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2958 | if test -n "$PYTHON_FOR_REGEN"; then |
2959 | ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2960 | else |
2961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2962 | for as_dir in $PATH | ||||
2963 | do | ||||
2964 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2965 | test -z "$as_dir" && as_dir=. |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2966 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2967 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2968 | ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2970 | break 2 |
2971 | fi | ||||
2972 | done | ||||
2973 | done | ||||
2974 | IFS=$as_save_IFS | ||||
2975 | |||||
2976 | fi | ||||
2977 | fi | ||||
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2978 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN |
2979 | if test -n "$PYTHON_FOR_REGEN"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 |
2981 | $as_echo "$PYTHON_FOR_REGEN" >&6; } | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2982 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2984 | $as_echo "no" >&6; } | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2985 | fi |
2986 | |||||
2987 | |||||
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2988 | test -n "$PYTHON_FOR_REGEN" && break |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2989 | done |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2990 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2991 | |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2992 | |
2993 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2994 | if test "$cross_compiling" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 |
2996 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2997 | if test -z "$PYTHON_FOR_BUILD"; then |
2998 | for interp in python$PACKAGE_VERSION python3 python; do | ||||
2999 | which $interp >/dev/null 2>&1 || continue | ||||
Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 3000 | if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3001 | break |
3002 | fi | ||||
3003 | interp= | ||||
3004 | done | ||||
3005 | if test x$interp = x; then | ||||
3006 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | ||||
3007 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 |
3009 | $as_echo "$interp" >&6; } | ||||
Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame] | 3010 | PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3011 | fi |
Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 3012 | elif test "$cross_compiling" = maybe; then |
3013 | as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3014 | else |
3015 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | ||||
3016 | fi | ||||
3017 | |||||
3018 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3019 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 3020 | if test "$prefix" != "/"; then |
3021 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | ||||
3022 | fi | ||||
3023 | |||||
3024 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3025 | |
3026 | |||||
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 3027 | # We don't use PACKAGE_ variables, and they cause conflicts |
3028 | # with other autoconf-based packages that include Python.h | ||||
3029 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | ||||
3030 | rm confdefs.h | ||||
3031 | mv confdefs.h.new confdefs.h | ||||
3032 | |||||
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 3033 | |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 3034 | VERSION=3.10 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 3035 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 3036 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3037 | |
3038 | SOVERSION=1.0 | ||||
3039 | |||||
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3040 | # The later defininition of _XOPEN_SOURCE disables certain features |
3041 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | ||||
3042 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3043 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3044 | |
3045 | |||||
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3046 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
3047 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | ||||
3048 | # them. | ||||
3049 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3050 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3051 | |
3052 | |||||
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3053 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
3054 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | ||||
3055 | # them. | ||||
3056 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3057 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3058 | |
3059 | |||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3060 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3061 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
3062 | # them. | ||||
3063 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3064 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3065 | |
3066 | |||||
3067 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3068 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3069 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3070 | # Arguments passed to configure. |
3071 | |||||
3072 | CONFIG_ARGS="$ac_configure_args" | ||||
3073 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
3075 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3076 | # Check whether --enable-universalsdk was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3077 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3078 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3079 | case $enableval in |
3080 | yes) | ||||
Serhiy Storchaka | 88cc339 | 2018-06-04 08:20:25 +0300 | [diff] [blame] | 3081 | # Locate the best usable SDK, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3082 | # information |
3083 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3084 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3085 | then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3086 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
3087 | if test ! -d "${enableval}" | ||||
3088 | then | ||||
3089 | enableval=/ | ||||
3090 | fi | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3091 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3092 | ;; |
3093 | esac | ||||
3094 | case $enableval in | ||||
3095 | no) | ||||
3096 | UNIVERSALSDK= | ||||
3097 | enable_universalsdk= | ||||
3098 | ;; | ||||
3099 | *) | ||||
3100 | UNIVERSALSDK=$enableval | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3101 | if test ! -d "${UNIVERSALSDK}" |
3102 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3103 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3104 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3105 | ;; |
3106 | esac | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3107 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3108 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3109 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3110 | |
3111 | UNIVERSALSDK= | ||||
3112 | enable_universalsdk= | ||||
3113 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3114 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3115 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3116 | if test -n "${UNIVERSALSDK}" |
3117 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
3119 | $as_echo "${UNIVERSALSDK}" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3120 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3122 | $as_echo "no" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3123 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3124 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3125 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3126 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3127 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3128 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3129 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
3130 | # otherwise use 'intel' | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3131 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3132 | if test "`uname -s`" = "Darwin" |
3133 | then | ||||
3134 | if test -n "${UNIVERSALSDK}" | ||||
3135 | then | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3136 | if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3137 | then |
3138 | UNIVERSAL_ARCHS="intel" | ||||
3139 | fi | ||||
3140 | fi | ||||
3141 | fi | ||||
3142 | |||||
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3143 | |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 3144 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
3146 | $as_echo_n "checking for --with-universal-archs... " >&6; } | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3147 | |
3148 | # Check whether --with-universal-archs was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3149 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3150 | withval=$with_universal_archs; |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3151 | UNIVERSAL_ARCHS="$withval" |
3152 | |||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3153 | fi |
3154 | |||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3155 | if test -n "${UNIVERSALSDK}" |
3156 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 |
3158 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3159 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3161 | $as_echo "no" >&6; } | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3162 | fi |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3163 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3164 | |
3165 | # Check whether --with-framework-name was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3166 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3167 | withval=$with_framework_name; |
3168 | PYTHONFRAMEWORK=${withval} | ||||
3169 | PYTHONFRAMEWORKDIR=${withval}.framework | ||||
3170 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | ||||
3171 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3172 | else |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3173 | |
3174 | PYTHONFRAMEWORK=Python | ||||
3175 | PYTHONFRAMEWORKDIR=Python.framework | ||||
3176 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | ||||
3177 | |||||
3178 | fi | ||||
3179 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3180 | # Check whether --enable-framework was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3181 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3182 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3183 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3184 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3185 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3186 | esac |
3187 | case $enableval in | ||||
3188 | no) | ||||
3189 | PYTHONFRAMEWORK= | ||||
3190 | PYTHONFRAMEWORKDIR=no-framework | ||||
3191 | PYTHONFRAMEWORKPREFIX= | ||||
3192 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3193 | FRAMEWORKINSTALLFIRST= |
3194 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3195 | FRAMEWORKALTINSTALLFIRST= |
3196 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3197 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3198 | if test "x${prefix}" = "xNONE"; then |
3199 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3200 | else | ||||
3201 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3202 | fi | ||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3203 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3204 | ;; |
3205 | *) | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3206 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3207 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3208 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3209 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3210 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
3211 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | ||||
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3212 | FRAMEWORKPYTHONW="frameworkpythonw" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3213 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3214 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3215 | if test "x${prefix}" = "xNONE" ; then |
3216 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3217 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3218 | else |
3219 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3220 | fi | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3221 | |
3222 | case "${enableval}" in | ||||
3223 | /System*) | ||||
3224 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3225 | if test "${prefix}" = "NONE" ; then | ||||
3226 | # See below | ||||
3227 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | ||||
3228 | fi | ||||
3229 | ;; | ||||
3230 | |||||
3231 | /Library*) | ||||
3232 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3233 | ;; | ||||
3234 | |||||
3235 | */Library/Frameworks) | ||||
3236 | MDIR="`dirname "${enableval}"`" | ||||
3237 | MDIR="`dirname "${MDIR}"`" | ||||
3238 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | ||||
3239 | |||||
3240 | if test "${prefix}" = "NONE"; then | ||||
3241 | # User hasn't specified the | ||||
3242 | # --prefix option, but wants to install | ||||
3243 | # the framework in a non-default location, | ||||
3244 | # ensure that the compatibility links get | ||||
3245 | # installed relative to that prefix as well | ||||
3246 | # instead of in /usr/local. | ||||
3247 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | ||||
3248 | fi | ||||
3249 | ;; | ||||
3250 | |||||
3251 | *) | ||||
3252 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3253 | ;; | ||||
3254 | esac | ||||
3255 | |||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3256 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3257 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3258 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3259 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3260 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3261 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3262 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3263 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3264 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
3265 | |||||
3266 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | ||||
3267 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3268 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3269 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3270 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3271 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3272 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3273 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3274 | PYTHONFRAMEWORKPREFIX= |
3275 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3276 | FRAMEWORKINSTALLFIRST= |
3277 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3278 | FRAMEWORKALTINSTALLFIRST= |
3279 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3280 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3281 | if test "x${prefix}" = "xNONE" ; then |
3282 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3283 | else | ||||
3284 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3285 | fi | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3286 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3287 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3288 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3289 | fi |
3290 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3291 | |
3292 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3293 | |
3294 | |||||
3295 | |||||
3296 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3297 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3298 | |
3299 | |||||
3300 | |||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3301 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3302 | |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3303 | |
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3304 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3305 | cat >>confdefs.h <<_ACEOF |
3306 | #define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}" | ||||
3307 | _ACEOF | ||||
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3308 | |
3309 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3310 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3311 | ## AS_HELP_STRING([--with-dyld], |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 3312 | ## [use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3313 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3314 | # Set name for machine-dependent library files |
3315 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
3317 | $as_echo_n "checking MACHDEP... " >&6; } | ||||
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3318 | if test -z "$MACHDEP" |
3319 | then | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3320 | # avoid using uname for cross builds |
3321 | if test "$cross_compiling" = yes; then | ||||
doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3322 | # ac_sys_system and ac_sys_release are used for setting |
3323 | # a lot of different things including 'define_xopen_source' | ||||
3324 | # in the case statement below. | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3325 | case "$host" in |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 3326 | *-*-linux-android*) |
3327 | ac_sys_system=Linux-android | ||||
3328 | ;; | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3329 | *-*-linux*) |
3330 | ac_sys_system=Linux | ||||
3331 | ;; | ||||
3332 | *-*-cygwin*) | ||||
3333 | ac_sys_system=Cygwin | ||||
3334 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3335 | *-*-vxworks*) |
3336 | ac_sys_system=VxWorks | ||||
3337 | ;; | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3338 | *) |
3339 | # for now, limit cross builds to known configurations | ||||
3340 | MACHDEP="unknown" | ||||
3341 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | ||||
3342 | esac | ||||
3343 | ac_sys_release= | ||||
3344 | else | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3345 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3346 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3347 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3348 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3349 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3350 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3351 | fi |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3352 | fi |
3353 | ac_md_system=`echo $ac_sys_system | | ||||
3354 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | ||||
3355 | ac_md_release=`echo $ac_sys_release | | ||||
3356 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | ||||
3357 | MACHDEP="$ac_md_system$ac_md_release" | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3358 | |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3359 | case $MACHDEP in |
Michael Felt | 9d949f7 | 2019-04-12 16:15:32 +0200 | [diff] [blame] | 3360 | aix*) MACHDEP="aix";; |
Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3361 | linux*) MACHDEP="linux";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3362 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3363 | darwin*) MACHDEP="darwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3364 | '') MACHDEP="unknown";; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3365 | esac |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3366 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5 |
3368 | $as_echo "\"$MACHDEP\"" >&6; } | ||||
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3369 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3370 | |
3371 | if test "$cross_compiling" = yes; then | ||||
3372 | case "$host" in | ||||
3373 | *-*-linux*) | ||||
3374 | case "$host_cpu" in | ||||
3375 | arm*) | ||||
3376 | _host_cpu=arm | ||||
3377 | ;; | ||||
3378 | *) | ||||
3379 | _host_cpu=$host_cpu | ||||
3380 | esac | ||||
3381 | ;; | ||||
3382 | *-*-cygwin*) | ||||
3383 | _host_cpu= | ||||
3384 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3385 | *-*-vxworks*) |
3386 | _host_cpu=$host_cpu | ||||
3387 | ;; | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3388 | *) |
3389 | # for now, limit cross builds to known configurations | ||||
3390 | MACHDEP="unknown" | ||||
3391 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | ||||
3392 | esac | ||||
3393 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | ||||
3394 | fi | ||||
3395 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3396 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
3397 | # disable features if it is defined, without any means to access these | ||||
3398 | # features as extensions. For these systems, we skip the definition of | ||||
3399 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | ||||
3400 | # some feature, make sure there is no alternative way to access this | ||||
3401 | # feature. Also, when using wildcards, make sure you have verified the | ||||
3402 | # need for not defining _XOPEN_SOURCE on all systems matching the | ||||
3403 | # wildcard, and that the wildcard does not include future systems | ||||
3404 | # (which may remove their limitations). | ||||
3405 | case $ac_sys_system/$ac_sys_release in | ||||
3406 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | ||||
3407 | # even though select is a POSIX function. Reported by J. Ribbens. | ||||
Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 3408 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Martin v. Löwis | 19ed3c8 | 2010-02-15 21:45:06 +0000 | [diff] [blame] | 3409 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
3410 | # OpenBSD 4.6, but is fixed in 4.7. | ||||
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3411 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3412 | define_xopen_source=no |
3413 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | ||||
3414 | # also defined. This can be overridden by defining _BSD_SOURCE | ||||
3415 | # As this has a different meaning on Linux, only define it on OpenBSD | ||||
3416 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3417 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3418 | |
3419 | ;; | ||||
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3420 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3421 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
3422 | # also defined. This can be overridden by defining _BSD_SOURCE | ||||
3423 | # As this has a different meaning on Linux, only define it on OpenBSD | ||||
3424 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3425 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3426 | |
3427 | ;; | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3428 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
3429 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | ||||
3430 | # Marc Recht | ||||
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3431 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3432 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3433 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
3434 | # request to enable features supported by the standard as a request | ||||
3435 | # to disable features not supported by the standard. The best way | ||||
3436 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | ||||
3437 | # entirely and define __EXTENSIONS__ instead. | ||||
3438 | SunOS/*) | ||||
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3439 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3440 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
3441 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3442 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3443 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3444 | define_xopen_source=no;; |
3445 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, | ||||
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3446 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3447 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3448 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3449 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
3450 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | ||||
3451 | # identifies itself as Darwin/7.* | ||||
3452 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3453 | # disables platform specific features beyond repair. | ||||
3454 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3455 | # has no effect, don't bother defining them | ||||
3456 | Darwin/[6789].*) | ||||
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3457 | define_xopen_source=no;; |
Ronald Oussoren | 8ea6353 | 2020-06-25 16:55:48 +0200 | [diff] [blame] | 3458 | Darwin/[12][0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3459 | define_xopen_source=no;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3460 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
3461 | # defining NI_NUMERICHOST. | ||||
3462 | QNX/6.3.2) | ||||
3463 | define_xopen_source=no | ||||
3464 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3465 | # On VxWorks, defining _XOPEN_SOURCE causes compile failures |
3466 | # in network headers still using system V types. | ||||
3467 | VxWorks/*) | ||||
3468 | define_xopen_source=no | ||||
3469 | ;; | ||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3470 | |
Ian Norton | a9edf44 | 2020-02-14 03:09:11 +0000 | [diff] [blame] | 3471 | # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides |
3472 | # chroot() and other functions | ||||
3473 | hp*|HP*) | ||||
3474 | define_xopen_source=no | ||||
3475 | ;; | ||||
3476 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3477 | esac |
3478 | |||||
3479 | if test $define_xopen_source = yes | ||||
3480 | then | ||||
Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3481 | # X/Open 7, incorporating POSIX.1-2008 |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3482 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3483 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3484 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3485 | |
3486 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | ||||
3487 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | ||||
3488 | # several APIs are not declared. Since this is also needed in some | ||||
3489 | # cases for HP-UX, we define it globally. | ||||
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3490 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3491 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3492 | |
3493 | |||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3494 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3495 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3496 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3497 | fi |
3498 | |||||
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3499 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE |
3500 | case $ac_sys_system in | ||||
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3501 | hp*|HP*) |
3502 | define_stdc_a1=yes;; | ||||
3503 | *) | ||||
3504 | define_stdc_a1=no;; | ||||
3505 | esac | ||||
3506 | |||||
3507 | if test $define_stdc_a1 = yes | ||||
3508 | then | ||||
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3509 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3510 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3511 | |
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3512 | fi |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3513 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3514 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
3515 | # it may influence the way we can build extensions, so distutils | ||||
3516 | # needs to check it | ||||
3517 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3518 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3519 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3520 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3521 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3522 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3523 | |
3524 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just | ||||
3525 | # for debug/optimization stuff. BASECFLAGS is for flags that are required | ||||
3526 | # just to get things to compile and link. Users are free to override OPT | ||||
3527 | # when running configure or make. The build should not break if they do. | ||||
3528 | # BASECFLAGS should generally not be messed with, however. | ||||
3529 | |||||
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3530 | # If the user switches compilers, we can't believe the cache |
3531 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | ||||
3532 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3533 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3534 | (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3535 | fi |
3536 | |||||
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3537 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
3538 | # when the compiler supports them, but we don't always want -O2, and | ||||
3539 | # we set -g later. | ||||
3540 | if test -z "$CFLAGS"; then | ||||
3541 | CFLAGS= | ||||
3542 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3543 | |
3544 | if test "$ac_sys_system" = "Darwin" | ||||
3545 | then | ||||
3546 | # Compiler selection on MacOSX is more complicated than | ||||
Serhiy Storchaka | 88cc339 | 2018-06-04 08:20:25 +0300 | [diff] [blame] | 3547 | # AC_PROG_CC can handle, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3548 | # information |
3549 | if test -z "${CC}" | ||||
3550 | then | ||||
3551 | found_gcc= | ||||
3552 | found_clang= | ||||
3553 | as_save_IFS=$IFS; IFS=: | ||||
3554 | for as_dir in $PATH | ||||
3555 | do | ||||
3556 | IFS=$as_save_IFS | ||||
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3557 | if test -x "${as_dir}/gcc"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3558 | if test -z "${found_gcc}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3559 | found_gcc="${as_dir}/gcc" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3560 | fi |
3561 | fi | ||||
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3562 | if test -x "${as_dir}/clang"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3563 | if test -z "${found_clang}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3564 | found_clang="${as_dir}/clang" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3565 | fi |
3566 | fi | ||||
3567 | done | ||||
3568 | IFS=$as_save_IFS | ||||
3569 | |||||
3570 | if test -n "$found_gcc" -a -n "$found_clang" | ||||
3571 | then | ||||
3572 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" | ||||
3573 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 |
3575 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3576 | CC="$found_clang" |
3577 | CXX="$found_clang++" | ||||
3578 | fi | ||||
3579 | |||||
3580 | |||||
3581 | elif test -z "$found_gcc" -a -n "$found_clang" | ||||
3582 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 |
3584 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3585 | CC="$found_clang" |
3586 | CXX="$found_clang++" | ||||
3587 | |||||
3588 | elif test -z "$found_gcc" -a -z "$found_clang" | ||||
3589 | then | ||||
3590 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | ||||
3591 | if test -n "${found_clang}" | ||||
3592 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 |
3594 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3595 | CC="${found_clang}" |
3596 | CXX="`/usr/bin/xcrun -find clang++`" | ||||
3597 | |||||
3598 | # else: use default behaviour | ||||
3599 | fi | ||||
3600 | fi | ||||
3601 | fi | ||||
3602 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3603 | ac_ext=c |
3604 | ac_cpp='$CPP $CPPFLAGS' | ||||
3605 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
3606 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
3607 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
3608 | if test -n "$ac_tool_prefix"; then | ||||
3609 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||||
3610 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3612 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3613 | if ${ac_cv_prog_CC+:} false; then : | ||||
3614 | $as_echo_n "(cached) " >&6 | ||||
3615 | else | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3616 | if test -n "$CC"; then |
3617 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3618 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3620 | for as_dir in $PATH | ||||
3621 | do | ||||
3622 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3623 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3624 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3625 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3626 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3628 | break 2 |
3629 | fi | ||||
3630 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3631 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3632 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3633 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3634 | fi |
3635 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3636 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3637 | if test -n "$CC"; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3639 | $as_echo "$CC" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3640 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3642 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3643 | fi |
3644 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | fi |
3647 | if test -z "$ac_cv_prog_CC"; then | ||||
3648 | ac_ct_CC=$CC | ||||
3649 | # Extract the first word of "gcc", so it can be a program name with args. | ||||
3650 | set dummy gcc; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3652 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3653 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||||
3654 | $as_echo_n "(cached) " >&6 | ||||
3655 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3656 | if test -n "$ac_ct_CC"; then |
3657 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3658 | else | ||||
3659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3660 | for as_dir in $PATH | ||||
3661 | do | ||||
3662 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3663 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3664 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3665 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | ac_cv_prog_ac_ct_CC="gcc" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3668 | break 2 |
3669 | fi | ||||
3670 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3671 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3672 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | |
3674 | fi | ||||
3675 | fi | ||||
3676 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3677 | if test -n "$ac_ct_CC"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3679 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3680 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3682 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | fi |
3684 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3685 | if test "x$ac_ct_CC" = x; then |
3686 | CC="" | ||||
3687 | else | ||||
3688 | case $cross_compiling:$ac_tool_warned in | ||||
3689 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3691 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3692 | ac_tool_warned=yes ;; |
3693 | esac | ||||
3694 | CC=$ac_ct_CC | ||||
3695 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3696 | else |
3697 | CC="$ac_cv_prog_CC" | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3698 | fi |
3699 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3700 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3701 | if test -n "$ac_tool_prefix"; then |
3702 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3703 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3705 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3706 | if ${ac_cv_prog_CC+:} false; then : | ||||
3707 | $as_echo_n "(cached) " >&6 | ||||
3708 | else | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3709 | if test -n "$CC"; then |
3710 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3711 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3713 | for as_dir in $PATH | ||||
3714 | do | ||||
3715 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3716 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3717 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3721 | break 2 |
3722 | fi | ||||
3723 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3724 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3725 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3726 | |
3727 | fi | ||||
3728 | fi | ||||
3729 | CC=$ac_cv_prog_CC | ||||
3730 | if test -n "$CC"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3732 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3733 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3735 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3736 | fi |
3737 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3739 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3740 | fi |
3741 | if test -z "$CC"; then | ||||
3742 | # Extract the first word of "cc", so it can be a program name with args. | ||||
3743 | set dummy cc; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3745 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3746 | if ${ac_cv_prog_CC+:} false; then : | ||||
3747 | $as_echo_n "(cached) " >&6 | ||||
3748 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | if test -n "$CC"; then |
3750 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3751 | else | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3752 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3754 | for as_dir in $PATH | ||||
3755 | do | ||||
3756 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3757 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3758 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3760 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 | ac_prog_rejected=yes |
3762 | continue | ||||
3763 | fi | ||||
3764 | ac_cv_prog_CC="cc" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3766 | break 2 |
3767 | fi | ||||
3768 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3769 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3770 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3771 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3772 | if test $ac_prog_rejected = yes; then |
3773 | # We found a bogon in the path, so make sure we never use it. | ||||
3774 | set dummy $ac_cv_prog_CC | ||||
3775 | shift | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3776 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3777 | # We chose a different compiler from the bogus one. |
3778 | # However, it has the same basename, so the bogon will be chosen | ||||
3779 | # first if we set CC to just the basename; use the full file name. | ||||
3780 | shift | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3781 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3782 | fi |
3783 | fi | ||||
3784 | fi | ||||
3785 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3786 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3787 | if test -n "$CC"; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3789 | $as_echo "$CC" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3790 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3792 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3793 | fi |
3794 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3796 | fi |
3797 | if test -z "$CC"; then | ||||
3798 | if test -n "$ac_tool_prefix"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3799 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3800 | do |
3801 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
3802 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3804 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3805 | if ${ac_cv_prog_CC+:} false; then : | ||||
3806 | $as_echo_n "(cached) " >&6 | ||||
3807 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3808 | if test -n "$CC"; then |
3809 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3810 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3812 | for as_dir in $PATH | ||||
3813 | do | ||||
3814 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3815 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3816 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3817 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3818 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3820 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3821 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3822 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3823 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3824 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3825 | |
3826 | fi | ||||
3827 | fi | ||||
3828 | CC=$ac_cv_prog_CC | ||||
3829 | if test -n "$CC"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3831 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3832 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3834 | $as_echo "no" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3835 | fi |
3836 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3838 | test -n "$CC" && break |
3839 | done | ||||
3840 | fi | ||||
3841 | if test -z "$CC"; then | ||||
3842 | ac_ct_CC=$CC | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3843 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3844 | do |
3845 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
3846 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3848 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
3849 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||||
3850 | $as_echo_n "(cached) " >&6 | ||||
3851 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3852 | if test -n "$ac_ct_CC"; then |
3853 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3854 | else | ||||
3855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3856 | for as_dir in $PATH | ||||
3857 | do | ||||
3858 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3859 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3860 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3861 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3862 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3864 | break 2 |
3865 | fi | ||||
3866 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3867 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3868 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3870 | fi |
3871 | fi | ||||
3872 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3873 | if test -n "$ac_ct_CC"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3875 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3876 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3878 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3879 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3880 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3882 | test -n "$ac_ct_CC" && break |
3883 | done | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3884 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3885 | if test "x$ac_ct_CC" = x; then |
3886 | CC="" | ||||
3887 | else | ||||
3888 | case $cross_compiling:$ac_tool_warned in | ||||
3889 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3891 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3892 | ac_tool_warned=yes ;; |
3893 | esac | ||||
3894 | CC=$ac_ct_CC | ||||
3895 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3896 | fi |
3897 | |||||
3898 | fi | ||||
3899 | |||||
3900 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3901 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3902 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3903 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3904 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3905 | |
3906 | # Provide some information about the compiler. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3907 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3908 | set X $ac_compile |
3909 | ac_compiler=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3910 | for ac_option in --version -v -V -qversion; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3911 | { { ac_try="$ac_compiler $ac_option >&5" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3912 | case "(($ac_try" in |
3913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3914 | *) ac_try_echo=$ac_try;; | ||||
3915 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3917 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3918 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3919 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3920 | if test -s conftest.err; then |
3921 | sed '10a\ | ||||
3922 | ... rest of stderr output deleted ... | ||||
3923 | 10q' conftest.err >conftest.er1 | ||||
3924 | cat conftest.er1 >&5 | ||||
3925 | fi | ||||
3926 | rm -f conftest.er1 conftest.err | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3928 | test $ac_status = 0; } |
3929 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3930 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3932 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3934 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3935 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3936 | { |
3937 | |||||
3938 | ; | ||||
3939 | return 0; | ||||
3940 | } | ||||
3941 | _ACEOF | ||||
3942 | ac_clean_files_save=$ac_clean_files | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3943 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3944 | # Try to create an executable without -o first, disregard a.out. |
3945 | # It will help us diagnose broken compilers, and finding out an intuition | ||||
3946 | # of exeext. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3948 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||||
3949 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3950 | |
3951 | # The possible output files: | ||||
3952 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||||
3953 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3954 | ac_rmfiles= |
3955 | for ac_file in $ac_files | ||||
3956 | do | ||||
3957 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3958 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3959 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3960 | esac | ||||
3961 | done | ||||
3962 | rm -f $ac_rmfiles | ||||
3963 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3964 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3965 | case "(($ac_try" in |
3966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3967 | *) ac_try_echo=$ac_try;; | ||||
3968 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3969 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3970 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3971 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3972 | ac_status=$? |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3973 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3974 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3975 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3976 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||||
3977 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||||
3978 | # so that the user can short-circuit this test for compilers unknown to | ||||
3979 | # Autoconf. | ||||
3980 | for ac_file in $ac_files '' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3981 | do |
3982 | test -f "$ac_file" || continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3983 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3984 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3985 | ;; |
3986 | [ab].out ) | ||||
3987 | # We found the default executable, but exeext='' is most | ||||
3988 | # certainly right. | ||||
3989 | break;; | ||||
3990 | *.* ) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 3991 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3992 | then :; else |
3993 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||||
3994 | fi | ||||
3995 | # We set ac_cv_exeext here because the later test for it is not | ||||
3996 | # safe: cross compilers may not add the suffix if given an `-o' | ||||
3997 | # argument, so we may need to know it at that point already. | ||||
3998 | # Even if this section looks crufty: it has the advantage of | ||||
3999 | # actually working. | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4000 | break;; |
4001 | * ) | ||||
4002 | break;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4003 | esac |
4004 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4005 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4006 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4007 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4008 | ac_file='' |
4009 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4010 | if test -z "$ac_file"; then : |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4012 | $as_echo "no" >&6; } | ||||
4013 | $as_echo "$as_me: failed program was:" >&5 | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4014 | sed 's/^/| /' conftest.$ac_ext >&5 |
4015 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4016 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4017 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4018 | as_fn_error 77 "C compiler cannot create executables |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4019 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4020 | else |
4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
4022 | $as_echo "yes" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4023 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4025 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||||
4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||||
4027 | $as_echo "$ac_file" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4028 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4029 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4030 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4031 | ac_clean_files=$ac_clean_files_save |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4033 | $as_echo_n "checking for suffix of executables... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4034 | if { { ac_try="$ac_link" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4035 | case "(($ac_try" in |
4036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4037 | *) ac_try_echo=$ac_try;; | ||||
4038 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4039 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4040 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4041 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4042 | ac_status=$? |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4044 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4045 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4046 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||||
4047 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||||
4048 | # `rm'. | ||||
4049 | for ac_file in conftest.exe conftest conftest.*; do | ||||
4050 | test -f "$ac_file" || continue | ||||
4051 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4052 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4053 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4054 | break;; | ||||
4055 | * ) break;; | ||||
4056 | esac | ||||
4057 | done | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4058 | else |
4059 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4060 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4061 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4062 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4063 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4064 | rm -f conftest conftest$ac_cv_exeext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4066 | $as_echo "$ac_cv_exeext" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4067 | |
4068 | rm -f conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4069 | EXEEXT=$ac_cv_exeext |
4070 | ac_exeext=$EXEEXT | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4072 | /* end confdefs.h. */ | ||||
4073 | #include <stdio.h> | ||||
4074 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4075 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4076 | { |
4077 | FILE *f = fopen ("conftest.out", "w"); | ||||
4078 | return ferror (f) || fclose (f) != 0; | ||||
4079 | |||||
4080 | ; | ||||
4081 | return 0; | ||||
4082 | } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4083 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4084 | ac_clean_files="$ac_clean_files conftest.out" |
4085 | # Check that the compiler produces executables we can run. If not, either | ||||
4086 | # the compiler is broken, or we cross compile. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4088 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4089 | if test "$cross_compiling" != yes; then |
4090 | { { ac_try="$ac_link" | ||||
4091 | case "(($ac_try" in | ||||
4092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4093 | *) ac_try_echo=$ac_try;; | ||||
4094 | esac | ||||
4095 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4096 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4097 | (eval "$ac_link") 2>&5 |
4098 | ac_status=$? | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4100 | test $ac_status = 0; } |
4101 | if { ac_try='./conftest$ac_cv_exeext' | ||||
4102 | { { case "(($ac_try" in | ||||
4103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4104 | *) ac_try_echo=$ac_try;; | ||||
4105 | esac | ||||
4106 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4107 | $as_echo "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4108 | (eval "$ac_try") 2>&5 |
4109 | ac_status=$? | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4110 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4111 | test $ac_status = 0; }; }; then |
4112 | cross_compiling=no | ||||
4113 | else | ||||
4114 | if test "$cross_compiling" = maybe; then | ||||
4115 | cross_compiling=yes | ||||
4116 | else | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4117 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4118 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
4119 | as_fn_error $? "cannot run C compiled programs. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4120 | If you meant to cross compile, use \`--host'. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4121 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4122 | fi |
4123 | fi | ||||
4124 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
4126 | $as_echo "$cross_compiling" >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4127 | |
4128 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||||
4129 | ac_clean_files=$ac_clean_files_save | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4131 | $as_echo_n "checking for suffix of object files... " >&6; } | ||||
4132 | if ${ac_cv_objext+:} false; then : | ||||
4133 | $as_echo_n "(cached) " >&6 | ||||
4134 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4136 | /* end confdefs.h. */ |
4137 | |||||
4138 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4139 | main () |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4140 | { |
4141 | |||||
4142 | ; | ||||
4143 | return 0; | ||||
4144 | } | ||||
4145 | _ACEOF | ||||
4146 | rm -f conftest.o conftest.obj | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4147 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4148 | case "(($ac_try" in |
4149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4150 | *) ac_try_echo=$ac_try;; | ||||
4151 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4152 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4153 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4154 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4155 | ac_status=$? |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4157 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4158 | for ac_file in conftest.o conftest.obj conftest.*; do |
4159 | test -f "$ac_file" || continue; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4160 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4161 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4162 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4163 | break;; | ||||
4164 | esac | ||||
4165 | done | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4166 | else |
4167 | $as_echo "$as_me: failed program was:" >&5 | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4168 | sed 's/^/| /' conftest.$ac_ext >&5 |
4169 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4170 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4171 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4172 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4173 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4174 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4175 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4176 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4178 | $as_echo "$ac_cv_objext" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4179 | OBJEXT=$ac_cv_objext |
4180 | ac_objext=$OBJEXT | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4182 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||||
4183 | if ${ac_cv_c_compiler_gnu+:} false; then : | ||||
4184 | $as_echo_n "(cached) " >&6 | ||||
4185 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4187 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4189 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4190 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4191 | { |
4192 | #ifndef __GNUC__ | ||||
4193 | choke me | ||||
4194 | #endif | ||||
4195 | |||||
4196 | ; | ||||
4197 | return 0; | ||||
4198 | } | ||||
4199 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4200 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4201 | ac_compiler_gnu=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4202 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4203 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4204 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4206 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4207 | |||||
4208 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4210 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4211 | if test $ac_compiler_gnu = yes; then |
4212 | GCC=yes | ||||
4213 | else | ||||
4214 | GCC= | ||||
4215 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4216 | ac_test_CFLAGS=${CFLAGS+set} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4217 | ac_save_CFLAGS=$CFLAGS |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4219 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||||
4220 | if ${ac_cv_prog_cc_g+:} false; then : | ||||
4221 | $as_echo_n "(cached) " >&6 | ||||
4222 | else | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4223 | ac_save_c_werror_flag=$ac_c_werror_flag |
4224 | ac_c_werror_flag=yes | ||||
4225 | ac_cv_prog_cc_g=no | ||||
4226 | CFLAGS="-g" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4228 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4230 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4231 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4232 | { |
4233 | |||||
4234 | ; | ||||
4235 | return 0; | ||||
4236 | } | ||||
4237 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4238 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4239 | ac_cv_prog_cc_g=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4240 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4241 | CFLAGS="" |
4242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4243 | /* end confdefs.h. */ |
4244 | |||||
4245 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4246 | main () |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4247 | { |
4248 | |||||
4249 | ; | ||||
4250 | return 0; | ||||
4251 | } | ||||
4252 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4253 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4254 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4255 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4256 | ac_c_werror_flag=$ac_save_c_werror_flag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4257 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4259 | /* end confdefs.h. */ |
4260 | |||||
4261 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4262 | main () |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4263 | { |
4264 | |||||
4265 | ; | ||||
4266 | return 0; | ||||
4267 | } | ||||
4268 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4269 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4270 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4271 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4273 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4275 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4277 | ac_c_werror_flag=$ac_save_c_werror_flag |
4278 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4280 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||||
4281 | if test "$ac_test_CFLAGS" = set; then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4282 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4283 | elif test $ac_cv_prog_cc_g = yes; then |
4284 | if test "$GCC" = yes; then | ||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4285 | CFLAGS="-g -O2" |
4286 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4287 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4288 | fi |
4289 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4290 | if test "$GCC" = yes; then |
4291 | CFLAGS="-O2" | ||||
4292 | else | ||||
4293 | CFLAGS= | ||||
4294 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4295 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4297 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||||
4298 | if ${ac_cv_prog_cc_c89+:} false; then : | ||||
4299 | $as_echo_n "(cached) " >&6 | ||||
4300 | else | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4301 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4302 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4304 | /* end confdefs.h. */ |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4305 | #include <stdarg.h> |
4306 | #include <stdio.h> | ||||
4307 | struct stat; | ||||
4308 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||||
4309 | struct buf { int x; }; | ||||
4310 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||||
4311 | static char *e (p, i) | ||||
4312 | char **p; | ||||
4313 | int i; | ||||
4314 | { | ||||
4315 | return p[i]; | ||||
4316 | } | ||||
4317 | static char *f (char * (*g) (char **, int), char **p, ...) | ||||
4318 | { | ||||
4319 | char *s; | ||||
4320 | va_list v; | ||||
4321 | va_start (v,p); | ||||
4322 | s = g (p, va_arg (v,int)); | ||||
4323 | va_end (v); | ||||
4324 | return s; | ||||
4325 | } | ||||
4326 | |||||
4327 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||||
4328 | function prototypes and stuff, but not '\xHH' hex character constants. | ||||
4329 | These don't provoke an error unfortunately, instead are silently treated | ||||
4330 | as 'x'. The following induces an error, until -std is added to get | ||||
4331 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||||
4332 | array size at least. It's necessary to write '\x00'==0 to get something | ||||
4333 | that's true only with -std. */ | ||||
4334 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||||
4335 | |||||
4336 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||||
4337 | inside strings and character constants. */ | ||||
4338 | #define FOO(x) 'x' | ||||
4339 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||||
4340 | |||||
4341 | int test (int i, double x); | ||||
4342 | struct s1 {int (*f) (int a);}; | ||||
4343 | struct s2 {int (*f) (double a);}; | ||||
4344 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||||
4345 | int argc; | ||||
4346 | char **argv; | ||||
4347 | int | ||||
4348 | main () | ||||
4349 | { | ||||
4350 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||||
4351 | ; | ||||
4352 | return 0; | ||||
4353 | } | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4354 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4355 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4356 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4357 | do |
4358 | CC="$ac_save_CC $ac_arg" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4359 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4360 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4361 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4362 | rm -f core conftest.err conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4363 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4364 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4365 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4366 | CC=$ac_save_CC |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 4367 | |
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 4368 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4369 | # AC_CACHE_VAL |
4370 | case "x$ac_cv_prog_cc_c89" in | ||||
4371 | x) | ||||
4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||||
4373 | $as_echo "none needed" >&6; } ;; | ||||
4374 | xno) | ||||
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||||
4376 | $as_echo "unsupported" >&6; } ;; | ||||
4377 | *) | ||||
4378 | CC="$CC $ac_cv_prog_cc_c89" | ||||
4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||||
4380 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||||
4381 | esac | ||||
4382 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||||
4383 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4384 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4386 | ac_ext=c |
4387 | ac_cpp='$CPP $CPPFLAGS' | ||||
4388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4391 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4392 | ac_ext=c |
4393 | ac_cpp='$CPP $CPPFLAGS' | ||||
4394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4398 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4399 | # On Suns, sometimes $CPP names a directory. |
4400 | if test -n "$CPP" && test -d "$CPP"; then | ||||
4401 | CPP= | ||||
4402 | fi | ||||
4403 | if test -z "$CPP"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4404 | if ${ac_cv_prog_CPP+:} false; then : |
4405 | $as_echo_n "(cached) " >&6 | ||||
4406 | else | ||||
4407 | # Double quotes because CPP needs to be expanded | ||||
4408 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4409 | do |
4410 | ac_preproc_ok=false | ||||
4411 | for ac_c_preproc_warn_flag in '' yes | ||||
4412 | do | ||||
4413 | # Use a header file that comes with gcc, so configuring glibc | ||||
4414 | # with a fresh cross-compiler works. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4415 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4416 | # <limits.h> exists even on freestanding compilers. | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4417 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4418 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4420 | /* end confdefs.h. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4421 | #ifdef __STDC__ |
4422 | # include <limits.h> | ||||
4423 | #else | ||||
4424 | # include <assert.h> | ||||
4425 | #endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4426 | Syntax error |
4427 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4428 | if ac_fn_c_try_cpp "$LINENO"; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4429 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4430 | else |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4431 | # Broken: fails on valid input. |
4432 | continue | ||||
4433 | fi | ||||
4434 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4435 | |||||
4436 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4437 | # can be detected and how. | ||||
4438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4439 | /* end confdefs.h. */ | ||||
4440 | #include <ac_nonexistent.h> | ||||
4441 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4442 | if ac_fn_c_try_cpp "$LINENO"; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4443 | # Broken: success on invalid input. |
4444 | continue | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4445 | else |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4446 | # Passes both tests. |
4447 | ac_preproc_ok=: | ||||
4448 | break | ||||
4449 | fi | ||||
4450 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4451 | |||||
4452 | done | ||||
4453 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4454 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4455 | if $ac_preproc_ok; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4456 | break |
4457 | fi | ||||
4458 | |||||
4459 | done | ||||
4460 | ac_cv_prog_CPP=$CPP | ||||
4461 | |||||
4462 | fi | ||||
4463 | CPP=$ac_cv_prog_CPP | ||||
4464 | else | ||||
4465 | ac_cv_prog_CPP=$CPP | ||||
4466 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4468 | $as_echo "$CPP" >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4469 | ac_preproc_ok=false |
4470 | for ac_c_preproc_warn_flag in '' yes | ||||
4471 | do | ||||
4472 | # Use a header file that comes with gcc, so configuring glibc | ||||
4473 | # with a fresh cross-compiler works. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4474 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4475 | # <limits.h> exists even on freestanding compilers. | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4476 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4477 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4479 | /* end confdefs.h. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4480 | #ifdef __STDC__ |
4481 | # include <limits.h> | ||||
4482 | #else | ||||
4483 | # include <assert.h> | ||||
4484 | #endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4485 | Syntax error |
4486 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4487 | if ac_fn_c_try_cpp "$LINENO"; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4488 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4489 | else |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4490 | # Broken: fails on valid input. |
4491 | continue | ||||
4492 | fi | ||||
4493 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4494 | |||||
4495 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4496 | # can be detected and how. | ||||
4497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4498 | /* end confdefs.h. */ | ||||
4499 | #include <ac_nonexistent.h> | ||||
4500 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4501 | if ac_fn_c_try_cpp "$LINENO"; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4502 | # Broken: success on invalid input. |
4503 | continue | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4504 | else |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4505 | # Passes both tests. |
4506 | ac_preproc_ok=: | ||||
4507 | break | ||||
4508 | fi | ||||
4509 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4510 | |||||
4511 | done | ||||
4512 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4513 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4514 | if $ac_preproc_ok; then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4515 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4516 | else |
4517 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4518 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4519 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4520 | See \`config.log' for more details" "$LINENO" 5; } | ||||
4521 | fi | ||||
4522 | |||||
4523 | ac_ext=c | ||||
4524 | ac_cpp='$CPP $CPPFLAGS' | ||||
4525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
4528 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4530 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||||
4531 | if ${ac_cv_path_GREP+:} false; then : | ||||
4532 | $as_echo_n "(cached) " >&6 | ||||
4533 | else | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4534 | if test -z "$GREP"; then |
4535 | ac_path_GREP_found=false | ||||
4536 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4538 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
4539 | do | ||||
4540 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4541 | test -z "$as_dir" && as_dir=. |
4542 | for ac_prog in grep ggrep; do | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4543 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4544 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4545 | as_fn_executable_p "$ac_path_GREP" || continue |
4546 | # Check for GNU ac_path_GREP and select it if it is found. | ||||
4547 | # Check for GNU $ac_path_GREP | ||||
4548 | case `"$ac_path_GREP" --version 2>&1` in | ||||
4549 | *GNU*) | ||||
4550 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||||
4551 | *) | ||||
4552 | ac_count=0 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4553 | $as_echo_n 0123456789 >"conftest.in" |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4554 | while : |
4555 | do | ||||
4556 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4557 | mv "conftest.tmp" "conftest.in" | ||||
4558 | cp "conftest.in" "conftest.nl" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4559 | $as_echo 'GREP' >> "conftest.nl" |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4560 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4561 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4562 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4563 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||||
4564 | # Best one so far, save it but keep looking for a better one | ||||
4565 | ac_cv_path_GREP="$ac_path_GREP" | ||||
4566 | ac_path_GREP_max=$ac_count | ||||
4567 | fi | ||||
4568 | # 10*(2^10) chars as input seems more than enough | ||||
4569 | test $ac_count -gt 10 && break | ||||
4570 | done | ||||
4571 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4572 | esac | ||||
4573 | |||||
4574 | $ac_path_GREP_found && break 3 | ||||
4575 | done | ||||
4576 | done | ||||
4577 | done | ||||
4578 | IFS=$as_save_IFS | ||||
4579 | if test -z "$ac_cv_path_GREP"; then | ||||
4580 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||||
4581 | fi | ||||
4582 | else | ||||
4583 | ac_cv_path_GREP=$GREP | ||||
4584 | fi | ||||
4585 | |||||
4586 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4588 | $as_echo "$ac_cv_path_GREP" >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4589 | GREP="$ac_cv_path_GREP" |
4590 | |||||
4591 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4593 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||||
4594 | if ${ac_cv_path_SED+:} false; then : | ||||
4595 | $as_echo_n "(cached) " >&6 | ||||
4596 | else | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4597 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4598 | for ac_i in 1 2 3 4 5 6 7; do | ||||
4599 | ac_script="$ac_script$as_nl$ac_script" | ||||
4600 | done | ||||
4601 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||||
4602 | { ac_script=; unset ac_script;} | ||||
4603 | if test -z "$SED"; then | ||||
4604 | ac_path_SED_found=false | ||||
4605 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4607 | for as_dir in $PATH | ||||
4608 | do | ||||
4609 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4610 | test -z "$as_dir" && as_dir=. |
4611 | for ac_prog in sed gsed; do | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4612 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4613 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4614 | as_fn_executable_p "$ac_path_SED" || continue |
4615 | # Check for GNU ac_path_SED and select it if it is found. | ||||
4616 | # Check for GNU $ac_path_SED | ||||
4617 | case `"$ac_path_SED" --version 2>&1` in | ||||
4618 | *GNU*) | ||||
4619 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||||
4620 | *) | ||||
4621 | ac_count=0 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4622 | $as_echo_n 0123456789 >"conftest.in" |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4623 | while : |
4624 | do | ||||
4625 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4626 | mv "conftest.tmp" "conftest.in" | ||||
4627 | cp "conftest.in" "conftest.nl" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4628 | $as_echo '' >> "conftest.nl" |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4629 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4630 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4631 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4632 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||||
4633 | # Best one so far, save it but keep looking for a better one | ||||
4634 | ac_cv_path_SED="$ac_path_SED" | ||||
4635 | ac_path_SED_max=$ac_count | ||||
4636 | fi | ||||
4637 | # 10*(2^10) chars as input seems more than enough | ||||
4638 | test $ac_count -gt 10 && break | ||||
4639 | done | ||||
4640 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4641 | esac | ||||
4642 | |||||
4643 | $ac_path_SED_found && break 3 | ||||
4644 | done | ||||
4645 | done | ||||
4646 | done | ||||
4647 | IFS=$as_save_IFS | ||||
4648 | if test -z "$ac_cv_path_SED"; then | ||||
4649 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||||
4650 | fi | ||||
4651 | else | ||||
4652 | ac_cv_path_SED=$SED | ||||
4653 | fi | ||||
4654 | |||||
4655 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
4657 | $as_echo "$ac_cv_path_SED" >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4658 | SED="$ac_cv_path_SED" |
4659 | rm -f conftest.sed | ||||
4660 | |||||
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4661 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4662 | |
4663 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
4665 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4666 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4667 | # Check whether --with-cxx_main was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4668 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4669 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4670 | |
4671 | case $withval in | ||||
4672 | no) with_cxx_main=no | ||||
4673 | MAINCC='$(CC)';; | ||||
4674 | yes) with_cxx_main=yes | ||||
4675 | MAINCC='$(CXX)';; | ||||
4676 | *) with_cxx_main=yes | ||||
4677 | MAINCC=$withval | ||||
4678 | if test -z "$CXX" | ||||
4679 | then | ||||
4680 | CXX=$withval | ||||
4681 | fi;; | ||||
4682 | esac | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4683 | else |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4684 | |
4685 | with_cxx_main=no | ||||
4686 | MAINCC='$(CC)' | ||||
4687 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4688 | fi |
4689 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
4691 | $as_echo "$with_cxx_main" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4692 | |
4693 | preset_cxx="$CXX" | ||||
4694 | if test -z "$CXX" | ||||
4695 | then | ||||
4696 | case "$CC" in | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4697 | gcc) if test -n "$ac_tool_prefix"; then |
4698 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | ||||
4699 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4701 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4702 | if ${ac_cv_path_CXX+:} false; then : | ||||
4703 | $as_echo_n "(cached) " >&6 | ||||
4704 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4705 | case $CXX in |
4706 | [\\/]* | ?:[\\/]*) | ||||
4707 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4708 | ;; | ||||
4709 | *) | ||||
4710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4711 | for as_dir in notfound | ||||
4712 | do | ||||
4713 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4714 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4715 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4717 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4719 | break 2 |
4720 | fi | ||||
4721 | done | ||||
4722 | done | ||||
4723 | IFS=$as_save_IFS | ||||
4724 | |||||
4725 | ;; | ||||
4726 | esac | ||||
4727 | fi | ||||
4728 | CXX=$ac_cv_path_CXX | ||||
4729 | if test -n "$CXX"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4731 | $as_echo "$CXX" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4732 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4734 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4735 | fi |
4736 | |||||
4737 | |||||
4738 | fi | ||||
4739 | if test -z "$ac_cv_path_CXX"; then | ||||
4740 | ac_pt_CXX=$CXX | ||||
4741 | # Extract the first word of "g++", so it can be a program name with args. | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4742 | set dummy g++; ac_word=$2 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4744 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4745 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
4746 | $as_echo_n "(cached) " >&6 | ||||
4747 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4748 | case $ac_pt_CXX in |
4749 | [\\/]* | ?:[\\/]*) | ||||
4750 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4751 | ;; | ||||
4752 | *) | ||||
4753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4754 | for as_dir in notfound | ||||
4755 | do | ||||
4756 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4757 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4758 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4760 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4762 | break 2 |
4763 | fi | ||||
4764 | done | ||||
4765 | done | ||||
4766 | IFS=$as_save_IFS | ||||
4767 | |||||
4768 | ;; | ||||
4769 | esac | ||||
4770 | fi | ||||
4771 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4772 | if test -n "$ac_pt_CXX"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
4774 | $as_echo "$ac_pt_CXX" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4775 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4777 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4778 | fi |
4779 | |||||
4780 | if test "x$ac_pt_CXX" = x; then | ||||
4781 | CXX="g++" | ||||
4782 | else | ||||
4783 | case $cross_compiling:$ac_tool_warned in | ||||
4784 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4786 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4787 | ac_tool_warned=yes ;; |
4788 | esac | ||||
4789 | CXX=$ac_pt_CXX | ||||
4790 | fi | ||||
4791 | else | ||||
4792 | CXX="$ac_cv_path_CXX" | ||||
4793 | fi | ||||
4794 | ;; | ||||
4795 | cc) if test -n "$ac_tool_prefix"; then | ||||
4796 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | ||||
4797 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4799 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4800 | if ${ac_cv_path_CXX+:} false; then : | ||||
4801 | $as_echo_n "(cached) " >&6 | ||||
4802 | else | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4803 | case $CXX in |
4804 | [\\/]* | ?:[\\/]*) | ||||
4805 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4806 | ;; | ||||
4807 | *) | ||||
4808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4809 | for as_dir in notfound | ||||
4810 | do | ||||
4811 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4812 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4813 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4815 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4817 | break 2 |
4818 | fi | ||||
4819 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4820 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4821 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4822 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4823 | ;; |
4824 | esac | ||||
4825 | fi | ||||
4826 | CXX=$ac_cv_path_CXX | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4827 | if test -n "$CXX"; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4829 | $as_echo "$CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4830 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4832 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4833 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4834 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4835 | |
4836 | fi | ||||
4837 | if test -z "$ac_cv_path_CXX"; then | ||||
4838 | ac_pt_CXX=$CXX | ||||
4839 | # Extract the first word of "c++", so it can be a program name with args. | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4840 | set dummy c++; ac_word=$2 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4842 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4843 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
4844 | $as_echo_n "(cached) " >&6 | ||||
4845 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4846 | case $ac_pt_CXX in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4847 | [\\/]* | ?:[\\/]*) |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4848 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4849 | ;; |
4850 | *) | ||||
4851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4852 | for as_dir in notfound | ||||
4853 | do | ||||
4854 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4855 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4856 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4858 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4860 | break 2 |
4861 | fi | ||||
4862 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4863 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4864 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4865 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4866 | ;; |
4867 | esac | ||||
4868 | fi | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4869 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
4870 | if test -n "$ac_pt_CXX"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
4872 | $as_echo "$ac_pt_CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4873 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4875 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4876 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4877 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4878 | if test "x$ac_pt_CXX" = x; then |
4879 | CXX="c++" | ||||
4880 | else | ||||
4881 | case $cross_compiling:$ac_tool_warned in | ||||
4882 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4884 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4885 | ac_tool_warned=yes ;; |
4886 | esac | ||||
4887 | CXX=$ac_pt_CXX | ||||
4888 | fi | ||||
4889 | else | ||||
4890 | CXX="$ac_cv_path_CXX" | ||||
4891 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4892 | ;; |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4893 | clang|*/clang) if test -n "$ac_tool_prefix"; then |
4894 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | ||||
4895 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4897 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4898 | if ${ac_cv_path_CXX+:} false; then : | ||||
4899 | $as_echo_n "(cached) " >&6 | ||||
4900 | else | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4901 | case $CXX in |
4902 | [\\/]* | ?:[\\/]*) | ||||
4903 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4904 | ;; | ||||
4905 | *) | ||||
4906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4907 | for as_dir in notfound | ||||
4908 | do | ||||
4909 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4910 | test -z "$as_dir" && as_dir=. |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4911 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4912 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4913 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4915 | break 2 |
4916 | fi | ||||
4917 | done | ||||
4918 | done | ||||
4919 | IFS=$as_save_IFS | ||||
4920 | |||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4921 | ;; |
4922 | esac | ||||
4923 | fi | ||||
4924 | CXX=$ac_cv_path_CXX | ||||
4925 | if test -n "$CXX"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4927 | $as_echo "$CXX" >&6; } | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4928 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4930 | $as_echo "no" >&6; } | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4931 | fi |
4932 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4933 | |
4934 | fi | ||||
4935 | if test -z "$ac_cv_path_CXX"; then | ||||
4936 | ac_pt_CXX=$CXX | ||||
4937 | # Extract the first word of "clang++", so it can be a program name with args. | ||||
4938 | set dummy clang++; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4940 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4941 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
4942 | $as_echo_n "(cached) " >&6 | ||||
4943 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4944 | case $ac_pt_CXX in |
4945 | [\\/]* | ?:[\\/]*) | ||||
4946 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4947 | ;; | ||||
4948 | *) | ||||
4949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4950 | for as_dir in notfound | ||||
4951 | do | ||||
4952 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4953 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4954 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4956 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4958 | break 2 |
4959 | fi | ||||
4960 | done | ||||
4961 | done | ||||
4962 | IFS=$as_save_IFS | ||||
4963 | |||||
4964 | ;; | ||||
4965 | esac | ||||
4966 | fi | ||||
4967 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4968 | if test -n "$ac_pt_CXX"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
4970 | $as_echo "$ac_pt_CXX" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4971 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4973 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4974 | fi |
4975 | |||||
4976 | if test "x$ac_pt_CXX" = x; then | ||||
4977 | CXX="clang++" | ||||
4978 | else | ||||
4979 | case $cross_compiling:$ac_tool_warned in | ||||
4980 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4982 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4983 | ac_tool_warned=yes ;; |
4984 | esac | ||||
4985 | CXX=$ac_pt_CXX | ||||
4986 | fi | ||||
4987 | else | ||||
4988 | CXX="$ac_cv_path_CXX" | ||||
4989 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4990 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4991 | icc|*/icc) if test -n "$ac_tool_prefix"; then |
4992 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | ||||
4993 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4995 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4996 | if ${ac_cv_path_CXX+:} false; then : | ||||
4997 | $as_echo_n "(cached) " >&6 | ||||
4998 | else | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4999 | case $CXX in |
5000 | [\\/]* | ?:[\\/]*) | ||||
5001 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
5002 | ;; | ||||
5003 | *) | ||||
5004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5005 | for as_dir in notfound | ||||
5006 | do | ||||
5007 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5008 | test -z "$as_dir" && as_dir=. |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5009 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5010 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5011 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
5012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5013 | break 2 |
5014 | fi | ||||
5015 | done | ||||
5016 | done | ||||
5017 | IFS=$as_save_IFS | ||||
5018 | |||||
5019 | ;; | ||||
5020 | esac | ||||
5021 | fi | ||||
5022 | CXX=$ac_cv_path_CXX | ||||
5023 | if test -n "$CXX"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5025 | $as_echo "$CXX" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5026 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5028 | $as_echo "no" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5029 | fi |
5030 | |||||
5031 | |||||
5032 | fi | ||||
5033 | if test -z "$ac_cv_path_CXX"; then | ||||
5034 | ac_pt_CXX=$CXX | ||||
5035 | # Extract the first word of "icpc", so it can be a program name with args. | ||||
5036 | set dummy icpc; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5038 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5039 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
5040 | $as_echo_n "(cached) " >&6 | ||||
5041 | else | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5042 | case $ac_pt_CXX in |
5043 | [\\/]* | ?:[\\/]*) | ||||
5044 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
5045 | ;; | ||||
5046 | *) | ||||
5047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5048 | for as_dir in notfound | ||||
5049 | do | ||||
5050 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5051 | test -z "$as_dir" && as_dir=. |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5052 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5053 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5054 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
5055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5056 | break 2 |
5057 | fi | ||||
5058 | done | ||||
5059 | done | ||||
5060 | IFS=$as_save_IFS | ||||
5061 | |||||
5062 | ;; | ||||
5063 | esac | ||||
5064 | fi | ||||
5065 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
5066 | if test -n "$ac_pt_CXX"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
5068 | $as_echo "$ac_pt_CXX" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5069 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5071 | $as_echo "no" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5072 | fi |
5073 | |||||
5074 | if test "x$ac_pt_CXX" = x; then | ||||
5075 | CXX="icpc" | ||||
5076 | else | ||||
5077 | case $cross_compiling:$ac_tool_warned in | ||||
5078 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5080 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5081 | ac_tool_warned=yes ;; |
5082 | esac | ||||
5083 | CXX=$ac_pt_CXX | ||||
5084 | fi | ||||
5085 | else | ||||
5086 | CXX="$ac_cv_path_CXX" | ||||
5087 | fi | ||||
5088 | ;; | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5089 | esac |
5090 | if test "$CXX" = "notfound" | ||||
5091 | then | ||||
5092 | CXX="" | ||||
5093 | fi | ||||
5094 | fi | ||||
5095 | if test -z "$CXX" | ||||
5096 | then | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5097 | if test -n "$ac_tool_prefix"; then |
5098 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5099 | do | ||||
5100 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
5101 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5103 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5104 | if ${ac_cv_prog_CXX+:} false; then : | ||||
5105 | $as_echo_n "(cached) " >&6 | ||||
5106 | else | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5107 | if test -n "$CXX"; then |
5108 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||||
5109 | else | ||||
5110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5111 | for as_dir in $PATH | ||||
5112 | do | ||||
5113 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5114 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5115 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5117 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5119 | break 2 |
5120 | fi | ||||
5121 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5122 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5123 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5124 | |
5125 | fi | ||||
5126 | fi | ||||
5127 | CXX=$ac_cv_prog_CXX | ||||
5128 | if test -n "$CXX"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5130 | $as_echo "$CXX" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5131 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5133 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5134 | fi |
5135 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5136 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5137 | test -n "$CXX" && break |
5138 | done | ||||
5139 | fi | ||||
5140 | if test -z "$CXX"; then | ||||
5141 | ac_ct_CXX=$CXX | ||||
5142 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5143 | do | ||||
5144 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
5145 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5147 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5148 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | ||||
5149 | $as_echo_n "(cached) " >&6 | ||||
5150 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5151 | if test -n "$ac_ct_CXX"; then |
5152 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||||
5153 | else | ||||
5154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5155 | for as_dir in $PATH | ||||
5156 | do | ||||
5157 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5158 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5159 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5161 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5163 | break 2 |
5164 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5165 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5166 | done |
5167 | IFS=$as_save_IFS | ||||
5168 | |||||
5169 | fi | ||||
5170 | fi | ||||
5171 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||||
5172 | if test -n "$ac_ct_CXX"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5174 | $as_echo "$ac_ct_CXX" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5175 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5177 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5178 | fi |
5179 | |||||
5180 | |||||
5181 | test -n "$ac_ct_CXX" && break | ||||
5182 | done | ||||
5183 | |||||
5184 | if test "x$ac_ct_CXX" = x; then | ||||
5185 | CXX="notfound" | ||||
5186 | else | ||||
5187 | case $cross_compiling:$ac_tool_warned in | ||||
5188 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5190 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5191 | ac_tool_warned=yes ;; |
5192 | esac | ||||
5193 | CXX=$ac_ct_CXX | ||||
5194 | fi | ||||
5195 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5196 | |
5197 | if test "$CXX" = "notfound" | ||||
5198 | then | ||||
5199 | CXX="" | ||||
5200 | fi | ||||
5201 | fi | ||||
5202 | if test "$preset_cxx" != "$CXX" | ||||
5203 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5205 | |
5206 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5207 | If this is not intended, then set CXX on the configure command line. | ||||
5208 | " >&5 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5209 | $as_echo "$as_me: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5210 | |
5211 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5212 | If this is not intended, then set CXX on the configure command line. | ||||
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5213 | " >&6;} |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5214 | fi |
5215 | |||||
5216 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5217 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
5218 | |||||
5219 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 |
5221 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5222 | cat >> conftest.c <<EOF |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5223 | #undef bfin |
5224 | #undef cris | ||||
5225 | #undef fr30 | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5226 | #undef linux |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5227 | #undef hppa |
5228 | #undef hpux | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5229 | #undef i386 |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5230 | #undef mips |
doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5231 | #undef powerpc |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5232 | #undef sparc |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5233 | #undef unix |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5234 | #if defined(__ANDROID__) |
Xavier de Gaye | 32cf1ac | 2016-12-10 17:31:28 +0100 | [diff] [blame] | 5235 | # Android is not a multiarch system. |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5236 | #elif defined(__linux__) |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5237 | # if defined(__x86_64__) && defined(__LP64__) |
5238 | x86_64-linux-gnu | ||||
5239 | # elif defined(__x86_64__) && defined(__ILP32__) | ||||
5240 | x86_64-linux-gnux32 | ||||
5241 | # elif defined(__i386__) | ||||
5242 | i386-linux-gnu | ||||
5243 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | ||||
5244 | # if defined(__ILP32__) | ||||
5245 | aarch64_ilp32-linux-gnu | ||||
5246 | # else | ||||
5247 | aarch64-linux-gnu | ||||
5248 | # endif | ||||
5249 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | ||||
5250 | # if defined(__ILP32__) | ||||
5251 | aarch64_be_ilp32-linux-gnu | ||||
5252 | # else | ||||
5253 | aarch64_be-linux-gnu | ||||
5254 | # endif | ||||
5255 | # elif defined(__alpha__) | ||||
5256 | alpha-linux-gnu | ||||
5257 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | ||||
5258 | # if defined(__ARMEL__) | ||||
5259 | arm-linux-gnueabihf | ||||
5260 | # else | ||||
5261 | armeb-linux-gnueabihf | ||||
5262 | # endif | ||||
5263 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | ||||
5264 | # if defined(__ARMEL__) | ||||
5265 | arm-linux-gnueabi | ||||
5266 | # else | ||||
5267 | armeb-linux-gnueabi | ||||
5268 | # endif | ||||
5269 | # elif defined(__hppa__) | ||||
5270 | hppa-linux-gnu | ||||
5271 | # elif defined(__ia64__) | ||||
5272 | ia64-linux-gnu | ||||
5273 | # elif defined(__m68k__) && !defined(__mcoldfire__) | ||||
5274 | m68k-linux-gnu | ||||
Matthias Klose | ddbe976 | 2018-04-30 19:22:16 +0200 | [diff] [blame] | 5275 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) |
5276 | # if _MIPS_SIM == _ABIO32 | ||||
5277 | mipsisa32r6el-linux-gnu | ||||
5278 | # elif _MIPS_SIM == _ABIN32 | ||||
5279 | mipsisa64r6el-linux-gnuabin32 | ||||
5280 | # elif _MIPS_SIM == _ABI64 | ||||
5281 | mipsisa64r6el-linux-gnuabi64 | ||||
5282 | # else | ||||
5283 | # error unknown platform triplet | ||||
5284 | # endif | ||||
5285 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) | ||||
5286 | # if _MIPS_SIM == _ABIO32 | ||||
5287 | mipsisa32r6-linux-gnu | ||||
5288 | # elif _MIPS_SIM == _ABIN32 | ||||
5289 | mipsisa64r6-linux-gnuabin32 | ||||
5290 | # elif _MIPS_SIM == _ABI64 | ||||
5291 | mipsisa64r6-linux-gnuabi64 | ||||
5292 | # else | ||||
5293 | # error unknown platform triplet | ||||
5294 | # endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5295 | # elif defined(__mips_hard_float) && defined(_MIPSEL) |
5296 | # if _MIPS_SIM == _ABIO32 | ||||
5297 | mipsel-linux-gnu | ||||
5298 | # elif _MIPS_SIM == _ABIN32 | ||||
5299 | mips64el-linux-gnuabin32 | ||||
5300 | # elif _MIPS_SIM == _ABI64 | ||||
5301 | mips64el-linux-gnuabi64 | ||||
5302 | # else | ||||
5303 | # error unknown platform triplet | ||||
5304 | # endif | ||||
5305 | # elif defined(__mips_hard_float) | ||||
5306 | # if _MIPS_SIM == _ABIO32 | ||||
5307 | mips-linux-gnu | ||||
5308 | # elif _MIPS_SIM == _ABIN32 | ||||
5309 | mips64-linux-gnuabin32 | ||||
5310 | # elif _MIPS_SIM == _ABI64 | ||||
5311 | mips64-linux-gnuabi64 | ||||
5312 | # else | ||||
5313 | # error unknown platform triplet | ||||
5314 | # endif | ||||
5315 | # elif defined(__or1k__) | ||||
5316 | or1k-linux-gnu | ||||
5317 | # elif defined(__powerpc__) && defined(__SPE__) | ||||
5318 | powerpc-linux-gnuspe | ||||
5319 | # elif defined(__powerpc64__) | ||||
5320 | # if defined(__LITTLE_ENDIAN__) | ||||
5321 | powerpc64le-linux-gnu | ||||
5322 | # else | ||||
5323 | powerpc64-linux-gnu | ||||
5324 | # endif | ||||
5325 | # elif defined(__powerpc__) | ||||
5326 | powerpc-linux-gnu | ||||
5327 | # elif defined(__s390x__) | ||||
5328 | s390x-linux-gnu | ||||
5329 | # elif defined(__s390__) | ||||
5330 | s390-linux-gnu | ||||
5331 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | ||||
5332 | sh4-linux-gnu | ||||
5333 | # elif defined(__sparc__) && defined(__arch64__) | ||||
5334 | sparc64-linux-gnu | ||||
5335 | # elif defined(__sparc__) | ||||
5336 | sparc-linux-gnu | ||||
Matthias Klose | ddbe976 | 2018-04-30 19:22:16 +0200 | [diff] [blame] | 5337 | # elif defined(__riscv) |
5338 | # if __riscv_xlen == 32 | ||||
5339 | riscv32-linux-gnu | ||||
5340 | # elif __riscv_xlen == 64 | ||||
5341 | riscv64-linux-gnu | ||||
5342 | # else | ||||
5343 | # error unknown platform triplet | ||||
5344 | # endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5345 | # else |
5346 | # error unknown platform triplet | ||||
5347 | # endif | ||||
5348 | #elif defined(__FreeBSD_kernel__) | ||||
5349 | # if defined(__LP64__) | ||||
5350 | x86_64-kfreebsd-gnu | ||||
5351 | # elif defined(__i386__) | ||||
5352 | i386-kfreebsd-gnu | ||||
5353 | # else | ||||
5354 | # error unknown platform triplet | ||||
5355 | # endif | ||||
5356 | #elif defined(__gnu_hurd__) | ||||
5357 | i386-gnu | ||||
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5358 | #elif defined(__APPLE__) |
5359 | darwin | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 5360 | #elif defined(__VXWORKS__) |
5361 | vxworks | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5362 | #else |
5363 | # error unknown platform triplet | ||||
5364 | #endif | ||||
5365 | |||||
5366 | EOF | ||||
5367 | |||||
Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5368 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5369 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 |
5371 | $as_echo "$PLATFORM_TRIPLET" >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5372 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5374 | $as_echo "none" >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5375 | fi |
5376 | rm -f conftest.c conftest.out | ||||
5377 | |||||
5378 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | ||||
5379 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | ||||
5380 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | ||||
5381 | fi | ||||
doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5382 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then |
5383 | MULTIARCH=$PLATFORM_TRIPLET | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5384 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5385 | |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5386 | if test x$MULTIARCH != x; then |
5387 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | ||||
5388 | fi | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5389 | |
5390 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
5392 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | ||||
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5393 | save_LDFLAGS="$LDFLAGS" |
5394 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5395 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5397 | /* end confdefs.h. */ | ||||
5398 | |||||
5399 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5400 | main () |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5401 | { |
5402 | |||||
5403 | ; | ||||
5404 | return 0; | ||||
5405 | } | ||||
5406 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5407 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5408 | NO_AS_NEEDED="-Wl,--no-as-needed" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5410 | $as_echo "yes" >&6; } | ||||
5411 | else | ||||
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5412 | NO_AS_NEEDED="" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5414 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5415 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5416 | rm -f core conftest.err conftest.$ac_objext \ |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5417 | conftest$ac_exeext conftest.$ac_ext |
5418 | LDFLAGS="$save_LDFLAGS" | ||||
5419 | |||||
5420 | |||||
5421 | |||||
5422 | # checks for UNIX variants that set C preprocessor variables | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5423 | |
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||||
5425 | $as_echo_n "checking for egrep... " >&6; } | ||||
5426 | if ${ac_cv_path_EGREP+:} false; then : | ||||
5427 | $as_echo_n "(cached) " >&6 | ||||
5428 | else | ||||
5429 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||||
5430 | then ac_cv_path_EGREP="$GREP -E" | ||||
5431 | else | ||||
5432 | if test -z "$EGREP"; then | ||||
5433 | ac_path_EGREP_found=false | ||||
5434 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
5435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5436 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5437 | do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5438 | IFS=$as_save_IFS |
5439 | test -z "$as_dir" && as_dir=. | ||||
5440 | for ac_prog in egrep; do | ||||
5441 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
5442 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
5443 | as_fn_executable_p "$ac_path_EGREP" || continue | ||||
5444 | # Check for GNU ac_path_EGREP and select it if it is found. | ||||
5445 | # Check for GNU $ac_path_EGREP | ||||
5446 | case `"$ac_path_EGREP" --version 2>&1` in | ||||
5447 | *GNU*) | ||||
5448 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||||
5449 | *) | ||||
5450 | ac_count=0 | ||||
5451 | $as_echo_n 0123456789 >"conftest.in" | ||||
5452 | while : | ||||
5453 | do | ||||
5454 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
5455 | mv "conftest.tmp" "conftest.in" | ||||
5456 | cp "conftest.in" "conftest.nl" | ||||
5457 | $as_echo 'EGREP' >> "conftest.nl" | ||||
5458 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
5459 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
5460 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
5461 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||||
5462 | # Best one so far, save it but keep looking for a better one | ||||
5463 | ac_cv_path_EGREP="$ac_path_EGREP" | ||||
5464 | ac_path_EGREP_max=$ac_count | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5465 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5466 | # 10*(2^10) chars as input seems more than enough |
5467 | test $ac_count -gt 10 && break | ||||
5468 | done | ||||
5469 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
5470 | esac | ||||
5471 | |||||
5472 | $ac_path_EGREP_found && break 3 | ||||
5473 | done | ||||
5474 | done | ||||
5475 | done | ||||
5476 | IFS=$as_save_IFS | ||||
5477 | if test -z "$ac_cv_path_EGREP"; then | ||||
5478 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5479 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5480 | else |
5481 | ac_cv_path_EGREP=$EGREP | ||||
5482 | fi | ||||
5483 | |||||
5484 | fi | ||||
5485 | fi | ||||
5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||||
5487 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||||
5488 | EGREP="$ac_cv_path_EGREP" | ||||
5489 | |||||
5490 | |||||
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||||
5492 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
5493 | if ${ac_cv_header_stdc+:} false; then : | ||||
5494 | $as_echo_n "(cached) " >&6 | ||||
5495 | else | ||||
5496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5497 | /* end confdefs.h. */ | ||||
5498 | #include <stdlib.h> | ||||
5499 | #include <stdarg.h> | ||||
5500 | #include <string.h> | ||||
5501 | #include <float.h> | ||||
5502 | |||||
5503 | int | ||||
5504 | main () | ||||
5505 | { | ||||
5506 | |||||
5507 | ; | ||||
5508 | return 0; | ||||
5509 | } | ||||
5510 | _ACEOF | ||||
5511 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
5512 | ac_cv_header_stdc=yes | ||||
5513 | else | ||||
5514 | ac_cv_header_stdc=no | ||||
5515 | fi | ||||
5516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
5517 | |||||
5518 | if test $ac_cv_header_stdc = yes; then | ||||
5519 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
5520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5521 | /* end confdefs.h. */ | ||||
5522 | #include <string.h> | ||||
5523 | |||||
5524 | _ACEOF | ||||
5525 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
5526 | $EGREP "memchr" >/dev/null 2>&1; then : | ||||
5527 | |||||
5528 | else | ||||
5529 | ac_cv_header_stdc=no | ||||
5530 | fi | ||||
5531 | rm -f conftest* | ||||
5532 | |||||
5533 | fi | ||||
5534 | |||||
5535 | if test $ac_cv_header_stdc = yes; then | ||||
5536 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
5537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5538 | /* end confdefs.h. */ | ||||
5539 | #include <stdlib.h> | ||||
5540 | |||||
5541 | _ACEOF | ||||
5542 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
5543 | $EGREP "free" >/dev/null 2>&1; then : | ||||
5544 | |||||
5545 | else | ||||
5546 | ac_cv_header_stdc=no | ||||
5547 | fi | ||||
5548 | rm -f conftest* | ||||
5549 | |||||
5550 | fi | ||||
5551 | |||||
5552 | if test $ac_cv_header_stdc = yes; then | ||||
5553 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||
5554 | if test "$cross_compiling" = yes; then : | ||||
5555 | : | ||||
5556 | else | ||||
5557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5558 | /* end confdefs.h. */ | ||||
5559 | #include <ctype.h> | ||||
5560 | #include <stdlib.h> | ||||
5561 | #if ((' ' & 0x0FF) == 0x020) | ||||
5562 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
5563 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
5564 | #else | ||||
5565 | # define ISLOWER(c) \ | ||||
5566 | (('a' <= (c) && (c) <= 'i') \ | ||||
5567 | || ('j' <= (c) && (c) <= 'r') \ | ||||
5568 | || ('s' <= (c) && (c) <= 'z')) | ||||
5569 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
5570 | #endif | ||||
5571 | |||||
5572 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||||
5573 | int | ||||
5574 | main () | ||||
5575 | { | ||||
5576 | int i; | ||||
5577 | for (i = 0; i < 256; i++) | ||||
5578 | if (XOR (islower (i), ISLOWER (i)) | ||||
5579 | || toupper (i) != TOUPPER (i)) | ||||
5580 | return 2; | ||||
5581 | return 0; | ||||
5582 | } | ||||
5583 | _ACEOF | ||||
5584 | if ac_fn_c_try_run "$LINENO"; then : | ||||
5585 | |||||
5586 | else | ||||
5587 | ac_cv_header_stdc=no | ||||
5588 | fi | ||||
5589 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
5590 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
5591 | fi | ||||
5592 | |||||
5593 | fi | ||||
5594 | fi | ||||
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||||
5596 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
5597 | if test $ac_cv_header_stdc = yes; then | ||||
5598 | |||||
5599 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||||
5600 | |||||
5601 | fi | ||||
5602 | |||||
5603 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||||
5604 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||||
5605 | inttypes.h stdint.h unistd.h | ||||
5606 | do : | ||||
5607 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
5608 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||||
5609 | " | ||||
5610 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
5611 | cat >>confdefs.h <<_ACEOF | ||||
5612 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
5613 | _ACEOF | ||||
5614 | |||||
5615 | fi | ||||
5616 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5617 | done |
5618 | |||||
5619 | |||||
5620 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5621 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5622 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | ||||
5623 | MINIX=yes | ||||
5624 | else | ||||
5625 | MINIX= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5626 | fi |
5627 | |||||
5628 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5629 | if test "$MINIX" = yes; then |
5630 | |||||
5631 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5632 | |
5633 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5634 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5635 | |
5636 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5637 | $as_echo "#define _MINIX 1" >>confdefs.h |
5638 | |||||
5639 | fi | ||||
5640 | |||||
5641 | |||||
5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||||
5643 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||||
5644 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | ||||
5645 | $as_echo_n "(cached) " >&6 | ||||
5646 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5648 | /* end confdefs.h. */ | ||||
5649 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5650 | # define __EXTENSIONS__ 1 |
5651 | $ac_includes_default | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5652 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5653 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5654 | { |
5655 | |||||
5656 | ; | ||||
5657 | return 0; | ||||
5658 | } | ||||
5659 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5660 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5661 | ac_cv_safe_to_define___extensions__=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5662 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5663 | ac_cv_safe_to_define___extensions__=no |
5664 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5666 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
5668 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||||
5669 | test $ac_cv_safe_to_define___extensions__ = yes && | ||||
5670 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5671 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5672 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5673 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5674 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5675 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5676 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5677 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5678 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5679 | |
5680 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5681 | |
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 | ||||
5683 | $as_echo_n "checking for the Android API level... " >&6; } | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5684 | cat >> conftest.c <<EOF |
5685 | #ifdef __ANDROID__ | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5686 | android_api = __ANDROID_API__ |
5687 | arm_arch = __ARM_ARCH | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5688 | #else |
5689 | #error not Android | ||||
5690 | #endif | ||||
5691 | EOF | ||||
5692 | |||||
5693 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5694 | ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` |
5695 | _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 |
5697 | $as_echo "$ANDROID_API_LEVEL" >&6; } | ||||
xdegaye | c06c22e | 2017-11-23 11:44:38 +0100 | [diff] [blame] | 5698 | if test -z "$ANDROID_API_LEVEL"; then |
5699 | echo 'Fatal: you must define __ANDROID_API__' | ||||
5700 | exit 1 | ||||
5701 | fi | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5702 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5703 | cat >>confdefs.h <<_ACEOF |
5704 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | ||||
5705 | _ACEOF | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5706 | |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5707 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 |
5709 | $as_echo_n "checking for the Android arm ABI... " >&6; } | ||||
5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 | ||||
5711 | $as_echo "$_arm_arch" >&6; } | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5712 | if test "$_arm_arch" = 7; then |
5713 | BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" | ||||
5714 | LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" | ||||
5715 | fi | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5716 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 |
5718 | $as_echo "not Android" >&6; } | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5719 | fi |
5720 | rm -f conftest.c conftest.out | ||||
5721 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5722 | # Check for unsupported systems |
5723 | case $ac_sys_system/$ac_sys_release in | ||||
5724 | atheos*|Linux*/1*) | ||||
5725 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | ||||
5726 | echo See README for details. | ||||
5727 | exit 1;; | ||||
5728 | esac | ||||
5729 | |||||
5730 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
5732 | $as_echo_n "checking for --with-suffix... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5733 | |
5734 | # Check whether --with-suffix was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5735 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5736 | withval=$with_suffix; |
5737 | case $withval in | ||||
5738 | no) EXEEXT=;; | ||||
5739 | yes) EXEEXT=.exe;; | ||||
5740 | *) EXEEXT=$withval;; | ||||
5741 | esac | ||||
5742 | fi | ||||
5743 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
5745 | $as_echo "$EXEEXT" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5746 | |
5747 | # Test whether we're running on a non-case-sensitive system, in which | ||||
5748 | # case we give a warning if no ext is given | ||||
5749 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
5751 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5752 | if test ! -d CaseSensitiveTestDir; then |
5753 | mkdir CaseSensitiveTestDir | ||||
5754 | fi | ||||
5755 | |||||
5756 | if test -d casesensitivetestdir | ||||
5757 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5759 | $as_echo "yes" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5760 | BUILDEXEEXT=.exe |
5761 | else | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5763 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5764 | BUILDEXEEXT=$EXEEXT |
5765 | fi | ||||
5766 | rmdir CaseSensitiveTestDir | ||||
5767 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5768 | case $ac_sys_system in |
5769 | hp*|HP*) | ||||
5770 | case $CC in | ||||
5771 | cc|*/cc) CC="$CC -Ae";; | ||||
5772 | esac;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5773 | esac |
5774 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5775 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
5777 | $as_echo_n "checking LIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5778 | if test -z "$LIBRARY" |
5779 | then | ||||
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5780 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5781 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
5783 | $as_echo "$LIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5784 | |
5785 | # LDLIBRARY is the name of the library to link against (as opposed to the | ||||
5786 | # name of the library into which to insert object files). BLDLIBRARY is also | ||||
5787 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | ||||
5788 | # is blank as the main program is not linked directly against LDLIBRARY. | ||||
5789 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | ||||
5790 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | ||||
5791 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | ||||
5792 | # DLLLIBRARY is the shared (i.e., DLL) library. | ||||
5793 | # | ||||
5794 | # RUNSHARED is used to run shared python without installed libraries | ||||
5795 | # | ||||
5796 | # INSTSONAME is the name of the shared library that will be use to install | ||||
5797 | # on the system - some systems like version suffix, others don't | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5798 | # |
5799 | # LDVERSION is the shared library version number, normally the Python version | ||||
5800 | # with the ABI build flags appended. | ||||
5801 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5802 | |
5803 | |||||
5804 | |||||
5805 | |||||
5806 | |||||
5807 | |||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5808 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5809 | LDLIBRARY="$LIBRARY" |
5810 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5811 | INSTSONAME='$(LDLIBRARY)' | ||||
5812 | DLLLIBRARY='' | ||||
5813 | LDLIBRARYDIR='' | ||||
5814 | RUNSHARED='' | ||||
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5815 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5816 | |
5817 | # LINKCC is the command that links the python executable -- default is $(CC). | ||||
5818 | # If CXX is set, and if it is needed to link a main function that was | ||||
5819 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | ||||
5820 | # python might then depend on the C++ runtime | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5821 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
5823 | $as_echo_n "checking LINKCC... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5824 | if test -z "$LINKCC" |
5825 | then | ||||
5826 | LINKCC='$(PURIFY) $(MAINCC)' | ||||
5827 | case $ac_sys_system in | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5828 | QNX*) |
5829 | # qcc must be used because the other compilers do not | ||||
5830 | # support -N. | ||||
5831 | LINKCC=qcc;; | ||||
5832 | esac | ||||
5833 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
5835 | $as_echo "$LINKCC" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5836 | |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 5837 | # EXPORTSYMS holds the list of exported symbols for AIX. |
5838 | # EXPORTSFROM holds the module name exporting symbols on AIX. | ||||
5839 | EXPORTSYMS= | ||||
5840 | EXPORTSFROM= | ||||
5841 | |||||
5842 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5 |
5844 | $as_echo_n "checking EXPORTSYMS... " >&6; } | ||||
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 5845 | case $ac_sys_system in |
5846 | AIX*) | ||||
5847 | EXPORTSYMS="Modules/python.exp" | ||||
Kevin Adler | c79667f | 2020-11-16 09:16:10 -0600 | [diff] [blame] | 5848 | EXPORTSFROM=. # the main executable |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 5849 | ;; |
5850 | esac | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5 |
5852 | $as_echo "$EXPORTSYMS" >&6; } | ||||
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 5853 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5854 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
5855 | # make sure we default having it set to "no": this is used by | ||||
5856 | # distutils.unixccompiler to know if it should add --enable-new-dtags | ||||
5857 | # to linker command lines, and failing to detect GNU ld simply results | ||||
5858 | # in the same bahaviour as before. | ||||
5859 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5861 | $as_echo_n "checking for GNU ld... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5862 | ac_prog=ld |
5863 | if test "$GCC" = yes; then | ||||
5864 | ac_prog=`$CC -print-prog-name=ld` | ||||
5865 | fi | ||||
5866 | case `"$ac_prog" -V 2>&1 < /dev/null` in | ||||
5867 | *GNU*) | ||||
5868 | GNULD=yes;; | ||||
5869 | *) | ||||
5870 | GNULD=no;; | ||||
5871 | esac | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
5873 | $as_echo "$GNULD" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5874 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
5876 | $as_echo_n "checking for --enable-shared... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5877 | # Check whether --enable-shared was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5878 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5879 | enableval=$enable_shared; |
5880 | fi | ||||
5881 | |||||
5882 | |||||
5883 | if test -z "$enable_shared" | ||||
5884 | then | ||||
5885 | case $ac_sys_system in | ||||
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5886 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5887 | enable_shared="yes";; |
5888 | *) | ||||
5889 | enable_shared="no";; | ||||
5890 | esac | ||||
5891 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
5893 | $as_echo "$enable_shared" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5894 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
5896 | $as_echo_n "checking for --enable-profiling... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5897 | # Check whether --enable-profiling was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5898 | if test "${enable_profiling+set}" = set; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5899 | enableval=$enable_profiling; |
5900 | fi | ||||
5901 | |||||
5902 | if test "x$enable_profiling" = xyes; then | ||||
5903 | ac_save_cc="$CC" | ||||
Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5904 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5906 | /* end confdefs.h. */ |
5907 | int main() { return 0; } | ||||
5908 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5909 | if ac_fn_c_try_link "$LINENO"; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5910 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5911 | else |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5912 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5913 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5914 | rm -f core conftest.err conftest.$ac_objext \ |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5915 | conftest$ac_exeext conftest.$ac_ext |
5916 | CC="$ac_save_cc" | ||||
5917 | else | ||||
5918 | enable_profiling=no | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5919 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
5921 | $as_echo "$enable_profiling" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5922 | |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5923 | if test "x$enable_profiling" = xyes; then |
5924 | BASECFLAGS="-pg $BASECFLAGS" | ||||
5925 | LDFLAGS="-pg $LDFLAGS" | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5926 | fi |
5927 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
5929 | $as_echo_n "checking LDLIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5930 | |
5931 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | ||||
5932 | # library that we build, but we do not want to link against it (we | ||||
5933 | # will find it with a -framework option). For this reason there is an | ||||
5934 | # extra variable BLDLIBRARY against which Python and the extension | ||||
5935 | # modules are linked, BLDLIBRARY. This is normally the same as | ||||
5936 | # LDLIBRARY, but empty for MacOSX framework builds. | ||||
5937 | if test "$enable_framework" | ||||
5938 | then | ||||
5939 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5940 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5941 | BLDLIBRARY='' |
5942 | else | ||||
5943 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5944 | fi | ||||
5945 | |||||
5946 | # Other platforms follow | ||||
5947 | if test $enable_shared = "yes"; then | ||||
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5948 | PY_ENABLE_SHARED=1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5949 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 5950 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5951 | |
5952 | case $ac_sys_system in | ||||
5953 | CYGWIN*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5954 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
5955 | DLLLIBRARY='libpython$(LDVERSION).dll' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5956 | ;; |
5957 | SunOS*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5958 | LDLIBRARY='libpython$(LDVERSION).so' |
5959 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5960 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5961 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5962 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5963 | then |
5964 | PY3LIBRARY=libpython3.so | ||||
5965 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5966 | ;; |
pxinwr | c117426 | 2020-12-15 06:14:43 +0800 | [diff] [blame] | 5967 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5968 | LDLIBRARY='libpython$(LDVERSION).so' |
5969 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5970 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5971 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5972 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5973 | then |
5974 | PY3LIBRARY=libpython3.so | ||||
5975 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5976 | ;; |
5977 | hp*|HP*) | ||||
5978 | case `uname -m` in | ||||
5979 | ia64) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5980 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5981 | ;; |
5982 | *) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5983 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5984 | ;; |
5985 | esac | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5986 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5987 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5988 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5989 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5990 | LDLIBRARY='libpython$(LDVERSION).dylib' |
5991 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5992 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5993 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5994 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5995 | LDLIBRARY='libpython$(LDVERSION).so' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5996 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5997 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5998 | |
5999 | esac | ||||
6000 | else # shared is disabled | ||||
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 6001 | PY_ENABLE_SHARED=0 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6002 | case $ac_sys_system in |
6003 | CYGWIN*) | ||||
6004 | BLDLIBRARY='$(LIBRARY)' | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6005 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6006 | ;; |
6007 | esac | ||||
6008 | fi | ||||
6009 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 6010 | if test "$cross_compiling" = yes; then |
6011 | RUNSHARED= | ||||
6012 | fi | ||||
6013 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
6015 | $as_echo "$LDLIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6016 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6017 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6018 | if test -n "$ac_tool_prefix"; then |
6019 | for ac_prog in ar aal | ||||
6020 | do | ||||
6021 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
6022 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6024 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6025 | if ${ac_cv_prog_AR+:} false; then : | ||||
6026 | $as_echo_n "(cached) " >&6 | ||||
6027 | else | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6028 | if test -n "$AR"; then |
6029 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||||
6030 | else | ||||
6031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6032 | for as_dir in $PATH | ||||
6033 | do | ||||
6034 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6035 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6036 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6038 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6040 | break 2 |
6041 | fi | ||||
6042 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6043 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6044 | IFS=$as_save_IFS |
6045 | |||||
6046 | fi | ||||
6047 | fi | ||||
6048 | AR=$ac_cv_prog_AR | ||||
6049 | if test -n "$AR"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6051 | $as_echo "$AR" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6052 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6054 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6055 | fi |
6056 | |||||
6057 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6058 | test -n "$AR" && break |
6059 | done | ||||
6060 | fi | ||||
6061 | if test -z "$AR"; then | ||||
6062 | ac_ct_AR=$AR | ||||
6063 | for ac_prog in ar aal | ||||
6064 | do | ||||
6065 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6066 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6068 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6069 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||||
6070 | $as_echo_n "(cached) " >&6 | ||||
6071 | else | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6072 | if test -n "$ac_ct_AR"; then |
6073 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||||
6074 | else | ||||
6075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6076 | for as_dir in $PATH | ||||
6077 | do | ||||
6078 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6079 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6080 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6082 | ac_cv_prog_ac_ct_AR="$ac_prog" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6084 | break 2 |
6085 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6086 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6087 | done |
6088 | IFS=$as_save_IFS | ||||
6089 | |||||
6090 | fi | ||||
6091 | fi | ||||
6092 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||||
6093 | if test -n "$ac_ct_AR"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6095 | $as_echo "$ac_ct_AR" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6096 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6098 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6099 | fi |
6100 | |||||
6101 | |||||
6102 | test -n "$ac_ct_AR" && break | ||||
6103 | done | ||||
6104 | |||||
6105 | if test "x$ac_ct_AR" = x; then | ||||
6106 | AR="ar" | ||||
6107 | else | ||||
6108 | case $cross_compiling:$ac_tool_warned in | ||||
6109 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6111 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6112 | ac_tool_warned=yes ;; |
6113 | esac | ||||
6114 | AR=$ac_ct_AR | ||||
6115 | fi | ||||
6116 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6117 | |
6118 | |||||
6119 | # tweak ARFLAGS only if the user didn't set it on the command line | ||||
6120 | |||||
6121 | if test -z "$ARFLAGS" | ||||
6122 | then | ||||
Benjamin Peterson | d15108a | 2017-09-29 08:42:41 -0700 | [diff] [blame] | 6123 | ARFLAGS="rcs" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6124 | fi |
6125 | |||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6126 | if test -n "$ac_tool_prefix"; then |
6127 | for ac_prog in readelf | ||||
6128 | do | ||||
6129 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
6130 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6132 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6133 | if ${ac_cv_prog_READELF+:} false; then : | ||||
6134 | $as_echo_n "(cached) " >&6 | ||||
6135 | else | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6136 | if test -n "$READELF"; then |
6137 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | ||||
6138 | else | ||||
6139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6140 | for as_dir in $PATH | ||||
6141 | do | ||||
6142 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6143 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6144 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6145 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6146 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6148 | break 2 |
6149 | fi | ||||
6150 | done | ||||
6151 | done | ||||
6152 | IFS=$as_save_IFS | ||||
6153 | |||||
6154 | fi | ||||
6155 | fi | ||||
6156 | READELF=$ac_cv_prog_READELF | ||||
6157 | if test -n "$READELF"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 |
6159 | $as_echo "$READELF" >&6; } | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6160 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6162 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6163 | fi |
6164 | |||||
6165 | |||||
6166 | test -n "$READELF" && break | ||||
6167 | done | ||||
6168 | fi | ||||
6169 | if test -z "$READELF"; then | ||||
6170 | ac_ct_READELF=$READELF | ||||
6171 | for ac_prog in readelf | ||||
6172 | do | ||||
6173 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6174 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6176 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6177 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | ||||
6178 | $as_echo_n "(cached) " >&6 | ||||
6179 | else | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6180 | if test -n "$ac_ct_READELF"; then |
6181 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | ||||
6182 | else | ||||
6183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6184 | for as_dir in $PATH | ||||
6185 | do | ||||
6186 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6187 | test -z "$as_dir" && as_dir=. |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6188 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6189 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6190 | ac_cv_prog_ac_ct_READELF="$ac_prog" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6192 | break 2 |
6193 | fi | ||||
6194 | done | ||||
6195 | done | ||||
6196 | IFS=$as_save_IFS | ||||
6197 | |||||
6198 | fi | ||||
6199 | fi | ||||
6200 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | ||||
6201 | if test -n "$ac_ct_READELF"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 |
6203 | $as_echo "$ac_ct_READELF" >&6; } | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6204 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6206 | $as_echo "no" >&6; } | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6207 | fi |
6208 | |||||
6209 | |||||
6210 | test -n "$ac_ct_READELF" && break | ||||
6211 | done | ||||
6212 | |||||
6213 | if test "x$ac_ct_READELF" = x; then | ||||
6214 | READELF=":" | ||||
6215 | else | ||||
6216 | case $cross_compiling:$ac_tool_warned in | ||||
6217 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6219 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6220 | ac_tool_warned=yes ;; |
6221 | esac | ||||
6222 | READELF=$ac_ct_READELF | ||||
6223 | fi | ||||
6224 | fi | ||||
6225 | |||||
6226 | if test "$cross_compiling" = yes; then | ||||
6227 | case "$READELF" in | ||||
6228 | readelf|:) | ||||
6229 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | ||||
6230 | ;; | ||||
6231 | esac | ||||
6232 | fi | ||||
6233 | |||||
6234 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6235 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6236 | case $MACHDEP in |
Benjamin Peterson | 288d1da | 2017-09-28 22:44:27 -0700 | [diff] [blame] | 6237 | hp*|HP*) |
6238 | # install -d does not work on HP-UX | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6239 | if test -z "$INSTALL" |
6240 | then | ||||
6241 | INSTALL="${srcdir}/install-sh -c" | ||||
6242 | fi | ||||
6243 | esac | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6244 | # Find a good install program. We prefer a C program (faster), |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6245 | # so one script is as good as another. But avoid the broken or |
6246 | # incompatible versions: | ||||
6247 | # SysV /etc/install, /usr/sbin/install | ||||
6248 | # SunOS /usr/etc/install | ||||
6249 | # IRIX /sbin/install | ||||
6250 | # AIX /bin/install | ||||
6251 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||||
6252 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||||
6253 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||||
6254 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||||
6255 | # OS/2's system install, which has a completely different semantic | ||||
6256 | # ./install, which can be erroneously created by make from ./install.sh. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6257 | # Reject install programs that cannot install multiple files. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
6259 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6260 | if test -z "$INSTALL"; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6261 | if ${ac_cv_path_install+:} false; then : |
6262 | $as_echo_n "(cached) " >&6 | ||||
6263 | else | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6265 | for as_dir in $PATH | ||||
6266 | do | ||||
6267 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6268 | test -z "$as_dir" && as_dir=. |
6269 | # Account for people who put trailing slashes in PATH elements. | ||||
6270 | case $as_dir/ in #(( | ||||
6271 | ./ | .// | /[cC]/* | \ | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6272 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6273 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6274 | /usr/ucb/* ) ;; |
6275 | *) | ||||
6276 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||||
6277 | # Don't use installbsd from OSF since it installs stuff as root | ||||
6278 | # by default. | ||||
6279 | for ac_prog in ginstall scoinst install; do | ||||
6280 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6281 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6282 | if test $ac_prog = install && |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6283 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6284 | # AIX install. It has an incompatible calling convention. |
6285 | : | ||||
6286 | elif test $ac_prog = install && | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6287 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6288 | # program-specific install script used by HP pwplus--don't use. |
6289 | : | ||||
6290 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6291 | rm -rf conftest.one conftest.two conftest.dir |
6292 | echo one > conftest.one | ||||
6293 | echo two > conftest.two | ||||
6294 | mkdir conftest.dir | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6295 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6296 | test -s conftest.one && test -s conftest.two && |
6297 | test -s conftest.dir/conftest.one && | ||||
6298 | test -s conftest.dir/conftest.two | ||||
6299 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6300 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6301 | break 3 |
6302 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6303 | fi |
6304 | fi | ||||
6305 | done | ||||
6306 | done | ||||
6307 | ;; | ||||
6308 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6309 | |
6310 | done | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6311 | IFS=$as_save_IFS |
6312 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6313 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6314 | |
6315 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6316 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6317 | INSTALL=$ac_cv_path_install |
6318 | else | ||||
6319 | # As a last resort, use the slow shell script. Don't cache a | ||||
6320 | # value for INSTALL within a source directory, because that will | ||||
6321 | # break other packages using the cache if that directory is | ||||
6322 | # removed, or if the value is a relative name. | ||||
6323 | INSTALL=$ac_install_sh | ||||
6324 | fi | ||||
6325 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
6327 | $as_echo "$INSTALL" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6328 | |
6329 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||||
6330 | # It thinks the first close brace ends the variable substitution. | ||||
6331 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||||
6332 | |||||
6333 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||||
6334 | |||||
6335 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||||
6336 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
6338 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6339 | if test -z "$MKDIR_P"; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6340 | if ${ac_cv_path_mkdir+:} false; then : |
6341 | $as_echo_n "(cached) " >&6 | ||||
6342 | else | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6344 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||||
6345 | do | ||||
6346 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6347 | test -z "$as_dir" && as_dir=. |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6348 | for ac_prog in mkdir gmkdir; do |
6349 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6350 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
6351 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||||
6352 | 'mkdir (GNU coreutils) '* | \ | ||||
6353 | 'mkdir (coreutils) '* | \ | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6354 | 'mkdir (fileutils) '4.1*) |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6355 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6356 | break 3;; |
6357 | esac | ||||
6358 | done | ||||
6359 | done | ||||
6360 | done | ||||
6361 | IFS=$as_save_IFS | ||||
6362 | |||||
6363 | fi | ||||
6364 | |||||
6365 | test -d ./--version && rmdir ./--version | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6366 | if test "${ac_cv_path_mkdir+set}" = set; then |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6367 | MKDIR_P="$ac_cv_path_mkdir -p" |
6368 | else | ||||
6369 | # As a last resort, use the slow shell script. Don't cache a | ||||
6370 | # value for MKDIR_P within a source directory, because that will | ||||
6371 | # break other packages using the cache if that directory is | ||||
6372 | # removed, or if the value is a relative name. | ||||
6373 | MKDIR_P="$ac_install_sh -d" | ||||
6374 | fi | ||||
6375 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
6377 | $as_echo "$MKDIR_P" >&6; } | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6378 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6379 | |
6380 | # Not every filesystem supports hard links | ||||
6381 | |||||
6382 | if test -z "$LN" ; then | ||||
6383 | case $ac_sys_system in | ||||
6384 | CYGWIN*) LN="ln -s";; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6385 | *) LN=ln;; |
6386 | esac | ||||
6387 | fi | ||||
6388 | |||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6389 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6390 | |
6391 | ABIFLAGS="" | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6392 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6393 | # Check for --with-pydebug |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
6395 | $as_echo_n "checking for --with-pydebug... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6396 | |
6397 | # Check whether --with-pydebug was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6398 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6399 | withval=$with_pydebug; |
6400 | if test "$withval" != no | ||||
6401 | then | ||||
6402 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6403 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6404 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6406 | $as_echo "yes" >&6; }; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6407 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6408 | ABIFLAGS="${ABIFLAGS}d" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6409 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6410 | $as_echo "no" >&6; }; Py_DEBUG='false' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6411 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6412 | else |
6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6414 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6415 | fi |
6416 | |||||
6417 | |||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6418 | # Check for --with-trace-refs |
6419 | # --with-trace-refs | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5 |
6421 | $as_echo_n "checking for --with-trace-refs... " >&6; } | ||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6422 | |
6423 | # Check whether --with-trace-refs was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6424 | if test "${with_trace_refs+set}" = set; then : |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6425 | withval=$with_trace_refs; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6426 | else |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6427 | with_trace_refs=no |
6428 | fi | ||||
6429 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5 |
6431 | $as_echo "$with_trace_refs" >&6; } | ||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6432 | |
6433 | if test "$with_trace_refs" = "yes" | ||||
6434 | then | ||||
6435 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6436 | $as_echo "#define Py_TRACE_REFS 1" >>confdefs.h |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6437 | |
6438 | fi | ||||
6439 | |||||
6440 | # Check for --with-assertions. | ||||
6441 | # This allows enabling assertions without Py_DEBUG. | ||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6442 | assertions='false' |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 |
6444 | $as_echo_n "checking for --with-assertions... " >&6; } | ||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6445 | |
6446 | # Check whether --with-assertions was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6447 | if test "${with_assertions+set}" = set; then : |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6448 | withval=$with_assertions; |
6449 | if test "$withval" != no | ||||
6450 | then | ||||
6451 | assertions='true' | ||||
6452 | fi | ||||
6453 | fi | ||||
6454 | |||||
6455 | if test "$assertions" = 'true'; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6457 | $as_echo "yes" >&6; } | ||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6458 | elif test "$Py_DEBUG" = 'true'; then |
6459 | assertions='true' | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 |
6461 | $as_echo "implied by --with-pydebug" >&6; } | ||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6462 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6464 | $as_echo "no" >&6; } | ||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6465 | fi |
6466 | |||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6467 | # Enable optimization flags |
6468 | |||||
6469 | |||||
6470 | Py_OPT='false' | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 |
6472 | $as_echo_n "checking for --enable-optimizations... " >&6; } | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6473 | # Check whether --enable-optimizations was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6474 | if test "${enable_optimizations+set}" = set; then : |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6475 | enableval=$enable_optimizations; |
Alex Wang | 8cea592 | 2017-03-28 08:50:51 -0400 | [diff] [blame] | 6476 | if test "$enableval" != no |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6477 | then |
6478 | Py_OPT='true' | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6480 | $as_echo "yes" >&6; }; | ||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6481 | else |
6482 | Py_OPT='false' | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6484 | $as_echo "no" >&6; }; | ||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6485 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6486 | else |
6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6488 | $as_echo "no" >&6; } | ||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6489 | fi |
6490 | |||||
6491 | if test "$Py_OPT" = 'true' ; then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6492 | # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not |
6493 | # compile working code using it and both test_distutils and test_gdb are | ||||
Brett Cannon | 1d8f755 | 2016-11-03 16:20:00 -0700 | [diff] [blame] | 6494 | # broken when you do manage to get a toolchain that works with it. People |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6495 | # who want LTO need to use --with-lto themselves. |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6496 | DEF_MAKE_ALL_RULE="profile-opt" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6497 | REQUIRE_PGO="yes" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6498 | DEF_MAKE_RULE="build_all" |
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 6499 | case $CC in |
6500 | *gcc*) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5 |
6502 | $as_echo_n "checking whether C compiler accepts -fno-semantic-interposition... " >&6; } | ||||
6503 | if ${ax_cv_check_cflags___fno_semantic_interposition+:} false; then : | ||||
6504 | $as_echo_n "(cached) " >&6 | ||||
6505 | else | ||||
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6506 | |
6507 | ax_check_save_flags=$CFLAGS | ||||
6508 | CFLAGS="$CFLAGS -fno-semantic-interposition" | ||||
6509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
6510 | /* end confdefs.h. */ | ||||
6511 | |||||
6512 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6513 | main () |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6514 | { |
6515 | |||||
6516 | ; | ||||
6517 | return 0; | ||||
6518 | } | ||||
6519 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6520 | if ac_fn_c_try_compile "$LINENO"; then : |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6521 | ax_cv_check_cflags___fno_semantic_interposition=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6522 | else |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6523 | ax_cv_check_cflags___fno_semantic_interposition=no |
6524 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6526 | CFLAGS=$ax_check_save_flags |
6527 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_semantic_interposition" >&5 |
6529 | $as_echo "$ax_cv_check_cflags___fno_semantic_interposition" >&6; } | ||||
6530 | if test "x$ax_cv_check_cflags___fno_semantic_interposition" = xyes; then : | ||||
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6531 | |
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 6532 | CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition" |
6533 | LDFLAGS_NODIST="$LDFLAGS_NODIST -fno-semantic-interposition" | ||||
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6534 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6535 | else |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6536 | : |
6537 | fi | ||||
6538 | |||||
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 6539 | ;; |
6540 | esac | ||||
6541 | |||||
6542 | |||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6543 | else |
6544 | DEF_MAKE_ALL_RULE="build_all" | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6545 | REQUIRE_PGO="no" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6546 | DEF_MAKE_RULE="all" |
6547 | fi | ||||
6548 | |||||
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 6549 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5 |
6551 | $as_echo_n "checking PROFILE_TASK... " >&6; } | ||||
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 6552 | if test -z "$PROFILE_TASK" |
6553 | then | ||||
Victor Stinner | 6790005 | 2021-01-27 11:16:15 +0100 | [diff] [blame] | 6554 | PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)' |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 6555 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5 |
6557 | $as_echo "$PROFILE_TASK" >&6; } | ||||
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 6558 | |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6559 | # Make llvm-relatec checks work on systems where llvm tools are not installed with their |
6560 | # normal names in the default $PATH (ie: Ubuntu). They exist under the | ||||
6561 | # non-suffixed name in their versioned llvm directory. | ||||
6562 | |||||
6563 | llvm_bin_dir='' | ||||
6564 | llvm_path="${PATH}" | ||||
6565 | if test "${CC}" = "clang" | ||||
6566 | then | ||||
6567 | clang_bin=`which clang` | ||||
6568 | # Some systems install clang elsewhere as a symlink to the real path | ||||
6569 | # which is where the related llvm tools are located. | ||||
6570 | if test -L "${clang_bin}" | ||||
6571 | then | ||||
6572 | clang_dir=`dirname "${clang_bin}"` | ||||
6573 | clang_bin=`readlink "${clang_bin}"` | ||||
6574 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | ||||
6575 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | ||||
6576 | fi | ||||
6577 | fi | ||||
6578 | |||||
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6579 | # Enable LTO flags |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 |
6581 | $as_echo_n "checking for --with-lto... " >&6; } | ||||
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6582 | |
6583 | # Check whether --with-lto was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6584 | if test "${with_lto+set}" = set; then : |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6585 | withval=$with_lto; |
6586 | if test "$withval" != no | ||||
6587 | then | ||||
6588 | Py_LTO='true' | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6590 | $as_echo "yes" >&6; }; | ||||
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6591 | else |
6592 | Py_LTO='false' | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6594 | $as_echo "no" >&6; }; | ||||
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6595 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6596 | else |
6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6598 | $as_echo "no" >&6; } | ||||
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6599 | fi |
6600 | |||||
6601 | if test "$Py_LTO" = 'true' ; then | ||||
6602 | case $CC in | ||||
6603 | *clang*) | ||||
Victor Stinner | 06fe77a | 2018-06-19 18:24:58 +0200 | [diff] [blame] | 6604 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6605 | if test -n "$ac_tool_prefix"; then |
6606 | # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. | ||||
6607 | set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6609 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6610 | if ${ac_cv_path_LLVM_AR+:} false; then : | ||||
6611 | $as_echo_n "(cached) " >&6 | ||||
6612 | else | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6613 | case $LLVM_AR in |
6614 | [\\/]* | ?:[\\/]*) | ||||
6615 | ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. | ||||
6616 | ;; | ||||
6617 | *) | ||||
6618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6619 | for as_dir in ${llvm_path} | ||||
6620 | do | ||||
6621 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6622 | test -z "$as_dir" && as_dir=. |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6623 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6624 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6625 | ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6627 | break 2 |
6628 | fi | ||||
6629 | done | ||||
6630 | done | ||||
6631 | IFS=$as_save_IFS | ||||
6632 | |||||
6633 | ;; | ||||
6634 | esac | ||||
6635 | fi | ||||
6636 | LLVM_AR=$ac_cv_path_LLVM_AR | ||||
6637 | if test -n "$LLVM_AR"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 |
6639 | $as_echo "$LLVM_AR" >&6; } | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6640 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6642 | $as_echo "no" >&6; } | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6643 | fi |
6644 | |||||
6645 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6646 | fi |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6647 | if test -z "$ac_cv_path_LLVM_AR"; then |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6648 | ac_pt_LLVM_AR=$LLVM_AR |
6649 | # Extract the first word of "llvm-ar", so it can be a program name with args. | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6650 | set dummy llvm-ar; ac_word=$2 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6652 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6653 | if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then : | ||||
6654 | $as_echo_n "(cached) " >&6 | ||||
6655 | else | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6656 | case $ac_pt_LLVM_AR in |
6657 | [\\/]* | ?:[\\/]*) | ||||
6658 | ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. | ||||
6659 | ;; | ||||
6660 | *) | ||||
6661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6662 | for as_dir in ${llvm_path} | ||||
6663 | do | ||||
6664 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6665 | test -z "$as_dir" && as_dir=. |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6666 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6667 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6668 | ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6670 | break 2 |
6671 | fi | ||||
6672 | done | ||||
6673 | done | ||||
6674 | IFS=$as_save_IFS | ||||
6675 | |||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6676 | ;; |
6677 | esac | ||||
6678 | fi | ||||
6679 | ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR | ||||
6680 | if test -n "$ac_pt_LLVM_AR"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 |
6682 | $as_echo "$ac_pt_LLVM_AR" >&6; } | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6683 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6685 | $as_echo "no" >&6; } | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6686 | fi |
6687 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6688 | if test "x$ac_pt_LLVM_AR" = x; then |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6689 | LLVM_AR="''" |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6690 | else |
6691 | case $cross_compiling:$ac_tool_warned in | ||||
6692 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6694 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6695 | ac_tool_warned=yes ;; |
6696 | esac | ||||
6697 | LLVM_AR=$ac_pt_LLVM_AR | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6698 | fi |
6699 | else | ||||
6700 | LLVM_AR="$ac_cv_path_LLVM_AR" | ||||
6701 | fi | ||||
6702 | |||||
6703 | |||||
6704 | if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" | ||||
6705 | then | ||||
6706 | LLVM_AR_FOUND="found" | ||||
6707 | else | ||||
6708 | LLVM_AR_FOUND="not-found" | ||||
6709 | fi | ||||
6710 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" | ||||
6711 | then | ||||
6712 | found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null` | ||||
6713 | if test -n "${found_llvm_ar}" | ||||
6714 | then | ||||
6715 | LLVM_AR='/usr/bin/xcrun llvm-ar' | ||||
6716 | LLVM_AR_FOUND=found | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6717 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 |
6718 | $as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6719 | fi |
6720 | fi | ||||
6721 | if test $LLVM_AR_FOUND = not-found | ||||
6722 | then | ||||
6723 | LLVM_PROFR_ERR=yes | ||||
6724 | as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 | ||||
6725 | else | ||||
6726 | LLVM_AR_ERR=no | ||||
6727 | fi | ||||
6728 | AR="${LLVM_AR}" | ||||
6729 | case $ac_sys_system in | ||||
6730 | Darwin*) | ||||
6731 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6732 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6733 | ;; | ||||
6734 | *) | ||||
6735 | LTOFLAGS="-flto" | ||||
6736 | ;; | ||||
6737 | esac | ||||
6738 | ;; | ||||
6739 | *gcc*) | ||||
6740 | case $ac_sys_system in | ||||
6741 | Darwin*) | ||||
6742 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6743 | ;; | ||||
6744 | *) | ||||
6745 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | ||||
6746 | ;; | ||||
6747 | esac | ||||
6748 | ;; | ||||
6749 | esac | ||||
6750 | |||||
6751 | if test "$ac_cv_prog_cc_g" = "yes" | ||||
6752 | then | ||||
6753 | # bpo-30345: Add -g to LDFLAGS when compiling with LTO | ||||
6754 | # to get debug symbols. | ||||
6755 | LTOFLAGS="$LTOFLAGS -g" | ||||
6756 | fi | ||||
6757 | |||||
stratakis | f92c7aa | 2018-12-04 15:54:01 +0100 | [diff] [blame] | 6758 | CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS" |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 6759 | LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6760 | fi |
6761 | |||||
6762 | # Enable PGO flags. | ||||
6763 | |||||
6764 | |||||
6765 | |||||
6766 | |||||
6767 | |||||
6768 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6769 | if test -n "$ac_tool_prefix"; then |
6770 | # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. | ||||
6771 | set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6773 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6774 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | ||||
6775 | $as_echo_n "(cached) " >&6 | ||||
6776 | else | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6777 | case $LLVM_PROFDATA in |
6778 | [\\/]* | ?:[\\/]*) | ||||
6779 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6780 | ;; | ||||
6781 | *) | ||||
6782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6783 | for as_dir in ${llvm_path} | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6784 | do |
6785 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6786 | test -z "$as_dir" && as_dir=. |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6787 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6788 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6789 | ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | ||||
6790 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6791 | break 2 |
6792 | fi | ||||
6793 | done | ||||
6794 | done | ||||
6795 | IFS=$as_save_IFS | ||||
6796 | |||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6797 | ;; |
6798 | esac | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6799 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6800 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA |
6801 | if test -n "$LLVM_PROFDATA"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 |
6803 | $as_echo "$LLVM_PROFDATA" >&6; } | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6804 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6806 | $as_echo "no" >&6; } | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6807 | fi |
6808 | |||||
6809 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6810 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6811 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6812 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA |
6813 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6814 | set dummy llvm-profdata; ac_word=$2 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6816 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6817 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | ||||
6818 | $as_echo_n "(cached) " >&6 | ||||
6819 | else | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6820 | case $ac_pt_LLVM_PROFDATA in |
6821 | [\\/]* | ?:[\\/]*) | ||||
6822 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6823 | ;; | ||||
6824 | *) | ||||
6825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6826 | for as_dir in ${llvm_path} | ||||
6827 | do | ||||
6828 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6829 | test -z "$as_dir" && as_dir=. |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6830 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6831 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6832 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | ||||
6833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6834 | break 2 |
6835 | fi | ||||
6836 | done | ||||
6837 | done | ||||
6838 | IFS=$as_save_IFS | ||||
6839 | |||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6840 | ;; |
6841 | esac | ||||
6842 | fi | ||||
6843 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | ||||
6844 | if test -n "$ac_pt_LLVM_PROFDATA"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 |
6846 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6847 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6849 | $as_echo "no" >&6; } | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6850 | fi |
6851 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6852 | if test "x$ac_pt_LLVM_PROFDATA" = x; then |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6853 | LLVM_PROFDATA="''" |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6854 | else |
6855 | case $cross_compiling:$ac_tool_warned in | ||||
6856 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6858 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6859 | ac_tool_warned=yes ;; |
6860 | esac | ||||
6861 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6862 | fi |
6863 | else | ||||
6864 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | ||||
6865 | fi | ||||
6866 | |||||
6867 | |||||
6868 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | ||||
6869 | then | ||||
6870 | LLVM_PROF_FOUND="found" | ||||
6871 | else | ||||
6872 | LLVM_PROF_FOUND="not-found" | ||||
6873 | fi | ||||
6874 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | ||||
6875 | then | ||||
6876 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | ||||
6877 | if test -n "${found_llvm_profdata}" | ||||
6878 | then | ||||
6879 | # llvm-profdata isn't directly in $PATH in some cases. | ||||
6880 | # https://apple.stackexchange.com/questions/197053/ | ||||
6881 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | ||||
6882 | LLVM_PROF_FOUND=found | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 |
6884 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6885 | fi |
6886 | fi | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6887 | LLVM_PROF_ERR=no |
6888 | case $CC in | ||||
6889 | *clang*) | ||||
6890 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6891 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6892 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6893 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6894 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
6895 | if test $LLVM_PROF_FOUND = not-found | ||||
6896 | then | ||||
6897 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6898 | if test "${REQUIRE_PGO}" = "yes" |
6899 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6900 | as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6901 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6902 | fi |
6903 | ;; | ||||
6904 | *gcc*) | ||||
6905 | case $ac_sys_system in | ||||
6906 | Darwin*) | ||||
6907 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6908 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6909 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6910 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6911 | if test "${LLVM_PROF_FOUND}" = "not-found" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6912 | then |
6913 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6914 | if test "${REQUIRE_PGO}" = "yes" |
6915 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6916 | as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6917 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6918 | fi |
6919 | ;; | ||||
6920 | *) | ||||
6921 | PGO_PROF_GEN_FLAG="-fprofile-generate" | ||||
6922 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | ||||
6923 | LLVM_PROF_MERGER="true" | ||||
6924 | LLVM_PROF_FILE="" | ||||
6925 | ;; | ||||
6926 | esac | ||||
6927 | ;; | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6928 | *icc*) |
6929 | PGO_PROF_GEN_FLAG="-prof-gen" | ||||
6930 | PGO_PROF_USE_FLAG="-prof-use" | ||||
6931 | LLVM_PROF_MERGER="true" | ||||
6932 | LLVM_PROF_FILE="" | ||||
6933 | ;; | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6934 | esac |
6935 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6936 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
6937 | # merged with this chunk of code? | ||||
6938 | |||||
6939 | # Optimizer/debugger flags | ||||
6940 | # ------------------------ | ||||
6941 | # (The following bit of code is complicated enough - please keep things | ||||
6942 | # indented properly. Just pretend you're editing Python code. ;-) | ||||
6943 | |||||
6944 | # There are two parallel sets of case statements below, one that checks to | ||||
6945 | # see if OPT was set and one that does BASECFLAGS setting based upon | ||||
6946 | # compiler and platform. BASECFLAGS tweaks need to be made even if the | ||||
6947 | # user set OPT. | ||||
6948 | |||||
Victor Stinner | 23a683a | 2019-04-12 21:27:37 +0200 | [diff] [blame] | 6949 | case $CC in |
6950 | *clang*) | ||||
6951 | cc_is_clang=1 | ||||
6952 | ;; | ||||
6953 | *) | ||||
6954 | if $CC --version 2>&1 | grep -q clang | ||||
6955 | then | ||||
6956 | cc_is_clang=1 | ||||
6957 | else | ||||
6958 | cc_is_clang= | ||||
6959 | fi | ||||
6960 | esac | ||||
6961 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6962 | # tweak OPT based on compiler and platform, only if the user didn't set |
6963 | # it on the command line | ||||
6964 | |||||
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6965 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6966 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6967 | then |
6968 | case $GCC in | ||||
6969 | yes) | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6970 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
6971 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | ||||
6972 | WRAP="-fwrapv" | ||||
6973 | fi | ||||
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6974 | |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6975 | if test -n "${cc_is_clang}" |
6976 | then | ||||
6977 | # Clang also needs -fwrapv | ||||
6978 | WRAP="-fwrapv" | ||||
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6979 | # bpo-30104: disable strict aliasing to compile correctly dtoa.c, |
6980 | # see Makefile.pre.in for more information | ||||
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 6981 | CFLAGS_ALIASING="-fno-strict-aliasing" |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6982 | fi |
6983 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6984 | case $ac_cv_prog_cc_g in |
6985 | yes) | ||||
6986 | if test "$Py_DEBUG" = 'true' ; then | ||||
6987 | # Optimization messes up debuggers, so turn it off for | ||||
6988 | # debug builds. | ||||
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6989 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6990 | OPT="-g -Og -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6991 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6992 | OPT="-g -O0 -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6993 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6994 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6995 | OPT="-g $WRAP -O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6996 | fi |
6997 | ;; | ||||
6998 | *) | ||||
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6999 | OPT="-O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7000 | ;; |
7001 | esac | ||||
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 7002 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7003 | case $ac_sys_system in |
7004 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | ||||
7005 | ;; | ||||
7006 | esac | ||||
7007 | ;; | ||||
7008 | |||||
7009 | *) | ||||
7010 | OPT="-O" | ||||
7011 | ;; | ||||
7012 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7013 | fi |
7014 | |||||
7015 | |||||
7016 | |||||
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 7017 | |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 7018 | |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 7019 | # The -arch flags for universal builds on macOS |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7020 | UNIVERSAL_ARCH_FLAGS= |
7021 | |||||
7022 | |||||
7023 | # tweak BASECFLAGS based on compiler and platform | ||||
7024 | case $GCC in | ||||
7025 | yes) | ||||
Benjamin Peterson | 050af5d | 2016-09-10 17:53:13 -0700 | [diff] [blame] | 7026 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" |
Benjamin Peterson | d170256 | 2016-09-07 12:00:06 -0700 | [diff] [blame] | 7027 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 |
7029 | $as_echo_n "checking for -Wextra... " >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7030 | ac_save_cc="$CC" |
7031 | CC="$CC -Wextra -Werror" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7032 | if ${ac_cv_extra_warnings+:} false; then : |
7033 | $as_echo_n "(cached) " >&6 | ||||
7034 | else | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7036 | /* end confdefs.h. */ | ||||
7037 | |||||
7038 | |||||
7039 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7040 | main () |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7041 | { |
7042 | |||||
7043 | ; | ||||
7044 | return 0; | ||||
7045 | } | ||||
7046 | |||||
7047 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7048 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7049 | |
7050 | ac_cv_extra_warnings=yes | ||||
7051 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7052 | else |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7053 | |
7054 | ac_cv_extra_warnings=no | ||||
7055 | |||||
7056 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7058 | fi |
7059 | |||||
7060 | CC="$ac_save_cc" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 |
7062 | $as_echo "$ac_cv_extra_warnings" >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7063 | |
7064 | if test $ac_cv_extra_warnings = yes | ||||
7065 | then | ||||
7066 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" | ||||
7067 | fi | ||||
7068 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7069 | # Python doesn't violate C99 aliasing rules, but older versions of |
7070 | # GCC produce warnings for legal Python code. Enable | ||||
7071 | # -fno-strict-aliasing on versions of GCC that support but produce | ||||
7072 | # warnings. See Issue3326 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
7074 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7075 | ac_save_cc="$CC" |
7076 | CC="$CC -fno-strict-aliasing" | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7077 | save_CFLAGS="$CFLAGS" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7078 | if ${ac_cv_no_strict_aliasing+:} false; then : |
7079 | $as_echo_n "(cached) " >&6 | ||||
7080 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7082 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7083 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7084 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7085 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7086 | main () |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7087 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7088 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7089 | ; |
7090 | return 0; | ||||
7091 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7092 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7093 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7094 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7095 | |
7096 | CC="$ac_save_cc -fstrict-aliasing" | ||||
7097 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | ||||
7098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7099 | /* end confdefs.h. */ |
7100 | |||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7101 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7102 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7103 | main () |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7104 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7105 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7106 | ; |
7107 | return 0; | ||||
7108 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7109 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7110 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7111 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7112 | |
7113 | ac_cv_no_strict_aliasing=no | ||||
7114 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7115 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7116 | |
7117 | ac_cv_no_strict_aliasing=yes | ||||
7118 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7119 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7121 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7122 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7123 | |
7124 | ac_cv_no_strict_aliasing=no | ||||
7125 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7126 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7128 | fi |
7129 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7130 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7131 | CC="$ac_save_cc" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
7133 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7134 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7135 | then |
7136 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | ||||
7137 | fi | ||||
7138 | |||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7139 | # ICC doesn't recognize the option, but only emits a warning |
7140 | ## XXX does it emit an unused result warning and can it be disabled? | ||||
7141 | case "$CC" in | ||||
7142 | *icc*) | ||||
7143 | ac_cv_disable_unused_result_warning=no | ||||
7144 | ;; | ||||
7145 | *) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
7147 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7148 | ac_save_cc="$CC" |
7149 | CC="$CC -Wunused-result -Werror" | ||||
7150 | save_CFLAGS="$CFLAGS" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7151 | if ${ac_cv_disable_unused_result_warning+:} false; then : |
7152 | $as_echo_n "(cached) " >&6 | ||||
7153 | else | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7155 | /* end confdefs.h. */ | ||||
7156 | |||||
7157 | |||||
7158 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7159 | main () |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7160 | { |
7161 | |||||
7162 | ; | ||||
7163 | return 0; | ||||
7164 | } | ||||
7165 | |||||
7166 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7167 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7168 | |
7169 | ac_cv_disable_unused_result_warning=yes | ||||
7170 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7171 | else |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7172 | |
7173 | ac_cv_disable_unused_result_warning=no | ||||
7174 | |||||
7175 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7177 | fi |
7178 | |||||
7179 | CFLAGS="$save_CFLAGS" | ||||
7180 | CC="$ac_save_cc" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 |
7182 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7183 | ;; |
7184 | esac | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7185 | |
7186 | if test $ac_cv_disable_unused_result_warning = yes | ||||
7187 | then | ||||
7188 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7189 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" |
7190 | fi | ||||
7191 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 |
7193 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7194 | ac_save_cc="$CC" |
7195 | CC="$CC -Wunused-parameter -Werror" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7196 | if ${ac_cv_disable_unused_parameter_warning+:} false; then : |
7197 | $as_echo_n "(cached) " >&6 | ||||
7198 | else | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7200 | /* end confdefs.h. */ | ||||
7201 | |||||
7202 | |||||
7203 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7204 | main () |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7205 | { |
7206 | |||||
7207 | ; | ||||
7208 | return 0; | ||||
7209 | } | ||||
7210 | |||||
7211 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7212 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7213 | |
7214 | ac_cv_disable_unused_parameter_warning=yes | ||||
7215 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7216 | else |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7217 | |
7218 | ac_cv_disable_unused_parameter_warning=no | ||||
7219 | |||||
7220 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7222 | fi |
7223 | |||||
7224 | CC="$ac_save_cc" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 |
7226 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7227 | |
7228 | if test $ac_cv_disable_unused_parameter_warning = yes | ||||
7229 | then | ||||
7230 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" | ||||
7231 | fi | ||||
7232 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 |
7234 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7235 | ac_save_cc="$CC" |
7236 | CC="$CC -Wmissing-field-initializers -Werror" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7237 | if ${ac_cv_disable_missing_field_initializers+:} false; then : |
7238 | $as_echo_n "(cached) " >&6 | ||||
7239 | else | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7241 | /* end confdefs.h. */ | ||||
7242 | |||||
7243 | |||||
7244 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7245 | main () |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7246 | { |
7247 | |||||
7248 | ; | ||||
7249 | return 0; | ||||
7250 | } | ||||
7251 | |||||
7252 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7253 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7254 | |
7255 | ac_cv_disable_missing_field_initializers=yes | ||||
7256 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7257 | else |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7258 | |
7259 | ac_cv_disable_missing_field_initializers=no | ||||
7260 | |||||
7261 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7263 | fi |
7264 | |||||
7265 | CC="$ac_save_cc" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 |
7267 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7268 | |
7269 | if test $ac_cv_disable_missing_field_initializers = yes | ||||
7270 | then | ||||
7271 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7272 | fi |
7273 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
7275 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7276 | ac_save_cc="$CC" |
7277 | CC="$CC -Wsign-compare" | ||||
7278 | save_CFLAGS="$CFLAGS" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7279 | if ${ac_cv_enable_sign_compare_warning+:} false; then : |
7280 | $as_echo_n "(cached) " >&6 | ||||
7281 | else | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7283 | /* end confdefs.h. */ | ||||
7284 | |||||
7285 | |||||
7286 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7287 | main () |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7288 | { |
7289 | |||||
7290 | ; | ||||
7291 | return 0; | ||||
7292 | } | ||||
7293 | |||||
7294 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7295 | if ac_fn_c_try_compile "$LINENO"; then : |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7296 | |
7297 | ac_cv_enable_sign_compare_warning=yes | ||||
7298 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7299 | else |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7300 | |
7301 | ac_cv_enable_sign_compare_warning=no | ||||
7302 | |||||
7303 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7305 | fi |
7306 | |||||
7307 | CFLAGS="$save_CFLAGS" | ||||
7308 | CC="$ac_save_cc" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 |
7310 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7311 | |
7312 | if test $ac_cv_enable_sign_compare_warning = yes | ||||
7313 | then | ||||
7314 | BASECFLAGS="$BASECFLAGS -Wsign-compare" | ||||
7315 | fi | ||||
7316 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 |
7318 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7319 | ac_save_cc="$CC" |
7320 | CC="$CC -Wunreachable-code" | ||||
7321 | save_CFLAGS="$CFLAGS" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7322 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : |
7323 | $as_echo_n "(cached) " >&6 | ||||
7324 | else | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7326 | /* end confdefs.h. */ | ||||
7327 | |||||
7328 | |||||
7329 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7330 | main () |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7331 | { |
7332 | |||||
7333 | ; | ||||
7334 | return 0; | ||||
7335 | } | ||||
7336 | |||||
7337 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7338 | if ac_fn_c_try_compile "$LINENO"; then : |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7339 | |
7340 | ac_cv_enable_unreachable_code_warning=yes | ||||
7341 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7342 | else |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7343 | |
7344 | ac_cv_enable_unreachable_code_warning=no | ||||
7345 | |||||
7346 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7348 | fi |
7349 | |||||
7350 | CFLAGS="$save_CFLAGS" | ||||
7351 | CC="$ac_save_cc" | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7352 | |
7353 | # Don't enable unreachable code warning in debug mode, since it usually | ||||
7354 | # results in non-standard code paths. | ||||
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7355 | # Issue #24324: Unfortunately, the unreachable code warning does not work |
7356 | # correctly on gcc and has been silently removed from the compiler. | ||||
7357 | # It is supported on clang but on OS X systems gcc may be an alias | ||||
7358 | # for clang. Try to determine if the compiler is not really gcc and, | ||||
7359 | # if so, only then enable the warning. | ||||
7360 | if test $ac_cv_enable_unreachable_code_warning = yes && \ | ||||
7361 | test "$Py_DEBUG" != "true" && \ | ||||
7362 | test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7363 | then |
7364 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" | ||||
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7365 | else |
7366 | ac_cv_enable_unreachable_code_warning=no | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7367 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
7369 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7370 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 |
7372 | $as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; } | ||||
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7373 | ac_save_cc="$CC" |
7374 | CC="$CC -Werror -Wstrict-prototypes" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7375 | if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then : |
7376 | $as_echo_n "(cached) " >&6 | ||||
7377 | else | ||||
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7379 | /* end confdefs.h. */ | ||||
7380 | |||||
7381 | |||||
7382 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7383 | main () |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7384 | { |
7385 | |||||
7386 | ; | ||||
7387 | return 0; | ||||
7388 | } | ||||
7389 | |||||
7390 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7391 | if ac_fn_c_try_compile "$LINENO"; then : |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7392 | |
7393 | ac_cv_enable_strict_prototypes_warning=yes | ||||
7394 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7395 | else |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7396 | |
7397 | ac_cv_enable_strict_prototypes_warning=no | ||||
7398 | |||||
7399 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7401 | fi |
7402 | |||||
7403 | CC="$ac_save_cc" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 |
7405 | $as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; } | ||||
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7406 | |
7407 | if test $ac_cv_enable_strict_prototypes_warning = yes | ||||
7408 | then | ||||
7409 | CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" | ||||
7410 | fi | ||||
7411 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 |
7413 | $as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } | ||||
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7414 | ac_save_cc="$CC" |
7415 | CC="$CC -Werror=implicit-function-declaration" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7416 | if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : |
7417 | $as_echo_n "(cached) " >&6 | ||||
7418 | else | ||||
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7420 | /* end confdefs.h. */ | ||||
7421 | |||||
7422 | |||||
7423 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7424 | main () |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7425 | { |
7426 | |||||
7427 | ; | ||||
7428 | return 0; | ||||
7429 | } | ||||
7430 | |||||
7431 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7432 | if ac_fn_c_try_compile "$LINENO"; then : |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7433 | |
7434 | ac_cv_enable_implicit_function_declaration_error=yes | ||||
7435 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7436 | else |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7437 | |
7438 | ac_cv_enable_implicit_function_declaration_error=no | ||||
7439 | |||||
7440 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7442 | fi |
7443 | |||||
7444 | CC="$ac_save_cc" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 |
7446 | $as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } | ||||
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7447 | |
7448 | if test $ac_cv_enable_implicit_function_declaration_error = yes | ||||
7449 | then | ||||
7450 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" | ||||
7451 | fi | ||||
7452 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5 |
7454 | $as_echo_n "checking if we can use visibility in $CC... " >&6; } | ||||
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7455 | ac_save_cc="$CC" |
7456 | CC="$CC -fvisibility=hidden" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7457 | if ${ac_cv_enable_visibility+:} false; then : |
7458 | $as_echo_n "(cached) " >&6 | ||||
7459 | else | ||||
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7461 | /* end confdefs.h. */ | ||||
7462 | |||||
7463 | |||||
7464 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7465 | main () |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7466 | { |
7467 | |||||
7468 | ; | ||||
7469 | return 0; | ||||
7470 | } | ||||
7471 | |||||
7472 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7473 | if ac_fn_c_try_compile "$LINENO"; then : |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7474 | |
7475 | ac_cv_enable_visibility=yes | ||||
7476 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7477 | else |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7478 | |
7479 | ac_cv_enable_visibility=no | ||||
7480 | |||||
7481 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7483 | fi |
7484 | |||||
7485 | CC="$ac_save_cc" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5 |
7487 | $as_echo "$ac_cv_enable_visibility" >&6; } | ||||
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7488 | |
7489 | if test $ac_cv_enable_visibility = yes | ||||
7490 | then | ||||
7491 | CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden" | ||||
7492 | fi | ||||
7493 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7494 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
7495 | # support. Without this, treatment of subnormals doesn't follow | ||||
7496 | # the standard. | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7497 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7498 | alpha*) |
7499 | BASECFLAGS="$BASECFLAGS -mieee" | ||||
7500 | ;; | ||||
7501 | esac | ||||
7502 | |||||
7503 | case $ac_sys_system in | ||||
7504 | SCO_SV*) | ||||
7505 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | ||||
7506 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7507 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7508 | Darwin*) |
7509 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | ||||
7510 | # used to be here, but non-Apple gcc doesn't accept them. | ||||
7511 | if test "${CC}" = gcc | ||||
7512 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 |
7514 | $as_echo_n "checking which compiler should be used... " >&6; } | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7515 | case "${UNIVERSALSDK}" in |
7516 | */MacOSX10.4u.sdk) | ||||
7517 | # Build using 10.4 SDK, force usage of gcc when the | ||||
7518 | # compiler is gcc, otherwise the user will get very | ||||
7519 | # confusing error messages when building on OSX 10.6 | ||||
7520 | CC=gcc-4.0 | ||||
7521 | CPP=cpp-4.0 | ||||
7522 | ;; | ||||
7523 | esac | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
7525 | $as_echo "$CC" >&6; } | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7526 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7527 | |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 7528 | LIPO_INTEL64_FLAGS="" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7529 | if test "${enable_universalsdk}" |
7530 | then | ||||
7531 | case "$UNIVERSAL_ARCHS" in | ||||
7532 | 32-bit) | ||||
7533 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | ||||
7534 | LIPO_32BIT_FLAGS="" | ||||
7535 | ARCH_RUN_32BIT="" | ||||
7536 | ;; | ||||
7537 | 64-bit) | ||||
7538 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | ||||
7539 | LIPO_32BIT_FLAGS="" | ||||
7540 | ARCH_RUN_32BIT="true" | ||||
7541 | ;; | ||||
7542 | all) | ||||
7543 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | ||||
7544 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7545 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7546 | ;; | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 7547 | universal2) |
7548 | UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64" | ||||
7549 | LIPO_32BIT_FLAGS="" | ||||
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 7550 | LIPO_INTEL64_FLAGS="-extract x86_64" |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 7551 | ARCH_RUN_32BIT="true" |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 7552 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7553 | intel) |
7554 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | ||||
7555 | LIPO_32BIT_FLAGS="-extract i386" | ||||
7556 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | ||||
7557 | ;; | ||||
7558 | intel-32) | ||||
7559 | UNIVERSAL_ARCH_FLAGS="-arch i386" | ||||
7560 | LIPO_32BIT_FLAGS="" | ||||
7561 | ARCH_RUN_32BIT="" | ||||
7562 | ;; | ||||
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7563 | intel-64) |
7564 | UNIVERSAL_ARCH_FLAGS="-arch x86_64" | ||||
7565 | LIPO_32BIT_FLAGS="" | ||||
7566 | ARCH_RUN_32BIT="true" | ||||
7567 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7568 | 3-way) |
7569 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | ||||
7570 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7571 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7572 | ;; | ||||
7573 | *) | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 7574 | as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7575 | ;; |
7576 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7577 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7578 | if test "${UNIVERSALSDK}" != "/" |
7579 | then | ||||
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7580 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
7581 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7582 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7583 | else |
7584 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | ||||
7585 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7586 | fi |
7587 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7588 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7589 | # Calculate an appropriate deployment target for this build: |
7590 | # The deployment target value is used explicitly to enable certain | ||||
7591 | # features are enabled (such as builtin libedit support for readline) | ||||
Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7592 | # through the use of Apple's Availability Macros and is used as a |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7593 | # component of the string returned by distutils.get_platform(). |
7594 | # | ||||
7595 | # Use the value from: | ||||
7596 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | ||||
7597 | # 2. the operating system version of the build machine if >= 10.6 | ||||
7598 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests | ||||
7599 | # below to pick either 10.3, 10.4, or 10.5 as the target. | ||||
7600 | # 4. If we are running on OS X 10.2 or earlier, good luck! | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7601 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
7603 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | ||||
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7604 | cur_target_major=`sw_vers -productVersion | \ |
7605 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
7606 | cur_target_minor=`sw_vers -productVersion | \ | ||||
7607 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
7608 | cur_target="${cur_target_major}.${cur_target_minor}" | ||||
7609 | if test ${cur_target_major} -eq 10 && \ | ||||
7610 | test ${cur_target_minor} -ge 3 && \ | ||||
7611 | test ${cur_target_minor} -le 5 | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7612 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7613 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7614 | cur_target=10.3 |
7615 | if test ${enable_universalsdk} | ||||
7616 | then | ||||
7617 | case "$UNIVERSAL_ARCHS" in | ||||
7618 | all|3-way|intel|64-bit) | ||||
7619 | # These configurations were first supported in 10.5 | ||||
7620 | cur_target='10.5' | ||||
7621 | ;; | ||||
7622 | esac | ||||
7623 | else | ||||
7624 | if test `/usr/bin/arch` = "i386" | ||||
7625 | then | ||||
7626 | # 10.4 was the first release to support Intel archs | ||||
7627 | cur_target="10.4" | ||||
7628 | fi | ||||
7629 | fi | ||||
7630 | fi | ||||
7631 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7632 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7633 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
7634 | # environment with a value that is the same as what we'll use | ||||
7635 | # in the Makefile to ensure that we'll get the same compiler | ||||
7636 | # environment during configure and build time. | ||||
7637 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | ||||
7638 | export MACOSX_DEPLOYMENT_TARGET | ||||
7639 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 |
7641 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7642 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5 |
7644 | $as_echo_n "checking if specified universal architectures work... " >&6; } | ||||
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 7645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7646 | /* end confdefs.h. */ | ||||
7647 | #include <stdio.h> | ||||
7648 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7649 | main () |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 7650 | { |
7651 | printf("%d", 42); | ||||
7652 | ; | ||||
7653 | return 0; | ||||
7654 | } | ||||
7655 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7656 | if ac_fn_c_try_link "$LINENO"; then : |
7657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
7658 | $as_echo "yes" >&6; } | ||||
7659 | else | ||||
7660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
7661 | $as_echo "no" >&6; } | ||||
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 7662 | as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5 |
7663 | |||||
7664 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7665 | rm -f core conftest.err conftest.$ac_objext \ |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 7666 | conftest$ac_exeext conftest.$ac_ext |
7667 | |||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7668 | # end of Darwin* tests |
7669 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7670 | esac |
7671 | ;; | ||||
7672 | |||||
7673 | *) | ||||
7674 | case $ac_sys_system in | ||||
7675 | OpenUNIX*|UnixWare*) | ||||
7676 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | ||||
7677 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7678 | SCO_SV*) |
7679 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | ||||
7680 | ;; | ||||
7681 | esac | ||||
7682 | ;; | ||||
7683 | esac | ||||
7684 | |||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7685 | case "$CC" in |
7686 | *icc*) | ||||
Stefan Krah | 84a7917 | 2020-09-04 22:33:17 +0200 | [diff] [blame] | 7687 | # ICC needs -fp-model strict or floats behave badly |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7688 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" |
7689 | ;; | ||||
Stefan Krah | 84a7917 | 2020-09-04 22:33:17 +0200 | [diff] [blame] | 7690 | *xlc*) |
7691 | CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1" | ||||
7692 | ;; | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7693 | esac |
7694 | |||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7695 | if test "$assertions" = 'true'; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7696 | : |
7697 | else | ||||
7698 | OPT="-DNDEBUG $OPT" | ||||
7699 | fi | ||||
7700 | |||||
7701 | if test "$ac_arch_flags" | ||||
7702 | then | ||||
7703 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | ||||
7704 | fi | ||||
7705 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7706 | # On some compilers, pthreads are available without further options |
7707 | # (e.g. MacOS X). On some of these systems, the compiler will not | ||||
7708 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | ||||
7709 | # So we have to see first whether pthreads are available without | ||||
7710 | # options before we can check whether -Kpthread improves anything. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
7712 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | ||||
7713 | if ${ac_cv_pthread_is_default+:} false; then : | ||||
7714 | $as_echo_n "(cached) " >&6 | ||||
7715 | else | ||||
7716 | if test "$cross_compiling" = yes; then : | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7717 | ac_cv_pthread_is_default=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7718 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7720 | /* end confdefs.h. */ |
7721 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7722 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7723 | #include <pthread.h> |
7724 | |||||
7725 | void* routine(void* p){return NULL;} | ||||
7726 | |||||
7727 | int main(){ | ||||
7728 | pthread_t p; | ||||
7729 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7730 | return 1; | ||||
7731 | (void)pthread_detach(p); | ||||
7732 | return 0; | ||||
7733 | } | ||||
7734 | |||||
7735 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7736 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7737 | |
7738 | ac_cv_pthread_is_default=yes | ||||
7739 | ac_cv_kthread=no | ||||
7740 | ac_cv_pthread=no | ||||
7741 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7742 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7743 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7744 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7745 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7746 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7747 | fi |
7748 | |||||
7749 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7750 | fi |
7751 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
7753 | $as_echo "$ac_cv_pthread_is_default" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7754 | |
7755 | |||||
7756 | if test $ac_cv_pthread_is_default = yes | ||||
7757 | then | ||||
7758 | ac_cv_kpthread=no | ||||
7759 | else | ||||
7760 | # -Kpthread, if available, provides the right #defines | ||||
7761 | # and linker options to make pthread_create available | ||||
7762 | # Some compilers won't report that they do not support -Kpthread, | ||||
7763 | # so we need to run a program to see whether it really made the | ||||
7764 | # function available. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
7766 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | ||||
7767 | if ${ac_cv_kpthread+:} false; then : | ||||
7768 | $as_echo_n "(cached) " >&6 | ||||
7769 | else | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7770 | ac_save_cc="$CC" |
7771 | CC="$CC -Kpthread" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7772 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7773 | ac_cv_kpthread=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7774 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7776 | /* end confdefs.h. */ |
7777 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7778 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7779 | #include <pthread.h> |
7780 | |||||
7781 | void* routine(void* p){return NULL;} | ||||
7782 | |||||
7783 | int main(){ | ||||
7784 | pthread_t p; | ||||
7785 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7786 | return 1; | ||||
7787 | (void)pthread_detach(p); | ||||
7788 | return 0; | ||||
7789 | } | ||||
7790 | |||||
7791 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7792 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7793 | ac_cv_kpthread=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7794 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7795 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7796 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7797 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7798 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7799 | fi |
7800 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7801 | CC="$ac_save_cc" |
7802 | fi | ||||
7803 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
7805 | $as_echo "$ac_cv_kpthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7806 | fi |
7807 | |||||
7808 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | ||||
7809 | then | ||||
7810 | # -Kthread, if available, provides the right #defines | ||||
7811 | # and linker options to make pthread_create available | ||||
7812 | # Some compilers won't report that they do not support -Kthread, | ||||
7813 | # so we need to run a program to see whether it really made the | ||||
7814 | # function available. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
7816 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | ||||
7817 | if ${ac_cv_kthread+:} false; then : | ||||
7818 | $as_echo_n "(cached) " >&6 | ||||
7819 | else | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7820 | ac_save_cc="$CC" |
7821 | CC="$CC -Kthread" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7822 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7823 | ac_cv_kthread=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7824 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7826 | /* end confdefs.h. */ |
7827 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7828 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7829 | #include <pthread.h> |
7830 | |||||
7831 | void* routine(void* p){return NULL;} | ||||
7832 | |||||
7833 | int main(){ | ||||
7834 | pthread_t p; | ||||
7835 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7836 | return 1; | ||||
7837 | (void)pthread_detach(p); | ||||
7838 | return 0; | ||||
7839 | } | ||||
7840 | |||||
7841 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7842 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7843 | ac_cv_kthread=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7844 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7845 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7846 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7847 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7848 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7849 | fi |
7850 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7851 | CC="$ac_save_cc" |
7852 | fi | ||||
7853 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
7855 | $as_echo "$ac_cv_kthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7856 | fi |
7857 | |||||
7858 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | ||||
7859 | then | ||||
7860 | # -pthread, if available, provides the right #defines | ||||
7861 | # and linker options to make pthread_create available | ||||
7862 | # Some compilers won't report that they do not support -pthread, | ||||
7863 | # so we need to run a program to see whether it really made the | ||||
7864 | # function available. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
7866 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | ||||
7867 | if ${ac_cv_pthread+:} false; then : | ||||
7868 | $as_echo_n "(cached) " >&6 | ||||
7869 | else | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7870 | ac_save_cc="$CC" |
7871 | CC="$CC -pthread" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7872 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7873 | ac_cv_pthread=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7874 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7876 | /* end confdefs.h. */ |
7877 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7878 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7879 | #include <pthread.h> |
7880 | |||||
7881 | void* routine(void* p){return NULL;} | ||||
7882 | |||||
7883 | int main(){ | ||||
7884 | pthread_t p; | ||||
7885 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7886 | return 1; | ||||
7887 | (void)pthread_detach(p); | ||||
7888 | return 0; | ||||
7889 | } | ||||
7890 | |||||
7891 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7892 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7893 | ac_cv_pthread=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7894 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7895 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7896 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7897 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7898 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7899 | fi |
7900 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7901 | CC="$ac_save_cc" |
7902 | fi | ||||
7903 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
7905 | $as_echo "$ac_cv_pthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7906 | fi |
7907 | |||||
7908 | # If we have set a CC compiler flag for thread support then | ||||
7909 | # check if it works for CXX, too. | ||||
7910 | ac_cv_cxx_thread=no | ||||
7911 | if test ! -z "$CXX" | ||||
7912 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
7914 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7915 | ac_save_cxx="$CXX" |
7916 | |||||
7917 | if test "$ac_cv_kpthread" = "yes" | ||||
7918 | then | ||||
7919 | CXX="$CXX -Kpthread" | ||||
7920 | ac_cv_cxx_thread=yes | ||||
7921 | elif test "$ac_cv_kthread" = "yes" | ||||
7922 | then | ||||
7923 | CXX="$CXX -Kthread" | ||||
7924 | ac_cv_cxx_thread=yes | ||||
7925 | elif test "$ac_cv_pthread" = "yes" | ||||
7926 | then | ||||
7927 | CXX="$CXX -pthread" | ||||
7928 | ac_cv_cxx_thread=yes | ||||
7929 | fi | ||||
7930 | |||||
7931 | if test $ac_cv_cxx_thread = yes | ||||
7932 | then | ||||
7933 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | ||||
7934 | $CXX -c conftest.$ac_ext 2>&5 | ||||
7935 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | ||||
7936 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | ||||
7937 | then | ||||
7938 | ac_cv_cxx_thread=yes | ||||
7939 | else | ||||
7940 | ac_cv_cxx_thread=no | ||||
7941 | fi | ||||
7942 | rm -fr conftest* | ||||
7943 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
7945 | $as_echo "$ac_cv_cxx_thread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7946 | fi |
7947 | CXX="$ac_save_cxx" | ||||
7948 | |||||
7949 | |||||
7950 | # checks for header files | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7952 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
7953 | if ${ac_cv_header_stdc+:} false; then : | ||||
7954 | $as_echo_n "(cached) " >&6 | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7955 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7957 | /* end confdefs.h. */ | ||||
7958 | #include <stdlib.h> | ||||
7959 | #include <stdarg.h> | ||||
7960 | #include <string.h> | ||||
7961 | #include <float.h> | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7962 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7963 | int |
7964 | main () | ||||
7965 | { | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 7966 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7967 | ; |
7968 | return 0; | ||||
7969 | } | ||||
7970 | _ACEOF | ||||
7971 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7972 | ac_cv_header_stdc=yes | ||||
7973 | else | ||||
7974 | ac_cv_header_stdc=no | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7975 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7977 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7978 | if test $ac_cv_header_stdc = yes; then |
7979 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
7980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7981 | /* end confdefs.h. */ | ||||
7982 | #include <string.h> | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7983 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7984 | _ACEOF |
7985 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
7986 | $EGREP "memchr" >/dev/null 2>&1; then : | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7987 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7988 | else |
7989 | ac_cv_header_stdc=no | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7990 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7991 | rm -f conftest* |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7992 | |
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 7993 | fi |
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 7994 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 7995 | if test $ac_cv_header_stdc = yes; then |
7996 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
7997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7998 | /* end confdefs.h. */ | ||||
7999 | #include <stdlib.h> | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8000 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8001 | _ACEOF |
8002 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
8003 | $EGREP "free" >/dev/null 2>&1; then : | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8004 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8005 | else |
8006 | ac_cv_header_stdc=no | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8007 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8008 | rm -f conftest* |
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8009 | |
8010 | fi | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8011 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8012 | if test $ac_cv_header_stdc = yes; then |
8013 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||
8014 | if test "$cross_compiling" = yes; then : | ||||
8015 | : | ||||
8016 | else | ||||
8017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
8018 | /* end confdefs.h. */ | ||||
8019 | #include <ctype.h> | ||||
8020 | #include <stdlib.h> | ||||
8021 | #if ((' ' & 0x0FF) == 0x020) | ||||
8022 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
8023 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
8024 | #else | ||||
8025 | # define ISLOWER(c) \ | ||||
8026 | (('a' <= (c) && (c) <= 'i') \ | ||||
8027 | || ('j' <= (c) && (c) <= 'r') \ | ||||
8028 | || ('s' <= (c) && (c) <= 'z')) | ||||
8029 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
8030 | #endif | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8031 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8032 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
8033 | int | ||||
8034 | main () | ||||
8035 | { | ||||
8036 | int i; | ||||
8037 | for (i = 0; i < 256; i++) | ||||
8038 | if (XOR (islower (i), ISLOWER (i)) | ||||
8039 | || toupper (i) != TOUPPER (i)) | ||||
8040 | return 2; | ||||
8041 | return 0; | ||||
8042 | } | ||||
8043 | _ACEOF | ||||
8044 | if ac_fn_c_try_run "$LINENO"; then : | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8045 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8046 | else |
8047 | ac_cv_header_stdc=no | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8048 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8049 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8050 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8051 | fi |
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8052 | |
8053 | fi | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8054 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8056 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
8057 | if test $ac_cv_header_stdc = yes; then | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8058 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8059 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8060 | |
8061 | fi | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8062 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8063 | for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \ |
8064 | fcntl.h grp.h \ | ||||
8065 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | ||||
8066 | sched.h shadow.h signal.h stropts.h termios.h \ | ||||
8067 | utime.h \ | ||||
8068 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | ||||
8069 | sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ | ||||
8070 | sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ | ||||
8071 | sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ | ||||
8072 | sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ | ||||
8073 | sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ | ||||
8074 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | ||||
8075 | linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ | ||||
8076 | sys/endian.h sys/sysmacros.h linux/memfd.h linux/wait.h sys/memfd.h \ | ||||
8077 | sys/mman.h sys/eventfd.h | ||||
8078 | do : | ||||
8079 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
8080 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
8081 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
8082 | cat >>confdefs.h <<_ACEOF | ||||
8083 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
8084 | _ACEOF | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8085 | |
8086 | fi | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8087 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8088 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8089 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8090 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8091 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8092 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | ||||
8094 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | ||||
8095 | if eval \${$as_ac_Header+:} false; then : | ||||
8096 | $as_echo_n "(cached) " >&6 | ||||
8097 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8099 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8100 | #include <sys/types.h> |
8101 | #include <$ac_hdr> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8102 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8103 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8104 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8105 | { |
8106 | if ((DIR *) 0) | ||||
8107 | return 0; | ||||
8108 | ; | ||||
8109 | return 0; | ||||
8110 | } | ||||
8111 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8112 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8113 | eval "$as_ac_Header=yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8114 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8115 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8116 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8118 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8119 | eval ac_res=\$$as_ac_Header |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
8121 | $as_echo "$ac_res" >&6; } | ||||
8122 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8123 | cat >>confdefs.h <<_ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8124 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | _ACEOF |
8126 | |||||
8127 | ac_header_dirent=$ac_hdr; break | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8128 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8130 | done |
8131 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | ||||
8132 | if test $ac_header_dirent = dirent.h; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
8134 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
8135 | if ${ac_cv_search_opendir+:} false; then : | ||||
8136 | $as_echo_n "(cached) " >&6 | ||||
8137 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8138 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8140 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8141 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8142 | /* Override any GCC internal prototype to avoid an error. |
8143 | Use char because int might match the return type of a GCC | ||||
8144 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8145 | #ifdef __cplusplus |
8146 | extern "C" | ||||
8147 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8148 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8149 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8150 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8151 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8152 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8153 | ; |
8154 | return 0; | ||||
8155 | } | ||||
8156 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8157 | for ac_lib in '' dir; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8158 | if test -z "$ac_lib"; then |
8159 | ac_res="none required" | ||||
8160 | else | ||||
8161 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8162 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8163 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8164 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8165 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8166 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8167 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8168 | conftest$ac_exeext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8169 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8170 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8171 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8172 | done |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8173 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8174 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8175 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8176 | ac_cv_search_opendir=no |
8177 | fi | ||||
8178 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | LIBS=$ac_func_search_save_LIBS |
8180 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8182 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8183 | ac_res=$ac_cv_search_opendir |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8184 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8185 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8186 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8187 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8188 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8189 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
8191 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
8192 | if ${ac_cv_search_opendir+:} false; then : | ||||
8193 | $as_echo_n "(cached) " >&6 | ||||
8194 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8195 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8197 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8198 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8199 | /* Override any GCC internal prototype to avoid an error. |
8200 | Use char because int might match the return type of a GCC | ||||
8201 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8202 | #ifdef __cplusplus |
8203 | extern "C" | ||||
8204 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8206 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8207 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8208 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8209 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8210 | ; |
8211 | return 0; | ||||
8212 | } | ||||
8213 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8214 | for ac_lib in '' x; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8215 | if test -z "$ac_lib"; then |
8216 | ac_res="none required" | ||||
8217 | else | ||||
8218 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8219 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8220 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8221 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8222 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8223 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8224 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8225 | conftest$ac_exeext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8226 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8227 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8228 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8229 | done |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8230 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8231 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8232 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8233 | ac_cv_search_opendir=no |
8234 | fi | ||||
8235 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8236 | LIBS=$ac_func_search_save_LIBS |
8237 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8239 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8240 | ac_res=$ac_cv_search_opendir |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8241 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8242 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8243 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8244 | fi |
8245 | |||||
8246 | fi | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8247 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
8249 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | ||||
8250 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | ||||
8251 | $as_echo_n "(cached) " >&6 | ||||
8252 | else | ||||
8253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
8254 | /* end confdefs.h. */ | ||||
8255 | #include <sys/types.h> | ||||
8256 | int | ||||
8257 | main () | ||||
8258 | { | ||||
8259 | return makedev(0, 0); | ||||
8260 | ; | ||||
8261 | return 0; | ||||
8262 | } | ||||
8263 | _ACEOF | ||||
8264 | if ac_fn_c_try_link "$LINENO"; then : | ||||
8265 | ac_cv_header_sys_types_h_makedev=yes | ||||
8266 | else | ||||
8267 | ac_cv_header_sys_types_h_makedev=no | ||||
8268 | fi | ||||
8269 | rm -f core conftest.err conftest.$ac_objext \ | ||||
8270 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8271 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8272 | fi |
8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | ||||
8274 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8275 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8276 | if test $ac_cv_header_sys_types_h_makedev = no; then |
8277 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | ||||
8278 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | ||||
8279 | |||||
8280 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8281 | |
8282 | fi | ||||
8283 | |||||
8284 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8285 | |
8286 | if test $ac_cv_header_sys_mkdev_h = no; then | ||||
8287 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | ||||
8288 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | ||||
8289 | |||||
8290 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8291 | |
8292 | fi | ||||
8293 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8294 | |
8295 | fi | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8296 | fi |
8297 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8298 | |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 8299 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. |
8300 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 | ||||
8301 | SAVE_CFLAGS=$CFLAGS | ||||
8302 | CFLAGS="-std=c99 $CFLAGS" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8303 | for ac_header in bluetooth/bluetooth.h |
8304 | do : | ||||
8305 | ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" | ||||
8306 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : | ||||
8307 | cat >>confdefs.h <<_ACEOF | ||||
8308 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 | ||||
8309 | _ACEOF | ||||
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 8310 | |
8311 | fi | ||||
8312 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8313 | done |
8314 | |||||
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 8315 | CFLAGS=$SAVE_CFLAGS |
8316 | |||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8317 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8318 | for ac_header in net/if.h |
8319 | do : | ||||
8320 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | ||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8321 | #ifdef STDC_HEADERS |
8322 | # include <stdlib.h> | ||||
8323 | # include <stddef.h> | ||||
8324 | #else | ||||
8325 | # ifdef HAVE_STDLIB_H | ||||
8326 | # include <stdlib.h> | ||||
8327 | # endif | ||||
8328 | #endif | ||||
8329 | #ifdef HAVE_SYS_SOCKET_H | ||||
8330 | # include <sys/socket.h> | ||||
8331 | #endif | ||||
8332 | |||||
8333 | " | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8334 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
8335 | cat >>confdefs.h <<_ACEOF | ||||
8336 | #define HAVE_NET_IF_H 1 | ||||
8337 | _ACEOF | ||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8338 | |
8339 | fi | ||||
8340 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8341 | done |
8342 | |||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8343 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8344 | # On Linux, netlink.h requires asm/types.h |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8345 | for ac_header in linux/netlink.h |
8346 | do : | ||||
8347 | ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " | ||||
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8348 | #ifdef HAVE_ASM_TYPES_H |
8349 | #include <asm/types.h> | ||||
8350 | #endif | ||||
8351 | #ifdef HAVE_SYS_SOCKET_H | ||||
8352 | #include <sys/socket.h> | ||||
8353 | #endif | ||||
8354 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8355 | " |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8356 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : |
8357 | cat >>confdefs.h <<_ACEOF | ||||
8358 | #define HAVE_LINUX_NETLINK_H 1 | ||||
8359 | _ACEOF | ||||
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8360 | |
8361 | fi | ||||
8362 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8363 | done |
8364 | |||||
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8365 | |
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 8366 | # On Linux, qrtr.h requires asm/types.h |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8367 | for ac_header in linux/qrtr.h |
8368 | do : | ||||
8369 | ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" " | ||||
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 8370 | #ifdef HAVE_ASM_TYPES_H |
8371 | #include <asm/types.h> | ||||
8372 | #endif | ||||
8373 | #ifdef HAVE_SYS_SOCKET_H | ||||
8374 | #include <sys/socket.h> | ||||
8375 | #endif | ||||
8376 | |||||
8377 | " | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8378 | if test "x$ac_cv_header_linux_qrtr_h" = xyes; then : |
8379 | cat >>confdefs.h <<_ACEOF | ||||
8380 | #define HAVE_LINUX_QRTR_H 1 | ||||
8381 | _ACEOF | ||||
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 8382 | |
8383 | fi | ||||
8384 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8385 | done |
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 8386 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8387 | |
8388 | for ac_header in linux/vm_sockets.h | ||||
8389 | do : | ||||
8390 | ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " | ||||
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 8391 | #ifdef HAVE_SYS_SOCKET_H |
8392 | #include <sys/socket.h> | ||||
8393 | #endif | ||||
8394 | |||||
8395 | " | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8396 | if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : |
8397 | cat >>confdefs.h <<_ACEOF | ||||
8398 | #define HAVE_LINUX_VM_SOCKETS_H 1 | ||||
8399 | _ACEOF | ||||
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 8400 | |
8401 | fi | ||||
8402 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8403 | done |
8404 | |||||
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 8405 | |
karl ding | 360371f | 2020-04-29 15:31:19 -0700 | [diff] [blame] | 8406 | # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8407 | for ac_header in linux/can.h linux/can/bcm.h linux/can/j1939.h linux/can/raw.h |
8408 | do : | ||||
8409 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
8410 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | ||||
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8411 | #ifdef HAVE_SYS_SOCKET_H |
8412 | #include <sys/socket.h> | ||||
8413 | #endif | ||||
8414 | |||||
8415 | " | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8416 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
8417 | cat >>confdefs.h <<_ACEOF | ||||
8418 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
8419 | _ACEOF | ||||
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8420 | |
8421 | fi | ||||
8422 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8423 | done |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8424 | |
8425 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8426 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8427 | was_it_defined=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
8429 | $as_echo_n "checking for clock_t in time.h... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8431 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8432 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8433 | |
8434 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8435 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8436 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8437 | was_it_defined=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8439 | |
8440 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8441 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8442 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8443 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8444 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8445 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8446 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
8448 | $as_echo "$was_it_defined" >&6; } | ||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8449 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
8451 | $as_echo_n "checking for makedev... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8453 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8454 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8455 | #if defined(MAJOR_IN_MKDEV) |
8456 | #include <sys/mkdev.h> | ||||
8457 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
8458 | #include <sys/sysmacros.h> | ||||
8459 | #else | ||||
8460 | #include <sys/types.h> | ||||
8461 | #endif | ||||
8462 | |||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8463 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8464 | main () |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8465 | { |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8466 | |
8467 | makedev(0, 0) | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8468 | ; |
8469 | return 0; | ||||
8470 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8471 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8472 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8473 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8474 | ac_cv_has_makedev=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8475 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8476 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8477 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8478 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8479 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
8481 | $as_echo "$ac_cv_has_makedev" >&6; } | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8482 | if test "$ac_cv_has_makedev" = "yes"; then |
8483 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8484 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8485 | |
8486 | fi | ||||
8487 | |||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8488 | # byte swapping |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 |
8490 | $as_echo_n "checking for le64toh... " >&6; } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8492 | /* end confdefs.h. */ | ||||
8493 | |||||
8494 | #ifdef HAVE_ENDIAN_H | ||||
8495 | #include <endian.h> | ||||
8496 | #elif defined(HAVE_SYS_ENDIAN_H) | ||||
8497 | #include <sys/endian.h> | ||||
8498 | #endif | ||||
8499 | |||||
8500 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8501 | main () |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8502 | { |
8503 | |||||
8504 | le64toh(1) | ||||
8505 | ; | ||||
8506 | return 0; | ||||
8507 | } | ||||
8508 | |||||
8509 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8510 | if ac_fn_c_try_link "$LINENO"; then : |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8511 | ac_cv_has_le64toh=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8512 | else |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8513 | ac_cv_has_le64toh=no |
8514 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8515 | rm -f core conftest.err conftest.$ac_objext \ |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8516 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 |
8518 | $as_echo "$ac_cv_has_le64toh" >&6; } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8519 | if test "$ac_cv_has_le64toh" = "yes"; then |
8520 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8521 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8522 | |
8523 | fi | ||||
8524 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8525 | use_lfs=yes |
doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 8526 | # Don't use largefile support for GNU/Hurd |
8527 | case $ac_sys_system in GNU*) | ||||
8528 | use_lfs=no | ||||
8529 | esac | ||||
8530 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8531 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8532 | # Two defines needed to enable largefile support on various platforms |
8533 | # These may affect some typedefs | ||||
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8534 | case $ac_sys_system/$ac_sys_release in |
8535 | AIX*) | ||||
8536 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8537 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8538 | |
8539 | ;; | ||||
8540 | esac | ||||
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8541 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8542 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8543 | |
8544 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8545 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8546 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8547 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8548 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8549 | # Add some code to confdefs.h so that the test for off_t works on SCO |
8550 | cat >> confdefs.h <<\EOF | ||||
8551 | #if defined(SCO_DS) | ||||
8552 | #undef _OFF_T | ||||
8553 | #endif | ||||
8554 | EOF | ||||
8555 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8556 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8557 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8558 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8559 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8560 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8562 | cat >>confdefs.h <<_ACEOF |
8563 | #define mode_t int | ||||
8564 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8565 | |
8566 | fi | ||||
8567 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8568 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8569 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8570 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8572 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8573 | cat >>confdefs.h <<_ACEOF |
8574 | #define off_t long int | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 8575 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8576 | |
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8577 | fi |
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8578 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8579 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
8580 | if test "x$ac_cv_type_pid_t" = xyes; then : | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8581 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8582 | else |
8583 | |||||
8584 | cat >>confdefs.h <<_ACEOF | ||||
8585 | #define pid_t int | ||||
8586 | _ACEOF | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 8587 | |
8588 | fi | ||||
8589 | |||||
8590 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8591 | cat >>confdefs.h <<_ACEOF |
8592 | #define RETSIGTYPE void | ||||
8593 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8594 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8595 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8596 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8597 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8598 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8600 | cat >>confdefs.h <<_ACEOF |
8601 | #define size_t unsigned int | ||||
8602 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8603 | |
8604 | fi | ||||
8605 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
8607 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | ||||
8608 | if ${ac_cv_type_uid_t+:} false; then : | ||||
8609 | $as_echo_n "(cached) " >&6 | ||||
8610 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8612 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8613 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8614 | |
8615 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8617 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8618 | ac_cv_type_uid_t=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8619 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8620 | ac_cv_type_uid_t=no |
8621 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8622 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8623 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8624 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
8626 | $as_echo "$ac_cv_type_uid_t" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8627 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8628 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8629 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | |
8631 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8632 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8633 | |
8634 | fi | ||||
8635 | |||||
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8636 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8637 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8638 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8639 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8640 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8641 | |
8642 | fi | ||||
8643 | |||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8644 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8645 | if test "x$ac_cv_type___uint128_t" = xyes; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8646 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8647 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8648 | |
8649 | fi | ||||
8650 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8651 | |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 8652 | # Sizes and alignments of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8653 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8654 | # The cast to long int works around a bug in the HP C Compiler |
8655 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8656 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8657 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
8659 | $as_echo_n "checking size of int... " >&6; } | ||||
8660 | if ${ac_cv_sizeof_int+:} false; then : | ||||
8661 | $as_echo_n "(cached) " >&6 | ||||
8662 | else | ||||
8663 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8664 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8665 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8666 | if test "$ac_cv_type_int" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8667 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8668 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8669 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8670 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8671 | else |
8672 | ac_cv_sizeof_int=0 | ||||
8673 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8674 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
8678 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8679 | |
8680 | |||||
8681 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8682 | cat >>confdefs.h <<_ACEOF |
8683 | #define SIZEOF_INT $ac_cv_sizeof_int | ||||
8684 | _ACEOF | ||||
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8685 | |
8686 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8687 | # The cast to long int works around a bug in the HP C Compiler |
8688 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8689 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8690 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
8692 | $as_echo_n "checking size of long... " >&6; } | ||||
8693 | if ${ac_cv_sizeof_long+:} false; then : | ||||
8694 | $as_echo_n "(cached) " >&6 | ||||
8695 | else | ||||
8696 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8697 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8698 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8699 | if test "$ac_cv_type_long" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8700 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8701 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8702 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8703 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8704 | else |
8705 | ac_cv_sizeof_long=0 | ||||
8706 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8707 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8709 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
8711 | $as_echo "$ac_cv_sizeof_long" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8712 | |
8713 | |||||
8714 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8715 | cat >>confdefs.h <<_ACEOF |
8716 | #define SIZEOF_LONG $ac_cv_sizeof_long | ||||
8717 | _ACEOF | ||||
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8718 | |
8719 | |||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 8720 | # The cast to long int works around a bug in the HP C Compiler, |
8721 | # see AC_CHECK_SIZEOF for more information. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5 |
8723 | $as_echo_n "checking alignment of long... " >&6; } | ||||
8724 | if ${ac_cv_alignof_long+:} false; then : | ||||
8725 | $as_echo_n "(cached) " >&6 | ||||
8726 | else | ||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 8727 | if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8728 | #ifndef offsetof |
8729 | # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) | ||||
8730 | #endif | ||||
8731 | typedef struct { char x; long y; } ac__type_alignof_;"; then : | ||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 8732 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8733 | else |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 8734 | if test "$ac_cv_type_long" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8735 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8736 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 8737 | as_fn_error 77 "cannot compute alignment of long |
8738 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8739 | else | ||||
8740 | ac_cv_alignof_long=0 | ||||
8741 | fi | ||||
8742 | fi | ||||
8743 | |||||
8744 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5 |
8746 | $as_echo "$ac_cv_alignof_long" >&6; } | ||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 8747 | |
8748 | |||||
8749 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8750 | cat >>confdefs.h <<_ACEOF |
8751 | #define ALIGNOF_LONG $ac_cv_alignof_long | ||||
8752 | _ACEOF | ||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 8753 | |
8754 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8755 | # The cast to long int works around a bug in the HP C Compiler |
8756 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8757 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8758 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
8760 | $as_echo_n "checking size of long long... " >&6; } | ||||
8761 | if ${ac_cv_sizeof_long_long+:} false; then : | ||||
8762 | $as_echo_n "(cached) " >&6 | ||||
8763 | else | ||||
8764 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | ||||
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8765 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8766 | else |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8767 | if test "$ac_cv_type_long_long" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8768 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8769 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8770 | as_fn_error 77 "cannot compute sizeof (long long) |
8771 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8772 | else | ||||
8773 | ac_cv_sizeof_long_long=0 | ||||
8774 | fi | ||||
8775 | fi | ||||
8776 | |||||
8777 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
8779 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | ||||
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8780 | |
8781 | |||||
8782 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8783 | cat >>confdefs.h <<_ACEOF |
8784 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | ||||
8785 | _ACEOF | ||||
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8786 | |
8787 | |||||
8788 | # The cast to long int works around a bug in the HP C Compiler | ||||
8789 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8790 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8791 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
8793 | $as_echo_n "checking size of void *... " >&6; } | ||||
8794 | if ${ac_cv_sizeof_void_p+:} false; then : | ||||
8795 | $as_echo_n "(cached) " >&6 | ||||
8796 | else | ||||
8797 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8798 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8799 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8800 | if test "$ac_cv_type_void_p" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8801 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8802 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8803 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8804 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8805 | else |
8806 | ac_cv_sizeof_void_p=0 | ||||
8807 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8808 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8810 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
8812 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8813 | |
8814 | |||||
8815 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8816 | cat >>confdefs.h <<_ACEOF |
8817 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | ||||
8818 | _ACEOF | ||||
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8819 | |
8820 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8821 | # The cast to long int works around a bug in the HP C Compiler |
8822 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8823 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8824 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
8826 | $as_echo_n "checking size of short... " >&6; } | ||||
8827 | if ${ac_cv_sizeof_short+:} false; then : | ||||
8828 | $as_echo_n "(cached) " >&6 | ||||
8829 | else | ||||
8830 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8832 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8833 | if test "$ac_cv_type_short" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8834 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8835 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8836 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8837 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8838 | else |
8839 | ac_cv_sizeof_short=0 | ||||
8840 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8841 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8843 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
8845 | $as_echo "$ac_cv_sizeof_short" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8846 | |
8847 | |||||
8848 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8849 | cat >>confdefs.h <<_ACEOF |
8850 | #define SIZEOF_SHORT $ac_cv_sizeof_short | ||||
8851 | _ACEOF | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8852 | |
8853 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8854 | # The cast to long int works around a bug in the HP C Compiler |
8855 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8856 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8857 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
8859 | $as_echo_n "checking size of float... " >&6; } | ||||
8860 | if ${ac_cv_sizeof_float+:} false; then : | ||||
8861 | $as_echo_n "(cached) " >&6 | ||||
8862 | else | ||||
8863 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8865 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8866 | if test "$ac_cv_type_float" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8867 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8868 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8869 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8870 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8871 | else |
8872 | ac_cv_sizeof_float=0 | ||||
8873 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8874 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
8878 | $as_echo "$ac_cv_sizeof_float" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8879 | |
8880 | |||||
8881 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8882 | cat >>confdefs.h <<_ACEOF |
8883 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | ||||
8884 | _ACEOF | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8885 | |
8886 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8887 | # The cast to long int works around a bug in the HP C Compiler |
8888 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8889 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8890 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
8892 | $as_echo_n "checking size of double... " >&6; } | ||||
8893 | if ${ac_cv_sizeof_double+:} false; then : | ||||
8894 | $as_echo_n "(cached) " >&6 | ||||
8895 | else | ||||
8896 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8897 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8898 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8899 | if test "$ac_cv_type_double" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8900 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8901 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8902 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8903 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8904 | else |
8905 | ac_cv_sizeof_double=0 | ||||
8906 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8907 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8908 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8909 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
8911 | $as_echo "$ac_cv_sizeof_double" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8912 | |
8913 | |||||
8914 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8915 | cat >>confdefs.h <<_ACEOF |
8916 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | ||||
8917 | _ACEOF | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8918 | |
8919 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8920 | # The cast to long int works around a bug in the HP C Compiler |
8921 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8922 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8923 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
8925 | $as_echo_n "checking size of fpos_t... " >&6; } | ||||
8926 | if ${ac_cv_sizeof_fpos_t+:} false; then : | ||||
8927 | $as_echo_n "(cached) " >&6 | ||||
8928 | else | ||||
8929 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8930 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8931 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8932 | if test "$ac_cv_type_fpos_t" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8933 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8934 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8935 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8936 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8937 | else |
8938 | ac_cv_sizeof_fpos_t=0 | ||||
8939 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8940 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8942 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
8944 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8945 | |
8946 | |||||
8947 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8948 | cat >>confdefs.h <<_ACEOF |
8949 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | ||||
8950 | _ACEOF | ||||
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8951 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8952 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8953 | # The cast to long int works around a bug in the HP C Compiler |
8954 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8955 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8956 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
8958 | $as_echo_n "checking size of size_t... " >&6; } | ||||
8959 | if ${ac_cv_sizeof_size_t+:} false; then : | ||||
8960 | $as_echo_n "(cached) " >&6 | ||||
8961 | else | ||||
8962 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : | ||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8963 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8964 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8965 | if test "$ac_cv_type_size_t" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8966 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8967 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8968 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8969 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8970 | else |
8971 | ac_cv_sizeof_size_t=0 | ||||
8972 | fi | ||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8973 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8974 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8975 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
8977 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8978 | |
8979 | |||||
8980 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8981 | cat >>confdefs.h <<_ACEOF |
8982 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | ||||
8983 | _ACEOF | ||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8984 | |
8985 | |||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 8986 | # The cast to long int works around a bug in the HP C Compiler, |
8987 | # see AC_CHECK_SIZEOF for more information. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5 |
8989 | $as_echo_n "checking alignment of size_t... " >&6; } | ||||
8990 | if ${ac_cv_alignof_size_t+:} false; then : | ||||
8991 | $as_echo_n "(cached) " >&6 | ||||
8992 | else | ||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 8993 | if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8994 | #ifndef offsetof |
8995 | # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) | ||||
8996 | #endif | ||||
8997 | typedef struct { char x; size_t y; } ac__type_alignof_;"; then : | ||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 8998 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 8999 | else |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9000 | if test "$ac_cv_type_size_t" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9001 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9002 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9003 | as_fn_error 77 "cannot compute alignment of size_t |
9004 | See \`config.log' for more details" "$LINENO" 5; } | ||||
9005 | else | ||||
9006 | ac_cv_alignof_size_t=0 | ||||
9007 | fi | ||||
9008 | fi | ||||
9009 | |||||
9010 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5 |
9012 | $as_echo "$ac_cv_alignof_size_t" >&6; } | ||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9013 | |
9014 | |||||
9015 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9016 | cat >>confdefs.h <<_ACEOF |
9017 | #define ALIGNOF_SIZE_T $ac_cv_alignof_size_t | ||||
9018 | _ACEOF | ||||
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9019 | |
9020 | |||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 9021 | # The cast to long int works around a bug in the HP C Compiler |
9022 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9023 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9024 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
9026 | $as_echo_n "checking size of pid_t... " >&6; } | ||||
9027 | if ${ac_cv_sizeof_pid_t+:} false; then : | ||||
9028 | $as_echo_n "(cached) " >&6 | ||||
9029 | else | ||||
9030 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : | ||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 9031 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9032 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9033 | if test "$ac_cv_type_pid_t" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9034 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9035 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9036 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9037 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 9038 | else |
9039 | ac_cv_sizeof_pid_t=0 | ||||
9040 | fi | ||||
9041 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9042 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 9043 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
9045 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | ||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 9046 | |
9047 | |||||
9048 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9049 | cat >>confdefs.h <<_ACEOF |
9050 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | ||||
9051 | _ACEOF | ||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 9052 | |
9053 | |||||
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 9054 | # The cast to long int works around a bug in the HP C Compiler |
9055 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9056 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9057 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
9059 | $as_echo_n "checking size of uintptr_t... " >&6; } | ||||
9060 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | ||||
9061 | $as_echo_n "(cached) " >&6 | ||||
9062 | else | ||||
9063 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : | ||||
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 9064 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9065 | else |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 9066 | if test "$ac_cv_type_uintptr_t" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9067 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9068 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 9069 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
9070 | See \`config.log' for more details" "$LINENO" 5; } | ||||
9071 | else | ||||
9072 | ac_cv_sizeof_uintptr_t=0 | ||||
9073 | fi | ||||
9074 | fi | ||||
9075 | |||||
9076 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
9078 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | ||||
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 9079 | |
9080 | |||||
9081 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9082 | cat >>confdefs.h <<_ACEOF |
9083 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | ||||
9084 | _ACEOF | ||||
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 9085 | |
9086 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9087 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9088 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
9090 | $as_echo_n "checking for long double... " >&6; } | ||||
9091 | if ${ac_cv_type_long_double+:} false; then : | ||||
9092 | $as_echo_n "(cached) " >&6 | ||||
9093 | else | ||||
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9094 | if test "$GCC" = yes; then |
9095 | ac_cv_type_long_double=yes | ||||
9096 | else | ||||
9097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9098 | /* end confdefs.h. */ | ||||
9099 | /* The Stardent Vistra knows sizeof (long double), but does | ||||
9100 | not support it. */ | ||||
9101 | long double foo = 0.0L; | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9102 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9103 | main () |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9104 | { |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9105 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
9106 | sizeof (double) <= sizeof (long double))]; | ||||
9107 | test_array [0] = 0; | ||||
9108 | return test_array [0]; | ||||
9109 | |||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9110 | ; |
9111 | return 0; | ||||
9112 | } | ||||
9113 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9114 | if ac_fn_c_try_compile "$LINENO"; then : |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9115 | ac_cv_type_long_double=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9116 | else |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9117 | ac_cv_type_long_double=no |
9118 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9120 | fi |
9121 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 |
9123 | $as_echo "$ac_cv_type_long_double" >&6; } | ||||
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9124 | if test $ac_cv_type_long_double = yes; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9125 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9126 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9127 | |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9128 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9129 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9130 | # The cast to long int works around a bug in the HP C Compiler |
9131 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9132 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9133 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
9135 | $as_echo_n "checking size of long double... " >&6; } | ||||
9136 | if ${ac_cv_sizeof_long_double+:} false; then : | ||||
9137 | $as_echo_n "(cached) " >&6 | ||||
9138 | else | ||||
9139 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9140 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9141 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9142 | if test "$ac_cv_type_long_double" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9143 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9144 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9145 | as_fn_error 77 "cannot compute sizeof (long double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9146 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9147 | else |
9148 | ac_cv_sizeof_long_double=0 | ||||
9149 | fi | ||||
9150 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9151 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9152 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
9154 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9155 | |
9156 | |||||
9157 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9158 | cat >>confdefs.h <<_ACEOF |
9159 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | ||||
9160 | _ACEOF | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9161 | |
9162 | |||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9163 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9164 | # The cast to long int works around a bug in the HP C Compiler |
9165 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9166 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9167 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
9169 | $as_echo_n "checking size of _Bool... " >&6; } | ||||
9170 | if ${ac_cv_sizeof__Bool+:} false; then : | ||||
9171 | $as_echo_n "(cached) " >&6 | ||||
9172 | else | ||||
9173 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then : | ||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9174 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9175 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9176 | if test "$ac_cv_type__Bool" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9177 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9178 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9179 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9180 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9181 | else |
9182 | ac_cv_sizeof__Bool=0 | ||||
9183 | fi | ||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9184 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9185 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9186 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
9188 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9189 | |
9190 | |||||
9191 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9192 | cat >>confdefs.h <<_ACEOF |
9193 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | ||||
9194 | _ACEOF | ||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9195 | |
9196 | |||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9197 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9198 | # The cast to long int works around a bug in the HP C Compiler |
9199 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9200 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9201 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
9203 | $as_echo_n "checking size of off_t... " >&6; } | ||||
9204 | if ${ac_cv_sizeof_off_t+:} false; then : | ||||
9205 | $as_echo_n "(cached) " >&6 | ||||
9206 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9207 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9208 | #ifdef HAVE_SYS_TYPES_H |
9209 | #include <sys/types.h> | ||||
9210 | #endif | ||||
9211 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9212 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9213 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9214 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9215 | if test "$ac_cv_type_off_t" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9216 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9217 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9218 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9219 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9220 | else |
9221 | ac_cv_sizeof_off_t=0 | ||||
9222 | fi | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9223 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9224 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9225 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
9227 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9228 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9229 | |
9230 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9231 | cat >>confdefs.h <<_ACEOF |
9232 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | ||||
9233 | _ACEOF | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9234 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9235 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9236 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
9238 | $as_echo_n "checking whether to enable large file support... " >&6; } | ||||
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 9239 | if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9240 | "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9241 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9242 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9245 | $as_echo "yes" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9246 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9248 | $as_echo "no" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9249 | fi |
9250 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9251 | # The cast to long int works around a bug in the HP C Compiler |
9252 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9253 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9254 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
9256 | $as_echo_n "checking size of time_t... " >&6; } | ||||
9257 | if ${ac_cv_sizeof_time_t+:} false; then : | ||||
9258 | $as_echo_n "(cached) " >&6 | ||||
9259 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9260 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9261 | #ifdef HAVE_SYS_TYPES_H |
9262 | #include <sys/types.h> | ||||
9263 | #endif | ||||
9264 | #ifdef HAVE_TIME_H | ||||
9265 | #include <time.h> | ||||
9266 | #endif | ||||
9267 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9268 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9269 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9270 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9271 | if test "$ac_cv_type_time_t" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9272 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9273 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9274 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9275 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9276 | else |
9277 | ac_cv_sizeof_time_t=0 | ||||
9278 | fi | ||||
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9279 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9280 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9281 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
9283 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9284 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9285 | |
9286 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9287 | cat >>confdefs.h <<_ACEOF |
9288 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | ||||
9289 | _ACEOF | ||||
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9290 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9291 | |
9292 | |||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9293 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9294 | ac_save_cc="$CC" |
9295 | if test "$ac_cv_kpthread" = "yes" | ||||
9296 | then CC="$CC -Kpthread" | ||||
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9297 | elif test "$ac_cv_kthread" = "yes" |
9298 | then CC="$CC -Kthread" | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9299 | elif test "$ac_cv_pthread" = "yes" |
9300 | then CC="$CC -pthread" | ||||
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9301 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9302 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
9304 | $as_echo_n "checking for pthread_t... " >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9305 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9307 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9308 | |
9309 | #include <pthread.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9311 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9312 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9313 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9314 | ; |
9315 | return 0; | ||||
9316 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9318 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9319 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9320 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9321 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | ||||
9324 | $as_echo "$have_pthread_t" >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9325 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9326 | # The cast to long int works around a bug in the HP C Compiler |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9327 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
9328 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9329 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
9331 | $as_echo_n "checking size of pthread_t... " >&6; } | ||||
9332 | if ${ac_cv_sizeof_pthread_t+:} false; then : | ||||
9333 | $as_echo_n "(cached) " >&6 | ||||
9334 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9335 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9336 | #ifdef HAVE_PTHREAD_H |
9337 | #include <pthread.h> | ||||
9338 | #endif | ||||
9339 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9340 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9341 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9342 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9343 | if test "$ac_cv_type_pthread_t" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9344 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9345 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9346 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9347 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9348 | else |
9349 | ac_cv_sizeof_pthread_t=0 | ||||
9350 | fi | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9351 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9352 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9353 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
9355 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9356 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9357 | |
9358 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9359 | cat >>confdefs.h <<_ACEOF |
9360 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | ||||
9361 | _ACEOF | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9362 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9363 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9364 | fi |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9365 | |
9366 | # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. | ||||
9367 | # This checking will be unnecessary after removing deprecated TLS API. | ||||
9368 | # The cast to long int works around a bug in the HP C Compiler | ||||
9369 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9370 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9371 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 |
9373 | $as_echo_n "checking size of pthread_key_t... " >&6; } | ||||
9374 | if ${ac_cv_sizeof_pthread_key_t+:} false; then : | ||||
9375 | $as_echo_n "(cached) " >&6 | ||||
9376 | else | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9377 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9378 | "; then : |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9379 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9380 | else |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9381 | if test "$ac_cv_type_pthread_key_t" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9382 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9383 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9384 | as_fn_error 77 "cannot compute sizeof (pthread_key_t) |
9385 | See \`config.log' for more details" "$LINENO" 5; } | ||||
9386 | else | ||||
9387 | ac_cv_sizeof_pthread_key_t=0 | ||||
9388 | fi | ||||
9389 | fi | ||||
9390 | |||||
9391 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 |
9393 | $as_echo "$ac_cv_sizeof_pthread_key_t" >&6; } | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9394 | |
9395 | |||||
9396 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9397 | cat >>confdefs.h <<_ACEOF |
9398 | #define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t | ||||
9399 | _ACEOF | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9400 | |
9401 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 |
9403 | $as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; } | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9404 | if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then |
9405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9406 | /* end confdefs.h. */ | ||||
9407 | #include <pthread.h> | ||||
9408 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9409 | main () |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9410 | { |
9411 | pthread_key_t k; k * 1; | ||||
9412 | ; | ||||
9413 | return 0; | ||||
9414 | } | ||||
9415 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9416 | if ac_fn_c_try_compile "$LINENO"; then : |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9417 | ac_pthread_key_t_is_arithmetic_type=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9418 | else |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9419 | ac_pthread_key_t_is_arithmetic_type=no |
9420 | |||||
9421 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 | ||||
9424 | $as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; } | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9425 | if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then |
9426 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9427 | $as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9428 | |
9429 | fi | ||||
9430 | else | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9432 | $as_echo "no" >&6; } | ||||
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9433 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9434 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9435 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9436 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9437 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9438 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9439 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
9440 | ;; | ||||
9441 | Darwin/*) | ||||
9442 | OTHER_LIBTOOL_OPT="" | ||||
9443 | ;; | ||||
9444 | esac | ||||
9445 | |||||
9446 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9447 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9448 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9449 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9450 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
9451 | if test "${enable_universalsdk}"; then | ||||
9452 | : | ||||
9453 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9454 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9455 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9456 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9457 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9458 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 9459 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9460 | if test ${gcc_version} '<' 4.0 |
9461 | then | ||||
9462 | LIBTOOL_CRUFT="-lcc_dynamic" | ||||
9463 | else | ||||
9464 | LIBTOOL_CRUFT="" | ||||
9465 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9466 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9467 | ac_osx_32bit=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9468 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9470 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9471 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9472 | #include <unistd.h> |
9473 | int main(int argc, char*argv[]) | ||||
9474 | { | ||||
9475 | if (sizeof(long) == 4) { | ||||
9476 | return 0; | ||||
9477 | } else { | ||||
9478 | return 1; | ||||
9479 | } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9480 | } |
9481 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9482 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9483 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9484 | ac_osx_32bit=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9485 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9486 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9487 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9488 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
9489 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9490 | fi |
9491 | |||||
9492 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9493 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9494 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9495 | i386) |
9496 | MACOSX_DEFAULT_ARCH="i386" | ||||
9497 | ;; | ||||
9498 | ppc) | ||||
9499 | MACOSX_DEFAULT_ARCH="ppc" | ||||
9500 | ;; | ||||
9501 | *) | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 9502 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9503 | ;; |
9504 | esac | ||||
9505 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9506 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9507 | i386) |
9508 | MACOSX_DEFAULT_ARCH="x86_64" | ||||
9509 | ;; | ||||
9510 | ppc) | ||||
9511 | MACOSX_DEFAULT_ARCH="ppc64" | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 9512 | ;; |
9513 | arm64) | ||||
9514 | MACOSX_DEFAULT_ARCH="arm64" | ||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9515 | ;; |
9516 | *) | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 9517 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9518 | ;; |
9519 | esac | ||||
9520 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9521 | fi |
9522 | |||||
9523 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | ||||
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9524 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9525 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9526 | esac |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
9528 | $as_echo_n "checking for --enable-framework... " >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9529 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9530 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9531 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9532 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9533 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9534 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9535 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9536 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9538 | $as_echo "yes" >&6; } | ||||
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9539 | if test $enable_shared = "yes" |
9540 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9541 | as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9542 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9543 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9545 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9546 | fi |
9547 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
9549 | $as_echo_n "checking for dyld... " >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9550 | case $ac_sys_system/$ac_sys_release in |
9551 | Darwin/*) | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9552 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9553 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
9556 | $as_echo "always on for Darwin" >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9557 | ;; |
9558 | *) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9560 | $as_echo "no" >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9561 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9562 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9563 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9564 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9565 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9566 | |
9567 | |||||
9568 | |||||
9569 | |||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9570 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9571 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9572 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
9573 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 |
9575 | $as_echo_n "checking the extension of shared libraries... " >&6; } | ||||
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9576 | if test -z "$SHLIB_SUFFIX"; then |
9577 | case $ac_sys_system in | ||||
9578 | hp*|HP*) | ||||
9579 | case `uname -m` in | ||||
9580 | ia64) SHLIB_SUFFIX=.so;; | ||||
9581 | *) SHLIB_SUFFIX=.sl;; | ||||
9582 | esac | ||||
9583 | ;; | ||||
9584 | CYGWIN*) SHLIB_SUFFIX=.dll;; | ||||
9585 | *) SHLIB_SUFFIX=.so;; | ||||
9586 | esac | ||||
9587 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 |
9589 | $as_echo "$SHLIB_SUFFIX" >&6; } | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9590 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9591 | # LDSHARED is the ld *command* used to create shared library |
Benjamin Peterson | 0693063 | 2017-09-04 16:36:05 -0700 | [diff] [blame] | 9592 | # -- "cc -G" on SunOS 5.x. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9593 | # (Shared libraries in this instance are shared modules to be loaded into |
9594 | # Python, as opposed to building Python itself as a shared library.) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
9596 | $as_echo_n "checking LDSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9597 | if test -z "$LDSHARED" |
9598 | then | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9599 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9600 | AIX*) |
Martin Panter | 395733d | 2016-11-20 07:56:37 +0000 | [diff] [blame] | 9601 | BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9602 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9603 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9605 | if test "$GCC" = "yes" ; then |
9606 | LDSHARED='$(CC) -shared' | ||||
9607 | LDCXXSHARED='$(CXX) -shared' | ||||
9608 | else | ||||
9609 | LDSHARED='$(CC) -G' | ||||
9610 | LDCXXSHARED='$(CXX) -G' | ||||
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9611 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9612 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9613 | if test "$GCC" = "yes" ; then |
9614 | LDSHARED='$(CC) -shared' | ||||
9615 | LDCXXSHARED='$(CXX) -shared' | ||||
9616 | else | ||||
Rob Boehne | 9d25bd1 | 2017-12-06 11:58:17 -0600 | [diff] [blame] | 9617 | LDSHARED='$(CC) -b' |
Benjamin Peterson | 62ed6be | 2017-12-21 21:43:09 -0800 | [diff] [blame] | 9618 | LDCXXSHARED='$(CXX) -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9619 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9620 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9621 | LDSHARED='$(CC) -bundle' |
9622 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9623 | if test "$enable_framework" ; then |
9624 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9625 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9626 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9627 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9628 | else |
9629 | # No framework. Ignore undefined symbols, assuming they come from Python | ||||
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9630 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9631 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9632 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9633 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9634 | LDSHARED='$(CC) -bundle' |
9635 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9636 | if test "$enable_framework" ; then |
9637 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9638 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9639 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9640 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9641 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9642 | # No framework, use the Python app as bundle-loader |
9643 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | ||||
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9644 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9645 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9646 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9647 | Darwin/*) |
9648 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | ||||
9649 | # This allows an extension to be used in any Python | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9650 | |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9651 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
9652 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
9653 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | ||||
9654 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
9655 | if test ${dep_target_major} -eq 10 && \ | ||||
9656 | test ${dep_target_minor} -le 2 | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9657 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9658 | # building for OS X 10.0 through 10.2 |
Ned Deily | 8703178 | 2021-05-02 20:28:43 -0400 | [diff] [blame] | 9659 | as_fn_error $? "MACOSX_DEPLOYMENT_TARGET too old ($MACOSX_DEPLOYMENT_TARGET), only 10.3 or later is supported" "$LINENO" 5 |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9660 | else |
9661 | # building for OS X 10.3 and later | ||||
9662 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | ||||
9663 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | ||||
9664 | BLDSHARED="$LDSHARED" | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9665 | fi |
9666 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 9667 | Linux*|GNU*|QNX*|VxWorks*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9668 | LDSHARED='$(CC) -shared' |
9669 | LDCXXSHARED='$(CXX) -shared';; | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9670 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9671 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9672 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9673 | LDSHARED='$(CC) -shared' |
9674 | LDCXXSHARED='$(CXX) -shared' | ||||
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9675 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9676 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9677 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9678 | OpenBSD*) |
9679 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | ||||
9680 | then | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9681 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9682 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9683 | else |
9684 | case `uname -r` in | ||||
9685 | [01].* | 2.[0-7] | 2.[0-7].*) | ||||
9686 | LDSHARED="ld -Bshareable ${LDFLAGS}" | ||||
9687 | ;; | ||||
9688 | *) | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9689 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9690 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9691 | ;; |
9692 | esac | ||||
9693 | fi;; | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9694 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9695 | LDSHARED='$(CC) -shared' |
9696 | LDCXXSHARED='$(CXX) -shared';; | ||||
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9697 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9698 | if test "$GCC" = "yes" ; then |
9699 | LDSHARED='$(CC) -shared' | ||||
9700 | LDCXXSHARED='$(CXX) -shared' | ||||
9701 | else | ||||
9702 | LDSHARED='$(CC) -G' | ||||
9703 | LDCXXSHARED='$(CXX) -G' | ||||
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9704 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9705 | SCO_SV*) |
9706 | LDSHARED='$(CC) -Wl,-G,-Bexport' | ||||
9707 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | ||||
9708 | CYGWIN*) | ||||
9709 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | ||||
9710 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9711 | *) LDSHARED="ld";; |
9712 | esac | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9713 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
9715 | $as_echo "$LDSHARED" >&6; } | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9716 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9717 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9718 | # CCSHARED are the C *flags* used to create objects to go into a shared |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9719 | # library (module) -- this is only needed for a few systems |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
9721 | $as_echo_n "checking CCSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9722 | if test -z "$CCSHARED" |
9723 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9724 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9725 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9726 | then CCSHARED="-fPIC"; |
9727 | elif test `uname -p` = sparc; | ||||
9728 | then CCSHARED="-xcode=pic32"; | ||||
9729 | else CCSHARED="-Kpic"; | ||||
9730 | fi;; | ||||
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9731 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9732 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9733 | else CCSHARED="+z"; |
9734 | fi;; | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9735 | Linux-android*) ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9736 | Linux*|GNU*) CCSHARED="-fPIC";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9737 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9738 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9739 | if test "$GCC" = "yes" |
9740 | then CCSHARED="-fPIC" | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9741 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9742 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9743 | SCO_SV*) |
9744 | if test "$GCC" = "yes" | ||||
9745 | then CCSHARED="-fPIC" | ||||
9746 | else CCSHARED="-Kpic -belf" | ||||
9747 | fi;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 9748 | VxWorks*) |
9749 | CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic" | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9750 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9751 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
9753 | $as_echo "$CCSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9754 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9755 | # the python executable -- this is only needed for a few systems |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
9757 | $as_echo_n "checking LINKFORSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9758 | if test -z "$LINKFORSHARED" |
9759 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9760 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9761 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9762 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9763 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
9764 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9765 | Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9766 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9767 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9769 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Ned Deily | 5bbbc73 | 2019-07-02 03:12:18 -0400 | [diff] [blame] | 9770 | |
9771 | # Issue #18075: the default maximum stack size (8MBytes) is too | ||||
9772 | # small for the default recursion limit. Increase the stack size | ||||
9773 | # to ensure that tests don't crash | ||||
Ronald Oussoren | 1a057ba | 2019-08-01 07:43:07 +0200 | [diff] [blame] | 9774 | # Note: This matches the value of THREAD_STACK_SIZE in |
9775 | # thread_pthread.h | ||||
Ned Deily | 5bbbc73 | 2019-07-02 03:12:18 -0400 | [diff] [blame] | 9776 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" |
9777 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9778 | if test "$enable_framework" |
9779 | then | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9780 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9781 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9782 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9783 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9784 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9785 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9786 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9787 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
9788 | then | ||||
9789 | LINKFORSHARED="-Wl,--export-dynamic" | ||||
9790 | fi;; | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9791 | SunOS/5*) case $CC in |
9792 | *gcc*) | ||||
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9793 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9794 | then |
9795 | LINKFORSHARED="-Xlinker --export-dynamic" | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9796 | fi;; |
9797 | esac;; | ||||
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9798 | CYGWIN*) |
9799 | if test $enable_shared = "no" | ||||
9800 | then | ||||
9801 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | ||||
9802 | fi;; | ||||
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9803 | QNX*) |
9804 | # -Wl,-E causes the symbols to be added to the dynamic | ||||
9805 | # symbol table so that they can be found when a module | ||||
9806 | # is loaded. -N 2048K causes the stack size to be set | ||||
9807 | # to 2048 kilobytes so that the stack doesn't overflow | ||||
9808 | # when running test_compile.py. | ||||
9809 | LINKFORSHARED='-Wl,-E -N 2048K';; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 9810 | VxWorks*) |
pxinwr | c117426 | 2020-12-15 06:14:43 +0800 | [diff] [blame] | 9811 | LINKFORSHARED='-Wl,-export-dynamic';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9812 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9813 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
9815 | $as_echo "$LINKFORSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9816 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9817 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9818 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
9820 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9821 | if test ! "$LIBRARY" = "$LDLIBRARY" |
9822 | then | ||||
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9823 | case $ac_sys_system in |
9824 | CYGWIN*) | ||||
9825 | # Cygwin needs CCSHARED when building extension DLLs | ||||
9826 | # but not when building the interpreter DLL. | ||||
9827 | CFLAGSFORSHARED='';; | ||||
9828 | *) | ||||
9829 | CFLAGSFORSHARED='$(CCSHARED)' | ||||
9830 | esac | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9831 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
9833 | $as_echo "$CFLAGSFORSHARED" >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9834 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9835 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
9836 | # library (with --enable-shared). | ||||
9837 | # For platforms on which shared libraries are not allowed to have unresolved | ||||
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9838 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
9839 | # if it is not required, since it creates a dependency of the shared library | ||||
9840 | # to LIBS. This, in turn, means that applications linking the shared libpython | ||||
9841 | # don't need to link LIBS explicitly. The default should be only changed | ||||
9842 | # on systems where this approach causes problems. | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9843 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
9845 | $as_echo_n "checking SHLIBS... " >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9846 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9847 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9848 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9849 | esac |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
9851 | $as_echo "$SHLIBS" >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9852 | |
9853 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9854 | # checks for libraries |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
9856 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | ||||
9857 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | ||||
9858 | $as_echo_n "(cached) " >&6 | ||||
9859 | else | ||||
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9860 | ac_check_lib_save_LIBS=$LIBS |
9861 | LIBS="-lsendfile $LIBS" | ||||
9862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9863 | /* end confdefs.h. */ | ||||
9864 | |||||
9865 | /* Override any GCC internal prototype to avoid an error. | ||||
9866 | Use char because int might match the return type of a GCC | ||||
9867 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9868 | #ifdef __cplusplus |
9869 | extern "C" | ||||
9870 | #endif | ||||
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9871 | char sendfile (); |
9872 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9873 | main () |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9874 | { |
9875 | return sendfile (); | ||||
9876 | ; | ||||
9877 | return 0; | ||||
9878 | } | ||||
9879 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9880 | if ac_fn_c_try_link "$LINENO"; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9881 | ac_cv_lib_sendfile_sendfile=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9882 | else |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9883 | ac_cv_lib_sendfile_sendfile=no |
9884 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9885 | rm -f core conftest.err conftest.$ac_objext \ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9886 | conftest$ac_exeext conftest.$ac_ext |
9887 | LIBS=$ac_check_lib_save_LIBS | ||||
9888 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 |
9890 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | ||||
9891 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | ||||
9892 | cat >>confdefs.h <<_ACEOF | ||||
9893 | #define HAVE_LIBSENDFILE 1 | ||||
9894 | _ACEOF | ||||
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9895 | |
9896 | LIBS="-lsendfile $LIBS" | ||||
9897 | |||||
9898 | fi | ||||
9899 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
9901 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||||
9902 | if ${ac_cv_lib_dl_dlopen+:} false; then : | ||||
9903 | $as_echo_n "(cached) " >&6 | ||||
9904 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9905 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9906 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9908 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9909 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9910 | /* Override any GCC internal prototype to avoid an error. |
9911 | Use char because int might match the return type of a GCC | ||||
9912 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9913 | #ifdef __cplusplus |
9914 | extern "C" | ||||
9915 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9916 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9917 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9918 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9919 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9920 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9921 | ; |
9922 | return 0; | ||||
9923 | } | ||||
9924 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9925 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9926 | ac_cv_lib_dl_dlopen=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9927 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9928 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9929 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9930 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9931 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9932 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9933 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
9935 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||||
9936 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | ||||
9937 | cat >>confdefs.h <<_ACEOF | ||||
9938 | #define HAVE_LIBDL 1 | ||||
9939 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9940 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9941 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9942 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9943 | fi |
9944 | # Dynamic linking for SunOS/Solaris and SYSV | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
9946 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||||
9947 | if ${ac_cv_lib_dld_shl_load+:} false; then : | ||||
9948 | $as_echo_n "(cached) " >&6 | ||||
9949 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9950 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9951 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9953 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9954 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9955 | /* Override any GCC internal prototype to avoid an error. |
9956 | Use char because int might match the return type of a GCC | ||||
9957 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9958 | #ifdef __cplusplus |
9959 | extern "C" | ||||
9960 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9961 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9962 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9963 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9965 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9966 | ; |
9967 | return 0; | ||||
9968 | } | ||||
9969 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9970 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9971 | ac_cv_lib_dld_shl_load=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9972 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9973 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9974 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9975 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9976 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9977 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9978 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
9980 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||||
9981 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | ||||
9982 | cat >>confdefs.h <<_ACEOF | ||||
9983 | #define HAVE_LIBDLD 1 | ||||
9984 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9985 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9986 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9987 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9988 | fi |
9989 | # Dynamic linking for HP-UX | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9990 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9991 | # checks for uuid.h location |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 9992 | for ac_header in uuid/uuid.h uuid.h |
9993 | do : | ||||
9994 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
9995 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
9996 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
9997 | cat >>confdefs.h <<_ACEOF | ||||
9998 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
9999 | _ACEOF | ||||
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10000 | |
10001 | fi | ||||
10002 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10003 | done |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10004 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10005 | |
10006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 | ||||
10007 | $as_echo_n "checking for uuid_generate_time_safe... " >&6; } | ||||
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10009 | /* end confdefs.h. */ | ||||
10010 | #include <uuid/uuid.h> | ||||
10011 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10012 | main () |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10013 | { |
10014 | |||||
10015 | #ifndef uuid_generate_time_safe | ||||
Berker Peksag | 0e163d2 | 2017-11-09 00:43:14 +0300 | [diff] [blame] | 10016 | void *x = uuid_generate_time_safe |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10017 | #endif |
10018 | |||||
10019 | ; | ||||
10020 | return 0; | ||||
10021 | } | ||||
10022 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10023 | if ac_fn_c_try_compile "$LINENO"; then : |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10024 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10025 | $as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10026 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10028 | $as_echo "yes" >&6; } | ||||
10029 | else | ||||
10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10031 | $as_echo "no" >&6; } | ||||
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10032 | |
10033 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10035 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10036 | # AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007) |
David Carlier | b4ebaa7 | 2018-01-09 19:38:07 +0000 | [diff] [blame] | 10037 | # FreeBSD and OpenBSD provides support as well |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5 |
10039 | $as_echo_n "checking for uuid_create... " >&6; } | ||||
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10041 | /* end confdefs.h. */ | ||||
10042 | #include <uuid.h> | ||||
10043 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10044 | main () |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10045 | { |
10046 | |||||
10047 | #ifndef uuid_create | ||||
10048 | void *x = uuid_create | ||||
10049 | #endif | ||||
10050 | |||||
10051 | ; | ||||
10052 | return 0; | ||||
10053 | } | ||||
10054 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10055 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10056 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10057 | $as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10058 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10060 | $as_echo "yes" >&6; } | ||||
10061 | else | ||||
10062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10063 | $as_echo "no" >&6; } | ||||
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10064 | |
10065 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10067 | |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10068 | # Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet |
10069 | # stream in big-endian byte-order | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5 |
10071 | $as_echo_n "checking for uuid_enc_be... " >&6; } | ||||
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10073 | /* end confdefs.h. */ | ||||
10074 | #include <uuid.h> | ||||
10075 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10076 | main () |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10077 | { |
10078 | |||||
10079 | #ifndef uuid_enc_be | ||||
Ned Deily | ced0adb | 2018-06-09 18:19:57 -0400 | [diff] [blame] | 10080 | void *x = uuid_enc_be |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10081 | #endif |
10082 | |||||
10083 | ; | ||||
10084 | return 0; | ||||
10085 | } | ||||
10086 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10087 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10088 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10089 | $as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10090 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10092 | $as_echo "yes" >&6; } | ||||
10093 | else | ||||
10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10095 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10096 | |
10097 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 10099 | |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 10100 | # 'Real Time' functions on Solaris |
10101 | # posix4 on Solaris 2.6 | ||||
10102 | # pthread (first!) on Linux | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
10104 | $as_echo_n "checking for library containing sem_init... " >&6; } | ||||
10105 | if ${ac_cv_search_sem_init+:} false; then : | ||||
10106 | $as_echo_n "(cached) " >&6 | ||||
10107 | else | ||||
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10108 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10110 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10111 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10112 | /* Override any GCC internal prototype to avoid an error. |
10113 | Use char because int might match the return type of a GCC | ||||
10114 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10115 | #ifdef __cplusplus |
10116 | extern "C" | ||||
10117 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10118 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10120 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10121 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10122 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10123 | ; |
10124 | return 0; | ||||
10125 | } | ||||
10126 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10127 | for ac_lib in '' pthread rt posix4; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10128 | if test -z "$ac_lib"; then |
10129 | ac_res="none required" | ||||
10130 | else | ||||
10131 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 10132 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10133 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10134 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10135 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10136 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10137 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10138 | conftest$ac_exeext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10139 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10140 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 10141 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10142 | done |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10143 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10144 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10145 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10146 | ac_cv_search_sem_init=no |
10147 | fi | ||||
10148 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10149 | LIBS=$ac_func_search_save_LIBS |
10150 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
10152 | $as_echo "$ac_cv_search_sem_init" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10153 | ac_res=$ac_cv_search_sem_init |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10154 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10155 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10156 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10157 | fi |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 10158 | |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10159 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10160 | # check if we need libintl for locale functions |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
10162 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | ||||
10163 | if ${ac_cv_lib_intl_textdomain+:} false; then : | ||||
10164 | $as_echo_n "(cached) " >&6 | ||||
10165 | else | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10166 | ac_check_lib_save_LIBS=$LIBS |
10167 | LIBS="-lintl $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10169 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10170 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10171 | /* Override any GCC internal prototype to avoid an error. |
10172 | Use char because int might match the return type of a GCC | ||||
10173 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10174 | #ifdef __cplusplus |
10175 | extern "C" | ||||
10176 | #endif | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10177 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10178 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10179 | main () |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10180 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10181 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10182 | ; |
10183 | return 0; | ||||
10184 | } | ||||
10185 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10186 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10187 | ac_cv_lib_intl_textdomain=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10188 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10189 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10190 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10191 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10192 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10193 | LIBS=$ac_check_lib_save_LIBS |
10194 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
10196 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | ||||
10197 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10198 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10199 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10200 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 10201 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10202 | fi |
10203 | |||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10204 | |
10205 | # checks for system dependent C++ extensions support | ||||
10206 | case "$ac_sys_system" in | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10207 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
10208 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10210 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10211 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 10212 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10213 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10214 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10215 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10216 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10217 | ; |
10218 | return 0; | ||||
10219 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10220 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10222 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10223 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10224 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10225 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10228 | $as_echo "yes" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10229 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10230 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10231 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10233 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10234 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10235 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10236 | rm -f core conftest.err conftest.$ac_objext \ |
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 10237 | conftest$ac_exeext conftest.$ac_ext |
10238 | # BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag | ||||
10239 | # of the AIX system used to build/package Python executable. This tag serves | ||||
10240 | # as a baseline for bdist module packages | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5 |
10242 | $as_echo_n "checking for the system builddate... " >&6; } | ||||
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 10243 | AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }') |
10244 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10245 | cat >>confdefs.h <<_ACEOF |
10246 | #define AIX_BUILDDATE $AIX_BUILDDATE | ||||
10247 | _ACEOF | ||||
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 10248 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5 |
10250 | $as_echo "$AIX_BUILDDATE" >&6; } | ||||
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 10251 | ;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10252 | *) ;; |
10253 | esac | ||||
10254 | |||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10255 | # check for systems that require aligned memory access |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 |
10257 | $as_echo_n "checking aligned memory access is required... " >&6; } | ||||
10258 | if ${ac_cv_aligned_required+:} false; then : | ||||
10259 | $as_echo_n "(cached) " >&6 | ||||
10260 | else | ||||
10261 | if test "$cross_compiling" = yes; then : | ||||
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10262 | ac_cv_aligned_required=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10263 | else |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10265 | /* end confdefs.h. */ | ||||
10266 | |||||
10267 | int main() | ||||
10268 | { | ||||
10269 | char s[16]; | ||||
10270 | int i, *p1, *p2; | ||||
10271 | for (i=0; i < 16; i++) | ||||
10272 | s[i] = i; | ||||
10273 | p1 = (int*)(s+1); | ||||
10274 | p2 = (int*)(s+2); | ||||
10275 | if (*p1 == *p2) | ||||
10276 | return 1; | ||||
10277 | return 0; | ||||
10278 | } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10279 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10280 | if ac_fn_c_try_run "$LINENO"; then : |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10281 | ac_cv_aligned_required=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10282 | else |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10283 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10284 | fi |
10285 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
10286 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
10287 | fi | ||||
10288 | |||||
10289 | |||||
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10290 | fi |
10291 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 |
10293 | $as_echo "$ac_cv_aligned_required" >&6; } | ||||
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10294 | if test "$ac_cv_aligned_required" = yes ; then |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10295 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10296 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10297 | |
10298 | fi | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10299 | |
10300 | # str, bytes and memoryview hash algorithm | ||||
10301 | |||||
10302 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 |
10304 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10305 | |
10306 | # Check whether --with-hash_algorithm was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10307 | if test "${with_hash_algorithm+set}" = set; then : |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10308 | withval=$with_hash_algorithm; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10310 | $as_echo "$withval" >&6; } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10311 | case "$withval" in |
10312 | siphash24) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10313 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10314 | |
10315 | ;; | ||||
10316 | fnv) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10317 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10318 | |
10319 | ;; | ||||
10320 | *) | ||||
10321 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | ||||
10322 | ;; | ||||
10323 | esac | ||||
10324 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10325 | else |
10326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | ||||
10327 | $as_echo "default" >&6; } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10328 | fi |
10329 | |||||
10330 | |||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10331 | validate_tzpath() { |
10332 | # Checks that each element of hte path is an absolute path | ||||
10333 | if test -z "$1"; then | ||||
10334 | # Empty string is allowed: it indicates no system TZPATH | ||||
10335 | return 0 | ||||
10336 | fi | ||||
10337 | |||||
10338 | # Bad paths are those that don't start with / | ||||
Paul Ganssle | 0f66498 | 2021-01-12 13:17:52 -0500 | [diff] [blame] | 10339 | if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10340 | as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5 |
10341 | return 1; | ||||
10342 | fi | ||||
10343 | } | ||||
10344 | |||||
10345 | TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5 |
10347 | $as_echo_n "checking for --with-tzpath... " >&6; } | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10348 | |
10349 | # Check whether --with-tzpath was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10350 | if test "${with_tzpath+set}" = set; then : |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10351 | withval=$with_tzpath; |
10352 | case "$withval" in | ||||
10353 | yes) | ||||
10354 | as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5 | ||||
10355 | ;; | ||||
10356 | *) | ||||
10357 | validate_tzpath "$withval" | ||||
10358 | TZPATH="$withval" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5 |
10360 | $as_echo "\"$withval\"" >&6; } | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10361 | ;; |
10362 | esac | ||||
10363 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10364 | else |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10365 | validate_tzpath "$TZPATH" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5 |
10367 | $as_echo "\"$TZPATH\"" >&6; } | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10368 | fi |
10369 | |||||
10370 | |||||
10371 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
10373 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | ||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10374 | |
10375 | # Check whether --with-address_sanitizer was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10376 | if test "${with_address_sanitizer+set}" = set; then : |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10377 | withval=$with_address_sanitizer; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10379 | $as_echo "$withval" >&6; } | ||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10380 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" |
10381 | LDFLAGS="-fsanitize=address $LDFLAGS" | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10382 | # ASan works by controlling memory allocation, our own malloc interferes. |
10383 | with_pymalloc="no" | ||||
10384 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10385 | else |
10386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10387 | $as_echo "no" >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10388 | fi |
10389 | |||||
10390 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 |
10392 | $as_echo_n "checking for --with-memory-sanitizer... " >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10393 | |
10394 | # Check whether --with-memory_sanitizer was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10395 | if test "${with_memory_sanitizer+set}" = set; then : |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10396 | withval=$with_memory_sanitizer; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10398 | $as_echo "$withval" >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10399 | BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" |
10400 | LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" | ||||
10401 | # MSan works by controlling memory allocation, our own malloc interferes. | ||||
10402 | with_pymalloc="no" | ||||
10403 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10404 | else |
10405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10406 | $as_echo "no" >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10407 | fi |
10408 | |||||
10409 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 |
10411 | $as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10412 | |
10413 | # Check whether --with-undefined_behavior_sanitizer was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10414 | if test "${with_undefined_behavior_sanitizer+set}" = set; then : |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10415 | withval=$with_undefined_behavior_sanitizer; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10417 | $as_echo "$withval" >&6; } | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10418 | BASECFLAGS="-fsanitize=undefined $BASECFLAGS" |
10419 | LDFLAGS="-fsanitize=undefined $LDFLAGS" | ||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10420 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10421 | else |
10422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10423 | $as_echo "no" >&6; } | ||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10424 | fi |
10425 | |||||
10426 | |||||
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10427 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
10429 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | ||||
10430 | if ${ac_cv_lib_nsl_t_open+:} false; then : | ||||
10431 | $as_echo_n "(cached) " >&6 | ||||
10432 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10433 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10434 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10436 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10437 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10438 | /* Override any GCC internal prototype to avoid an error. |
10439 | Use char because int might match the return type of a GCC | ||||
10440 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10441 | #ifdef __cplusplus |
10442 | extern "C" | ||||
10443 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10445 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10446 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10447 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10448 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10449 | ; |
10450 | return 0; | ||||
10451 | } | ||||
10452 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10453 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10454 | ac_cv_lib_nsl_t_open=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10455 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10456 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10457 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10458 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10459 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10460 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10461 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
10463 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | ||||
10464 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | ||||
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10465 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10466 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10467 | # SVR4 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
10469 | $as_echo_n "checking for socket in -lsocket... " >&6; } | ||||
10470 | if ${ac_cv_lib_socket_socket+:} false; then : | ||||
10471 | $as_echo_n "(cached) " >&6 | ||||
10472 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10473 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10474 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10476 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10477 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10478 | /* Override any GCC internal prototype to avoid an error. |
10479 | Use char because int might match the return type of a GCC | ||||
10480 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10481 | #ifdef __cplusplus |
10482 | extern "C" | ||||
10483 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10484 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10485 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10486 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10487 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10488 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10489 | ; |
10490 | return 0; | ||||
10491 | } | ||||
10492 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10493 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10494 | ac_cv_lib_socket_socket=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10495 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10496 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10497 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10498 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10499 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10500 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10501 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
10503 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | ||||
10504 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | ||||
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10505 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10506 | fi |
10507 | # SVR4 sockets | ||||
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 10508 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
10510 | $as_echo_n "checking for --with-libs... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10511 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10512 | # Check whether --with-libs was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10513 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10514 | withval=$with_libs; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10516 | $as_echo "$withval" >&6; } | ||||
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10517 | LIBS="$withval $LIBS" |
10518 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10519 | else |
10520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10521 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10522 | fi |
10523 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10524 | |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10525 | |
10526 | |||||
10527 | |||||
10528 | |||||
10529 | |||||
10530 | |||||
Victor Stinner | b477d19 | 2020-01-22 22:48:16 +0100 | [diff] [blame] | 10531 | |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10532 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
10533 | if test -n "$ac_tool_prefix"; then | ||||
10534 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||||
10535 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10537 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10538 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | ||||
10539 | $as_echo_n "(cached) " >&6 | ||||
10540 | else | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10541 | case $PKG_CONFIG in |
10542 | [\\/]* | ?:[\\/]*) | ||||
10543 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||||
10544 | ;; | ||||
10545 | *) | ||||
10546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10547 | for as_dir in $PATH | ||||
10548 | do | ||||
10549 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10550 | test -z "$as_dir" && as_dir=. |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10551 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
10553 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10555 | break 2 |
10556 | fi | ||||
10557 | done | ||||
10558 | done | ||||
10559 | IFS=$as_save_IFS | ||||
10560 | |||||
10561 | ;; | ||||
10562 | esac | ||||
10563 | fi | ||||
10564 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||||
10565 | if test -n "$PKG_CONFIG"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
10567 | $as_echo "$PKG_CONFIG" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10568 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10570 | $as_echo "no" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10571 | fi |
10572 | |||||
10573 | |||||
10574 | fi | ||||
10575 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||||
10576 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||||
10577 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||||
10578 | set dummy pkg-config; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10580 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10581 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | ||||
10582 | $as_echo_n "(cached) " >&6 | ||||
10583 | else | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10584 | case $ac_pt_PKG_CONFIG in |
10585 | [\\/]* | ?:[\\/]*) | ||||
10586 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||||
10587 | ;; | ||||
10588 | *) | ||||
10589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10590 | for as_dir in $PATH | ||||
10591 | do | ||||
10592 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10593 | test -z "$as_dir" && as_dir=. |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10594 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
10596 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10598 | break 2 |
10599 | fi | ||||
10600 | done | ||||
10601 | done | ||||
10602 | IFS=$as_save_IFS | ||||
10603 | |||||
10604 | ;; | ||||
10605 | esac | ||||
10606 | fi | ||||
10607 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||||
10608 | if test -n "$ac_pt_PKG_CONFIG"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
10610 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10611 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10613 | $as_echo "no" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10614 | fi |
10615 | |||||
10616 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||||
10617 | PKG_CONFIG="" | ||||
10618 | else | ||||
10619 | case $cross_compiling:$ac_tool_warned in | ||||
10620 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10621 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
10622 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10623 | ac_tool_warned=yes ;; |
10624 | esac | ||||
10625 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||||
10626 | fi | ||||
10627 | else | ||||
10628 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||||
10629 | fi | ||||
10630 | |||||
10631 | fi | ||||
10632 | if test -n "$PKG_CONFIG"; then | ||||
10633 | _pkg_min_version=0.9.0 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
10635 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10636 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10638 | $as_echo "yes" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10639 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10641 | $as_echo "no" >&6; } | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10642 | PKG_CONFIG="" |
10643 | fi | ||||
10644 | fi | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10645 | |
10646 | # Check for use of the system expat library | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
10648 | $as_echo_n "checking for --with-system-expat... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10649 | |
10650 | # Check whether --with-system_expat was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10651 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10652 | withval=$with_system_expat; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10653 | else |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10654 | with_system_expat="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10655 | fi |
10656 | |||||
10657 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
10659 | $as_echo "$with_system_expat" >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10660 | |
10661 | # Check for use of the system libffi library | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
10663 | $as_echo_n "checking for --with-system-ffi... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10664 | |
10665 | # Check whether --with-system_ffi was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10666 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10667 | withval=$with_system_ffi; |
10668 | fi | ||||
10669 | |||||
10670 | |||||
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10671 | if test "$ac_sys_system" = "Darwin" |
10672 | then | ||||
10673 | case "$with_system_ffi" in | ||||
10674 | "") | ||||
10675 | with_system_ffi="no" | ||||
10676 | ;; | ||||
10677 | yes|no) | ||||
10678 | ;; | ||||
10679 | *) | ||||
10680 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 | ||||
10681 | ;; | ||||
10682 | esac | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
10684 | $as_echo "$with_system_ffi" >&6; } | ||||
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10685 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10687 | $as_echo "yes" >&6; } | ||||
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10688 | if test "$with_system_ffi" != "" |
10689 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 |
10691 | $as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} | ||||
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10692 | fi |
10693 | with_system_ffi="yes" | ||||
10694 | fi | ||||
Zachary Ware | 935043d | 2016-09-09 17:01:21 -0700 | [diff] [blame] | 10695 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10696 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 10697 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
10698 | else | ||||
10699 | LIBFFI_INCLUDEDIR="" | ||||
10700 | fi | ||||
10701 | |||||
10702 | |||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10703 | # Check for use of the system libmpdec library |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 |
10705 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | ||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10706 | |
10707 | # Check whether --with-system_libmpdec was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10708 | if test "${with_system_libmpdec+set}" = set; then : |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10709 | withval=$with_system_libmpdec; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10710 | else |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10711 | with_system_libmpdec="no" |
10712 | fi | ||||
10713 | |||||
10714 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 |
10716 | $as_echo "$with_system_libmpdec" >&6; } | ||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10717 | |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10718 | # Check whether _decimal should use a coroutine-local or thread-local context |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5 |
10720 | $as_echo_n "checking for --with-decimal-contextvar... " >&6; } | ||||
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10721 | |
10722 | # Check whether --with-decimal_contextvar was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10723 | if test "${with_decimal_contextvar+set}" = set; then : |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10724 | withval=$with_decimal_contextvar; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10725 | else |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10726 | with_decimal_contextvar="yes" |
10727 | fi | ||||
10728 | |||||
10729 | |||||
10730 | if test "$with_decimal_contextvar" != "no" | ||||
10731 | then | ||||
10732 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10733 | $as_echo "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10734 | |
10735 | fi | ||||
10736 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5 |
10738 | $as_echo "$with_decimal_contextvar" >&6; } | ||||
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10739 | |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10740 | # Check for support for loadable sqlite extensions |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 |
10742 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | ||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10743 | # Check whether --enable-loadable-sqlite-extensions was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10744 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10745 | enableval=$enable_loadable_sqlite_extensions; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10746 | else |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10747 | enable_loadable_sqlite_extensions="no" |
10748 | fi | ||||
10749 | |||||
10750 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 |
10752 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | ||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10753 | |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10754 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
10755 | |||||
10756 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 |
10758 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10759 | |
10760 | # Check whether --with-tcltk-includes was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10761 | if test "${with_tcltk_includes+set}" = set; then : |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10762 | withval=$with_tcltk_includes; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10763 | else |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10764 | with_tcltk_includes="default" |
10765 | fi | ||||
10766 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 |
10768 | $as_echo "$with_tcltk_includes" >&6; } | ||||
10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | ||||
10770 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10771 | |
10772 | # Check whether --with-tcltk-libs was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10773 | if test "${with_tcltk_libs+set}" = set; then : |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10774 | withval=$with_tcltk_libs; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10775 | else |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10776 | with_tcltk_libs="default" |
10777 | fi | ||||
10778 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 |
10780 | $as_echo "$with_tcltk_libs" >&6; } | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10781 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault |
10782 | then | ||||
10783 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | ||||
10784 | then | ||||
10785 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | ||||
10786 | fi | ||||
Manolis Stamatogiannakis | d202794 | 2021-03-01 04:29:57 +0100 | [diff] [blame] | 10787 | if test -n "$PKG_CONFIG" && "$PKG_CONFIG" --exists tcl tk; then |
10788 | TCLTK_INCLUDES="`"$PKG_CONFIG" tcl tk --cflags-only-I 2>/dev/null`" | ||||
10789 | TCLTK_LIBS="`"$PKG_CONFIG" tcl tk --libs 2>/dev/null`" | ||||
10790 | else | ||||
10791 | TCLTK_INCLUDES="" | ||||
10792 | TCLTK_LIBS="" | ||||
10793 | fi | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10794 | else |
10795 | TCLTK_INCLUDES="$with_tcltk_includes" | ||||
10796 | TCLTK_LIBS="$with_tcltk_libs" | ||||
10797 | fi | ||||
10798 | |||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10799 | # Check for --with-dbmliborder |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
10801 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10802 | |
10803 | # Check whether --with-dbmliborder was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10804 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10805 | withval=$with_dbmliborder; |
10806 | if test x$with_dbmliborder = xyes | ||||
10807 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10808 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10809 | else |
10810 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | ||||
10811 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | ||||
10812 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10813 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10814 | fi |
10815 | done | ||||
10816 | fi | ||||
10817 | fi | ||||
10818 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
10820 | $as_echo "$with_dbmliborder" >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10822 | # Templates for things AC_DEFINEd more than once. |
10823 | # For a single AC_DEFINE, no template is needed. | ||||
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10824 | |
10825 | |||||
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10826 | if test "$ac_cv_pthread_is_default" = yes |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10827 | then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10828 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10829 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10830 | |
10831 | posix_threads=yes | ||||
Jesús Cea | 52d1b86 | 2019-09-28 03:44:32 +0200 | [diff] [blame] | 10832 | if test "$ac_sys_system" = "SunOS"; then |
10833 | CFLAGS="$CFLAGS -D_REENTRANT" | ||||
10834 | fi | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10835 | elif test "$ac_cv_kpthread" = "yes" |
10836 | then | ||||
10837 | CC="$CC -Kpthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10838 | if test "$ac_cv_cxx_thread" = "yes"; then |
10839 | CXX="$CXX -Kpthread" | ||||
10840 | fi | ||||
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10841 | posix_threads=yes |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10842 | elif test "$ac_cv_kthread" = "yes" |
10843 | then | ||||
10844 | CC="$CC -Kthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10845 | if test "$ac_cv_cxx_thread" = "yes"; then |
10846 | CXX="$CXX -Kthread" | ||||
10847 | fi | ||||
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10848 | posix_threads=yes |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10849 | elif test "$ac_cv_pthread" = "yes" |
10850 | then | ||||
10851 | CC="$CC -pthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10852 | if test "$ac_cv_cxx_thread" = "yes"; then |
10853 | CXX="$CXX -pthread" | ||||
10854 | fi | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10855 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10856 | else |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10857 | if test ! -z "$withval" -a -d "$withval" |
10858 | then LDFLAGS="$LDFLAGS -L$withval" | ||||
10859 | fi | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10860 | |
10861 | # According to the POSIX spec, a pthreads implementation must | ||||
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10862 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
10863 | # (e.g. gnu pth with pthread emulation) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
10865 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10867 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10868 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10869 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10870 | #ifdef _POSIX_THREADS |
10871 | yes | ||||
10872 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10873 | |
10874 | _ACEOF | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10875 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10876 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10877 | unistd_defines_pthreads=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10878 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10879 | unistd_defines_pthreads=no |
10880 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10881 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10882 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
10884 | $as_echo "$unistd_defines_pthreads" >&6; } | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10885 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10886 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10887 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10888 | # Just looking for pthread_create in libpthread is not enough: |
10889 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | ||||
10890 | # So we really have to include pthread.h, and then link. | ||||
10891 | _libs=$LIBS | ||||
10892 | LIBS="$LIBS -lpthread" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
10894 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10896 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10897 | |
10898 | #include <stdio.h> | ||||
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10899 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10900 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10901 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10903 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10904 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10905 | |
10906 | pthread_create (NULL, NULL, start_routine, NULL) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10907 | ; |
10908 | return 0; | ||||
10909 | } | ||||
10910 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10911 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10912 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10914 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10915 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10916 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10917 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10918 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10919 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10920 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10921 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10922 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10923 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10924 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10925 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10926 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
10928 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | ||||
10929 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | ||||
10930 | $as_echo_n "(cached) " >&6 | ||||
10931 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10932 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10933 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10935 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10936 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10937 | /* Override any GCC internal prototype to avoid an error. |
10938 | Use char because int might match the return type of a GCC | ||||
10939 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10940 | #ifdef __cplusplus |
10941 | extern "C" | ||||
10942 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10943 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10944 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10945 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10946 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10947 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | ; |
10949 | return 0; | ||||
10950 | } | ||||
10951 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10952 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10953 | ac_cv_lib_pthreads_pthread_create=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10954 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10955 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10956 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10957 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10958 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10959 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10960 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
10962 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | ||||
10963 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | ||||
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10964 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10965 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10966 | LIBS="$LIBS -lpthreads" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10967 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10968 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10969 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
10971 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | ||||
10972 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | ||||
10973 | $as_echo_n "(cached) " >&6 | ||||
10974 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10975 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10976 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10978 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10979 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10980 | /* Override any GCC internal prototype to avoid an error. |
10981 | Use char because int might match the return type of a GCC | ||||
10982 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10983 | #ifdef __cplusplus |
10984 | extern "C" | ||||
10985 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10986 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10987 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10988 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10990 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10991 | ; |
10992 | return 0; | ||||
10993 | } | ||||
10994 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10995 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10996 | ac_cv_lib_c_r_pthread_create=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 10997 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10998 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10999 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11000 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11001 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11002 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11003 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
11005 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | ||||
11006 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | ||||
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11007 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11008 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11009 | LIBS="$LIBS -lc_r" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11010 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11011 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11012 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
11014 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | ||||
11015 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | ||||
11016 | $as_echo_n "(cached) " >&6 | ||||
11017 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11018 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11019 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11021 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11022 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11023 | /* Override any GCC internal prototype to avoid an error. |
11024 | Use char because int might match the return type of a GCC | ||||
11025 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11026 | #ifdef __cplusplus |
11027 | extern "C" | ||||
11028 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11029 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11030 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11031 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11033 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11034 | ; |
11035 | return 0; | ||||
11036 | } | ||||
11037 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11038 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11039 | ac_cv_lib_pthread___pthread_create_system=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11040 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11041 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11042 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11043 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11044 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11045 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11046 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
11048 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | ||||
11049 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | ||||
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11050 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11051 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11052 | LIBS="$LIBS -lpthread" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11053 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11054 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11055 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
11057 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | ||||
11058 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | ||||
11059 | $as_echo_n "(cached) " >&6 | ||||
11060 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11061 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11062 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11064 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11065 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11066 | /* Override any GCC internal prototype to avoid an error. |
11067 | Use char because int might match the return type of a GCC | ||||
11068 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11069 | #ifdef __cplusplus |
11070 | extern "C" | ||||
11071 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11072 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11073 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11074 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11075 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11076 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 | ; |
11078 | return 0; | ||||
11079 | } | ||||
11080 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11081 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11082 | ac_cv_lib_cma_pthread_create=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11083 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11084 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11085 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11086 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11087 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11088 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11089 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
11091 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | ||||
11092 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | ||||
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11093 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11094 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11095 | LIBS="$LIBS -lcma" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11096 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11097 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11098 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11099 | as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 |
11100 | |||||
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11101 | fi |
11102 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11103 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11104 | fi |
11105 | |||||
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11106 | fi |
11107 | |||||
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11108 | fi |
11109 | |||||
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11110 | fi |
11111 | |||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11112 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11113 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11114 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11115 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
11117 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | ||||
11118 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | ||||
11119 | $as_echo_n "(cached) " >&6 | ||||
11120 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11121 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11122 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11124 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11125 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11126 | /* Override any GCC internal prototype to avoid an error. |
11127 | Use char because int might match the return type of a GCC | ||||
11128 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11129 | #ifdef __cplusplus |
11130 | extern "C" | ||||
11131 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11132 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11133 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11134 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11135 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11136 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11137 | ; |
11138 | return 0; | ||||
11139 | } | ||||
11140 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11141 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | ac_cv_lib_mpc_usconfig=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11143 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11144 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11145 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11146 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11147 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11148 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11149 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
11151 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | ||||
11152 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11153 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11154 | LIBS="$LIBS -lmpc" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11155 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11156 | fi |
11157 | |||||
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11158 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11159 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11160 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11161 | if test "$posix_threads" = "yes"; then |
11162 | if test "$unistd_defines_pthreads" = "no"; then | ||||
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11163 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11164 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11165 | |
11166 | fi | ||||
11167 | |||||
11168 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | ||||
11169 | case $ac_sys_system/$ac_sys_release in | ||||
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 11170 | SunOS/5.6) |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11171 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11172 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11173 | ;; |
11174 | SunOS/5.8) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11175 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11176 | |
11177 | ;; | ||||
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 11178 | AIX/*) |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11179 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 11180 | |
11181 | ;; | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11182 | esac |
11183 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
11185 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | ||||
11186 | if ${ac_cv_pthread_system_supported+:} false; then : | ||||
11187 | $as_echo_n "(cached) " >&6 | ||||
11188 | else | ||||
11189 | if test "$cross_compiling" = yes; then : | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11190 | ac_cv_pthread_system_supported=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11191 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11193 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 11194 | |
11195 | #include <stdio.h> | ||||
11196 | #include <pthread.h> | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11197 | void *foo(void *parm) { |
11198 | return NULL; | ||||
11199 | } | ||||
11200 | main() { | ||||
11201 | pthread_attr_t attr; | ||||
11202 | pthread_t id; | ||||
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 11203 | if (pthread_attr_init(&attr)) return (-1); |
11204 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1); | ||||
11205 | if (pthread_create(&id, &attr, foo, NULL)) return (-1); | ||||
11206 | return (0); | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11207 | } |
11208 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11209 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11210 | ac_cv_pthread_system_supported=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11211 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11212 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11213 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11214 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
11215 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11216 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11217 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11218 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11219 | fi |
11220 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
11222 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11223 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
11224 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11225 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11226 | |
11227 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11228 | for ac_func in pthread_sigmask |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11229 | do : |
11230 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11231 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
11232 | cat >>confdefs.h <<_ACEOF | ||||
11233 | #define HAVE_PTHREAD_SIGMASK 1 | ||||
11234 | _ACEOF | ||||
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 11235 | case $ac_sys_system in |
11236 | CYGWIN*) | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11237 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11238 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 11239 | |
11240 | ;; | ||||
11241 | esac | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11242 | fi |
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 11243 | done |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11244 | |
11245 | for ac_func in pthread_getcpuclockid | ||||
11246 | do : | ||||
11247 | ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" | ||||
11248 | if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then : | ||||
11249 | cat >>confdefs.h <<_ACEOF | ||||
11250 | #define HAVE_PTHREAD_GETCPUCLOCKID 1 | ||||
11251 | _ACEOF | ||||
pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 11252 | |
11253 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11254 | done |
pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 11255 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11256 | fi |
11257 | |||||
11258 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11259 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11260 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
11262 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11263 | # Check whether --enable-ipv6 was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11264 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11265 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11266 | no) |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11268 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11269 | ipv6=no |
11270 | ;; | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11271 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11272 | $as_echo "yes" >&6; } | ||||
11273 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11274 | |
11275 | ipv6=yes | ||||
11276 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11277 | esac |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11278 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11279 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11281 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11282 | /* AF_INET6 available check */ |
11283 | #include <sys/types.h> | ||||
11284 | #include <sys/socket.h> | ||||
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 11285 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11286 | main () |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11287 | { |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 11288 | int domain = AF_INET6; |
11289 | ; | ||||
11290 | return 0; | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11291 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11292 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11293 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11294 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11296 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11297 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11298 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11299 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11300 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11302 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11303 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11304 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11305 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11307 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11308 | if test "$ipv6" = "yes"; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
11310 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11312 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11313 | |
11314 | #include <sys/types.h> | ||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11315 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11316 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11317 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11318 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11319 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11320 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11321 | ; |
11322 | return 0; | ||||
11323 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11325 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11326 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11327 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11329 | $as_echo "yes" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11330 | ipv6=yes |
11331 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11332 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11333 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11335 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11336 | ipv6=no |
11337 | |||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11338 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11340 | fi |
11341 | |||||
11342 | if test "$ipv6" = "yes"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11343 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11344 | |
11345 | fi | ||||
11346 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11347 | fi |
11348 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11349 | |
11350 | ipv6type=unknown | ||||
11351 | ipv6lib=none | ||||
11352 | ipv6trylibc=no | ||||
11353 | |||||
11354 | if test "$ipv6" = "yes"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
11356 | $as_echo_n "checking ipv6 stack type... " >&6; } | ||||
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11357 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
11358 | do | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11359 | case $i in |
11360 | inria) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11362 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11363 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11364 | #include <netinet/in.h> |
11365 | #ifdef IPV6_INRIA_VERSION | ||||
11366 | yes | ||||
11367 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11368 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11369 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11370 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11371 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11372 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11373 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11374 | |
11375 | ;; | ||||
11376 | kame) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11378 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11379 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11380 | #include <netinet/in.h> |
11381 | #ifdef __KAME__ | ||||
11382 | yes | ||||
11383 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11384 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11385 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11386 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11387 | ipv6type=$i; |
11388 | ipv6lib=inet6 | ||||
11389 | ipv6libdir=/usr/local/v6/lib | ||||
11390 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11391 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11392 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11393 | |
11394 | ;; | ||||
11395 | linux-glibc) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11397 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11398 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11399 | #include <features.h> |
11400 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | ||||
11401 | yes | ||||
11402 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11403 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11405 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11406 | ipv6type=$i; |
11407 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11408 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11409 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11410 | |
11411 | ;; | ||||
11412 | linux-inet6) | ||||
11413 | if test -d /usr/inet6; then | ||||
11414 | ipv6type=$i | ||||
11415 | ipv6lib=inet6 | ||||
11416 | ipv6libdir=/usr/inet6/lib | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11417 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11418 | fi |
11419 | ;; | ||||
11420 | solaris) | ||||
11421 | if test -f /etc/netconfig; then | ||||
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 11422 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11423 | ipv6type=$i |
11424 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11425 | fi |
11426 | fi | ||||
11427 | ;; | ||||
11428 | toshiba) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11430 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11431 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11432 | #include <sys/param.h> |
11433 | #ifdef _TOSHIBA_INET6 | ||||
11434 | yes | ||||
11435 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11436 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11437 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11438 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11439 | ipv6type=$i; |
11440 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11441 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11442 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11443 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11444 | |
11445 | ;; | ||||
11446 | v6d) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11448 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11449 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11450 | #include </usr/local/v6/include/sys/v6config.h> |
11451 | #ifdef __V6D__ | ||||
11452 | yes | ||||
11453 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11454 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11455 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11456 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11457 | ipv6type=$i; |
11458 | ipv6lib=v6; | ||||
11459 | ipv6libdir=/usr/local/v6/lib; | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11460 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11461 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11462 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11463 | |
11464 | ;; | ||||
11465 | zeta) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11467 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11468 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11469 | #include <sys/param.h> |
11470 | #ifdef _ZETA_MINAMI_INET6 | ||||
11471 | yes | ||||
11472 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11473 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11474 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11475 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11476 | ipv6type=$i; |
11477 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11478 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11479 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11480 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11481 | |
11482 | ;; | ||||
11483 | esac | ||||
11484 | if test "$ipv6type" != "unknown"; then | ||||
11485 | break | ||||
11486 | fi | ||||
11487 | done | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
11489 | $as_echo "$ipv6type" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11490 | fi |
11491 | |||||
11492 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | ||||
11493 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | ||||
11494 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | ||||
11495 | echo "using lib$ipv6lib" | ||||
11496 | else | ||||
11497 | if test $ipv6trylibc = "yes"; then | ||||
11498 | echo "using libc" | ||||
11499 | else | ||||
11500 | echo 'Fatal: no $ipv6lib library found. cannot continue.' | ||||
11501 | echo "You need to fetch lib$ipv6lib.a from appropriate" | ||||
11502 | echo 'ipv6 kit and compile beforehand.' | ||||
11503 | exit 1 | ||||
11504 | fi | ||||
11505 | fi | ||||
11506 | fi | ||||
11507 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
11509 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | ||||
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11511 | /* end confdefs.h. */ | ||||
11512 | /* CAN_RAW_FD_FRAMES available check */ | ||||
11513 | #include <linux/can/raw.h> | ||||
11514 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11515 | main () |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11516 | { |
11517 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | ||||
11518 | ; | ||||
11519 | return 0; | ||||
11520 | } | ||||
11521 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11522 | if ac_fn_c_try_compile "$LINENO"; then : |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11523 | |
11524 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11525 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11526 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11528 | $as_echo "yes" >&6; } | ||||
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11529 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11530 | else |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11531 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11533 | $as_echo "no" >&6; } | ||||
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11534 | |
11535 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11537 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5 |
11539 | $as_echo_n "checking for CAN_RAW_JOIN_FILTERS... " >&6; } | ||||
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11541 | /* end confdefs.h. */ | ||||
11542 | |||||
11543 | #include <linux/can/raw.h> | ||||
11544 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11545 | main () |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11546 | { |
11547 | int can_raw_join_filters = CAN_RAW_JOIN_FILTERS; | ||||
11548 | ; | ||||
11549 | return 0; | ||||
11550 | } | ||||
11551 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11552 | if ac_fn_c_try_compile "$LINENO"; then : |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11553 | |
11554 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11555 | $as_echo "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11556 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11558 | $as_echo "yes" >&6; } | ||||
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11559 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11560 | else |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11561 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11563 | $as_echo "no" >&6; } | ||||
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11564 | |
11565 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11567 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11568 | # Check for --with-doc-strings |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
11570 | $as_echo_n "checking for --with-doc-strings... " >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11571 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11572 | # Check whether --with-doc-strings was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11573 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11574 | withval=$with_doc_strings; |
11575 | fi | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11576 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11577 | |
11578 | if test -z "$with_doc_strings" | ||||
11579 | then with_doc_strings="yes" | ||||
11580 | fi | ||||
11581 | if test "$with_doc_strings" != "no" | ||||
11582 | then | ||||
11583 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11584 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11585 | |
11586 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
11588 | $as_echo "$with_doc_strings" >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11589 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11590 | # Check for Python-specific malloc support |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
11592 | $as_echo_n "checking for --with-pymalloc... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11593 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11594 | # Check whether --with-pymalloc was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11595 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11596 | withval=$with_pymalloc; |
11597 | fi | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11598 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11599 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11600 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 11601 | then |
11602 | with_pymalloc="yes" | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11603 | fi |
11604 | if test "$with_pymalloc" != "no" | ||||
11605 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11606 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11607 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11608 | |
11609 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
11611 | $as_echo "$with_pymalloc" >&6; } | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11612 | |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 11613 | # Check for --with-c-locale-coercion |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 |
11615 | $as_echo_n "checking for --with-c-locale-coercion... " >&6; } | ||||
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 11616 | |
11617 | # Check whether --with-c-locale-coercion was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11618 | if test "${with_c_locale_coercion+set}" = set; then : |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 11619 | withval=$with_c_locale_coercion; |
11620 | fi | ||||
11621 | |||||
11622 | |||||
11623 | if test -z "$with_c_locale_coercion" | ||||
11624 | then | ||||
11625 | with_c_locale_coercion="yes" | ||||
11626 | fi | ||||
11627 | if test "$with_c_locale_coercion" != "no" | ||||
11628 | then | ||||
11629 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11630 | $as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 11631 | |
11632 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 |
11634 | $as_echo "$with_c_locale_coercion" >&6; } | ||||
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 11635 | |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11636 | # Check for Valgrind support |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
11638 | $as_echo_n "checking for --with-valgrind... " >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11639 | |
11640 | # Check whether --with-valgrind was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11641 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11642 | withval=$with_valgrind; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11643 | else |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11644 | with_valgrind=no |
11645 | fi | ||||
11646 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
11648 | $as_echo "$with_valgrind" >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11649 | if test "$with_valgrind" != no; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11650 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" |
11651 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11652 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11653 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11654 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11655 | else |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11656 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11657 | |
11658 | fi | ||||
11659 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11660 | |
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11661 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11662 | fi |
11663 | |||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11664 | # Check for DTrace support |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 |
11666 | $as_echo_n "checking for --with-dtrace... " >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11667 | |
11668 | # Check whether --with-dtrace was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11669 | if test "${with_dtrace+set}" = set; then : |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11670 | withval=$with_dtrace; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11671 | else |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11672 | with_dtrace=no |
11673 | fi | ||||
11674 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 |
11676 | $as_echo "$with_dtrace" >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11677 | |
11678 | |||||
11679 | |||||
11680 | |||||
11681 | |||||
11682 | DTRACE= | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11683 | DTRACE_HEADERS= |
11684 | DTRACE_OBJS= | ||||
11685 | |||||
11686 | if test "$with_dtrace" = "yes" | ||||
11687 | then | ||||
11688 | # Extract the first word of "dtrace", so it can be a program name with args. | ||||
11689 | set dummy dtrace; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11691 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
11692 | if ${ac_cv_path_DTRACE+:} false; then : | ||||
11693 | $as_echo_n "(cached) " >&6 | ||||
11694 | else | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11695 | case $DTRACE in |
11696 | [\\/]* | ?:[\\/]*) | ||||
11697 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. | ||||
11698 | ;; | ||||
11699 | *) | ||||
11700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
11701 | for as_dir in $PATH | ||||
11702 | do | ||||
11703 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11704 | test -z "$as_dir" && as_dir=. |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11705 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11706 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
11707 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" | ||||
11708 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11709 | break 2 |
11710 | fi | ||||
11711 | done | ||||
11712 | done | ||||
11713 | IFS=$as_save_IFS | ||||
11714 | |||||
11715 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" | ||||
11716 | ;; | ||||
11717 | esac | ||||
11718 | fi | ||||
11719 | DTRACE=$ac_cv_path_DTRACE | ||||
11720 | if test -n "$DTRACE"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 |
11722 | $as_echo "$DTRACE" >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11723 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11725 | $as_echo "no" >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11726 | fi |
11727 | |||||
11728 | |||||
11729 | if test "$DTRACE" = "not found"; then | ||||
11730 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 | ||||
11731 | fi | ||||
11732 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11733 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11734 | |
11735 | DTRACE_HEADERS="Include/pydtrace_probes.h" | ||||
11736 | |||||
11737 | # On OS X, DTrace providers do not need to be explicitly compiled and | ||||
11738 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF | ||||
11739 | # generation flag '-G'. We check for presence of this flag, rather than | ||||
11740 | # hardcoding support by OS, in the interest of robustness. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 |
11742 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } | ||||
11743 | if ${ac_cv_dtrace_link+:} false; then : | ||||
11744 | $as_echo_n "(cached) " >&6 | ||||
11745 | else | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11746 | ac_cv_dtrace_link=no |
Jakub Kulík | 5c8f537 | 2019-01-24 18:29:48 +0100 | [diff] [blame] | 11747 | echo 'BEGIN{}' > conftest.d |
Petr Viktorin | 3c97e1e | 2020-03-11 14:27:42 +0100 | [diff] [blame] | 11748 | "$DTRACE" $DFLAGS -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11749 | ac_cv_dtrace_link=yes |
11750 | |||||
11751 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 |
11753 | $as_echo "$ac_cv_dtrace_link" >&6; } | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11754 | if test "$ac_cv_dtrace_link" = "yes"; then |
11755 | DTRACE_OBJS="Python/pydtrace.o" | ||||
11756 | fi | ||||
11757 | fi | ||||
11758 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11759 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11760 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11761 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11762 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11763 | # the dlopen() function means we might want to use dynload_shlib.o. some |
Kevin Adler | c79667f | 2020-11-16 09:16:10 -0600 | [diff] [blame] | 11764 | # platforms have dlopen(), but don't want to use it. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11765 | for ac_func in dlopen |
11766 | do : | ||||
11767 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||||
11768 | if test "x$ac_cv_func_dlopen" = xyes; then : | ||||
11769 | cat >>confdefs.h <<_ACEOF | ||||
11770 | #define HAVE_DLOPEN 1 | ||||
11771 | _ACEOF | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11772 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11773 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11774 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11775 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11776 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11777 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
11778 | # loading of modules. | ||||
11779 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
11781 | $as_echo_n "checking DYNLOADFILE... " >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11782 | if test -z "$DYNLOADFILE" |
11783 | then | ||||
11784 | case $ac_sys_system/$ac_sys_release in | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11785 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11786 | *) |
11787 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | ||||
11788 | # out any dynamic loading | ||||
11789 | if test "$ac_cv_func_dlopen" = yes | ||||
11790 | then DYNLOADFILE="dynload_shlib.o" | ||||
11791 | else DYNLOADFILE="dynload_stub.o" | ||||
11792 | fi | ||||
11793 | ;; | ||||
11794 | esac | ||||
11795 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
11797 | $as_echo "$DYNLOADFILE" >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11798 | if test "$DYNLOADFILE" != "dynload_stub.o" |
11799 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11800 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11801 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11802 | |
11803 | fi | ||||
11804 | |||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11805 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
11806 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11807 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
11809 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11810 | if test -z "$MACHDEP_OBJS" |
11811 | then | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11812 | MACHDEP_OBJS=$extra_machdep_objs |
11813 | else | ||||
11814 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11815 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11816 | if test -z "$MACHDEP_OBJS"; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
11818 | $as_echo "none" >&6; } | ||||
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11819 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 |
11821 | $as_echo "$MACHDEP_OBJS" >&6; } | ||||
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11822 | fi |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11823 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11824 | # checks for library functions |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11825 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
11826 | clock confstr close_range copy_file_range ctermid dup3 execv explicit_bzero \ | ||||
11827 | explicit_memset faccessat fchmod fchmodat fchown fchownat \ | ||||
11828 | fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | ||||
11829 | futimens futimes gai_strerror getentropy \ | ||||
11830 | getgrgid_r getgrnam_r \ | ||||
11831 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | ||||
11832 | getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \ | ||||
11833 | if_nameindex \ | ||||
11834 | initgroups kill killpg lchown lockf linkat lstat lutimes mmap \ | ||||
11835 | memrchr mbrtowc mkdirat mkfifo \ | ||||
11836 | madvise mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | ||||
11837 | posix_fallocate posix_fadvise posix_spawn posix_spawnp pread preadv preadv2 \ | ||||
11838 | pthread_condattr_setclock pthread_init pthread_kill pwrite pwritev pwritev2 \ | ||||
11839 | readlink readlinkat readv realpath renameat \ | ||||
11840 | sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | ||||
11841 | setgid sethostname \ | ||||
11842 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ | ||||
11843 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | ||||
11844 | sched_rr_get_interval \ | ||||
11845 | sigaction sigaltstack sigfillset siginterrupt sigpending sigrelse \ | ||||
11846 | sigtimedwait sigwait sigwaitinfo snprintf splice strftime strlcpy strsignal symlinkat sync \ | ||||
11847 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | ||||
11848 | truncate uname unlinkat utimensat utimes vfork waitid waitpid wait3 wait4 \ | ||||
11849 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty rtpSpawn | ||||
11850 | do : | ||||
11851 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
11852 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
11853 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
11854 | cat >>confdefs.h <<_ACEOF | ||||
11855 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
11856 | _ACEOF | ||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11857 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11858 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11859 | done |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11860 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11861 | |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11862 | # Force lchmod off for Linux. Linux disallows changing the mode of symbolic |
11863 | # links. Some libc implementations have a stub lchmod implementation that always | ||||
11864 | # returns an error. | ||||
11865 | if test "$MACHDEP" != linux; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11866 | for ac_func in lchmod |
11867 | do : | ||||
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11868 | ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11869 | if test "x$ac_cv_func_lchmod" = xyes; then : |
11870 | cat >>confdefs.h <<_ACEOF | ||||
11871 | #define HAVE_LCHMOD 1 | ||||
Benjamin Peterson | ed709d5 | 2018-09-12 17:22:11 -0700 | [diff] [blame] | 11872 | _ACEOF |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11873 | |
11874 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11875 | done |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11876 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11877 | fi |
11878 | |||||
11879 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11880 | #include <dirent.h> |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11881 | " |
11882 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | ||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11883 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11884 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11885 | |
11886 | fi | ||||
11887 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11888 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11889 | # For some functions, having a definition is not sufficient, since |
11890 | # we want to take their address. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
11892 | $as_echo_n "checking for chroot... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11894 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11895 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11896 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11897 | main () |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11898 | { |
11899 | void *x=chroot | ||||
11900 | ; | ||||
11901 | return 0; | ||||
11902 | } | ||||
11903 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11904 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11905 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11906 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11907 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11909 | $as_echo "yes" >&6; } | ||||
11910 | else | ||||
11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11912 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11913 | |
11914 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | ||||
11917 | $as_echo_n "checking for link... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11919 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11920 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11921 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11922 | main () |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11923 | { |
11924 | void *x=link | ||||
11925 | ; | ||||
11926 | return 0; | ||||
11927 | } | ||||
11928 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11929 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11930 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11931 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11932 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11934 | $as_echo "yes" >&6; } | ||||
11935 | else | ||||
11936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11937 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11938 | |
11939 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | ||||
11942 | $as_echo_n "checking for symlink... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11944 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11945 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11946 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11947 | main () |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11948 | { |
11949 | void *x=symlink | ||||
11950 | ; | ||||
11951 | return 0; | ||||
11952 | } | ||||
11953 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11954 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11955 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11956 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11957 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11959 | $as_echo "yes" >&6; } | ||||
11960 | else | ||||
11961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11962 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11963 | |
11964 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | ||||
11967 | $as_echo_n "checking for fchdir... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11969 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11970 | #include <unistd.h> |
11971 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11972 | main () |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11973 | { |
11974 | void *x=fchdir | ||||
11975 | ; | ||||
11976 | return 0; | ||||
11977 | } | ||||
11978 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11979 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11980 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11981 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11982 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11984 | $as_echo "yes" >&6; } | ||||
11985 | else | ||||
11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11987 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11988 | |
11989 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | ||||
11992 | $as_echo_n "checking for fsync... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11994 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11995 | #include <unistd.h> |
11996 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 11997 | main () |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11998 | { |
11999 | void *x=fsync | ||||
12000 | ; | ||||
12001 | return 0; | ||||
12002 | } | ||||
12003 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12004 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12005 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12006 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12007 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12009 | $as_echo "yes" >&6; } | ||||
12010 | else | ||||
12011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12012 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12013 | |
12014 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | ||||
12017 | $as_echo_n "checking for fdatasync... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12019 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12020 | #include <unistd.h> |
12021 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12022 | main () |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12023 | { |
12024 | void *x=fdatasync | ||||
12025 | ; | ||||
12026 | return 0; | ||||
12027 | } | ||||
12028 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12029 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12030 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12031 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12032 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12034 | $as_echo "yes" >&6; } | ||||
12035 | else | ||||
12036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12037 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 12038 | |
12039 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | ||||
12042 | $as_echo_n "checking for epoll... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12044 | /* end confdefs.h. */ |
12045 | #include <sys/epoll.h> | ||||
12046 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12047 | main () |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12048 | { |
12049 | void *x=epoll_create | ||||
12050 | ; | ||||
12051 | return 0; | ||||
12052 | } | ||||
12053 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12054 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12055 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12056 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12057 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12059 | $as_echo "yes" >&6; } | ||||
12060 | else | ||||
12061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12062 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12063 | |
12064 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | ||||
12067 | $as_echo_n "checking for epoll_create1... " >&6; } | ||||
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 12068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12069 | /* end confdefs.h. */ | ||||
12070 | #include <sys/epoll.h> | ||||
12071 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12072 | main () |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 12073 | { |
12074 | void *x=epoll_create1 | ||||
12075 | ; | ||||
12076 | return 0; | ||||
12077 | } | ||||
12078 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12079 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 12080 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12081 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 12082 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12084 | $as_echo "yes" >&6; } | ||||
12085 | else | ||||
12086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12087 | $as_echo "no" >&6; } | ||||
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 12088 | |
12089 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | ||||
12092 | $as_echo_n "checking for kqueue... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12094 | /* end confdefs.h. */ |
12095 | |||||
12096 | #include <sys/types.h> | ||||
12097 | #include <sys/event.h> | ||||
12098 | |||||
12099 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12100 | main () |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12101 | { |
12102 | int x=kqueue() | ||||
12103 | ; | ||||
12104 | return 0; | ||||
12105 | } | ||||
12106 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12107 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12108 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12109 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12110 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12112 | $as_echo "yes" >&6; } | ||||
12113 | else | ||||
12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12115 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12116 | |
12117 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | ||||
12120 | $as_echo_n "checking for prlimit... " >&6; } | ||||
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12122 | /* end confdefs.h. */ | ||||
12123 | |||||
12124 | #include <sys/time.h> | ||||
12125 | #include <sys/resource.h> | ||||
12126 | |||||
12127 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12128 | main () |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12129 | { |
12130 | void *x=prlimit | ||||
12131 | ; | ||||
12132 | return 0; | ||||
12133 | } | ||||
12134 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12135 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12136 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12137 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12138 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12140 | $as_echo "yes" >&6; } | ||||
12141 | else | ||||
12142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12143 | $as_echo "no" >&6; } | ||||
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12144 | |
12145 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5 | ||||
12148 | $as_echo_n "checking for _dyld_shared_cache_contains_path... " >&6; } | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 12149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12150 | /* end confdefs.h. */ | ||||
12151 | #include <mach-o/dyld.h> | ||||
12152 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12153 | main () |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 12154 | { |
12155 | void *x=_dyld_shared_cache_contains_path | ||||
12156 | ; | ||||
12157 | return 0; | ||||
12158 | } | ||||
12159 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12160 | if ac_fn_c_try_compile "$LINENO"; then : |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 12161 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12162 | $as_echo "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 12163 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12165 | $as_echo "yes" >&6; } | ||||
12166 | else | ||||
12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12168 | $as_echo "no" >&6; } | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 12169 | |
12170 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12172 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
12174 | $as_echo_n "checking for memfd_create... " >&6; } | ||||
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12176 | /* end confdefs.h. */ | ||||
12177 | |||||
12178 | #ifdef HAVE_SYS_MMAN_H | ||||
12179 | #include <sys/mman.h> | ||||
12180 | #endif | ||||
12181 | #ifdef HAVE_SYS_MEMFD_H | ||||
12182 | #include <sys/memfd.h> | ||||
12183 | #endif | ||||
12184 | |||||
12185 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12186 | main () |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12187 | { |
12188 | void *x=memfd_create | ||||
12189 | ; | ||||
12190 | return 0; | ||||
12191 | } | ||||
12192 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12193 | if ac_fn_c_try_compile "$LINENO"; then : |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12194 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12195 | $as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12196 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12198 | $as_echo "yes" >&6; } | ||||
12199 | else | ||||
12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12201 | $as_echo "no" >&6; } | ||||
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12202 | |
12203 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12205 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
12207 | $as_echo_n "checking for eventfd... " >&6; } | ||||
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12209 | /* end confdefs.h. */ | ||||
12210 | |||||
12211 | #ifdef HAVE_SYS_EVENTFD_H | ||||
12212 | #include <sys/eventfd.h> | ||||
12213 | #endif | ||||
12214 | |||||
12215 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12216 | main () |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12217 | { |
12218 | int x = eventfd(0, EFD_CLOEXEC) | ||||
12219 | ; | ||||
12220 | return 0; | ||||
12221 | } | ||||
12222 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12223 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12224 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12225 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12226 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12228 | $as_echo "yes" >&6; } | ||||
12229 | else | ||||
12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12231 | $as_echo "no" >&6; } | ||||
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12232 | |
12233 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12235 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12236 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
12237 | # functions ctermid_r, setgroups in the library, but no prototype | ||||
12238 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | ||||
12239 | # address to avoid compiler warnings and potential miscompilations | ||||
12240 | # because of the missing prototypes. | ||||
12241 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
12243 | $as_echo_n "checking for ctermid_r... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12245 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12246 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12247 | #include <stdio.h> |
12248 | |||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12249 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12250 | main () |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12251 | { |
12252 | void* p = ctermid_r | ||||
12253 | ; | ||||
12254 | return 0; | ||||
12255 | } | ||||
12256 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12257 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12258 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12259 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12260 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12262 | $as_echo "yes" >&6; } | ||||
12263 | else | ||||
12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12265 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12266 | |
12267 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12269 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
12271 | $as_echo_n "checking for flock declaration... " >&6; } | ||||
12272 | if ${ac_cv_flock_decl+:} false; then : | ||||
12273 | $as_echo_n "(cached) " >&6 | ||||
12274 | else | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12276 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12277 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12278 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12279 | main () |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12280 | { |
12281 | void* p = flock | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12282 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12283 | ; |
12284 | return 0; | ||||
12285 | } | ||||
12286 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12287 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12288 | ac_cv_flock_decl=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12289 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12290 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12291 | |
12292 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12294 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12295 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
12297 | $as_echo "$ac_cv_flock_decl" >&6; } | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12298 | if test "x${ac_cv_flock_decl}" = xyes; then |
12299 | for ac_func in flock | ||||
12300 | do : | ||||
12301 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12302 | if test "x$ac_cv_func_flock" = xyes; then : |
12303 | cat >>confdefs.h <<_ACEOF | ||||
12304 | #define HAVE_FLOCK 1 | ||||
12305 | _ACEOF | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12306 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12307 | else |
12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | ||||
12309 | $as_echo_n "checking for flock in -lbsd... " >&6; } | ||||
12310 | if ${ac_cv_lib_bsd_flock+:} false; then : | ||||
12311 | $as_echo_n "(cached) " >&6 | ||||
12312 | else | ||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12313 | ac_check_lib_save_LIBS=$LIBS |
12314 | LIBS="-lbsd $LIBS" | ||||
12315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12316 | /* end confdefs.h. */ | ||||
12317 | |||||
12318 | /* Override any GCC internal prototype to avoid an error. | ||||
12319 | Use char because int might match the return type of a GCC | ||||
12320 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12321 | #ifdef __cplusplus |
12322 | extern "C" | ||||
12323 | #endif | ||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12324 | char flock (); |
12325 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12326 | main () |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12327 | { |
12328 | return flock (); | ||||
12329 | ; | ||||
12330 | return 0; | ||||
12331 | } | ||||
12332 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12333 | if ac_fn_c_try_link "$LINENO"; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12334 | ac_cv_lib_bsd_flock=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12335 | else |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12336 | ac_cv_lib_bsd_flock=no |
12337 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12338 | rm -f core conftest.err conftest.$ac_objext \ |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12339 | conftest$ac_exeext conftest.$ac_ext |
12340 | LIBS=$ac_check_lib_save_LIBS | ||||
12341 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
12343 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | ||||
12344 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | ||||
12345 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | ||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12346 | |
12347 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12348 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12349 | |
12350 | |||||
12351 | fi | ||||
12352 | |||||
12353 | |||||
12354 | fi | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12355 | done |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12356 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12357 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12358 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
12360 | $as_echo_n "checking for getpagesize... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12362 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12363 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12364 | #include <unistd.h> |
12365 | |||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12366 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12367 | main () |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12368 | { |
12369 | void* p = getpagesize | ||||
12370 | ; | ||||
12371 | return 0; | ||||
12372 | } | ||||
12373 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12374 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12375 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12376 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12377 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12379 | $as_echo "yes" >&6; } | ||||
12380 | else | ||||
12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12382 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12383 | |
12384 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12386 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
12388 | $as_echo_n "checking for broken unsetenv... " >&6; } | ||||
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12390 | /* end confdefs.h. */ | ||||
12391 | |||||
12392 | #include <stdlib.h> | ||||
12393 | |||||
12394 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12395 | main () |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12396 | { |
12397 | int res = unsetenv("DUMMY") | ||||
12398 | ; | ||||
12399 | return 0; | ||||
12400 | } | ||||
12401 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12402 | if ac_fn_c_try_compile "$LINENO"; then : |
12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12404 | $as_echo "no" >&6; } | ||||
12405 | else | ||||
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12406 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12407 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12408 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12410 | $as_echo "yes" >&6; } | ||||
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12411 | |
12412 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12414 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12415 | for ac_prog in true |
12416 | do | ||||
12417 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
12418 | set dummy $ac_prog; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12420 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
12421 | if ${ac_cv_prog_TRUE+:} false; then : | ||||
12422 | $as_echo_n "(cached) " >&6 | ||||
12423 | else | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12424 | if test -n "$TRUE"; then |
12425 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | ||||
12426 | else | ||||
12427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
12428 | for as_dir in $PATH | ||||
12429 | do | ||||
12430 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12431 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12432 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12433 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12434 | ac_cv_prog_TRUE="$ac_prog" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12436 | break 2 |
12437 | fi | ||||
12438 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12439 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12440 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12441 | |
12442 | fi | ||||
12443 | fi | ||||
12444 | TRUE=$ac_cv_prog_TRUE | ||||
12445 | if test -n "$TRUE"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
12447 | $as_echo "$TRUE" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12448 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12450 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12451 | fi |
12452 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12453 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12454 | test -n "$TRUE" && break |
12455 | done | ||||
12456 | test -n "$TRUE" || TRUE="/bin/true" | ||||
12457 | |||||
12458 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
12460 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | ||||
12461 | if ${ac_cv_lib_c_inet_aton+:} false; then : | ||||
12462 | $as_echo_n "(cached) " >&6 | ||||
12463 | else | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12464 | ac_check_lib_save_LIBS=$LIBS |
12465 | LIBS="-lc $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12467 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12468 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12469 | /* Override any GCC internal prototype to avoid an error. |
12470 | Use char because int might match the return type of a GCC | ||||
12471 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12472 | #ifdef __cplusplus |
12473 | extern "C" | ||||
12474 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12475 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12476 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12477 | main () |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12478 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12479 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12480 | ; |
12481 | return 0; | ||||
12482 | } | ||||
12483 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12484 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12485 | ac_cv_lib_c_inet_aton=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12486 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12487 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12488 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12489 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12490 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12491 | LIBS=$ac_check_lib_save_LIBS |
12492 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
12494 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | ||||
12495 | if test "x$ac_cv_lib_c_inet_aton" = xyes; then : | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12496 | $ac_cv_prog_TRUE |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12497 | else |
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | ||||
12499 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | ||||
12500 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | ||||
12501 | $as_echo_n "(cached) " >&6 | ||||
12502 | else | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12503 | ac_check_lib_save_LIBS=$LIBS |
12504 | LIBS="-lresolv $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12506 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12507 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12508 | /* Override any GCC internal prototype to avoid an error. |
12509 | Use char because int might match the return type of a GCC | ||||
12510 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12511 | #ifdef __cplusplus |
12512 | extern "C" | ||||
12513 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12514 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12515 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12516 | main () |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12517 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12518 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12519 | ; |
12520 | return 0; | ||||
12521 | } | ||||
12522 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12523 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12524 | ac_cv_lib_resolv_inet_aton=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12525 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12526 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12527 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12528 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12529 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12530 | LIBS=$ac_check_lib_save_LIBS |
12531 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
12533 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | ||||
12534 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : | ||||
12535 | cat >>confdefs.h <<_ACEOF | ||||
12536 | #define HAVE_LIBRESOLV 1 | ||||
12537 | _ACEOF | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12538 | |
12539 | LIBS="-lresolv $LIBS" | ||||
12540 | |||||
12541 | fi | ||||
12542 | |||||
12543 | |||||
12544 | fi | ||||
12545 | |||||
12546 | |||||
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12547 | # On Tru64, chflags seems to be present, but calling it will |
12548 | # exit Python | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
12550 | $as_echo_n "checking for chflags... " >&6; } | ||||
12551 | if ${ac_cv_have_chflags+:} false; then : | ||||
12552 | $as_echo_n "(cached) " >&6 | ||||
12553 | else | ||||
12554 | if test "$cross_compiling" = yes; then : | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12555 | ac_cv_have_chflags=cross |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12556 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12558 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12559 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12560 | #include <sys/stat.h> |
12561 | #include <unistd.h> | ||||
12562 | int main(int argc, char*argv[]) | ||||
12563 | { | ||||
12564 | if(chflags(argv[0], 0) != 0) | ||||
12565 | return 1; | ||||
12566 | return 0; | ||||
12567 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12568 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12569 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12570 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12571 | ac_cv_have_chflags=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12572 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12573 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12574 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12575 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12576 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 12577 | fi |
12578 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12579 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12580 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
12582 | $as_echo "$ac_cv_have_chflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12583 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12584 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12585 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12586 | ac_cv_have_chflags="yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12587 | else |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12588 | ac_cv_have_chflags="no" |
12589 | fi | ||||
12590 | |||||
12591 | fi | ||||
12592 | if test "$ac_cv_have_chflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12593 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12594 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12595 | |
12596 | fi | ||||
12597 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
12599 | $as_echo_n "checking for lchflags... " >&6; } | ||||
12600 | if ${ac_cv_have_lchflags+:} false; then : | ||||
12601 | $as_echo_n "(cached) " >&6 | ||||
12602 | else | ||||
12603 | if test "$cross_compiling" = yes; then : | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12604 | ac_cv_have_lchflags=cross |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12605 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12607 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12608 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12609 | #include <sys/stat.h> |
12610 | #include <unistd.h> | ||||
12611 | int main(int argc, char*argv[]) | ||||
12612 | { | ||||
12613 | if(lchflags(argv[0], 0) != 0) | ||||
12614 | return 1; | ||||
12615 | return 0; | ||||
12616 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12617 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12618 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12619 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12620 | ac_cv_have_lchflags=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12621 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12622 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12623 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12624 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12625 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12626 | fi |
12627 | |||||
12628 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12629 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
12631 | $as_echo "$ac_cv_have_lchflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12632 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12633 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12634 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12635 | ac_cv_have_lchflags="yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12636 | else |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12637 | ac_cv_have_lchflags="no" |
12638 | fi | ||||
12639 | |||||
12640 | fi | ||||
12641 | if test "$ac_cv_have_lchflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12642 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12643 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12644 | |
12645 | fi | ||||
12646 | |||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12647 | case $ac_sys_system/$ac_sys_release in |
12648 | Darwin/*) | ||||
12649 | _CUR_CFLAGS="${CFLAGS}" | ||||
12650 | _CUR_LDFLAGS="${LDFLAGS}" | ||||
12651 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | ||||
12652 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | ||||
12653 | ;; | ||||
12654 | esac | ||||
12655 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
12657 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | ||||
12658 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | ||||
12659 | $as_echo_n "(cached) " >&6 | ||||
12660 | else | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12661 | ac_check_lib_save_LIBS=$LIBS |
12662 | LIBS="-lz $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12664 | /* end confdefs.h. */ |
12665 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12666 | /* Override any GCC internal prototype to avoid an error. |
12667 | Use char because int might match the return type of a GCC | ||||
12668 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12669 | #ifdef __cplusplus |
12670 | extern "C" | ||||
12671 | #endif | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12672 | char inflateCopy (); |
12673 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12674 | main () |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12675 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12676 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12677 | ; |
12678 | return 0; | ||||
12679 | } | ||||
12680 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12681 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12682 | ac_cv_lib_z_inflateCopy=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12683 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12684 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12685 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12686 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12687 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12688 | LIBS=$ac_check_lib_save_LIBS |
12689 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
12691 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | ||||
12692 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12693 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12694 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12695 | |
12696 | fi | ||||
12697 | |||||
12698 | |||||
12699 | case $ac_sys_system/$ac_sys_release in | ||||
12700 | Darwin/*) | ||||
12701 | CFLAGS="${_CUR_CFLAGS}" | ||||
12702 | LDFLAGS="${_CUR_LDFLAGS}" | ||||
12703 | ;; | ||||
12704 | esac | ||||
12705 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
12707 | $as_echo_n "checking for hstrerror... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12709 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12710 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12711 | #include <netdb.h> |
12712 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12713 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12714 | main () |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12715 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12716 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12717 | ; |
12718 | return 0; | ||||
12719 | } | ||||
12720 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12721 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12722 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12723 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12724 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12726 | $as_echo "yes" >&6; } | ||||
12727 | else | ||||
12728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12729 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12730 | |
12731 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12732 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12733 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12734 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
12736 | $as_echo_n "checking for inet_aton... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12738 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12739 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12740 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12741 | #include <sys/socket.h> |
12742 | #include <netinet/in.h> | ||||
12743 | #include <arpa/inet.h> | ||||
12744 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12745 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12746 | main () |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12747 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12748 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12749 | ; |
12750 | return 0; | ||||
12751 | } | ||||
12752 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12753 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12754 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12755 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12756 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12758 | $as_echo "yes" >&6; } | ||||
12759 | else | ||||
12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12761 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12762 | |
12763 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12764 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12765 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12766 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
12768 | $as_echo_n "checking for inet_pton... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12770 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12771 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12772 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12773 | #include <sys/socket.h> |
12774 | #include <netinet/in.h> | ||||
12775 | #include <arpa/inet.h> | ||||
12776 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12777 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12778 | main () |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12779 | { |
12780 | void* p = inet_pton | ||||
12781 | ; | ||||
12782 | return 0; | ||||
12783 | } | ||||
12784 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12785 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12786 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12787 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12788 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12790 | $as_echo "yes" >&6; } | ||||
12791 | else | ||||
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12793 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12794 | |
12795 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12797 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12798 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
12800 | $as_echo_n "checking for setgroups... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12802 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12803 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12804 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12805 | #ifdef HAVE_GRP_H |
12806 | #include <grp.h> | ||||
12807 | #endif | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12808 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12809 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12810 | main () |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12811 | { |
12812 | void* p = setgroups | ||||
12813 | ; | ||||
12814 | return 0; | ||||
12815 | } | ||||
12816 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12817 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12818 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12819 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12820 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12822 | $as_echo "yes" >&6; } | ||||
12823 | else | ||||
12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12825 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12826 | |
12827 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12829 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12830 | # check for openpty and forkpty |
12831 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12832 | for ac_func in openpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12833 | do : |
12834 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12835 | if test "x$ac_cv_func_openpty" = xyes; then : |
12836 | cat >>confdefs.h <<_ACEOF | ||||
12837 | #define HAVE_OPENPTY 1 | ||||
12838 | _ACEOF | ||||
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12839 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12840 | else |
12841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | ||||
12842 | $as_echo_n "checking for openpty in -lutil... " >&6; } | ||||
12843 | if ${ac_cv_lib_util_openpty+:} false; then : | ||||
12844 | $as_echo_n "(cached) " >&6 | ||||
12845 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12847 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12849 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12850 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12851 | /* Override any GCC internal prototype to avoid an error. |
12852 | Use char because int might match the return type of a GCC | ||||
12853 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12854 | #ifdef __cplusplus |
12855 | extern "C" | ||||
12856 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12858 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12859 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12860 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12861 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12862 | ; |
12863 | return 0; | ||||
12864 | } | ||||
12865 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12866 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12867 | ac_cv_lib_util_openpty=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12868 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12869 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12870 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12871 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12872 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12873 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12874 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
12876 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | ||||
12877 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | ||||
12878 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | ||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12879 | LIBS="$LIBS -lutil" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12880 | else |
12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | ||||
12882 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | ||||
12883 | if ${ac_cv_lib_bsd_openpty+:} false; then : | ||||
12884 | $as_echo_n "(cached) " >&6 | ||||
12885 | else | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12886 | ac_check_lib_save_LIBS=$LIBS |
12887 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12889 | /* end confdefs.h. */ |
12890 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12891 | /* Override any GCC internal prototype to avoid an error. |
12892 | Use char because int might match the return type of a GCC | ||||
12893 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12894 | #ifdef __cplusplus |
12895 | extern "C" | ||||
12896 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12897 | char openpty (); |
12898 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12899 | main () |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12900 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12901 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12902 | ; |
12903 | return 0; | ||||
12904 | } | ||||
12905 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12906 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12907 | ac_cv_lib_bsd_openpty=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12908 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12909 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12910 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12911 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12912 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12913 | LIBS=$ac_check_lib_save_LIBS |
12914 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
12916 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | ||||
12917 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | ||||
12918 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12919 | LIBS="$LIBS -lbsd" |
12920 | fi | ||||
12921 | |||||
12922 | |||||
12923 | fi | ||||
12924 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12925 | |
12926 | fi | ||||
12927 | done | ||||
12928 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12929 | for ac_func in forkpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12930 | do : |
12931 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12932 | if test "x$ac_cv_func_forkpty" = xyes; then : |
12933 | cat >>confdefs.h <<_ACEOF | ||||
12934 | #define HAVE_FORKPTY 1 | ||||
12935 | _ACEOF | ||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12936 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12937 | else |
12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | ||||
12939 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | ||||
12940 | if ${ac_cv_lib_util_forkpty+:} false; then : | ||||
12941 | $as_echo_n "(cached) " >&6 | ||||
12942 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12943 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12944 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12946 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12948 | /* Override any GCC internal prototype to avoid an error. |
12949 | Use char because int might match the return type of a GCC | ||||
12950 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12951 | #ifdef __cplusplus |
12952 | extern "C" | ||||
12953 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12954 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12956 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12958 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12959 | ; |
12960 | return 0; | ||||
12961 | } | ||||
12962 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12963 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12964 | ac_cv_lib_util_forkpty=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12965 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12966 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12967 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12968 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12969 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12971 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
12973 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | ||||
12974 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | ||||
12975 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | ||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12976 | LIBS="$LIBS -lutil" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12977 | else |
12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | ||||
12979 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | ||||
12980 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | ||||
12981 | $as_echo_n "(cached) " >&6 | ||||
12982 | else | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12983 | ac_check_lib_save_LIBS=$LIBS |
12984 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12986 | /* end confdefs.h. */ |
12987 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12988 | /* Override any GCC internal prototype to avoid an error. |
12989 | Use char because int might match the return type of a GCC | ||||
12990 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12991 | #ifdef __cplusplus |
12992 | extern "C" | ||||
12993 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12994 | char forkpty (); |
12995 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 12996 | main () |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12997 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12998 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12999 | ; |
13000 | return 0; | ||||
13001 | } | ||||
13002 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13003 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 13004 | ac_cv_lib_bsd_forkpty=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13005 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13006 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13007 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13008 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13009 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 13010 | LIBS=$ac_check_lib_save_LIBS |
13011 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
13013 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | ||||
13014 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | ||||
13015 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 13016 | LIBS="$LIBS -lbsd" |
13017 | fi | ||||
13018 | |||||
13019 | |||||
13020 | fi | ||||
13021 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13022 | |
13023 | fi | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 13024 | done |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 13025 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13026 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13027 | # check for long file support functions |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13028 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
13029 | do : | ||||
13030 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
13031 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
13032 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
13033 | cat >>confdefs.h <<_ACEOF | ||||
13034 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
13035 | _ACEOF | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13036 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13037 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13038 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13039 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13040 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13041 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13042 | if test "x$ac_cv_func_dup2" = xyes; then : |
13043 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h | ||||
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13044 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13045 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13046 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13047 | *" dup2.$ac_objext "* ) ;; |
13048 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13049 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13050 | esac |
13051 | |||||
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13052 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13053 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13054 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13055 | for ac_func in getpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13056 | do : |
13057 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13058 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
13059 | cat >>confdefs.h <<_ACEOF | ||||
13060 | #define HAVE_GETPGRP 1 | ||||
13061 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13063 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13064 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13065 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13066 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13067 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13068 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13069 | ; |
13070 | return 0; | ||||
13071 | } | ||||
13072 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13073 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13074 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13075 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13076 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13077 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13079 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13080 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13081 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13082 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13083 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13084 | do : |
13085 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13086 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
13087 | cat >>confdefs.h <<_ACEOF | ||||
13088 | #define HAVE_SETPGRP 1 | ||||
13089 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13091 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13092 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13093 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13094 | main () |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13095 | { |
13096 | setpgrp(0,0); | ||||
13097 | ; | ||||
13098 | return 0; | ||||
13099 | } | ||||
13100 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13101 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13103 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13104 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13105 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13107 | |
13108 | fi | ||||
13109 | done | ||||
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13110 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13111 | |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13112 | # We search for both crypt and crypt_r as one or the other may be defined |
13113 | # This gets us our -lcrypt in LIBS when required on the target platform. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
13115 | $as_echo_n "checking for library containing crypt... " >&6; } | ||||
13116 | if ${ac_cv_search_crypt+:} false; then : | ||||
13117 | $as_echo_n "(cached) " >&6 | ||||
13118 | else | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13119 | ac_func_search_save_LIBS=$LIBS |
13120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13121 | /* end confdefs.h. */ | ||||
13122 | |||||
13123 | /* Override any GCC internal prototype to avoid an error. | ||||
13124 | Use char because int might match the return type of a GCC | ||||
13125 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13126 | #ifdef __cplusplus |
13127 | extern "C" | ||||
13128 | #endif | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13129 | char crypt (); |
13130 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13131 | main () |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13132 | { |
13133 | return crypt (); | ||||
13134 | ; | ||||
13135 | return 0; | ||||
13136 | } | ||||
13137 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13138 | for ac_lib in '' crypt; do |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13139 | if test -z "$ac_lib"; then |
13140 | ac_res="none required" | ||||
13141 | else | ||||
13142 | ac_res=-l$ac_lib | ||||
13143 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
13144 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13145 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13146 | ac_cv_search_crypt=$ac_res |
13147 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13148 | rm -f core conftest.err conftest.$ac_objext \ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13149 | conftest$ac_exeext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13150 | if ${ac_cv_search_crypt+:} false; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13151 | break |
13152 | fi | ||||
13153 | done | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13154 | if ${ac_cv_search_crypt+:} false; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13155 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13156 | else |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13157 | ac_cv_search_crypt=no |
13158 | fi | ||||
13159 | rm conftest.$ac_ext | ||||
13160 | LIBS=$ac_func_search_save_LIBS | ||||
13161 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 |
13163 | $as_echo "$ac_cv_search_crypt" >&6; } | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13164 | ac_res=$ac_cv_search_crypt |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13165 | if test "$ac_res" != no; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13166 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13167 | |||||
13168 | fi | ||||
13169 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 |
13171 | $as_echo_n "checking for library containing crypt_r... " >&6; } | ||||
13172 | if ${ac_cv_search_crypt_r+:} false; then : | ||||
13173 | $as_echo_n "(cached) " >&6 | ||||
13174 | else | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13175 | ac_func_search_save_LIBS=$LIBS |
13176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13177 | /* end confdefs.h. */ | ||||
13178 | |||||
13179 | /* Override any GCC internal prototype to avoid an error. | ||||
13180 | Use char because int might match the return type of a GCC | ||||
13181 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13182 | #ifdef __cplusplus |
13183 | extern "C" | ||||
13184 | #endif | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13185 | char crypt_r (); |
13186 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13187 | main () |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13188 | { |
13189 | return crypt_r (); | ||||
13190 | ; | ||||
13191 | return 0; | ||||
13192 | } | ||||
13193 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13194 | for ac_lib in '' crypt; do |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13195 | if test -z "$ac_lib"; then |
13196 | ac_res="none required" | ||||
13197 | else | ||||
13198 | ac_res=-l$ac_lib | ||||
13199 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
13200 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13201 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13202 | ac_cv_search_crypt_r=$ac_res |
13203 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13204 | rm -f core conftest.err conftest.$ac_objext \ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13205 | conftest$ac_exeext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13206 | if ${ac_cv_search_crypt_r+:} false; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13207 | break |
13208 | fi | ||||
13209 | done | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13210 | if ${ac_cv_search_crypt_r+:} false; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13211 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13212 | else |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13213 | ac_cv_search_crypt_r=no |
13214 | fi | ||||
13215 | rm conftest.$ac_ext | ||||
13216 | LIBS=$ac_func_search_save_LIBS | ||||
13217 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 |
13219 | $as_echo "$ac_cv_search_crypt_r" >&6; } | ||||
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13220 | ac_res=$ac_cv_search_crypt_r |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13221 | if test "$ac_res" != no; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13222 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13223 | |||||
13224 | fi | ||||
13225 | |||||
13226 | |||||
13227 | ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13228 | if test "x$ac_cv_func_crypt_r" = xyes; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13230 | /* end confdefs.h. */ | ||||
13231 | |||||
13232 | #define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */ | ||||
13233 | #include <crypt.h> | ||||
13234 | |||||
13235 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13236 | main () |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13237 | { |
13238 | |||||
13239 | struct crypt_data d; | ||||
13240 | char *r = crypt_r("", "", &d); | ||||
13241 | |||||
13242 | ; | ||||
13243 | return 0; | ||||
13244 | } | ||||
13245 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13246 | if ac_fn_c_try_compile "$LINENO"; then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13247 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13248 | $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13249 | |
13250 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13252 | |
13253 | fi | ||||
13254 | |||||
13255 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13256 | for ac_func in clock_gettime |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13257 | do : |
13258 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13259 | if test "x$ac_cv_func_clock_gettime" = xyes; then : |
13260 | cat >>confdefs.h <<_ACEOF | ||||
13261 | #define HAVE_CLOCK_GETTIME 1 | ||||
13262 | _ACEOF | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13263 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13264 | else |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13265 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
13267 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | ||||
13268 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | ||||
13269 | $as_echo_n "(cached) " >&6 | ||||
13270 | else | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13271 | ac_check_lib_save_LIBS=$LIBS |
13272 | LIBS="-lrt $LIBS" | ||||
13273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13274 | /* end confdefs.h. */ | ||||
13275 | |||||
13276 | /* Override any GCC internal prototype to avoid an error. | ||||
13277 | Use char because int might match the return type of a GCC | ||||
13278 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13279 | #ifdef __cplusplus |
13280 | extern "C" | ||||
13281 | #endif | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13282 | char clock_gettime (); |
13283 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13284 | main () |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13285 | { |
13286 | return clock_gettime (); | ||||
13287 | ; | ||||
13288 | return 0; | ||||
13289 | } | ||||
13290 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13291 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13292 | ac_cv_lib_rt_clock_gettime=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13293 | else |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13294 | ac_cv_lib_rt_clock_gettime=no |
13295 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13296 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13297 | conftest$ac_exeext conftest.$ac_ext |
13298 | LIBS=$ac_check_lib_save_LIBS | ||||
13299 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13301 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | ||||
13302 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13303 | |
Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 13304 | LIBS="$LIBS -lrt" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13305 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13306 | |
13307 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13308 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13309 | |
13310 | |||||
13311 | fi | ||||
13312 | |||||
13313 | |||||
13314 | fi | ||||
13315 | done | ||||
13316 | |||||
13317 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13318 | for ac_func in clock_getres |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13319 | do : |
13320 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13321 | if test "x$ac_cv_func_clock_getres" = xyes; then : |
13322 | cat >>confdefs.h <<_ACEOF | ||||
13323 | #define HAVE_CLOCK_GETRES 1 | ||||
13324 | _ACEOF | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13325 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13326 | else |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13327 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 |
13329 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | ||||
13330 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | ||||
13331 | $as_echo_n "(cached) " >&6 | ||||
13332 | else | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13333 | ac_check_lib_save_LIBS=$LIBS |
13334 | LIBS="-lrt $LIBS" | ||||
13335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13336 | /* end confdefs.h. */ | ||||
13337 | |||||
13338 | /* Override any GCC internal prototype to avoid an error. | ||||
13339 | Use char because int might match the return type of a GCC | ||||
13340 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13341 | #ifdef __cplusplus |
13342 | extern "C" | ||||
13343 | #endif | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13344 | char clock_getres (); |
13345 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13346 | main () |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13347 | { |
13348 | return clock_getres (); | ||||
13349 | ; | ||||
13350 | return 0; | ||||
13351 | } | ||||
13352 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13353 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13354 | ac_cv_lib_rt_clock_getres=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13355 | else |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13356 | ac_cv_lib_rt_clock_getres=no |
13357 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13358 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13359 | conftest$ac_exeext conftest.$ac_ext |
13360 | LIBS=$ac_check_lib_save_LIBS | ||||
13361 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 |
13363 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | ||||
13364 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13365 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13366 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13367 | |
13368 | |||||
13369 | fi | ||||
13370 | |||||
13371 | |||||
13372 | fi | ||||
13373 | done | ||||
13374 | |||||
13375 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13376 | for ac_func in clock_settime |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13377 | do : |
13378 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13379 | if test "x$ac_cv_func_clock_settime" = xyes; then : |
13380 | cat >>confdefs.h <<_ACEOF | ||||
13381 | #define HAVE_CLOCK_SETTIME 1 | ||||
13382 | _ACEOF | ||||
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13383 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13384 | else |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13385 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 |
13387 | $as_echo_n "checking for clock_settime in -lrt... " >&6; } | ||||
13388 | if ${ac_cv_lib_rt_clock_settime+:} false; then : | ||||
13389 | $as_echo_n "(cached) " >&6 | ||||
13390 | else | ||||
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13391 | ac_check_lib_save_LIBS=$LIBS |
13392 | LIBS="-lrt $LIBS" | ||||
13393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13394 | /* end confdefs.h. */ | ||||
13395 | |||||
13396 | /* Override any GCC internal prototype to avoid an error. | ||||
13397 | Use char because int might match the return type of a GCC | ||||
13398 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13399 | #ifdef __cplusplus |
13400 | extern "C" | ||||
13401 | #endif | ||||
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13402 | char clock_settime (); |
13403 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13404 | main () |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13405 | { |
13406 | return clock_settime (); | ||||
13407 | ; | ||||
13408 | return 0; | ||||
13409 | } | ||||
13410 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13411 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13412 | ac_cv_lib_rt_clock_settime=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13413 | else |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13414 | ac_cv_lib_rt_clock_settime=no |
13415 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13416 | rm -f core conftest.err conftest.$ac_objext \ |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13417 | conftest$ac_exeext conftest.$ac_ext |
13418 | LIBS=$ac_check_lib_save_LIBS | ||||
13419 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 |
13421 | $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } | ||||
13422 | if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : | ||||
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13423 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13424 | $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13425 | |
13426 | |||||
13427 | fi | ||||
13428 | |||||
13429 | |||||
13430 | fi | ||||
13431 | done | ||||
13432 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13433 | |
13434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | ||||
13435 | $as_echo_n "checking for major... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13437 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13438 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13439 | #if defined(MAJOR_IN_MKDEV) |
13440 | #include <sys/mkdev.h> | ||||
13441 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
13442 | #include <sys/sysmacros.h> | ||||
13443 | #else | ||||
13444 | #include <sys/types.h> | ||||
13445 | #endif | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13446 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13447 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13448 | main () |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13449 | { |
13450 | |||||
13451 | makedev(major(0),minor(0)); | ||||
13452 | |||||
13453 | ; | ||||
13454 | return 0; | ||||
13455 | } | ||||
13456 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13457 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13458 | |
13459 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13460 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13461 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13463 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13464 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13465 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13466 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13468 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13469 | |
13470 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13471 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13472 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13473 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13474 | # On OSF/1 V5.1, getaddrinfo is available, but a define |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13475 | # for [no]getaddrinfo in netdb.h. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
13477 | $as_echo_n "checking for getaddrinfo... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13479 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13480 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13481 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13482 | #include <sys/socket.h> |
13483 | #include <netdb.h> | ||||
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13484 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13486 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13487 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13488 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13489 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13490 | ; |
13491 | return 0; | ||||
13492 | } | ||||
13493 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13494 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13495 | have_getaddrinfo=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13496 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13497 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13498 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13499 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13500 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
13502 | $as_echo "$have_getaddrinfo" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13503 | if test $have_getaddrinfo = yes |
13504 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
13506 | $as_echo_n "checking getaddrinfo bug... " >&6; } | ||||
13507 | if ${ac_cv_buggy_getaddrinfo+:} false; then : | ||||
13508 | $as_echo_n "(cached) " >&6 | ||||
13509 | else | ||||
13510 | if test "$cross_compiling" = yes; then : | ||||
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 13511 | |
13512 | if test "${enable_ipv6+set}" = set; then | ||||
13513 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | ||||
13514 | else | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13515 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 13516 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13517 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13519 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13520 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 13521 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13522 | #include <sys/types.h> |
13523 | #include <netdb.h> | ||||
13524 | #include <string.h> | ||||
13525 | #include <sys/socket.h> | ||||
13526 | #include <netinet/in.h> | ||||
13527 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13528 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13529 | { |
13530 | int passive, gaierr, inet4 = 0, inet6 = 0; | ||||
13531 | struct addrinfo hints, *ai, *aitop; | ||||
13532 | char straddr[INET6_ADDRSTRLEN], strport[16]; | ||||
13533 | |||||
13534 | for (passive = 0; passive <= 1; passive++) { | ||||
13535 | memset(&hints, 0, sizeof(hints)); | ||||
13536 | hints.ai_family = AF_UNSPEC; | ||||
13537 | hints.ai_flags = passive ? AI_PASSIVE : 0; | ||||
13538 | hints.ai_socktype = SOCK_STREAM; | ||||
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 13539 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13540 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
13541 | (void)gai_strerror(gaierr); | ||||
13542 | goto bad; | ||||
13543 | } | ||||
13544 | for (ai = aitop; ai; ai = ai->ai_next) { | ||||
13545 | if (ai->ai_addr == NULL || | ||||
13546 | ai->ai_addrlen == 0 || | ||||
13547 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | ||||
13548 | straddr, sizeof(straddr), strport, sizeof(strport), | ||||
13549 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | ||||
13550 | goto bad; | ||||
13551 | } | ||||
13552 | switch (ai->ai_family) { | ||||
13553 | case AF_INET: | ||||
13554 | if (strcmp(strport, "54321") != 0) { | ||||
13555 | goto bad; | ||||
13556 | } | ||||
13557 | if (passive) { | ||||
13558 | if (strcmp(straddr, "0.0.0.0") != 0) { | ||||
13559 | goto bad; | ||||
13560 | } | ||||
13561 | } else { | ||||
13562 | if (strcmp(straddr, "127.0.0.1") != 0) { | ||||
13563 | goto bad; | ||||
13564 | } | ||||
13565 | } | ||||
13566 | inet4++; | ||||
13567 | break; | ||||
13568 | case AF_INET6: | ||||
13569 | if (strcmp(strport, "54321") != 0) { | ||||
13570 | goto bad; | ||||
13571 | } | ||||
13572 | if (passive) { | ||||
13573 | if (strcmp(straddr, "::") != 0) { | ||||
13574 | goto bad; | ||||
13575 | } | ||||
13576 | } else { | ||||
13577 | if (strcmp(straddr, "::1") != 0) { | ||||
13578 | goto bad; | ||||
13579 | } | ||||
13580 | } | ||||
13581 | inet6++; | ||||
13582 | break; | ||||
13583 | case AF_UNSPEC: | ||||
13584 | goto bad; | ||||
13585 | break; | ||||
13586 | default: | ||||
13587 | /* another family support? */ | ||||
13588 | break; | ||||
13589 | } | ||||
13590 | } | ||||
Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 13591 | freeaddrinfo(aitop); |
13592 | aitop = NULL; | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13593 | } |
13594 | |||||
13595 | if (!(inet4 == 0 || inet4 == 2)) | ||||
13596 | goto bad; | ||||
13597 | if (!(inet6 == 0 || inet6 == 2)) | ||||
13598 | goto bad; | ||||
13599 | |||||
13600 | if (aitop) | ||||
13601 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13602 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13603 | |
13604 | bad: | ||||
13605 | if (aitop) | ||||
13606 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13607 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13608 | } |
13609 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13610 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13611 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13612 | ac_cv_buggy_getaddrinfo=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13613 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13614 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13615 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13616 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13617 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13618 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13619 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13620 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13621 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13622 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13623 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
13625 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | ||||
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 13626 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 13627 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13628 | then |
13629 | if test $ipv6 = yes | ||||
13630 | then | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13631 | echo 'Fatal: You must get working getaddrinfo() function.' |
13632 | echo ' or you can specify "--disable-ipv6"'. | ||||
13633 | exit 1 | ||||
13634 | fi | ||||
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13636 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13637 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13638 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13639 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 13640 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13641 | for ac_func in getnameinfo |
13642 | do : | ||||
13643 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | ||||
13644 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | ||||
13645 | cat >>confdefs.h <<_ACEOF | ||||
13646 | #define HAVE_GETNAMEINFO 1 | ||||
13647 | _ACEOF | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13648 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13649 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13650 | done |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13651 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13652 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13653 | # checks for structures |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
13655 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | ||||
13656 | if ${ac_cv_header_time+:} false; then : | ||||
13657 | $as_echo_n "(cached) " >&6 | ||||
13658 | else | ||||
13659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13660 | /* end confdefs.h. */ | ||||
13661 | #include <sys/types.h> | ||||
13662 | #include <sys/time.h> | ||||
13663 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13664 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13665 | int |
13666 | main () | ||||
13667 | { | ||||
13668 | if ((struct tm *) 0) | ||||
13669 | return 0; | ||||
13670 | ; | ||||
13671 | return 0; | ||||
13672 | } | ||||
13673 | _ACEOF | ||||
13674 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
13675 | ac_cv_header_time=yes | ||||
13676 | else | ||||
13677 | ac_cv_header_time=no | ||||
13678 | fi | ||||
13679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
13680 | fi | ||||
13681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | ||||
13682 | $as_echo "$ac_cv_header_time" >&6; } | ||||
13683 | if test $ac_cv_header_time = yes; then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13684 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13685 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13686 | |
13687 | fi | ||||
13688 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
13690 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | ||||
13691 | if ${ac_cv_struct_tm+:} false; then : | ||||
13692 | $as_echo_n "(cached) " >&6 | ||||
13693 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13695 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13696 | #include <sys/types.h> |
13697 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13699 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13700 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13701 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13702 | struct tm tm; |
13703 | int *p = &tm.tm_sec; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13704 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13705 | ; |
13706 | return 0; | ||||
13707 | } | ||||
13708 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13709 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13710 | ac_cv_struct_tm=time.h |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13711 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13712 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13713 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13715 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
13717 | $as_echo "$ac_cv_struct_tm" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13718 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13719 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13720 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13721 | |
13722 | fi | ||||
13723 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13724 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13725 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13726 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13727 | " |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13728 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13729 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13730 | cat >>confdefs.h <<_ACEOF |
13731 | #define HAVE_STRUCT_TM_TM_ZONE 1 | ||||
13732 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13733 | |
13734 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13735 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13737 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
13738 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13739 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13740 | |
13741 | else | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13742 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
13743 | " | ||||
13744 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13745 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13746 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13747 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13748 | fi |
13749 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13750 | cat >>confdefs.h <<_ACEOF |
13751 | #define HAVE_DECL_TZNAME $ac_have_decl | ||||
13752 | _ACEOF | ||||
13753 | |||||
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | ||||
13755 | $as_echo_n "checking for tzname... " >&6; } | ||||
13756 | if ${ac_cv_var_tzname+:} false; then : | ||||
13757 | $as_echo_n "(cached) " >&6 | ||||
13758 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13760 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13761 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13762 | #if !HAVE_DECL_TZNAME |
13763 | extern char *tzname[]; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13764 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13766 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13767 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13768 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13769 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13770 | ; |
13771 | return 0; | ||||
13772 | } | ||||
13773 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13774 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13775 | ac_cv_var_tzname=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13776 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13777 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13778 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13779 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13780 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13781 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
13783 | $as_echo "$ac_cv_var_tzname" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13784 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13785 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13786 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13787 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13788 | fi |
13789 | fi | ||||
13790 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13791 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13792 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13793 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13794 | cat >>confdefs.h <<_ACEOF |
13795 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | ||||
13796 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13797 | |
13798 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13799 | fi |
13800 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13801 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13802 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13803 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13804 | cat >>confdefs.h <<_ACEOF |
13805 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||||
13806 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13807 | |
13808 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13809 | fi |
13810 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13811 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13812 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 13813 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13814 | cat >>confdefs.h <<_ACEOF |
13815 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | ||||
13816 | _ACEOF | ||||
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 13817 | |
13818 | |||||
13819 | fi | ||||
13820 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13821 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13822 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13823 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13824 | cat >>confdefs.h <<_ACEOF |
13825 | #define HAVE_STRUCT_STAT_ST_GEN 1 | ||||
13826 | _ACEOF | ||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13827 | |
13828 | |||||
13829 | fi | ||||
13830 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13831 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13832 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13833 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13834 | cat >>confdefs.h <<_ACEOF |
13835 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | ||||
13836 | _ACEOF | ||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13837 | |
13838 | |||||
13839 | fi | ||||
13840 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13841 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13842 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13843 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13844 | cat >>confdefs.h <<_ACEOF |
13845 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | ||||
13846 | _ACEOF | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13847 | |
13848 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13849 | fi |
13850 | |||||
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13851 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
13852 | #include <sys/types.h> | ||||
13853 | #include <pwd.h> | ||||
13854 | |||||
13855 | " | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13856 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13857 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13858 | cat >>confdefs.h <<_ACEOF |
13859 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||||
13860 | _ACEOF | ||||
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13861 | |
13862 | |||||
13863 | fi | ||||
13864 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | ||||
13865 | #include <sys/types.h> | ||||
13866 | #include <pwd.h> | ||||
13867 | |||||
13868 | " | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13869 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13870 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13871 | cat >>confdefs.h <<_ACEOF |
13872 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | ||||
13873 | _ACEOF | ||||
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13874 | |
13875 | |||||
13876 | fi | ||||
13877 | |||||
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 13878 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. |
13879 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> | ||||
13880 | " | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13881 | if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : |
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 13882 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13883 | cat >>confdefs.h <<_ACEOF |
13884 | #define HAVE_SIGINFO_T_SI_BAND 1 | ||||
13885 | _ACEOF | ||||
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 13886 | |
13887 | |||||
13888 | fi | ||||
13889 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13890 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
13892 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | ||||
13893 | if ${ac_cv_header_time_altzone+:} false; then : | ||||
13894 | $as_echo_n "(cached) " >&6 | ||||
13895 | else | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13896 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13898 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13899 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13900 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13901 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13902 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13903 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13904 | ; |
13905 | return 0; | ||||
13906 | } | ||||
13907 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13908 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13909 | ac_cv_header_time_altzone=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13910 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13911 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13912 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13914 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13915 | fi |
13916 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
13918 | $as_echo "$ac_cv_header_time_altzone" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13919 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13920 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13921 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13922 | |
13923 | fi | ||||
13924 | |||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13925 | was_it_defined=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
13927 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13929 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13930 | |
13931 | #include <sys/types.h> | ||||
13932 | #include <sys/select.h> | ||||
13933 | #include <sys/time.h> | ||||
13934 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13935 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13936 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13937 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13938 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13939 | ; |
13940 | return 0; | ||||
13941 | } | ||||
13942 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13943 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13944 | |
13945 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13946 | $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13947 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13948 | was_it_defined=yes |
13949 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13950 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | ||||
13953 | $as_echo "$was_it_defined" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13954 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
13956 | $as_echo_n "checking for addrinfo... " >&6; } | ||||
13957 | if ${ac_cv_struct_addrinfo+:} false; then : | ||||
13958 | $as_echo_n "(cached) " >&6 | ||||
13959 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13961 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13962 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13963 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13964 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13965 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13966 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | ; |
13968 | return 0; | ||||
13969 | } | ||||
13970 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13971 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13972 | ac_cv_struct_addrinfo=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13973 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13974 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13975 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13977 | fi |
13978 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
13980 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13981 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13982 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13983 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13984 | |
13985 | fi | ||||
13986 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
13988 | $as_echo_n "checking for sockaddr_storage... " >&6; } | ||||
13989 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | ||||
13990 | $as_echo_n "(cached) " >&6 | ||||
13991 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13993 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13994 | |
13995 | # include <sys/types.h> | ||||
13996 | # include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13997 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 13998 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13999 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14000 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14001 | ; |
14002 | return 0; | ||||
14003 | } | ||||
14004 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14005 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14006 | ac_cv_struct_sockaddr_storage=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14007 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14008 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14009 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14011 | fi |
14012 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
14014 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14015 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14016 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14017 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14018 | |
14019 | fi | ||||
14020 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 |
14022 | $as_echo_n "checking for sockaddr_alg... " >&6; } | ||||
14023 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | ||||
14024 | $as_echo_n "(cached) " >&6 | ||||
14025 | else | ||||
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 14026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14027 | /* end confdefs.h. */ | ||||
14028 | |||||
14029 | # include <sys/types.h> | ||||
14030 | # include <sys/socket.h> | ||||
14031 | # include <linux/if_alg.h> | ||||
14032 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14033 | main () |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 14034 | { |
14035 | struct sockaddr_alg s | ||||
14036 | ; | ||||
14037 | return 0; | ||||
14038 | } | ||||
14039 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14040 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 14041 | ac_cv_struct_sockaddr_alg=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14042 | else |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 14043 | ac_cv_struct_sockaddr_alg=no |
14044 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 14046 | fi |
14047 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 |
14049 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | ||||
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 14050 | if test $ac_cv_struct_sockaddr_alg = yes; then |
14051 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14052 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 14053 | |
14054 | fi | ||||
14055 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14056 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14057 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
14059 | $as_echo_n "checking whether char is unsigned... " >&6; } | ||||
14060 | if ${ac_cv_c_char_unsigned+:} false; then : | ||||
14061 | $as_echo_n "(cached) " >&6 | ||||
14062 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14064 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14065 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14066 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14067 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14068 | { |
14069 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14070 | test_array [0] = 0; |
14071 | return test_array [0]; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14072 | |
14073 | ; | ||||
14074 | return 0; | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14075 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14076 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14077 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14078 | ac_cv_c_char_unsigned=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14079 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14080 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14081 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14083 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
14085 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | ||||
14086 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | ||||
14087 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14088 | |
14089 | fi | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14090 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
14092 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||||
14093 | if ${ac_cv_c_const+:} false; then : | ||||
14094 | $as_echo_n "(cached) " >&6 | ||||
14095 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14097 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14099 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14100 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14101 | { |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14102 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14103 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14104 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14105 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14106 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14107 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14108 | char const *const *pcpcc; |
14109 | char **ppc; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14110 | /* NEC SVR4.0.2 mips cc rejects this. */ |
14111 | struct point {int x, y;}; | ||||
14112 | static struct point const zero = {0,0}; | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14113 | /* AIX XL C 1.02.0.0 rejects this. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14114 | It does not let you subtract one const X* pointer from another in |
14115 | an arm of an if-expression whose if-part is not a constant | ||||
14116 | expression */ | ||||
14117 | const char *g = "string"; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14118 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14119 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14120 | ++pcpcc; |
14121 | ppc = (char**) pcpcc; | ||||
14122 | pcpcc = (char const *const *) ppc; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14123 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
14124 | char tx; | ||||
14125 | char *t = &tx; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14126 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14128 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14129 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14130 | } |
14131 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||||
14132 | int x[] = {25, 17}; | ||||
14133 | const int *foo = &x[0]; | ||||
14134 | ++foo; | ||||
14135 | } | ||||
14136 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||||
14137 | typedef const int *iptr; | ||||
14138 | iptr p = 0; | ||||
14139 | ++p; | ||||
14140 | } | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14141 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14142 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14143 | struct s { int j; const int *ap[3]; } bx; |
14144 | struct s *b = &bx; b->j = 5; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14145 | } |
14146 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||||
14147 | const int foo = 10; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14148 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14150 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14153 | ; |
14154 | return 0; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14155 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14156 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14157 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14158 | ac_cv_c_const=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14159 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14160 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14161 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14163 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
14165 | $as_echo "$ac_cv_c_const" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14166 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14167 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14168 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14169 | |
14170 | fi | ||||
14171 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14172 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14173 | works=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
14175 | $as_echo_n "checking for working signed char... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14177 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14179 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14180 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14181 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14182 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14183 | ; |
14184 | return 0; | ||||
14185 | } | ||||
14186 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14187 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14188 | works=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14189 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14190 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14191 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14192 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14193 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14194 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | ||||
14197 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14198 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14199 | have_prototypes=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
14201 | $as_echo_n "checking for prototypes... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14203 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14204 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14205 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14206 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14207 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14208 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14209 | ; |
14210 | return 0; | ||||
14211 | } | ||||
14212 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14213 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14214 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14215 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14216 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14217 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14218 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | ||||
14221 | $as_echo "$have_prototypes" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14222 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14223 | works=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
14225 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14227 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14228 | |
14229 | #include <stdarg.h> | ||||
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14230 | int foo(int x, ...) { |
14231 | va_list va; | ||||
14232 | va_start(va, x); | ||||
14233 | va_arg(va, int); | ||||
14234 | va_arg(va, char *); | ||||
14235 | va_arg(va, double); | ||||
14236 | return 0; | ||||
14237 | } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14239 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14240 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14241 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14242 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14243 | ; |
14244 | return 0; | ||||
14245 | } | ||||
14246 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14247 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14248 | |
14249 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14250 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14251 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14252 | works=yes |
14253 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14254 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | ||||
14257 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14258 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14259 | # check for socketpair |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
14261 | $as_echo_n "checking for socketpair... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14263 | /* end confdefs.h. */ |
14264 | |||||
14265 | #include <sys/types.h> | ||||
14266 | #include <sys/socket.h> | ||||
14267 | |||||
14268 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14269 | main () |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14270 | { |
14271 | void *x=socketpair | ||||
14272 | ; | ||||
14273 | return 0; | ||||
14274 | } | ||||
14275 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14276 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14277 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14278 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14279 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14281 | $as_echo "yes" >&6; } | ||||
14282 | else | ||||
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
14284 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14285 | |
14286 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14288 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14289 | # check if sockaddr has sa_len member |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
14291 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14293 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14294 | #include <sys/types.h> |
14295 | #include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14296 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14297 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14298 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14299 | struct sockaddr x; |
14300 | x.sa_len = 0; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14301 | ; |
14302 | return 0; | ||||
14303 | } | ||||
14304 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14305 | if ac_fn_c_try_compile "$LINENO"; then : |
14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
14307 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14308 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14309 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14310 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14311 | else |
14312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
14313 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14314 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14315 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14317 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14318 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14319 | |
14320 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14321 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14322 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14323 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14324 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14325 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
14327 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14328 | OLD_CFLAGS=$CFLAGS |
14329 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14331 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14332 | |
14333 | # include <netdb.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14335 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14336 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14337 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14338 | |
14339 | char *name; | ||||
14340 | struct hostent *he, *res; | ||||
14341 | char buffer[2048]; | ||||
14342 | int buflen = 2048; | ||||
14343 | int h_errnop; | ||||
14344 | |||||
14345 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14346 | |
14347 | ; | ||||
14348 | return 0; | ||||
14349 | } | ||||
14350 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14351 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14352 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14353 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14355 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14356 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14357 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14359 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14360 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14361 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14362 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14364 | $as_echo "no" >&6; } | ||||
14365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | ||||
14366 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14368 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14369 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14370 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14372 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14373 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14374 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14375 | |
14376 | char *name; | ||||
14377 | struct hostent *he; | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14378 | char buffer[2048]; |
14379 | int buflen = 2048; | ||||
14380 | int h_errnop; | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14381 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14382 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14383 | |
14384 | ; | ||||
14385 | return 0; | ||||
14386 | } | ||||
14387 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14388 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14389 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14390 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14392 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14393 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14394 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14396 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14397 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14398 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14399 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14401 | $as_echo "no" >&6; } | ||||
14402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | ||||
14403 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14405 | /* end confdefs.h. */ | ||||
14406 | |||||
14407 | # include <netdb.h> | ||||
14408 | |||||
14409 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14410 | main () |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14411 | { |
14412 | |||||
14413 | char *name; | ||||
14414 | struct hostent *he; | ||||
14415 | struct hostent_data data; | ||||
14416 | |||||
14417 | (void) gethostbyname_r(name, he, &data); | ||||
14418 | |||||
14419 | ; | ||||
14420 | return 0; | ||||
14421 | } | ||||
14422 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14423 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14424 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14425 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14426 | |
14427 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14428 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14429 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14431 | $as_echo "yes" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14432 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14433 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14434 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14436 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14437 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14438 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14440 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14441 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14444 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14446 | CFLAGS=$OLD_CFLAGS |
14447 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14448 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14449 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14450 | for ac_func in gethostbyname |
14451 | do : | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14452 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14453 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
14454 | cat >>confdefs.h <<_ACEOF | ||||
14455 | #define HAVE_GETHOSTBYNAME 1 | ||||
14456 | _ACEOF | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14457 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14458 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14459 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14460 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14461 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14462 | fi |
14463 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14464 | |
14465 | |||||
14466 | |||||
14467 | |||||
14468 | |||||
14469 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14470 | # checks for system services |
14471 | # (none yet) | ||||
14472 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14473 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14474 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14475 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14476 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14477 | else |
14478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | ||||
14479 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | ||||
14480 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | ||||
14481 | $as_echo_n "(cached) " >&6 | ||||
14482 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14483 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14484 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14486 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14487 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14488 | /* Override any GCC internal prototype to avoid an error. |
14489 | Use char because int might match the return type of a GCC | ||||
14490 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14491 | #ifdef __cplusplus |
14492 | extern "C" | ||||
14493 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14495 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14496 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14497 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14498 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14499 | ; |
14500 | return 0; | ||||
14501 | } | ||||
14502 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14503 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14504 | ac_cv_lib_ieee___fpu_control=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14505 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14506 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14507 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14508 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14509 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14510 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14511 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
14513 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | ||||
14514 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : | ||||
14515 | cat >>confdefs.h <<_ACEOF | ||||
14516 | #define HAVE_LIBIEEE 1 | ||||
14517 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14518 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14519 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14520 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14521 | fi |
14522 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14523 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14524 | fi |
14525 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14526 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14527 | # check for --with-libm=... |
14528 | |||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14529 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14530 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14531 | *) LIBM=-lm |
14532 | esac | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
14534 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14535 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14536 | # Check whether --with-libm was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14537 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14538 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14539 | if test "$withval" = no |
14540 | then LIBM= | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
14542 | $as_echo "force LIBM empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14543 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14544 | then LIBM=$withval |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
14546 | $as_echo "set LIBM=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14547 | else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14548 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14549 | else |
14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | ||||
14551 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14552 | fi |
14553 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14554 | |
14555 | # check for --with-libc=... | ||||
14556 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
14558 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14559 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14560 | # Check whether --with-libc was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14561 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14562 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14563 | if test "$withval" = no |
14564 | then LIBC= | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
14566 | $as_echo "force LIBC empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14567 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14568 | then LIBC=$withval |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
14570 | $as_echo "set LIBC=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14571 | else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14572 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14573 | else |
14574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | ||||
14575 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14576 | fi |
14577 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14578 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14579 | # ************************************** |
14580 | # * Check for gcc x64 inline assembler * | ||||
14581 | # ************************************** | ||||
14582 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 |
14584 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14586 | /* end confdefs.h. */ | ||||
14587 | |||||
14588 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14589 | main () |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14590 | { |
14591 | |||||
14592 | __asm__ __volatile__ ("movq %rcx, %rax"); | ||||
14593 | |||||
14594 | ; | ||||
14595 | return 0; | ||||
14596 | } | ||||
14597 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14598 | if ac_fn_c_try_link "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14599 | have_gcc_asm_for_x64=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14600 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14601 | have_gcc_asm_for_x64=no |
14602 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14603 | rm -f core conftest.err conftest.$ac_objext \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14604 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
14606 | $as_echo "$have_gcc_asm_for_x64" >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14607 | if test "$have_gcc_asm_for_x64" = yes |
14608 | then | ||||
14609 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14610 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14611 | |
14612 | fi | ||||
14613 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14614 | # ************************************************** |
14615 | # * Check for various properties of floating point * | ||||
14616 | # ************************************************** | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14617 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5 |
14619 | $as_echo_n "checking whether float word ordering is bigendian... " >&6; } | ||||
14620 | if ${ax_cv_c_float_words_bigendian+:} false; then : | ||||
14621 | $as_echo_n "(cached) " >&6 | ||||
14622 | else | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14623 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14624 | |
14625 | ax_cv_c_float_words_bigendian=unknown | ||||
14626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14627 | /* end confdefs.h. */ |
14628 | |||||
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14629 | |
14630 | double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0; | ||||
14631 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14632 | |
14633 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14634 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14635 | |
14636 | |||||
Christian Heimes | 5d6e8c1 | 2021-03-27 14:44:04 +0100 | [diff] [blame] | 14637 | if grep noonsees conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14638 | ax_cv_c_float_words_bigendian=yes |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14639 | fi |
Christian Heimes | 5d6e8c1 | 2021-03-27 14:44:04 +0100 | [diff] [blame] | 14640 | if grep seesnoon conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14641 | if test "$ax_cv_c_float_words_bigendian" = unknown; then |
14642 | ax_cv_c_float_words_bigendian=no | ||||
14643 | else | ||||
14644 | ax_cv_c_float_words_bigendian=unknown | ||||
14645 | fi | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14646 | fi |
14647 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14648 | |
14649 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14651 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5 |
14653 | $as_echo "$ax_cv_c_float_words_bigendian" >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14654 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14655 | case $ax_cv_c_float_words_bigendian in |
14656 | yes) | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14657 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14658 | $as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14659 | ;; |
14660 | no) | ||||
14661 | ;; | ||||
14662 | *) | ||||
14663 | as_fn_error $? " | ||||
14664 | |||||
14665 | Unknown float word ordering. You need to manually preset | ||||
14666 | ax_cv_c_float_words_bigendian=no (or yes) according to your system. | ||||
14667 | |||||
14668 | " "$LINENO" 5 ;; | ||||
14669 | esac | ||||
14670 | |||||
14671 | |||||
14672 | if test "$ax_cv_c_float_words_bigendian" = "yes" | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14673 | then |
14674 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14675 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14676 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14677 | elif test "$ax_cv_c_float_words_bigendian" = "no" |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14678 | then |
14679 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14680 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14681 | |
14682 | else | ||||
14683 | # Some ARM platforms use a mixed-endian representation for doubles. | ||||
14684 | # While Python doesn't currently have full support for these platforms | ||||
14685 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | ||||
14686 | # conversions work. | ||||
14687 | # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big | ||||
14688 | # or little, then it must be this? | ||||
14689 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14690 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14691 | |
14692 | fi | ||||
14693 | |||||
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 14694 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14695 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 14696 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14697 | # rounding; this is a problem on x86, where the x87 FPU has a default |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14698 | # rounding precision of 64 bits. For gcc/x86, we can fix this by |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14699 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14700 | |
14701 | # This inline assembler syntax may also work for suncc and icc, | ||||
14702 | # so we try it on all platforms. | ||||
14703 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
14705 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14707 | /* end confdefs.h. */ |
14708 | |||||
14709 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14710 | main () |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14711 | { |
14712 | |||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14713 | unsigned short cw; |
14714 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | ||||
14715 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14716 | |
14717 | ; | ||||
14718 | return 0; | ||||
14719 | } | ||||
14720 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14721 | if ac_fn_c_try_link "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14722 | have_gcc_asm_for_x87=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14723 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14724 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14725 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14726 | rm -f core conftest.err conftest.$ac_objext \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14727 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
14729 | $as_echo "$have_gcc_asm_for_x87" >&6; } | ||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14730 | if test "$have_gcc_asm_for_x87" = yes |
14731 | then | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14732 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14733 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14734 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14735 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14736 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
14738 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | ||||
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14740 | /* end confdefs.h. */ | ||||
14741 | |||||
14742 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14743 | main () |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14744 | { |
14745 | |||||
14746 | unsigned int fpcr; | ||||
14747 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | ||||
14748 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | ||||
14749 | |||||
14750 | ; | ||||
14751 | return 0; | ||||
14752 | } | ||||
14753 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14754 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14755 | have_gcc_asm_for_mc68881=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14756 | else |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14757 | have_gcc_asm_for_mc68881=no |
14758 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14759 | rm -f core conftest.err conftest.$ac_objext \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14760 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
14762 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | ||||
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14763 | if test "$have_gcc_asm_for_mc68881" = yes |
14764 | then | ||||
14765 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14766 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14767 | |
14768 | fi | ||||
14769 | |||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14770 | # Detect whether system arithmetic is subject to x87-style double |
14771 | # rounding issues. The result of this test has little meaning on non | ||||
14772 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding | ||||
14773 | # mode is round-to-nearest and double rounding issues are present, and | ||||
14774 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
14776 | $as_echo_n "checking for x87-style double rounding... " >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14777 | # $BASECFLAGS may affect the result |
14778 | ac_save_cc="$CC" | ||||
14779 | CC="$CC $BASECFLAGS" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14780 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14781 | ac_cv_x87_double_rounding=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14782 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14784 | /* end confdefs.h. */ |
14785 | |||||
14786 | #include <stdlib.h> | ||||
14787 | #include <math.h> | ||||
14788 | int main() { | ||||
14789 | volatile double x, y, z; | ||||
14790 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | ||||
14791 | x = 0.99999999999999989; /* 1-2**-53 */ | ||||
14792 | y = 1./x; | ||||
14793 | if (y != 1.) | ||||
14794 | exit(0); | ||||
14795 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | ||||
14796 | x = 1e16; | ||||
14797 | y = 2.99999; | ||||
14798 | z = x + y; | ||||
14799 | if (z != 1e16+4.) | ||||
14800 | exit(0); | ||||
14801 | /* both tests show evidence of double rounding */ | ||||
14802 | exit(1); | ||||
14803 | } | ||||
14804 | |||||
14805 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14806 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14807 | ac_cv_x87_double_rounding=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14808 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14809 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14810 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14811 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14812 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14813 | fi |
14814 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14815 | CC="$ac_save_cc" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
14817 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14818 | if test "$ac_cv_x87_double_rounding" = yes |
14819 | then | ||||
14820 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14821 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14822 | |
14823 | fi | ||||
14824 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14825 | # ************************************ |
14826 | # * Check for mathematical functions * | ||||
14827 | # ************************************ | ||||
14828 | |||||
14829 | LIBS_SAVE=$LIBS | ||||
14830 | LIBS="$LIBS $LIBM" | ||||
14831 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14832 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
14833 | do : | ||||
14834 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14835 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
14836 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
14837 | cat >>confdefs.h <<_ACEOF | ||||
14838 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14839 | _ACEOF | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14840 | |
14841 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14842 | done |
14843 | |||||
14844 | for ac_func in hypot lgamma log1p log2 round tgamma | ||||
14845 | do : | ||||
14846 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14847 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
14848 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
14849 | cat >>confdefs.h <<_ACEOF | ||||
14850 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14851 | _ACEOF | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14852 | |
14853 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14854 | done |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14855 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14856 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
14857 | " | ||||
14858 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14859 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14860 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14861 | ac_have_decl=0 |
14862 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14863 | |
14864 | cat >>confdefs.h <<_ACEOF | ||||
14865 | #define HAVE_DECL_ISINF $ac_have_decl | ||||
14866 | _ACEOF | ||||
14867 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | ||||
14868 | " | ||||
14869 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14870 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14871 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14872 | ac_have_decl=0 |
14873 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14874 | |
14875 | cat >>confdefs.h <<_ACEOF | ||||
14876 | #define HAVE_DECL_ISNAN $ac_have_decl | ||||
14877 | _ACEOF | ||||
14878 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | ||||
14879 | " | ||||
14880 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14881 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14882 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14883 | ac_have_decl=0 |
14884 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14885 | |
14886 | cat >>confdefs.h <<_ACEOF | ||||
14887 | #define HAVE_DECL_ISFINITE $ac_have_decl | ||||
14888 | _ACEOF | ||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14889 | |
14890 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14891 | # For multiprocessing module, check that sem_open |
14892 | # actually works. For FreeBSD versions <= 7.2, | ||||
14893 | # the kernel module that provides POSIX semaphores | ||||
14894 | # isn't loaded by default, so an attempt to call | ||||
14895 | # sem_open results in a 'Signal 12' error. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
14897 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | ||||
14898 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | ||||
14899 | $as_echo_n "(cached) " >&6 | ||||
14900 | else | ||||
14901 | if test "$cross_compiling" = yes; then : | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14902 | ac_cv_posix_semaphores_enabled=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14903 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14905 | /* end confdefs.h. */ |
14906 | |||||
14907 | #include <unistd.h> | ||||
14908 | #include <fcntl.h> | ||||
14909 | #include <stdio.h> | ||||
14910 | #include <semaphore.h> | ||||
14911 | #include <sys/stat.h> | ||||
14912 | |||||
14913 | int main(void) { | ||||
14914 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | ||||
14915 | if (a == SEM_FAILED) { | ||||
14916 | perror("sem_open"); | ||||
14917 | return 1; | ||||
14918 | } | ||||
14919 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14920 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14921 | return 0; |
14922 | } | ||||
14923 | |||||
14924 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14925 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14926 | ac_cv_posix_semaphores_enabled=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14927 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14928 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14929 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14930 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14931 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14932 | fi |
14933 | |||||
14934 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14935 | fi |
14936 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
14938 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14939 | if test $ac_cv_posix_semaphores_enabled = no |
14940 | then | ||||
14941 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14942 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14943 | |
14944 | fi | ||||
14945 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14946 | # Multiprocessing check for broken sem_getvalue |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
14948 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | ||||
14949 | if ${ac_cv_broken_sem_getvalue+:} false; then : | ||||
14950 | $as_echo_n "(cached) " >&6 | ||||
14951 | else | ||||
14952 | if test "$cross_compiling" = yes; then : | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14953 | ac_cv_broken_sem_getvalue=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14954 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14956 | /* end confdefs.h. */ |
14957 | |||||
14958 | #include <unistd.h> | ||||
14959 | #include <fcntl.h> | ||||
14960 | #include <stdio.h> | ||||
14961 | #include <semaphore.h> | ||||
14962 | #include <sys/stat.h> | ||||
14963 | |||||
14964 | int main(void){ | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14965 | sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14966 | int count; |
14967 | int res; | ||||
14968 | if(a==SEM_FAILED){ | ||||
14969 | perror("sem_open"); | ||||
14970 | return 1; | ||||
14971 | |||||
14972 | } | ||||
14973 | res = sem_getvalue(a, &count); | ||||
14974 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14975 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14976 | return res==-1 ? 1 : 0; |
14977 | } | ||||
14978 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14979 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14980 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14981 | ac_cv_broken_sem_getvalue=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14982 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14983 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14984 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14985 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14986 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14987 | fi |
14988 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14989 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14990 | fi |
14991 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
14993 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14994 | if test $ac_cv_broken_sem_getvalue = yes |
14995 | then | ||||
14996 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 14997 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14998 | |
14999 | fi | ||||
15000 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15001 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> |
15002 | " | ||||
15003 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15004 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15005 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15006 | ac_have_decl=0 |
15007 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15008 | |
15009 | cat >>confdefs.h <<_ACEOF | ||||
15010 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | ||||
15011 | _ACEOF | ||||
15012 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | ||||
15013 | " | ||||
15014 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15015 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15016 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15017 | ac_have_decl=0 |
15018 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15019 | |
15020 | cat >>confdefs.h <<_ACEOF | ||||
15021 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | ||||
15022 | _ACEOF | ||||
15023 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | ||||
15024 | " | ||||
15025 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15026 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15027 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15028 | ac_have_decl=0 |
15029 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15030 | |
15031 | cat >>confdefs.h <<_ACEOF | ||||
15032 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | ||||
15033 | _ACEOF | ||||
15034 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | ||||
15035 | " | ||||
15036 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15037 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15038 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15039 | ac_have_decl=0 |
15040 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15041 | |
15042 | cat >>confdefs.h <<_ACEOF | ||||
15043 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | ||||
15044 | _ACEOF | ||||
15045 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | ||||
15046 | " | ||||
15047 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15048 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15049 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15050 | ac_have_decl=0 |
15051 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15052 | |
15053 | cat >>confdefs.h <<_ACEOF | ||||
15054 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | ||||
15055 | _ACEOF | ||||
15056 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | ||||
15057 | " | ||||
15058 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15059 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15060 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15061 | ac_have_decl=0 |
15062 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15063 | |
15064 | cat >>confdefs.h <<_ACEOF | ||||
15065 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | ||||
15066 | _ACEOF | ||||
15067 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | ||||
15068 | " | ||||
15069 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15070 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15071 | else |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15072 | ac_have_decl=0 |
15073 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15074 | |
15075 | cat >>confdefs.h <<_ACEOF | ||||
15076 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | ||||
15077 | _ACEOF | ||||
15078 | ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> | ||||
15079 | " | ||||
15080 | if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then : | ||||
Michael Felt | c5ae169 | 2017-12-19 13:58:49 +0100 | [diff] [blame] | 15081 | ac_have_decl=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15082 | else |
Michael Felt | c5ae169 | 2017-12-19 13:58:49 +0100 | [diff] [blame] | 15083 | ac_have_decl=0 |
15084 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15085 | |
15086 | cat >>confdefs.h <<_ACEOF | ||||
15087 | #define HAVE_DECL_RTLD_MEMBER $ac_have_decl | ||||
15088 | _ACEOF | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 15089 | |
15090 | |||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15091 | # determine what size digit to use for Python's longs |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
15093 | $as_echo_n "checking digit size for Python's longs... " >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15094 | # Check whether --enable-big-digits was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15095 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15096 | enableval=$enable_big_digits; case $enable_big_digits in |
15097 | yes) | ||||
15098 | enable_big_digits=30 ;; | ||||
15099 | no) | ||||
15100 | enable_big_digits=15 ;; | ||||
15101 | 15|30) | ||||
15102 | ;; | ||||
15103 | *) | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15104 | as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15105 | esac |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
15107 | $as_echo "$enable_big_digits" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15108 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15109 | cat >>confdefs.h <<_ACEOF |
15110 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | ||||
15111 | _ACEOF | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15112 | |
15113 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15114 | else |
15115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | ||||
15116 | $as_echo "no value specified" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15117 | fi |
15118 | |||||
15119 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15120 | # check for wchar.h |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15121 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
15122 | if test "x$ac_cv_header_wchar_h" = xyes; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | |
15124 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15125 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15126 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15127 | wchar_h="yes" |
15128 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15129 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15130 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15131 | |
15132 | fi | ||||
15133 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15134 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15135 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15136 | # determine wchar_t size |
15137 | if test "$wchar_h" = yes | ||||
15138 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15139 | # The cast to long int works around a bug in the HP C Compiler |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15140 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
15141 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
15142 | # This bug is HP SR number 8606223364. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
15144 | $as_echo_n "checking size of wchar_t... " >&6; } | ||||
15145 | if ${ac_cv_sizeof_wchar_t+:} false; then : | ||||
15146 | $as_echo_n "(cached) " >&6 | ||||
15147 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15148 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15149 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15150 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15151 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15152 | if test "$ac_cv_type_wchar_t" = yes; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15153 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
15154 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15155 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15156 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15157 | else |
15158 | ac_cv_sizeof_wchar_t=0 | ||||
15159 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15160 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15162 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
15164 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15165 | |
15166 | |||||
15167 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15168 | cat >>confdefs.h <<_ACEOF |
15169 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | ||||
15170 | _ACEOF | ||||
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15171 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15172 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15173 | fi |
15174 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
15176 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15177 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15179 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15180 | |
15181 | #include <tcl.h> | ||||
15182 | #if TCL_UTF_MAX != 6 | ||||
15183 | # error "NOT UCS4_TCL" | ||||
15184 | #endif | ||||
15185 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15186 | main () |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15187 | { |
15188 | |||||
15189 | ; | ||||
15190 | return 0; | ||||
15191 | } | ||||
15192 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15193 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15194 | |
15195 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15196 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15197 | |
15198 | have_ucs4_tcl=yes | ||||
15199 | |||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15200 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | ||||
15203 | $as_echo "$have_ucs4_tcl" >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15204 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15205 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15206 | if test "$wchar_h" = yes |
15207 | then | ||||
15208 | # check whether wchar_t is signed or not | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
15210 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | ||||
15211 | if ${ac_cv_wchar_t_signed+:} false; then : | ||||
15212 | $as_echo_n "(cached) " >&6 | ||||
15213 | else | ||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15214 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15215 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15216 | ac_cv_wchar_t_signed=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15217 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15219 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15220 | |
15221 | #include <wchar.h> | ||||
15222 | int main() | ||||
15223 | { | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15224 | /* Success: exit code 0 */ |
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 15225 | return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15226 | } |
15227 | |||||
15228 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15229 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15230 | ac_cv_wchar_t_signed=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15231 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15232 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15233 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15234 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15235 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15236 | fi |
15237 | |||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15238 | fi |
15239 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
15241 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15242 | fi |
15243 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 |
15245 | $as_echo_n "checking whether wchar_t is usable... " >&6; } | ||||
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 15246 | # wchar_t is only usable if it maps to an unsigned type |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 15247 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 15248 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 15249 | then |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15250 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15251 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15252 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15254 | $as_echo "yes" >&6; } | ||||
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 15255 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15257 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15258 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15259 | |
Jakub Kulík | 9032cf5 | 2021-04-30 15:21:42 +0200 | [diff] [blame] | 15260 | case $ac_sys_system/$ac_sys_release in |
15261 | SunOS/*) | ||||
15262 | if test -f /etc/os-release; then | ||||
15263 | OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release) | ||||
15264 | if test "x$OS_NAME" = "xOracle Solaris"; then | ||||
15265 | # bpo-43667: In Oracle Solaris, the internal form of wchar_t in | ||||
15266 | # non-Unicode locales is not Unicode and hence cannot be used directly. | ||||
15267 | # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html | ||||
15268 | |||||
15269 | $as_echo "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h | ||||
15270 | |||||
15271 | fi | ||||
15272 | fi | ||||
15273 | ;; | ||||
15274 | esac | ||||
15275 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15276 | # check for endianness |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
15278 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||||
15279 | if ${ac_cv_c_bigendian+:} false; then : | ||||
15280 | $as_echo_n "(cached) " >&6 | ||||
15281 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15282 | ac_cv_c_bigendian=unknown |
15283 | # See if we're dealing with a universal compiler. | ||||
15284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15285 | /* end confdefs.h. */ | ||||
15286 | #ifndef __APPLE_CC__ | ||||
15287 | not a universal capable compiler | ||||
15288 | #endif | ||||
15289 | typedef int dummy; | ||||
15290 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15291 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15292 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15293 | |
15294 | # Check for potential -arch flags. It is not universal unless | ||||
15295 | # there are at least two -arch flags with different values. | ||||
15296 | ac_arch= | ||||
15297 | ac_prev= | ||||
15298 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||||
15299 | if test -n "$ac_prev"; then | ||||
15300 | case $ac_word in | ||||
15301 | i?86 | x86_64 | ppc | ppc64) | ||||
15302 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||||
15303 | ac_arch=$ac_word | ||||
15304 | else | ||||
15305 | ac_cv_c_bigendian=universal | ||||
15306 | break | ||||
15307 | fi | ||||
15308 | ;; | ||||
15309 | esac | ||||
15310 | ac_prev= | ||||
15311 | elif test "x$ac_word" = "x-arch"; then | ||||
15312 | ac_prev=arch | ||||
15313 | fi | ||||
15314 | done | ||||
15315 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15317 | if test $ac_cv_c_bigendian = unknown; then |
15318 | # See if sys/param.h defines the BYTE_ORDER macro. | ||||
15319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15320 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15321 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15322 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15324 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15325 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15326 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15327 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
15328 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||||
15329 | && LITTLE_ENDIAN) | ||||
15330 | bogus endian macros | ||||
15331 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15332 | |
15333 | ; | ||||
15334 | return 0; | ||||
15335 | } | ||||
15336 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15337 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15338 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15340 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15341 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15342 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15344 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15345 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15346 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15347 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15348 | not big endian |
15349 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15350 | |
15351 | ; | ||||
15352 | return 0; | ||||
15353 | } | ||||
15354 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15355 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15356 | ac_cv_c_bigendian=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15357 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15358 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15359 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15361 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15363 | fi |
15364 | if test $ac_cv_c_bigendian = unknown; then | ||||
15365 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||||
15366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15367 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15368 | #include <limits.h> |
15369 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15370 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15371 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15372 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15373 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
15374 | bogus endian macros | ||||
15375 | #endif | ||||
15376 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15377 | ; |
15378 | return 0; | ||||
15379 | } | ||||
15380 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15381 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15382 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
15383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15384 | /* end confdefs.h. */ | ||||
15385 | #include <limits.h> | ||||
15386 | |||||
15387 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15388 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15389 | { |
15390 | #ifndef _BIG_ENDIAN | ||||
15391 | not big endian | ||||
15392 | #endif | ||||
15393 | |||||
15394 | ; | ||||
15395 | return 0; | ||||
15396 | } | ||||
15397 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15398 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15399 | ac_cv_c_bigendian=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15400 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15401 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15402 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15404 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15406 | fi |
15407 | if test $ac_cv_c_bigendian = unknown; then | ||||
15408 | # Compile a test program. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15409 | if test "$cross_compiling" = yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15410 | # Try to guess by grepping values from an object file. |
15411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15412 | /* end confdefs.h. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15413 | short int ascii_mm[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15414 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15415 | short int ascii_ii[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15416 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
15417 | int use_ascii (int i) { | ||||
15418 | return ascii_mm[i] + ascii_ii[i]; | ||||
15419 | } | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15420 | short int ebcdic_ii[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15421 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15422 | short int ebcdic_mm[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15423 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
15424 | int use_ebcdic (int i) { | ||||
15425 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||||
15426 | } | ||||
15427 | extern int foo; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15428 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15429 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15430 | main () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15431 | { |
15432 | return use_ascii (foo) == use_ebcdic (foo); | ||||
15433 | ; | ||||
15434 | return 0; | ||||
15435 | } | ||||
15436 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15437 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15438 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
15439 | ac_cv_c_bigendian=yes | ||||
15440 | fi | ||||
15441 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||||
15442 | if test "$ac_cv_c_bigendian" = unknown; then | ||||
15443 | ac_cv_c_bigendian=no | ||||
15444 | else | ||||
15445 | # finding both strings is unlikely to happen, but who knows? | ||||
15446 | ac_cv_c_bigendian=unknown | ||||
15447 | fi | ||||
15448 | fi | ||||
15449 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15451 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15453 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15454 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15455 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15456 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15457 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15458 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15459 | /* Are we little or big endian? From Harbison&Steele. */ |
15460 | union | ||||
15461 | { | ||||
15462 | long int l; | ||||
15463 | char c[sizeof (long int)]; | ||||
15464 | } u; | ||||
15465 | u.l = 1; | ||||
15466 | return u.c[sizeof (long int) - 1] == 1; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15467 | |
15468 | ; | ||||
15469 | return 0; | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15470 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15471 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15472 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15473 | ac_cv_c_bigendian=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15474 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15475 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15476 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15477 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15478 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15479 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15480 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15481 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15482 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
15484 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15485 | case $ac_cv_c_bigendian in #( |
15486 | yes) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15487 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15488 | ;; #( |
15489 | no) | ||||
15490 | ;; #( | ||||
15491 | universal) | ||||
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 15492 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15493 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 15494 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15495 | ;; #( |
15496 | *) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15497 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15498 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15499 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15500 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15501 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15502 | # ABI version string for Python extension modules. This appears between the |
15503 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated | ||||
15504 | # from the following attributes which affect the ABI of this Python build (in | ||||
15505 | # this order): | ||||
15506 | # | ||||
15507 | # * The Python implementation (always 'cpython-' for us) | ||||
15508 | # * The major and minor version numbers | ||||
15509 | # * --with-pydebug (adds a 'd') | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15510 | # |
15511 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, | ||||
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 15512 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
15513 | # libraries would be named 'foo.cpython-32dmu.so'. | ||||
Victor Stinner | 6c44fde | 2019-04-24 16:10:09 +0200 | [diff] [blame] | 15514 | # |
15515 | # In Python 3.2 and older, --with-wide-unicode added a 'u' flag. | ||||
15516 | # In Python 3.7 and older, --with-pymalloc added a 'm' flag. | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15517 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
15519 | $as_echo_n "checking ABIFLAGS... " >&6; } | ||||
15520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | ||||
15521 | $as_echo "$ABIFLAGS" >&6; } | ||||
15522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | ||||
15523 | $as_echo_n "checking SOABI... " >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 15524 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
15526 | $as_echo "$SOABI" >&6; } | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15527 | |
Victor Stinner | 6d13e5b | 2019-04-26 18:56:19 +0200 | [diff] [blame] | 15528 | # Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI |
15529 | if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then | ||||
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 15530 | # Similar to SOABI but remove "d" flag from ABIFLAGS |
15531 | |||||
15532 | ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | ||||
15533 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15534 | cat >>confdefs.h <<_ACEOF |
15535 | #define ALT_SOABI "${ALT_SOABI}" | ||||
15536 | _ACEOF | ||||
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 15537 | |
15538 | fi | ||||
15539 | |||||
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 15540 | |
Matti Picus | a44ce6c | 2020-12-20 04:56:57 +0200 | [diff] [blame] | 15541 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX} |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 15542 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
15544 | $as_echo_n "checking LDVERSION... " >&6; } | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 15545 | LDVERSION='$(VERSION)$(ABIFLAGS)' |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 |
15547 | $as_echo "$LDVERSION" >&6; } | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 15548 | |
E. M. Bray | c994c8f | 2019-05-24 17:33:47 +0200 | [diff] [blame] | 15549 | # On Android and Cygwin the shared libraries must be linked with libpython. |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 15550 | |
E. M. Bray | b1fc417 | 2019-05-24 18:39:39 +0200 | [diff] [blame] | 15551 | if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 15552 | LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" |
E. M. Bray | b1fc417 | 2019-05-24 18:39:39 +0200 | [diff] [blame] | 15553 | else |
15554 | LIBPYTHON='' | ||||
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 15555 | fi |
15556 | |||||
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 15557 | |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 15558 | |
15559 | BINLIBDEST='$(LIBDIR)/python$(VERSION)' | ||||
15560 | |||||
15561 | |||||
15562 | # Check for --with-platlibdir | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15563 | # /usr/$LIDIRNAME/python$VERSION |
15564 | |||||
15565 | PLATLIBDIR="lib" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5 |
15567 | $as_echo_n "checking for --with-platlibdir... " >&6; } | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15568 | |
15569 | # Check whether --with-platlibdir was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15570 | if test "${with_platlibdir+set}" = set; then : |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15571 | withval=$with_platlibdir; |
15572 | # ignore 3 options: | ||||
15573 | # --with-platlibdir | ||||
15574 | # --with-platlibdir= | ||||
15575 | # --without-platlibdir | ||||
15576 | if test -n "$withval" -a "$withval" != yes -a "$withval" != no | ||||
15577 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15579 | $as_echo "yes" >&6; } | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15580 | PLATLIBDIR="$withval" |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 15581 | BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)' |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 15582 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15584 | $as_echo "no" >&6; } | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15585 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15586 | else |
15587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
15588 | $as_echo "no" >&6; } | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15589 | fi |
15590 | |||||
15591 | |||||
15592 | |||||
15593 | |||||
15594 | if test x$PLATFORM_TRIPLET = x; then | ||||
15595 | LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}" | ||||
15596 | else | ||||
15597 | LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | ||||
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 15598 | fi |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 15599 | |
15600 | |||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15601 | # Check for --with-wheel-pkg-dir=PATH |
15602 | |||||
15603 | WHEEL_PKG_DIR="" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5 |
15605 | $as_echo_n "checking for --with-wheel-pkg-dir... " >&6; } | ||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15606 | |
15607 | # Check whether --with-wheel-pkg-dir was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15608 | if test "${with_wheel_pkg_dir+set}" = set; then : |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15609 | withval=$with_wheel_pkg_dir; |
15610 | if test -n "$withval"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15612 | $as_echo "yes" >&6; } | ||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15613 | WHEEL_PKG_DIR="$withval" |
15614 | else | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15616 | $as_echo "no" >&6; } | ||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15617 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15618 | else |
15619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
15620 | $as_echo "no" >&6; } | ||||
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 15621 | fi |
15622 | |||||
15623 | |||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15624 | # Check whether right shifting a negative integer extends the sign bit |
15625 | # or fills with zeros (like the Cray J90, according to Tim Peters). | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
15627 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | ||||
15628 | if ${ac_cv_rshift_extends_sign+:} false; then : | ||||
15629 | $as_echo_n "(cached) " >&6 | ||||
15630 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15631 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15632 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15633 | ac_cv_rshift_extends_sign=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15634 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15636 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15637 | |
15638 | int main() | ||||
15639 | { | ||||
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 15640 | return (((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15641 | } |
15642 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15643 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15644 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15645 | ac_cv_rshift_extends_sign=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15646 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15647 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15648 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15649 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15650 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15651 | fi |
15652 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15653 | fi |
15654 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
15656 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15657 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15658 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15659 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15660 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15661 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15662 | fi |
15663 | |||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15664 | # check for getc_unlocked and related locking functions |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
15666 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | ||||
15667 | if ${ac_cv_have_getc_unlocked+:} false; then : | ||||
15668 | $as_echo_n "(cached) " >&6 | ||||
15669 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15670 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15672 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15673 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15674 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15675 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15676 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15677 | |
15678 | FILE *f = fopen("/dev/null", "r"); | ||||
15679 | flockfile(f); | ||||
15680 | getc_unlocked(f); | ||||
15681 | funlockfile(f); | ||||
15682 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15683 | ; |
15684 | return 0; | ||||
15685 | } | ||||
15686 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15687 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15688 | ac_cv_have_getc_unlocked=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15689 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15690 | ac_cv_have_getc_unlocked=no |
15691 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15692 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15693 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15694 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15695 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
15697 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15698 | if test "$ac_cv_have_getc_unlocked" = yes |
15699 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15700 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15701 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15702 | |
15703 | fi | ||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15704 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15705 | |
15706 | # Check whether --with-readline was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15707 | if test "${with_readline+set}" = set; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15708 | withval=$with_readline; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15709 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15710 | with_readline=yes |
15711 | fi | ||||
15712 | |||||
15713 | |||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15714 | # check where readline lives |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15715 | py_cv_lib_readline=no |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15716 | # save the value of LIBS so we don't actually link Python with readline |
15717 | LIBS_no_readline=$LIBS | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15718 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15719 | if test "$with_readline" != no; then |
15720 | case "$with_readline" in | ||||
15721 | editline|edit) | ||||
15722 | LIBREADLINE=edit | ||||
15723 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15724 | $as_echo "#define WITH_EDITLINE 1" >>confdefs.h |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15725 | |
15726 | ;; | ||||
15727 | yes|readline) | ||||
15728 | LIBREADLINE=readline | ||||
15729 | ;; | ||||
15730 | *) | ||||
15731 | as_fn_error $? "proper usage is --with(out)-readline[=editline]" "$LINENO" 5 | ||||
15732 | ;; | ||||
15733 | esac | ||||
15734 | |||||
15735 | # On some systems we need to link readline to a termcap compatible | ||||
15736 | # library. NOTE: Keep the precedence of listed libraries synchronised | ||||
15737 | # with setup.py. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
15739 | $as_echo_n "checking how to link readline libs... " >&6; } | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15740 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
15741 | if test -z "$py_libtermcap"; then | ||||
15742 | READLINE_LIBS="-l$LIBREADLINE" | ||||
15743 | else | ||||
15744 | READLINE_LIBS="-l$LIBREADLINE -l$py_libtermcap" | ||||
15745 | fi | ||||
15746 | LIBS="$READLINE_LIBS $LIBS_no_readline" | ||||
15747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15748 | /* end confdefs.h. */ |
15749 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15750 | /* Override any GCC internal prototype to avoid an error. |
15751 | Use char because int might match the return type of a GCC | ||||
15752 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15753 | #ifdef __cplusplus |
15754 | extern "C" | ||||
15755 | #endif | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15756 | char readline (); |
15757 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15758 | main () |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15759 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15760 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15761 | ; |
15762 | return 0; | ||||
15763 | } | ||||
15764 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15765 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15766 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15767 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15768 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15769 | conftest$ac_exeext conftest.$ac_ext |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15770 | if test $py_cv_lib_readline = yes; then |
15771 | break | ||||
15772 | fi | ||||
15773 | done | ||||
15774 | |||||
15775 | # Uncomment this line if you want to use READLINE_LIBS in Makefile or scripts | ||||
15776 | #AC_SUBST([READLINE_LIBS]) | ||||
15777 | if test $py_cv_lib_readline = no; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
15779 | $as_echo "none" >&6; } | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15780 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
15782 | $as_echo "$READLINE_LIBS" >&6; } | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15783 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15784 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15785 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15786 | fi |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15787 | fi |
15788 | |||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15789 | if test "$py_cv_lib_readline" = yes; then |
15790 | # check for readline 2.2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15791 | ac_fn_c_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" " |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15792 | #include <stdio.h> /* Must be first for Gnu Readline */ |
15793 | #ifdef WITH_EDITLINE | ||||
15794 | # include <editline/readline.h> | ||||
15795 | #else | ||||
15796 | # include <readline/readline.h> | ||||
15797 | #endif | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15798 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15799 | " |
15800 | if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes; then : | ||||
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15801 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15802 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15803 | |
15804 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15805 | |
15806 | ac_fn_c_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" " | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15807 | #include <stdio.h> /* Must be first for Gnu Readline */ |
15808 | #ifdef WITH_EDITLINE | ||||
15809 | # include <editline/readline.h> | ||||
15810 | #else | ||||
15811 | # include <readline/readline.h> | ||||
15812 | #endif | ||||
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15813 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15814 | " |
15815 | if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes; then : | ||||
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15816 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15817 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15818 | |
15819 | fi | ||||
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15820 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15821 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15822 | # check for readline 4.0 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15823 | as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_pre_input_hook" | $as_tr_sh` |
15824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5 | ||||
15825 | $as_echo_n "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; } | ||||
15826 | if eval \${$as_ac_Lib+:} false; then : | ||||
15827 | $as_echo_n "(cached) " >&6 | ||||
15828 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15829 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15830 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15832 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15834 | /* Override any GCC internal prototype to avoid an error. |
15835 | Use char because int might match the return type of a GCC | ||||
15836 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15837 | #ifdef __cplusplus |
15838 | extern "C" | ||||
15839 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15840 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15841 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15842 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15843 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15844 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15845 | ; |
15846 | return 0; | ||||
15847 | } | ||||
15848 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15849 | if ac_fn_c_try_link "$LINENO"; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15850 | eval "$as_ac_Lib=yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15851 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15852 | eval "$as_ac_Lib=no" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15853 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15854 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15855 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15856 | LIBS=$ac_check_lib_save_LIBS |
15857 | fi | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15858 | eval ac_res=\$$as_ac_Lib |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15860 | $as_echo "$ac_res" >&6; } | ||||
15861 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15862 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15863 | $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15864 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15865 | fi |
15866 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15867 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15868 | # also in 4.0 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15869 | as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_completion_display_matches_hook" | $as_tr_sh` |
15870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5 | ||||
15871 | $as_echo_n "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; } | ||||
15872 | if eval \${$as_ac_Lib+:} false; then : | ||||
15873 | $as_echo_n "(cached) " >&6 | ||||
15874 | else | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15875 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15876 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15878 | /* end confdefs.h. */ |
15879 | |||||
15880 | /* Override any GCC internal prototype to avoid an error. | ||||
15881 | Use char because int might match the return type of a GCC | ||||
15882 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15883 | #ifdef __cplusplus |
15884 | extern "C" | ||||
15885 | #endif | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15886 | char rl_completion_display_matches_hook (); |
15887 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15888 | main () |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15889 | { |
15890 | return rl_completion_display_matches_hook (); | ||||
15891 | ; | ||||
15892 | return 0; | ||||
15893 | } | ||||
15894 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15895 | if ac_fn_c_try_link "$LINENO"; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15896 | eval "$as_ac_Lib=yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15897 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15898 | eval "$as_ac_Lib=no" |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15899 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15900 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15901 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15902 | LIBS=$ac_check_lib_save_LIBS |
15903 | fi | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15904 | eval ac_res=\$$as_ac_Lib |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15906 | $as_echo "$ac_res" >&6; } | ||||
15907 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15908 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15909 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15910 | |
15911 | fi | ||||
15912 | |||||
15913 | |||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15914 | # also in 4.0, but not in editline |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15915 | as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_resize_terminal" | $as_tr_sh` |
15916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5 | ||||
15917 | $as_echo_n "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; } | ||||
15918 | if eval \${$as_ac_Lib+:} false; then : | ||||
15919 | $as_echo_n "(cached) " >&6 | ||||
15920 | else | ||||
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15921 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15922 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15924 | /* end confdefs.h. */ | ||||
15925 | |||||
15926 | /* Override any GCC internal prototype to avoid an error. | ||||
15927 | Use char because int might match the return type of a GCC | ||||
15928 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15929 | #ifdef __cplusplus |
15930 | extern "C" | ||||
15931 | #endif | ||||
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15932 | char rl_resize_terminal (); |
15933 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15934 | main () |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15935 | { |
15936 | return rl_resize_terminal (); | ||||
15937 | ; | ||||
15938 | return 0; | ||||
15939 | } | ||||
15940 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15941 | if ac_fn_c_try_link "$LINENO"; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15942 | eval "$as_ac_Lib=yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15943 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15944 | eval "$as_ac_Lib=no" |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15945 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15946 | rm -f core conftest.err conftest.$ac_objext \ |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15947 | conftest$ac_exeext conftest.$ac_ext |
15948 | LIBS=$ac_check_lib_save_LIBS | ||||
15949 | fi | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15950 | eval ac_res=\$$as_ac_Lib |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15952 | $as_echo "$ac_res" >&6; } | ||||
15953 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | ||||
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15954 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15955 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15956 | |
15957 | fi | ||||
15958 | |||||
15959 | |||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15960 | # check for readline 4.2 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15961 | as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_completion_matches" | $as_tr_sh` |
15962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5 | ||||
15963 | $as_echo_n "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; } | ||||
15964 | if eval \${$as_ac_Lib+:} false; then : | ||||
15965 | $as_echo_n "(cached) " >&6 | ||||
15966 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15967 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15968 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15970 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15971 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15972 | /* Override any GCC internal prototype to avoid an error. |
15973 | Use char because int might match the return type of a GCC | ||||
15974 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15975 | #ifdef __cplusplus |
15976 | extern "C" | ||||
15977 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15978 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15979 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15980 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15981 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15982 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15983 | ; |
15984 | return 0; | ||||
15985 | } | ||||
15986 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15987 | if ac_fn_c_try_link "$LINENO"; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15988 | eval "$as_ac_Lib=yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15989 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15990 | eval "$as_ac_Lib=no" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15991 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15992 | rm -f core conftest.err conftest.$ac_objext \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15993 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15994 | LIBS=$ac_check_lib_save_LIBS |
15995 | fi | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 15996 | eval ac_res=\$$as_ac_Lib |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15998 | $as_echo "$ac_res" >&6; } | ||||
15999 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16000 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16001 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16002 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16003 | fi |
16004 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16005 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 16006 | # also in readline 4.2 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16007 | ac_fn_c_check_decl "$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" " |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 16008 | #include <stdio.h> /* Must be first for Gnu Readline */ |
16009 | #ifdef WITH_EDITLINE | ||||
16010 | # include <editline/readline.h> | ||||
16011 | #else | ||||
16012 | # include <readline/readline.h> | ||||
16013 | #endif | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16014 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16015 | " |
16016 | if test "x$ac_cv_have_decl_rl_catch_signals" = xyes; then : | ||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16017 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16018 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16019 | |
16020 | fi | ||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16021 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16022 | |
16023 | as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_append_history" | $as_tr_sh` | ||||
16024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5 | ||||
16025 | $as_echo_n "checking for append_history in -l$LIBREADLINE... " >&6; } | ||||
16026 | if eval \${$as_ac_Lib+:} false; then : | ||||
16027 | $as_echo_n "(cached) " >&6 | ||||
16028 | else | ||||
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 16029 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 16030 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 16031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16032 | /* end confdefs.h. */ | ||||
16033 | |||||
16034 | /* Override any GCC internal prototype to avoid an error. | ||||
16035 | Use char because int might match the return type of a GCC | ||||
16036 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16037 | #ifdef __cplusplus |
16038 | extern "C" | ||||
16039 | #endif | ||||
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 16040 | char append_history (); |
16041 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16042 | main () |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 16043 | { |
16044 | return append_history (); | ||||
16045 | ; | ||||
16046 | return 0; | ||||
16047 | } | ||||
16048 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16049 | if ac_fn_c_try_link "$LINENO"; then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 16050 | eval "$as_ac_Lib=yes" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16051 | else |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 16052 | eval "$as_ac_Lib=no" |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 16053 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16054 | rm -f core conftest.err conftest.$ac_objext \ |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 16055 | conftest$ac_exeext conftest.$ac_ext |
16056 | LIBS=$ac_check_lib_save_LIBS | ||||
16057 | fi | ||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 16058 | eval ac_res=\$$as_ac_Lib |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
16060 | $as_echo "$ac_res" >&6; } | ||||
16061 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | ||||
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 16062 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16063 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 16064 | |
16065 | fi | ||||
16066 | |||||
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 16067 | fi |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 16068 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 16069 | # End of readline checks: restore LIBS |
16070 | LIBS=$LIBS_no_readline | ||||
16071 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
16073 | $as_echo_n "checking for broken nice()... " >&6; } | ||||
16074 | if ${ac_cv_broken_nice+:} false; then : | ||||
16075 | $as_echo_n "(cached) " >&6 | ||||
16076 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16077 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16078 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16079 | ac_cv_broken_nice=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16080 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16082 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16083 | |
Benjamin Peterson | b84df2d | 2019-02-25 21:37:59 -0800 | [diff] [blame] | 16084 | #include <stdlib.h> |
16085 | #include <unistd.h> | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16086 | int main() |
16087 | { | ||||
16088 | int val1 = nice(1); | ||||
16089 | if (val1 != -1 && val1 == nice(2)) | ||||
16090 | exit(0); | ||||
16091 | exit(1); | ||||
16092 | } | ||||
16093 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16094 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16095 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16096 | ac_cv_broken_nice=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16097 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16098 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16099 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16100 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16101 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16102 | fi |
16103 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16104 | fi |
16105 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
16107 | $as_echo "$ac_cv_broken_nice" >&6; } | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16108 | if test "$ac_cv_broken_nice" = yes |
16109 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16110 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16111 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16112 | |
16113 | fi | ||||
16114 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
16116 | $as_echo_n "checking for broken poll()... " >&6; } | ||||
16117 | if ${ac_cv_broken_poll+:} false; then : | ||||
16118 | $as_echo_n "(cached) " >&6 | ||||
16119 | else | ||||
16120 | if test "$cross_compiling" = yes; then : | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16121 | ac_cv_broken_poll=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16122 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16124 | /* end confdefs.h. */ |
16125 | |||||
16126 | #include <poll.h> | ||||
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 16127 | #include <unistd.h> |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16128 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16129 | int main() |
16130 | { | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16131 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16132 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16133 | |
16134 | close (42); | ||||
16135 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16136 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16137 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16138 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16139 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16140 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16141 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16142 | return 1; |
16143 | } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16144 | |
16145 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16146 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16147 | ac_cv_broken_poll=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16148 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16149 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16150 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16151 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16152 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16153 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16154 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16155 | fi |
16156 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
16158 | $as_echo "$ac_cv_broken_poll" >&6; } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16159 | if test "$ac_cv_broken_poll" = yes |
16160 | then | ||||
16161 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16162 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16163 | |
16164 | fi | ||||
16165 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 16166 | # check tzset(3) exists and works like we expect it to |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
16168 | $as_echo_n "checking for working tzset()... " >&6; } | ||||
16169 | if ${ac_cv_working_tzset+:} false; then : | ||||
16170 | $as_echo_n "(cached) " >&6 | ||||
16171 | else | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16172 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16173 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16174 | ac_cv_working_tzset=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16175 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16177 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16178 | |
16179 | #include <stdlib.h> | ||||
16180 | #include <time.h> | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16181 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16182 | |
16183 | #if HAVE_TZNAME | ||||
16184 | extern char *tzname[]; | ||||
16185 | #endif | ||||
16186 | |||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16187 | int main() |
16188 | { | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16189 | /* Note that we need to ensure that not only does tzset(3) |
16190 | do 'something' with localtime, but it works as documented | ||||
16191 | in the library reference and as expected by the test suite. | ||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 16192 | This includes making sure that tzname is set properly if |
16193 | tm->tm_zone does not exist since it is the alternative way | ||||
16194 | of getting timezone info. | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16195 | |
16196 | Red Hat 6.2 doesn't understand the southern hemisphere | ||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 16197 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16198 | */ |
16199 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 16200 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16201 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
16202 | |||||
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 16203 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16204 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16205 | if (localtime(&groundhogday)->tm_hour != 0) |
16206 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16207 | #if HAVE_TZNAME |
16208 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ | ||||
16209 | if (strcmp(tzname[0], "UTC") || | ||||
16210 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | ||||
16211 | exit(1); | ||||
16212 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16213 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 16214 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16215 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16216 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16217 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16218 | #if HAVE_TZNAME |
16219 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | ||||
16220 | exit(1); | ||||
16221 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16222 | |
16223 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | ||||
16224 | tzset(); | ||||
16225 | if (localtime(&groundhogday)->tm_hour != 11) | ||||
16226 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16227 | #if HAVE_TZNAME |
16228 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | ||||
16229 | exit(1); | ||||
16230 | #endif | ||||
16231 | |||||
16232 | #if HAVE_STRUCT_TM_TM_ZONE | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16233 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
16234 | exit(1); | ||||
16235 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | ||||
16236 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16237 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16238 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16239 | exit(0); |
16240 | } | ||||
16241 | |||||
16242 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16243 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16244 | ac_cv_working_tzset=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16245 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16246 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16247 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16248 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16249 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16250 | fi |
16251 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16252 | fi |
16253 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
16255 | $as_echo "$ac_cv_working_tzset" >&6; } | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16256 | if test "$ac_cv_working_tzset" = yes |
16257 | then | ||||
16258 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16259 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16260 | |
16261 | fi | ||||
16262 | |||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16263 | # Look for subsecond timestamps in struct stat |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
16265 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | ||||
16266 | if ${ac_cv_stat_tv_nsec+:} false; then : | ||||
16267 | $as_echo_n "(cached) " >&6 | ||||
16268 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16270 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16271 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16272 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16273 | main () |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16274 | { |
16275 | |||||
16276 | struct stat st; | ||||
16277 | st.st_mtim.tv_nsec = 1; | ||||
16278 | |||||
16279 | ; | ||||
16280 | return 0; | ||||
16281 | } | ||||
16282 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16283 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16284 | ac_cv_stat_tv_nsec=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16285 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16286 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16287 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16289 | fi |
16290 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
16292 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | ||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16293 | if test "$ac_cv_stat_tv_nsec" = yes |
16294 | then | ||||
16295 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16296 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16297 | |
16298 | fi | ||||
16299 | |||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16300 | # Look for BSD style subsecond timestamps in struct stat |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
16302 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | ||||
16303 | if ${ac_cv_stat_tv_nsec2+:} false; then : | ||||
16304 | $as_echo_n "(cached) " >&6 | ||||
16305 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16307 | /* end confdefs.h. */ |
16308 | #include <sys/stat.h> | ||||
16309 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16310 | main () |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16311 | { |
16312 | |||||
16313 | struct stat st; | ||||
16314 | st.st_mtimespec.tv_nsec = 1; | ||||
16315 | |||||
16316 | ; | ||||
16317 | return 0; | ||||
16318 | } | ||||
16319 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16320 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16321 | ac_cv_stat_tv_nsec2=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16322 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16323 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16324 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16326 | fi |
16327 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
16329 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | ||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16330 | if test "$ac_cv_stat_tv_nsec2" = yes |
16331 | then | ||||
16332 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16333 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16334 | |
16335 | fi | ||||
16336 | |||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16337 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 16338 | ac_save_cppflags="$CPPFLAGS" |
Xavier de Gaye | e13c320 | 2016-12-13 16:04:14 +0100 | [diff] [blame] | 16339 | if test "$cross_compiling" = no; then |
16340 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | ||||
16341 | fi | ||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16342 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16343 | for ac_header in curses.h ncurses.h |
16344 | do : | ||||
16345 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
16346 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
16347 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
16348 | cat >>confdefs.h <<_ACEOF | ||||
16349 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
16350 | _ACEOF | ||||
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 16351 | |
16352 | fi | ||||
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16353 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16354 | done |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16355 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16356 | |
16357 | # On Solaris, term.h requires curses.h | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16358 | for ac_header in term.h |
16359 | do : | ||||
16360 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | ||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16361 | #ifdef HAVE_CURSES_H |
16362 | #include <curses.h> | ||||
16363 | #endif | ||||
16364 | |||||
16365 | " | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16366 | if test "x$ac_cv_header_term_h" = xyes; then : |
16367 | cat >>confdefs.h <<_ACEOF | ||||
16368 | #define HAVE_TERM_H 1 | ||||
16369 | _ACEOF | ||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16370 | |
16371 | fi | ||||
16372 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16373 | done |
16374 | |||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16375 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16376 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
16378 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | ||||
16379 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | ||||
16380 | $as_echo_n "(cached) " >&6 | ||||
16381 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16383 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16384 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16385 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16386 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16387 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16388 | |
16389 | int rtn; | ||||
16390 | rtn = mvwdelch(0,0,0); | ||||
16391 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16392 | ; |
16393 | return 0; | ||||
16394 | } | ||||
16395 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16396 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16397 | ac_cv_mvwdelch_is_expression=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16398 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16399 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16400 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16402 | fi |
16403 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
16405 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16406 | |
16407 | if test "$ac_cv_mvwdelch_is_expression" = yes | ||||
16408 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16409 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16410 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16411 | |
16412 | fi | ||||
16413 | |||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16414 | # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque |
16415 | # structs since version 5.7. If the macro is defined as zero before including | ||||
16416 | # [n]curses.h, ncurses will expose fields of the structs regardless of the | ||||
16417 | # configuration. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
16419 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | ||||
16420 | if ${ac_cv_window_has_flags+:} false; then : | ||||
16421 | $as_echo_n "(cached) " >&6 | ||||
16422 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16424 | /* end confdefs.h. */ |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16425 | |
16426 | #define NCURSES_OPAQUE 0 | ||||
16427 | #include <curses.h> | ||||
16428 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16429 | int |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16430 | main () |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16431 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16432 | |
16433 | WINDOW *w; | ||||
16434 | w->_flags = 0; | ||||
16435 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16436 | ; |
16437 | return 0; | ||||
16438 | } | ||||
16439 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16440 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16441 | ac_cv_window_has_flags=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16442 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16443 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16444 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16446 | fi |
16447 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
16449 | $as_echo "$ac_cv_window_has_flags" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16450 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16451 | |
16452 | if test "$ac_cv_window_has_flags" = yes | ||||
16453 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16454 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16455 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16456 | |
16457 | fi | ||||
16458 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 |
16460 | $as_echo_n "checking for is_pad... " >&6; } | ||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16462 | /* end confdefs.h. */ | ||||
16463 | #include <curses.h> | ||||
16464 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16465 | main () |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16466 | { |
16467 | |||||
16468 | #ifndef is_pad | ||||
16469 | void *x=is_pad | ||||
16470 | #endif | ||||
16471 | |||||
16472 | ; | ||||
16473 | return 0; | ||||
16474 | } | ||||
16475 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16476 | if ac_fn_c_try_compile "$LINENO"; then : |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16477 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16478 | $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16479 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16481 | $as_echo "yes" >&6; } | ||||
16482 | else | ||||
16483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16484 | $as_echo "no" >&6; } | ||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16485 | |
16486 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16488 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
16490 | $as_echo_n "checking for is_term_resized... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16492 | /* end confdefs.h. */ |
16493 | #include <curses.h> | ||||
16494 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16495 | main () |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16496 | { |
16497 | void *x=is_term_resized | ||||
16498 | ; | ||||
16499 | return 0; | ||||
16500 | } | ||||
16501 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16502 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16503 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16504 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16505 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16507 | $as_echo "yes" >&6; } | ||||
16508 | else | ||||
16509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16510 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16511 | |
16512 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16514 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
16516 | $as_echo_n "checking for resize_term... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16518 | /* end confdefs.h. */ |
16519 | #include <curses.h> | ||||
16520 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16521 | main () |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16522 | { |
16523 | void *x=resize_term | ||||
16524 | ; | ||||
16525 | return 0; | ||||
16526 | } | ||||
16527 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16528 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16529 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16530 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16531 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16533 | $as_echo "yes" >&6; } | ||||
16534 | else | ||||
16535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16536 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16537 | |
16538 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16540 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
16542 | $as_echo_n "checking for resizeterm... " >&6; } | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16544 | /* end confdefs.h. */ |
16545 | #include <curses.h> | ||||
16546 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16547 | main () |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16548 | { |
16549 | void *x=resizeterm | ||||
16550 | ; | ||||
16551 | return 0; | ||||
16552 | } | ||||
16553 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16554 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16555 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16556 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16557 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16559 | $as_echo "yes" >&6; } | ||||
16560 | else | ||||
16561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16562 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16563 | |
16564 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16566 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 |
16568 | $as_echo_n "checking for immedok... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16570 | /* end confdefs.h. */ | ||||
16571 | #include <curses.h> | ||||
16572 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16573 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16574 | { |
16575 | |||||
16576 | #ifndef immedok | ||||
16577 | void *x=immedok | ||||
16578 | #endif | ||||
16579 | |||||
16580 | ; | ||||
16581 | return 0; | ||||
16582 | } | ||||
16583 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16584 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16585 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16586 | $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16587 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16589 | $as_echo "yes" >&6; } | ||||
16590 | else | ||||
16591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16592 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16593 | |
16594 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16596 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 |
16598 | $as_echo_n "checking for syncok... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16600 | /* end confdefs.h. */ | ||||
16601 | #include <curses.h> | ||||
16602 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16603 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16604 | { |
16605 | |||||
16606 | #ifndef syncok | ||||
16607 | void *x=syncok | ||||
16608 | #endif | ||||
16609 | |||||
16610 | ; | ||||
16611 | return 0; | ||||
16612 | } | ||||
16613 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16614 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16615 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16616 | $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16617 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16619 | $as_echo "yes" >&6; } | ||||
16620 | else | ||||
16621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16622 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16623 | |
16624 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16626 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 |
16628 | $as_echo_n "checking for wchgat... " >&6; } | ||||
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16630 | /* end confdefs.h. */ | ||||
16631 | #include <curses.h> | ||||
16632 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16633 | main () |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16634 | { |
16635 | |||||
16636 | #ifndef wchgat | ||||
16637 | void *x=wchgat | ||||
16638 | #endif | ||||
16639 | |||||
16640 | ; | ||||
16641 | return 0; | ||||
16642 | } | ||||
16643 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16644 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16645 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16646 | $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16647 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16649 | $as_echo "yes" >&6; } | ||||
16650 | else | ||||
16651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16652 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16653 | |
16654 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16656 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 |
16658 | $as_echo_n "checking for filter... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16660 | /* end confdefs.h. */ | ||||
16661 | #include <curses.h> | ||||
16662 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16663 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16664 | { |
16665 | |||||
16666 | #ifndef filter | ||||
16667 | void *x=filter | ||||
16668 | #endif | ||||
16669 | |||||
16670 | ; | ||||
16671 | return 0; | ||||
16672 | } | ||||
16673 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16674 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16675 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16676 | $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16677 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16679 | $as_echo "yes" >&6; } | ||||
16680 | else | ||||
16681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16682 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16683 | |
16684 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16686 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 |
16688 | $as_echo_n "checking for has_key... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16690 | /* end confdefs.h. */ | ||||
16691 | #include <curses.h> | ||||
16692 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16693 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16694 | { |
16695 | |||||
16696 | #ifndef has_key | ||||
16697 | void *x=has_key | ||||
16698 | #endif | ||||
16699 | |||||
16700 | ; | ||||
16701 | return 0; | ||||
16702 | } | ||||
16703 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16704 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16705 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16706 | $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16707 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16709 | $as_echo "yes" >&6; } | ||||
16710 | else | ||||
16711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16712 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16713 | |
16714 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16716 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 |
16718 | $as_echo_n "checking for typeahead... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16720 | /* end confdefs.h. */ | ||||
16721 | #include <curses.h> | ||||
16722 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16723 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16724 | { |
16725 | |||||
16726 | #ifndef typeahead | ||||
16727 | void *x=typeahead | ||||
16728 | #endif | ||||
16729 | |||||
16730 | ; | ||||
16731 | return 0; | ||||
16732 | } | ||||
16733 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16734 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16735 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16736 | $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16737 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16739 | $as_echo "yes" >&6; } | ||||
16740 | else | ||||
16741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16742 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16743 | |
16744 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16746 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 |
16748 | $as_echo_n "checking for use_env... " >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16750 | /* end confdefs.h. */ | ||||
16751 | #include <curses.h> | ||||
16752 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16753 | main () |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16754 | { |
16755 | |||||
16756 | #ifndef use_env | ||||
16757 | void *x=use_env | ||||
16758 | #endif | ||||
16759 | |||||
16760 | ; | ||||
16761 | return 0; | ||||
16762 | } | ||||
16763 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16764 | if ac_fn_c_try_compile "$LINENO"; then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16765 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16766 | $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16767 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16769 | $as_echo "yes" >&6; } | ||||
16770 | else | ||||
16771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16772 | $as_echo "no" >&6; } | ||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16773 | |
16774 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 16776 | # last curses configure check |
16777 | CPPFLAGS=$ac_save_cppflags | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16778 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
16780 | $as_echo "$as_me: checking for device files" >&6;} | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16781 | |
16782 | if test "x$cross_compiling" = xyes; then | ||||
16783 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
16785 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
16786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16787 | $as_echo "not set" >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16788 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
16789 | fi | ||||
16790 | if test "${ac_cv_file__dev_ptc+set}" != set; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
16792 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
16793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16794 | $as_echo "not set" >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16795 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
16796 | fi | ||||
16797 | fi | ||||
16798 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
16800 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
16801 | if ${ac_cv_file__dev_ptmx+:} false; then : | ||||
16802 | $as_echo_n "(cached) " >&6 | ||||
16803 | else | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16804 | test "$cross_compiling" = yes && |
16805 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16806 | if test -r "/dev/ptmx"; then | ||||
16807 | ac_cv_file__dev_ptmx=yes | ||||
16808 | else | ||||
16809 | ac_cv_file__dev_ptmx=no | ||||
16810 | fi | ||||
16811 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 |
16813 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | ||||
16814 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16815 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16816 | fi |
16817 | |||||
16818 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | ||||
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16819 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16820 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16821 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16822 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
16824 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
16825 | if ${ac_cv_file__dev_ptc+:} false; then : | ||||
16826 | $as_echo_n "(cached) " >&6 | ||||
16827 | else | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16828 | test "$cross_compiling" = yes && |
16829 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16830 | if test -r "/dev/ptc"; then | ||||
16831 | ac_cv_file__dev_ptc=yes | ||||
16832 | else | ||||
16833 | ac_cv_file__dev_ptc=no | ||||
16834 | fi | ||||
16835 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 |
16837 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | ||||
16838 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16839 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16840 | fi |
16841 | |||||
16842 | if test "x$ac_cv_file__dev_ptc" = xyes; then | ||||
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16843 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16844 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16845 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16846 | fi |
16847 | |||||
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 16848 | if test $ac_sys_system = Darwin |
16849 | then | ||||
16850 | LIBS="$LIBS -framework CoreFoundation" | ||||
16851 | fi | ||||
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 16852 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
16854 | $as_echo_n "checking for %zd printf() format support... " >&6; } | ||||
16855 | if ${ac_cv_have_size_t_format+:} false; then : | ||||
16856 | $as_echo_n "(cached) " >&6 | ||||
16857 | else | ||||
16858 | if test "$cross_compiling" = yes; then : | ||||
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16859 | ac_cv_have_size_t_format="cross -- assuming yes" |
16860 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16861 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16863 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16864 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16865 | #include <stdio.h> |
16866 | #include <stddef.h> | ||||
16867 | #include <string.h> | ||||
16868 | |||||
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16869 | #ifdef HAVE_SYS_TYPES_H |
16870 | #include <sys/types.h> | ||||
16871 | #endif | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16872 | |
16873 | #ifdef HAVE_SSIZE_T | ||||
16874 | typedef ssize_t Py_ssize_t; | ||||
16875 | #elif SIZEOF_VOID_P == SIZEOF_LONG | ||||
16876 | typedef long Py_ssize_t; | ||||
16877 | #else | ||||
16878 | typedef int Py_ssize_t; | ||||
16879 | #endif | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16880 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16881 | int main() |
16882 | { | ||||
16883 | char buffer[256]; | ||||
16884 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16885 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
16886 | return 1; | ||||
16887 | |||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16888 | if (strcmp(buffer, "123")) |
16889 | return 1; | ||||
16890 | |||||
16891 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | ||||
16892 | return 1; | ||||
16893 | |||||
16894 | if (strcmp(buffer, "-123")) | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16895 | return 1; |
16896 | |||||
16897 | return 0; | ||||
16898 | } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16899 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16900 | _ACEOF |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16901 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16902 | ac_cv_have_size_t_format=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16903 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16904 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16905 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16906 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16907 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16908 | fi |
16909 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16910 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
16912 | $as_echo "$ac_cv_have_size_t_format" >&6; } | ||||
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16913 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16914 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16915 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16916 | |
16917 | fi | ||||
16918 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16919 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16920 | #ifdef HAVE_SYS_TYPES_H |
16921 | #include <sys/types.h> | ||||
16922 | #endif | ||||
16923 | #ifdef HAVE_SYS_SOCKET_H | ||||
16924 | #include <sys/socket.h> | ||||
16925 | #endif | ||||
16926 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16927 | " |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16928 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16929 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16930 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16931 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16932 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16933 | |
16934 | fi | ||||
16935 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16936 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
16938 | $as_echo_n "checking for broken mbstowcs... " >&6; } | ||||
16939 | if ${ac_cv_broken_mbstowcs+:} false; then : | ||||
16940 | $as_echo_n "(cached) " >&6 | ||||
16941 | else | ||||
16942 | if test "$cross_compiling" = yes; then : | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16943 | ac_cv_broken_mbstowcs=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16944 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16946 | /* end confdefs.h. */ |
16947 | |||||
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16948 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16949 | #include<stdlib.h> |
16950 | int main() { | ||||
16951 | size_t len = -1; | ||||
16952 | const char *str = "text"; | ||||
16953 | len = mbstowcs(NULL, str, 0); | ||||
16954 | return (len != 4); | ||||
16955 | } | ||||
16956 | |||||
16957 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16958 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16959 | ac_cv_broken_mbstowcs=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16960 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16961 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16962 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16963 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16964 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16965 | fi |
16966 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16967 | fi |
16968 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
16970 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16971 | if test "$ac_cv_broken_mbstowcs" = yes |
16972 | then | ||||
16973 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16974 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16975 | |
16976 | fi | ||||
16977 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16978 | # Check for --with-computed-gotos |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
16980 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16981 | |
16982 | # Check whether --with-computed-gotos was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16983 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16984 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16985 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16986 | then |
16987 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16988 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16989 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16991 | $as_echo "yes" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16992 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16993 | if test "$withval" = no |
16994 | then | ||||
16995 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16996 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16997 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 16998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16999 | $as_echo "no" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17000 | fi |
17001 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17002 | else |
17003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | ||||
17004 | $as_echo "no value specified" >&6; } | ||||
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 17005 | fi |
17006 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17007 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
17009 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | ||||
17010 | if ${ac_cv_computed_gotos+:} false; then : | ||||
17011 | $as_echo_n "(cached) " >&6 | ||||
17012 | else | ||||
17013 | if test "$cross_compiling" = yes; then : | ||||
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 17014 | if test "${with_computed_gotos+set}" = set; then |
17015 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | ||||
17016 | else | ||||
17017 | ac_cv_computed_gotos=no | ||||
17018 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17019 | else |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 17020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17021 | /* end confdefs.h. */ | ||||
17022 | |||||
17023 | int main(int argc, char **argv) | ||||
17024 | { | ||||
17025 | static void *targets[1] = { &&LABEL1 }; | ||||
17026 | goto LABEL2; | ||||
17027 | LABEL1: | ||||
17028 | return 0; | ||||
17029 | LABEL2: | ||||
17030 | goto *targets[0]; | ||||
17031 | return 1; | ||||
17032 | } | ||||
17033 | |||||
17034 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17035 | if ac_fn_c_try_run "$LINENO"; then : |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 17036 | ac_cv_computed_gotos=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17037 | else |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 17038 | ac_cv_computed_gotos=no |
17039 | fi | ||||
17040 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
17041 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
17042 | fi | ||||
17043 | |||||
17044 | fi | ||||
17045 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 |
17047 | $as_echo "$ac_cv_computed_gotos" >&6; } | ||||
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 17048 | case "$ac_cv_computed_gotos" in yes*) |
17049 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17050 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 17051 | |
17052 | esac | ||||
17053 | |||||
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 17054 | case $ac_sys_system in |
17055 | AIX*) | ||||
17056 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17057 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 17058 | ;; |
17059 | esac | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17060 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17061 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 17062 | |
17063 | |||||
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 17064 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
17065 | do | ||||
17066 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | ||||
17067 | done | ||||
17068 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17069 | |
Ned Deily | 8d02f91 | 2020-06-25 10:46:44 -0400 | [diff] [blame] | 17070 | SRCDIRS="Parser Objects Python Modules Modules/_io Programs" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
17072 | $as_echo_n "checking for build directories... " >&6; } | ||||
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17073 | for dir in $SRCDIRS; do |
17074 | if test ! -d $dir; then | ||||
17075 | mkdir $dir | ||||
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 17076 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17077 | done |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
17079 | $as_echo "done" >&6; } | ||||
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 17080 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17081 | # Availability of -O2: |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 |
17083 | $as_echo_n "checking for -O2... " >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17084 | saved_cflags="$CFLAGS" |
17085 | CFLAGS="-O2" | ||||
17086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17087 | /* end confdefs.h. */ | ||||
17088 | |||||
17089 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17090 | main () |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17091 | { |
17092 | |||||
17093 | |||||
17094 | ; | ||||
17095 | return 0; | ||||
17096 | } | ||||
17097 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17098 | if ac_fn_c_try_compile "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17099 | have_O2=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17100 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17101 | have_O2=no |
17102 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | ||||
17105 | $as_echo "$have_O2" >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17106 | CFLAGS="$saved_cflags" |
17107 | |||||
17108 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | ||||
17109 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 |
17111 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17112 | saved_cflags="$CFLAGS" |
17113 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | ||||
17114 | if test "$have_O2" = no; then | ||||
17115 | CFLAGS="" | ||||
17116 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17117 | if test "$cross_compiling" = yes; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17118 | have_glibc_memmove_bug=undefined |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17119 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17121 | /* end confdefs.h. */ | ||||
17122 | |||||
17123 | #include <stdio.h> | ||||
17124 | #include <stdlib.h> | ||||
17125 | #include <string.h> | ||||
17126 | void foo(void *p, void *q) { memmove(p, q, 19); } | ||||
17127 | int main() { | ||||
17128 | char a[32] = "123456789000000000"; | ||||
17129 | foo(&a[9], a); | ||||
17130 | if (strcmp(a, "123456789123456789000000000") != 0) | ||||
17131 | return 1; | ||||
17132 | foo(a, &a[9]); | ||||
17133 | if (strcmp(a, "123456789000000000") != 0) | ||||
17134 | return 1; | ||||
17135 | return 0; | ||||
17136 | } | ||||
17137 | |||||
17138 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17139 | if ac_fn_c_try_run "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17140 | have_glibc_memmove_bug=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17141 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17142 | have_glibc_memmove_bug=yes |
17143 | fi | ||||
17144 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
17145 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
17146 | fi | ||||
17147 | |||||
17148 | CFLAGS="$saved_cflags" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 |
17150 | $as_echo "$have_glibc_memmove_bug" >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17151 | if test "$have_glibc_memmove_bug" = yes; then |
17152 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17153 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17154 | |
17155 | fi | ||||
17156 | |||||
17157 | if test "$have_gcc_asm_for_x87" = yes; then | ||||
17158 | # Some versions of gcc miscompile inline asm: | ||||
17159 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | ||||
17160 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | ||||
17161 | case $CC in | ||||
17162 | *gcc*) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 |
17164 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17165 | saved_cflags="$CFLAGS" |
17166 | CFLAGS="-O2" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17167 | if test "$cross_compiling" = yes; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17168 | have_ipa_pure_const_bug=undefined |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17169 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17171 | /* end confdefs.h. */ | ||||
17172 | |||||
17173 | __attribute__((noinline)) int | ||||
17174 | foo(int *p) { | ||||
17175 | int r; | ||||
17176 | asm ( "movl \$6, (%1)\n\t" | ||||
17177 | "xorl %0, %0\n\t" | ||||
17178 | : "=r" (r) : "r" (p) : "memory" | ||||
17179 | ); | ||||
17180 | return r; | ||||
17181 | } | ||||
17182 | int main() { | ||||
17183 | int p = 8; | ||||
17184 | if ((foo(&p) ? : p) != 6) | ||||
17185 | return 1; | ||||
17186 | return 0; | ||||
17187 | } | ||||
17188 | |||||
17189 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17190 | if ac_fn_c_try_run "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17191 | have_ipa_pure_const_bug=no |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17192 | else |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17193 | have_ipa_pure_const_bug=yes |
17194 | fi | ||||
17195 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
17196 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
17197 | fi | ||||
17198 | |||||
17199 | CFLAGS="$saved_cflags" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 |
17201 | $as_echo "$have_ipa_pure_const_bug" >&6; } | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17202 | if test "$have_ipa_pure_const_bug" = yes; then |
17203 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17204 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 17205 | |
17206 | fi | ||||
17207 | ;; | ||||
17208 | esac | ||||
17209 | fi | ||||
17210 | |||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17211 | # Check for stdatomic.h |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 |
17213 | $as_echo_n "checking for stdatomic.h... " >&6; } | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17215 | /* end confdefs.h. */ | ||||
17216 | |||||
17217 | |||||
17218 | #include <stdatomic.h> | ||||
Victor Stinner | 028f734 | 2019-10-22 21:53:50 +0200 | [diff] [blame] | 17219 | atomic_int int_var; |
17220 | atomic_uintptr_t uintptr_var; | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17221 | int main() { |
Victor Stinner | 028f734 | 2019-10-22 21:53:50 +0200 | [diff] [blame] | 17222 | atomic_store_explicit(&int_var, 5, memory_order_relaxed); |
17223 | atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); | ||||
17224 | int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17225 | return 0; |
17226 | } | ||||
17227 | |||||
17228 | |||||
17229 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17230 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17231 | have_stdatomic_h=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17232 | else |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17233 | have_stdatomic_h=no |
17234 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17235 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17236 | conftest$ac_exeext conftest.$ac_ext |
17237 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 |
17239 | $as_echo "$have_stdatomic_h" >&6; } | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17240 | |
17241 | if test "$have_stdatomic_h" = yes; then | ||||
17242 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17243 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17244 | |
17245 | fi | ||||
17246 | |||||
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 17247 | # Check for GCC >= 4.7 and clang __atomic builtin functions |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5 |
17249 | $as_echo_n "checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; } | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17251 | /* end confdefs.h. */ | ||||
17252 | |||||
17253 | |||||
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 17254 | int val; |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17255 | int main() { |
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 17256 | __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST); |
17257 | (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST); | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17258 | return 0; |
17259 | } | ||||
17260 | |||||
17261 | |||||
17262 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17263 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17264 | have_builtin_atomic=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17265 | else |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17266 | have_builtin_atomic=no |
17267 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17268 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17269 | conftest$ac_exeext conftest.$ac_ext |
17270 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 |
17272 | $as_echo "$have_builtin_atomic" >&6; } | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17273 | |
17274 | if test "$have_builtin_atomic" = yes; then | ||||
17275 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17276 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17277 | |
17278 | fi | ||||
17279 | |||||
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 17280 | # ensurepip option |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 |
17282 | $as_echo_n "checking for ensurepip... " >&6; } | ||||
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 17283 | |
17284 | # Check whether --with-ensurepip was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17285 | if test "${with_ensurepip+set}" = set; then : |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 17286 | withval=$with_ensurepip; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17287 | else |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 17288 | with_ensurepip=upgrade |
17289 | fi | ||||
17290 | |||||
17291 | case $with_ensurepip in #( | ||||
17292 | yes|upgrade) : | ||||
17293 | ENSUREPIP=upgrade ;; #( | ||||
17294 | install) : | ||||
17295 | ENSUREPIP=install ;; #( | ||||
17296 | no) : | ||||
17297 | ENSUREPIP=no ;; #( | ||||
17298 | *) : | ||||
17299 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | ||||
17300 | esac | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 |
17302 | $as_echo "$ENSUREPIP" >&6; } | ||||
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 17303 | |
17304 | |||||
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17305 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 |
17307 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | ||||
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17309 | /* end confdefs.h. */ | ||||
17310 | |||||
17311 | |||||
17312 | #include <dirent.h> | ||||
17313 | |||||
17314 | int main() { | ||||
17315 | struct dirent entry; | ||||
17316 | return entry.d_type == DT_UNKNOWN; | ||||
17317 | } | ||||
17318 | |||||
17319 | |||||
17320 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17321 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17322 | have_dirent_d_type=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17323 | else |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17324 | have_dirent_d_type=no |
17325 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17326 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17327 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 |
17329 | $as_echo "$have_dirent_d_type" >&6; } | ||||
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17330 | |
17331 | if test "$have_dirent_d_type" = yes; then | ||||
17332 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17333 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17334 | |
17335 | fi | ||||
17336 | |||||
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17337 | # check if the Linux getrandom() syscall is available |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 |
17339 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | ||||
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17341 | /* end confdefs.h. */ | ||||
17342 | |||||
17343 | |||||
Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 17344 | #include <unistd.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17345 | #include <sys/syscall.h> |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 17346 | #include <linux/random.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17347 | |
17348 | int main() { | ||||
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17349 | char buffer[1]; |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17350 | const size_t buflen = sizeof(buffer); |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 17351 | const int flags = GRND_NONBLOCK; |
17352 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | ||||
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17353 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17354 | return 0; |
17355 | } | ||||
17356 | |||||
17357 | |||||
17358 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17359 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17360 | have_getrandom_syscall=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17361 | else |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17362 | have_getrandom_syscall=no |
17363 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17364 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17365 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 |
17367 | $as_echo "$have_getrandom_syscall" >&6; } | ||||
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17368 | |
17369 | if test "$have_getrandom_syscall" = yes; then | ||||
17370 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17371 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17372 | |
17373 | fi | ||||
17374 | |||||
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17375 | # check if the getrandom() function is available |
17376 | # the test was written for the Solaris function of <sys/random.h> | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 |
17378 | $as_echo_n "checking for the getrandom() function... " >&6; } | ||||
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17380 | /* end confdefs.h. */ | ||||
17381 | |||||
17382 | |||||
17383 | #include <sys/random.h> | ||||
17384 | |||||
17385 | int main() { | ||||
17386 | char buffer[1]; | ||||
17387 | const size_t buflen = sizeof(buffer); | ||||
17388 | const int flags = 0; | ||||
17389 | /* ignore the result, Python checks for ENOSYS at runtime */ | ||||
17390 | (void)getrandom(buffer, buflen, flags); | ||||
17391 | return 0; | ||||
17392 | } | ||||
17393 | |||||
17394 | |||||
17395 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17396 | if ac_fn_c_try_link "$LINENO"; then : |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17397 | have_getrandom=yes |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17398 | else |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17399 | have_getrandom=no |
17400 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17401 | rm -f core conftest.err conftest.$ac_objext \ |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17402 | conftest$ac_exeext conftest.$ac_ext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 |
17404 | $as_echo "$have_getrandom" >&6; } | ||||
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17405 | |
17406 | if test "$have_getrandom" = yes; then | ||||
17407 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17408 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17409 | |
17410 | fi | ||||
17411 | |||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17412 | # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c |
17413 | # shm_* may only be available if linking against librt | ||||
17414 | save_LIBS="$LIBS" | ||||
17415 | save_includes_default="$ac_includes_default" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 |
17417 | $as_echo_n "checking for library containing shm_open... " >&6; } | ||||
17418 | if ${ac_cv_search_shm_open+:} false; then : | ||||
17419 | $as_echo_n "(cached) " >&6 | ||||
17420 | else | ||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17421 | ac_func_search_save_LIBS=$LIBS |
17422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17423 | /* end confdefs.h. */ | ||||
17424 | |||||
17425 | /* Override any GCC internal prototype to avoid an error. | ||||
17426 | Use char because int might match the return type of a GCC | ||||
17427 | builtin and then its argument prototype would still apply. */ | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17428 | #ifdef __cplusplus |
17429 | extern "C" | ||||
17430 | #endif | ||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17431 | char shm_open (); |
17432 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17433 | main () |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17434 | { |
17435 | return shm_open (); | ||||
17436 | ; | ||||
17437 | return 0; | ||||
17438 | } | ||||
17439 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17440 | for ac_lib in '' rt; do |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17441 | if test -z "$ac_lib"; then |
17442 | ac_res="none required" | ||||
17443 | else | ||||
17444 | ac_res=-l$ac_lib | ||||
17445 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
17446 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17447 | if ac_fn_c_try_link "$LINENO"; then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17448 | ac_cv_search_shm_open=$ac_res |
17449 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17450 | rm -f core conftest.err conftest.$ac_objext \ |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17451 | conftest$ac_exeext |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17452 | if ${ac_cv_search_shm_open+:} false; then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17453 | break |
17454 | fi | ||||
17455 | done | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17456 | if ${ac_cv_search_shm_open+:} false; then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17457 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17458 | else |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17459 | ac_cv_search_shm_open=no |
17460 | fi | ||||
17461 | rm conftest.$ac_ext | ||||
17462 | LIBS=$ac_func_search_save_LIBS | ||||
17463 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 |
17465 | $as_echo "$ac_cv_search_shm_open" >&6; } | ||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17466 | ac_res=$ac_cv_search_shm_open |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17467 | if test "$ac_res" != no; then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17468 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
17469 | |||||
17470 | fi | ||||
17471 | |||||
17472 | if test "$ac_cv_search_shm_open" = "-lrt"; then | ||||
17473 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17474 | $as_echo "#define SHM_NEEDS_LIBRT 1" >>confdefs.h |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17475 | |
17476 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17477 | for ac_header in sys/mman.h |
17478 | do : | ||||
17479 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" | ||||
17480 | if test "x$ac_cv_header_sys_mman_h" = xyes; then : | ||||
17481 | cat >>confdefs.h <<_ACEOF | ||||
17482 | #define HAVE_SYS_MMAN_H 1 | ||||
17483 | _ACEOF | ||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17484 | |
17485 | fi | ||||
17486 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17487 | done |
17488 | |||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17489 | # temporarily override ac_includes_default for AC_CHECK_FUNCS below |
17490 | ac_includes_default="\ | ||||
17491 | ${ac_includes_default} | ||||
17492 | #ifndef __cplusplus | ||||
17493 | # ifdef HAVE_SYS_MMAN_H | ||||
17494 | # include <sys/mman.h> | ||||
17495 | # endif | ||||
17496 | #endif | ||||
17497 | " | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17498 | for ac_func in shm_open shm_unlink |
17499 | do : | ||||
17500 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
17501 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
17502 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
17503 | cat >>confdefs.h <<_ACEOF | ||||
17504 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
17505 | _ACEOF | ||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17506 | |
17507 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17508 | done |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17509 | |
17510 | # we don't want to link with librt always, restore LIBS | ||||
17511 | LIBS="$save_LIBS" | ||||
17512 | ac_includes_default="$save_includes_default" | ||||
17513 | |||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17514 | # Check for usable OpenSSL |
17515 | |||||
17516 | found=false | ||||
17517 | |||||
17518 | # Check whether --with-openssl was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17519 | if test "${with_openssl+set}" = set; then : |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17520 | withval=$with_openssl; |
17521 | case "$withval" in | ||||
17522 | "" | y | ye | yes | n | no) | ||||
17523 | as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 | ||||
17524 | ;; | ||||
17525 | *) ssldirs="$withval" | ||||
17526 | ;; | ||||
17527 | esac | ||||
17528 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17529 | else |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17530 | |
17531 | # if pkg-config is installed and openssl has installed a .pc file, | ||||
17532 | # then use that information and don't search ssldirs | ||||
17533 | if test -n "$ac_tool_prefix"; then | ||||
17534 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||||
17535 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17537 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
17538 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : | ||||
17539 | $as_echo_n "(cached) " >&6 | ||||
17540 | else | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17541 | if test -n "$PKG_CONFIG"; then |
17542 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. | ||||
17543 | else | ||||
17544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
17545 | for as_dir in $PATH | ||||
17546 | do | ||||
17547 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17548 | test -z "$as_dir" && as_dir=. |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17549 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17550 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17551 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17553 | break 2 |
17554 | fi | ||||
17555 | done | ||||
17556 | done | ||||
17557 | IFS=$as_save_IFS | ||||
17558 | |||||
17559 | fi | ||||
17560 | fi | ||||
17561 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG | ||||
17562 | if test -n "$PKG_CONFIG"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
17564 | $as_echo "$PKG_CONFIG" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17565 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17567 | $as_echo "no" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17568 | fi |
17569 | |||||
17570 | |||||
17571 | fi | ||||
17572 | if test -z "$ac_cv_prog_PKG_CONFIG"; then | ||||
17573 | ac_ct_PKG_CONFIG=$PKG_CONFIG | ||||
17574 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||||
17575 | set dummy pkg-config; ac_word=$2 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17577 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
17578 | if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : | ||||
17579 | $as_echo_n "(cached) " >&6 | ||||
17580 | else | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17581 | if test -n "$ac_ct_PKG_CONFIG"; then |
17582 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. | ||||
17583 | else | ||||
17584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
17585 | for as_dir in $PATH | ||||
17586 | do | ||||
17587 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17588 | test -z "$as_dir" && as_dir=. |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17589 | for ac_exec_ext in '' $ac_executable_extensions; do |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17590 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17591 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17593 | break 2 |
17594 | fi | ||||
17595 | done | ||||
17596 | done | ||||
17597 | IFS=$as_save_IFS | ||||
17598 | |||||
17599 | fi | ||||
17600 | fi | ||||
17601 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG | ||||
17602 | if test -n "$ac_ct_PKG_CONFIG"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
17604 | $as_echo "$ac_ct_PKG_CONFIG" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17605 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17607 | $as_echo "no" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17608 | fi |
17609 | |||||
17610 | if test "x$ac_ct_PKG_CONFIG" = x; then | ||||
17611 | PKG_CONFIG="" | ||||
17612 | else | ||||
17613 | case $cross_compiling:$ac_tool_warned in | ||||
17614 | yes:) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
17616 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17617 | ac_tool_warned=yes ;; |
17618 | esac | ||||
17619 | PKG_CONFIG=$ac_ct_PKG_CONFIG | ||||
17620 | fi | ||||
17621 | else | ||||
17622 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" | ||||
17623 | fi | ||||
17624 | |||||
17625 | if test x"$PKG_CONFIG" != x""; then | ||||
17626 | OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` | ||||
17627 | if test $? = 0; then | ||||
17628 | OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` | ||||
17629 | OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` | ||||
17630 | found=true | ||||
17631 | fi | ||||
17632 | fi | ||||
17633 | |||||
17634 | # no such luck; use some default ssldirs | ||||
17635 | if ! $found; then | ||||
17636 | ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" | ||||
17637 | fi | ||||
17638 | |||||
17639 | |||||
17640 | fi | ||||
17641 | |||||
17642 | |||||
17643 | |||||
17644 | # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in | ||||
17645 | # an 'openssl' subdirectory | ||||
17646 | |||||
17647 | if ! $found; then | ||||
17648 | OPENSSL_INCLUDES= | ||||
17649 | for ssldir in $ssldirs; do | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 |
17651 | $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17652 | if test -f "$ssldir/include/openssl/ssl.h"; then |
17653 | OPENSSL_INCLUDES="-I$ssldir/include" | ||||
17654 | OPENSSL_LDFLAGS="-L$ssldir/lib" | ||||
17655 | OPENSSL_LIBS="-lssl -lcrypto" | ||||
17656 | found=true | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17658 | $as_echo "yes" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17659 | break |
17660 | else | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17662 | $as_echo "no" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17663 | fi |
17664 | done | ||||
17665 | |||||
17666 | # if the file wasn't found, well, go ahead and try the link anyway -- maybe | ||||
17667 | # it will just work! | ||||
17668 | fi | ||||
17669 | |||||
17670 | # try the preprocessor and linker with our new flags, | ||||
17671 | # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS | ||||
17672 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 |
17674 | $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17675 | echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ |
17676 | "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 | ||||
17677 | |||||
17678 | save_LIBS="$LIBS" | ||||
17679 | save_LDFLAGS="$LDFLAGS" | ||||
17680 | save_CPPFLAGS="$CPPFLAGS" | ||||
17681 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" | ||||
17682 | LIBS="$OPENSSL_LIBS $LIBS" | ||||
17683 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" | ||||
17684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17685 | /* end confdefs.h. */ | ||||
17686 | #include <openssl/ssl.h> | ||||
17687 | int | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17688 | main () |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17689 | { |
17690 | SSL_new(NULL) | ||||
17691 | ; | ||||
17692 | return 0; | ||||
17693 | } | ||||
17694 | _ACEOF | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17695 | if ac_fn_c_try_link "$LINENO"; then : |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17696 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17698 | $as_echo "yes" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17699 | have_openssl=yes |
17700 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17701 | else |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17702 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17704 | $as_echo "no" >&6; } | ||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17705 | have_openssl=no |
17706 | |||||
17707 | fi | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17708 | rm -f core conftest.err conftest.$ac_objext \ |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17709 | conftest$ac_exeext conftest.$ac_ext |
17710 | CPPFLAGS="$save_CPPFLAGS" | ||||
17711 | LDFLAGS="$save_LDFLAGS" | ||||
17712 | LIBS="$save_LIBS" | ||||
17713 | |||||
17714 | |||||
17715 | |||||
17716 | |||||
17717 | |||||
17718 | |||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17719 | # rpath to libssl and libcrypto |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5 |
17721 | $as_echo_n "checking for --with-openssl-rpath... " >&6; } | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17722 | |
17723 | # Check whether --with-openssl-rpath was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17724 | if test "${with_openssl_rpath+set}" = set; then : |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17725 | withval=$with_openssl_rpath; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17726 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17727 | with_openssl_rpath=no |
17728 | |||||
17729 | fi | ||||
17730 | |||||
17731 | case $with_openssl_rpath in #( | ||||
17732 | auto|yes) : | ||||
17733 | OPENSSL_RPATH=auto ;; #( | ||||
17734 | no) : | ||||
17735 | OPENSSL_RPATH= ;; #( | ||||
17736 | *) : | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17737 | if test -d "$with_openssl_rpath"; then : |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17738 | OPENSSL_RPATH="$with_openssl_rpath" |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17739 | else |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17740 | as_fn_error $? "--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5 |
17741 | fi | ||||
17742 | |||||
17743 | ;; | ||||
17744 | esac | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5 |
17746 | $as_echo "$OPENSSL_RPATH" >&6; } | ||||
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 17747 | |
17748 | |||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17749 | # ssl module default cipher suite string |
17750 | |||||
17751 | |||||
17752 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 |
17754 | $as_echo_n "checking for --with-ssl-default-suites... " >&6; } | ||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17755 | |
17756 | # Check whether --with-ssl-default-suites was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17757 | if test "${with_ssl_default_suites+set}" = set; then : |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17758 | withval=$with_ssl_default_suites; |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
17760 | $as_echo "$withval" >&6; } | ||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17761 | case "$withval" in |
17762 | python) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17763 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17764 | |
17765 | ;; | ||||
17766 | openssl) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17767 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17768 | |
17769 | ;; | ||||
17770 | *) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17771 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17772 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17773 | cat >>confdefs.h <<_ACEOF |
17774 | #define PY_SSL_DEFAULT_CIPHER_STRING "$withval" | ||||
17775 | _ACEOF | ||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17776 | |
17777 | ;; | ||||
17778 | esac | ||||
17779 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17780 | else |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17781 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5 |
17783 | $as_echo "python" >&6; } | ||||
17784 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h | ||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17785 | |
17786 | |||||
17787 | fi | ||||
17788 | |||||
17789 | |||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17790 | # builtin hash modules |
17791 | default_hashlib_hashes="md5,sha1,sha256,sha512,sha3,blake2" | ||||
17792 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17793 | $as_echo "#define PY_BUILTIN_HASHLIB_HASHES /**/" >>confdefs.h |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17794 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5 |
17796 | $as_echo_n "checking for --with-builtin-hashlib-hashes... " >&6; } | ||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17797 | |
17798 | # Check whether --with-builtin-hashlib-hashes was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17799 | if test "${with_builtin_hashlib_hashes+set}" = set; then : |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17800 | withval=$with_builtin_hashlib_hashes; |
17801 | case "$withval" in | ||||
17802 | yes) | ||||
17803 | withval=$default_hashlib_hashes | ||||
17804 | ;; | ||||
17805 | no) | ||||
17806 | withval="" | ||||
17807 | ;; | ||||
17808 | esac | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
17810 | $as_echo "$withval" >&6; } | ||||
17811 | cat >>confdefs.h <<_ACEOF | ||||
17812 | #define PY_BUILTIN_HASHLIB_HASHES "$withval" | ||||
17813 | _ACEOF | ||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17814 | |
17815 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17816 | else |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17817 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_hashlib_hashes" >&5 |
17819 | $as_echo "$default_hashlib_hashes" >&6; }; | ||||
17820 | cat >>confdefs.h <<_ACEOF | ||||
17821 | #define PY_BUILTIN_HASHLIB_HASHES "$default_hashlib_hashes" | ||||
17822 | _ACEOF | ||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17823 | |
17824 | |||||
17825 | fi | ||||
17826 | |||||
17827 | |||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17828 | # --with-experimental-isolated-subinterpreters |
17829 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-experimental-isolated-subinterpreters" >&5 |
17831 | $as_echo_n "checking for --with-experimental-isolated-subinterpreters... " >&6; } | ||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17832 | |
17833 | # Check whether --with-experimental-isolated-subinterpreters was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17834 | if test "${with_experimental_isolated_subinterpreters+set}" = set; then : |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17835 | withval=$with_experimental_isolated_subinterpreters; |
17836 | if test "$withval" != no | ||||
17837 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17839 | $as_echo "yes" >&6; }; | ||||
17840 | $as_echo "#define EXPERIMENTAL_ISOLATED_SUBINTERPRETERS 1" >>confdefs.h | ||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17841 | |
17842 | else | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17844 | $as_echo "no" >&6; }; | ||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17845 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17846 | else |
17847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17848 | $as_echo "no" >&6; } | ||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17849 | fi |
17850 | |||||
17851 | |||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17852 | # --with-static-libpython |
17853 | STATIC_LIBPYTHON=1 | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-static-libpython" >&5 |
17855 | $as_echo_n "checking for --with-static-libpython... " >&6; } | ||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17856 | |
17857 | # Check whether --with-static-libpython was given. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17858 | if test "${with_static_libpython+set}" = set; then : |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17859 | withval=$with_static_libpython; |
17860 | if test "$withval" = no | ||||
17861 | then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17863 | $as_echo "no" >&6; }; | ||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17864 | STATIC_LIBPYTHON=0 |
17865 | else | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17867 | $as_echo "yes" >&6; }; | ||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17868 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17869 | else |
17870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
17871 | $as_echo "yes" >&6; } | ||||
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17872 | fi |
17873 | |||||
17874 | LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)' | ||||
Ned Deily | 0608425 | 2021-03-01 02:04:02 -0500 | [diff] [blame] | 17875 | if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 17876 | LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS" |
17877 | if test "$STATIC_LIBPYTHON" = 1; then | ||||
17878 | LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" | ||||
17879 | fi | ||||
17880 | else | ||||
17881 | LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" | ||||
17882 | fi | ||||
17883 | |||||
17884 | |||||
17885 | |||||
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 17886 | # Check whether to disable test modules. Once set, setup.py will not build |
17887 | # test extension modules and "make install" will not install test suites. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5 |
17889 | $as_echo_n "checking for --disable-test-modules... " >&6; } | ||||
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 17890 | # Check whether --enable-test-modules was given. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17891 | if test "${enable_test_modules+set}" = set; then : |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 17892 | enableval=$enable_test_modules; |
17893 | fi | ||||
17894 | |||||
17895 | if test "$enable_test_modules" = no; then | ||||
17896 | TEST_MODULES=no | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17898 | $as_echo "yes" >&6; } | ||||
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 17899 | else |
17900 | TEST_MODULES=yes | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17902 | $as_echo "no" >&6; } | ||||
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 17903 | fi |
17904 | |||||
17905 | |||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17906 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17907 | # generate output files |
Victor Stinner | 0a8e572 | 2019-05-23 03:30:23 +0200 | [diff] [blame] | 17908 | ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17909 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17910 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
17911 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17912 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17913 | # This file is a shell script that caches the results of configure |
17914 | # tests run on this system so they can be shared between configure | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17915 | # scripts and configure runs, see configure's option --config-cache. |
17916 | # It is not useful on other systems. If it contains results you don't | ||||
17917 | # want to keep, you may remove or edit it. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17918 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17919 | # config.status only pays attention to the cache file if you give it |
17920 | # the --recheck option to rerun configure. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17921 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17922 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17923 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
17924 | # following values. | ||||
17925 | |||||
17926 | _ACEOF | ||||
17927 | |||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17928 | # The following way of writing the cache mishandles newlines in values, |
17929 | # but we know of no workaround that is simple, portable, and efficient. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17930 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17931 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17932 | # and sets the high bit in the cache file unless we assign to the vars. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17933 | ( |
17934 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||||
17935 | eval ac_val=\$$ac_var | ||||
17936 | case $ac_val in #( | ||||
17937 | *${as_nl}*) | ||||
17938 | case $ac_var in #( | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17939 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
17940 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17941 | esac |
17942 | case $ac_var in #( | ||||
17943 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17944 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
17945 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17946 | esac ;; |
17947 | esac | ||||
17948 | done | ||||
17949 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17950 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17951 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17952 | *${as_nl}ac_space=\ *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17953 | # `set' does not quote correctly, so add quotes: double-quote |
17954 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17955 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17956 | "s/'/'\\\\''/g; |
17957 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17958 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17959 | *) |
17960 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17961 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17962 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17963 | esac | |
17964 | sort | ||||
17965 | ) | | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17966 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17967 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17968 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17969 | :clear |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17970 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17971 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17972 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17973 | :end' >>confcache | ||||
17974 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||||
17975 | if test -w "$cache_file"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17976 | if test "x$cache_file" != "x/dev/null"; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17977 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17978 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17979 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17980 | cat confcache >"$cache_file" | ||||
17981 | else | ||||
17982 | case $cache_file in #( | ||||
17983 | */* | ?:*) | ||||
17984 | mv -f confcache "$cache_file"$$ && | ||||
17985 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||||
17986 | *) | ||||
17987 | mv -f confcache "$cache_file" ;; | ||||
17988 | esac | ||||
17989 | fi | ||||
17990 | fi | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17991 | else |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 17992 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17993 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17994 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17995 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17996 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17997 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17998 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17999 | # Let make expand exec_prefix. | ||||
18000 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18001 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18002 | DEFS=-DHAVE_CONFIG_H |
18003 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18004 | ac_libobjs= |
18005 | ac_ltlibobjs= | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18006 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18007 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18008 | # 1. Remove the extension, and $U if already installed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18009 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18010 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18011 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
18012 | # will be set to the directory where LIBOBJS objects are built. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18013 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
18014 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18015 | done |
18016 | LIBOBJS=$ac_libobjs | ||||
18017 | |||||
18018 | LTLIBOBJS=$ac_ltlibobjs | ||||
18019 | |||||
18020 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18021 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18022 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18023 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18024 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18025 | ac_clean_files_save=$ac_clean_files |
18026 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18027 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18028 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18029 | as_write_fail=0 |
18030 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18031 | #! $SHELL |
18032 | # Generated by $as_me. | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18033 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18034 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18035 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18037 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18038 | ac_cs_recheck=false |
18039 | ac_cs_silent=false | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18040 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18041 | SHELL=\${CONFIG_SHELL-$SHELL} |
18042 | export SHELL | ||||
18043 | _ASEOF | ||||
18044 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||||
18045 | ## -------------------- ## | ||||
18046 | ## M4sh Initialization. ## | ||||
18047 | ## -------------------- ## | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18048 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18049 | # Be more Bourne compatible |
18050 | DUALCASE=1; export DUALCASE # for MKS sh | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18051 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18052 | emulate sh |
18053 | NULLCMD=: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18054 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18055 | # is contrary to our usage. Disable this feature. |
18056 | alias -g '${1+"$@"}'='"$@"' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18057 | setopt NO_GLOB_SUBST |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18058 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18059 | case `(set -o) 2>/dev/null` in #( |
18060 | *posix*) : | ||||
18061 | set -o posix ;; #( | ||||
18062 | *) : | ||||
18063 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18064 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18065 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18066 | |
18067 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18068 | as_nl=' |
18069 | ' | ||||
18070 | export as_nl | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18071 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
18072 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||||
18073 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
18074 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
18075 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||||
18076 | # but without wasting forks for bash or zsh. | ||||
18077 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||||
18078 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
18079 | as_echo='print -r --' | ||||
18080 | as_echo_n='print -rn --' | ||||
18081 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
18082 | as_echo='printf %s\n' | ||||
18083 | as_echo_n='printf %s' | ||||
18084 | else | ||||
18085 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||||
18086 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||||
18087 | as_echo_n='/usr/ucb/echo -n' | ||||
18088 | else | ||||
18089 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||||
18090 | as_echo_n_body='eval | ||||
18091 | arg=$1; | ||||
18092 | case $arg in #( | ||||
18093 | *"$as_nl"*) | ||||
18094 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||||
18095 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||||
18096 | esac; | ||||
18097 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||||
18098 | ' | ||||
18099 | export as_echo_n_body | ||||
18100 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||||
18101 | fi | ||||
18102 | export as_echo_body | ||||
18103 | as_echo='sh -c $as_echo_body as_echo' | ||||
18104 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18105 | |
18106 | # The user is always right. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18107 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18108 | PATH_SEPARATOR=: |
18109 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||||
18110 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||||
18111 | PATH_SEPARATOR=';' | ||||
18112 | } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18113 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18114 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18115 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18116 | # IFS |
18117 | # We need space, tab and new line, in precisely that order. Quoting is | ||||
18118 | # there to prevent editors from complaining about space-tab. | ||||
18119 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||||
18120 | # splitting by setting IFS to empty value.) | ||||
18121 | IFS=" "" $as_nl" | ||||
18122 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18123 | # Find who we are. Look in the path if we contain no directory separator. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18124 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18125 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18126 | *[\\/]* ) as_myself=$0 ;; |
18127 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18128 | for as_dir in $PATH |
18129 | do | ||||
18130 | IFS=$as_save_IFS | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18131 | test -z "$as_dir" && as_dir=. |
18132 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18133 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18134 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18135 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18136 | ;; |
18137 | esac | ||||
18138 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||||
18139 | # in which case we are not to be found in the path. | ||||
18140 | if test "x$as_myself" = x; then | ||||
18141 | as_myself=$0 | ||||
18142 | fi | ||||
18143 | if test ! -f "$as_myself"; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18144 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18145 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18146 | fi |
18147 | |||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18148 | # Unset variables that we do not need and which cause bugs (e.g. in |
18149 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||||
18150 | # suppresses any "Segmentation fault" message there. '((' could | ||||
18151 | # trigger a bug in pdksh 5.2.14. | ||||
18152 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||||
18153 | do eval test x\${$as_var+set} = xset \ | ||||
18154 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||||
18155 | done | ||||
18156 | PS1='$ ' | ||||
18157 | PS2='> ' | ||||
18158 | PS4='+ ' | ||||
18159 | |||||
18160 | # NLS nuisances. | ||||
18161 | LC_ALL=C | ||||
18162 | export LC_ALL | ||||
18163 | LANGUAGE=C | ||||
18164 | export LANGUAGE | ||||
18165 | |||||
18166 | # CDPATH. | ||||
18167 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18168 | |
18169 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18170 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18171 | # ---------------------------------------- | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18172 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18173 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18174 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18175 | as_fn_error () |
18176 | { | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18177 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18178 | if test "$4"; then | ||||
18179 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18180 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18181 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18182 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18183 | as_fn_exit $as_status |
18184 | } # as_fn_error | ||||
18185 | |||||
18186 | |||||
18187 | # as_fn_set_status STATUS | ||||
18188 | # ----------------------- | ||||
18189 | # Set $? to STATUS, without forking. | ||||
18190 | as_fn_set_status () | ||||
18191 | { | ||||
18192 | return $1 | ||||
18193 | } # as_fn_set_status | ||||
18194 | |||||
18195 | # as_fn_exit STATUS | ||||
18196 | # ----------------- | ||||
18197 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||||
18198 | as_fn_exit () | ||||
18199 | { | ||||
18200 | set +e | ||||
18201 | as_fn_set_status $1 | ||||
18202 | exit $1 | ||||
18203 | } # as_fn_exit | ||||
18204 | |||||
18205 | # as_fn_unset VAR | ||||
18206 | # --------------- | ||||
18207 | # Portably unset VAR. | ||||
18208 | as_fn_unset () | ||||
18209 | { | ||||
18210 | { eval $1=; unset $1;} | ||||
18211 | } | ||||
18212 | as_unset=as_fn_unset | ||||
18213 | # as_fn_append VAR VALUE | ||||
18214 | # ---------------------- | ||||
18215 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||||
18216 | # advantage of any shell optimizations that allow amortized linear growth over | ||||
18217 | # repeated appends, instead of the typical quadratic growth present in naive | ||||
18218 | # implementations. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18219 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18220 | eval 'as_fn_append () |
18221 | { | ||||
18222 | eval $1+=\$2 | ||||
18223 | }' | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18224 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18225 | as_fn_append () |
18226 | { | ||||
18227 | eval $1=\$$1\$2 | ||||
18228 | } | ||||
18229 | fi # as_fn_append | ||||
18230 | |||||
18231 | # as_fn_arith ARG... | ||||
18232 | # ------------------ | ||||
18233 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||||
18234 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||||
18235 | # must be portable across $(()) and expr. | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18236 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18237 | eval 'as_fn_arith () |
18238 | { | ||||
18239 | as_val=$(( $* )) | ||||
18240 | }' | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18241 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18242 | as_fn_arith () |
18243 | { | ||||
18244 | as_val=`expr "$@" || test $? -eq 1` | ||||
18245 | } | ||||
18246 | fi # as_fn_arith | ||||
18247 | |||||
18248 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18249 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18250 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||||
18251 | as_expr=expr | ||||
18252 | else | ||||
18253 | as_expr=false | ||||
18254 | fi | ||||
18255 | |||||
18256 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||||
18257 | as_basename=basename | ||||
18258 | else | ||||
18259 | as_basename=false | ||||
18260 | fi | ||||
18261 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18262 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18263 | as_dirname=dirname | ||||
18264 | else | ||||
18265 | as_dirname=false | ||||
18266 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18267 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18268 | as_me=`$as_basename -- "$0" || |
18269 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||||
18270 | X"$0" : 'X\(//\)$' \| \ | ||||
18271 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18272 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18273 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18274 | s//\1/ | ||||
18275 | q | ||||
18276 | } | ||||
18277 | /^X\/\(\/\/\)$/{ | ||||
18278 | s//\1/ | ||||
18279 | q | ||||
18280 | } | ||||
18281 | /^X\/\(\/\).*/{ | ||||
18282 | s//\1/ | ||||
18283 | q | ||||
18284 | } | ||||
18285 | s/.*/./; q'` | ||||
18286 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18287 | # Avoid depending upon Character Ranges. |
18288 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||||
18289 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||||
18290 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||||
18291 | as_cr_digits='0123456789' | ||||
18292 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18293 | |
18294 | ECHO_C= ECHO_N= ECHO_T= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18295 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18296 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18297 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18298 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18299 | xy) ECHO_C='\c';; |
18300 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||||
18301 | ECHO_T=' ';; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18302 | esac;; |
18303 | *) | ||||
18304 | ECHO_N='-n';; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18305 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 18306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18307 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18308 | if test -d conf$$.dir; then |
18309 | rm -f conf$$.dir/conf$$.file | ||||
18310 | else | ||||
18311 | rm -f conf$$.dir | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18312 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18313 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18314 | if (echo >conf$$.file) 2>/dev/null; then |
18315 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||||
18316 | as_ln_s='ln -s' | ||||
18317 | # ... but there are two gotchas: | ||||
18318 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||||
18319 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18320 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18321 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18322 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18323 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18324 | as_ln_s=ln | ||||
18325 | else | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18326 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18327 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18328 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18329 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18330 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18331 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18332 | rmdir conf$$.dir 2>/dev/null | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18333 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18334 | |
18335 | # as_fn_mkdir_p | ||||
18336 | # ------------- | ||||
18337 | # Create "$as_dir" as a directory, including parents if necessary. | ||||
18338 | as_fn_mkdir_p () | ||||
18339 | { | ||||
18340 | |||||
18341 | case $as_dir in #( | ||||
18342 | -*) as_dir=./$as_dir;; | ||||
18343 | esac | ||||
18344 | test -d "$as_dir" || eval $as_mkdir_p || { | ||||
18345 | as_dirs= | ||||
18346 | while :; do | ||||
18347 | case $as_dir in #( | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18348 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18349 | *) as_qdir=$as_dir;; |
18350 | esac | ||||
18351 | as_dirs="'$as_qdir' $as_dirs" | ||||
18352 | as_dir=`$as_dirname -- "$as_dir" || | ||||
18353 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
18354 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||||
18355 | X"$as_dir" : 'X\(//\)$' \| \ | ||||
18356 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18357 | $as_echo X"$as_dir" | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18358 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18359 | s//\1/ | ||||
18360 | q | ||||
18361 | } | ||||
18362 | /^X\(\/\/\)[^/].*/{ | ||||
18363 | s//\1/ | ||||
18364 | q | ||||
18365 | } | ||||
18366 | /^X\(\/\/\)$/{ | ||||
18367 | s//\1/ | ||||
18368 | q | ||||
18369 | } | ||||
18370 | /^X\(\/\).*/{ | ||||
18371 | s//\1/ | ||||
18372 | q | ||||
18373 | } | ||||
18374 | s/.*/./; q'` | ||||
18375 | test -d "$as_dir" && break | ||||
18376 | done | ||||
18377 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18378 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18379 | |
18380 | |||||
18381 | } # as_fn_mkdir_p | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18382 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18383 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18384 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18385 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18386 | as_mkdir_p=false |
18387 | fi | ||||
18388 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18389 | |
18390 | # as_fn_executable_p FILE | ||||
18391 | # ----------------------- | ||||
18392 | # Test if FILE is an executable regular file. | ||||
18393 | as_fn_executable_p () | ||||
18394 | { | ||||
18395 | test -f "$1" && test -x "$1" | ||||
18396 | } # as_fn_executable_p | ||||
18397 | as_test_x='test -x' | ||||
18398 | as_executable_p=as_fn_executable_p | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18399 | |
18400 | # Sed expression to map a string onto a valid CPP name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18401 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18402 | |
18403 | # Sed expression to map a string onto a valid variable name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18404 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18405 | |
18406 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18407 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18408 | ## ----------------------------------- ## |
18409 | ## Main body of $CONFIG_STATUS script. ## | ||||
18410 | ## ----------------------------------- ## | ||||
18411 | _ASEOF | ||||
18412 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18413 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18414 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18415 | # Save the log message, to keep $0 and so on meaningful, and to | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18416 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18417 | # values after options handling. |
18418 | ac_log=" | ||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 18419 | This file was extended by python $as_me 3.10, which was |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18420 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18421 | |
18422 | CONFIG_FILES = $CONFIG_FILES | ||||
18423 | CONFIG_HEADERS = $CONFIG_HEADERS | ||||
18424 | CONFIG_LINKS = $CONFIG_LINKS | ||||
18425 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||||
18426 | $ $0 $@ | ||||
18427 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18428 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18429 | " | ||||
18430 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18431 | _ACEOF |
18432 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18433 | case $ac_config_files in *" |
18434 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||||
18435 | esac | ||||
18436 | |||||
18437 | case $ac_config_headers in *" | ||||
18438 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||||
18439 | esac | ||||
18440 | |||||
18441 | |||||
18442 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18443 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 18444 | config_files="$ac_config_files" |
18445 | config_headers="$ac_config_headers" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18446 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18447 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18448 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18449 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18450 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18451 | \`$as_me' instantiates files and other configuration actions |
18452 | from templates according to the current configuration. Unless the files | ||||
18453 | and actions are specified as TAGs, all are instantiated by default. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18454 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18455 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18456 | |
18457 | -h, --help print this help, then exit | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18458 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18459 | --config print configuration, then exit |
18460 | -q, --quiet, --silent | ||||
18461 | do not print progress messages | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18462 | -d, --debug don't remove temporary files |
18463 | --recheck update $as_me by reconfiguring in the same conditions | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18464 | --file=FILE[:TEMPLATE] |
18465 | instantiate the configuration file FILE | ||||
18466 | --header=FILE[:TEMPLATE] | ||||
18467 | instantiate the configuration header FILE | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18468 | |
18469 | Configuration files: | ||||
18470 | $config_files | ||||
18471 | |||||
18472 | Configuration headers: | ||||
18473 | $config_headers | ||||
18474 | |||||
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 18475 | Report bugs to <https://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 18476 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18477 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18478 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18479 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18480 | ac_cs_version="\\ |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 18481 | python config.status 3.10 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18482 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18483 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18484 | |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18485 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18486 | This config.status script is free software; the Free Software Foundation |
18487 | gives unlimited permission to copy, distribute and modify it." | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18488 | |
18489 | ac_pwd='$ac_pwd' | ||||
18490 | srcdir='$srcdir' | ||||
18491 | INSTALL='$INSTALL' | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 18492 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18493 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18494 | _ACEOF |
18495 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18496 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18497 | # The default lists apply if the user does not specify any file. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18498 | ac_need_defaults=: |
18499 | while test $# != 0 | ||||
18500 | do | ||||
18501 | case $1 in | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18502 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18503 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18504 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18505 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18506 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18507 | --*=) |
18508 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||||
18509 | ac_optarg= | ||||
18510 | ac_shift=: | ||||
18511 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18512 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18513 | ac_option=$1 |
18514 | ac_optarg=$2 | ||||
18515 | ac_shift=shift | ||||
18516 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18517 | esac |
18518 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18519 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18520 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18521 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18522 | ac_cs_recheck=: ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18523 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18524 | $as_echo "$ac_cs_version"; exit ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18525 | --config | --confi | --conf | --con | --co | --c ) |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18526 | $as_echo "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18527 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18528 | debug=: ;; |
18529 | --file | --fil | --fi | --f ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18530 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18531 | case $ac_optarg in |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18532 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18533 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18534 | esac |
18535 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18536 | ac_need_defaults=false;; |
18537 | --header | --heade | --head | --hea ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18538 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18539 | case $ac_optarg in |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18540 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18541 | esac |
18542 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18543 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18544 | --he | --h) |
18545 | # Conflict between --help and --header | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18546 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18547 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18548 | --help | --hel | -h ) |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18549 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18550 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18551 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||||
18552 | ac_cs_silent=: ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18553 | |
18554 | # This is an error. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18555 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18556 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18557 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18558 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18559 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18560 | |
18561 | esac | ||||
18562 | shift | ||||
18563 | done | ||||
18564 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18565 | ac_configure_extra_args= |
18566 | |||||
18567 | if $ac_cs_silent; then | ||||
18568 | exec 6>/dev/null | ||||
18569 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||||
18570 | fi | ||||
18571 | |||||
18572 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18573 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18574 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18575 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18576 | shift |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18577 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18578 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18579 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18580 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18581 | fi |
18582 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18583 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18584 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18585 | exec 5>>config.log |
18586 | { | ||||
18587 | echo | ||||
18588 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||||
18589 | ## Running $as_me. ## | ||||
18590 | _ASBOX | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18591 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18592 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18593 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18594 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18595 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18596 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18597 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18598 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18599 | |
18600 | # Handling of arguments. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18601 | for ac_config_target in $ac_config_targets |
18602 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18603 | case $ac_config_target in |
18604 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | ||||
18605 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | ||||
18606 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 18607 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
18608 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18609 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18610 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Victor Stinner | 0a8e572 | 2019-05-23 03:30:23 +0200 | [diff] [blame] | 18611 | "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;; |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 18612 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 18613 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18614 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18615 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18616 | esac |
18617 | done | ||||
18618 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18620 | # If the user did not use the arguments to specify the items to instantiate, |
18621 | # then the envvar interface is used. Set only those that are not. | ||||
18622 | # We use the long form for the default assignment because of an extremely | ||||
18623 | # bizarre bug on SunOS 4.1.3. | ||||
18624 | if $ac_need_defaults; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18625 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
18626 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18627 | fi |
18628 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18629 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18630 | # simply because there is no reason against having it here, and in addition, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18631 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18632 | # Hook for its removal unless debugging. |
18633 | # Note that there is a small window in which the directory will not be cleaned: | ||||
18634 | # after its creation but before its name has been assigned to `$tmp'. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18635 | $debug || |
18636 | { | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18637 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18638 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18639 | : "${ac_tmp:=$tmp}" |
18640 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18641 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18642 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18643 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18644 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18646 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18647 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18648 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18649 | } || |
18650 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18651 | tmp=./conf$$-$RANDOM |
18652 | (umask 077 && mkdir "$tmp") | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18653 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18654 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18655 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18656 | # Set up the scripts for CONFIG_FILES section. |
18657 | # No need to generate them if there are no CONFIG_FILES. | ||||
18658 | # This happens for instance with `./config.status config.h'. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18659 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18660 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18661 | |
18662 | ac_cr=`echo X | tr X '\015'` | ||||
18663 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||||
18664 | # But we know of no other shell where ac_cr would be empty at this | ||||
18665 | # point, so we can use a bashism as a fallback. | ||||
18666 | if test "x$ac_cr" = x; then | ||||
18667 | eval ac_cr=\$\'\\r\' | ||||
18668 | fi | ||||
18669 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||||
18670 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18671 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18672 | else |
18673 | ac_cs_awk_cr=$ac_cr | ||||
18674 | fi | ||||
18675 | |||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18676 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18677 | _ACEOF |
18678 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18679 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18680 | { |
18681 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||||
18682 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||||
18683 | echo "_ACEOF" | ||||
18684 | } >conf$$subs.sh || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18685 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18686 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18687 | ac_delim='%!_!# ' |
18688 | for ac_last_try in false false false false false :; do | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18689 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18690 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18691 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18692 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
18693 | if test $ac_delim_n = $ac_delim_num; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18694 | break |
18695 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18696 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18697 | else |
18698 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18699 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18700 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18701 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18702 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18703 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18704 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18705 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18706 | sed -n ' |
18707 | h | ||||
18708 | s/^/S["/; s/!.*/"]=/ | ||||
18709 | p | ||||
18710 | g | ||||
18711 | s/^[^!]*!// | ||||
18712 | :repl | ||||
18713 | t repl | ||||
18714 | s/'"$ac_delim"'$// | ||||
18715 | t delim | ||||
18716 | :nl | ||||
18717 | h | ||||
18718 | s/\(.\{148\}\)..*/\1/ | ||||
18719 | t more1 | ||||
18720 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||||
18721 | p | ||||
18722 | n | ||||
18723 | b repl | ||||
18724 | :more1 | ||||
18725 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
18726 | p | ||||
18727 | g | ||||
18728 | s/.\{148\}// | ||||
18729 | t nl | ||||
18730 | :delim | ||||
18731 | h | ||||
18732 | s/\(.\{148\}\)..*/\1/ | ||||
18733 | t more2 | ||||
18734 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||||
18735 | p | ||||
18736 | b | ||||
18737 | :more2 | ||||
18738 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
18739 | p | ||||
18740 | g | ||||
18741 | s/.\{148\}// | ||||
18742 | t delim | ||||
18743 | ' <conf$$subs.awk | sed ' | ||||
18744 | /^[^""]/{ | ||||
18745 | N | ||||
18746 | s/\n// | ||||
18747 | } | ||||
18748 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
18749 | rm -f conf$$subs.awk | ||||
18750 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
18751 | _ACAWK | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18752 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18753 | for (key in S) S_is_set[key] = 1 |
18754 | FS = "" | ||||
18755 | |||||
18756 | } | ||||
18757 | { | ||||
18758 | line = $ 0 | ||||
18759 | nfields = split(line, field, "@") | ||||
18760 | substed = 0 | ||||
18761 | len = length(field[1]) | ||||
18762 | for (i = 2; i < nfields; i++) { | ||||
18763 | key = field[i] | ||||
18764 | keylen = length(key) | ||||
18765 | if (S_is_set[key]) { | ||||
18766 | value = S[key] | ||||
18767 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||||
18768 | len += length(value) + length(field[++i]) | ||||
18769 | substed = 1 | ||||
18770 | } else | ||||
18771 | len += 1 + keylen | ||||
18772 | } | ||||
18773 | |||||
18774 | print line | ||||
18775 | } | ||||
18776 | |||||
18777 | _ACAWK | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18778 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18779 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18780 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||||
18781 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||||
18782 | else | ||||
18783 | cat | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18784 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18785 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 18786 | _ACEOF |
18787 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18788 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18789 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18790 | # trailing colons and then remove the whole line if VPATH becomes empty |
18791 | # (actually we leave an empty line to preserve line numbers). | ||||
18792 | if test "x$srcdir" = x.; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18793 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18794 | h | ||||
18795 | s/// | ||||
18796 | s/^/:/ | ||||
18797 | s/[ ]*$/:/ | ||||
18798 | s/:\$(srcdir):/:/g | ||||
18799 | s/:\${srcdir}:/:/g | ||||
18800 | s/:@srcdir@:/:/g | ||||
18801 | s/^:*// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18802 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18803 | x |
18804 | s/\(=[ ]*\).*/\1/ | ||||
18805 | G | ||||
18806 | s/\n// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18807 | s/^[^=]*=[ ]*$// |
18808 | }' | ||||
18809 | fi | ||||
18810 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18811 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18812 | fi # test -n "$CONFIG_FILES" |
18813 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18814 | # Set up the scripts for CONFIG_HEADERS section. |
18815 | # No need to generate them if there are no CONFIG_HEADERS. | ||||
18816 | # This happens for instance with `./config.status Makefile'. | ||||
18817 | if test -n "$CONFIG_HEADERS"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18818 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18819 | BEGIN { |
18820 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18821 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18822 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18823 | # here-document in config.status, that substitutes the proper values into | ||||
18824 | # config.h.in to produce config.h. | ||||
18825 | |||||
18826 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||||
18827 | # handling of long lines. | ||||
18828 | ac_delim='%!_!# ' | ||||
18829 | for ac_last_try in false false :; do | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18830 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18831 | if test -z "$ac_tt"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18832 | break |
18833 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18834 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18835 | else |
18836 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
18837 | fi | ||||
18838 | done | ||||
18839 | |||||
18840 | # For the awk script, D is an array of macro values keyed by name, | ||||
18841 | # likewise P contains macro parameters if any. Preserve backslash | ||||
18842 | # newline sequences. | ||||
18843 | |||||
18844 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||||
18845 | sed -n ' | ||||
18846 | s/.\{148\}/&'"$ac_delim"'/g | ||||
18847 | t rset | ||||
18848 | :rset | ||||
18849 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||||
18850 | t def | ||||
18851 | d | ||||
18852 | :def | ||||
18853 | s/\\$// | ||||
18854 | t bsnl | ||||
18855 | s/["\\]/\\&/g | ||||
18856 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
18857 | D["\1"]=" \3"/p | ||||
18858 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||||
18859 | d | ||||
18860 | :bsnl | ||||
18861 | s/["\\]/\\&/g | ||||
18862 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
18863 | D["\1"]=" \3\\\\\\n"\\/p | ||||
18864 | t cont | ||||
18865 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||||
18866 | t cont | ||||
18867 | d | ||||
18868 | :cont | ||||
18869 | n | ||||
18870 | s/.\{148\}/&'"$ac_delim"'/g | ||||
18871 | t clear | ||||
18872 | :clear | ||||
18873 | s/\\$// | ||||
18874 | t bsnlc | ||||
18875 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||||
18876 | d | ||||
18877 | :bsnlc | ||||
18878 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||||
18879 | b cont | ||||
18880 | ' <confdefs.h | sed ' | ||||
18881 | s/'"$ac_delim"'/"\\\ | ||||
18882 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
18883 | |||||
18884 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
18885 | for (key in D) D_is_set[key] = 1 | ||||
18886 | FS = "" | ||||
18887 | } | ||||
18888 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||||
18889 | line = \$ 0 | ||||
18890 | split(line, arg, " ") | ||||
18891 | if (arg[1] == "#") { | ||||
18892 | defundef = arg[2] | ||||
18893 | mac1 = arg[3] | ||||
18894 | } else { | ||||
18895 | defundef = substr(arg[1], 2) | ||||
18896 | mac1 = arg[2] | ||||
18897 | } | ||||
18898 | split(mac1, mac2, "(") #) | ||||
18899 | macro = mac2[1] | ||||
18900 | prefix = substr(line, 1, index(line, defundef) - 1) | ||||
18901 | if (D_is_set[macro]) { | ||||
18902 | # Preserve the white space surrounding the "#". | ||||
18903 | print prefix "define", macro P[macro] D[macro] | ||||
18904 | next | ||||
18905 | } else { | ||||
18906 | # Replace #undef with comments. This is necessary, for example, | ||||
18907 | # in the case of _POSIX_SOURCE, which is predefined and required | ||||
18908 | # on some systems where configure will not decide to define it. | ||||
18909 | if (defundef == "undef") { | ||||
18910 | print "/*", prefix defundef, macro, "*/" | ||||
18911 | next | ||||
18912 | } | ||||
18913 | } | ||||
18914 | } | ||||
18915 | { print } | ||||
18916 | _ACAWK | ||||
18917 | _ACEOF | ||||
18918 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18919 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18920 | fi # test -n "$CONFIG_HEADERS" |
18921 | |||||
18922 | |||||
18923 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||||
18924 | shift | ||||
18925 | for ac_tag | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18926 | do |
18927 | case $ac_tag in | ||||
18928 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||||
18929 | esac | ||||
18930 | case $ac_mode$ac_tag in | ||||
18931 | :[FHL]*:*);; | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18932 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18933 | :[FH]-) ac_tag=-:-;; |
18934 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||||
18935 | esac | ||||
18936 | ac_save_IFS=$IFS | ||||
18937 | IFS=: | ||||
18938 | set x $ac_tag | ||||
18939 | IFS=$ac_save_IFS | ||||
18940 | shift | ||||
18941 | ac_file=$1 | ||||
18942 | shift | ||||
18943 | |||||
18944 | case $ac_mode in | ||||
18945 | :L) ac_source=$1;; | ||||
18946 | :[FH]) | ||||
18947 | ac_file_inputs= | ||||
18948 | for ac_f | ||||
18949 | do | ||||
18950 | case $ac_f in | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18951 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18952 | *) # Look for the file first in the build tree, then in the source tree |
18953 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||||
18954 | # because $ac_f cannot contain `:'. | ||||
18955 | test -f "$ac_f" || | ||||
18956 | case $ac_f in | ||||
18957 | [\\/$]*) false;; | ||||
18958 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||||
18959 | esac || | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18960 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18961 | esac |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18962 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18963 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18964 | done |
18965 | |||||
18966 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||||
18967 | # use $as_me), people would be surprised to read: | ||||
18968 | # /* config.h. Generated by config.status. */ | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18969 | configure_input='Generated from '` |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18970 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18971 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18972 | if test x"$ac_file" != x-; then |
18973 | configure_input="$ac_file. $configure_input" | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18974 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
18975 | $as_echo "$as_me: creating $ac_file" >&6;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18976 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18977 | # Neutralize special characters interpreted by sed in replacement strings. |
18978 | case $configure_input in #( | ||||
18979 | *\&* | *\|* | *\\* ) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18980 | ac_sed_conf_input=`$as_echo "$configure_input" | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18981 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
18982 | *) ac_sed_conf_input=$configure_input;; | ||||
18983 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18984 | |
18985 | case $ac_tag in | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18986 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18987 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18988 | esac |
18989 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18990 | esac |
18991 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18992 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18993 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18994 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
18995 | X"$ac_file" : 'X\(//\)$' \| \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18996 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 18997 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18998 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18999 | s//\1/ | ||||
19000 | q | ||||
19001 | } | ||||
19002 | /^X\(\/\/\)[^/].*/{ | ||||
19003 | s//\1/ | ||||
19004 | q | ||||
19005 | } | ||||
19006 | /^X\(\/\/\)$/{ | ||||
19007 | s//\1/ | ||||
19008 | q | ||||
19009 | } | ||||
19010 | /^X\(\/\).*/{ | ||||
19011 | s//\1/ | ||||
19012 | q | ||||
19013 | } | ||||
19014 | s/.*/./; q'` | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19015 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19016 | ac_builddir=. |
19017 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19018 | case "$ac_dir" in |
19019 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
19020 | *) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 19021 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19022 | # A ".." for each directory in $ac_dir_suffix. |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 19023 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19024 | case $ac_top_builddir_sub in |
19025 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
19026 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
19027 | esac ;; | ||||
19028 | esac | ||||
19029 | ac_abs_top_builddir=$ac_pwd | ||||
19030 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
19031 | # for backward compatibility: | ||||
19032 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19033 | |
19034 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19035 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19036 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19037 | ac_top_srcdir=$ac_top_builddir_sub |
19038 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
19039 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19040 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19041 | ac_top_srcdir=$srcdir |
19042 | ac_abs_top_srcdir=$srcdir ;; | ||||
19043 | *) # Relative name. | ||||
19044 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
19045 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
19046 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19047 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19048 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19050 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19051 | case $ac_mode in |
19052 | :F) | ||||
19053 | # | ||||
19054 | # CONFIG_FILE | ||||
19055 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19056 | |
19057 | case $INSTALL in | ||||
19058 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19059 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19060 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 19061 | ac_MKDIR_P=$MKDIR_P |
19062 | case $MKDIR_P in | ||||
19063 | [\\/$]* | ?:[\\/]* ) ;; | ||||
19064 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||||
19065 | esac | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19066 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19067 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19068 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19069 | # If the template does not know about datarootdir, expand it. |
19070 | # FIXME: This hack should be removed a few years after 2.60. | ||||
19071 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19072 | ac_sed_dataroot=' |
19073 | /datarootdir/ { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19074 | p |
19075 | q | ||||
19076 | } | ||||
19077 | /@datadir@/p | ||||
19078 | /@docdir@/p | ||||
19079 | /@infodir@/p | ||||
19080 | /@localedir@/p | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19081 | /@mandir@/p' |
19082 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19083 | *datarootdir*) ac_datarootdir_seen=yes;; |
19084 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 19085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19086 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19087 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19088 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19089 | ac_datarootdir_hack=' |
19090 | s&@datadir@&$datadir&g | ||||
19091 | s&@docdir@&$docdir&g | ||||
19092 | s&@infodir@&$infodir&g | ||||
19093 | s&@localedir@&$localedir&g | ||||
19094 | s&@mandir@&$mandir&g | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19095 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19096 | esac |
19097 | _ACEOF | ||||
19098 | |||||
19099 | # Neutralize VPATH when `$srcdir' = `.'. | ||||
19100 | # Shell code in configure.ac might set extrasub. | ||||
19101 | # FIXME: do we really want to maintain this feature? | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19102 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19103 | ac_sed_extra="$ac_vpsub | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19104 | $extrasub |
19105 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19106 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19107 | :t |
19108 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19109 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19110 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19111 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19112 | s&@srcdir@&$ac_srcdir&;t t |
19113 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||||
19114 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||||
19115 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||||
19116 | s&@builddir@&$ac_builddir&;t t | ||||
19117 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||||
19118 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||||
19119 | s&@INSTALL@&$ac_INSTALL&;t t | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 19120 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19121 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19122 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19123 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
19124 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19125 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19126 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19127 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19128 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||||
19129 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 19130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19131 | which seems to be undefined. Please make sure it is defined" >&5 |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 19132 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19133 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19134 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19135 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19136 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19137 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19138 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19139 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19140 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19141 | ;; |
19142 | :H) | ||||
19143 | # | ||||
19144 | # CONFIG_HEADER | ||||
19145 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19146 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19147 | { |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 19148 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19149 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
19150 | } >"$ac_tmp/config.h" \ | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19151 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19152 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 19153 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19154 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19155 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19156 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19157 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19158 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19159 | fi |
19160 | else | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 19161 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 19162 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19163 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19164 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19165 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19166 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19167 | |
19168 | esac | ||||
19169 | |||||
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 19170 | |
19171 | case $ac_file$ac_mode in | ||||
19172 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | ||||
19173 | |||||
19174 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19175 | done # for ac_tag |
19176 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19177 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19178 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19179 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19180 | ac_clean_files=$ac_clean_files_save |
19181 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19182 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19183 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19185 | |
19186 | # configure is writing to config.log, and then calls config.status. | ||||
19187 | # config.status does its own redirection, appending to config.log. | ||||
19188 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||||
19189 | # by configure, so config.status won't be able to write to it; its | ||||
19190 | # output is simply discarded. So we exec the FD to /dev/null, | ||||
19191 | # effectively closing config.log, so it can be properly (re)opened and | ||||
19192 | # appended to by config.status. When coming back to configure, we | ||||
19193 | # need to make the FD available again. | ||||
19194 | if test "$no_create" != yes; then | ||||
19195 | ac_cs_success=: | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19196 | ac_config_status_args= |
19197 | test "$silent" = yes && | ||||
19198 | ac_config_status_args="$ac_config_status_args --quiet" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19199 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19200 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19201 | exec 5>>config.log |
19202 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||||
19203 | # would make configure fail if this is the last instruction. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19204 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19205 | fi |
19206 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||||
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 19207 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
19208 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19209 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19210 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19211 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 19212 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19213 | if test ! -f Modules/Setup.local |
19214 | then | ||||
19215 | echo "# Edit this file for local setup changes" >Modules/Setup.local | ||||
19216 | fi | ||||
19217 | |||||
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 19218 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19219 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 19220 | -s Modules \ |
Antoine Pitrou | 961d54c | 2018-07-16 19:03:03 +0200 | [diff] [blame] | 19221 | Modules/Setup.local $srcdir/Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 19222 | mv config.c Modules |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 19223 | |
19224 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | ||||
19225 | echo "" >&6 | ||||
19226 | echo "" >&6 | ||||
Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame] | 19227 | echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6 |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 19228 | echo "please run ./configure --enable-optimizations" >&6 |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 19229 | echo "" >&6 |
19230 | echo "" >&6 | ||||
19231 | fi |