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. |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [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 | # |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [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 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [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 | ||||
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. | ||||
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 | |
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.) | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
90 | |||||
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 | ||||
99 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
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 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
113 | exit 1 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 114 | fi |
115 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 || : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 123 | done |
124 | PS1='$ ' | ||||
125 | PS2='> ' | ||||
126 | PS4='+ ' | ||||
127 | |||||
128 | # NLS nuisances. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 129 | LC_ALL=C |
130 | export LC_ALL | ||||
131 | LANGUAGE=C | ||||
132 | export LANGUAGE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 133 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 134 | # CDPATH. |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||||
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'. | ||||
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | ||||
158 | as_fn_exit 255 | ||||
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 |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||||
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 | ||||
170 | else | ||||
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.; } | ||||
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||||
191 | |||||
192 | else | ||||
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" | ||||
202 | if (eval "$as_required") 2>/dev/null; then : | ||||
203 | as_have_required=yes | ||||
204 | else | ||||
205 | as_have_required=no | ||||
206 | fi | ||||
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||||
208 | |||||
209 | else | ||||
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 | ||||
215 | test -z "$as_dir" && as_dir=. | ||||
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. | ||||
221 | as_shell=$as_dir/$as_base | ||||
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||||
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||||
224 | CONFIG_SHELL=$as_shell as_have_required=yes | ||||
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||||
226 | break 2 | ||||
227 | fi | ||||
228 | fi | ||||
229 | done;; | ||||
230 | esac | ||||
231 | as_found=false | ||||
232 | done | ||||
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 : | ||||
235 | CONFIG_SHELL=$SHELL as_have_required=yes | ||||
236 | fi; } | ||||
237 | IFS=$as_save_IFS | ||||
238 | |||||
239 | |||||
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'. | ||||
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | ||||
259 | exit 255 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 260 | fi |
261 | |||||
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." | ||||
268 | else | ||||
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 #( | ||||
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||||
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 || | ||||
337 | $as_echo X"$as_dir" | | ||||
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. | ||||
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||||
377 | eval 'as_fn_append () | ||||
378 | { | ||||
379 | eval $1+=\$2 | ||||
380 | }' | ||||
381 | else | ||||
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. | ||||
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||||
394 | eval 'as_fn_arith () | ||||
395 | { | ||||
396 | as_val=$(( $* )) | ||||
397 | }' | ||||
398 | else | ||||
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 | ||||
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 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +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 || | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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" || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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="\ | ||||
591 | #include <stdio.h> | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <sys/types.h> |
594 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | # include <sys/stat.h> |
597 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 598 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # include <stdlib.h> |
600 | # include <stddef.h> | ||||
601 | #else | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | # include <stdlib.h> |
604 | # endif | ||||
605 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H |
607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 608 | # include <memory.h> |
609 | # endif | ||||
610 | # include <string.h> | ||||
611 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 626 | OPENSSL_LDFLAGS |
627 | OPENSSL_LIBS | ||||
628 | OPENSSL_INCLUDES | ||||
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 629 | ENSUREPIP |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 630 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 631 | THREADHEADERS |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 632 | LIBPL |
633 | PY_ENABLE_SHARED | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 634 | PLATLIBDIR |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 635 | BINLIBDEST |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 636 | LIBPYTHON |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 637 | EXT_SUFFIX |
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 638 | ALT_SOABI |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 639 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 640 | LIBC |
641 | LIBM | ||||
642 | HAVE_GETHOSTBYNAME | ||||
643 | HAVE_GETHOSTBYNAME_R | ||||
644 | HAVE_GETHOSTBYNAME_R_3_ARG | ||||
645 | HAVE_GETHOSTBYNAME_R_5_ARG | ||||
646 | HAVE_GETHOSTBYNAME_R_6_ARG | ||||
647 | LIBOBJS | ||||
648 | TRUE | ||||
649 | MACHDEP_OBJS | ||||
650 | DYNLOADFILE | ||||
651 | DLINCLDIR | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 652 | DTRACE_OBJS |
653 | DTRACE_HEADERS | ||||
654 | DFLAGS | ||||
655 | DTRACE | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 656 | TCLTK_LIBS |
657 | TCLTK_INCLUDES | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 658 | LIBFFI_INCLUDEDIR |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 659 | PKG_CONFIG_LIBDIR |
660 | PKG_CONFIG_PATH | ||||
661 | PKG_CONFIG | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 662 | TZPATH |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 663 | SHLIBS |
664 | CFLAGSFORSHARED | ||||
665 | LINKFORSHARED | ||||
666 | CCSHARED | ||||
667 | BLDSHARED | ||||
668 | LDCXXSHARED | ||||
669 | LDSHARED | ||||
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 670 | SHLIB_SUFFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 671 | LIBTOOL_CRUFT |
672 | OTHER_LIBTOOL_OPT | ||||
673 | UNIVERSAL_ARCH_FLAGS | ||||
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 674 | LDFLAGS_NODIST |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 675 | CFLAGS_NODIST |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 676 | BASECFLAGS |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 677 | CFLAGS_ALIASING |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 678 | OPT |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 679 | LLVM_PROF_FOUND |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 680 | LLVM_PROFDATA |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 681 | LLVM_PROF_ERR |
682 | LLVM_PROF_FILE | ||||
683 | LLVM_PROF_MERGER | ||||
684 | PGO_PROF_USE_FLAG | ||||
685 | PGO_PROF_GEN_FLAG | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 686 | LLVM_AR_FOUND |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 687 | LLVM_AR |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 688 | PROFILE_TASK |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 689 | DEF_MAKE_RULE |
690 | DEF_MAKE_ALL_RULE | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 691 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 692 | LN |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 693 | MKDIR_P |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 694 | INSTALL_DATA |
695 | INSTALL_SCRIPT | ||||
696 | INSTALL_PROGRAM | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 697 | ac_ct_READELF |
698 | READELF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 699 | ARFLAGS |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 700 | ac_ct_AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 701 | AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 702 | GNULD |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 703 | EXPORTSFROM |
704 | EXPORTSYMS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 705 | LINKCC |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 706 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 707 | RUNSHARED |
708 | INSTSONAME | ||||
709 | LDLIBRARYDIR | ||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 710 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 711 | BLDLIBRARY |
712 | DLLLIBRARY | ||||
713 | LDLIBRARY | ||||
714 | LIBRARY | ||||
715 | BUILDEXEEXT | ||||
716 | EGREP | ||||
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 717 | NO_AS_NEEDED |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 718 | MULTIARCH_CPPFLAGS |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 719 | PLATFORM_TRIPLET |
720 | MULTIARCH | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 721 | ac_ct_CXX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 722 | MAINCC |
723 | CXX | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 724 | SED |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 725 | GREP |
726 | CPP | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 727 | OBJEXT |
728 | EXEEXT | ||||
729 | ac_ct_CC | ||||
730 | CPPFLAGS | ||||
731 | LDFLAGS | ||||
732 | CFLAGS | ||||
733 | CC | ||||
734 | EXPORT_MACOSX_DEPLOYMENT_TARGET | ||||
735 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 736 | _PYTHON_HOST_PLATFORM |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 737 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 738 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 739 | FRAMEWORKUNIXTOOLSPREFIX |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 740 | FRAMEWORKPYTHONW |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 741 | FRAMEWORKALTINSTALLLAST |
742 | FRAMEWORKALTINSTALLFIRST | ||||
743 | FRAMEWORKINSTALLLAST | ||||
744 | FRAMEWORKINSTALLFIRST | ||||
745 | PYTHONFRAMEWORKINSTALLDIR | ||||
746 | PYTHONFRAMEWORKPREFIX | ||||
747 | PYTHONFRAMEWORKDIR | ||||
748 | PYTHONFRAMEWORKIDENTIFIER | ||||
749 | PYTHONFRAMEWORK | ||||
750 | LIPO_32BIT_FLAGS | ||||
751 | ARCH_RUN_32BIT | ||||
752 | UNIVERSALSDK | ||||
753 | CONFIG_ARGS | ||||
754 | SOVERSION | ||||
755 | VERSION | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 756 | PYTHON_FOR_BUILD |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 757 | PYTHON_FOR_REGEN |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 758 | host_os |
759 | host_vendor | ||||
760 | host_cpu | ||||
761 | host | ||||
762 | build_os | ||||
763 | build_vendor | ||||
764 | build_cpu | ||||
765 | build | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 766 | HAS_GIT |
767 | GITBRANCH | ||||
768 | GITTAG | ||||
769 | GITVERSION | ||||
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 770 | BASECPPFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 771 | target_alias |
772 | host_alias | ||||
773 | build_alias | ||||
774 | LIBS | ||||
775 | ECHO_T | ||||
776 | ECHO_N | ||||
777 | ECHO_C | ||||
778 | DEFS | ||||
779 | mandir | ||||
780 | localedir | ||||
781 | libdir | ||||
782 | psdir | ||||
783 | pdfdir | ||||
784 | dvidir | ||||
785 | htmldir | ||||
786 | infodir | ||||
787 | docdir | ||||
788 | oldincludedir | ||||
789 | includedir | ||||
790 | localstatedir | ||||
791 | sharedstatedir | ||||
792 | sysconfdir | ||||
793 | datadir | ||||
794 | datarootdir | ||||
795 | libexecdir | ||||
796 | sbindir | ||||
797 | bindir | ||||
798 | program_transform_name | ||||
799 | prefix | ||||
800 | exec_prefix | ||||
801 | PACKAGE_URL | ||||
802 | PACKAGE_BUGREPORT | ||||
803 | PACKAGE_STRING | ||||
804 | PACKAGE_VERSION | ||||
805 | PACKAGE_TARNAME | ||||
806 | PACKAGE_NAME | ||||
807 | PATH_SEPARATOR | ||||
808 | SHELL' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 809 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 810 | ac_user_opts=' |
811 | enable_option_checking | ||||
812 | enable_universalsdk | ||||
813 | with_universal_archs | ||||
814 | with_framework_name | ||||
815 | enable_framework | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 816 | with_cxx_main |
817 | with_suffix | ||||
818 | enable_shared | ||||
819 | enable_profiling | ||||
820 | with_pydebug | ||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 821 | with_trace_refs |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 822 | with_assertions |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 823 | enable_optimizations |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 824 | with_lto |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 825 | with_hash_algorithm |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 826 | with_tzpath |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 827 | with_address_sanitizer |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 828 | with_memory_sanitizer |
829 | with_undefined_behavior_sanitizer | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 830 | with_libs |
831 | with_system_expat | ||||
832 | with_system_ffi | ||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 833 | with_system_libmpdec |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 834 | with_decimal_contextvar |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 835 | enable_loadable_sqlite_extensions |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 836 | with_tcltk_includes |
837 | with_tcltk_libs | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 838 | with_dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 839 | enable_ipv6 |
840 | with_doc_strings | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 841 | with_pymalloc |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 842 | with_c_locale_coercion |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 843 | with_valgrind |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 844 | with_dtrace |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 845 | with_libm |
846 | with_libc | ||||
847 | enable_big_digits | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 848 | with_platlibdir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 849 | with_computed_gotos |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 850 | with_ensurepip |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 851 | with_openssl |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 852 | with_ssl_default_suites |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 853 | with_builtin_hashlib_hashes |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 854 | with_experimental_isolated_subinterpreters |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 855 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 856 | ac_precious_vars='build_alias |
857 | host_alias | ||||
858 | target_alias | ||||
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 859 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 860 | CC |
861 | CFLAGS | ||||
862 | LDFLAGS | ||||
863 | LIBS | ||||
864 | CPPFLAGS | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 865 | CPP |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 866 | PROFILE_TASK |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 867 | PKG_CONFIG |
868 | PKG_CONFIG_PATH | ||||
869 | PKG_CONFIG_LIBDIR' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 870 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 871 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 872 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 873 | ac_init_help= |
874 | ac_init_version=false | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 875 | ac_unrecognized_opts= |
876 | ac_unrecognized_sep= | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 877 | # The variables have the same names as the options, with |
878 | # dashes changed to underlines. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 879 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 880 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 881 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 882 | no_recursion= |
883 | prefix=NONE | ||||
884 | program_prefix=NONE | ||||
885 | program_suffix=NONE | ||||
886 | program_transform_name=s,x,x, | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 887 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 888 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 889 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 890 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 891 | x_includes=NONE |
892 | x_libraries=NONE | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 893 | |
894 | # Installation directory options. | ||||
895 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||||
896 | # and all the variables that are supposed to be based on exec_prefix | ||||
897 | # by default will actually change. | ||||
898 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 899 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 900 | bindir='${exec_prefix}/bin' |
901 | sbindir='${exec_prefix}/sbin' | ||||
902 | libexecdir='${exec_prefix}/libexec' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 903 | datarootdir='${prefix}/share' |
904 | datadir='${datarootdir}' | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 905 | sysconfdir='${prefix}/etc' |
906 | sharedstatedir='${prefix}/com' | ||||
907 | localstatedir='${prefix}/var' | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 908 | includedir='${prefix}/include' |
909 | oldincludedir='/usr/include' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 910 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
911 | infodir='${datarootdir}/info' | ||||
912 | htmldir='${docdir}' | ||||
913 | dvidir='${docdir}' | ||||
914 | pdfdir='${docdir}' | ||||
915 | psdir='${docdir}' | ||||
916 | libdir='${exec_prefix}/lib' | ||||
917 | localedir='${datarootdir}/locale' | ||||
918 | mandir='${datarootdir}/man' | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 919 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 920 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 921 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 922 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 923 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 924 | # If the previous option needs an argument, assign it. |
925 | if test -n "$ac_prev"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 926 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 927 | ac_prev= |
928 | continue | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 929 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 930 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 931 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 932 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
933 | *=) ac_optarg= ;; | ||||
934 | *) ac_optarg=yes ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 935 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 936 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 937 | # Accept the important Cygnus configure options, so we can diagnose typos. |
938 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 939 | case $ac_dashdash$ac_option in |
940 | --) | ||||
941 | ac_dashdash=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 942 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 943 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
944 | ac_prev=bindir ;; | ||||
945 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 946 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 947 | |
948 | -build | --build | --buil | --bui | --bu) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 949 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 950 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 951 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 953 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
954 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||||
955 | ac_prev=cache_file ;; | ||||
956 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||||
957 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 958 | cache_file=$ac_optarg ;; |
959 | |||||
960 | --config-cache | -C) | ||||
961 | cache_file=config.cache ;; | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 962 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 963 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 964 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 965 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 966 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 967 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 968 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
969 | | --dataroo | --dataro | --datar) | ||||
970 | ac_prev=datarootdir ;; | ||||
971 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||||
972 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||||
973 | datarootdir=$ac_optarg ;; | ||||
974 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 975 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 976 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 977 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 978 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 979 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 980 | ac_useropt_orig=$ac_useropt |
981 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
982 | case $ac_user_opts in | ||||
983 | *" | ||||
984 | "enable_$ac_useropt" | ||||
985 | "*) ;; | ||||
986 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||||
987 | ac_unrecognized_sep=', ';; | ||||
988 | esac | ||||
989 | eval enable_$ac_useropt=no ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 990 | |
991 | -docdir | --docdir | --docdi | --doc | --do) | ||||
992 | ac_prev=docdir ;; | ||||
993 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||||
994 | docdir=$ac_optarg ;; | ||||
995 | |||||
996 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||||
997 | ac_prev=dvidir ;; | ||||
998 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||||
999 | dvidir=$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1000 | |
1001 | -enable-* | --enable-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1002 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1003 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1004 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1005 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1006 | ac_useropt_orig=$ac_useropt |
1007 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
1008 | case $ac_user_opts in | ||||
1009 | *" | ||||
1010 | "enable_$ac_useropt" | ||||
1011 | "*) ;; | ||||
1012 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||||
1013 | ac_unrecognized_sep=', ';; | ||||
1014 | esac | ||||
1015 | eval enable_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1016 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1017 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1018 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||||
1019 | | --exec | --exe | --ex) | ||||
1020 | ac_prev=exec_prefix ;; | ||||
1021 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||||
1022 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||||
1023 | | --exec=* | --exe=* | --ex=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1024 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1025 | |
1026 | -gas | --gas | --ga | --g) | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1027 | # Obsolete; use --with-gas. |
1028 | with_gas=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1030 | -help | --help | --hel | --he | -h) |
1031 | ac_init_help=long ;; | ||||
1032 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||||
1033 | ac_init_help=recursive ;; | ||||
1034 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||||
1035 | ac_init_help=short ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1036 | |
1037 | -host | --host | --hos | --ho) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1038 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1039 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1040 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1041 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1042 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1043 | ac_prev=htmldir ;; | ||||
1044 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||||
1045 | | --ht=*) | ||||
1046 | htmldir=$ac_optarg ;; | ||||
1047 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1048 | -includedir | --includedir | --includedi | --included | --include \ |
1049 | | --includ | --inclu | --incl | --inc) | ||||
1050 | ac_prev=includedir ;; | ||||
1051 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||||
1052 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1053 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1054 | |
1055 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||||
1056 | ac_prev=infodir ;; | ||||
1057 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1059 | |
1060 | -libdir | --libdir | --libdi | --libd) | ||||
1061 | ac_prev=libdir ;; | ||||
1062 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1063 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1064 | |
1065 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||||
1066 | | --libexe | --libex | --libe) | ||||
1067 | ac_prev=libexecdir ;; | ||||
1068 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||||
1069 | | --libexe=* | --libex=* | --libe=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1070 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1071 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1072 | -localedir | --localedir | --localedi | --localed | --locale) |
1073 | ac_prev=localedir ;; | ||||
1074 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||||
1075 | localedir=$ac_optarg ;; | ||||
1076 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1077 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1078 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1079 | ac_prev=localstatedir ;; |
1080 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1081 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1082 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1083 | |
1084 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||||
1085 | ac_prev=mandir ;; | ||||
1086 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1087 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1088 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1090 | # Obsolete; use --without-fp. |
1091 | with_fp=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1092 | |
1093 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1094 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1095 | no_create=yes ;; |
1096 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1097 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1098 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||||
1099 | no_recursion=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1100 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1101 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1102 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||||
1103 | | --oldin | --oldi | --old | --ol | --o) | ||||
1104 | ac_prev=oldincludedir ;; | ||||
1105 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||||
1106 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||||
1107 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1108 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1109 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1111 | ac_prev=prefix ;; | ||||
1112 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1113 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1114 | |
1115 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||||
1116 | | --program-pre | --program-pr | --program-p) | ||||
1117 | ac_prev=program_prefix ;; | ||||
1118 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||||
1119 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1120 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1121 | |
1122 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||||
1123 | | --program-suf | --program-su | --program-s) | ||||
1124 | ac_prev=program_suffix ;; | ||||
1125 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||||
1126 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1127 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1128 | |
1129 | -program-transform-name | --program-transform-name \ | ||||
1130 | | --program-transform-nam | --program-transform-na \ | ||||
1131 | | --program-transform-n | --program-transform- \ | ||||
1132 | | --program-transform | --program-transfor \ | ||||
1133 | | --program-transfo | --program-transf \ | ||||
1134 | | --program-trans | --program-tran \ | ||||
1135 | | --progr-tra | --program-tr | --program-t) | ||||
1136 | ac_prev=program_transform_name ;; | ||||
1137 | -program-transform-name=* | --program-transform-name=* \ | ||||
1138 | | --program-transform-nam=* | --program-transform-na=* \ | ||||
1139 | | --program-transform-n=* | --program-transform-=* \ | ||||
1140 | | --program-transform=* | --program-transfor=* \ | ||||
1141 | | --program-transfo=* | --program-transf=* \ | ||||
1142 | | --program-trans=* | --program-tran=* \ | ||||
1143 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1144 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1145 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1146 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1147 | ac_prev=pdfdir ;; | ||||
1148 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||||
1149 | pdfdir=$ac_optarg ;; | ||||
1150 | |||||
1151 | -psdir | --psdir | --psdi | --psd | --ps) | ||||
1152 | ac_prev=psdir ;; | ||||
1153 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||||
1154 | psdir=$ac_optarg ;; | ||||
1155 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1156 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1157 | | -silent | --silent | --silen | --sile | --sil) | ||||
1158 | silent=yes ;; | ||||
1159 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1160 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1161 | ac_prev=sbindir ;; | ||||
1162 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||||
1163 | | --sbi=* | --sb=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1164 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1165 | |
1166 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||||
1167 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||||
1168 | | --sharedst | --shareds | --shared | --share | --shar \ | ||||
1169 | | --sha | --sh) | ||||
1170 | ac_prev=sharedstatedir ;; | ||||
1171 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||||
1172 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||||
1173 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||||
1174 | | --sha=* | --sh=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1175 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1176 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1177 | -site | --site | --sit) |
1178 | ac_prev=site ;; | ||||
1179 | -site=* | --site=* | --sit=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1180 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1181 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1182 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1183 | ac_prev=srcdir ;; | ||||
1184 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1185 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1186 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1187 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1188 | | --syscon | --sysco | --sysc | --sys | --sy) | ||||
1189 | ac_prev=sysconfdir ;; | ||||
1190 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||||
1191 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1192 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1193 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1194 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1195 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1196 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1197 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1198 | |
1199 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||||
1200 | verbose=yes ;; | ||||
1201 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1202 | -version | --version | --versio | --versi | --vers | -V) |
1203 | ac_init_version=: ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1204 | |
1205 | -with-* | --with-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1206 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1207 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1208 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1209 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1210 | ac_useropt_orig=$ac_useropt |
1211 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
1212 | case $ac_user_opts in | ||||
1213 | *" | ||||
1214 | "with_$ac_useropt" | ||||
1215 | "*) ;; | ||||
1216 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||||
1217 | ac_unrecognized_sep=', ';; | ||||
1218 | esac | ||||
1219 | eval with_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1220 | |
1221 | -without-* | --without-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1222 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1223 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1224 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1225 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1226 | ac_useropt_orig=$ac_useropt |
1227 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
1228 | case $ac_user_opts in | ||||
1229 | *" | ||||
1230 | "with_$ac_useropt" | ||||
1231 | "*) ;; | ||||
1232 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||||
1233 | ac_unrecognized_sep=', ';; | ||||
1234 | esac | ||||
1235 | eval with_$ac_useropt=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1236 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1237 | --x) |
1238 | # Obsolete; use --with-x. | ||||
1239 | with_x=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1240 | |
1241 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||||
1242 | | --x-incl | --x-inc | --x-in | --x-i) | ||||
1243 | ac_prev=x_includes ;; | ||||
1244 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||||
1245 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1246 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1247 | |
1248 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||||
1249 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||||
1250 | ac_prev=x_libraries ;; | ||||
1251 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||||
1252 | | --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] | 1253 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1254 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1255 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1256 | Try \`$0 --help' for more information" | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1257 | ;; |
1258 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1259 | *=*) |
1260 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||||
1261 | # Reject names that are not valid shell variable names. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1262 | case $ac_envvar in #( |
1263 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1264 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1265 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1266 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1267 | export $ac_envvar ;; |
1268 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1269 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1270 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1271 | $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] | 1272 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1273 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1274 | : "${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] | 1275 | ;; |
1276 | |||||
1277 | esac | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1278 | done |
1279 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1280 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1281 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1282 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1283 | fi |
1284 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1285 | if test -n "$ac_unrecognized_opts"; then |
1286 | case $enable_option_checking in | ||||
1287 | no) ;; | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1288 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1289 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1290 | esac | ||||
1291 | fi | ||||
1292 | |||||
1293 | # Check all directory arguments for consistency. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1294 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1295 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||||
1296 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 1297 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1298 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1299 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1300 | # Remove trailing slashes. |
1301 | case $ac_val in | ||||
1302 | */ ) | ||||
1303 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||||
1304 | eval $ac_var=\$ac_val;; | ||||
1305 | esac | ||||
1306 | # Be sure to have absolute directory names. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1307 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1308 | [\\/$]* | ?:[\\/]* ) continue;; |
1309 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1310 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1311 | 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] | 1312 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1314 | # There might be people who depend on the old broken behavior: `$host' |
1315 | # used to hold the argument of --host etc. | ||||
1316 | # FIXME: To remove some day. | ||||
1317 | build=$build_alias | ||||
1318 | host=$host_alias | ||||
1319 | target=$target_alias | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1321 | # FIXME: To remove some day. |
1322 | if test "x$host_alias" != x; then | ||||
1323 | if test "x$build_alias" = x; then | ||||
1324 | cross_compiling=maybe | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1325 | elif test "x$build_alias" != "x$host_alias"; then |
1326 | cross_compiling=yes | ||||
1327 | fi | ||||
1328 | fi | ||||
1329 | |||||
1330 | ac_tool_prefix= | ||||
1331 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||||
1332 | |||||
1333 | test "$silent" = yes && exec 6>/dev/null | ||||
1334 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1335 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1336 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1337 | ac_ls_di=`ls -di .` && | ||||
1338 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1339 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1340 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1341 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1342 | |
1343 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1344 | # Find the source files, if location was not specified. |
1345 | if test -z "$srcdir"; then | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1346 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1347 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1348 | ac_confdir=`$as_dirname -- "$as_myself" || |
1349 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
1350 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||||
1351 | X"$as_myself" : 'X\(//\)$' \| \ | ||||
1352 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||||
1353 | $as_echo X"$as_myself" | | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1354 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1355 | s//\1/ | ||||
1356 | q | ||||
1357 | } | ||||
1358 | /^X\(\/\/\)[^/].*/{ | ||||
1359 | s//\1/ | ||||
1360 | q | ||||
1361 | } | ||||
1362 | /^X\(\/\/\)$/{ | ||||
1363 | s//\1/ | ||||
1364 | q | ||||
1365 | } | ||||
1366 | /^X\(\/\).*/{ | ||||
1367 | s//\1/ | ||||
1368 | q | ||||
1369 | } | ||||
1370 | s/.*/./; q'` | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1371 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1372 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1373 | srcdir=.. |
1374 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1375 | else |
1376 | ac_srcdir_defaulted=no | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1377 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1378 | if test ! -r "$srcdir/$ac_unique_file"; then |
1379 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1380 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1381 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1382 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1383 | ac_abs_confdir=`( | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1384 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1385 | pwd)` |
1386 | # When building in place, set srcdir=. | ||||
1387 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||||
1388 | srcdir=. | ||||
1389 | fi | ||||
1390 | # Remove unnecessary trailing slashes from srcdir. | ||||
1391 | # Double slashes in file names in object file debugging info | ||||
1392 | # mess up M-x gdb in Emacs. | ||||
1393 | case $srcdir in | ||||
1394 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||||
1395 | esac | ||||
1396 | for ac_var in $ac_precious_vars; do | ||||
1397 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||||
1398 | eval ac_env_${ac_var}_value=\$${ac_var} | ||||
1399 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||||
1400 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||||
1401 | done | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1403 | # |
1404 | # Report the --help message. | ||||
1405 | # | ||||
1406 | if test "$ac_init_help" = "long"; then | ||||
1407 | # Omit some internal or obsolete options to make the list less imposing. | ||||
1408 | # This message is too long to be a string in the A/UX 3.1 sh. | ||||
1409 | cat <<_ACEOF | ||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1410 | \`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] | 1411 | |
1412 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||||
1413 | |||||
1414 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||||
1415 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||||
1416 | |||||
1417 | Defaults for the options are specified in brackets. | ||||
1418 | |||||
1419 | Configuration: | ||||
1420 | -h, --help display this help and exit | ||||
1421 | --help=short display options specific to this package | ||||
1422 | --help=recursive display the short help of all the included packages | ||||
1423 | -V, --version display version information and exit | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1424 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1425 | --cache-file=FILE cache test results in FILE [disabled] |
1426 | -C, --config-cache alias for \`--cache-file=config.cache' | ||||
1427 | -n, --no-create do not create output files | ||||
1428 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||||
1429 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1430 | Installation directories: |
1431 | --prefix=PREFIX install architecture-independent files in PREFIX | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1432 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1433 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1434 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1435 | |
1436 | By default, \`make install' will install all the files in | ||||
1437 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||||
1438 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||||
1439 | for instance \`--prefix=\$HOME'. | ||||
1440 | |||||
1441 | For better control, use the options below. | ||||
1442 | |||||
1443 | Fine tuning of the installation directories: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1444 | --bindir=DIR user executables [EPREFIX/bin] |
1445 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||||
1446 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||||
1447 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||||
1448 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||||
1449 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||||
1450 | --libdir=DIR object code libraries [EPREFIX/lib] | ||||
1451 | --includedir=DIR C header files [PREFIX/include] | ||||
1452 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||||
1453 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||||
1454 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||||
1455 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||||
1456 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||||
1457 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||||
1458 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] | ||||
1459 | --htmldir=DIR html documentation [DOCDIR] | ||||
1460 | --dvidir=DIR dvi documentation [DOCDIR] | ||||
1461 | --pdfdir=DIR pdf documentation [DOCDIR] | ||||
1462 | --psdir=DIR ps documentation [DOCDIR] | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1463 | _ACEOF |
1464 | |||||
1465 | cat <<\_ACEOF | ||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1466 | |
1467 | System types: | ||||
1468 | --build=BUILD configure for building on BUILD [guessed] | ||||
1469 | --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] | 1470 | _ACEOF |
1471 | fi | ||||
1472 | |||||
1473 | if test -n "$ac_init_help"; then | ||||
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1474 | case $ac_init_help in |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1475 | short | recursive ) echo "Configuration of python 3.10:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1476 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1477 | cat <<\_ACEOF |
1478 | |||||
1479 | Optional Features: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1480 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1481 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1482 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||||
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1483 | --enable-universalsdk[=SDKDIR] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1484 | create a universal binary build. SDKDIR specifies |
1485 | which macOS SDK should be used to perform the build, | ||||
1486 | see Mac/README.rst. (default is no) | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1487 | --enable-framework[=INSTALLDIR] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1488 | create a Python.framework rather than a traditional |
1489 | Unix install. optional INSTALLDIR specifies the | ||||
1490 | installation path. see Mac/README.rst (default is | ||||
1491 | no) | ||||
1492 | --enable-shared enable building a shared Python library (default is | ||||
1493 | no) | ||||
1494 | --enable-profiling enable C-level code profiling with gprof (default is | ||||
1495 | no) | ||||
1496 | --enable-optimizations enable expensive, stable optimizations (PGO, etc.) | ||||
1497 | (default is no) | ||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1498 | --enable-loadable-sqlite-extensions |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1499 | support loadable extensions in _sqlite module, see |
1500 | Doc/library/sqlite3.rst (default is no) | ||||
1501 | --enable-ipv6 enable ipv6 (with ipv4) support, see | ||||
1502 | Doc/library/socket.rst (default is yes if supported) | ||||
1503 | --enable-big-digits[=15|30] | ||||
1504 | use big digits (30 or 15 bits) for Python longs | ||||
1505 | (default is system-dependent)] | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1506 | |
1507 | Optional Packages: | ||||
1508 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||||
1509 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1510 | --with-universal-archs=ARCH |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1511 | specify the kind of universal binary that should be |
1512 | created. this option is only valid when | ||||
1513 | --enable-universalsdk is set; options are: | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 1514 | ("universal2", "32-bit", "64-bit", "3-way", "intel", |
1515 | "intel-32", "intel-64", or "all") see Mac/README.rst | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1516 | --with-framework-name=FRAMEWORK |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1517 | specify the name for the python framework on macOS |
1518 | only valid when --enable-framework is set. see | ||||
1519 | Mac/README.rst (default is 'Python') | ||||
1520 | --with-cxx-main[=COMPILER] | ||||
1521 | compile main() and link Python executable with C++ | ||||
1522 | compiler specified in COMPILER (default is $CXX) | ||||
1523 | --with-suffix=SUFFIX set executable suffix to SUFFIX (default is '.exe') | ||||
1524 | --with-pydebug build with Py_DEBUG defined (default is no) | ||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 1525 | --with-trace-refs enable tracing references for debugging purpose |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1526 | (default is no) |
1527 | --with-assertions build with C assertions enabled (default is no) | ||||
1528 | --with-lto enable Link-Time-Optimization in any build (default | ||||
1529 | is no) | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1530 | --with-hash-algorithm=[fnv|siphash24] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1531 | select hash algorithm for use in Python/pyhash.c |
1532 | (default is SipHash24) | ||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 1533 | --with-tzpath=<list of absolute paths separated by pathsep> |
1534 | Select the default time zone search path for zoneinfo.TZPATH | ||||
1535 | |||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1536 | --with-address-sanitizer |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1537 | enable AddressSanitizer memory error detector, |
1538 | 'asan' (default is no) | ||||
1539 | --with-memory-sanitizer enable MemorySanitizer allocation error detector, | ||||
1540 | 'msan' (default is no) | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 1541 | --with-undefined-behavior-sanitizer |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1542 | enable UndefinedBehaviorSanitizer undefined |
1543 | behaviour detector, 'ubsan' (default is no) | ||||
1544 | --with-libs='lib1 ...' link against additional libs (default is no) | ||||
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1545 | --with-system-expat build pyexpat module using an installed expat |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1546 | library, see Doc/library/pyexpat.rst (default is no) |
1547 | --with-system-ffi build _ctypes module using an installed ffi library, | ||||
1548 | see Doc/library/ctypes.rst (default is | ||||
1549 | system-dependent) | ||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1550 | --with-system-libmpdec build _decimal module using an installed libmpdec |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1551 | library, see Doc/library/decimal.rst (default is no) |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 1552 | --with-decimal-contextvar |
1553 | build _decimal module using a coroutine-local rather | ||||
1554 | than a thread-local context (default is yes) | ||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1555 | --with-tcltk-includes='-I...' |
1556 | override search for Tcl and Tk include files | ||||
1557 | --with-tcltk-libs='-L...' | ||||
1558 | override search for Tcl and Tk libs | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1559 | --with-dbmliborder=db1:db2:... |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1560 | override order to check db backends for dbm; a valid |
1561 | value is a colon separated string with the backend | ||||
1562 | names `ndbm', `gdbm' and `bdb'. | ||||
1563 | --with-doc-strings enable documentation strings (default is yes) | ||||
1564 | --with-pymalloc enable specialized mallocs (default is yes) | ||||
1565 | --with-c-locale-coercion | ||||
1566 | enable C locale coercion to a UTF-8 based locale | ||||
1567 | (default is yes) | ||||
1568 | --with-valgrind enable Valgrind support (default is no) | ||||
1569 | --with-dtrace enable DTrace support (default is no) | ||||
1570 | --with-libm=STRING override libm math library to STRING (default is | ||||
1571 | system-dependent) | ||||
1572 | --with-libc=STRING override libc C library to STRING (default is | ||||
1573 | system-dependent) | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 1574 | --with-platlibdir=DIRNAME |
1575 | Python library directory name (default is "lib") | ||||
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1576 | --with-computed-gotos enable computed gotos in evaluation loop (enabled by |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1577 | default on supported compilers) |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1578 | --with-ensurepip[=install|upgrade|no] |
1579 | "install" or "upgrade" using bundled pip (default is | ||||
1580 | upgrade) | ||||
1581 | --with-openssl=DIR override root of the OpenSSL directory to DIR | ||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 1582 | --with-ssl-default-suites=[python|openssl|STRING] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1583 | override default cipher suites string, python: use |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 1584 | Python's preferred selection (default), openssl: |
1585 | leave OpenSSL's defaults untouched, STRING: use a | ||||
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1586 | custom string, PROTOCOL_SSLv2 ignores the setting, |
1587 | see Doc/library/ssl.rst | ||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 1588 | --with-builtin-hashlib-hashes=md5,sha1,sha256,sha512,sha3,blake2 |
1589 | builtin hash modules, md5, sha1, sha256, sha512, | ||||
1590 | sha3 (with shake), blake2 | ||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 1591 | --with-experimental-isolated-subinterpreters |
1592 | better isolate subinterpreters, experimental build | ||||
1593 | mode (default is no) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1594 | |
1595 | Some influential environment variables: | ||||
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1596 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1597 | CC C compiler command |
1598 | CFLAGS C compiler flags | ||||
1599 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||||
1600 | nonstandard directory <lib dir> | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1601 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1602 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1603 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1604 | CPP C preprocessor |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 1605 | PROFILE_TASK |
1606 | Python args for PGO generation task | ||||
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 1607 | PKG_CONFIG path to pkg-config utility |
1608 | PKG_CONFIG_PATH | ||||
1609 | directories to add to pkg-config's search path | ||||
1610 | PKG_CONFIG_LIBDIR | ||||
1611 | path overriding pkg-config's built-in search path | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1612 | |
1613 | Use these variables to override the choices made by `configure' or to help | ||||
1614 | it to find libraries and programs with nonstandard names/locations. | ||||
1615 | |||||
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1616 | Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1617 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1618 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1619 | fi |
1620 | |||||
1621 | if test "$ac_init_help" = "recursive"; then | ||||
1622 | # If there are subdirs, report their specific --help. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1623 | 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] | 1624 | test -d "$ac_dir" || |
1625 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||||
1626 | continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1627 | ac_builddir=. |
1628 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1629 | case "$ac_dir" in |
1630 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1631 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1632 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1633 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1634 | 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] | 1635 | case $ac_top_builddir_sub in |
1636 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1637 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
1638 | esac ;; | ||||
1639 | esac | ||||
1640 | ac_abs_top_builddir=$ac_pwd | ||||
1641 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
1642 | # for backward compatibility: | ||||
1643 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1644 | |
1645 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1646 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1647 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1648 | ac_top_srcdir=$ac_top_builddir_sub |
1649 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
1650 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1651 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1652 | ac_top_srcdir=$srcdir |
1653 | ac_abs_top_srcdir=$srcdir ;; | ||||
1654 | *) # Relative name. | ||||
1655 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
1656 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
1657 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1658 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1659 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1660 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1661 | cd "$ac_dir" || { ac_status=$?; continue; } |
1662 | # Check for guested configure. | ||||
1663 | if test -f "$ac_srcdir/configure.gnu"; then | ||||
1664 | echo && | ||||
1665 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||||
1666 | elif test -f "$ac_srcdir/configure"; then | ||||
1667 | echo && | ||||
1668 | $SHELL "$ac_srcdir/configure" --help=recursive | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1669 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1670 | $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] | 1671 | fi || ac_status=$? |
1672 | cd "$ac_pwd" || { ac_status=$?; break; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1673 | done |
1674 | fi | ||||
1675 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1676 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1677 | if $ac_init_version; then |
1678 | cat <<\_ACEOF | ||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1679 | python configure 3.10 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1680 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1681 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1682 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1683 | This configure script is free software; the Free Software Foundation |
1684 | gives unlimited permission to copy, distribute and modify it. | ||||
1685 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1686 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1687 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1688 | |
1689 | ## ------------------------ ## | ||||
1690 | ## Autoconf initialization. ## | ||||
1691 | ## ------------------------ ## | ||||
1692 | |||||
1693 | # ac_fn_c_try_compile LINENO | ||||
1694 | # -------------------------- | ||||
1695 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||||
1696 | ac_fn_c_try_compile () | ||||
1697 | { | ||||
1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1699 | rm -f conftest.$ac_objext | ||||
1700 | if { { ac_try="$ac_compile" | ||||
1701 | case "(($ac_try" in | ||||
1702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1703 | *) ac_try_echo=$ac_try;; | ||||
1704 | esac | ||||
1705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1706 | $as_echo "$ac_try_echo"; } >&5 | ||||
1707 | (eval "$ac_compile") 2>conftest.err | ||||
1708 | ac_status=$? | ||||
1709 | if test -s conftest.err; then | ||||
1710 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1711 | cat conftest.er1 >&5 | ||||
1712 | mv -f conftest.er1 conftest.err | ||||
1713 | fi | ||||
1714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1715 | test $ac_status = 0; } && { | ||||
1716 | test -z "$ac_c_werror_flag" || | ||||
1717 | test ! -s conftest.err | ||||
1718 | } && test -s conftest.$ac_objext; then : | ||||
1719 | ac_retval=0 | ||||
1720 | else | ||||
1721 | $as_echo "$as_me: failed program was:" >&5 | ||||
1722 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1723 | |||||
1724 | ac_retval=1 | ||||
1725 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1726 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1727 | as_fn_set_status $ac_retval |
1728 | |||||
1729 | } # ac_fn_c_try_compile | ||||
1730 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1731 | # ac_fn_c_try_cpp LINENO |
1732 | # ---------------------- | ||||
1733 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||||
1734 | ac_fn_c_try_cpp () | ||||
1735 | { | ||||
1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1737 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||||
1738 | case "(($ac_try" in | ||||
1739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1740 | *) ac_try_echo=$ac_try;; | ||||
1741 | esac | ||||
1742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1743 | $as_echo "$ac_try_echo"; } >&5 | ||||
1744 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||||
1745 | ac_status=$? | ||||
1746 | if test -s conftest.err; then | ||||
1747 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1748 | cat conftest.er1 >&5 | ||||
1749 | mv -f conftest.er1 conftest.err | ||||
1750 | fi | ||||
1751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1752 | test $ac_status = 0; } > conftest.i && { | ||||
1753 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||||
1754 | test ! -s conftest.err | ||||
1755 | }; then : | ||||
1756 | ac_retval=0 | ||||
1757 | else | ||||
1758 | $as_echo "$as_me: failed program was:" >&5 | ||||
1759 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1760 | |||||
1761 | ac_retval=1 | ||||
1762 | fi | ||||
1763 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
1764 | as_fn_set_status $ac_retval | ||||
1765 | |||||
1766 | } # ac_fn_c_try_cpp | ||||
1767 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1768 | # ac_fn_c_try_link LINENO |
1769 | # ----------------------- | ||||
1770 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||||
1771 | ac_fn_c_try_link () | ||||
1772 | { | ||||
1773 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1774 | rm -f conftest.$ac_objext conftest$ac_exeext | ||||
1775 | if { { ac_try="$ac_link" | ||||
1776 | case "(($ac_try" in | ||||
1777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1778 | *) ac_try_echo=$ac_try;; | ||||
1779 | esac | ||||
1780 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1781 | $as_echo "$ac_try_echo"; } >&5 | ||||
1782 | (eval "$ac_link") 2>conftest.err | ||||
1783 | ac_status=$? | ||||
1784 | if test -s conftest.err; then | ||||
1785 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1786 | cat conftest.er1 >&5 | ||||
1787 | mv -f conftest.er1 conftest.err | ||||
1788 | fi | ||||
1789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1790 | test $ac_status = 0; } && { | ||||
1791 | test -z "$ac_c_werror_flag" || | ||||
1792 | test ! -s conftest.err | ||||
1793 | } && test -s conftest$ac_exeext && { | ||||
1794 | test "$cross_compiling" = yes || | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1795 | test -x conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1796 | }; then : |
1797 | ac_retval=0 | ||||
1798 | else | ||||
1799 | $as_echo "$as_me: failed program was:" >&5 | ||||
1800 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1801 | |||||
1802 | ac_retval=1 | ||||
1803 | fi | ||||
1804 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||||
1805 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||||
1806 | # interfere with the next link command; also delete a directory that is | ||||
1807 | # left behind by Apple's compiler. We do this before executing the actions. | ||||
1808 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1809 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1810 | as_fn_set_status $ac_retval |
1811 | |||||
1812 | } # ac_fn_c_try_link | ||||
1813 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1814 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1815 | # ------------------------------------------------------- | ||||
1816 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||||
1817 | # the include files in INCLUDES and setting the cache variable VAR | ||||
1818 | # accordingly. | ||||
1819 | ac_fn_c_check_header_mongrel () | ||||
1820 | { | ||||
1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1822 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1824 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1825 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1826 | $as_echo_n "(cached) " >&6 |
1827 | fi | ||||
1828 | eval ac_res=\$$3 | ||||
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1830 | $as_echo "$ac_res" >&6; } | ||||
1831 | else | ||||
1832 | # Is the header compilable? | ||||
1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||||
1834 | $as_echo_n "checking $2 usability... " >&6; } | ||||
1835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1836 | /* end confdefs.h. */ | ||||
1837 | $4 | ||||
1838 | #include <$2> | ||||
1839 | _ACEOF | ||||
1840 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1841 | ac_header_compiler=yes | ||||
1842 | else | ||||
1843 | ac_header_compiler=no | ||||
1844 | fi | ||||
1845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||||
1847 | $as_echo "$ac_header_compiler" >&6; } | ||||
1848 | |||||
1849 | # Is the header present? | ||||
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||||
1851 | $as_echo_n "checking $2 presence... " >&6; } | ||||
1852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1853 | /* end confdefs.h. */ | ||||
1854 | #include <$2> | ||||
1855 | _ACEOF | ||||
1856 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
1857 | ac_header_preproc=yes | ||||
1858 | else | ||||
1859 | ac_header_preproc=no | ||||
1860 | fi | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1861 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1863 | $as_echo "$ac_header_preproc" >&6; } | ||||
1864 | |||||
1865 | # So? What about this header? | ||||
1866 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||||
1867 | yes:no: ) | ||||
1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||||
1869 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||||
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1871 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
1872 | ;; | ||||
1873 | no:yes:* ) | ||||
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||||
1875 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||||
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||||
1877 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||||
1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||||
1879 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||||
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||||
1881 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||||
1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1883 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1884 | ( $as_echo "## --------------------------------------- ## |
1885 | ## Report this to https://bugs.python.org/ ## | ||||
1886 | ## --------------------------------------- ##" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1887 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1888 | ;; | ||||
1889 | esac | ||||
1890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1891 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1892 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1893 | $as_echo_n "(cached) " >&6 |
1894 | else | ||||
1895 | eval "$3=\$ac_header_compiler" | ||||
1896 | fi | ||||
1897 | eval ac_res=\$$3 | ||||
1898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1899 | $as_echo "$ac_res" >&6; } | ||||
1900 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1901 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1902 | |
1903 | } # ac_fn_c_check_header_mongrel | ||||
1904 | |||||
1905 | # ac_fn_c_try_run LINENO | ||||
1906 | # ---------------------- | ||||
1907 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||||
1908 | # that executables *can* be run. | ||||
1909 | ac_fn_c_try_run () | ||||
1910 | { | ||||
1911 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1912 | if { { ac_try="$ac_link" | ||||
1913 | case "(($ac_try" in | ||||
1914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1915 | *) ac_try_echo=$ac_try;; | ||||
1916 | esac | ||||
1917 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1918 | $as_echo "$ac_try_echo"; } >&5 | ||||
1919 | (eval "$ac_link") 2>&5 | ||||
1920 | ac_status=$? | ||||
1921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1922 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||||
1923 | { { case "(($ac_try" in | ||||
1924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1925 | *) ac_try_echo=$ac_try;; | ||||
1926 | esac | ||||
1927 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1928 | $as_echo "$ac_try_echo"; } >&5 | ||||
1929 | (eval "$ac_try") 2>&5 | ||||
1930 | ac_status=$? | ||||
1931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1932 | test $ac_status = 0; }; }; then : | ||||
1933 | ac_retval=0 | ||||
1934 | else | ||||
1935 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||||
1936 | $as_echo "$as_me: failed program was:" >&5 | ||||
1937 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1938 | |||||
1939 | ac_retval=$ac_status | ||||
1940 | fi | ||||
1941 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1942 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1943 | as_fn_set_status $ac_retval |
1944 | |||||
1945 | } # ac_fn_c_try_run | ||||
1946 | |||||
1947 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||||
1948 | # ------------------------------------------------------- | ||||
1949 | # Tests whether HEADER exists and can be compiled using the include files in | ||||
1950 | # INCLUDES, setting the cache variable VAR accordingly. | ||||
1951 | ac_fn_c_check_header_compile () | ||||
1952 | { | ||||
1953 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1955 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1956 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1957 | $as_echo_n "(cached) " >&6 |
1958 | else | ||||
1959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1960 | /* end confdefs.h. */ | ||||
1961 | $4 | ||||
1962 | #include <$2> | ||||
1963 | _ACEOF | ||||
1964 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1965 | eval "$3=yes" | ||||
1966 | else | ||||
1967 | eval "$3=no" | ||||
1968 | fi | ||||
1969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1970 | fi | ||||
1971 | eval ac_res=\$$3 | ||||
1972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1973 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1974 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1975 | |
1976 | } # ac_fn_c_check_header_compile | ||||
1977 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1978 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1979 | # ------------------------------------------- | ||||
1980 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||||
1981 | # variable VAR accordingly. | ||||
1982 | ac_fn_c_check_type () | ||||
1983 | { | ||||
1984 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1986 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1987 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1988 | $as_echo_n "(cached) " >&6 |
1989 | else | ||||
1990 | eval "$3=no" | ||||
1991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1992 | /* end confdefs.h. */ | ||||
1993 | $4 | ||||
1994 | int | ||||
1995 | main () | ||||
1996 | { | ||||
1997 | if (sizeof ($2)) | ||||
1998 | return 0; | ||||
1999 | ; | ||||
2000 | return 0; | ||||
2001 | } | ||||
2002 | _ACEOF | ||||
2003 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2005 | /* end confdefs.h. */ | ||||
2006 | $4 | ||||
2007 | int | ||||
2008 | main () | ||||
2009 | { | ||||
2010 | if (sizeof (($2))) | ||||
2011 | return 0; | ||||
2012 | ; | ||||
2013 | return 0; | ||||
2014 | } | ||||
2015 | _ACEOF | ||||
2016 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2017 | |||||
2018 | else | ||||
2019 | eval "$3=yes" | ||||
2020 | fi | ||||
2021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2022 | fi | ||||
2023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2024 | fi | ||||
2025 | eval ac_res=\$$3 | ||||
2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2027 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2028 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2029 | |
2030 | } # ac_fn_c_check_type | ||||
2031 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2032 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2033 | # -------------------------------------------- | ||||
2034 | # Tries to find the compile-time value of EXPR in a program that includes | ||||
2035 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||||
2036 | # computed | ||||
2037 | ac_fn_c_compute_int () | ||||
2038 | { | ||||
2039 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2040 | if test "$cross_compiling" = yes; then | ||||
2041 | # Depending upon the size, compute the lo and hi bounds. | ||||
2042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2043 | /* end confdefs.h. */ | ||||
2044 | $4 | ||||
2045 | int | ||||
2046 | main () | ||||
2047 | { | ||||
2048 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2049 | test_array [0] = 0; |
2050 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2051 | |
2052 | ; | ||||
2053 | return 0; | ||||
2054 | } | ||||
2055 | _ACEOF | ||||
2056 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2057 | ac_lo=0 ac_mid=0 | ||||
2058 | while :; do | ||||
2059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2060 | /* end confdefs.h. */ | ||||
2061 | $4 | ||||
2062 | int | ||||
2063 | main () | ||||
2064 | { | ||||
2065 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2066 | test_array [0] = 0; |
2067 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2068 | |
2069 | ; | ||||
2070 | return 0; | ||||
2071 | } | ||||
2072 | _ACEOF | ||||
2073 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2074 | ac_hi=$ac_mid; break | ||||
2075 | else | ||||
2076 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||||
2077 | if test $ac_lo -le $ac_mid; then | ||||
2078 | ac_lo= ac_hi= | ||||
2079 | break | ||||
2080 | fi | ||||
2081 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||||
2082 | fi | ||||
2083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2084 | done | ||||
2085 | else | ||||
2086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2087 | /* end confdefs.h. */ | ||||
2088 | $4 | ||||
2089 | int | ||||
2090 | main () | ||||
2091 | { | ||||
2092 | static int test_array [1 - 2 * !(($2) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2093 | test_array [0] = 0; |
2094 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2095 | |
2096 | ; | ||||
2097 | return 0; | ||||
2098 | } | ||||
2099 | _ACEOF | ||||
2100 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2101 | ac_hi=-1 ac_mid=-1 | ||||
2102 | while :; do | ||||
2103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2104 | /* end confdefs.h. */ | ||||
2105 | $4 | ||||
2106 | int | ||||
2107 | main () | ||||
2108 | { | ||||
2109 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2110 | test_array [0] = 0; |
2111 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2112 | |
2113 | ; | ||||
2114 | return 0; | ||||
2115 | } | ||||
2116 | _ACEOF | ||||
2117 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2118 | ac_lo=$ac_mid; break | ||||
2119 | else | ||||
2120 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||||
2121 | if test $ac_mid -le $ac_hi; then | ||||
2122 | ac_lo= ac_hi= | ||||
2123 | break | ||||
2124 | fi | ||||
2125 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||||
2126 | fi | ||||
2127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2128 | done | ||||
2129 | else | ||||
2130 | ac_lo= ac_hi= | ||||
2131 | fi | ||||
2132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2133 | fi | ||||
2134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2135 | # Binary search between lo and hi bounds. | ||||
2136 | while test "x$ac_lo" != "x$ac_hi"; do | ||||
2137 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||||
2138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2139 | /* end confdefs.h. */ | ||||
2140 | $4 | ||||
2141 | int | ||||
2142 | main () | ||||
2143 | { | ||||
2144 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2145 | test_array [0] = 0; |
2146 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2147 | |
2148 | ; | ||||
2149 | return 0; | ||||
2150 | } | ||||
2151 | _ACEOF | ||||
2152 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2153 | ac_hi=$ac_mid | ||||
2154 | else | ||||
2155 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||||
2156 | fi | ||||
2157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2158 | done | ||||
2159 | case $ac_lo in #(( | ||||
2160 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||||
2161 | '') ac_retval=1 ;; | ||||
2162 | esac | ||||
2163 | else | ||||
2164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2165 | /* end confdefs.h. */ | ||||
2166 | $4 | ||||
2167 | static long int longval () { return $2; } | ||||
2168 | static unsigned long int ulongval () { return $2; } | ||||
2169 | #include <stdio.h> | ||||
2170 | #include <stdlib.h> | ||||
2171 | int | ||||
2172 | main () | ||||
2173 | { | ||||
2174 | |||||
2175 | FILE *f = fopen ("conftest.val", "w"); | ||||
2176 | if (! f) | ||||
2177 | return 1; | ||||
2178 | if (($2) < 0) | ||||
2179 | { | ||||
2180 | long int i = longval (); | ||||
2181 | if (i != ($2)) | ||||
2182 | return 1; | ||||
2183 | fprintf (f, "%ld", i); | ||||
2184 | } | ||||
2185 | else | ||||
2186 | { | ||||
2187 | unsigned long int i = ulongval (); | ||||
2188 | if (i != ($2)) | ||||
2189 | return 1; | ||||
2190 | fprintf (f, "%lu", i); | ||||
2191 | } | ||||
2192 | /* Do not output a trailing newline, as this causes \r\n confusion | ||||
2193 | on some platforms. */ | ||||
2194 | return ferror (f) || fclose (f) != 0; | ||||
2195 | |||||
2196 | ; | ||||
2197 | return 0; | ||||
2198 | } | ||||
2199 | _ACEOF | ||||
2200 | if ac_fn_c_try_run "$LINENO"; then : | ||||
2201 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||||
2202 | else | ||||
2203 | ac_retval=1 | ||||
2204 | fi | ||||
2205 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
2206 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
2207 | rm -f conftest.val | ||||
2208 | |||||
2209 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2210 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2211 | as_fn_set_status $ac_retval |
2212 | |||||
2213 | } # ac_fn_c_compute_int | ||||
2214 | |||||
2215 | # ac_fn_c_check_func LINENO FUNC VAR | ||||
2216 | # ---------------------------------- | ||||
2217 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||||
2218 | ac_fn_c_check_func () | ||||
2219 | { | ||||
2220 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
2222 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2223 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2224 | $as_echo_n "(cached) " >&6 |
2225 | else | ||||
2226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2227 | /* end confdefs.h. */ | ||||
2228 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||||
2229 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||||
2230 | #define $2 innocuous_$2 | ||||
2231 | |||||
2232 | /* System header to define __stub macros and hopefully few prototypes, | ||||
2233 | which can conflict with char $2 (); below. | ||||
2234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
2235 | <limits.h> exists even on freestanding compilers. */ | ||||
2236 | |||||
2237 | #ifdef __STDC__ | ||||
2238 | # include <limits.h> | ||||
2239 | #else | ||||
2240 | # include <assert.h> | ||||
2241 | #endif | ||||
2242 | |||||
2243 | #undef $2 | ||||
2244 | |||||
2245 | /* Override any GCC internal prototype to avoid an error. | ||||
2246 | Use char because int might match the return type of a GCC | ||||
2247 | builtin and then its argument prototype would still apply. */ | ||||
2248 | #ifdef __cplusplus | ||||
2249 | extern "C" | ||||
2250 | #endif | ||||
2251 | char $2 (); | ||||
2252 | /* The GNU C library defines this for functions which it implements | ||||
2253 | to always fail with ENOSYS. Some functions are actually named | ||||
2254 | something starting with __ and the normal name is an alias. */ | ||||
2255 | #if defined __stub_$2 || defined __stub___$2 | ||||
2256 | choke me | ||||
2257 | #endif | ||||
2258 | |||||
2259 | int | ||||
2260 | main () | ||||
2261 | { | ||||
2262 | return $2 (); | ||||
2263 | ; | ||||
2264 | return 0; | ||||
2265 | } | ||||
2266 | _ACEOF | ||||
2267 | if ac_fn_c_try_link "$LINENO"; then : | ||||
2268 | eval "$3=yes" | ||||
2269 | else | ||||
2270 | eval "$3=no" | ||||
2271 | fi | ||||
2272 | rm -f core conftest.err conftest.$ac_objext \ | ||||
2273 | conftest$ac_exeext conftest.$ac_ext | ||||
2274 | fi | ||||
2275 | eval ac_res=\$$3 | ||||
2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2277 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2278 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2279 | |
2280 | } # ac_fn_c_check_func | ||||
2281 | |||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2282 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2283 | # --------------------------------------------- | ||||
2284 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||||
2285 | # accordingly. | ||||
2286 | ac_fn_c_check_decl () | ||||
2287 | { | ||||
2288 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2289 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||||
2290 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||||
2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||||
2292 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||||
2293 | if eval \${$3+:} false; then : | ||||
2294 | $as_echo_n "(cached) " >&6 | ||||
2295 | else | ||||
2296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2297 | /* end confdefs.h. */ | ||||
2298 | $4 | ||||
2299 | int | ||||
2300 | main () | ||||
2301 | { | ||||
2302 | #ifndef $as_decl_name | ||||
2303 | #ifdef __cplusplus | ||||
2304 | (void) $as_decl_use; | ||||
2305 | #else | ||||
2306 | (void) $as_decl_name; | ||||
2307 | #endif | ||||
2308 | #endif | ||||
2309 | |||||
2310 | ; | ||||
2311 | return 0; | ||||
2312 | } | ||||
2313 | _ACEOF | ||||
2314 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2315 | eval "$3=yes" | ||||
2316 | else | ||||
2317 | eval "$3=no" | ||||
2318 | fi | ||||
2319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2320 | fi | ||||
2321 | eval ac_res=\$$3 | ||||
2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2323 | $as_echo "$ac_res" >&6; } | ||||
2324 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
2325 | |||||
2326 | } # ac_fn_c_check_decl | ||||
2327 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2328 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2329 | # ---------------------------------------------------- | ||||
2330 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||||
2331 | # INCLUDES, setting cache variable VAR accordingly. | ||||
2332 | ac_fn_c_check_member () | ||||
2333 | { | ||||
2334 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||||
2336 | $as_echo_n "checking for $2.$3... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2337 | if eval \${$4+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2338 | $as_echo_n "(cached) " >&6 |
2339 | else | ||||
2340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2341 | /* end confdefs.h. */ | ||||
2342 | $5 | ||||
2343 | int | ||||
2344 | main () | ||||
2345 | { | ||||
2346 | static $2 ac_aggr; | ||||
2347 | if (ac_aggr.$3) | ||||
2348 | return 0; | ||||
2349 | ; | ||||
2350 | return 0; | ||||
2351 | } | ||||
2352 | _ACEOF | ||||
2353 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2354 | eval "$4=yes" | ||||
2355 | else | ||||
2356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2357 | /* end confdefs.h. */ | ||||
2358 | $5 | ||||
2359 | int | ||||
2360 | main () | ||||
2361 | { | ||||
2362 | static $2 ac_aggr; | ||||
2363 | if (sizeof ac_aggr.$3) | ||||
2364 | return 0; | ||||
2365 | ; | ||||
2366 | return 0; | ||||
2367 | } | ||||
2368 | _ACEOF | ||||
2369 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2370 | eval "$4=yes" | ||||
2371 | else | ||||
2372 | eval "$4=no" | ||||
2373 | fi | ||||
2374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2375 | fi | ||||
2376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2377 | fi | ||||
2378 | eval ac_res=\$$4 | ||||
2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2380 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2381 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2382 | |
2383 | } # ac_fn_c_check_member | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2384 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2385 | This file contains any messages produced by compilers while |
2386 | running configure, to aid debugging if configure makes a mistake. | ||||
2387 | |||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 2388 | It was created by python $as_me 3.10, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2389 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2390 | |
2391 | $ $0 $@ | ||||
2392 | |||||
2393 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2394 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2395 | { |
2396 | cat <<_ASUNAME | ||||
2397 | ## --------- ## | ||||
2398 | ## Platform. ## | ||||
2399 | ## --------- ## | ||||
2400 | |||||
2401 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||||
2402 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||||
2403 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||||
2404 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||||
2405 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||||
2406 | |||||
2407 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||||
2408 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||||
2409 | |||||
2410 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||||
2411 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||||
2412 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2413 | /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] | 2414 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2415 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||||
2416 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||||
2417 | |||||
2418 | _ASUNAME | ||||
2419 | |||||
2420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2421 | for as_dir in $PATH | ||||
2422 | do | ||||
2423 | IFS=$as_save_IFS | ||||
2424 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2425 | $as_echo "PATH: $as_dir" |
2426 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2427 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2428 | |
2429 | } >&5 | ||||
2430 | |||||
2431 | cat >&5 <<_ACEOF | ||||
2432 | |||||
2433 | |||||
2434 | ## ----------- ## | ||||
2435 | ## Core tests. ## | ||||
2436 | ## ----------- ## | ||||
2437 | |||||
2438 | _ACEOF | ||||
2439 | |||||
2440 | |||||
2441 | # Keep a trace of the command line. | ||||
2442 | # 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] | 2443 | # 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] | 2444 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2445 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2446 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2447 | ac_configure_args0= |
2448 | ac_configure_args1= | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2449 | ac_must_keep_next=false |
2450 | for ac_pass in 1 2 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2451 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2452 | for ac_arg |
2453 | do | ||||
2454 | case $ac_arg in | ||||
2455 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||||
2456 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||||
2457 | | -silent | --silent | --silen | --sile | --sil) | ||||
2458 | continue ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2459 | *\'*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2460 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2461 | esac |
2462 | case $ac_pass in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2463 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2464 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2465 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2466 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2467 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2468 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2469 | case $ac_arg in |
2470 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||||
2471 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||||
2472 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||||
2473 | | -with-* | --with-* | -without-* | --without-* | --x) | ||||
2474 | case "$ac_configure_args0 " in | ||||
2475 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||||
2476 | esac | ||||
2477 | ;; | ||||
2478 | -* ) ac_must_keep_next=true ;; | ||||
2479 | esac | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2480 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2481 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2482 | ;; |
2483 | esac | ||||
2484 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2485 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2486 | { ac_configure_args0=; unset ac_configure_args0;} |
2487 | { ac_configure_args1=; unset ac_configure_args1;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | |
2489 | # When interrupted or exit'd, cleanup temporary files, and complete | ||||
2490 | # config.log. We remove comments because anyway the quotes in there | ||||
2491 | # would cause problems or look ugly. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2492 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2493 | # 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] | 2494 | trap 'exit_status=$? |
2495 | # Save into config.log some information that might help in debugging. | ||||
2496 | { | ||||
2497 | echo | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2498 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2499 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2500 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2501 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2502 | echo |
2503 | # The following way of writing the cache mishandles newlines in values, | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2504 | ( |
2505 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||||
2506 | eval ac_val=\$$ac_var | ||||
2507 | case $ac_val in #( | ||||
2508 | *${as_nl}*) | ||||
2509 | case $ac_var in #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2510 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2511 | $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] | 2512 | esac |
2513 | case $ac_var in #( | ||||
2514 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2515 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2516 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2517 | esac ;; |
2518 | esac | ||||
2519 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2520 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2521 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2522 | *${as_nl}ac_space=\ *) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2523 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2524 | "s/'\''/'\''\\\\'\'''\''/g; |
2525 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||||
2526 | ;; #( | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2527 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2528 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2529 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2530 | esac | |
2531 | sort | ||||
2532 | ) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2533 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2534 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2535 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2536 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2537 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2538 | echo |
2539 | for ac_var in $ac_subst_vars | ||||
2540 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2541 | eval ac_val=\$$ac_var |
2542 | case $ac_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2543 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2544 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2545 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2546 | done | sort |
2547 | echo | ||||
2548 | |||||
2549 | if test -n "$ac_subst_files"; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2550 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2551 | ## File substitutions. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2552 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2553 | echo |
2554 | for ac_var in $ac_subst_files | ||||
2555 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2556 | eval ac_val=\$$ac_var |
2557 | case $ac_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2558 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2559 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2560 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2561 | done | sort |
2562 | echo | ||||
2563 | fi | ||||
2564 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | if test -s confdefs.h; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2566 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2568 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2569 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2570 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2571 | echo |
2572 | fi | ||||
2573 | test "$ac_signal" != 0 && | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2574 | $as_echo "$as_me: caught signal $ac_signal" |
2575 | $as_echo "$as_me: exit $exit_status" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2576 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2577 | rm -f core *.core core.conftest.* && |
2578 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2579 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2580 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2581 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2582 | 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] | 2583 | done |
2584 | ac_signal=0 | ||||
2585 | |||||
2586 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2587 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2588 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2589 | $as_echo "/* confdefs.h */" > confdefs.h |
2590 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2591 | # Predefined preprocessor variables. |
2592 | |||||
2593 | cat >>confdefs.h <<_ACEOF | ||||
2594 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||||
2595 | _ACEOF | ||||
2596 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2597 | cat >>confdefs.h <<_ACEOF |
2598 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||||
2599 | _ACEOF | ||||
2600 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2601 | cat >>confdefs.h <<_ACEOF |
2602 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||||
2603 | _ACEOF | ||||
2604 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 | cat >>confdefs.h <<_ACEOF |
2606 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||||
2607 | _ACEOF | ||||
2608 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2609 | cat >>confdefs.h <<_ACEOF |
2610 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||||
2611 | _ACEOF | ||||
2612 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2613 | cat >>confdefs.h <<_ACEOF |
2614 | #define PACKAGE_URL "$PACKAGE_URL" | ||||
2615 | _ACEOF | ||||
2616 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2617 | |
2618 | # 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] | 2619 | # Prefer an explicitly selected file to automatically selected ones. |
2620 | ac_site_file1=NONE | ||||
2621 | ac_site_file2=NONE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2622 | if test -n "$CONFIG_SITE"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2623 | # We do not want a PATH search for config.site. |
2624 | case $CONFIG_SITE in #(( | ||||
2625 | -*) ac_site_file1=./$CONFIG_SITE;; | ||||
2626 | */*) ac_site_file1=$CONFIG_SITE;; | ||||
2627 | *) ac_site_file1=./$CONFIG_SITE;; | ||||
2628 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2629 | elif test "x$prefix" != xNONE; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2630 | ac_site_file1=$prefix/share/config.site |
2631 | ac_site_file2=$prefix/etc/config.site | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2632 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2633 | ac_site_file1=$ac_default_prefix/share/config.site |
2634 | ac_site_file2=$ac_default_prefix/etc/config.site | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2635 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2636 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2637 | do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2638 | test "x$ac_site_file" = xNONE && continue |
2639 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||||
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||||
2641 | $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] | 2642 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2643 | . "$ac_site_file" \ |
2644 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
2645 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
2646 | as_fn_error $? "failed to load site script $ac_site_file | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2647 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2648 | fi |
2649 | done | ||||
2650 | |||||
2651 | if test -r "$cache_file"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2652 | # Some versions of bash will fail to source /dev/null (special files |
2653 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||||
2654 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||||
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||||
2656 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2657 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2658 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2659 | *) . "./$cache_file";; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2660 | esac |
2661 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2662 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2664 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2665 | >$cache_file |
2666 | fi | ||||
2667 | |||||
2668 | # Check that the precious variables saved in the cache have kept the same | ||||
2669 | # value. | ||||
2670 | ac_cache_corrupted=false | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2671 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2672 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2673 | eval ac_new_set=\$ac_env_${ac_var}_set | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2674 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2675 | eval ac_new_val=\$ac_env_${ac_var}_value | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | case $ac_old_set,$ac_new_set in |
2677 | set,) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2679 | $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] | 2680 | ac_cache_corrupted=: ;; |
2681 | ,set) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2683 | $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] | 2684 | ac_cache_corrupted=: ;; |
2685 | ,);; | ||||
2686 | *) | ||||
2687 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2688 | # differences in whitespace do not lead to failure. |
2689 | ac_old_val_w=`echo x $ac_old_val` | ||||
2690 | ac_new_val_w=`echo x $ac_new_val` | ||||
2691 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||||
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||||
2693 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||||
2694 | ac_cache_corrupted=: | ||||
2695 | else | ||||
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||||
2697 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||||
2698 | eval $ac_var=\$ac_old_val | ||||
2699 | fi | ||||
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||||
2701 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||||
2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||||
2703 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2704 | fi;; |
2705 | esac | ||||
2706 | # Pass precious variables to config.status. | ||||
2707 | if test "$ac_new_set" = set; then | ||||
2708 | case $ac_new_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2709 | *\'*) 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] | 2710 | *) ac_arg=$ac_var=$ac_new_val ;; |
2711 | esac | ||||
2712 | case " $ac_configure_args " in | ||||
2713 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2714 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2715 | esac |
2716 | fi | ||||
2717 | done | ||||
2718 | if $ac_cache_corrupted; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2720 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||||
2722 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2723 | 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] | 2724 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2725 | ## -------------------- ## |
2726 | ## Main body of script. ## | ||||
2727 | ## -------------------- ## | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2728 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2729 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2730 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
2733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2734 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2735 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2736 | |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2737 | |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 2738 | |
2739 | |||||
Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame] | 2740 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2741 | # If we're building out-of-tree, we need to make sure the following |
2742 | # resources get picked up before their $srcdir counterparts. | ||||
2743 | # Objects/ -> typeslots.inc | ||||
Lysandros Nikolaou | 314858e | 2020-06-20 21:07:25 +0300 | [diff] [blame] | 2744 | # Include/ -> Python-ast.h |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2745 | # Python/ -> importlib.h |
2746 | # (A side effect of this is that these resources will automatically be | ||||
2747 | # regenerated when building out-of-tree, regardless of whether or not | ||||
2748 | # the $srcdir counterpart is up-to-date. This is an acceptable trade | ||||
2749 | # off.) | ||||
2750 | BASECPPFLAGS="-IObjects -IInclude -IPython" | ||||
2751 | else | ||||
2752 | BASECPPFLAGS="" | ||||
2753 | fi | ||||
2754 | |||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2755 | |
2756 | |||||
2757 | |||||
2758 | |||||
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 2759 | if test -e $srcdir/.git |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2760 | then |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2761 | # Extract the first word of "git", so it can be a program name with args. |
2762 | set dummy git; ac_word=$2 | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2764 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2765 | if ${ac_cv_prog_HAS_GIT+:} false; then : |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2766 | $as_echo_n "(cached) " >&6 |
2767 | else | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2768 | if test -n "$HAS_GIT"; then |
2769 | 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] | 2770 | else |
2771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2772 | for as_dir in $PATH | ||||
2773 | do | ||||
2774 | IFS=$as_save_IFS | ||||
2775 | test -z "$as_dir" && as_dir=. | ||||
2776 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2777 | 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] | 2778 | ac_cv_prog_HAS_GIT="found" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2780 | break 2 | ||||
2781 | fi | ||||
2782 | done | ||||
2783 | done | ||||
2784 | IFS=$as_save_IFS | ||||
2785 | |||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2786 | 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] | 2787 | fi |
2788 | fi | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2789 | HAS_GIT=$ac_cv_prog_HAS_GIT |
2790 | if test -n "$HAS_GIT"; then | ||||
2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 | ||||
2792 | $as_echo "$HAS_GIT" >&6; } | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2793 | else |
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
2795 | $as_echo "no" >&6; } | ||||
2796 | fi | ||||
2797 | |||||
2798 | |||||
2799 | else | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2800 | HAS_GIT=no-repository |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2801 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2802 | if test $HAS_GIT = found |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2803 | then |
Xiang Zhang | 4c85557 | 2018-08-20 22:36:19 +0800 | [diff] [blame] | 2804 | GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" |
2805 | GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" | ||||
2806 | GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2807 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2808 | GITVERSION="" |
2809 | GITTAG="" | ||||
2810 | GITBRANCH="" | ||||
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2811 | fi |
2812 | |||||
2813 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2814 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2815 | |
2816 | |||||
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2817 | ac_aux_dir= |
2818 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||||
2819 | if test -f "$ac_dir/install-sh"; then | ||||
2820 | ac_aux_dir=$ac_dir | ||||
2821 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||||
2822 | break | ||||
2823 | elif test -f "$ac_dir/install.sh"; then | ||||
2824 | ac_aux_dir=$ac_dir | ||||
2825 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||||
2826 | break | ||||
2827 | elif test -f "$ac_dir/shtool"; then | ||||
2828 | ac_aux_dir=$ac_dir | ||||
2829 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||||
2830 | break | ||||
2831 | fi | ||||
2832 | done | ||||
2833 | if test -z "$ac_aux_dir"; then | ||||
2834 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||||
2835 | fi | ||||
2836 | |||||
2837 | # These three variables are undocumented and unsupported, | ||||
2838 | # and are intended to be withdrawn in a future Autoconf release. | ||||
2839 | # They can cause serious problems if a builder's source tree is in a directory | ||||
2840 | # whose full name contains unusual characters. | ||||
2841 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||||
2842 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||||
2843 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||||
2844 | |||||
2845 | |||||
2846 | # Make sure we can run config.sub. | ||||
2847 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||||
2848 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||||
2849 | |||||
2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||||
2851 | $as_echo_n "checking build system type... " >&6; } | ||||
2852 | if ${ac_cv_build+:} false; then : | ||||
2853 | $as_echo_n "(cached) " >&6 | ||||
2854 | else | ||||
2855 | ac_build_alias=$build_alias | ||||
2856 | test "x$ac_build_alias" = x && | ||||
2857 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||||
2858 | test "x$ac_build_alias" = x && | ||||
2859 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||||
2860 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||||
2861 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||||
2862 | |||||
2863 | fi | ||||
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||||
2865 | $as_echo "$ac_cv_build" >&6; } | ||||
2866 | case $ac_cv_build in | ||||
2867 | *-*-*) ;; | ||||
2868 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||||
2869 | esac | ||||
2870 | build=$ac_cv_build | ||||
2871 | ac_save_IFS=$IFS; IFS='-' | ||||
2872 | set x $ac_cv_build | ||||
2873 | shift | ||||
2874 | build_cpu=$1 | ||||
2875 | build_vendor=$2 | ||||
2876 | shift; shift | ||||
2877 | # Remember, the first character of IFS is used to create $*, | ||||
2878 | # except with old shells: | ||||
2879 | build_os=$* | ||||
2880 | IFS=$ac_save_IFS | ||||
2881 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||||
2882 | |||||
2883 | |||||
2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||||
2885 | $as_echo_n "checking host system type... " >&6; } | ||||
2886 | if ${ac_cv_host+:} false; then : | ||||
2887 | $as_echo_n "(cached) " >&6 | ||||
2888 | else | ||||
2889 | if test "x$host_alias" = x; then | ||||
2890 | ac_cv_host=$ac_cv_build | ||||
2891 | else | ||||
2892 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||||
2893 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||||
2894 | fi | ||||
2895 | |||||
2896 | fi | ||||
2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||||
2898 | $as_echo "$ac_cv_host" >&6; } | ||||
2899 | case $ac_cv_host in | ||||
2900 | *-*-*) ;; | ||||
2901 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||||
2902 | esac | ||||
2903 | host=$ac_cv_host | ||||
2904 | ac_save_IFS=$IFS; IFS='-' | ||||
2905 | set x $ac_cv_host | ||||
2906 | shift | ||||
2907 | host_cpu=$1 | ||||
2908 | host_vendor=$2 | ||||
2909 | shift; shift | ||||
2910 | # Remember, the first character of IFS is used to create $*, | ||||
2911 | # except with old shells: | ||||
2912 | host_os=$* | ||||
2913 | IFS=$ac_save_IFS | ||||
2914 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||||
2915 | |||||
2916 | |||||
2917 | |||||
doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2918 | |
2919 | |||||
Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2920 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
2921 | rm -f pybuilddir.txt | ||||
2922 | |||||
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2923 | for ac_prog in python$PACKAGE_VERSION python3 python |
2924 | do | ||||
2925 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
2926 | set dummy $ac_prog; ac_word=$2 | ||||
2927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
2928 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2929 | if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2930 | $as_echo_n "(cached) " >&6 |
2931 | else | ||||
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2932 | if test -n "$PYTHON_FOR_REGEN"; then |
2933 | 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] | 2934 | else |
2935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2936 | for as_dir in $PATH | ||||
2937 | do | ||||
2938 | IFS=$as_save_IFS | ||||
2939 | test -z "$as_dir" && as_dir=. | ||||
2940 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
2941 | 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] | 2942 | ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2944 | break 2 | ||||
2945 | fi | ||||
2946 | done | ||||
2947 | done | ||||
2948 | IFS=$as_save_IFS | ||||
2949 | |||||
2950 | fi | ||||
2951 | fi | ||||
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2952 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN |
2953 | if test -n "$PYTHON_FOR_REGEN"; then | ||||
2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 | ||||
2955 | $as_echo "$PYTHON_FOR_REGEN" >&6; } | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2956 | else |
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
2958 | $as_echo "no" >&6; } | ||||
2959 | fi | ||||
2960 | |||||
2961 | |||||
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2962 | test -n "$PYTHON_FOR_REGEN" && break |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2963 | done |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2964 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2965 | |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2966 | |
2967 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2968 | if test "$cross_compiling" = yes; then |
2969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | ||||
2970 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | ||||
2971 | if test -z "$PYTHON_FOR_BUILD"; then | ||||
2972 | for interp in python$PACKAGE_VERSION python3 python; do | ||||
2973 | which $interp >/dev/null 2>&1 || continue | ||||
Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 2974 | 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] | 2975 | break |
2976 | fi | ||||
2977 | interp= | ||||
2978 | done | ||||
2979 | if test x$interp = x; then | ||||
2980 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | ||||
2981 | fi | ||||
2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | ||||
2983 | $as_echo "$interp" >&6; } | ||||
Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame] | 2984 | 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] | 2985 | fi |
Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 2986 | elif test "$cross_compiling" = maybe; then |
2987 | 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] | 2988 | else |
2989 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | ||||
2990 | fi | ||||
2991 | |||||
2992 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2993 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2994 | if test "$prefix" != "/"; then |
2995 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | ||||
2996 | fi | ||||
2997 | |||||
2998 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2999 | |
3000 | |||||
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 3001 | # We don't use PACKAGE_ variables, and they cause conflicts |
3002 | # with other autoconf-based packages that include Python.h | ||||
3003 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | ||||
3004 | rm confdefs.h | ||||
3005 | mv confdefs.h.new confdefs.h | ||||
3006 | |||||
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 3007 | |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 3008 | VERSION=3.10 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 3009 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 3010 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3011 | |
3012 | SOVERSION=1.0 | ||||
3013 | |||||
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3014 | # The later defininition of _XOPEN_SOURCE disables certain features |
3015 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | ||||
3016 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3017 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3018 | |
3019 | |||||
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3020 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
3021 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | ||||
3022 | # them. | ||||
3023 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3024 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3025 | |
3026 | |||||
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3027 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
3028 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | ||||
3029 | # them. | ||||
3030 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3031 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3032 | |
3033 | |||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3034 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3035 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
3036 | # them. | ||||
3037 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3038 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3039 | |
3040 | |||||
3041 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3042 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3043 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3044 | # Arguments passed to configure. |
3045 | |||||
3046 | CONFIG_ARGS="$ac_configure_args" | ||||
3047 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
3049 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3050 | # Check whether --enable-universalsdk was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3051 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3052 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3053 | case $enableval in |
3054 | yes) | ||||
Serhiy Storchaka | 88cc339 | 2018-06-04 08:20:25 +0300 | [diff] [blame] | 3055 | # Locate the best usable SDK, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3056 | # information |
3057 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3058 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3059 | then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3060 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
3061 | if test ! -d "${enableval}" | ||||
3062 | then | ||||
3063 | enableval=/ | ||||
3064 | fi | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3065 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3066 | ;; |
3067 | esac | ||||
3068 | case $enableval in | ||||
3069 | no) | ||||
3070 | UNIVERSALSDK= | ||||
3071 | enable_universalsdk= | ||||
3072 | ;; | ||||
3073 | *) | ||||
3074 | UNIVERSALSDK=$enableval | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3075 | if test ! -d "${UNIVERSALSDK}" |
3076 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3077 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3078 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3079 | ;; |
3080 | esac | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3081 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3082 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3083 | else |
3084 | |||||
3085 | UNIVERSALSDK= | ||||
3086 | enable_universalsdk= | ||||
3087 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3088 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3089 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3090 | if test -n "${UNIVERSALSDK}" |
3091 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
3093 | $as_echo "${UNIVERSALSDK}" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3094 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3096 | $as_echo "no" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3097 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3098 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3099 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3100 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3101 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3102 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3103 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
3104 | # otherwise use 'intel' | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3105 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3106 | if test "`uname -s`" = "Darwin" |
3107 | then | ||||
3108 | if test -n "${UNIVERSALSDK}" | ||||
3109 | then | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3110 | 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] | 3111 | then |
3112 | UNIVERSAL_ARCHS="intel" | ||||
3113 | fi | ||||
3114 | fi | ||||
3115 | fi | ||||
3116 | |||||
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3117 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
3119 | $as_echo_n "checking for --with-universal-archs... " >&6; } | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3120 | |
3121 | # Check whether --with-universal-archs was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3122 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3123 | withval=$with_universal_archs; |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3124 | UNIVERSAL_ARCHS="$withval" |
3125 | |||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3126 | fi |
3127 | |||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3128 | if test -n "${UNIVERSALSDK}" |
3129 | then | ||||
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | ||||
3131 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | ||||
3132 | else | ||||
3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
3134 | $as_echo "no" >&6; } | ||||
3135 | fi | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3136 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3137 | |
3138 | # Check whether --with-framework-name was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3139 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3140 | withval=$with_framework_name; |
3141 | PYTHONFRAMEWORK=${withval} | ||||
3142 | PYTHONFRAMEWORKDIR=${withval}.framework | ||||
3143 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | ||||
3144 | |||||
3145 | else | ||||
3146 | |||||
3147 | PYTHONFRAMEWORK=Python | ||||
3148 | PYTHONFRAMEWORKDIR=Python.framework | ||||
3149 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | ||||
3150 | |||||
3151 | fi | ||||
3152 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3153 | # Check whether --enable-framework was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3154 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3155 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3156 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3157 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3158 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3159 | esac |
3160 | case $enableval in | ||||
3161 | no) | ||||
3162 | PYTHONFRAMEWORK= | ||||
3163 | PYTHONFRAMEWORKDIR=no-framework | ||||
3164 | PYTHONFRAMEWORKPREFIX= | ||||
3165 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3166 | FRAMEWORKINSTALLFIRST= |
3167 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3168 | FRAMEWORKALTINSTALLFIRST= |
3169 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3170 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3171 | if test "x${prefix}" = "xNONE"; then |
3172 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3173 | else | ||||
3174 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3175 | fi | ||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3176 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3177 | ;; |
3178 | *) | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3179 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3180 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3181 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3182 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3183 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
3184 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | ||||
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3185 | FRAMEWORKPYTHONW="frameworkpythonw" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3186 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3187 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3188 | if test "x${prefix}" = "xNONE" ; then |
3189 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3190 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3191 | else |
3192 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3193 | fi | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3194 | |
3195 | case "${enableval}" in | ||||
3196 | /System*) | ||||
3197 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3198 | if test "${prefix}" = "NONE" ; then | ||||
3199 | # See below | ||||
3200 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | ||||
3201 | fi | ||||
3202 | ;; | ||||
3203 | |||||
3204 | /Library*) | ||||
3205 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3206 | ;; | ||||
3207 | |||||
3208 | */Library/Frameworks) | ||||
3209 | MDIR="`dirname "${enableval}"`" | ||||
3210 | MDIR="`dirname "${MDIR}"`" | ||||
3211 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | ||||
3212 | |||||
3213 | if test "${prefix}" = "NONE"; then | ||||
3214 | # User hasn't specified the | ||||
3215 | # --prefix option, but wants to install | ||||
3216 | # the framework in a non-default location, | ||||
3217 | # ensure that the compatibility links get | ||||
3218 | # installed relative to that prefix as well | ||||
3219 | # instead of in /usr/local. | ||||
3220 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | ||||
3221 | fi | ||||
3222 | ;; | ||||
3223 | |||||
3224 | *) | ||||
3225 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3226 | ;; | ||||
3227 | esac | ||||
3228 | |||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3229 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3230 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3231 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3232 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3233 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3234 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3235 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3236 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3237 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
3238 | |||||
3239 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | ||||
3240 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3241 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3242 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3244 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3245 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3246 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3247 | PYTHONFRAMEWORKPREFIX= |
3248 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3249 | FRAMEWORKINSTALLFIRST= |
3250 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3251 | FRAMEWORKALTINSTALLFIRST= |
3252 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3253 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3254 | if test "x${prefix}" = "xNONE" ; then |
3255 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3256 | else | ||||
3257 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3258 | fi | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3259 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3260 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3261 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3262 | fi |
3263 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3264 | |
3265 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3266 | |
3267 | |||||
3268 | |||||
3269 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3270 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3271 | |
3272 | |||||
3273 | |||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3274 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3275 | |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3276 | |
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3277 | |
3278 | cat >>confdefs.h <<_ACEOF | ||||
INADA Naoki | 6b42eb1 | 2017-06-29 15:31:38 +0900 | [diff] [blame] | 3279 | #define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}" |
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3280 | _ACEOF |
3281 | |||||
3282 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3283 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3284 | ## AS_HELP_STRING([--with-dyld], |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 3285 | ## [use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3286 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3287 | # Set name for machine-dependent library files |
3288 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
3290 | $as_echo_n "checking MACHDEP... " >&6; } | ||||
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3291 | if test -z "$MACHDEP" |
3292 | then | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3293 | # avoid using uname for cross builds |
3294 | if test "$cross_compiling" = yes; then | ||||
doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3295 | # ac_sys_system and ac_sys_release are used for setting |
3296 | # a lot of different things including 'define_xopen_source' | ||||
3297 | # in the case statement below. | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3298 | case "$host" in |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 3299 | *-*-linux-android*) |
3300 | ac_sys_system=Linux-android | ||||
3301 | ;; | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3302 | *-*-linux*) |
3303 | ac_sys_system=Linux | ||||
3304 | ;; | ||||
3305 | *-*-cygwin*) | ||||
3306 | ac_sys_system=Cygwin | ||||
3307 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3308 | *-*-vxworks*) |
3309 | ac_sys_system=VxWorks | ||||
3310 | ;; | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3311 | *) |
3312 | # for now, limit cross builds to known configurations | ||||
3313 | MACHDEP="unknown" | ||||
3314 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | ||||
3315 | esac | ||||
3316 | ac_sys_release= | ||||
3317 | else | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3318 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3319 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3320 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3321 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3322 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3323 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3324 | fi |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3325 | fi |
3326 | ac_md_system=`echo $ac_sys_system | | ||||
3327 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | ||||
3328 | ac_md_release=`echo $ac_sys_release | | ||||
3329 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | ||||
3330 | MACHDEP="$ac_md_system$ac_md_release" | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3331 | |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3332 | case $MACHDEP in |
Michael Felt | 9d949f7 | 2019-04-12 16:15:32 +0200 | [diff] [blame] | 3333 | aix*) MACHDEP="aix";; |
Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3334 | linux*) MACHDEP="linux";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3335 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3336 | darwin*) MACHDEP="darwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3337 | '') MACHDEP="unknown";; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3338 | esac |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3339 | fi |
E. M. Bray | b1fc417 | 2019-05-24 18:39:39 +0200 | [diff] [blame] | 3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5 |
3341 | $as_echo "\"$MACHDEP\"" >&6; } | ||||
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3342 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3343 | |
3344 | if test "$cross_compiling" = yes; then | ||||
3345 | case "$host" in | ||||
3346 | *-*-linux*) | ||||
3347 | case "$host_cpu" in | ||||
3348 | arm*) | ||||
3349 | _host_cpu=arm | ||||
3350 | ;; | ||||
3351 | *) | ||||
3352 | _host_cpu=$host_cpu | ||||
3353 | esac | ||||
3354 | ;; | ||||
3355 | *-*-cygwin*) | ||||
3356 | _host_cpu= | ||||
3357 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3358 | *-*-vxworks*) |
3359 | _host_cpu=$host_cpu | ||||
3360 | ;; | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3361 | *) |
3362 | # for now, limit cross builds to known configurations | ||||
3363 | MACHDEP="unknown" | ||||
3364 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | ||||
3365 | esac | ||||
3366 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | ||||
3367 | fi | ||||
3368 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3369 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
3370 | # disable features if it is defined, without any means to access these | ||||
3371 | # features as extensions. For these systems, we skip the definition of | ||||
3372 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | ||||
3373 | # some feature, make sure there is no alternative way to access this | ||||
3374 | # feature. Also, when using wildcards, make sure you have verified the | ||||
3375 | # need for not defining _XOPEN_SOURCE on all systems matching the | ||||
3376 | # wildcard, and that the wildcard does not include future systems | ||||
3377 | # (which may remove their limitations). | ||||
3378 | case $ac_sys_system/$ac_sys_release in | ||||
3379 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | ||||
3380 | # 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] | 3381 | # 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] | 3382 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
3383 | # OpenBSD 4.6, but is fixed in 4.7. | ||||
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3384 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3385 | define_xopen_source=no |
3386 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | ||||
3387 | # also defined. This can be overridden by defining _BSD_SOURCE | ||||
3388 | # As this has a different meaning on Linux, only define it on OpenBSD | ||||
3389 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3390 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3391 | |
3392 | ;; | ||||
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3393 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3394 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
3395 | # also defined. This can be overridden by defining _BSD_SOURCE | ||||
3396 | # As this has a different meaning on Linux, only define it on OpenBSD | ||||
3397 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3398 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3399 | |
3400 | ;; | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3401 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
3402 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | ||||
3403 | # Marc Recht | ||||
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3404 | 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] | 3405 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3406 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
3407 | # request to enable features supported by the standard as a request | ||||
3408 | # to disable features not supported by the standard. The best way | ||||
3409 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | ||||
3410 | # entirely and define __EXTENSIONS__ instead. | ||||
3411 | SunOS/*) | ||||
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3412 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3413 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
3414 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3415 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3416 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3417 | define_xopen_source=no;; |
3418 | # 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] | 3419 | # 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] | 3420 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3421 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3422 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
3423 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | ||||
3424 | # identifies itself as Darwin/7.* | ||||
3425 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3426 | # disables platform specific features beyond repair. | ||||
3427 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3428 | # has no effect, don't bother defining them | ||||
3429 | Darwin/[6789].*) | ||||
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3430 | define_xopen_source=no;; |
Ronald Oussoren | 8ea6353 | 2020-06-25 16:55:48 +0200 | [diff] [blame] | 3431 | Darwin/[12][0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3432 | define_xopen_source=no;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3433 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
3434 | # defining NI_NUMERICHOST. | ||||
3435 | QNX/6.3.2) | ||||
3436 | define_xopen_source=no | ||||
3437 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3438 | # On VxWorks, defining _XOPEN_SOURCE causes compile failures |
3439 | # in network headers still using system V types. | ||||
3440 | VxWorks/*) | ||||
3441 | define_xopen_source=no | ||||
3442 | ;; | ||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3443 | |
Ian Norton | a9edf44 | 2020-02-14 03:09:11 +0000 | [diff] [blame] | 3444 | # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides |
3445 | # chroot() and other functions | ||||
3446 | hp*|HP*) | ||||
3447 | define_xopen_source=no | ||||
3448 | ;; | ||||
3449 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3450 | esac |
3451 | |||||
3452 | if test $define_xopen_source = yes | ||||
3453 | then | ||||
Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3454 | # X/Open 7, incorporating POSIX.1-2008 |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3455 | |
Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3456 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3457 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3458 | |
3459 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | ||||
3460 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | ||||
3461 | # several APIs are not declared. Since this is also needed in some | ||||
3462 | # cases for HP-UX, we define it globally. | ||||
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3463 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3464 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3465 | |
3466 | |||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3467 | |
Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3468 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3469 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3470 | fi |
3471 | |||||
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3472 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE |
3473 | case $ac_sys_system in | ||||
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3474 | hp*|HP*) |
3475 | define_stdc_a1=yes;; | ||||
3476 | *) | ||||
3477 | define_stdc_a1=no;; | ||||
3478 | esac | ||||
3479 | |||||
3480 | if test $define_stdc_a1 = yes | ||||
3481 | then | ||||
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3482 | |
3483 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | ||||
3484 | |||||
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3485 | fi |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3486 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3487 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
3488 | # it may influence the way we can build extensions, so distutils | ||||
3489 | # needs to check it | ||||
3490 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3491 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3492 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3493 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3494 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3495 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3496 | |
3497 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just | ||||
3498 | # for debug/optimization stuff. BASECFLAGS is for flags that are required | ||||
3499 | # just to get things to compile and link. Users are free to override OPT | ||||
3500 | # when running configure or make. The build should not break if they do. | ||||
3501 | # BASECFLAGS should generally not be messed with, however. | ||||
3502 | |||||
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3503 | # If the user switches compilers, we can't believe the cache |
3504 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | ||||
3505 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3506 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3507 | (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] | 3508 | fi |
3509 | |||||
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3510 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
3511 | # when the compiler supports them, but we don't always want -O2, and | ||||
3512 | # we set -g later. | ||||
3513 | if test -z "$CFLAGS"; then | ||||
3514 | CFLAGS= | ||||
3515 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3516 | |
3517 | if test "$ac_sys_system" = "Darwin" | ||||
3518 | then | ||||
3519 | # Compiler selection on MacOSX is more complicated than | ||||
Serhiy Storchaka | 88cc339 | 2018-06-04 08:20:25 +0300 | [diff] [blame] | 3520 | # AC_PROG_CC can handle, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3521 | # information |
3522 | if test -z "${CC}" | ||||
3523 | then | ||||
3524 | found_gcc= | ||||
3525 | found_clang= | ||||
3526 | as_save_IFS=$IFS; IFS=: | ||||
3527 | for as_dir in $PATH | ||||
3528 | do | ||||
3529 | IFS=$as_save_IFS | ||||
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3530 | if test -x "${as_dir}/gcc"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3531 | if test -z "${found_gcc}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3532 | found_gcc="${as_dir}/gcc" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3533 | fi |
3534 | fi | ||||
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3535 | if test -x "${as_dir}/clang"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3536 | if test -z "${found_clang}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3537 | found_clang="${as_dir}/clang" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3538 | fi |
3539 | fi | ||||
3540 | done | ||||
3541 | IFS=$as_save_IFS | ||||
3542 | |||||
3543 | if test -n "$found_gcc" -a -n "$found_clang" | ||||
3544 | then | ||||
3545 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" | ||||
3546 | then | ||||
3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | ||||
3548 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | ||||
3549 | CC="$found_clang" | ||||
3550 | CXX="$found_clang++" | ||||
3551 | fi | ||||
3552 | |||||
3553 | |||||
3554 | elif test -z "$found_gcc" -a -n "$found_clang" | ||||
3555 | then | ||||
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | ||||
3557 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | ||||
3558 | CC="$found_clang" | ||||
3559 | CXX="$found_clang++" | ||||
3560 | |||||
3561 | elif test -z "$found_gcc" -a -z "$found_clang" | ||||
3562 | then | ||||
3563 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | ||||
3564 | if test -n "${found_clang}" | ||||
3565 | then | ||||
3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | ||||
3567 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | ||||
3568 | CC="${found_clang}" | ||||
3569 | CXX="`/usr/bin/xcrun -find clang++`" | ||||
3570 | |||||
3571 | # else: use default behaviour | ||||
3572 | fi | ||||
3573 | fi | ||||
3574 | fi | ||||
3575 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3576 | ac_ext=c |
3577 | ac_cpp='$CPP $CPPFLAGS' | ||||
3578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
3579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
3580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
3581 | if test -n "$ac_tool_prefix"; then | ||||
3582 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||||
3583 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3585 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3586 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3587 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3588 | else |
3589 | if test -n "$CC"; then | ||||
3590 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3591 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3593 | for as_dir in $PATH | ||||
3594 | do | ||||
3595 | IFS=$as_save_IFS | ||||
3596 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3597 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3598 | 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] | 3599 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3600 | $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] | 3601 | break 2 |
3602 | fi | ||||
3603 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3604 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3605 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3607 | fi |
3608 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3609 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3610 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3612 | $as_echo "$CC" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3613 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3615 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3616 | fi |
3617 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 | fi |
3620 | if test -z "$ac_cv_prog_CC"; then | ||||
3621 | ac_ct_CC=$CC | ||||
3622 | # Extract the first word of "gcc", so it can be a program name with args. | ||||
3623 | set dummy gcc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3625 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3626 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3627 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3628 | else |
3629 | if test -n "$ac_ct_CC"; then | ||||
3630 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3631 | else | ||||
3632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3633 | for as_dir in $PATH | ||||
3634 | do | ||||
3635 | IFS=$as_save_IFS | ||||
3636 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3637 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3638 | 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] | 3639 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3640 | $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] | 3641 | break 2 |
3642 | fi | ||||
3643 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3644 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3645 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | |
3647 | fi | ||||
3648 | fi | ||||
3649 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3650 | if test -n "$ac_ct_CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3652 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3655 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3656 | fi |
3657 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3658 | if test "x$ac_ct_CC" = x; then |
3659 | CC="" | ||||
3660 | else | ||||
3661 | case $cross_compiling:$ac_tool_warned in | ||||
3662 | yes:) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3664 | $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] | 3665 | ac_tool_warned=yes ;; |
3666 | esac | ||||
3667 | CC=$ac_ct_CC | ||||
3668 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3669 | else |
3670 | CC="$ac_cv_prog_CC" | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3671 | fi |
3672 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3673 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3674 | if test -n "$ac_tool_prefix"; then |
3675 | # 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] | 3676 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3678 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3679 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3680 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3681 | else |
3682 | if test -n "$CC"; then | ||||
3683 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3684 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3686 | for as_dir in $PATH | ||||
3687 | do | ||||
3688 | IFS=$as_save_IFS | ||||
3689 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3690 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3691 | 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] | 3692 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3693 | $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] | 3694 | break 2 |
3695 | fi | ||||
3696 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3697 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3698 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3699 | |
3700 | fi | ||||
3701 | fi | ||||
3702 | CC=$ac_cv_prog_CC | ||||
3703 | if test -n "$CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3705 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3706 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3708 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3709 | fi |
3710 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3712 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3713 | fi |
3714 | if test -z "$CC"; then | ||||
3715 | # Extract the first word of "cc", so it can be a program name with args. | ||||
3716 | set dummy cc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3718 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3719 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3720 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3721 | else |
3722 | if test -n "$CC"; then | ||||
3723 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3724 | else | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3725 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3727 | for as_dir in $PATH | ||||
3728 | do | ||||
3729 | IFS=$as_save_IFS | ||||
3730 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3731 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3732 | 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] | 3733 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3734 | ac_prog_rejected=yes | ||||
3735 | continue | ||||
3736 | fi | ||||
3737 | ac_cv_prog_CC="cc" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3738 | $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] | 3739 | break 2 |
3740 | fi | ||||
3741 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3742 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3743 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3744 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3745 | if test $ac_prog_rejected = yes; then |
3746 | # We found a bogon in the path, so make sure we never use it. | ||||
3747 | set dummy $ac_cv_prog_CC | ||||
3748 | shift | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3750 | # We chose a different compiler from the bogus one. |
3751 | # However, it has the same basename, so the bogon will be chosen | ||||
3752 | # first if we set CC to just the basename; use the full file name. | ||||
3753 | shift | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3754 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3755 | fi |
3756 | fi | ||||
3757 | fi | ||||
3758 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3759 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3760 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3762 | $as_echo "$CC" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3763 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3765 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3766 | fi |
3767 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3769 | fi |
3770 | if test -z "$CC"; then | ||||
3771 | if test -n "$ac_tool_prefix"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3772 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | do |
3774 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
3775 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3777 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3778 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3779 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3780 | else |
3781 | if test -n "$CC"; then | ||||
3782 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3783 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3785 | for as_dir in $PATH | ||||
3786 | do | ||||
3787 | IFS=$as_save_IFS | ||||
3788 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3789 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3790 | 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] | 3791 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3792 | $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] | 3793 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3794 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3795 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3796 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3797 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3798 | |
3799 | fi | ||||
3800 | fi | ||||
3801 | CC=$ac_cv_prog_CC | ||||
3802 | if test -n "$CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3804 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3805 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3807 | $as_echo "no" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3808 | fi |
3809 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 | test -n "$CC" && break |
3812 | done | ||||
3813 | fi | ||||
3814 | if test -z "$CC"; then | ||||
3815 | ac_ct_CC=$CC | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3816 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3817 | do |
3818 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
3819 | set dummy $ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3821 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3822 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3823 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3824 | else |
3825 | if test -n "$ac_ct_CC"; then | ||||
3826 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3827 | else | ||||
3828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3829 | for as_dir in $PATH | ||||
3830 | do | ||||
3831 | IFS=$as_save_IFS | ||||
3832 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3833 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3834 | 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] | 3835 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3836 | $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] | 3837 | break 2 |
3838 | fi | ||||
3839 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3840 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3841 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3843 | fi |
3844 | fi | ||||
3845 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3846 | if test -n "$ac_ct_CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3848 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3849 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3851 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3852 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3853 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3855 | test -n "$ac_ct_CC" && break |
3856 | done | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3857 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3858 | if test "x$ac_ct_CC" = x; then |
3859 | CC="" | ||||
3860 | else | ||||
3861 | case $cross_compiling:$ac_tool_warned in | ||||
3862 | yes:) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3864 | $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] | 3865 | ac_tool_warned=yes ;; |
3866 | esac | ||||
3867 | CC=$ac_ct_CC | ||||
3868 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3869 | fi |
3870 | |||||
3871 | fi | ||||
3872 | |||||
3873 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3874 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3875 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3876 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3877 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3878 | |
3879 | # Provide some information about the compiler. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3880 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3881 | set X $ac_compile | ||||
3882 | ac_compiler=$2 | ||||
3883 | for ac_option in --version -v -V -qversion; do | ||||
3884 | { { ac_try="$ac_compiler $ac_option >&5" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3885 | case "(($ac_try" in |
3886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3887 | *) ac_try_echo=$ac_try;; | ||||
3888 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3889 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3890 | $as_echo "$ac_try_echo"; } >&5 | ||||
3891 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3892 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3893 | if test -s conftest.err; then |
3894 | sed '10a\ | ||||
3895 | ... rest of stderr output deleted ... | ||||
3896 | 10q' conftest.err >conftest.er1 | ||||
3897 | cat conftest.er1 >&5 | ||||
3898 | fi | ||||
3899 | rm -f conftest.er1 conftest.err | ||||
3900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
3901 | test $ac_status = 0; } | ||||
3902 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3903 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3905 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3907 | int |
3908 | main () | ||||
3909 | { | ||||
3910 | |||||
3911 | ; | ||||
3912 | return 0; | ||||
3913 | } | ||||
3914 | _ACEOF | ||||
3915 | ac_clean_files_save=$ac_clean_files | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3916 | 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] | 3917 | # Try to create an executable without -o first, disregard a.out. |
3918 | # It will help us diagnose broken compilers, and finding out an intuition | ||||
3919 | # of exeext. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3921 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||||
3922 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||||
3923 | |||||
3924 | # The possible output files: | ||||
3925 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||||
3926 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3927 | ac_rmfiles= |
3928 | for ac_file in $ac_files | ||||
3929 | do | ||||
3930 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3931 | *.$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] | 3932 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3933 | esac | ||||
3934 | done | ||||
3935 | rm -f $ac_rmfiles | ||||
3936 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3937 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3938 | case "(($ac_try" in |
3939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3940 | *) ac_try_echo=$ac_try;; | ||||
3941 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3942 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3943 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3944 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3945 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3947 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3948 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3949 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||||
3950 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||||
3951 | # so that the user can short-circuit this test for compilers unknown to | ||||
3952 | # Autoconf. | ||||
3953 | for ac_file in $ac_files '' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3954 | do |
3955 | test -f "$ac_file" || continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3956 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3957 | *.$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] | 3958 | ;; |
3959 | [ab].out ) | ||||
3960 | # We found the default executable, but exeext='' is most | ||||
3961 | # certainly right. | ||||
3962 | break;; | ||||
3963 | *.* ) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3964 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3965 | then :; else |
3966 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||||
3967 | fi | ||||
3968 | # We set ac_cv_exeext here because the later test for it is not | ||||
3969 | # safe: cross compilers may not add the suffix if given an `-o' | ||||
3970 | # argument, so we may need to know it at that point already. | ||||
3971 | # Even if this section looks crufty: it has the advantage of | ||||
3972 | # actually working. | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3973 | break;; |
3974 | * ) | ||||
3975 | break;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3976 | esac |
3977 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3978 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3979 | |||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3980 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3981 | ac_file='' |
3982 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3983 | if test -z "$ac_file"; then : |
3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
3985 | $as_echo "no" >&6; } | ||||
3986 | $as_echo "$as_me: failed program was:" >&5 | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3987 | sed 's/^/| /' conftest.$ac_ext >&5 |
3988 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3989 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3990 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3991 | as_fn_error 77 "C compiler cannot create executables |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3992 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3993 | else |
3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
3995 | $as_echo "yes" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3996 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3998 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||||
3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||||
4000 | $as_echo "$ac_file" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4001 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4002 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4003 | 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] | 4004 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4006 | $as_echo_n "checking for suffix of executables... " >&6; } | ||||
4007 | if { { ac_try="$ac_link" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4008 | case "(($ac_try" in |
4009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4010 | *) ac_try_echo=$ac_try;; | ||||
4011 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4012 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4013 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4014 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4015 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4016 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4017 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4018 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4019 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||||
4020 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||||
4021 | # `rm'. | ||||
4022 | for ac_file in conftest.exe conftest conftest.*; do | ||||
4023 | test -f "$ac_file" || continue | ||||
4024 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4025 | *.$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] | 4026 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4027 | break;; | ||||
4028 | * ) break;; | ||||
4029 | esac | ||||
4030 | done | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4031 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4032 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4033 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4034 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4035 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4036 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4037 | rm -f conftest conftest$ac_cv_exeext |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||||
4039 | $as_echo "$ac_cv_exeext" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4040 | |
4041 | rm -f conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4042 | EXEEXT=$ac_cv_exeext |
4043 | ac_exeext=$EXEEXT | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4045 | /* end confdefs.h. */ | ||||
4046 | #include <stdio.h> | ||||
4047 | int | ||||
4048 | main () | ||||
4049 | { | ||||
4050 | FILE *f = fopen ("conftest.out", "w"); | ||||
4051 | return ferror (f) || fclose (f) != 0; | ||||
4052 | |||||
4053 | ; | ||||
4054 | return 0; | ||||
4055 | } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4056 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4057 | ac_clean_files="$ac_clean_files conftest.out" |
4058 | # Check that the compiler produces executables we can run. If not, either | ||||
4059 | # the compiler is broken, or we cross compile. | ||||
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||||
4061 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||||
4062 | if test "$cross_compiling" != yes; then | ||||
4063 | { { ac_try="$ac_link" | ||||
4064 | case "(($ac_try" in | ||||
4065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4066 | *) ac_try_echo=$ac_try;; | ||||
4067 | esac | ||||
4068 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
4069 | $as_echo "$ac_try_echo"; } >&5 | ||||
4070 | (eval "$ac_link") 2>&5 | ||||
4071 | ac_status=$? | ||||
4072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
4073 | test $ac_status = 0; } | ||||
4074 | if { ac_try='./conftest$ac_cv_exeext' | ||||
4075 | { { case "(($ac_try" in | ||||
4076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4077 | *) ac_try_echo=$ac_try;; | ||||
4078 | esac | ||||
4079 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
4080 | $as_echo "$ac_try_echo"; } >&5 | ||||
4081 | (eval "$ac_try") 2>&5 | ||||
4082 | ac_status=$? | ||||
4083 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
4084 | test $ac_status = 0; }; }; then | ||||
4085 | cross_compiling=no | ||||
4086 | else | ||||
4087 | if test "$cross_compiling" = maybe; then | ||||
4088 | cross_compiling=yes | ||||
4089 | else | ||||
4090 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4091 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4092 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4093 | If you meant to cross compile, use \`--host'. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4094 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4095 | fi |
4096 | fi | ||||
4097 | fi | ||||
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||||
4099 | $as_echo "$cross_compiling" >&6; } | ||||
4100 | |||||
4101 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||||
4102 | ac_clean_files=$ac_clean_files_save | ||||
4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||||
4104 | $as_echo_n "checking for suffix of object files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4105 | if ${ac_cv_objext+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4106 | $as_echo_n "(cached) " >&6 |
4107 | else | ||||
4108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4109 | /* end confdefs.h. */ |
4110 | |||||
4111 | int | ||||
4112 | main () | ||||
4113 | { | ||||
4114 | |||||
4115 | ; | ||||
4116 | return 0; | ||||
4117 | } | ||||
4118 | _ACEOF | ||||
4119 | rm -f conftest.o conftest.obj | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4120 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4121 | case "(($ac_try" in |
4122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4123 | *) ac_try_echo=$ac_try;; | ||||
4124 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4125 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4126 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4127 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4128 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4130 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4131 | for ac_file in conftest.o conftest.obj conftest.*; do |
4132 | test -f "$ac_file" || continue; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4133 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4134 | *.$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] | 4135 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4136 | break;; | ||||
4137 | esac | ||||
4138 | done | ||||
4139 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4140 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4141 | sed 's/^/| /' conftest.$ac_ext >&5 |
4142 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4143 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4144 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4145 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4146 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4147 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4148 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4149 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4151 | $as_echo "$ac_cv_objext" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4152 | OBJEXT=$ac_cv_objext |
4153 | ac_objext=$OBJEXT | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4155 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4156 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4157 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4158 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4160 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4162 | int |
4163 | main () | ||||
4164 | { | ||||
4165 | #ifndef __GNUC__ | ||||
4166 | choke me | ||||
4167 | #endif | ||||
4168 | |||||
4169 | ; | ||||
4170 | return 0; | ||||
4171 | } | ||||
4172 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4173 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4174 | ac_compiler_gnu=yes |
4175 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4176 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4177 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4178 | 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] | 4179 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4180 | |||||
4181 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4183 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||||
4184 | if test $ac_compiler_gnu = yes; then | ||||
4185 | GCC=yes | ||||
4186 | else | ||||
4187 | GCC= | ||||
4188 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4189 | ac_test_CFLAGS=${CFLAGS+set} |
4190 | ac_save_CFLAGS=$CFLAGS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4192 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4193 | if ${ac_cv_prog_cc_g+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4194 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4195 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4196 | ac_save_c_werror_flag=$ac_c_werror_flag |
4197 | ac_c_werror_flag=yes | ||||
4198 | ac_cv_prog_cc_g=no | ||||
4199 | CFLAGS="-g" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4201 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4203 | int |
4204 | main () | ||||
4205 | { | ||||
4206 | |||||
4207 | ; | ||||
4208 | return 0; | ||||
4209 | } | ||||
4210 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4211 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4212 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4213 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4214 | CFLAGS="" |
4215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4216 | /* end confdefs.h. */ |
4217 | |||||
4218 | int | ||||
4219 | main () | ||||
4220 | { | ||||
4221 | |||||
4222 | ; | ||||
4223 | return 0; | ||||
4224 | } | ||||
4225 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4226 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4227 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4228 | else |
4229 | ac_c_werror_flag=$ac_save_c_werror_flag | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4230 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4232 | /* end confdefs.h. */ |
4233 | |||||
4234 | int | ||||
4235 | main () | ||||
4236 | { | ||||
4237 | |||||
4238 | ; | ||||
4239 | return 0; | ||||
4240 | } | ||||
4241 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4242 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4243 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4244 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4246 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4248 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4250 | ac_c_werror_flag=$ac_save_c_werror_flag | ||||
4251 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4253 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4254 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4255 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4256 | elif test $ac_cv_prog_cc_g = yes; then |
4257 | if test "$GCC" = yes; then | ||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4258 | CFLAGS="-g -O2" |
4259 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4260 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4261 | fi |
4262 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4263 | if test "$GCC" = yes; then |
4264 | CFLAGS="-O2" | ||||
4265 | else | ||||
4266 | CFLAGS= | ||||
4267 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4268 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4270 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4271 | if ${ac_cv_prog_cc_c89+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4272 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4273 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4274 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4275 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4277 | /* end confdefs.h. */ |
4278 | #include <stdarg.h> | ||||
4279 | #include <stdio.h> | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4280 | struct stat; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4281 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4282 | struct buf { int x; }; | ||||
4283 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||||
4284 | static char *e (p, i) | ||||
4285 | char **p; | ||||
4286 | int i; | ||||
4287 | { | ||||
4288 | return p[i]; | ||||
4289 | } | ||||
4290 | static char *f (char * (*g) (char **, int), char **p, ...) | ||||
4291 | { | ||||
4292 | char *s; | ||||
4293 | va_list v; | ||||
4294 | va_start (v,p); | ||||
4295 | s = g (p, va_arg (v,int)); | ||||
4296 | va_end (v); | ||||
4297 | return s; | ||||
4298 | } | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4299 | |
4300 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||||
4301 | function prototypes and stuff, but not '\xHH' hex character constants. | ||||
4302 | These don't provoke an error unfortunately, instead are silently treated | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4303 | as 'x'. The following induces an error, until -std is added to get |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4304 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4305 | array size at least. It's necessary to write '\x00'==0 to get something | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4306 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4307 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4308 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4309 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4310 | inside strings and character constants. */ | ||||
4311 | #define FOO(x) 'x' | ||||
4312 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||||
4313 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4314 | int test (int i, double x); |
4315 | struct s1 {int (*f) (int a);}; | ||||
4316 | struct s2 {int (*f) (double a);}; | ||||
4317 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||||
4318 | int argc; | ||||
4319 | char **argv; | ||||
4320 | int | ||||
4321 | main () | ||||
4322 | { | ||||
4323 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||||
4324 | ; | ||||
4325 | return 0; | ||||
4326 | } | ||||
4327 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4328 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4329 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4330 | do |
4331 | CC="$ac_save_CC $ac_arg" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4332 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4333 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4334 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4335 | rm -f core conftest.err conftest.$ac_objext |
4336 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4337 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4338 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4339 | CC=$ac_save_CC |
4340 | |||||
4341 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4342 | # AC_CACHE_VAL |
4343 | case "x$ac_cv_prog_cc_c89" in | ||||
4344 | x) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4346 | $as_echo "none needed" >&6; } ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4347 | xno) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4349 | $as_echo "unsupported" >&6; } ;; | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4350 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4351 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4353 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4354 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4355 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4356 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4357 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4359 | ac_ext=c |
4360 | ac_cpp='$CPP $CPPFLAGS' | ||||
4361 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4362 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4363 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4364 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4365 | ac_ext=c |
4366 | ac_cpp='$CPP $CPPFLAGS' | ||||
4367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||||
4371 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||||
4372 | # On Suns, sometimes $CPP names a directory. | ||||
4373 | if test -n "$CPP" && test -d "$CPP"; then | ||||
4374 | CPP= | ||||
4375 | fi | ||||
4376 | if test -z "$CPP"; then | ||||
4377 | if ${ac_cv_prog_CPP+:} false; then : | ||||
4378 | $as_echo_n "(cached) " >&6 | ||||
4379 | else | ||||
4380 | # Double quotes because CPP needs to be expanded | ||||
4381 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||||
4382 | do | ||||
4383 | ac_preproc_ok=false | ||||
4384 | for ac_c_preproc_warn_flag in '' yes | ||||
4385 | do | ||||
4386 | # Use a header file that comes with gcc, so configuring glibc | ||||
4387 | # with a fresh cross-compiler works. | ||||
4388 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
4389 | # <limits.h> exists even on freestanding compilers. | ||||
4390 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||||
4391 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4393 | /* end confdefs.h. */ | ||||
4394 | #ifdef __STDC__ | ||||
4395 | # include <limits.h> | ||||
4396 | #else | ||||
4397 | # include <assert.h> | ||||
4398 | #endif | ||||
4399 | Syntax error | ||||
4400 | _ACEOF | ||||
4401 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4402 | |||||
4403 | else | ||||
4404 | # Broken: fails on valid input. | ||||
4405 | continue | ||||
4406 | fi | ||||
4407 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4408 | |||||
4409 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4410 | # can be detected and how. | ||||
4411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4412 | /* end confdefs.h. */ | ||||
4413 | #include <ac_nonexistent.h> | ||||
4414 | _ACEOF | ||||
4415 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4416 | # Broken: success on invalid input. | ||||
4417 | continue | ||||
4418 | else | ||||
4419 | # Passes both tests. | ||||
4420 | ac_preproc_ok=: | ||||
4421 | break | ||||
4422 | fi | ||||
4423 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4424 | |||||
4425 | done | ||||
4426 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4427 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
4428 | if $ac_preproc_ok; then : | ||||
4429 | break | ||||
4430 | fi | ||||
4431 | |||||
4432 | done | ||||
4433 | ac_cv_prog_CPP=$CPP | ||||
4434 | |||||
4435 | fi | ||||
4436 | CPP=$ac_cv_prog_CPP | ||||
4437 | else | ||||
4438 | ac_cv_prog_CPP=$CPP | ||||
4439 | fi | ||||
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||||
4441 | $as_echo "$CPP" >&6; } | ||||
4442 | ac_preproc_ok=false | ||||
4443 | for ac_c_preproc_warn_flag in '' yes | ||||
4444 | do | ||||
4445 | # Use a header file that comes with gcc, so configuring glibc | ||||
4446 | # with a fresh cross-compiler works. | ||||
4447 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
4448 | # <limits.h> exists even on freestanding compilers. | ||||
4449 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||||
4450 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4452 | /* end confdefs.h. */ | ||||
4453 | #ifdef __STDC__ | ||||
4454 | # include <limits.h> | ||||
4455 | #else | ||||
4456 | # include <assert.h> | ||||
4457 | #endif | ||||
4458 | Syntax error | ||||
4459 | _ACEOF | ||||
4460 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4461 | |||||
4462 | else | ||||
4463 | # Broken: fails on valid input. | ||||
4464 | continue | ||||
4465 | fi | ||||
4466 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4467 | |||||
4468 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4469 | # can be detected and how. | ||||
4470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4471 | /* end confdefs.h. */ | ||||
4472 | #include <ac_nonexistent.h> | ||||
4473 | _ACEOF | ||||
4474 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4475 | # Broken: success on invalid input. | ||||
4476 | continue | ||||
4477 | else | ||||
4478 | # Passes both tests. | ||||
4479 | ac_preproc_ok=: | ||||
4480 | break | ||||
4481 | fi | ||||
4482 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4483 | |||||
4484 | done | ||||
4485 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4486 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
4487 | if $ac_preproc_ok; then : | ||||
4488 | |||||
4489 | else | ||||
4490 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4491 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
4492 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||||
4493 | See \`config.log' for more details" "$LINENO" 5; } | ||||
4494 | fi | ||||
4495 | |||||
4496 | ac_ext=c | ||||
4497 | ac_cpp='$CPP $CPPFLAGS' | ||||
4498 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4499 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4500 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
4501 | |||||
4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||||
4503 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||||
4504 | if ${ac_cv_path_GREP+:} false; then : | ||||
4505 | $as_echo_n "(cached) " >&6 | ||||
4506 | else | ||||
4507 | if test -z "$GREP"; then | ||||
4508 | ac_path_GREP_found=false | ||||
4509 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4511 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
4512 | do | ||||
4513 | IFS=$as_save_IFS | ||||
4514 | test -z "$as_dir" && as_dir=. | ||||
4515 | for ac_prog in grep ggrep; do | ||||
4516 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4517 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
4518 | as_fn_executable_p "$ac_path_GREP" || continue | ||||
4519 | # Check for GNU ac_path_GREP and select it if it is found. | ||||
4520 | # Check for GNU $ac_path_GREP | ||||
4521 | case `"$ac_path_GREP" --version 2>&1` in | ||||
4522 | *GNU*) | ||||
4523 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||||
4524 | *) | ||||
4525 | ac_count=0 | ||||
4526 | $as_echo_n 0123456789 >"conftest.in" | ||||
4527 | while : | ||||
4528 | do | ||||
4529 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4530 | mv "conftest.tmp" "conftest.in" | ||||
4531 | cp "conftest.in" "conftest.nl" | ||||
4532 | $as_echo 'GREP' >> "conftest.nl" | ||||
4533 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
4534 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4535 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4536 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||||
4537 | # Best one so far, save it but keep looking for a better one | ||||
4538 | ac_cv_path_GREP="$ac_path_GREP" | ||||
4539 | ac_path_GREP_max=$ac_count | ||||
4540 | fi | ||||
4541 | # 10*(2^10) chars as input seems more than enough | ||||
4542 | test $ac_count -gt 10 && break | ||||
4543 | done | ||||
4544 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4545 | esac | ||||
4546 | |||||
4547 | $ac_path_GREP_found && break 3 | ||||
4548 | done | ||||
4549 | done | ||||
4550 | done | ||||
4551 | IFS=$as_save_IFS | ||||
4552 | if test -z "$ac_cv_path_GREP"; then | ||||
4553 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||||
4554 | fi | ||||
4555 | else | ||||
4556 | ac_cv_path_GREP=$GREP | ||||
4557 | fi | ||||
4558 | |||||
4559 | fi | ||||
4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||||
4561 | $as_echo "$ac_cv_path_GREP" >&6; } | ||||
4562 | GREP="$ac_cv_path_GREP" | ||||
4563 | |||||
4564 | |||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4566 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||||
4567 | if ${ac_cv_path_SED+:} false; then : | ||||
4568 | $as_echo_n "(cached) " >&6 | ||||
4569 | else | ||||
4570 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||||
4571 | for ac_i in 1 2 3 4 5 6 7; do | ||||
4572 | ac_script="$ac_script$as_nl$ac_script" | ||||
4573 | done | ||||
4574 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||||
4575 | { ac_script=; unset ac_script;} | ||||
4576 | if test -z "$SED"; then | ||||
4577 | ac_path_SED_found=false | ||||
4578 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4580 | for as_dir in $PATH | ||||
4581 | do | ||||
4582 | IFS=$as_save_IFS | ||||
4583 | test -z "$as_dir" && as_dir=. | ||||
4584 | for ac_prog in sed gsed; do | ||||
4585 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4586 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||||
4587 | as_fn_executable_p "$ac_path_SED" || continue | ||||
4588 | # Check for GNU ac_path_SED and select it if it is found. | ||||
4589 | # Check for GNU $ac_path_SED | ||||
4590 | case `"$ac_path_SED" --version 2>&1` in | ||||
4591 | *GNU*) | ||||
4592 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||||
4593 | *) | ||||
4594 | ac_count=0 | ||||
4595 | $as_echo_n 0123456789 >"conftest.in" | ||||
4596 | while : | ||||
4597 | do | ||||
4598 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4599 | mv "conftest.tmp" "conftest.in" | ||||
4600 | cp "conftest.in" "conftest.nl" | ||||
4601 | $as_echo '' >> "conftest.nl" | ||||
4602 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
4603 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4604 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4605 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||||
4606 | # Best one so far, save it but keep looking for a better one | ||||
4607 | ac_cv_path_SED="$ac_path_SED" | ||||
4608 | ac_path_SED_max=$ac_count | ||||
4609 | fi | ||||
4610 | # 10*(2^10) chars as input seems more than enough | ||||
4611 | test $ac_count -gt 10 && break | ||||
4612 | done | ||||
4613 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4614 | esac | ||||
4615 | |||||
4616 | $ac_path_SED_found && break 3 | ||||
4617 | done | ||||
4618 | done | ||||
4619 | done | ||||
4620 | IFS=$as_save_IFS | ||||
4621 | if test -z "$ac_cv_path_SED"; then | ||||
4622 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||||
4623 | fi | ||||
4624 | else | ||||
4625 | ac_cv_path_SED=$SED | ||||
4626 | fi | ||||
4627 | |||||
4628 | fi | ||||
4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||||
4630 | $as_echo "$ac_cv_path_SED" >&6; } | ||||
4631 | SED="$ac_cv_path_SED" | ||||
4632 | rm -f conftest.sed | ||||
4633 | |||||
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4634 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4635 | |
4636 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
4638 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4639 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4640 | # Check whether --with-cxx_main was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4641 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4642 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4643 | |
4644 | case $withval in | ||||
4645 | no) with_cxx_main=no | ||||
4646 | MAINCC='$(CC)';; | ||||
4647 | yes) with_cxx_main=yes | ||||
4648 | MAINCC='$(CXX)';; | ||||
4649 | *) with_cxx_main=yes | ||||
4650 | MAINCC=$withval | ||||
4651 | if test -z "$CXX" | ||||
4652 | then | ||||
4653 | CXX=$withval | ||||
4654 | fi;; | ||||
4655 | esac | ||||
4656 | else | ||||
4657 | |||||
4658 | with_cxx_main=no | ||||
4659 | MAINCC='$(CC)' | ||||
4660 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4661 | fi |
4662 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
4664 | $as_echo "$with_cxx_main" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4665 | |
4666 | preset_cxx="$CXX" | ||||
4667 | if test -z "$CXX" | ||||
4668 | then | ||||
4669 | case "$CC" in | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4670 | gcc) if test -n "$ac_tool_prefix"; then |
4671 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | ||||
4672 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | ||||
4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4674 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4675 | if ${ac_cv_path_CXX+:} false; then : | ||||
4676 | $as_echo_n "(cached) " >&6 | ||||
4677 | else | ||||
4678 | case $CXX in | ||||
4679 | [\\/]* | ?:[\\/]*) | ||||
4680 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4681 | ;; | ||||
4682 | *) | ||||
4683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4684 | for as_dir in notfound | ||||
4685 | do | ||||
4686 | IFS=$as_save_IFS | ||||
4687 | test -z "$as_dir" && as_dir=. | ||||
4688 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4689 | 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] | 4690 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
4691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4692 | break 2 | ||||
4693 | fi | ||||
4694 | done | ||||
4695 | done | ||||
4696 | IFS=$as_save_IFS | ||||
4697 | |||||
4698 | ;; | ||||
4699 | esac | ||||
4700 | fi | ||||
4701 | CXX=$ac_cv_path_CXX | ||||
4702 | if test -n "$CXX"; then | ||||
4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
4704 | $as_echo "$CXX" >&6; } | ||||
4705 | else | ||||
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4707 | $as_echo "no" >&6; } | ||||
4708 | fi | ||||
4709 | |||||
4710 | |||||
4711 | fi | ||||
4712 | if test -z "$ac_cv_path_CXX"; then | ||||
4713 | ac_pt_CXX=$CXX | ||||
4714 | # 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] | 4715 | set dummy g++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4717 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4718 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
4719 | $as_echo_n "(cached) " >&6 | ||||
4720 | else | ||||
4721 | case $ac_pt_CXX in | ||||
4722 | [\\/]* | ?:[\\/]*) | ||||
4723 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4724 | ;; | ||||
4725 | *) | ||||
4726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4727 | for as_dir in notfound | ||||
4728 | do | ||||
4729 | IFS=$as_save_IFS | ||||
4730 | test -z "$as_dir" && as_dir=. | ||||
4731 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4732 | 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] | 4733 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
4734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4735 | break 2 | ||||
4736 | fi | ||||
4737 | done | ||||
4738 | done | ||||
4739 | IFS=$as_save_IFS | ||||
4740 | |||||
4741 | ;; | ||||
4742 | esac | ||||
4743 | fi | ||||
4744 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4745 | if test -n "$ac_pt_CXX"; then | ||||
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4747 | $as_echo "$ac_pt_CXX" >&6; } | ||||
4748 | else | ||||
4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4750 | $as_echo "no" >&6; } | ||||
4751 | fi | ||||
4752 | |||||
4753 | if test "x$ac_pt_CXX" = x; then | ||||
4754 | CXX="g++" | ||||
4755 | else | ||||
4756 | case $cross_compiling:$ac_tool_warned in | ||||
4757 | yes:) | ||||
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4759 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4760 | ac_tool_warned=yes ;; | ||||
4761 | esac | ||||
4762 | CXX=$ac_pt_CXX | ||||
4763 | fi | ||||
4764 | else | ||||
4765 | CXX="$ac_cv_path_CXX" | ||||
4766 | fi | ||||
4767 | ;; | ||||
4768 | cc) if test -n "$ac_tool_prefix"; then | ||||
4769 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | ||||
4770 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | ||||
4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4772 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4773 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4774 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4775 | else |
4776 | case $CXX in | ||||
4777 | [\\/]* | ?:[\\/]*) | ||||
4778 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4779 | ;; | ||||
4780 | *) | ||||
4781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4782 | for as_dir in notfound | ||||
4783 | do | ||||
4784 | IFS=$as_save_IFS | ||||
4785 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4786 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4788 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4789 | $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] | 4790 | break 2 |
4791 | fi | ||||
4792 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4793 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4794 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4795 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4796 | ;; |
4797 | esac | ||||
4798 | fi | ||||
4799 | CXX=$ac_cv_path_CXX | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4800 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4802 | $as_echo "$CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4803 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4805 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4806 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4807 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4808 | |
4809 | fi | ||||
4810 | if test -z "$ac_cv_path_CXX"; then | ||||
4811 | ac_pt_CXX=$CXX | ||||
4812 | # 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] | 4813 | set dummy c++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4815 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4816 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4817 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4818 | else |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4819 | case $ac_pt_CXX in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4820 | [\\/]* | ?:[\\/]*) |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4821 | 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] | 4822 | ;; |
4823 | *) | ||||
4824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4825 | for as_dir in notfound | ||||
4826 | do | ||||
4827 | IFS=$as_save_IFS | ||||
4828 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4829 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4830 | 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] | 4831 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4832 | $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] | 4833 | break 2 |
4834 | fi | ||||
4835 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4836 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4837 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4838 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4839 | ;; |
4840 | esac | ||||
4841 | fi | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4842 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
4843 | if test -n "$ac_pt_CXX"; then | ||||
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4845 | $as_echo "$ac_pt_CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4846 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4848 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4849 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4850 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4851 | if test "x$ac_pt_CXX" = x; then |
4852 | CXX="c++" | ||||
4853 | else | ||||
4854 | case $cross_compiling:$ac_tool_warned in | ||||
4855 | yes:) | ||||
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4857 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4858 | ac_tool_warned=yes ;; | ||||
4859 | esac | ||||
4860 | CXX=$ac_pt_CXX | ||||
4861 | fi | ||||
4862 | else | ||||
4863 | CXX="$ac_cv_path_CXX" | ||||
4864 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4865 | ;; |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4866 | clang|*/clang) if test -n "$ac_tool_prefix"; then |
4867 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | ||||
4868 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4870 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4871 | if ${ac_cv_path_CXX+:} false; then : | ||||
4872 | $as_echo_n "(cached) " >&6 | ||||
4873 | else | ||||
4874 | case $CXX in | ||||
4875 | [\\/]* | ?:[\\/]*) | ||||
4876 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4877 | ;; | ||||
4878 | *) | ||||
4879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4880 | for as_dir in notfound | ||||
4881 | do | ||||
4882 | IFS=$as_save_IFS | ||||
4883 | test -z "$as_dir" && as_dir=. | ||||
4884 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4885 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4886 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
4887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4888 | break 2 | ||||
4889 | fi | ||||
4890 | done | ||||
4891 | done | ||||
4892 | IFS=$as_save_IFS | ||||
4893 | |||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4894 | ;; |
4895 | esac | ||||
4896 | fi | ||||
4897 | CXX=$ac_cv_path_CXX | ||||
4898 | if test -n "$CXX"; then | ||||
4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
4900 | $as_echo "$CXX" >&6; } | ||||
4901 | else | ||||
4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4903 | $as_echo "no" >&6; } | ||||
4904 | fi | ||||
4905 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4906 | |
4907 | fi | ||||
4908 | if test -z "$ac_cv_path_CXX"; then | ||||
4909 | ac_pt_CXX=$CXX | ||||
4910 | # Extract the first word of "clang++", so it can be a program name with args. | ||||
4911 | set dummy clang++; ac_word=$2 | ||||
4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4913 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4914 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
4915 | $as_echo_n "(cached) " >&6 | ||||
4916 | else | ||||
4917 | case $ac_pt_CXX in | ||||
4918 | [\\/]* | ?:[\\/]*) | ||||
4919 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4920 | ;; | ||||
4921 | *) | ||||
4922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4923 | for as_dir in notfound | ||||
4924 | do | ||||
4925 | IFS=$as_save_IFS | ||||
4926 | test -z "$as_dir" && as_dir=. | ||||
4927 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4928 | 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] | 4929 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
4930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4931 | break 2 | ||||
4932 | fi | ||||
4933 | done | ||||
4934 | done | ||||
4935 | IFS=$as_save_IFS | ||||
4936 | |||||
4937 | ;; | ||||
4938 | esac | ||||
4939 | fi | ||||
4940 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4941 | if test -n "$ac_pt_CXX"; then | ||||
4942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4943 | $as_echo "$ac_pt_CXX" >&6; } | ||||
4944 | else | ||||
4945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4946 | $as_echo "no" >&6; } | ||||
4947 | fi | ||||
4948 | |||||
4949 | if test "x$ac_pt_CXX" = x; then | ||||
4950 | CXX="clang++" | ||||
4951 | else | ||||
4952 | case $cross_compiling:$ac_tool_warned in | ||||
4953 | yes:) | ||||
4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4955 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4956 | ac_tool_warned=yes ;; | ||||
4957 | esac | ||||
4958 | CXX=$ac_pt_CXX | ||||
4959 | fi | ||||
4960 | else | ||||
4961 | CXX="$ac_cv_path_CXX" | ||||
4962 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4963 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4964 | icc|*/icc) if test -n "$ac_tool_prefix"; then |
4965 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | ||||
4966 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | ||||
4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4968 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4969 | if ${ac_cv_path_CXX+:} false; then : | ||||
4970 | $as_echo_n "(cached) " >&6 | ||||
4971 | else | ||||
4972 | case $CXX in | ||||
4973 | [\\/]* | ?:[\\/]*) | ||||
4974 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4975 | ;; | ||||
4976 | *) | ||||
4977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4978 | for as_dir in notfound | ||||
4979 | do | ||||
4980 | IFS=$as_save_IFS | ||||
4981 | test -z "$as_dir" && as_dir=. | ||||
4982 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4983 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
4984 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4986 | break 2 | ||||
4987 | fi | ||||
4988 | done | ||||
4989 | done | ||||
4990 | IFS=$as_save_IFS | ||||
4991 | |||||
4992 | ;; | ||||
4993 | esac | ||||
4994 | fi | ||||
4995 | CXX=$ac_cv_path_CXX | ||||
4996 | if test -n "$CXX"; then | ||||
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
4998 | $as_echo "$CXX" >&6; } | ||||
4999 | else | ||||
5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5001 | $as_echo "no" >&6; } | ||||
5002 | fi | ||||
5003 | |||||
5004 | |||||
5005 | fi | ||||
5006 | if test -z "$ac_cv_path_CXX"; then | ||||
5007 | ac_pt_CXX=$CXX | ||||
5008 | # Extract the first word of "icpc", so it can be a program name with args. | ||||
5009 | set dummy icpc; ac_word=$2 | ||||
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
5011 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5012 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
5013 | $as_echo_n "(cached) " >&6 | ||||
5014 | else | ||||
5015 | case $ac_pt_CXX in | ||||
5016 | [\\/]* | ?:[\\/]*) | ||||
5017 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
5018 | ;; | ||||
5019 | *) | ||||
5020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5021 | for as_dir in notfound | ||||
5022 | do | ||||
5023 | IFS=$as_save_IFS | ||||
5024 | test -z "$as_dir" && as_dir=. | ||||
5025 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
5026 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
5027 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
5028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
5029 | break 2 | ||||
5030 | fi | ||||
5031 | done | ||||
5032 | done | ||||
5033 | IFS=$as_save_IFS | ||||
5034 | |||||
5035 | ;; | ||||
5036 | esac | ||||
5037 | fi | ||||
5038 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
5039 | if test -n "$ac_pt_CXX"; then | ||||
5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
5041 | $as_echo "$ac_pt_CXX" >&6; } | ||||
5042 | else | ||||
5043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5044 | $as_echo "no" >&6; } | ||||
5045 | fi | ||||
5046 | |||||
5047 | if test "x$ac_pt_CXX" = x; then | ||||
5048 | CXX="icpc" | ||||
5049 | else | ||||
5050 | case $cross_compiling:$ac_tool_warned in | ||||
5051 | yes:) | ||||
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
5053 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
5054 | ac_tool_warned=yes ;; | ||||
5055 | esac | ||||
5056 | CXX=$ac_pt_CXX | ||||
5057 | fi | ||||
5058 | else | ||||
5059 | CXX="$ac_cv_path_CXX" | ||||
5060 | fi | ||||
5061 | ;; | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5062 | esac |
5063 | if test "$CXX" = "notfound" | ||||
5064 | then | ||||
5065 | CXX="" | ||||
5066 | fi | ||||
5067 | fi | ||||
5068 | if test -z "$CXX" | ||||
5069 | then | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5070 | if test -n "$ac_tool_prefix"; then |
5071 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5072 | do | ||||
5073 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
5074 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5076 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5077 | if ${ac_cv_prog_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5078 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5079 | else |
5080 | if test -n "$CXX"; then | ||||
5081 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||||
5082 | else | ||||
5083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5084 | for as_dir in $PATH | ||||
5085 | do | ||||
5086 | IFS=$as_save_IFS | ||||
5087 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5088 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5089 | 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] | 5090 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5091 | $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] | 5092 | break 2 |
5093 | fi | ||||
5094 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5095 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5096 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5097 | |
5098 | fi | ||||
5099 | fi | ||||
5100 | CXX=$ac_cv_prog_CXX | ||||
5101 | if test -n "$CXX"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5103 | $as_echo "$CXX" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5104 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5106 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5107 | fi |
5108 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5109 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5110 | test -n "$CXX" && break |
5111 | done | ||||
5112 | fi | ||||
5113 | if test -z "$CXX"; then | ||||
5114 | ac_ct_CXX=$CXX | ||||
5115 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5116 | do | ||||
5117 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
5118 | set dummy $ac_prog; ac_word=$2 | ||||
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
5120 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5121 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | ||||
5122 | $as_echo_n "(cached) " >&6 | ||||
5123 | else | ||||
5124 | if test -n "$ac_ct_CXX"; then | ||||
5125 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||||
5126 | else | ||||
5127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5128 | for as_dir in $PATH | ||||
5129 | do | ||||
5130 | IFS=$as_save_IFS | ||||
5131 | test -z "$as_dir" && as_dir=. | ||||
5132 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5133 | 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] | 5134 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
5136 | break 2 | ||||
5137 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5138 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5139 | done |
5140 | IFS=$as_save_IFS | ||||
5141 | |||||
5142 | fi | ||||
5143 | fi | ||||
5144 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||||
5145 | if test -n "$ac_ct_CXX"; then | ||||
5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||||
5147 | $as_echo "$ac_ct_CXX" >&6; } | ||||
5148 | else | ||||
5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5150 | $as_echo "no" >&6; } | ||||
5151 | fi | ||||
5152 | |||||
5153 | |||||
5154 | test -n "$ac_ct_CXX" && break | ||||
5155 | done | ||||
5156 | |||||
5157 | if test "x$ac_ct_CXX" = x; then | ||||
5158 | CXX="notfound" | ||||
5159 | else | ||||
5160 | case $cross_compiling:$ac_tool_warned in | ||||
5161 | yes:) | ||||
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
5163 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
5164 | ac_tool_warned=yes ;; | ||||
5165 | esac | ||||
5166 | CXX=$ac_ct_CXX | ||||
5167 | fi | ||||
5168 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5169 | |
5170 | if test "$CXX" = "notfound" | ||||
5171 | then | ||||
5172 | CXX="" | ||||
5173 | fi | ||||
5174 | fi | ||||
5175 | if test "$preset_cxx" != "$CXX" | ||||
5176 | then | ||||
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5178 | |
5179 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5180 | If this is not intended, then set CXX on the configure command line. | ||||
5181 | " >&5 | ||||
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5182 | $as_echo "$as_me: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5183 | |
5184 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5185 | 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] | 5186 | " >&6;} |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5187 | fi |
5188 | |||||
5189 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5190 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
5191 | |||||
5192 | |||||
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 | ||||
5194 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | ||||
5195 | cat >> conftest.c <<EOF | ||||
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5196 | #undef bfin |
5197 | #undef cris | ||||
5198 | #undef fr30 | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5199 | #undef linux |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5200 | #undef hppa |
5201 | #undef hpux | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5202 | #undef i386 |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5203 | #undef mips |
doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5204 | #undef powerpc |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5205 | #undef sparc |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5206 | #undef unix |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5207 | #if defined(__ANDROID__) |
Xavier de Gaye | 32cf1ac | 2016-12-10 17:31:28 +0100 | [diff] [blame] | 5208 | # Android is not a multiarch system. |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5209 | #elif defined(__linux__) |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5210 | # if defined(__x86_64__) && defined(__LP64__) |
5211 | x86_64-linux-gnu | ||||
5212 | # elif defined(__x86_64__) && defined(__ILP32__) | ||||
5213 | x86_64-linux-gnux32 | ||||
5214 | # elif defined(__i386__) | ||||
5215 | i386-linux-gnu | ||||
5216 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | ||||
5217 | # if defined(__ILP32__) | ||||
5218 | aarch64_ilp32-linux-gnu | ||||
5219 | # else | ||||
5220 | aarch64-linux-gnu | ||||
5221 | # endif | ||||
5222 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | ||||
5223 | # if defined(__ILP32__) | ||||
5224 | aarch64_be_ilp32-linux-gnu | ||||
5225 | # else | ||||
5226 | aarch64_be-linux-gnu | ||||
5227 | # endif | ||||
5228 | # elif defined(__alpha__) | ||||
5229 | alpha-linux-gnu | ||||
5230 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | ||||
5231 | # if defined(__ARMEL__) | ||||
5232 | arm-linux-gnueabihf | ||||
5233 | # else | ||||
5234 | armeb-linux-gnueabihf | ||||
5235 | # endif | ||||
5236 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | ||||
5237 | # if defined(__ARMEL__) | ||||
5238 | arm-linux-gnueabi | ||||
5239 | # else | ||||
5240 | armeb-linux-gnueabi | ||||
5241 | # endif | ||||
5242 | # elif defined(__hppa__) | ||||
5243 | hppa-linux-gnu | ||||
5244 | # elif defined(__ia64__) | ||||
5245 | ia64-linux-gnu | ||||
5246 | # elif defined(__m68k__) && !defined(__mcoldfire__) | ||||
5247 | m68k-linux-gnu | ||||
Matthias Klose | ddbe976 | 2018-04-30 19:22:16 +0200 | [diff] [blame] | 5248 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) |
5249 | # if _MIPS_SIM == _ABIO32 | ||||
5250 | mipsisa32r6el-linux-gnu | ||||
5251 | # elif _MIPS_SIM == _ABIN32 | ||||
5252 | mipsisa64r6el-linux-gnuabin32 | ||||
5253 | # elif _MIPS_SIM == _ABI64 | ||||
5254 | mipsisa64r6el-linux-gnuabi64 | ||||
5255 | # else | ||||
5256 | # error unknown platform triplet | ||||
5257 | # endif | ||||
5258 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) | ||||
5259 | # if _MIPS_SIM == _ABIO32 | ||||
5260 | mipsisa32r6-linux-gnu | ||||
5261 | # elif _MIPS_SIM == _ABIN32 | ||||
5262 | mipsisa64r6-linux-gnuabin32 | ||||
5263 | # elif _MIPS_SIM == _ABI64 | ||||
5264 | mipsisa64r6-linux-gnuabi64 | ||||
5265 | # else | ||||
5266 | # error unknown platform triplet | ||||
5267 | # endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5268 | # elif defined(__mips_hard_float) && defined(_MIPSEL) |
5269 | # if _MIPS_SIM == _ABIO32 | ||||
5270 | mipsel-linux-gnu | ||||
5271 | # elif _MIPS_SIM == _ABIN32 | ||||
5272 | mips64el-linux-gnuabin32 | ||||
5273 | # elif _MIPS_SIM == _ABI64 | ||||
5274 | mips64el-linux-gnuabi64 | ||||
5275 | # else | ||||
5276 | # error unknown platform triplet | ||||
5277 | # endif | ||||
5278 | # elif defined(__mips_hard_float) | ||||
5279 | # if _MIPS_SIM == _ABIO32 | ||||
5280 | mips-linux-gnu | ||||
5281 | # elif _MIPS_SIM == _ABIN32 | ||||
5282 | mips64-linux-gnuabin32 | ||||
5283 | # elif _MIPS_SIM == _ABI64 | ||||
5284 | mips64-linux-gnuabi64 | ||||
5285 | # else | ||||
5286 | # error unknown platform triplet | ||||
5287 | # endif | ||||
5288 | # elif defined(__or1k__) | ||||
5289 | or1k-linux-gnu | ||||
5290 | # elif defined(__powerpc__) && defined(__SPE__) | ||||
5291 | powerpc-linux-gnuspe | ||||
5292 | # elif defined(__powerpc64__) | ||||
5293 | # if defined(__LITTLE_ENDIAN__) | ||||
5294 | powerpc64le-linux-gnu | ||||
5295 | # else | ||||
5296 | powerpc64-linux-gnu | ||||
5297 | # endif | ||||
5298 | # elif defined(__powerpc__) | ||||
5299 | powerpc-linux-gnu | ||||
5300 | # elif defined(__s390x__) | ||||
5301 | s390x-linux-gnu | ||||
5302 | # elif defined(__s390__) | ||||
5303 | s390-linux-gnu | ||||
5304 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | ||||
5305 | sh4-linux-gnu | ||||
5306 | # elif defined(__sparc__) && defined(__arch64__) | ||||
5307 | sparc64-linux-gnu | ||||
5308 | # elif defined(__sparc__) | ||||
5309 | sparc-linux-gnu | ||||
Matthias Klose | ddbe976 | 2018-04-30 19:22:16 +0200 | [diff] [blame] | 5310 | # elif defined(__riscv) |
5311 | # if __riscv_xlen == 32 | ||||
5312 | riscv32-linux-gnu | ||||
5313 | # elif __riscv_xlen == 64 | ||||
5314 | riscv64-linux-gnu | ||||
5315 | # else | ||||
5316 | # error unknown platform triplet | ||||
5317 | # endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5318 | # else |
5319 | # error unknown platform triplet | ||||
5320 | # endif | ||||
5321 | #elif defined(__FreeBSD_kernel__) | ||||
5322 | # if defined(__LP64__) | ||||
5323 | x86_64-kfreebsd-gnu | ||||
5324 | # elif defined(__i386__) | ||||
5325 | i386-kfreebsd-gnu | ||||
5326 | # else | ||||
5327 | # error unknown platform triplet | ||||
5328 | # endif | ||||
5329 | #elif defined(__gnu_hurd__) | ||||
5330 | i386-gnu | ||||
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5331 | #elif defined(__APPLE__) |
5332 | darwin | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 5333 | #elif defined(__VXWORKS__) |
5334 | vxworks | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5335 | #else |
5336 | # error unknown platform triplet | ||||
5337 | #endif | ||||
5338 | |||||
5339 | EOF | ||||
5340 | |||||
Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5341 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5342 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` |
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | ||||
5344 | $as_echo "$PLATFORM_TRIPLET" >&6; } | ||||
5345 | else | ||||
5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||||
5347 | $as_echo "none" >&6; } | ||||
5348 | fi | ||||
5349 | rm -f conftest.c conftest.out | ||||
5350 | |||||
5351 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | ||||
5352 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | ||||
5353 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | ||||
5354 | fi | ||||
doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5355 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then |
5356 | MULTIARCH=$PLATFORM_TRIPLET | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5357 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5358 | |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5359 | if test x$MULTIARCH != x; then |
5360 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | ||||
5361 | fi | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5362 | |
5363 | |||||
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
5365 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | ||||
5366 | save_LDFLAGS="$LDFLAGS" | ||||
5367 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5368 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5370 | /* end confdefs.h. */ | ||||
5371 | |||||
5372 | int | ||||
5373 | main () | ||||
5374 | { | ||||
5375 | |||||
5376 | ; | ||||
5377 | return 0; | ||||
5378 | } | ||||
5379 | _ACEOF | ||||
5380 | if ac_fn_c_try_link "$LINENO"; then : | ||||
5381 | NO_AS_NEEDED="-Wl,--no-as-needed" | ||||
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
5383 | $as_echo "yes" >&6; } | ||||
5384 | else | ||||
5385 | NO_AS_NEEDED="" | ||||
5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5387 | $as_echo "no" >&6; } | ||||
5388 | fi | ||||
5389 | rm -f core conftest.err conftest.$ac_objext \ | ||||
5390 | conftest$ac_exeext conftest.$ac_ext | ||||
5391 | LDFLAGS="$save_LDFLAGS" | ||||
5392 | |||||
5393 | |||||
5394 | |||||
5395 | # checks for UNIX variants that set C preprocessor variables | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5396 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5398 | $as_echo_n "checking for egrep... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5399 | if ${ac_cv_path_EGREP+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5400 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5401 | else |
5402 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||||
5403 | then ac_cv_path_EGREP="$GREP -E" | ||||
5404 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5405 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5406 | ac_path_EGREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5407 | # Loop through the user's path and test for each of PROGNAME-LIST |
5408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5409 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5410 | do | ||||
5411 | IFS=$as_save_IFS | ||||
5412 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5413 | for ac_prog in egrep; do |
5414 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
5415 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5416 | as_fn_executable_p "$ac_path_EGREP" || continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5417 | # Check for GNU ac_path_EGREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5418 | # Check for GNU $ac_path_EGREP |
5419 | case `"$ac_path_EGREP" --version 2>&1` in | ||||
5420 | *GNU*) | ||||
5421 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||||
5422 | *) | ||||
5423 | ac_count=0 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5424 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5425 | while : |
5426 | do | ||||
5427 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
5428 | mv "conftest.tmp" "conftest.in" | ||||
5429 | cp "conftest.in" "conftest.nl" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5430 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5431 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5432 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5433 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5434 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
5435 | # Best one so far, save it but keep looking for a better one | ||||
5436 | ac_cv_path_EGREP="$ac_path_EGREP" | ||||
5437 | ac_path_EGREP_max=$ac_count | ||||
5438 | fi | ||||
5439 | # 10*(2^10) chars as input seems more than enough | ||||
5440 | test $ac_count -gt 10 && break | ||||
5441 | done | ||||
5442 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
5443 | esac | ||||
5444 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5445 | $ac_path_EGREP_found && break 3 |
5446 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5447 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5448 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5449 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5450 | if test -z "$ac_cv_path_EGREP"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5451 | 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] | 5452 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5453 | else |
5454 | ac_cv_path_EGREP=$EGREP | ||||
5455 | fi | ||||
5456 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5457 | fi |
5458 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5460 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5461 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5462 | |
5463 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5465 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5466 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5467 | $as_echo_n "(cached) " >&6 |
5468 | else | ||||
5469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5470 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5471 | #include <stdlib.h> |
5472 | #include <stdarg.h> | ||||
5473 | #include <string.h> | ||||
5474 | #include <float.h> | ||||
5475 | |||||
5476 | int | ||||
5477 | main () | ||||
5478 | { | ||||
5479 | |||||
5480 | ; | ||||
5481 | return 0; | ||||
5482 | } | ||||
5483 | _ACEOF | ||||
5484 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
5485 | ac_cv_header_stdc=yes | ||||
5486 | else | ||||
5487 | ac_cv_header_stdc=no | ||||
5488 | fi | ||||
5489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
5490 | |||||
5491 | if test $ac_cv_header_stdc = yes; then | ||||
5492 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
5493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5494 | /* end confdefs.h. */ | ||||
5495 | #include <string.h> | ||||
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5496 | |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5497 | _ACEOF |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5498 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5499 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5500 | |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5501 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5502 | ac_cv_header_stdc=no |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5503 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5504 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5505 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5506 | fi |
5507 | |||||
5508 | if test $ac_cv_header_stdc = yes; then | ||||
5509 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
5510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5511 | /* end confdefs.h. */ | ||||
5512 | #include <stdlib.h> | ||||
5513 | |||||
5514 | _ACEOF | ||||
5515 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
5516 | $EGREP "free" >/dev/null 2>&1; then : | ||||
5517 | |||||
5518 | else | ||||
5519 | ac_cv_header_stdc=no | ||||
5520 | fi | ||||
5521 | rm -f conftest* | ||||
5522 | |||||
5523 | fi | ||||
5524 | |||||
5525 | if test $ac_cv_header_stdc = yes; then | ||||
5526 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||
5527 | if test "$cross_compiling" = yes; then : | ||||
5528 | : | ||||
5529 | else | ||||
5530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5531 | /* end confdefs.h. */ | ||||
5532 | #include <ctype.h> | ||||
5533 | #include <stdlib.h> | ||||
5534 | #if ((' ' & 0x0FF) == 0x020) | ||||
5535 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
5536 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
5537 | #else | ||||
5538 | # define ISLOWER(c) \ | ||||
5539 | (('a' <= (c) && (c) <= 'i') \ | ||||
5540 | || ('j' <= (c) && (c) <= 'r') \ | ||||
5541 | || ('s' <= (c) && (c) <= 'z')) | ||||
5542 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
5543 | #endif | ||||
5544 | |||||
5545 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||||
5546 | int | ||||
5547 | main () | ||||
5548 | { | ||||
5549 | int i; | ||||
5550 | for (i = 0; i < 256; i++) | ||||
5551 | if (XOR (islower (i), ISLOWER (i)) | ||||
5552 | || toupper (i) != TOUPPER (i)) | ||||
5553 | return 2; | ||||
5554 | return 0; | ||||
5555 | } | ||||
5556 | _ACEOF | ||||
5557 | if ac_fn_c_try_run "$LINENO"; then : | ||||
5558 | |||||
5559 | else | ||||
5560 | ac_cv_header_stdc=no | ||||
5561 | fi | ||||
5562 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
5563 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
5564 | fi | ||||
5565 | |||||
5566 | fi | ||||
5567 | fi | ||||
5568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||||
5569 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
5570 | if test $ac_cv_header_stdc = yes; then | ||||
5571 | |||||
5572 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||||
5573 | |||||
5574 | fi | ||||
5575 | |||||
5576 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||||
5577 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||||
5578 | inttypes.h stdint.h unistd.h | ||||
5579 | do : | ||||
5580 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
5581 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||||
5582 | " | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5583 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5584 | cat >>confdefs.h <<_ACEOF |
5585 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
5586 | _ACEOF | ||||
5587 | |||||
5588 | fi | ||||
5589 | |||||
5590 | done | ||||
5591 | |||||
5592 | |||||
5593 | |||||
5594 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5595 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5596 | MINIX=yes |
5597 | else | ||||
5598 | MINIX= | ||||
5599 | fi | ||||
5600 | |||||
5601 | |||||
5602 | if test "$MINIX" = yes; then | ||||
5603 | |||||
5604 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||||
5605 | |||||
5606 | |||||
5607 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||||
5608 | |||||
5609 | |||||
5610 | $as_echo "#define _MINIX 1" >>confdefs.h | ||||
5611 | |||||
5612 | fi | ||||
5613 | |||||
5614 | |||||
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||||
5616 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5617 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5618 | $as_echo_n "(cached) " >&6 |
5619 | else | ||||
5620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5621 | /* end confdefs.h. */ | ||||
5622 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5623 | # define __EXTENSIONS__ 1 |
5624 | $ac_includes_default | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5625 | int |
5626 | main () | ||||
5627 | { | ||||
5628 | |||||
5629 | ; | ||||
5630 | return 0; | ||||
5631 | } | ||||
5632 | _ACEOF | ||||
5633 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
5634 | ac_cv_safe_to_define___extensions__=yes | ||||
5635 | else | ||||
5636 | ac_cv_safe_to_define___extensions__=no | ||||
5637 | fi | ||||
5638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
5639 | fi | ||||
5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||||
5641 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||||
5642 | test $ac_cv_safe_to_define___extensions__ = yes && | ||||
5643 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||||
5644 | |||||
5645 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||||
5646 | |||||
5647 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||||
5648 | |||||
5649 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||||
5650 | |||||
5651 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||||
5652 | |||||
5653 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5654 | |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 |
5656 | $as_echo_n "checking for the Android API level... " >&6; } | ||||
5657 | cat >> conftest.c <<EOF | ||||
5658 | #ifdef __ANDROID__ | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5659 | android_api = __ANDROID_API__ |
5660 | arm_arch = __ARM_ARCH | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5661 | #else |
5662 | #error not Android | ||||
5663 | #endif | ||||
5664 | EOF | ||||
5665 | |||||
5666 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5667 | ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` |
5668 | _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 |
5670 | $as_echo "$ANDROID_API_LEVEL" >&6; } | ||||
xdegaye | c06c22e | 2017-11-23 11:44:38 +0100 | [diff] [blame] | 5671 | if test -z "$ANDROID_API_LEVEL"; then |
5672 | echo 'Fatal: you must define __ANDROID_API__' | ||||
5673 | exit 1 | ||||
5674 | fi | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5675 | |
5676 | cat >>confdefs.h <<_ACEOF | ||||
5677 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | ||||
5678 | _ACEOF | ||||
5679 | |||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5680 | |
5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 | ||||
5682 | $as_echo_n "checking for the Android arm ABI... " >&6; } | ||||
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 | ||||
5684 | $as_echo "$_arm_arch" >&6; } | ||||
5685 | if test "$_arm_arch" = 7; then | ||||
5686 | BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" | ||||
5687 | LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" | ||||
5688 | fi | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5689 | else |
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 | ||||
5691 | $as_echo "not Android" >&6; } | ||||
5692 | fi | ||||
5693 | rm -f conftest.c conftest.out | ||||
5694 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5695 | # Check for unsupported systems |
5696 | case $ac_sys_system/$ac_sys_release in | ||||
5697 | atheos*|Linux*/1*) | ||||
5698 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | ||||
5699 | echo See README for details. | ||||
5700 | exit 1;; | ||||
5701 | esac | ||||
5702 | |||||
5703 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
5705 | $as_echo_n "checking for --with-suffix... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5706 | |
5707 | # Check whether --with-suffix was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5708 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5709 | withval=$with_suffix; |
5710 | case $withval in | ||||
5711 | no) EXEEXT=;; | ||||
5712 | yes) EXEEXT=.exe;; | ||||
5713 | *) EXEEXT=$withval;; | ||||
5714 | esac | ||||
5715 | fi | ||||
5716 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
5718 | $as_echo "$EXEEXT" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5719 | |
5720 | # Test whether we're running on a non-case-sensitive system, in which | ||||
5721 | # case we give a warning if no ext is given | ||||
5722 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
5724 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5725 | if test ! -d CaseSensitiveTestDir; then |
5726 | mkdir CaseSensitiveTestDir | ||||
5727 | fi | ||||
5728 | |||||
5729 | if test -d casesensitivetestdir | ||||
5730 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5732 | $as_echo "yes" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5733 | BUILDEXEEXT=.exe |
5734 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5736 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5737 | BUILDEXEEXT=$EXEEXT |
5738 | fi | ||||
5739 | rmdir CaseSensitiveTestDir | ||||
5740 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5741 | case $ac_sys_system in |
5742 | hp*|HP*) | ||||
5743 | case $CC in | ||||
5744 | cc|*/cc) CC="$CC -Ae";; | ||||
5745 | esac;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5746 | esac |
5747 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5748 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
5750 | $as_echo_n "checking LIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5751 | if test -z "$LIBRARY" |
5752 | then | ||||
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5753 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5754 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
5756 | $as_echo "$LIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5757 | |
5758 | # LDLIBRARY is the name of the library to link against (as opposed to the | ||||
5759 | # name of the library into which to insert object files). BLDLIBRARY is also | ||||
5760 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | ||||
5761 | # is blank as the main program is not linked directly against LDLIBRARY. | ||||
5762 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | ||||
5763 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | ||||
5764 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | ||||
5765 | # DLLLIBRARY is the shared (i.e., DLL) library. | ||||
5766 | # | ||||
5767 | # RUNSHARED is used to run shared python without installed libraries | ||||
5768 | # | ||||
5769 | # INSTSONAME is the name of the shared library that will be use to install | ||||
5770 | # on the system - some systems like version suffix, others don't | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5771 | # |
5772 | # LDVERSION is the shared library version number, normally the Python version | ||||
5773 | # with the ABI build flags appended. | ||||
5774 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5775 | |
5776 | |||||
5777 | |||||
5778 | |||||
5779 | |||||
5780 | |||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5781 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5782 | LDLIBRARY="$LIBRARY" |
5783 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5784 | INSTSONAME='$(LDLIBRARY)' | ||||
5785 | DLLLIBRARY='' | ||||
5786 | LDLIBRARYDIR='' | ||||
5787 | RUNSHARED='' | ||||
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5788 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5789 | |
5790 | # LINKCC is the command that links the python executable -- default is $(CC). | ||||
5791 | # If CXX is set, and if it is needed to link a main function that was | ||||
5792 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | ||||
5793 | # python might then depend on the C++ runtime | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5794 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
5796 | $as_echo_n "checking LINKCC... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5797 | if test -z "$LINKCC" |
5798 | then | ||||
5799 | LINKCC='$(PURIFY) $(MAINCC)' | ||||
5800 | case $ac_sys_system in | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5801 | QNX*) |
5802 | # qcc must be used because the other compilers do not | ||||
5803 | # support -N. | ||||
5804 | LINKCC=qcc;; | ||||
5805 | esac | ||||
5806 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
5808 | $as_echo "$LINKCC" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5809 | |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 5810 | # EXPORTSYMS holds the list of exported symbols for AIX. |
5811 | # EXPORTSFROM holds the module name exporting symbols on AIX. | ||||
5812 | EXPORTSYMS= | ||||
5813 | EXPORTSFROM= | ||||
5814 | |||||
5815 | |||||
5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5 | ||||
5817 | $as_echo_n "checking EXPORTSYMS... " >&6; } | ||||
5818 | case $ac_sys_system in | ||||
5819 | AIX*) | ||||
5820 | EXPORTSYMS="Modules/python.exp" | ||||
Kevin Adler | c79667f | 2020-11-16 09:16:10 -0600 | [diff] [blame] | 5821 | EXPORTSFROM=. # the main executable |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 5822 | ;; |
5823 | esac | ||||
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5 | ||||
5825 | $as_echo "$EXPORTSYMS" >&6; } | ||||
5826 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5827 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
5828 | # make sure we default having it set to "no": this is used by | ||||
5829 | # distutils.unixccompiler to know if it should add --enable-new-dtags | ||||
5830 | # to linker command lines, and failing to detect GNU ld simply results | ||||
5831 | # in the same bahaviour as before. | ||||
5832 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5834 | $as_echo_n "checking for GNU ld... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5835 | ac_prog=ld |
5836 | if test "$GCC" = yes; then | ||||
5837 | ac_prog=`$CC -print-prog-name=ld` | ||||
5838 | fi | ||||
5839 | case `"$ac_prog" -V 2>&1 < /dev/null` in | ||||
5840 | *GNU*) | ||||
5841 | GNULD=yes;; | ||||
5842 | *) | ||||
5843 | GNULD=no;; | ||||
5844 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
5846 | $as_echo "$GNULD" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5847 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
5849 | $as_echo_n "checking for --enable-shared... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5850 | # Check whether --enable-shared was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5851 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5852 | enableval=$enable_shared; |
5853 | fi | ||||
5854 | |||||
5855 | |||||
5856 | if test -z "$enable_shared" | ||||
5857 | then | ||||
5858 | case $ac_sys_system in | ||||
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5859 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5860 | enable_shared="yes";; |
5861 | *) | ||||
5862 | enable_shared="no";; | ||||
5863 | esac | ||||
5864 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
5866 | $as_echo "$enable_shared" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5867 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
5869 | $as_echo_n "checking for --enable-profiling... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5870 | # Check whether --enable-profiling was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5871 | if test "${enable_profiling+set}" = set; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5872 | enableval=$enable_profiling; |
5873 | fi | ||||
5874 | |||||
5875 | if test "x$enable_profiling" = xyes; then | ||||
5876 | ac_save_cc="$CC" | ||||
Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5877 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5879 | /* end confdefs.h. */ |
5880 | int main() { return 0; } | ||||
5881 | _ACEOF | ||||
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5882 | if ac_fn_c_try_link "$LINENO"; then : |
5883 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5884 | else |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5885 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5886 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5887 | rm -f core conftest.err conftest.$ac_objext \ |
5888 | conftest$ac_exeext conftest.$ac_ext | ||||
5889 | CC="$ac_save_cc" | ||||
5890 | else | ||||
5891 | enable_profiling=no | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5892 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
5894 | $as_echo "$enable_profiling" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5895 | |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5896 | if test "x$enable_profiling" = xyes; then |
5897 | BASECFLAGS="-pg $BASECFLAGS" | ||||
5898 | LDFLAGS="-pg $LDFLAGS" | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5899 | fi |
5900 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
5902 | $as_echo_n "checking LDLIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5903 | |
5904 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | ||||
5905 | # library that we build, but we do not want to link against it (we | ||||
5906 | # will find it with a -framework option). For this reason there is an | ||||
5907 | # extra variable BLDLIBRARY against which Python and the extension | ||||
5908 | # modules are linked, BLDLIBRARY. This is normally the same as | ||||
5909 | # LDLIBRARY, but empty for MacOSX framework builds. | ||||
5910 | if test "$enable_framework" | ||||
5911 | then | ||||
5912 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5913 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5914 | BLDLIBRARY='' |
5915 | else | ||||
5916 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5917 | fi | ||||
5918 | |||||
5919 | # Other platforms follow | ||||
5920 | if test $enable_shared = "yes"; then | ||||
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5921 | PY_ENABLE_SHARED=1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5922 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5923 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5924 | |
5925 | case $ac_sys_system in | ||||
5926 | CYGWIN*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5927 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
5928 | DLLLIBRARY='libpython$(LDVERSION).dll' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5929 | ;; |
5930 | SunOS*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5931 | LDLIBRARY='libpython$(LDVERSION).so' |
5932 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5933 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5934 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5935 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5936 | then |
5937 | PY3LIBRARY=libpython3.so | ||||
5938 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5939 | ;; |
pxinwr | c117426 | 2020-12-15 06:14:43 +0800 | [diff] [blame] | 5940 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5941 | LDLIBRARY='libpython$(LDVERSION).so' |
5942 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5943 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5944 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5945 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5946 | then |
5947 | PY3LIBRARY=libpython3.so | ||||
5948 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5949 | ;; |
5950 | hp*|HP*) | ||||
5951 | case `uname -m` in | ||||
5952 | ia64) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5953 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5954 | ;; |
5955 | *) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5956 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5957 | ;; |
5958 | esac | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5959 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5960 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5961 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5962 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5963 | LDLIBRARY='libpython$(LDVERSION).dylib' |
5964 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5965 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5966 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5967 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5968 | LDLIBRARY='libpython$(LDVERSION).so' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5969 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5970 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5971 | |
5972 | esac | ||||
5973 | else # shared is disabled | ||||
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5974 | PY_ENABLE_SHARED=0 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5975 | case $ac_sys_system in |
5976 | CYGWIN*) | ||||
5977 | BLDLIBRARY='$(LIBRARY)' | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5978 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5979 | ;; |
5980 | esac | ||||
5981 | fi | ||||
5982 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 5983 | if test "$cross_compiling" = yes; then |
5984 | RUNSHARED= | ||||
5985 | fi | ||||
5986 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
5988 | $as_echo "$LDLIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5989 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5990 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5991 | if test -n "$ac_tool_prefix"; then |
5992 | for ac_prog in ar aal | ||||
5993 | do | ||||
5994 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
5995 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5997 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5998 | if ${ac_cv_prog_AR+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5999 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6000 | else |
6001 | if test -n "$AR"; then | ||||
6002 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||||
6003 | else | ||||
6004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6005 | for as_dir in $PATH | ||||
6006 | do | ||||
6007 | IFS=$as_save_IFS | ||||
6008 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6009 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6010 | 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] | 6011 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6012 | $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] | 6013 | break 2 |
6014 | fi | ||||
6015 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6016 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6017 | IFS=$as_save_IFS |
6018 | |||||
6019 | fi | ||||
6020 | fi | ||||
6021 | AR=$ac_cv_prog_AR | ||||
6022 | if test -n "$AR"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6024 | $as_echo "$AR" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6025 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6027 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6028 | fi |
6029 | |||||
6030 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6031 | test -n "$AR" && break |
6032 | done | ||||
6033 | fi | ||||
6034 | if test -z "$AR"; then | ||||
6035 | ac_ct_AR=$AR | ||||
6036 | for ac_prog in ar aal | ||||
6037 | do | ||||
6038 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6039 | set dummy $ac_prog; ac_word=$2 | ||||
6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6041 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6042 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||||
6043 | $as_echo_n "(cached) " >&6 | ||||
6044 | else | ||||
6045 | if test -n "$ac_ct_AR"; then | ||||
6046 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||||
6047 | else | ||||
6048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6049 | for as_dir in $PATH | ||||
6050 | do | ||||
6051 | IFS=$as_save_IFS | ||||
6052 | test -z "$as_dir" && as_dir=. | ||||
6053 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6054 | 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] | 6055 | ac_cv_prog_ac_ct_AR="$ac_prog" |
6056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6057 | break 2 | ||||
6058 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6059 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6060 | done |
6061 | IFS=$as_save_IFS | ||||
6062 | |||||
6063 | fi | ||||
6064 | fi | ||||
6065 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||||
6066 | if test -n "$ac_ct_AR"; then | ||||
6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||||
6068 | $as_echo "$ac_ct_AR" >&6; } | ||||
6069 | else | ||||
6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6071 | $as_echo "no" >&6; } | ||||
6072 | fi | ||||
6073 | |||||
6074 | |||||
6075 | test -n "$ac_ct_AR" && break | ||||
6076 | done | ||||
6077 | |||||
6078 | if test "x$ac_ct_AR" = x; then | ||||
6079 | AR="ar" | ||||
6080 | else | ||||
6081 | case $cross_compiling:$ac_tool_warned in | ||||
6082 | yes:) | ||||
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6084 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6085 | ac_tool_warned=yes ;; | ||||
6086 | esac | ||||
6087 | AR=$ac_ct_AR | ||||
6088 | fi | ||||
6089 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6090 | |
6091 | |||||
6092 | # tweak ARFLAGS only if the user didn't set it on the command line | ||||
6093 | |||||
6094 | if test -z "$ARFLAGS" | ||||
6095 | then | ||||
Benjamin Peterson | d15108a | 2017-09-29 08:42:41 -0700 | [diff] [blame] | 6096 | ARFLAGS="rcs" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6097 | fi |
6098 | |||||
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6099 | if test -n "$ac_tool_prefix"; then |
6100 | for ac_prog in readelf | ||||
6101 | do | ||||
6102 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
6103 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6105 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6106 | if ${ac_cv_prog_READELF+:} false; then : | ||||
6107 | $as_echo_n "(cached) " >&6 | ||||
6108 | else | ||||
6109 | if test -n "$READELF"; then | ||||
6110 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | ||||
6111 | else | ||||
6112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6113 | for as_dir in $PATH | ||||
6114 | do | ||||
6115 | IFS=$as_save_IFS | ||||
6116 | test -z "$as_dir" && as_dir=. | ||||
6117 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6118 | 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] | 6119 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" |
6120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6121 | break 2 | ||||
6122 | fi | ||||
6123 | done | ||||
6124 | done | ||||
6125 | IFS=$as_save_IFS | ||||
6126 | |||||
6127 | fi | ||||
6128 | fi | ||||
6129 | READELF=$ac_cv_prog_READELF | ||||
6130 | if test -n "$READELF"; then | ||||
6131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | ||||
6132 | $as_echo "$READELF" >&6; } | ||||
6133 | else | ||||
6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6135 | $as_echo "no" >&6; } | ||||
6136 | fi | ||||
6137 | |||||
6138 | |||||
6139 | test -n "$READELF" && break | ||||
6140 | done | ||||
6141 | fi | ||||
6142 | if test -z "$READELF"; then | ||||
6143 | ac_ct_READELF=$READELF | ||||
6144 | for ac_prog in readelf | ||||
6145 | do | ||||
6146 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6147 | set dummy $ac_prog; ac_word=$2 | ||||
6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6149 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6150 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | ||||
6151 | $as_echo_n "(cached) " >&6 | ||||
6152 | else | ||||
6153 | if test -n "$ac_ct_READELF"; then | ||||
6154 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | ||||
6155 | else | ||||
6156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6157 | for as_dir in $PATH | ||||
6158 | do | ||||
6159 | IFS=$as_save_IFS | ||||
6160 | test -z "$as_dir" && as_dir=. | ||||
6161 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6162 | 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] | 6163 | ac_cv_prog_ac_ct_READELF="$ac_prog" |
6164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6165 | break 2 | ||||
6166 | fi | ||||
6167 | done | ||||
6168 | done | ||||
6169 | IFS=$as_save_IFS | ||||
6170 | |||||
6171 | fi | ||||
6172 | fi | ||||
6173 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | ||||
6174 | if test -n "$ac_ct_READELF"; then | ||||
6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | ||||
6176 | $as_echo "$ac_ct_READELF" >&6; } | ||||
6177 | else | ||||
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6179 | $as_echo "no" >&6; } | ||||
6180 | fi | ||||
6181 | |||||
6182 | |||||
6183 | test -n "$ac_ct_READELF" && break | ||||
6184 | done | ||||
6185 | |||||
6186 | if test "x$ac_ct_READELF" = x; then | ||||
6187 | READELF=":" | ||||
6188 | else | ||||
6189 | case $cross_compiling:$ac_tool_warned in | ||||
6190 | yes:) | ||||
6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6192 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6193 | ac_tool_warned=yes ;; | ||||
6194 | esac | ||||
6195 | READELF=$ac_ct_READELF | ||||
6196 | fi | ||||
6197 | fi | ||||
6198 | |||||
6199 | if test "$cross_compiling" = yes; then | ||||
6200 | case "$READELF" in | ||||
6201 | readelf|:) | ||||
6202 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | ||||
6203 | ;; | ||||
6204 | esac | ||||
6205 | fi | ||||
6206 | |||||
6207 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6208 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6209 | case $MACHDEP in |
Benjamin Peterson | 288d1da | 2017-09-28 22:44:27 -0700 | [diff] [blame] | 6210 | hp*|HP*) |
6211 | # install -d does not work on HP-UX | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6212 | if test -z "$INSTALL" |
6213 | then | ||||
6214 | INSTALL="${srcdir}/install-sh -c" | ||||
6215 | fi | ||||
6216 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6217 | # Find a good install program. We prefer a C program (faster), |
6218 | # so one script is as good as another. But avoid the broken or | ||||
6219 | # incompatible versions: | ||||
6220 | # SysV /etc/install, /usr/sbin/install | ||||
6221 | # SunOS /usr/etc/install | ||||
6222 | # IRIX /sbin/install | ||||
6223 | # AIX /bin/install | ||||
6224 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||||
6225 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||||
6226 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||||
6227 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||||
6228 | # OS/2's system install, which has a completely different semantic | ||||
6229 | # ./install, which can be erroneously created by make from ./install.sh. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6230 | # Reject install programs that cannot install multiple files. |
6231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||||
6232 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6233 | if test -z "$INSTALL"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6234 | if ${ac_cv_path_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6235 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6236 | else |
6237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6238 | for as_dir in $PATH | ||||
6239 | do | ||||
6240 | IFS=$as_save_IFS | ||||
6241 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6242 | # Account for people who put trailing slashes in PATH elements. |
6243 | case $as_dir/ in #(( | ||||
6244 | ./ | .// | /[cC]/* | \ | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6245 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6246 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6247 | /usr/ucb/* ) ;; |
6248 | *) | ||||
6249 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||||
6250 | # Don't use installbsd from OSF since it installs stuff as root | ||||
6251 | # by default. | ||||
6252 | for ac_prog in ginstall scoinst install; do | ||||
6253 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6254 | 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] | 6255 | if test $ac_prog = install && |
6256 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||||
6257 | # AIX install. It has an incompatible calling convention. | ||||
6258 | : | ||||
6259 | elif test $ac_prog = install && | ||||
6260 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||||
6261 | # program-specific install script used by HP pwplus--don't use. | ||||
6262 | : | ||||
6263 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6264 | rm -rf conftest.one conftest.two conftest.dir |
6265 | echo one > conftest.one | ||||
6266 | echo two > conftest.two | ||||
6267 | mkdir conftest.dir | ||||
6268 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||||
6269 | test -s conftest.one && test -s conftest.two && | ||||
6270 | test -s conftest.dir/conftest.one && | ||||
6271 | test -s conftest.dir/conftest.two | ||||
6272 | then | ||||
6273 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||||
6274 | break 3 | ||||
6275 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6276 | fi |
6277 | fi | ||||
6278 | done | ||||
6279 | done | ||||
6280 | ;; | ||||
6281 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6282 | |
6283 | done | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6284 | IFS=$as_save_IFS |
6285 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6286 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6287 | |
6288 | fi | ||||
6289 | if test "${ac_cv_path_install+set}" = set; then | ||||
6290 | INSTALL=$ac_cv_path_install | ||||
6291 | else | ||||
6292 | # As a last resort, use the slow shell script. Don't cache a | ||||
6293 | # value for INSTALL within a source directory, because that will | ||||
6294 | # break other packages using the cache if that directory is | ||||
6295 | # removed, or if the value is a relative name. | ||||
6296 | INSTALL=$ac_install_sh | ||||
6297 | fi | ||||
6298 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
6300 | $as_echo "$INSTALL" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6301 | |
6302 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||||
6303 | # It thinks the first close brace ends the variable substitution. | ||||
6304 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||||
6305 | |||||
6306 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||||
6307 | |||||
6308 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||||
6309 | |||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
6311 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||||
6312 | if test -z "$MKDIR_P"; then | ||||
6313 | if ${ac_cv_path_mkdir+:} false; then : | ||||
6314 | $as_echo_n "(cached) " >&6 | ||||
6315 | else | ||||
6316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6317 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||||
6318 | do | ||||
6319 | IFS=$as_save_IFS | ||||
6320 | test -z "$as_dir" && as_dir=. | ||||
6321 | for ac_prog in mkdir gmkdir; do | ||||
6322 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6323 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6324 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
6325 | 'mkdir (GNU coreutils) '* | \ | ||||
6326 | 'mkdir (coreutils) '* | \ | ||||
6327 | 'mkdir (fileutils) '4.1*) | ||||
6328 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||||
6329 | break 3;; | ||||
6330 | esac | ||||
6331 | done | ||||
6332 | done | ||||
6333 | done | ||||
6334 | IFS=$as_save_IFS | ||||
6335 | |||||
6336 | fi | ||||
6337 | |||||
6338 | test -d ./--version && rmdir ./--version | ||||
6339 | if test "${ac_cv_path_mkdir+set}" = set; then | ||||
6340 | MKDIR_P="$ac_cv_path_mkdir -p" | ||||
6341 | else | ||||
6342 | # As a last resort, use the slow shell script. Don't cache a | ||||
6343 | # value for MKDIR_P within a source directory, because that will | ||||
6344 | # break other packages using the cache if that directory is | ||||
6345 | # removed, or if the value is a relative name. | ||||
6346 | MKDIR_P="$ac_install_sh -d" | ||||
6347 | fi | ||||
6348 | fi | ||||
6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||||
6350 | $as_echo "$MKDIR_P" >&6; } | ||||
6351 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6352 | |
6353 | # Not every filesystem supports hard links | ||||
6354 | |||||
6355 | if test -z "$LN" ; then | ||||
6356 | case $ac_sys_system in | ||||
6357 | CYGWIN*) LN="ln -s";; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6358 | *) LN=ln;; |
6359 | esac | ||||
6360 | fi | ||||
6361 | |||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6362 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6363 | |
6364 | ABIFLAGS="" | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6365 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6366 | # Check for --with-pydebug |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
6368 | $as_echo_n "checking for --with-pydebug... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6369 | |
6370 | # Check whether --with-pydebug was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6371 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6372 | withval=$with_pydebug; |
6373 | if test "$withval" != no | ||||
6374 | then | ||||
6375 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6376 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6377 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6379 | $as_echo "yes" >&6; }; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6380 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6381 | ABIFLAGS="${ABIFLAGS}d" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6382 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6383 | $as_echo "no" >&6; }; Py_DEBUG='false' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6384 | fi |
6385 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6387 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6388 | fi |
6389 | |||||
6390 | |||||
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 6391 | # Check for --with-trace-refs |
6392 | # --with-trace-refs | ||||
6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5 | ||||
6394 | $as_echo_n "checking for --with-trace-refs... " >&6; } | ||||
6395 | |||||
6396 | # Check whether --with-trace-refs was given. | ||||
6397 | if test "${with_trace_refs+set}" = set; then : | ||||
6398 | withval=$with_trace_refs; | ||||
6399 | else | ||||
6400 | with_trace_refs=no | ||||
6401 | fi | ||||
6402 | |||||
6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5 | ||||
6404 | $as_echo "$with_trace_refs" >&6; } | ||||
6405 | |||||
6406 | if test "$with_trace_refs" = "yes" | ||||
6407 | then | ||||
6408 | |||||
6409 | $as_echo "#define Py_TRACE_REFS 1" >>confdefs.h | ||||
6410 | |||||
6411 | fi | ||||
6412 | |||||
6413 | # Check for --with-assertions. | ||||
6414 | # This allows enabling assertions without Py_DEBUG. | ||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6415 | assertions='false' |
6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 | ||||
6417 | $as_echo_n "checking for --with-assertions... " >&6; } | ||||
6418 | |||||
6419 | # Check whether --with-assertions was given. | ||||
6420 | if test "${with_assertions+set}" = set; then : | ||||
6421 | withval=$with_assertions; | ||||
6422 | if test "$withval" != no | ||||
6423 | then | ||||
6424 | assertions='true' | ||||
6425 | fi | ||||
6426 | fi | ||||
6427 | |||||
6428 | if test "$assertions" = 'true'; then | ||||
6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6430 | $as_echo "yes" >&6; } | ||||
6431 | elif test "$Py_DEBUG" = 'true'; then | ||||
6432 | assertions='true' | ||||
6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 | ||||
6434 | $as_echo "implied by --with-pydebug" >&6; } | ||||
6435 | else | ||||
6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6437 | $as_echo "no" >&6; } | ||||
6438 | fi | ||||
6439 | |||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6440 | # Enable optimization flags |
6441 | |||||
6442 | |||||
6443 | Py_OPT='false' | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 |
6445 | $as_echo_n "checking for --enable-optimizations... " >&6; } | ||||
6446 | # Check whether --enable-optimizations was given. | ||||
6447 | if test "${enable_optimizations+set}" = set; then : | ||||
6448 | enableval=$enable_optimizations; | ||||
Alex Wang | 8cea592 | 2017-03-28 08:50:51 -0400 | [diff] [blame] | 6449 | if test "$enableval" != no |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6450 | then |
6451 | Py_OPT='true' | ||||
6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6453 | $as_echo "yes" >&6; }; | ||||
6454 | else | ||||
6455 | Py_OPT='false' | ||||
6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6457 | $as_echo "no" >&6; }; | ||||
6458 | fi | ||||
6459 | else | ||||
6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6461 | $as_echo "no" >&6; } | ||||
6462 | fi | ||||
6463 | |||||
6464 | if test "$Py_OPT" = 'true' ; then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6465 | # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not |
6466 | # 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] | 6467 | # 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] | 6468 | # who want LTO need to use --with-lto themselves. |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6469 | DEF_MAKE_ALL_RULE="profile-opt" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6470 | REQUIRE_PGO="yes" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6471 | DEF_MAKE_RULE="build_all" |
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 6472 | case $CC in |
6473 | *gcc*) | ||||
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5 |
6475 | $as_echo_n "checking whether C compiler accepts -fno-semantic-interposition... " >&6; } | ||||
6476 | if ${ax_cv_check_cflags___fno_semantic_interposition+:} false; then : | ||||
6477 | $as_echo_n "(cached) " >&6 | ||||
6478 | else | ||||
6479 | |||||
6480 | ax_check_save_flags=$CFLAGS | ||||
6481 | CFLAGS="$CFLAGS -fno-semantic-interposition" | ||||
6482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
6483 | /* end confdefs.h. */ | ||||
6484 | |||||
6485 | int | ||||
6486 | main () | ||||
6487 | { | ||||
6488 | |||||
6489 | ; | ||||
6490 | return 0; | ||||
6491 | } | ||||
6492 | _ACEOF | ||||
6493 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
6494 | ax_cv_check_cflags___fno_semantic_interposition=yes | ||||
6495 | else | ||||
6496 | ax_cv_check_cflags___fno_semantic_interposition=no | ||||
6497 | fi | ||||
6498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
6499 | CFLAGS=$ax_check_save_flags | ||||
6500 | fi | ||||
6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_semantic_interposition" >&5 | ||||
6502 | $as_echo "$ax_cv_check_cflags___fno_semantic_interposition" >&6; } | ||||
6503 | if test "x$ax_cv_check_cflags___fno_semantic_interposition" = xyes; then : | ||||
6504 | |||||
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 6505 | CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition" |
6506 | LDFLAGS_NODIST="$LDFLAGS_NODIST -fno-semantic-interposition" | ||||
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 6507 | |
6508 | else | ||||
6509 | : | ||||
6510 | fi | ||||
6511 | |||||
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 6512 | ;; |
6513 | esac | ||||
6514 | |||||
6515 | |||||
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6516 | else |
6517 | DEF_MAKE_ALL_RULE="build_all" | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6518 | REQUIRE_PGO="no" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6519 | DEF_MAKE_RULE="all" |
6520 | fi | ||||
6521 | |||||
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 6522 | |
6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5 | ||||
6524 | $as_echo_n "checking PROFILE_TASK... " >&6; } | ||||
6525 | if test -z "$PROFILE_TASK" | ||||
6526 | then | ||||
6527 | PROFILE_TASK='-m test --pgo' | ||||
6528 | fi | ||||
6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5 | ||||
6530 | $as_echo "$PROFILE_TASK" >&6; } | ||||
6531 | |||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6532 | # Make llvm-relatec checks work on systems where llvm tools are not installed with their |
6533 | # normal names in the default $PATH (ie: Ubuntu). They exist under the | ||||
6534 | # non-suffixed name in their versioned llvm directory. | ||||
6535 | |||||
6536 | llvm_bin_dir='' | ||||
6537 | llvm_path="${PATH}" | ||||
6538 | if test "${CC}" = "clang" | ||||
6539 | then | ||||
6540 | clang_bin=`which clang` | ||||
6541 | # Some systems install clang elsewhere as a symlink to the real path | ||||
6542 | # which is where the related llvm tools are located. | ||||
6543 | if test -L "${clang_bin}" | ||||
6544 | then | ||||
6545 | clang_dir=`dirname "${clang_bin}"` | ||||
6546 | clang_bin=`readlink "${clang_bin}"` | ||||
6547 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | ||||
6548 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | ||||
6549 | fi | ||||
6550 | fi | ||||
6551 | |||||
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6552 | # Enable LTO flags |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 |
6554 | $as_echo_n "checking for --with-lto... " >&6; } | ||||
6555 | |||||
6556 | # Check whether --with-lto was given. | ||||
6557 | if test "${with_lto+set}" = set; then : | ||||
6558 | withval=$with_lto; | ||||
6559 | if test "$withval" != no | ||||
6560 | then | ||||
6561 | Py_LTO='true' | ||||
6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6563 | $as_echo "yes" >&6; }; | ||||
6564 | else | ||||
6565 | Py_LTO='false' | ||||
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6567 | $as_echo "no" >&6; }; | ||||
6568 | fi | ||||
6569 | else | ||||
6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6571 | $as_echo "no" >&6; } | ||||
6572 | fi | ||||
6573 | |||||
6574 | if test "$Py_LTO" = 'true' ; then | ||||
6575 | case $CC in | ||||
6576 | *clang*) | ||||
Victor Stinner | 06fe77a | 2018-06-19 18:24:58 +0200 | [diff] [blame] | 6577 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6578 | if test -n "$ac_tool_prefix"; then |
6579 | # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. | ||||
6580 | set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2 | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6582 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6583 | if ${ac_cv_path_LLVM_AR+:} false; then : | ||||
6584 | $as_echo_n "(cached) " >&6 | ||||
6585 | else | ||||
6586 | case $LLVM_AR in | ||||
6587 | [\\/]* | ?:[\\/]*) | ||||
6588 | ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. | ||||
6589 | ;; | ||||
6590 | *) | ||||
6591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6592 | for as_dir in ${llvm_path} | ||||
6593 | do | ||||
6594 | IFS=$as_save_IFS | ||||
6595 | test -z "$as_dir" && as_dir=. | ||||
6596 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6597 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6598 | ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6600 | break 2 | ||||
6601 | fi | ||||
6602 | done | ||||
6603 | done | ||||
6604 | IFS=$as_save_IFS | ||||
6605 | |||||
6606 | ;; | ||||
6607 | esac | ||||
6608 | fi | ||||
6609 | LLVM_AR=$ac_cv_path_LLVM_AR | ||||
6610 | if test -n "$LLVM_AR"; then | ||||
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 | ||||
6612 | $as_echo "$LLVM_AR" >&6; } | ||||
6613 | else | ||||
6614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6615 | $as_echo "no" >&6; } | ||||
6616 | fi | ||||
6617 | |||||
6618 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6619 | fi |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6620 | if test -z "$ac_cv_path_LLVM_AR"; then |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6621 | ac_pt_LLVM_AR=$LLVM_AR |
6622 | # 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] | 6623 | set dummy llvm-ar; ac_word=$2 |
6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6625 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6626 | if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then : | ||||
6627 | $as_echo_n "(cached) " >&6 | ||||
6628 | else | ||||
6629 | case $ac_pt_LLVM_AR in | ||||
6630 | [\\/]* | ?:[\\/]*) | ||||
6631 | ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. | ||||
6632 | ;; | ||||
6633 | *) | ||||
6634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6635 | for as_dir in ${llvm_path} | ||||
6636 | do | ||||
6637 | IFS=$as_save_IFS | ||||
6638 | test -z "$as_dir" && as_dir=. | ||||
6639 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6640 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6641 | ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6643 | break 2 | ||||
6644 | fi | ||||
6645 | done | ||||
6646 | done | ||||
6647 | IFS=$as_save_IFS | ||||
6648 | |||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6649 | ;; |
6650 | esac | ||||
6651 | fi | ||||
6652 | ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR | ||||
6653 | if test -n "$ac_pt_LLVM_AR"; then | ||||
6654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 | ||||
6655 | $as_echo "$ac_pt_LLVM_AR" >&6; } | ||||
6656 | else | ||||
6657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6658 | $as_echo "no" >&6; } | ||||
6659 | fi | ||||
6660 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6661 | if test "x$ac_pt_LLVM_AR" = x; then |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6662 | LLVM_AR="''" |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6663 | else |
6664 | case $cross_compiling:$ac_tool_warned in | ||||
6665 | yes:) | ||||
6666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6667 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6668 | ac_tool_warned=yes ;; | ||||
6669 | esac | ||||
6670 | LLVM_AR=$ac_pt_LLVM_AR | ||||
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6671 | fi |
6672 | else | ||||
6673 | LLVM_AR="$ac_cv_path_LLVM_AR" | ||||
6674 | fi | ||||
6675 | |||||
6676 | |||||
6677 | if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" | ||||
6678 | then | ||||
6679 | LLVM_AR_FOUND="found" | ||||
6680 | else | ||||
6681 | LLVM_AR_FOUND="not-found" | ||||
6682 | fi | ||||
6683 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" | ||||
6684 | then | ||||
6685 | found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null` | ||||
6686 | if test -n "${found_llvm_ar}" | ||||
6687 | then | ||||
6688 | LLVM_AR='/usr/bin/xcrun llvm-ar' | ||||
6689 | LLVM_AR_FOUND=found | ||||
6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 | ||||
6691 | $as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} | ||||
6692 | fi | ||||
6693 | fi | ||||
6694 | if test $LLVM_AR_FOUND = not-found | ||||
6695 | then | ||||
6696 | LLVM_PROFR_ERR=yes | ||||
6697 | as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 | ||||
6698 | else | ||||
6699 | LLVM_AR_ERR=no | ||||
6700 | fi | ||||
6701 | AR="${LLVM_AR}" | ||||
6702 | case $ac_sys_system in | ||||
6703 | Darwin*) | ||||
6704 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6705 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6706 | ;; | ||||
6707 | *) | ||||
6708 | LTOFLAGS="-flto" | ||||
6709 | ;; | ||||
6710 | esac | ||||
6711 | ;; | ||||
6712 | *gcc*) | ||||
6713 | case $ac_sys_system in | ||||
6714 | Darwin*) | ||||
6715 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6716 | ;; | ||||
6717 | *) | ||||
6718 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | ||||
6719 | ;; | ||||
6720 | esac | ||||
6721 | ;; | ||||
6722 | esac | ||||
6723 | |||||
6724 | if test "$ac_cv_prog_cc_g" = "yes" | ||||
6725 | then | ||||
6726 | # bpo-30345: Add -g to LDFLAGS when compiling with LTO | ||||
6727 | # to get debug symbols. | ||||
6728 | LTOFLAGS="$LTOFLAGS -g" | ||||
6729 | fi | ||||
6730 | |||||
stratakis | f92c7aa | 2018-12-04 15:54:01 +0100 | [diff] [blame] | 6731 | CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS" |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 6732 | LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 6733 | fi |
6734 | |||||
6735 | # Enable PGO flags. | ||||
6736 | |||||
6737 | |||||
6738 | |||||
6739 | |||||
6740 | |||||
6741 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6742 | if test -n "$ac_tool_prefix"; then |
6743 | # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. | ||||
6744 | set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6746 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6747 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | ||||
6748 | $as_echo_n "(cached) " >&6 | ||||
6749 | else | ||||
6750 | case $LLVM_PROFDATA in | ||||
6751 | [\\/]* | ?:[\\/]*) | ||||
6752 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6753 | ;; | ||||
6754 | *) | ||||
6755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6756 | for as_dir in ${llvm_path} | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6757 | do |
6758 | IFS=$as_save_IFS | ||||
6759 | test -z "$as_dir" && as_dir=. | ||||
6760 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6761 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6762 | ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6764 | break 2 | ||||
6765 | fi | ||||
6766 | done | ||||
6767 | done | ||||
6768 | IFS=$as_save_IFS | ||||
6769 | |||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6770 | ;; |
6771 | esac | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6772 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6773 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA |
6774 | if test -n "$LLVM_PROFDATA"; then | ||||
6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 | ||||
6776 | $as_echo "$LLVM_PROFDATA" >&6; } | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6777 | else |
6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6779 | $as_echo "no" >&6; } | ||||
6780 | fi | ||||
6781 | |||||
6782 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6783 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6784 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6785 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA |
6786 | # 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] | 6787 | set dummy llvm-profdata; ac_word=$2 |
6788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6789 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6790 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | ||||
6791 | $as_echo_n "(cached) " >&6 | ||||
6792 | else | ||||
6793 | case $ac_pt_LLVM_PROFDATA in | ||||
6794 | [\\/]* | ?:[\\/]*) | ||||
6795 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6796 | ;; | ||||
6797 | *) | ||||
6798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6799 | for as_dir in ${llvm_path} | ||||
6800 | do | ||||
6801 | IFS=$as_save_IFS | ||||
6802 | test -z "$as_dir" && as_dir=. | ||||
6803 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6805 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | ||||
6806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6807 | break 2 | ||||
6808 | fi | ||||
6809 | done | ||||
6810 | done | ||||
6811 | IFS=$as_save_IFS | ||||
6812 | |||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6813 | ;; |
6814 | esac | ||||
6815 | fi | ||||
6816 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | ||||
6817 | if test -n "$ac_pt_LLVM_PROFDATA"; then | ||||
6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 | ||||
6819 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } | ||||
6820 | else | ||||
6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6822 | $as_echo "no" >&6; } | ||||
6823 | fi | ||||
6824 | |||||
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6825 | if test "x$ac_pt_LLVM_PROFDATA" = x; then |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6826 | LLVM_PROFDATA="''" |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 6827 | else |
6828 | case $cross_compiling:$ac_tool_warned in | ||||
6829 | yes:) | ||||
6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6831 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6832 | ac_tool_warned=yes ;; | ||||
6833 | esac | ||||
6834 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6835 | fi |
6836 | else | ||||
6837 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | ||||
6838 | fi | ||||
6839 | |||||
6840 | |||||
6841 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | ||||
6842 | then | ||||
6843 | LLVM_PROF_FOUND="found" | ||||
6844 | else | ||||
6845 | LLVM_PROF_FOUND="not-found" | ||||
6846 | fi | ||||
6847 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | ||||
6848 | then | ||||
6849 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | ||||
6850 | if test -n "${found_llvm_profdata}" | ||||
6851 | then | ||||
6852 | # llvm-profdata isn't directly in $PATH in some cases. | ||||
6853 | # https://apple.stackexchange.com/questions/197053/ | ||||
6854 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | ||||
6855 | LLVM_PROF_FOUND=found | ||||
6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 | ||||
6857 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | ||||
6858 | fi | ||||
6859 | fi | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6860 | LLVM_PROF_ERR=no |
6861 | case $CC in | ||||
6862 | *clang*) | ||||
6863 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6864 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6865 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6866 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6867 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
6868 | if test $LLVM_PROF_FOUND = not-found | ||||
6869 | then | ||||
6870 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6871 | if test "${REQUIRE_PGO}" = "yes" |
6872 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6873 | 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] | 6874 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6875 | fi |
6876 | ;; | ||||
6877 | *gcc*) | ||||
6878 | case $ac_sys_system in | ||||
6879 | Darwin*) | ||||
6880 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6881 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6882 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6883 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6884 | if test "${LLVM_PROF_FOUND}" = "not-found" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6885 | then |
6886 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6887 | if test "${REQUIRE_PGO}" = "yes" |
6888 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6889 | 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] | 6890 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6891 | fi |
6892 | ;; | ||||
6893 | *) | ||||
6894 | PGO_PROF_GEN_FLAG="-fprofile-generate" | ||||
6895 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | ||||
6896 | LLVM_PROF_MERGER="true" | ||||
6897 | LLVM_PROF_FILE="" | ||||
6898 | ;; | ||||
6899 | esac | ||||
6900 | ;; | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6901 | *icc*) |
6902 | PGO_PROF_GEN_FLAG="-prof-gen" | ||||
6903 | PGO_PROF_USE_FLAG="-prof-use" | ||||
6904 | LLVM_PROF_MERGER="true" | ||||
6905 | LLVM_PROF_FILE="" | ||||
6906 | ;; | ||||
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6907 | esac |
6908 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6909 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
6910 | # merged with this chunk of code? | ||||
6911 | |||||
6912 | # Optimizer/debugger flags | ||||
6913 | # ------------------------ | ||||
6914 | # (The following bit of code is complicated enough - please keep things | ||||
6915 | # indented properly. Just pretend you're editing Python code. ;-) | ||||
6916 | |||||
6917 | # There are two parallel sets of case statements below, one that checks to | ||||
6918 | # see if OPT was set and one that does BASECFLAGS setting based upon | ||||
6919 | # compiler and platform. BASECFLAGS tweaks need to be made even if the | ||||
6920 | # user set OPT. | ||||
6921 | |||||
Victor Stinner | 23a683a | 2019-04-12 21:27:37 +0200 | [diff] [blame] | 6922 | case $CC in |
6923 | *clang*) | ||||
6924 | cc_is_clang=1 | ||||
6925 | ;; | ||||
6926 | *) | ||||
6927 | if $CC --version 2>&1 | grep -q clang | ||||
6928 | then | ||||
6929 | cc_is_clang=1 | ||||
6930 | else | ||||
6931 | cc_is_clang= | ||||
6932 | fi | ||||
6933 | esac | ||||
6934 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6935 | # tweak OPT based on compiler and platform, only if the user didn't set |
6936 | # it on the command line | ||||
6937 | |||||
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6938 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6939 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6940 | then |
6941 | case $GCC in | ||||
6942 | yes) | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6943 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
6944 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | ||||
6945 | WRAP="-fwrapv" | ||||
6946 | fi | ||||
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6947 | |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6948 | if test -n "${cc_is_clang}" |
6949 | then | ||||
6950 | # Clang also needs -fwrapv | ||||
6951 | WRAP="-fwrapv" | ||||
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6952 | # bpo-30104: disable strict aliasing to compile correctly dtoa.c, |
6953 | # see Makefile.pre.in for more information | ||||
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 6954 | CFLAGS_ALIASING="-fno-strict-aliasing" |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6955 | fi |
6956 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6957 | case $ac_cv_prog_cc_g in |
6958 | yes) | ||||
6959 | if test "$Py_DEBUG" = 'true' ; then | ||||
6960 | # Optimization messes up debuggers, so turn it off for | ||||
6961 | # debug builds. | ||||
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6962 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6963 | OPT="-g -Og -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6964 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6965 | OPT="-g -O0 -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6966 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6967 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6968 | OPT="-g $WRAP -O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6969 | fi |
6970 | ;; | ||||
6971 | *) | ||||
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6972 | OPT="-O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6973 | ;; |
6974 | esac | ||||
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6975 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6976 | case $ac_sys_system in |
6977 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | ||||
6978 | ;; | ||||
6979 | esac | ||||
6980 | ;; | ||||
6981 | |||||
6982 | *) | ||||
6983 | OPT="-O" | ||||
6984 | ;; | ||||
6985 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6986 | fi |
6987 | |||||
6988 | |||||
6989 | |||||
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6990 | |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 6991 | |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 6992 | # The -arch flags for universal builds on macOS |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6993 | UNIVERSAL_ARCH_FLAGS= |
6994 | |||||
6995 | |||||
6996 | # tweak BASECFLAGS based on compiler and platform | ||||
6997 | case $GCC in | ||||
6998 | yes) | ||||
Benjamin Peterson | 050af5d | 2016-09-10 17:53:13 -0700 | [diff] [blame] | 6999 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" |
Benjamin Peterson | d170256 | 2016-09-07 12:00:06 -0700 | [diff] [blame] | 7000 | |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 |
7002 | $as_echo_n "checking for -Wextra... " >&6; } | ||||
7003 | ac_save_cc="$CC" | ||||
7004 | CC="$CC -Wextra -Werror" | ||||
7005 | if ${ac_cv_extra_warnings+:} false; then : | ||||
7006 | $as_echo_n "(cached) " >&6 | ||||
7007 | else | ||||
7008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7009 | /* end confdefs.h. */ | ||||
7010 | |||||
7011 | |||||
7012 | int | ||||
7013 | main () | ||||
7014 | { | ||||
7015 | |||||
7016 | ; | ||||
7017 | return 0; | ||||
7018 | } | ||||
7019 | |||||
7020 | _ACEOF | ||||
7021 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7022 | |||||
7023 | ac_cv_extra_warnings=yes | ||||
7024 | |||||
7025 | else | ||||
7026 | |||||
7027 | ac_cv_extra_warnings=no | ||||
7028 | |||||
7029 | fi | ||||
7030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7031 | fi | ||||
7032 | |||||
7033 | CC="$ac_save_cc" | ||||
7034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 | ||||
7035 | $as_echo "$ac_cv_extra_warnings" >&6; } | ||||
7036 | |||||
7037 | if test $ac_cv_extra_warnings = yes | ||||
7038 | then | ||||
7039 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" | ||||
7040 | fi | ||||
7041 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7042 | # Python doesn't violate C99 aliasing rules, but older versions of |
7043 | # GCC produce warnings for legal Python code. Enable | ||||
7044 | # -fno-strict-aliasing on versions of GCC that support but produce | ||||
7045 | # warnings. See Issue3326 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
7047 | $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] | 7048 | ac_save_cc="$CC" |
7049 | CC="$CC -fno-strict-aliasing" | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7050 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7051 | if ${ac_cv_no_strict_aliasing+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7052 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7053 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7055 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7056 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7057 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7058 | int |
7059 | main () | ||||
7060 | { | ||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7061 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7062 | ; |
7063 | return 0; | ||||
7064 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7065 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7066 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7067 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7068 | |
7069 | CC="$ac_save_cc -fstrict-aliasing" | ||||
7070 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | ||||
7071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7072 | /* end confdefs.h. */ |
7073 | |||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7074 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7075 | int |
7076 | main () | ||||
7077 | { | ||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7078 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7079 | ; |
7080 | return 0; | ||||
7081 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7082 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7083 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7084 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7085 | |
7086 | ac_cv_no_strict_aliasing=no | ||||
7087 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7088 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7089 | |
7090 | ac_cv_no_strict_aliasing=yes | ||||
7091 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7092 | fi |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7094 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7095 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7096 | |
7097 | ac_cv_no_strict_aliasing=no | ||||
7098 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7099 | fi |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7101 | fi |
7102 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7103 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7104 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
7106 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7107 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7108 | then |
7109 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | ||||
7110 | fi | ||||
7111 | |||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7112 | # ICC doesn't recognize the option, but only emits a warning |
7113 | ## XXX does it emit an unused result warning and can it be disabled? | ||||
7114 | case "$CC" in | ||||
7115 | *icc*) | ||||
7116 | ac_cv_disable_unused_result_warning=no | ||||
7117 | ;; | ||||
7118 | *) | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
7120 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | ||||
7121 | ac_save_cc="$CC" | ||||
7122 | CC="$CC -Wunused-result -Werror" | ||||
7123 | save_CFLAGS="$CFLAGS" | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7124 | if ${ac_cv_disable_unused_result_warning+:} false; then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7125 | $as_echo_n "(cached) " >&6 |
7126 | else | ||||
7127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7128 | /* end confdefs.h. */ | ||||
7129 | |||||
7130 | |||||
7131 | int | ||||
7132 | main () | ||||
7133 | { | ||||
7134 | |||||
7135 | ; | ||||
7136 | return 0; | ||||
7137 | } | ||||
7138 | |||||
7139 | _ACEOF | ||||
7140 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7141 | |||||
7142 | ac_cv_disable_unused_result_warning=yes | ||||
7143 | |||||
7144 | else | ||||
7145 | |||||
7146 | ac_cv_disable_unused_result_warning=no | ||||
7147 | |||||
7148 | fi | ||||
7149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7150 | fi | ||||
7151 | |||||
7152 | CFLAGS="$save_CFLAGS" | ||||
7153 | CC="$ac_save_cc" | ||||
7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | ||||
7155 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7156 | ;; |
7157 | esac | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7158 | |
7159 | if test $ac_cv_disable_unused_result_warning = yes | ||||
7160 | then | ||||
7161 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7162 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" |
7163 | fi | ||||
7164 | |||||
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 | ||||
7166 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } | ||||
7167 | ac_save_cc="$CC" | ||||
7168 | CC="$CC -Wunused-parameter -Werror" | ||||
7169 | if ${ac_cv_disable_unused_parameter_warning+:} false; then : | ||||
7170 | $as_echo_n "(cached) " >&6 | ||||
7171 | else | ||||
7172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7173 | /* end confdefs.h. */ | ||||
7174 | |||||
7175 | |||||
7176 | int | ||||
7177 | main () | ||||
7178 | { | ||||
7179 | |||||
7180 | ; | ||||
7181 | return 0; | ||||
7182 | } | ||||
7183 | |||||
7184 | _ACEOF | ||||
7185 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7186 | |||||
7187 | ac_cv_disable_unused_parameter_warning=yes | ||||
7188 | |||||
7189 | else | ||||
7190 | |||||
7191 | ac_cv_disable_unused_parameter_warning=no | ||||
7192 | |||||
7193 | fi | ||||
7194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7195 | fi | ||||
7196 | |||||
7197 | CC="$ac_save_cc" | ||||
7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 | ||||
7199 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } | ||||
7200 | |||||
7201 | if test $ac_cv_disable_unused_parameter_warning = yes | ||||
7202 | then | ||||
7203 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" | ||||
7204 | fi | ||||
7205 | |||||
7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 | ||||
7207 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } | ||||
7208 | ac_save_cc="$CC" | ||||
7209 | CC="$CC -Wmissing-field-initializers -Werror" | ||||
7210 | if ${ac_cv_disable_missing_field_initializers+:} false; then : | ||||
7211 | $as_echo_n "(cached) " >&6 | ||||
7212 | else | ||||
7213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7214 | /* end confdefs.h. */ | ||||
7215 | |||||
7216 | |||||
7217 | int | ||||
7218 | main () | ||||
7219 | { | ||||
7220 | |||||
7221 | ; | ||||
7222 | return 0; | ||||
7223 | } | ||||
7224 | |||||
7225 | _ACEOF | ||||
7226 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7227 | |||||
7228 | ac_cv_disable_missing_field_initializers=yes | ||||
7229 | |||||
7230 | else | ||||
7231 | |||||
7232 | ac_cv_disable_missing_field_initializers=no | ||||
7233 | |||||
7234 | fi | ||||
7235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7236 | fi | ||||
7237 | |||||
7238 | CC="$ac_save_cc" | ||||
7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 | ||||
7240 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } | ||||
7241 | |||||
7242 | if test $ac_cv_disable_missing_field_initializers = yes | ||||
7243 | then | ||||
7244 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7245 | fi |
7246 | |||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
7248 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | ||||
7249 | ac_save_cc="$CC" | ||||
7250 | CC="$CC -Wsign-compare" | ||||
7251 | save_CFLAGS="$CFLAGS" | ||||
7252 | if ${ac_cv_enable_sign_compare_warning+:} false; then : | ||||
7253 | $as_echo_n "(cached) " >&6 | ||||
7254 | else | ||||
7255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7256 | /* end confdefs.h. */ | ||||
7257 | |||||
7258 | |||||
7259 | int | ||||
7260 | main () | ||||
7261 | { | ||||
7262 | |||||
7263 | ; | ||||
7264 | return 0; | ||||
7265 | } | ||||
7266 | |||||
7267 | _ACEOF | ||||
7268 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7269 | |||||
7270 | ac_cv_enable_sign_compare_warning=yes | ||||
7271 | |||||
7272 | else | ||||
7273 | |||||
7274 | ac_cv_enable_sign_compare_warning=no | ||||
7275 | |||||
7276 | fi | ||||
7277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7278 | fi | ||||
7279 | |||||
7280 | CFLAGS="$save_CFLAGS" | ||||
7281 | CC="$ac_save_cc" | ||||
7282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | ||||
7283 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | ||||
7284 | |||||
7285 | if test $ac_cv_enable_sign_compare_warning = yes | ||||
7286 | then | ||||
7287 | BASECFLAGS="$BASECFLAGS -Wsign-compare" | ||||
7288 | fi | ||||
7289 | |||||
7290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | ||||
7291 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | ||||
7292 | ac_save_cc="$CC" | ||||
7293 | CC="$CC -Wunreachable-code" | ||||
7294 | save_CFLAGS="$CFLAGS" | ||||
7295 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : | ||||
7296 | $as_echo_n "(cached) " >&6 | ||||
7297 | else | ||||
7298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7299 | /* end confdefs.h. */ | ||||
7300 | |||||
7301 | |||||
7302 | int | ||||
7303 | main () | ||||
7304 | { | ||||
7305 | |||||
7306 | ; | ||||
7307 | return 0; | ||||
7308 | } | ||||
7309 | |||||
7310 | _ACEOF | ||||
7311 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7312 | |||||
7313 | ac_cv_enable_unreachable_code_warning=yes | ||||
7314 | |||||
7315 | else | ||||
7316 | |||||
7317 | ac_cv_enable_unreachable_code_warning=no | ||||
7318 | |||||
7319 | fi | ||||
7320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7321 | fi | ||||
7322 | |||||
7323 | CFLAGS="$save_CFLAGS" | ||||
7324 | CC="$ac_save_cc" | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7325 | |
7326 | # Don't enable unreachable code warning in debug mode, since it usually | ||||
7327 | # results in non-standard code paths. | ||||
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7328 | # Issue #24324: Unfortunately, the unreachable code warning does not work |
7329 | # correctly on gcc and has been silently removed from the compiler. | ||||
7330 | # It is supported on clang but on OS X systems gcc may be an alias | ||||
7331 | # for clang. Try to determine if the compiler is not really gcc and, | ||||
7332 | # if so, only then enable the warning. | ||||
7333 | if test $ac_cv_enable_unreachable_code_warning = yes && \ | ||||
7334 | test "$Py_DEBUG" != "true" && \ | ||||
7335 | 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] | 7336 | then |
7337 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" | ||||
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7338 | else |
7339 | ac_cv_enable_unreachable_code_warning=no | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7340 | fi |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
7342 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7343 | |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 |
7345 | $as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; } | ||||
7346 | ac_save_cc="$CC" | ||||
7347 | CC="$CC -Werror -Wstrict-prototypes" | ||||
7348 | if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then : | ||||
7349 | $as_echo_n "(cached) " >&6 | ||||
7350 | else | ||||
7351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7352 | /* end confdefs.h. */ | ||||
7353 | |||||
7354 | |||||
7355 | int | ||||
7356 | main () | ||||
7357 | { | ||||
7358 | |||||
7359 | ; | ||||
7360 | return 0; | ||||
7361 | } | ||||
7362 | |||||
7363 | _ACEOF | ||||
7364 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7365 | |||||
7366 | ac_cv_enable_strict_prototypes_warning=yes | ||||
7367 | |||||
7368 | else | ||||
7369 | |||||
7370 | ac_cv_enable_strict_prototypes_warning=no | ||||
7371 | |||||
7372 | fi | ||||
7373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7374 | fi | ||||
7375 | |||||
7376 | CC="$ac_save_cc" | ||||
7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 | ||||
7378 | $as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; } | ||||
7379 | |||||
7380 | if test $ac_cv_enable_strict_prototypes_warning = yes | ||||
7381 | then | ||||
7382 | CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" | ||||
7383 | fi | ||||
7384 | |||||
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 |
7386 | $as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } | ||||
7387 | ac_save_cc="$CC" | ||||
7388 | CC="$CC -Werror=implicit-function-declaration" | ||||
7389 | if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : | ||||
7390 | $as_echo_n "(cached) " >&6 | ||||
7391 | else | ||||
7392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7393 | /* end confdefs.h. */ | ||||
7394 | |||||
7395 | |||||
7396 | int | ||||
7397 | main () | ||||
7398 | { | ||||
7399 | |||||
7400 | ; | ||||
7401 | return 0; | ||||
7402 | } | ||||
7403 | |||||
7404 | _ACEOF | ||||
7405 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7406 | |||||
7407 | ac_cv_enable_implicit_function_declaration_error=yes | ||||
7408 | |||||
7409 | else | ||||
7410 | |||||
7411 | ac_cv_enable_implicit_function_declaration_error=no | ||||
7412 | |||||
7413 | fi | ||||
7414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7415 | fi | ||||
7416 | |||||
7417 | CC="$ac_save_cc" | ||||
7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 | ||||
7419 | $as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } | ||||
7420 | |||||
7421 | if test $ac_cv_enable_implicit_function_declaration_error = yes | ||||
7422 | then | ||||
7423 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" | ||||
7424 | fi | ||||
7425 | |||||
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5 |
7427 | $as_echo_n "checking if we can use visibility in $CC... " >&6; } | ||||
7428 | ac_save_cc="$CC" | ||||
7429 | CC="$CC -fvisibility=hidden" | ||||
7430 | if ${ac_cv_enable_visibility+:} false; then : | ||||
7431 | $as_echo_n "(cached) " >&6 | ||||
7432 | else | ||||
7433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7434 | /* end confdefs.h. */ | ||||
7435 | |||||
7436 | |||||
7437 | int | ||||
7438 | main () | ||||
7439 | { | ||||
7440 | |||||
7441 | ; | ||||
7442 | return 0; | ||||
7443 | } | ||||
7444 | |||||
7445 | _ACEOF | ||||
7446 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7447 | |||||
7448 | ac_cv_enable_visibility=yes | ||||
7449 | |||||
7450 | else | ||||
7451 | |||||
7452 | ac_cv_enable_visibility=no | ||||
7453 | |||||
7454 | fi | ||||
7455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7456 | fi | ||||
7457 | |||||
7458 | CC="$ac_save_cc" | ||||
7459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5 | ||||
7460 | $as_echo "$ac_cv_enable_visibility" >&6; } | ||||
7461 | |||||
7462 | if test $ac_cv_enable_visibility = yes | ||||
7463 | then | ||||
7464 | CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden" | ||||
7465 | fi | ||||
7466 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7467 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
7468 | # support. Without this, treatment of subnormals doesn't follow | ||||
7469 | # the standard. | ||||
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7470 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7471 | alpha*) |
7472 | BASECFLAGS="$BASECFLAGS -mieee" | ||||
7473 | ;; | ||||
7474 | esac | ||||
7475 | |||||
7476 | case $ac_sys_system in | ||||
7477 | SCO_SV*) | ||||
7478 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | ||||
7479 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7480 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7481 | Darwin*) |
7482 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | ||||
7483 | # used to be here, but non-Apple gcc doesn't accept them. | ||||
7484 | if test "${CC}" = gcc | ||||
7485 | then | ||||
7486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7487 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7488 | case "${UNIVERSALSDK}" in |
7489 | */MacOSX10.4u.sdk) | ||||
7490 | # Build using 10.4 SDK, force usage of gcc when the | ||||
7491 | # compiler is gcc, otherwise the user will get very | ||||
7492 | # confusing error messages when building on OSX 10.6 | ||||
7493 | CC=gcc-4.0 | ||||
7494 | CPP=cpp-4.0 | ||||
7495 | ;; | ||||
7496 | esac | ||||
7497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7498 | $as_echo "$CC" >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7499 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7500 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7501 | if test "${enable_universalsdk}" |
7502 | then | ||||
7503 | case "$UNIVERSAL_ARCHS" in | ||||
7504 | 32-bit) | ||||
7505 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | ||||
7506 | LIPO_32BIT_FLAGS="" | ||||
7507 | ARCH_RUN_32BIT="" | ||||
7508 | ;; | ||||
7509 | 64-bit) | ||||
7510 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | ||||
7511 | LIPO_32BIT_FLAGS="" | ||||
7512 | ARCH_RUN_32BIT="true" | ||||
7513 | ;; | ||||
7514 | all) | ||||
7515 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | ||||
7516 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7517 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7518 | ;; | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 7519 | universal2) |
7520 | UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64" | ||||
7521 | LIPO_32BIT_FLAGS="" | ||||
7522 | ARCH_RUN_32BIT="true" | ||||
7523 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7524 | intel) |
7525 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | ||||
7526 | LIPO_32BIT_FLAGS="-extract i386" | ||||
7527 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | ||||
7528 | ;; | ||||
7529 | intel-32) | ||||
7530 | UNIVERSAL_ARCH_FLAGS="-arch i386" | ||||
7531 | LIPO_32BIT_FLAGS="" | ||||
7532 | ARCH_RUN_32BIT="" | ||||
7533 | ;; | ||||
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7534 | intel-64) |
7535 | UNIVERSAL_ARCH_FLAGS="-arch x86_64" | ||||
7536 | LIPO_32BIT_FLAGS="" | ||||
7537 | ARCH_RUN_32BIT="true" | ||||
7538 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7539 | 3-way) |
7540 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | ||||
7541 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7542 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7543 | ;; | ||||
7544 | *) | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 7545 | 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] | 7546 | ;; |
7547 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7548 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7549 | if test "${UNIVERSALSDK}" != "/" |
7550 | then | ||||
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7551 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
7552 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7553 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7554 | else |
7555 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | ||||
7556 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7557 | fi |
7558 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7559 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7560 | # Calculate an appropriate deployment target for this build: |
7561 | # The deployment target value is used explicitly to enable certain | ||||
7562 | # features are enabled (such as builtin libedit support for readline) | ||||
Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7563 | # 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] | 7564 | # component of the string returned by distutils.get_platform(). |
7565 | # | ||||
7566 | # Use the value from: | ||||
7567 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | ||||
7568 | # 2. the operating system version of the build machine if >= 10.6 | ||||
7569 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests | ||||
7570 | # below to pick either 10.3, 10.4, or 10.5 as the target. | ||||
7571 | # 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] | 7572 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
7574 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | ||||
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7575 | cur_target_major=`sw_vers -productVersion | \ |
7576 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
7577 | cur_target_minor=`sw_vers -productVersion | \ | ||||
7578 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
7579 | cur_target="${cur_target_major}.${cur_target_minor}" | ||||
7580 | if test ${cur_target_major} -eq 10 && \ | ||||
7581 | test ${cur_target_minor} -ge 3 && \ | ||||
7582 | test ${cur_target_minor} -le 5 | ||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7583 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7584 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7585 | cur_target=10.3 |
7586 | if test ${enable_universalsdk} | ||||
7587 | then | ||||
7588 | case "$UNIVERSAL_ARCHS" in | ||||
7589 | all|3-way|intel|64-bit) | ||||
7590 | # These configurations were first supported in 10.5 | ||||
7591 | cur_target='10.5' | ||||
7592 | ;; | ||||
7593 | esac | ||||
7594 | else | ||||
7595 | if test `/usr/bin/arch` = "i386" | ||||
7596 | then | ||||
7597 | # 10.4 was the first release to support Intel archs | ||||
7598 | cur_target="10.4" | ||||
7599 | fi | ||||
7600 | fi | ||||
7601 | fi | ||||
7602 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7603 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7604 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
7605 | # environment with a value that is the same as what we'll use | ||||
7606 | # in the Makefile to ensure that we'll get the same compiler | ||||
7607 | # environment during configure and build time. | ||||
7608 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | ||||
7609 | export MACOSX_DEPLOYMENT_TARGET | ||||
7610 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | ||||
7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | ||||
7612 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7613 | |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 7614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5 |
7615 | $as_echo_n "checking if specified universal architectures work... " >&6; } | ||||
7616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7617 | /* end confdefs.h. */ | ||||
7618 | #include <stdio.h> | ||||
7619 | int | ||||
7620 | main () | ||||
7621 | { | ||||
7622 | printf("%d", 42); | ||||
7623 | ; | ||||
7624 | return 0; | ||||
7625 | } | ||||
7626 | _ACEOF | ||||
7627 | if ac_fn_c_try_link "$LINENO"; then : | ||||
7628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
7629 | $as_echo "yes" >&6; } | ||||
7630 | else | ||||
7631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
7632 | $as_echo "no" >&6; } | ||||
7633 | as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5 | ||||
7634 | |||||
7635 | fi | ||||
7636 | rm -f core conftest.err conftest.$ac_objext \ | ||||
7637 | conftest$ac_exeext conftest.$ac_ext | ||||
7638 | |||||
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7639 | # end of Darwin* tests |
7640 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7641 | esac |
7642 | ;; | ||||
7643 | |||||
7644 | *) | ||||
7645 | case $ac_sys_system in | ||||
7646 | OpenUNIX*|UnixWare*) | ||||
7647 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | ||||
7648 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7649 | SCO_SV*) |
7650 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | ||||
7651 | ;; | ||||
7652 | esac | ||||
7653 | ;; | ||||
7654 | esac | ||||
7655 | |||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7656 | case "$CC" in |
7657 | *icc*) | ||||
Stefan Krah | 84a7917 | 2020-09-04 22:33:17 +0200 | [diff] [blame] | 7658 | # ICC needs -fp-model strict or floats behave badly |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7659 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" |
7660 | ;; | ||||
Stefan Krah | 84a7917 | 2020-09-04 22:33:17 +0200 | [diff] [blame] | 7661 | *xlc*) |
7662 | CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1" | ||||
7663 | ;; | ||||
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7664 | esac |
7665 | |||||
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7666 | if test "$assertions" = 'true'; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7667 | : |
7668 | else | ||||
7669 | OPT="-DNDEBUG $OPT" | ||||
7670 | fi | ||||
7671 | |||||
7672 | if test "$ac_arch_flags" | ||||
7673 | then | ||||
7674 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | ||||
7675 | fi | ||||
7676 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7677 | # On some compilers, pthreads are available without further options |
7678 | # (e.g. MacOS X). On some of these systems, the compiler will not | ||||
7679 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | ||||
7680 | # So we have to see first whether pthreads are available without | ||||
7681 | # options before we can check whether -Kpthread improves anything. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
7683 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7684 | if ${ac_cv_pthread_is_default+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7685 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7686 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7687 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7688 | ac_cv_pthread_is_default=no |
7689 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7691 | /* end confdefs.h. */ |
7692 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7693 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7694 | #include <pthread.h> |
7695 | |||||
7696 | void* routine(void* p){return NULL;} | ||||
7697 | |||||
7698 | int main(){ | ||||
7699 | pthread_t p; | ||||
7700 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7701 | return 1; | ||||
7702 | (void)pthread_detach(p); | ||||
7703 | return 0; | ||||
7704 | } | ||||
7705 | |||||
7706 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7707 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7708 | |
7709 | ac_cv_pthread_is_default=yes | ||||
7710 | ac_cv_kthread=no | ||||
7711 | ac_cv_pthread=no | ||||
7712 | |||||
7713 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7714 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7715 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7716 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7717 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7718 | fi |
7719 | |||||
7720 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7721 | fi |
7722 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
7724 | $as_echo "$ac_cv_pthread_is_default" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7725 | |
7726 | |||||
7727 | if test $ac_cv_pthread_is_default = yes | ||||
7728 | then | ||||
7729 | ac_cv_kpthread=no | ||||
7730 | else | ||||
7731 | # -Kpthread, if available, provides the right #defines | ||||
7732 | # and linker options to make pthread_create available | ||||
7733 | # Some compilers won't report that they do not support -Kpthread, | ||||
7734 | # so we need to run a program to see whether it really made the | ||||
7735 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
7737 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7738 | if ${ac_cv_kpthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7739 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7740 | else |
7741 | ac_save_cc="$CC" | ||||
7742 | CC="$CC -Kpthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7743 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7744 | ac_cv_kpthread=no |
7745 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7747 | /* end confdefs.h. */ |
7748 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7749 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7750 | #include <pthread.h> |
7751 | |||||
7752 | void* routine(void* p){return NULL;} | ||||
7753 | |||||
7754 | int main(){ | ||||
7755 | pthread_t p; | ||||
7756 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7757 | return 1; | ||||
7758 | (void)pthread_detach(p); | ||||
7759 | return 0; | ||||
7760 | } | ||||
7761 | |||||
7762 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7763 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7764 | ac_cv_kpthread=yes |
7765 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7766 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7767 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7768 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7769 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7770 | fi |
7771 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7772 | CC="$ac_save_cc" |
7773 | fi | ||||
7774 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
7776 | $as_echo "$ac_cv_kpthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7777 | fi |
7778 | |||||
7779 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | ||||
7780 | then | ||||
7781 | # -Kthread, if available, provides the right #defines | ||||
7782 | # and linker options to make pthread_create available | ||||
7783 | # Some compilers won't report that they do not support -Kthread, | ||||
7784 | # so we need to run a program to see whether it really made the | ||||
7785 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
7787 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7788 | if ${ac_cv_kthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7789 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7790 | else |
7791 | ac_save_cc="$CC" | ||||
7792 | CC="$CC -Kthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7793 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7794 | ac_cv_kthread=no |
7795 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7797 | /* end confdefs.h. */ |
7798 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7799 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7800 | #include <pthread.h> |
7801 | |||||
7802 | void* routine(void* p){return NULL;} | ||||
7803 | |||||
7804 | int main(){ | ||||
7805 | pthread_t p; | ||||
7806 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7807 | return 1; | ||||
7808 | (void)pthread_detach(p); | ||||
7809 | return 0; | ||||
7810 | } | ||||
7811 | |||||
7812 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7813 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7814 | ac_cv_kthread=yes |
7815 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7816 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7817 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7818 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7819 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7820 | fi |
7821 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7822 | CC="$ac_save_cc" |
7823 | fi | ||||
7824 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
7826 | $as_echo "$ac_cv_kthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7827 | fi |
7828 | |||||
7829 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | ||||
7830 | then | ||||
7831 | # -pthread, if available, provides the right #defines | ||||
7832 | # and linker options to make pthread_create available | ||||
7833 | # Some compilers won't report that they do not support -pthread, | ||||
7834 | # so we need to run a program to see whether it really made the | ||||
7835 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
7837 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | ||||
doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7838 | if ${ac_cv_pthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7839 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7840 | else |
7841 | ac_save_cc="$CC" | ||||
7842 | CC="$CC -pthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7843 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7844 | ac_cv_pthread=no |
7845 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7847 | /* end confdefs.h. */ |
7848 | |||||
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7849 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7850 | #include <pthread.h> |
7851 | |||||
7852 | void* routine(void* p){return NULL;} | ||||
7853 | |||||
7854 | int main(){ | ||||
7855 | pthread_t p; | ||||
7856 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7857 | return 1; | ||||
7858 | (void)pthread_detach(p); | ||||
7859 | return 0; | ||||
7860 | } | ||||
7861 | |||||
7862 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7863 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7864 | ac_cv_pthread=yes |
7865 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7866 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7867 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7868 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7869 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7870 | fi |
7871 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7872 | CC="$ac_save_cc" |
7873 | fi | ||||
7874 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
7876 | $as_echo "$ac_cv_pthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7877 | fi |
7878 | |||||
7879 | # If we have set a CC compiler flag for thread support then | ||||
7880 | # check if it works for CXX, too. | ||||
7881 | ac_cv_cxx_thread=no | ||||
7882 | if test ! -z "$CXX" | ||||
7883 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
7885 | $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] | 7886 | ac_save_cxx="$CXX" |
7887 | |||||
7888 | if test "$ac_cv_kpthread" = "yes" | ||||
7889 | then | ||||
7890 | CXX="$CXX -Kpthread" | ||||
7891 | ac_cv_cxx_thread=yes | ||||
7892 | elif test "$ac_cv_kthread" = "yes" | ||||
7893 | then | ||||
7894 | CXX="$CXX -Kthread" | ||||
7895 | ac_cv_cxx_thread=yes | ||||
7896 | elif test "$ac_cv_pthread" = "yes" | ||||
7897 | then | ||||
7898 | CXX="$CXX -pthread" | ||||
7899 | ac_cv_cxx_thread=yes | ||||
7900 | fi | ||||
7901 | |||||
7902 | if test $ac_cv_cxx_thread = yes | ||||
7903 | then | ||||
7904 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | ||||
7905 | $CXX -c conftest.$ac_ext 2>&5 | ||||
7906 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | ||||
7907 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | ||||
7908 | then | ||||
7909 | ac_cv_cxx_thread=yes | ||||
7910 | else | ||||
7911 | ac_cv_cxx_thread=no | ||||
7912 | fi | ||||
7913 | rm -fr conftest* | ||||
7914 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
7916 | $as_echo "$ac_cv_cxx_thread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7917 | fi |
7918 | CXX="$ac_save_cxx" | ||||
7919 | |||||
7920 | |||||
7921 | # checks for header files | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7923 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7924 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7925 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7926 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7928 | /* end confdefs.h. */ |
7929 | #include <stdlib.h> | ||||
7930 | #include <stdarg.h> | ||||
7931 | #include <string.h> | ||||
7932 | #include <float.h> | ||||
7933 | |||||
7934 | int | ||||
7935 | main () | ||||
7936 | { | ||||
7937 | |||||
7938 | ; | ||||
7939 | return 0; | ||||
7940 | } | ||||
7941 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7942 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7943 | ac_cv_header_stdc=yes |
7944 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7945 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7946 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7948 | |||||
7949 | if test $ac_cv_header_stdc = yes; then | ||||
7950 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7952 | /* end confdefs.h. */ |
7953 | #include <string.h> | ||||
7954 | |||||
7955 | _ACEOF | ||||
7956 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7957 | $EGREP "memchr" >/dev/null 2>&1; then : |
7958 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7959 | else |
7960 | ac_cv_header_stdc=no | ||||
7961 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7962 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7963 | |
7964 | fi | ||||
7965 | |||||
7966 | if test $ac_cv_header_stdc = yes; then | ||||
7967 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7969 | /* end confdefs.h. */ |
7970 | #include <stdlib.h> | ||||
7971 | |||||
7972 | _ACEOF | ||||
7973 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7974 | $EGREP "free" >/dev/null 2>&1; then : |
7975 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7976 | else |
7977 | ac_cv_header_stdc=no | ||||
7978 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7979 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7980 | |
7981 | fi | ||||
7982 | |||||
7983 | if test $ac_cv_header_stdc = yes; then | ||||
7984 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7985 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7986 | : |
7987 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7989 | /* end confdefs.h. */ |
7990 | #include <ctype.h> | ||||
7991 | #include <stdlib.h> | ||||
7992 | #if ((' ' & 0x0FF) == 0x020) | ||||
7993 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
7994 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
7995 | #else | ||||
7996 | # define ISLOWER(c) \ | ||||
7997 | (('a' <= (c) && (c) <= 'i') \ | ||||
7998 | || ('j' <= (c) && (c) <= 'r') \ | ||||
7999 | || ('s' <= (c) && (c) <= 'z')) | ||||
8000 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
8001 | #endif | ||||
8002 | |||||
8003 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||||
8004 | int | ||||
8005 | main () | ||||
8006 | { | ||||
8007 | int i; | ||||
8008 | for (i = 0; i < 256; i++) | ||||
8009 | if (XOR (islower (i), ISLOWER (i)) | ||||
8010 | || toupper (i) != TOUPPER (i)) | ||||
8011 | return 2; | ||||
8012 | return 0; | ||||
8013 | } | ||||
8014 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8015 | if ac_fn_c_try_run "$LINENO"; then : |
8016 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8017 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8018 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8019 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8020 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8021 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8022 | fi |
8023 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8024 | fi |
8025 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8027 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8028 | if test $ac_cv_header_stdc = yes; then |
8029 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8030 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8031 | |
8032 | fi | ||||
8033 | |||||
stratakis | e768c86 | 2018-01-23 16:11:24 +0100 | [diff] [blame] | 8034 | for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8035 | fcntl.h grp.h \ |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 8036 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ |
Benjamin Peterson | 4fe5510 | 2016-09-06 11:58:01 -0700 | [diff] [blame] | 8037 | sched.h shadow.h signal.h stropts.h termios.h \ |
Benjamin Peterson | ea13740 | 2018-09-13 21:57:31 -0700 | [diff] [blame] | 8038 | utime.h \ |
Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 8039 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ |
Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 8040 | sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ |
Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 8041 | sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Benjamin Peterson | fb2ae15 | 2016-12-19 23:54:25 -0800 | [diff] [blame] | 8042 | sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ |
Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 8043 | sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 8044 | sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8045 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 8046 | linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 8047 | sys/endian.h sys/sysmacros.h linux/memfd.h linux/wait.h sys/memfd.h \ |
8048 | sys/mman.h sys/eventfd.h | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8049 | do : |
8050 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
8051 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8052 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8053 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8054 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8055 | _ACEOF |
8056 | |||||
8057 | fi | ||||
8058 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8059 | done |
8060 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8061 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8062 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8063 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | ||||
8065 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8066 | if eval \${$as_ac_Header+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8067 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8068 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8070 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8071 | #include <sys/types.h> |
8072 | #include <$ac_hdr> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8074 | int |
8075 | main () | ||||
8076 | { | ||||
8077 | if ((DIR *) 0) | ||||
8078 | return 0; | ||||
8079 | ; | ||||
8080 | return 0; | ||||
8081 | } | ||||
8082 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8083 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8084 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8085 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8086 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8087 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8089 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8090 | eval ac_res=\$$as_ac_Header |
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
8092 | $as_echo "$ac_res" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8093 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8094 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8095 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8096 | _ACEOF |
8097 | |||||
8098 | ac_header_dirent=$ac_hdr; break | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8099 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8101 | done |
8102 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | ||||
8103 | if test $ac_header_dirent = dirent.h; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
8105 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8106 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8107 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8109 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8111 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8113 | /* Override any GCC internal prototype to avoid an error. |
8114 | Use char because int might match the return type of a GCC | ||||
8115 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 | #ifdef __cplusplus |
8117 | extern "C" | ||||
8118 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8119 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8120 | int |
8121 | main () | ||||
8122 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8123 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8124 | ; |
8125 | return 0; | ||||
8126 | } | ||||
8127 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8128 | for ac_lib in '' dir; do |
8129 | if test -z "$ac_lib"; then | ||||
8130 | ac_res="none required" | ||||
8131 | else | ||||
8132 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8133 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8134 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8135 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8136 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8137 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8138 | rm -f core conftest.err conftest.$ac_objext \ |
8139 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8140 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8141 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8142 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8143 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8144 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8145 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8146 | else |
8147 | ac_cv_search_opendir=no | ||||
8148 | fi | ||||
8149 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8150 | LIBS=$ac_func_search_save_LIBS |
8151 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8153 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8154 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8155 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8156 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8157 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8158 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8159 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8160 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
8162 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8163 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8164 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8165 | else |
8166 | ac_func_search_save_LIBS=$LIBS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8168 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8169 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8170 | /* Override any GCC internal prototype to avoid an error. |
8171 | Use char because int might match the return type of a GCC | ||||
8172 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8173 | #ifdef __cplusplus |
8174 | extern "C" | ||||
8175 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8176 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8177 | int |
8178 | main () | ||||
8179 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8180 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8181 | ; |
8182 | return 0; | ||||
8183 | } | ||||
8184 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8185 | for ac_lib in '' x; do |
8186 | if test -z "$ac_lib"; then | ||||
8187 | ac_res="none required" | ||||
8188 | else | ||||
8189 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8190 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8191 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8192 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8193 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8194 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8195 | rm -f core conftest.err conftest.$ac_objext \ |
8196 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8197 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8198 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8199 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8200 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8201 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8202 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8203 | else |
8204 | ac_cv_search_opendir=no | ||||
8205 | fi | ||||
8206 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8207 | LIBS=$ac_func_search_save_LIBS |
8208 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8210 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8211 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8212 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8213 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8214 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8215 | fi |
8216 | |||||
8217 | fi | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8218 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
8220 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8221 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8222 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8223 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8225 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8226 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8227 | int |
8228 | main () | ||||
8229 | { | ||||
8230 | return makedev(0, 0); | ||||
8231 | ; | ||||
8232 | return 0; | ||||
8233 | } | ||||
8234 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8235 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8236 | ac_cv_header_sys_types_h_makedev=yes |
8237 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8238 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8239 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8240 | rm -f core conftest.err conftest.$ac_objext \ |
8241 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8242 | |
8243 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
8245 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8246 | |
8247 | if test $ac_cv_header_sys_types_h_makedev = no; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8248 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8249 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8250 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8251 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8252 | |
8253 | fi | ||||
8254 | |||||
8255 | |||||
8256 | |||||
8257 | if test $ac_cv_header_sys_mkdev_h = no; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8258 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8259 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8260 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8261 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8262 | |
8263 | fi | ||||
8264 | |||||
8265 | |||||
8266 | fi | ||||
8267 | fi | ||||
8268 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8269 | |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 8270 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. |
8271 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 | ||||
8272 | SAVE_CFLAGS=$CFLAGS | ||||
8273 | CFLAGS="-std=c99 $CFLAGS" | ||||
8274 | for ac_header in bluetooth/bluetooth.h | ||||
8275 | do : | ||||
8276 | ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" | ||||
8277 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : | ||||
8278 | cat >>confdefs.h <<_ACEOF | ||||
8279 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 | ||||
8280 | _ACEOF | ||||
8281 | |||||
8282 | fi | ||||
8283 | |||||
8284 | done | ||||
8285 | |||||
8286 | CFLAGS=$SAVE_CFLAGS | ||||
8287 | |||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8288 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
8289 | for ac_header in net/if.h | ||||
8290 | do : | ||||
8291 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | ||||
8292 | #ifdef STDC_HEADERS | ||||
8293 | # include <stdlib.h> | ||||
8294 | # include <stddef.h> | ||||
8295 | #else | ||||
8296 | # ifdef HAVE_STDLIB_H | ||||
8297 | # include <stdlib.h> | ||||
8298 | # endif | ||||
8299 | #endif | ||||
8300 | #ifdef HAVE_SYS_SOCKET_H | ||||
8301 | # include <sys/socket.h> | ||||
8302 | #endif | ||||
8303 | |||||
8304 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8305 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8306 | cat >>confdefs.h <<_ACEOF |
8307 | #define HAVE_NET_IF_H 1 | ||||
8308 | _ACEOF | ||||
8309 | |||||
8310 | fi | ||||
8311 | |||||
8312 | done | ||||
8313 | |||||
8314 | |||||
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8315 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8316 | for ac_header in linux/netlink.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8317 | do : |
8318 | 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] | 8319 | #ifdef HAVE_ASM_TYPES_H |
8320 | #include <asm/types.h> | ||||
8321 | #endif | ||||
8322 | #ifdef HAVE_SYS_SOCKET_H | ||||
8323 | #include <sys/socket.h> | ||||
8324 | #endif | ||||
8325 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8326 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8327 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8328 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8329 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8330 | _ACEOF |
8331 | |||||
8332 | fi | ||||
8333 | |||||
8334 | done | ||||
8335 | |||||
8336 | |||||
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 8337 | # On Linux, qrtr.h requires asm/types.h |
8338 | for ac_header in linux/qrtr.h | ||||
8339 | do : | ||||
8340 | ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" " | ||||
8341 | #ifdef HAVE_ASM_TYPES_H | ||||
8342 | #include <asm/types.h> | ||||
8343 | #endif | ||||
8344 | #ifdef HAVE_SYS_SOCKET_H | ||||
8345 | #include <sys/socket.h> | ||||
8346 | #endif | ||||
8347 | |||||
8348 | " | ||||
8349 | if test "x$ac_cv_header_linux_qrtr_h" = xyes; then : | ||||
8350 | cat >>confdefs.h <<_ACEOF | ||||
8351 | #define HAVE_LINUX_QRTR_H 1 | ||||
8352 | _ACEOF | ||||
8353 | |||||
8354 | fi | ||||
8355 | |||||
8356 | done | ||||
8357 | |||||
8358 | |||||
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 8359 | for ac_header in linux/vm_sockets.h |
8360 | do : | ||||
8361 | ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " | ||||
8362 | #ifdef HAVE_SYS_SOCKET_H | ||||
8363 | #include <sys/socket.h> | ||||
8364 | #endif | ||||
8365 | |||||
8366 | " | ||||
8367 | if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : | ||||
8368 | cat >>confdefs.h <<_ACEOF | ||||
8369 | #define HAVE_LINUX_VM_SOCKETS_H 1 | ||||
8370 | _ACEOF | ||||
8371 | |||||
8372 | fi | ||||
8373 | |||||
8374 | done | ||||
8375 | |||||
8376 | |||||
karl ding | 360371f | 2020-04-29 15:31:19 -0700 | [diff] [blame] | 8377 | # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h |
8378 | for ac_header in linux/can.h linux/can/bcm.h linux/can/j1939.h linux/can/raw.h | ||||
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8379 | do : |
8380 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
8381 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | ||||
8382 | #ifdef HAVE_SYS_SOCKET_H | ||||
8383 | #include <sys/socket.h> | ||||
8384 | #endif | ||||
8385 | |||||
8386 | " | ||||
8387 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
8388 | cat >>confdefs.h <<_ACEOF | ||||
8389 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
8390 | _ACEOF | ||||
8391 | |||||
8392 | fi | ||||
8393 | |||||
8394 | done | ||||
8395 | |||||
8396 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8397 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8398 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
8400 | $as_echo_n "checking for clock_t in time.h... " >&6; } | ||||
8401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8402 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8403 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8404 | |
8405 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8406 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8407 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8408 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8409 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8410 | |
8411 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8412 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8413 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8414 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8415 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8416 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8417 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
8419 | $as_echo "$was_it_defined" >&6; } | ||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8420 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
8422 | $as_echo_n "checking for makedev... " >&6; } | ||||
8423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8424 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8425 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8426 | #if defined(MAJOR_IN_MKDEV) |
8427 | #include <sys/mkdev.h> | ||||
8428 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
8429 | #include <sys/sysmacros.h> | ||||
8430 | #else | ||||
8431 | #include <sys/types.h> | ||||
8432 | #endif | ||||
8433 | |||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8434 | int |
8435 | main () | ||||
8436 | { | ||||
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8437 | |
8438 | makedev(0, 0) | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8439 | ; |
8440 | return 0; | ||||
8441 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8442 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8443 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8444 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8445 | ac_cv_has_makedev=yes |
8446 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8447 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8448 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8449 | rm -f core conftest.err conftest.$ac_objext \ |
8450 | conftest$ac_exeext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
8452 | $as_echo "$ac_cv_has_makedev" >&6; } | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8453 | if test "$ac_cv_has_makedev" = "yes"; then |
8454 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8455 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8456 | |
8457 | fi | ||||
8458 | |||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8459 | # byte swapping |
8460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | ||||
8461 | $as_echo_n "checking for le64toh... " >&6; } | ||||
8462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
8463 | /* end confdefs.h. */ | ||||
8464 | |||||
8465 | #ifdef HAVE_ENDIAN_H | ||||
8466 | #include <endian.h> | ||||
8467 | #elif defined(HAVE_SYS_ENDIAN_H) | ||||
8468 | #include <sys/endian.h> | ||||
8469 | #endif | ||||
8470 | |||||
8471 | int | ||||
8472 | main () | ||||
8473 | { | ||||
8474 | |||||
8475 | le64toh(1) | ||||
8476 | ; | ||||
8477 | return 0; | ||||
8478 | } | ||||
8479 | |||||
8480 | _ACEOF | ||||
8481 | if ac_fn_c_try_link "$LINENO"; then : | ||||
8482 | ac_cv_has_le64toh=yes | ||||
8483 | else | ||||
8484 | ac_cv_has_le64toh=no | ||||
8485 | fi | ||||
8486 | rm -f core conftest.err conftest.$ac_objext \ | ||||
8487 | conftest$ac_exeext conftest.$ac_ext | ||||
8488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | ||||
8489 | $as_echo "$ac_cv_has_le64toh" >&6; } | ||||
8490 | if test "$ac_cv_has_le64toh" = "yes"; then | ||||
8491 | |||||
8492 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | ||||
8493 | |||||
8494 | fi | ||||
8495 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8496 | use_lfs=yes |
doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 8497 | # Don't use largefile support for GNU/Hurd |
8498 | case $ac_sys_system in GNU*) | ||||
8499 | use_lfs=no | ||||
8500 | esac | ||||
8501 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8502 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8503 | # Two defines needed to enable largefile support on various platforms |
8504 | # These may affect some typedefs | ||||
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8505 | case $ac_sys_system/$ac_sys_release in |
8506 | AIX*) | ||||
8507 | |||||
8508 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | ||||
8509 | |||||
8510 | ;; | ||||
8511 | esac | ||||
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8512 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8513 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | |
8515 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8516 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8517 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8518 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8519 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8520 | # Add some code to confdefs.h so that the test for off_t works on SCO |
8521 | cat >> confdefs.h <<\EOF | ||||
8522 | #if defined(SCO_DS) | ||||
8523 | #undef _OFF_T | ||||
8524 | #endif | ||||
8525 | EOF | ||||
8526 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8527 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8528 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8529 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8530 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8532 | |
8533 | cat >>confdefs.h <<_ACEOF | ||||
8534 | #define mode_t int | ||||
8535 | _ACEOF | ||||
8536 | |||||
8537 | fi | ||||
8538 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8539 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8540 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8541 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8542 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8543 | |
8544 | cat >>confdefs.h <<_ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8545 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8546 | _ACEOF |
8547 | |||||
8548 | fi | ||||
8549 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8550 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8551 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8552 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | |
8555 | cat >>confdefs.h <<_ACEOF | ||||
8556 | #define pid_t int | ||||
8557 | _ACEOF | ||||
8558 | |||||
8559 | fi | ||||
8560 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8562 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8563 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8564 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8565 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8566 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8567 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8568 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8569 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | |
8571 | cat >>confdefs.h <<_ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8572 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | _ACEOF |
8574 | |||||
8575 | fi | ||||
8576 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
8578 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8579 | if ${ac_cv_type_uid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8580 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8581 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8583 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8584 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | |
8586 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8587 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8588 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8589 | ac_cv_type_uid_t=yes |
8590 | else | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8591 | ac_cv_type_uid_t=no |
8592 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8593 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8594 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8595 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
8597 | $as_echo "$ac_cv_type_uid_t" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8598 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8599 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8600 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8601 | |
8602 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8603 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8604 | |
8605 | fi | ||||
8606 | |||||
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8607 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8608 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8609 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8610 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8611 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8612 | |
8613 | fi | ||||
8614 | |||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8615 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
8616 | if test "x$ac_cv_type___uint128_t" = xyes; then : | ||||
8617 | |||||
8618 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | ||||
8619 | |||||
8620 | fi | ||||
8621 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8622 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8623 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8624 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8625 | # The cast to long int works around a bug in the HP C Compiler |
8626 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8627 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8628 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
8630 | $as_echo_n "checking size of int... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8631 | if ${ac_cv_sizeof_int+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8632 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8634 | 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] | 8635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8636 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8637 | if test "$ac_cv_type_int" = yes; then |
8638 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8639 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8640 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8641 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8642 | else |
8643 | ac_cv_sizeof_int=0 | ||||
8644 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
8649 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8650 | |
8651 | |||||
8652 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8653 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8654 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8655 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8656 | |
8657 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8658 | # The cast to long int works around a bug in the HP C Compiler |
8659 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8660 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8661 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
8663 | $as_echo_n "checking size of long... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8664 | if ${ac_cv_sizeof_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8665 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8666 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8667 | 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] | 8668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8669 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8670 | if test "$ac_cv_type_long" = yes; then |
8671 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8672 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8673 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8674 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8675 | else |
8676 | ac_cv_sizeof_long=0 | ||||
8677 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8678 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8680 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
8682 | $as_echo "$ac_cv_sizeof_long" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8683 | |
8684 | |||||
8685 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8686 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8687 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8688 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8689 | |
8690 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8691 | # The cast to long int works around a bug in the HP C Compiler |
8692 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8693 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8694 | # This bug is HP SR number 8606223364. | ||||
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
8696 | $as_echo_n "checking size of long long... " >&6; } | ||||
8697 | if ${ac_cv_sizeof_long_long+:} false; then : | ||||
8698 | $as_echo_n "(cached) " >&6 | ||||
8699 | else | ||||
8700 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | ||||
8701 | |||||
8702 | else | ||||
8703 | if test "$ac_cv_type_long_long" = yes; then | ||||
8704 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8705 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
8706 | as_fn_error 77 "cannot compute sizeof (long long) | ||||
8707 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8708 | else | ||||
8709 | ac_cv_sizeof_long_long=0 | ||||
8710 | fi | ||||
8711 | fi | ||||
8712 | |||||
8713 | fi | ||||
8714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | ||||
8715 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | ||||
8716 | |||||
8717 | |||||
8718 | |||||
8719 | cat >>confdefs.h <<_ACEOF | ||||
8720 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | ||||
8721 | _ACEOF | ||||
8722 | |||||
8723 | |||||
8724 | # The cast to long int works around a bug in the HP C Compiler | ||||
8725 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8726 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8727 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
8729 | $as_echo_n "checking size of void *... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8730 | if ${ac_cv_sizeof_void_p+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8731 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8732 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8733 | 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] | 8734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8735 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8736 | if test "$ac_cv_type_void_p" = yes; then |
8737 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8738 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8739 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8740 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8741 | else |
8742 | ac_cv_sizeof_void_p=0 | ||||
8743 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8745 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8746 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
8748 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8749 | |
8750 | |||||
8751 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8752 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8753 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8754 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8755 | |
8756 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8757 | # The cast to long int works around a bug in the HP C Compiler |
8758 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8759 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8760 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
8762 | $as_echo_n "checking size of short... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8763 | if ${ac_cv_sizeof_short+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8764 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8765 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8766 | 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] | 8767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8768 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8769 | if test "$ac_cv_type_short" = yes; then |
8770 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8771 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8772 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8773 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8774 | else |
8775 | ac_cv_sizeof_short=0 | ||||
8776 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8777 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8779 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
8781 | $as_echo "$ac_cv_sizeof_short" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8782 | |
8783 | |||||
8784 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8785 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8786 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8788 | |
8789 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8790 | # The cast to long int works around a bug in the HP C Compiler |
8791 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8792 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8793 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
8795 | $as_echo_n "checking size of float... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8796 | if ${ac_cv_sizeof_float+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8797 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8798 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8799 | 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] | 8800 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8801 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8802 | if test "$ac_cv_type_float" = yes; then |
8803 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8804 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8805 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8806 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8807 | else |
8808 | ac_cv_sizeof_float=0 | ||||
8809 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8810 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
8814 | $as_echo "$ac_cv_sizeof_float" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8815 | |
8816 | |||||
8817 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8818 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8819 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8820 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8821 | |
8822 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8823 | # The cast to long int works around a bug in the HP C Compiler |
8824 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8825 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8826 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
8828 | $as_echo_n "checking size of double... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8829 | if ${ac_cv_sizeof_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8830 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8832 | 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] | 8833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8834 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8835 | if test "$ac_cv_type_double" = yes; then |
8836 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8837 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8838 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8839 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8840 | else |
8841 | ac_cv_sizeof_double=0 | ||||
8842 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8843 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8845 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
8847 | $as_echo "$ac_cv_sizeof_double" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8848 | |
8849 | |||||
8850 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8851 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8852 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8853 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8854 | |
8855 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8856 | # The cast to long int works around a bug in the HP C Compiler |
8857 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8858 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8859 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
8861 | $as_echo_n "checking size of fpos_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8862 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8863 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8865 | 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] | 8866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8867 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8868 | if test "$ac_cv_type_fpos_t" = yes; then |
8869 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8871 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8872 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8873 | else |
8874 | ac_cv_sizeof_fpos_t=0 | ||||
8875 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
8880 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8881 | |
8882 | |||||
8883 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8884 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8885 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8887 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8888 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8889 | # The cast to long int works around a bug in the HP C Compiler |
8890 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8891 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8892 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
8894 | $as_echo_n "checking size of size_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8895 | if ${ac_cv_sizeof_size_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8896 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8897 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8898 | 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] | 8899 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8900 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8901 | if test "$ac_cv_type_size_t" = yes; then |
8902 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8903 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8904 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8905 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8906 | else |
8907 | ac_cv_sizeof_size_t=0 | ||||
8908 | fi | ||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8909 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8910 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8911 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
8913 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8914 | |
8915 | |||||
8916 | |||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8917 | cat >>confdefs.h <<_ACEOF |
8918 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | ||||
8919 | _ACEOF | ||||
8920 | |||||
8921 | |||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8922 | # The cast to long int works around a bug in the HP C Compiler |
8923 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8924 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8925 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
8927 | $as_echo_n "checking size of pid_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8928 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8929 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8930 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8931 | 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] | 8932 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8933 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8934 | if test "$ac_cv_type_pid_t" = yes; then |
8935 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8936 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8937 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8938 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8939 | else |
8940 | ac_cv_sizeof_pid_t=0 | ||||
8941 | fi | ||||
8942 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8943 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8944 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
8946 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | ||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8947 | |
8948 | |||||
8949 | |||||
8950 | cat >>confdefs.h <<_ACEOF | ||||
8951 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | ||||
8952 | _ACEOF | ||||
8953 | |||||
8954 | |||||
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8955 | # The cast to long int works around a bug in the HP C Compiler |
8956 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8957 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8958 | # This bug is HP SR number 8606223364. | ||||
8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | ||||
8960 | $as_echo_n "checking size of uintptr_t... " >&6; } | ||||
8961 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | ||||
8962 | $as_echo_n "(cached) " >&6 | ||||
8963 | else | ||||
8964 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : | ||||
8965 | |||||
8966 | else | ||||
8967 | if test "$ac_cv_type_uintptr_t" = yes; then | ||||
8968 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8969 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
8970 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | ||||
8971 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8972 | else | ||||
8973 | ac_cv_sizeof_uintptr_t=0 | ||||
8974 | fi | ||||
8975 | fi | ||||
8976 | |||||
8977 | fi | ||||
8978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | ||||
8979 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | ||||
8980 | |||||
8981 | |||||
8982 | |||||
8983 | cat >>confdefs.h <<_ACEOF | ||||
8984 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | ||||
8985 | _ACEOF | ||||
8986 | |||||
8987 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8988 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8989 | |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
8991 | $as_echo_n "checking for long double... " >&6; } | ||||
8992 | if ${ac_cv_type_long_double+:} false; then : | ||||
8993 | $as_echo_n "(cached) " >&6 | ||||
8994 | else | ||||
8995 | if test "$GCC" = yes; then | ||||
8996 | ac_cv_type_long_double=yes | ||||
8997 | else | ||||
8998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
8999 | /* end confdefs.h. */ | ||||
9000 | /* The Stardent Vistra knows sizeof (long double), but does | ||||
9001 | not support it. */ | ||||
9002 | long double foo = 0.0L; | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9003 | int |
9004 | main () | ||||
9005 | { | ||||
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9006 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
9007 | sizeof (double) <= sizeof (long double))]; | ||||
9008 | test_array [0] = 0; | ||||
9009 | return test_array [0]; | ||||
9010 | |||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9011 | ; |
9012 | return 0; | ||||
9013 | } | ||||
9014 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9015 | if ac_fn_c_try_compile "$LINENO"; then : |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9016 | ac_cv_type_long_double=yes |
9017 | else | ||||
9018 | ac_cv_type_long_double=no | ||||
9019 | fi | ||||
9020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9021 | fi | ||||
9022 | fi | ||||
9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 | ||||
9024 | $as_echo "$ac_cv_type_long_double" >&6; } | ||||
9025 | if test $ac_cv_type_long_double = yes; then | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9026 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9027 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9028 | |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 9029 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9030 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9031 | # The cast to long int works around a bug in the HP C Compiler |
9032 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9033 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9034 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
9036 | $as_echo_n "checking size of long double... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9037 | if ${ac_cv_sizeof_long_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9038 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9039 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9040 | 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] | 9041 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9042 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9043 | if test "$ac_cv_type_long_double" = yes; then |
9044 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9045 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9046 | as_fn_error 77 "cannot compute sizeof (long double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9047 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9048 | else |
9049 | ac_cv_sizeof_long_double=0 | ||||
9050 | fi | ||||
9051 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9052 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9053 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
9055 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9056 | |
9057 | |||||
9058 | |||||
9059 | cat >>confdefs.h <<_ACEOF | ||||
9060 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | ||||
9061 | _ACEOF | ||||
9062 | |||||
9063 | |||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 9064 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9065 | # The cast to long int works around a bug in the HP C Compiler |
9066 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9067 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9068 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
9070 | $as_echo_n "checking size of _Bool... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9071 | if ${ac_cv_sizeof__Bool+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9072 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9073 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9074 | 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] | 9075 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9076 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9077 | if test "$ac_cv_type__Bool" = yes; then |
9078 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9079 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9080 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9081 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9082 | else |
9083 | ac_cv_sizeof__Bool=0 | ||||
9084 | fi | ||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9085 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9086 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9087 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
9089 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9090 | |
9091 | |||||
9092 | |||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9093 | cat >>confdefs.h <<_ACEOF |
9094 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | ||||
9095 | _ACEOF | ||||
9096 | |||||
9097 | |||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 9098 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9099 | # The cast to long int works around a bug in the HP C Compiler |
9100 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9101 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9102 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
9104 | $as_echo_n "checking size of off_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9105 | if ${ac_cv_sizeof_off_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9106 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9107 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9108 | 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] | 9109 | #ifdef HAVE_SYS_TYPES_H |
9110 | #include <sys/types.h> | ||||
9111 | #endif | ||||
9112 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9113 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9114 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9115 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9116 | if test "$ac_cv_type_off_t" = yes; then |
9117 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9118 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9119 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9120 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9121 | else |
9122 | ac_cv_sizeof_off_t=0 | ||||
9123 | fi | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9124 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9125 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9126 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
9128 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9129 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9130 | |
9131 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9132 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9133 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9134 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9135 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9136 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9137 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
9139 | $as_echo_n "checking whether to enable large file support... " >&6; } | ||||
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 9140 | 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] | 9141 | "$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] | 9142 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9143 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9146 | $as_echo "yes" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9147 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9149 | $as_echo "no" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9150 | fi |
9151 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9152 | # The cast to long int works around a bug in the HP C Compiler |
9153 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9154 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9155 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
9157 | $as_echo_n "checking size of time_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9158 | if ${ac_cv_sizeof_time_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9159 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9160 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9161 | 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] | 9162 | #ifdef HAVE_SYS_TYPES_H |
9163 | #include <sys/types.h> | ||||
9164 | #endif | ||||
9165 | #ifdef HAVE_TIME_H | ||||
9166 | #include <time.h> | ||||
9167 | #endif | ||||
9168 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9169 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9170 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9171 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9172 | if test "$ac_cv_type_time_t" = yes; then |
9173 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9174 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9175 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9176 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9177 | else |
9178 | ac_cv_sizeof_time_t=0 | ||||
9179 | fi | ||||
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9180 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9181 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9182 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
9184 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9185 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9186 | |
9187 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9189 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9191 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9192 | |
9193 | |||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9194 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9195 | ac_save_cc="$CC" |
9196 | if test "$ac_cv_kpthread" = "yes" | ||||
9197 | then CC="$CC -Kpthread" | ||||
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9198 | elif test "$ac_cv_kthread" = "yes" |
9199 | then CC="$CC -Kthread" | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9200 | elif test "$ac_cv_pthread" = "yes" |
9201 | then CC="$CC -pthread" | ||||
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9202 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9203 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
9205 | $as_echo_n "checking for pthread_t... " >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9206 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9208 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9209 | |
9210 | #include <pthread.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9211 | int |
9212 | main () | ||||
9213 | { | ||||
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9214 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9215 | ; |
9216 | return 0; | ||||
9217 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9220 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9221 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9222 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
9225 | $as_echo "$have_pthread_t" >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9226 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9227 | # 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] | 9228 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
9229 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9230 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
9232 | $as_echo_n "checking size of pthread_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9233 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9234 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9235 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9236 | 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] | 9237 | #ifdef HAVE_PTHREAD_H |
9238 | #include <pthread.h> | ||||
9239 | #endif | ||||
9240 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9241 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9242 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9243 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9244 | if test "$ac_cv_type_pthread_t" = yes; then |
9245 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9246 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9247 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9248 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9249 | else |
9250 | ac_cv_sizeof_pthread_t=0 | ||||
9251 | fi | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9252 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9253 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9254 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
9256 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9257 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9258 | |
9259 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9260 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9261 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9263 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9264 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9265 | fi |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 9266 | |
9267 | # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. | ||||
9268 | # This checking will be unnecessary after removing deprecated TLS API. | ||||
9269 | # The cast to long int works around a bug in the HP C Compiler | ||||
9270 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9271 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9272 | # This bug is HP SR number 8606223364. | ||||
9273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 | ||||
9274 | $as_echo_n "checking size of pthread_key_t... " >&6; } | ||||
9275 | if ${ac_cv_sizeof_pthread_key_t+:} false; then : | ||||
9276 | $as_echo_n "(cached) " >&6 | ||||
9277 | else | ||||
9278 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> | ||||
9279 | "; then : | ||||
9280 | |||||
9281 | else | ||||
9282 | if test "$ac_cv_type_pthread_key_t" = yes; then | ||||
9283 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9284 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
9285 | as_fn_error 77 "cannot compute sizeof (pthread_key_t) | ||||
9286 | See \`config.log' for more details" "$LINENO" 5; } | ||||
9287 | else | ||||
9288 | ac_cv_sizeof_pthread_key_t=0 | ||||
9289 | fi | ||||
9290 | fi | ||||
9291 | |||||
9292 | fi | ||||
9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 | ||||
9294 | $as_echo "$ac_cv_sizeof_pthread_key_t" >&6; } | ||||
9295 | |||||
9296 | |||||
9297 | |||||
9298 | cat >>confdefs.h <<_ACEOF | ||||
9299 | #define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t | ||||
9300 | _ACEOF | ||||
9301 | |||||
9302 | |||||
9303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 | ||||
9304 | $as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; } | ||||
9305 | if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then | ||||
9306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9307 | /* end confdefs.h. */ | ||||
9308 | #include <pthread.h> | ||||
9309 | int | ||||
9310 | main () | ||||
9311 | { | ||||
9312 | pthread_key_t k; k * 1; | ||||
9313 | ; | ||||
9314 | return 0; | ||||
9315 | } | ||||
9316 | _ACEOF | ||||
9317 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
9318 | ac_pthread_key_t_is_arithmetic_type=yes | ||||
9319 | else | ||||
9320 | ac_pthread_key_t_is_arithmetic_type=no | ||||
9321 | |||||
9322 | fi | ||||
9323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 | ||||
9325 | $as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; } | ||||
9326 | if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then | ||||
9327 | |||||
9328 | $as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h | ||||
9329 | |||||
9330 | fi | ||||
9331 | else | ||||
9332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9333 | $as_echo "no" >&6; } | ||||
9334 | fi | ||||
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9335 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9336 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9337 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9338 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9339 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9340 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
9341 | ;; | ||||
9342 | Darwin/*) | ||||
9343 | OTHER_LIBTOOL_OPT="" | ||||
9344 | ;; | ||||
9345 | esac | ||||
9346 | |||||
9347 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9348 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9349 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9350 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9351 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
9352 | if test "${enable_universalsdk}"; then | ||||
9353 | : | ||||
9354 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9355 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9356 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9357 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9358 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9359 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 9360 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9361 | if test ${gcc_version} '<' 4.0 |
9362 | then | ||||
9363 | LIBTOOL_CRUFT="-lcc_dynamic" | ||||
9364 | else | ||||
9365 | LIBTOOL_CRUFT="" | ||||
9366 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9367 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9368 | ac_osx_32bit=yes |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9369 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9371 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9372 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9373 | #include <unistd.h> |
9374 | int main(int argc, char*argv[]) | ||||
9375 | { | ||||
9376 | if (sizeof(long) == 4) { | ||||
9377 | return 0; | ||||
9378 | } else { | ||||
9379 | return 1; | ||||
9380 | } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9381 | } |
9382 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9383 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9384 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9385 | ac_osx_32bit=yes |
9386 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9387 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9388 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9389 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
9390 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9391 | fi |
9392 | |||||
9393 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9394 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9395 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9396 | i386) |
9397 | MACOSX_DEFAULT_ARCH="i386" | ||||
9398 | ;; | ||||
9399 | ppc) | ||||
9400 | MACOSX_DEFAULT_ARCH="ppc" | ||||
9401 | ;; | ||||
9402 | *) | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 9403 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9404 | ;; |
9405 | esac | ||||
9406 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9407 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9408 | i386) |
9409 | MACOSX_DEFAULT_ARCH="x86_64" | ||||
9410 | ;; | ||||
9411 | ppc) | ||||
9412 | MACOSX_DEFAULT_ARCH="ppc64" | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 9413 | ;; |
9414 | arm64) | ||||
9415 | MACOSX_DEFAULT_ARCH="arm64" | ||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9416 | ;; |
9417 | *) | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 9418 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9419 | ;; |
9420 | esac | ||||
9421 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9422 | fi |
9423 | |||||
9424 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | ||||
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9425 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9426 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9427 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
9429 | $as_echo_n "checking for --enable-framework... " >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9430 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9431 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9432 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9433 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9434 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9435 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9436 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9439 | $as_echo "yes" >&6; } | ||||
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9440 | if test $enable_shared = "yes" |
9441 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9442 | 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] | 9443 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9444 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9446 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9447 | fi |
9448 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
9450 | $as_echo_n "checking for dyld... " >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9451 | case $ac_sys_system/$ac_sys_release in |
9452 | Darwin/*) | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9453 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9454 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9455 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
9457 | $as_echo "always on for Darwin" >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9458 | ;; |
9459 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9461 | $as_echo "no" >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9462 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9463 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9464 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9465 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9466 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9467 | |
9468 | |||||
9469 | |||||
9470 | |||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9471 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9472 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9473 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
9474 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | ||||
9475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | ||||
9476 | $as_echo_n "checking the extension of shared libraries... " >&6; } | ||||
9477 | if test -z "$SHLIB_SUFFIX"; then | ||||
9478 | case $ac_sys_system in | ||||
9479 | hp*|HP*) | ||||
9480 | case `uname -m` in | ||||
9481 | ia64) SHLIB_SUFFIX=.so;; | ||||
9482 | *) SHLIB_SUFFIX=.sl;; | ||||
9483 | esac | ||||
9484 | ;; | ||||
9485 | CYGWIN*) SHLIB_SUFFIX=.dll;; | ||||
9486 | *) SHLIB_SUFFIX=.so;; | ||||
9487 | esac | ||||
9488 | fi | ||||
9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | ||||
9490 | $as_echo "$SHLIB_SUFFIX" >&6; } | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9491 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9492 | # LDSHARED is the ld *command* used to create shared library |
Benjamin Peterson | 0693063 | 2017-09-04 16:36:05 -0700 | [diff] [blame] | 9493 | # -- "cc -G" on SunOS 5.x. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9494 | # (Shared libraries in this instance are shared modules to be loaded into |
9495 | # Python, as opposed to building Python itself as a shared library.) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
9497 | $as_echo_n "checking LDSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9498 | if test -z "$LDSHARED" |
9499 | then | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9500 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9501 | AIX*) |
Martin Panter | 395733d | 2016-11-20 07:56:37 +0000 | [diff] [blame] | 9502 | BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9503 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9504 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9505 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9506 | if test "$GCC" = "yes" ; then |
9507 | LDSHARED='$(CC) -shared' | ||||
9508 | LDCXXSHARED='$(CXX) -shared' | ||||
9509 | else | ||||
9510 | LDSHARED='$(CC) -G' | ||||
9511 | LDCXXSHARED='$(CXX) -G' | ||||
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9512 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9513 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9514 | if test "$GCC" = "yes" ; then |
9515 | LDSHARED='$(CC) -shared' | ||||
9516 | LDCXXSHARED='$(CXX) -shared' | ||||
9517 | else | ||||
Rob Boehne | 9d25bd1 | 2017-12-06 11:58:17 -0600 | [diff] [blame] | 9518 | LDSHARED='$(CC) -b' |
Benjamin Peterson | 62ed6be | 2017-12-21 21:43:09 -0800 | [diff] [blame] | 9519 | LDCXXSHARED='$(CXX) -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9520 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9521 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9522 | LDSHARED='$(CC) -bundle' |
9523 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9524 | if test "$enable_framework" ; then |
9525 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9526 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9527 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9528 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9529 | else |
9530 | # No framework. Ignore undefined symbols, assuming they come from Python | ||||
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9531 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9532 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9533 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9534 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9535 | LDSHARED='$(CC) -bundle' |
9536 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9537 | if test "$enable_framework" ; then |
9538 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9539 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9540 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9541 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9542 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9543 | # No framework, use the Python app as bundle-loader |
9544 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | ||||
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9545 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9546 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9547 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9548 | Darwin/*) |
9549 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | ||||
9550 | # This allows an extension to be used in any Python | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9551 | |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9552 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
9553 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
9554 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | ||||
9555 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
9556 | if test ${dep_target_major} -eq 10 && \ | ||||
9557 | test ${dep_target_minor} -le 2 | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9558 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9559 | # building for OS X 10.0 through 10.2 |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9560 | LDSHARED='$(CC) -bundle' |
9561 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9562 | if test "$enable_framework" ; then |
9563 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9564 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9565 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9566 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9567 | else |
9568 | # No framework, use the Python app as bundle-loader | ||||
9569 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | ||||
9570 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9571 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9572 | fi |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9573 | else |
9574 | # building for OS X 10.3 and later | ||||
9575 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | ||||
9576 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | ||||
9577 | BLDSHARED="$LDSHARED" | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9578 | fi |
9579 | ;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 9580 | Linux*|GNU*|QNX*|VxWorks*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9581 | LDSHARED='$(CC) -shared' |
9582 | LDCXXSHARED='$(CXX) -shared';; | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9583 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9584 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9585 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9586 | LDSHARED='$(CC) -shared' |
9587 | LDCXXSHARED='$(CXX) -shared' | ||||
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9588 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9589 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9590 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9591 | OpenBSD*) |
9592 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | ||||
9593 | then | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9594 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9595 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9596 | else |
9597 | case `uname -r` in | ||||
9598 | [01].* | 2.[0-7] | 2.[0-7].*) | ||||
9599 | LDSHARED="ld -Bshareable ${LDFLAGS}" | ||||
9600 | ;; | ||||
9601 | *) | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9602 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9603 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9604 | ;; |
9605 | esac | ||||
9606 | fi;; | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9607 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9608 | LDSHARED='$(CC) -shared' |
9609 | LDCXXSHARED='$(CXX) -shared';; | ||||
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9610 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9611 | if test "$GCC" = "yes" ; then |
9612 | LDSHARED='$(CC) -shared' | ||||
9613 | LDCXXSHARED='$(CXX) -shared' | ||||
9614 | else | ||||
9615 | LDSHARED='$(CC) -G' | ||||
9616 | LDCXXSHARED='$(CXX) -G' | ||||
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9617 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9618 | SCO_SV*) |
9619 | LDSHARED='$(CC) -Wl,-G,-Bexport' | ||||
9620 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | ||||
9621 | CYGWIN*) | ||||
9622 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | ||||
9623 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9624 | *) LDSHARED="ld";; |
9625 | esac | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9626 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
9628 | $as_echo "$LDSHARED" >&6; } | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9629 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9630 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9631 | # 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] | 9632 | # library (module) -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
9634 | $as_echo_n "checking CCSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9635 | if test -z "$CCSHARED" |
9636 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9637 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9638 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9639 | then CCSHARED="-fPIC"; |
9640 | elif test `uname -p` = sparc; | ||||
9641 | then CCSHARED="-xcode=pic32"; | ||||
9642 | else CCSHARED="-Kpic"; | ||||
9643 | fi;; | ||||
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9644 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9645 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9646 | else CCSHARED="+z"; |
9647 | fi;; | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9648 | Linux-android*) ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9649 | Linux*|GNU*) CCSHARED="-fPIC";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9650 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9651 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9652 | if test "$GCC" = "yes" |
9653 | then CCSHARED="-fPIC" | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9654 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9655 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9656 | SCO_SV*) |
9657 | if test "$GCC" = "yes" | ||||
9658 | then CCSHARED="-fPIC" | ||||
9659 | else CCSHARED="-Kpic -belf" | ||||
9660 | fi;; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 9661 | VxWorks*) |
9662 | CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic" | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9663 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9664 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
9666 | $as_echo "$CCSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9667 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9668 | # the python executable -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
9670 | $as_echo_n "checking LINKFORSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9671 | if test -z "$LINKFORSHARED" |
9672 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9673 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9674 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9675 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9676 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
9677 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9678 | Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9679 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9680 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9681 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9682 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Ned Deily | 5bbbc73 | 2019-07-02 03:12:18 -0400 | [diff] [blame] | 9683 | |
9684 | # Issue #18075: the default maximum stack size (8MBytes) is too | ||||
9685 | # small for the default recursion limit. Increase the stack size | ||||
9686 | # to ensure that tests don't crash | ||||
Ronald Oussoren | 1a057ba | 2019-08-01 07:43:07 +0200 | [diff] [blame] | 9687 | # Note: This matches the value of THREAD_STACK_SIZE in |
9688 | # thread_pthread.h | ||||
Ned Deily | 5bbbc73 | 2019-07-02 03:12:18 -0400 | [diff] [blame] | 9689 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" |
9690 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9691 | if test "$enable_framework" |
9692 | then | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9693 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9694 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9695 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9696 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9697 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9698 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9699 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9700 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
9701 | then | ||||
9702 | LINKFORSHARED="-Wl,--export-dynamic" | ||||
9703 | fi;; | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9704 | SunOS/5*) case $CC in |
9705 | *gcc*) | ||||
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9706 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9707 | then |
9708 | LINKFORSHARED="-Xlinker --export-dynamic" | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9709 | fi;; |
9710 | esac;; | ||||
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9711 | CYGWIN*) |
9712 | if test $enable_shared = "no" | ||||
9713 | then | ||||
9714 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | ||||
9715 | fi;; | ||||
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9716 | QNX*) |
9717 | # -Wl,-E causes the symbols to be added to the dynamic | ||||
9718 | # symbol table so that they can be found when a module | ||||
9719 | # is loaded. -N 2048K causes the stack size to be set | ||||
9720 | # to 2048 kilobytes so that the stack doesn't overflow | ||||
9721 | # when running test_compile.py. | ||||
9722 | LINKFORSHARED='-Wl,-E -N 2048K';; | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 9723 | VxWorks*) |
pxinwr | c117426 | 2020-12-15 06:14:43 +0800 | [diff] [blame] | 9724 | LINKFORSHARED='-Wl,-export-dynamic';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9725 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9726 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
9728 | $as_echo "$LINKFORSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9729 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9730 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9731 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
9733 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9734 | if test ! "$LIBRARY" = "$LDLIBRARY" |
9735 | then | ||||
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9736 | case $ac_sys_system in |
9737 | CYGWIN*) | ||||
9738 | # Cygwin needs CCSHARED when building extension DLLs | ||||
9739 | # but not when building the interpreter DLL. | ||||
9740 | CFLAGSFORSHARED='';; | ||||
9741 | *) | ||||
9742 | CFLAGSFORSHARED='$(CCSHARED)' | ||||
9743 | esac | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9744 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
9746 | $as_echo "$CFLAGSFORSHARED" >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9747 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9748 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
9749 | # library (with --enable-shared). | ||||
9750 | # 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] | 9751 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
9752 | # if it is not required, since it creates a dependency of the shared library | ||||
9753 | # to LIBS. This, in turn, means that applications linking the shared libpython | ||||
9754 | # don't need to link LIBS explicitly. The default should be only changed | ||||
9755 | # on systems where this approach causes problems. | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9756 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
9758 | $as_echo_n "checking SHLIBS... " >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9759 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9760 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9761 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9762 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
9764 | $as_echo "$SHLIBS" >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9765 | |
9766 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9767 | # checks for libraries |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
9769 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9770 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9771 | $as_echo_n "(cached) " >&6 |
9772 | else | ||||
9773 | ac_check_lib_save_LIBS=$LIBS | ||||
9774 | LIBS="-lsendfile $LIBS" | ||||
9775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9776 | /* end confdefs.h. */ | ||||
9777 | |||||
9778 | /* Override any GCC internal prototype to avoid an error. | ||||
9779 | Use char because int might match the return type of a GCC | ||||
9780 | builtin and then its argument prototype would still apply. */ | ||||
9781 | #ifdef __cplusplus | ||||
9782 | extern "C" | ||||
9783 | #endif | ||||
9784 | char sendfile (); | ||||
9785 | int | ||||
9786 | main () | ||||
9787 | { | ||||
9788 | return sendfile (); | ||||
9789 | ; | ||||
9790 | return 0; | ||||
9791 | } | ||||
9792 | _ACEOF | ||||
9793 | if ac_fn_c_try_link "$LINENO"; then : | ||||
9794 | ac_cv_lib_sendfile_sendfile=yes | ||||
9795 | else | ||||
9796 | ac_cv_lib_sendfile_sendfile=no | ||||
9797 | fi | ||||
9798 | rm -f core conftest.err conftest.$ac_objext \ | ||||
9799 | conftest$ac_exeext conftest.$ac_ext | ||||
9800 | LIBS=$ac_check_lib_save_LIBS | ||||
9801 | fi | ||||
9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | ||||
9803 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9804 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9805 | cat >>confdefs.h <<_ACEOF |
9806 | #define HAVE_LIBSENDFILE 1 | ||||
9807 | _ACEOF | ||||
9808 | |||||
9809 | LIBS="-lsendfile $LIBS" | ||||
9810 | |||||
9811 | fi | ||||
9812 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
9814 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9815 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9816 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9817 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9818 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9819 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9821 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9822 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9823 | /* Override any GCC internal prototype to avoid an error. |
9824 | Use char because int might match the return type of a GCC | ||||
9825 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9826 | #ifdef __cplusplus |
9827 | extern "C" | ||||
9828 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9829 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9830 | int |
9831 | main () | ||||
9832 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9833 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | ; |
9835 | return 0; | ||||
9836 | } | ||||
9837 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9838 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9839 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9840 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9841 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9842 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9843 | rm -f core conftest.err conftest.$ac_objext \ |
9844 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9845 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9846 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
9848 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9849 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9850 | cat >>confdefs.h <<_ACEOF |
9851 | #define HAVE_LIBDL 1 | ||||
9852 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9853 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9854 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9855 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9856 | fi |
9857 | # Dynamic linking for SunOS/Solaris and SYSV | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
9859 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9860 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9861 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9862 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9863 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9864 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9866 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9867 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9868 | /* Override any GCC internal prototype to avoid an error. |
9869 | Use char because int might match the return type of a GCC | ||||
9870 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9871 | #ifdef __cplusplus |
9872 | extern "C" | ||||
9873 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9874 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9875 | int |
9876 | main () | ||||
9877 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9878 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9879 | ; |
9880 | return 0; | ||||
9881 | } | ||||
9882 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9883 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9884 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9885 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9886 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9887 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9888 | rm -f core conftest.err conftest.$ac_objext \ |
9889 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9890 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9891 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
9893 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9894 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9895 | cat >>confdefs.h <<_ACEOF |
9896 | #define HAVE_LIBDLD 1 | ||||
9897 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9898 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9899 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9900 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9901 | fi |
9902 | # Dynamic linking for HP-UX | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9903 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9904 | # checks for uuid.h location |
9905 | for ac_header in uuid/uuid.h uuid.h | ||||
9906 | do : | ||||
9907 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
9908 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
9909 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
9910 | cat >>confdefs.h <<_ACEOF | ||||
9911 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
9912 | _ACEOF | ||||
9913 | |||||
9914 | fi | ||||
9915 | |||||
9916 | done | ||||
9917 | |||||
9918 | |||||
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 |
9920 | $as_echo_n "checking for uuid_generate_time_safe... " >&6; } | ||||
9921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9922 | /* end confdefs.h. */ | ||||
9923 | #include <uuid/uuid.h> | ||||
9924 | int | ||||
9925 | main () | ||||
9926 | { | ||||
9927 | |||||
9928 | #ifndef uuid_generate_time_safe | ||||
Berker Peksag | 0e163d2 | 2017-11-09 00:43:14 +0300 | [diff] [blame] | 9929 | void *x = uuid_generate_time_safe |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9930 | #endif |
9931 | |||||
9932 | ; | ||||
9933 | return 0; | ||||
9934 | } | ||||
9935 | _ACEOF | ||||
9936 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
9937 | |||||
9938 | $as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h | ||||
9939 | |||||
9940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
9941 | $as_echo "yes" >&6; } | ||||
9942 | else | ||||
9943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9944 | $as_echo "no" >&6; } | ||||
9945 | |||||
9946 | fi | ||||
9947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9948 | |||||
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9949 | # 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] | 9950 | # FreeBSD and OpenBSD provides support as well |
9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5 | ||||
9952 | $as_echo_n "checking for uuid_create... " >&6; } | ||||
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9954 | /* end confdefs.h. */ | ||||
9955 | #include <uuid.h> | ||||
9956 | int | ||||
9957 | main () | ||||
9958 | { | ||||
9959 | |||||
9960 | #ifndef uuid_create | ||||
9961 | void *x = uuid_create | ||||
9962 | #endif | ||||
9963 | |||||
9964 | ; | ||||
9965 | return 0; | ||||
9966 | } | ||||
9967 | _ACEOF | ||||
9968 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
9969 | |||||
9970 | $as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h | ||||
9971 | |||||
9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
9973 | $as_echo "yes" >&6; } | ||||
9974 | else | ||||
9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9976 | $as_echo "no" >&6; } | ||||
9977 | |||||
9978 | fi | ||||
9979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9980 | |||||
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 9981 | # Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet |
9982 | # stream in big-endian byte-order | ||||
9983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5 | ||||
9984 | $as_echo_n "checking for uuid_enc_be... " >&6; } | ||||
9985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9986 | /* end confdefs.h. */ | ||||
9987 | #include <uuid.h> | ||||
9988 | int | ||||
9989 | main () | ||||
9990 | { | ||||
9991 | |||||
9992 | #ifndef uuid_enc_be | ||||
Ned Deily | ced0adb | 2018-06-09 18:19:57 -0400 | [diff] [blame] | 9993 | void *x = uuid_enc_be |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 9994 | #endif |
9995 | |||||
9996 | ; | ||||
9997 | return 0; | ||||
9998 | } | ||||
9999 | _ACEOF | ||||
10000 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
10001 | |||||
10002 | $as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h | ||||
10003 | |||||
10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
10005 | $as_echo "yes" >&6; } | ||||
10006 | else | ||||
10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10008 | $as_echo "no" >&6; } | ||||
10009 | |||||
10010 | fi | ||||
10011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
10012 | |||||
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 10013 | # 'Real Time' functions on Solaris |
10014 | # posix4 on Solaris 2.6 | ||||
10015 | # pthread (first!) on Linux | ||||
Berker Peksag | 7e666ee | 2017-11-06 19:06:05 +0300 | [diff] [blame] | 10016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10017 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10018 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10019 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10020 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10021 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10023 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10024 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10025 | /* Override any GCC internal prototype to avoid an error. |
10026 | Use char because int might match the return type of a GCC | ||||
10027 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10028 | #ifdef __cplusplus |
10029 | extern "C" | ||||
10030 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10031 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10032 | int |
10033 | main () | ||||
10034 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10035 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10036 | ; |
10037 | return 0; | ||||
10038 | } | ||||
10039 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10040 | for ac_lib in '' pthread rt posix4; do |
10041 | if test -z "$ac_lib"; then | ||||
10042 | ac_res="none required" | ||||
10043 | else | ||||
10044 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 10045 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10046 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10047 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10048 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10049 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10050 | rm -f core conftest.err conftest.$ac_objext \ |
10051 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10052 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10053 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 10054 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10055 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10056 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10057 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10058 | else |
10059 | ac_cv_search_sem_init=no | ||||
10060 | fi | ||||
10061 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10062 | LIBS=$ac_func_search_save_LIBS |
10063 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
10065 | $as_echo "$ac_cv_search_sem_init" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10066 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10067 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10068 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10069 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10070 | fi |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 10071 | |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10072 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10073 | # check if we need libintl for locale functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
10075 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10076 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10077 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10078 | else |
10079 | ac_check_lib_save_LIBS=$LIBS | ||||
10080 | LIBS="-lintl $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10082 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10083 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10084 | /* Override any GCC internal prototype to avoid an error. |
10085 | Use char because int might match the return type of a GCC | ||||
10086 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10087 | #ifdef __cplusplus |
10088 | extern "C" | ||||
10089 | #endif | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10090 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10091 | int |
10092 | main () | ||||
10093 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10094 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10095 | ; |
10096 | return 0; | ||||
10097 | } | ||||
10098 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10099 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10100 | ac_cv_lib_intl_textdomain=yes |
10101 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10102 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10103 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10104 | rm -f core conftest.err conftest.$ac_objext \ |
10105 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10106 | LIBS=$ac_check_lib_save_LIBS |
10107 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
10109 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10110 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10111 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10112 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10113 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 10114 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10115 | fi |
10116 | |||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10117 | |
10118 | # checks for system dependent C++ extensions support | ||||
10119 | case "$ac_sys_system" in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10120 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
10121 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | ||||
10122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10123 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10124 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 10125 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10126 | int |
10127 | main () | ||||
10128 | { | ||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10129 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10130 | ; |
10131 | return 0; | ||||
10132 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10135 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10136 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10137 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10138 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10141 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10142 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10143 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10144 | |
10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10146 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10147 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10148 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10149 | rm -f core conftest.err conftest.$ac_objext \ |
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 10150 | conftest$ac_exeext conftest.$ac_ext |
10151 | # BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag | ||||
10152 | # of the AIX system used to build/package Python executable. This tag serves | ||||
10153 | # as a baseline for bdist module packages | ||||
10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5 | ||||
10155 | $as_echo_n "checking for the system builddate... " >&6; } | ||||
10156 | AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }') | ||||
10157 | |||||
10158 | cat >>confdefs.h <<_ACEOF | ||||
10159 | #define AIX_BUILDDATE $AIX_BUILDDATE | ||||
10160 | _ACEOF | ||||
10161 | |||||
10162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5 | ||||
10163 | $as_echo "$AIX_BUILDDATE" >&6; } | ||||
10164 | ;; | ||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10165 | *) ;; |
10166 | esac | ||||
10167 | |||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10168 | # check for systems that require aligned memory access |
10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | ||||
10170 | $as_echo_n "checking aligned memory access is required... " >&6; } | ||||
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10171 | if ${ac_cv_aligned_required+:} false; then : |
10172 | $as_echo_n "(cached) " >&6 | ||||
10173 | else | ||||
10174 | if test "$cross_compiling" = yes; then : | ||||
10175 | ac_cv_aligned_required=yes | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10176 | else |
10177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
10178 | /* end confdefs.h. */ | ||||
10179 | |||||
10180 | int main() | ||||
10181 | { | ||||
10182 | char s[16]; | ||||
10183 | int i, *p1, *p2; | ||||
10184 | for (i=0; i < 16; i++) | ||||
10185 | s[i] = i; | ||||
10186 | p1 = (int*)(s+1); | ||||
10187 | p2 = (int*)(s+2); | ||||
10188 | if (*p1 == *p2) | ||||
10189 | return 1; | ||||
10190 | return 0; | ||||
10191 | } | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10192 | _ACEOF |
10193 | if ac_fn_c_try_run "$LINENO"; then : | ||||
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10194 | ac_cv_aligned_required=no |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10195 | else |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10196 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10197 | fi |
10198 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
10199 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
10200 | fi | ||||
10201 | |||||
10202 | |||||
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 10203 | fi |
10204 | |||||
10205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 | ||||
10206 | $as_echo "$ac_cv_aligned_required" >&6; } | ||||
10207 | if test "$ac_cv_aligned_required" = yes ; then | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10208 | |
10209 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | ||||
10210 | |||||
10211 | fi | ||||
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 10212 | |
10213 | # str, bytes and memoryview hash algorithm | ||||
10214 | |||||
10215 | |||||
10216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | ||||
10217 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | ||||
10218 | |||||
10219 | # Check whether --with-hash_algorithm was given. | ||||
10220 | if test "${with_hash_algorithm+set}" = set; then : | ||||
10221 | withval=$with_hash_algorithm; | ||||
10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10223 | $as_echo "$withval" >&6; } | ||||
10224 | case "$withval" in | ||||
10225 | siphash24) | ||||
10226 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | ||||
10227 | |||||
10228 | ;; | ||||
10229 | fnv) | ||||
10230 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | ||||
10231 | |||||
10232 | ;; | ||||
10233 | *) | ||||
10234 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | ||||
10235 | ;; | ||||
10236 | esac | ||||
10237 | |||||
10238 | else | ||||
10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | ||||
10240 | $as_echo "default" >&6; } | ||||
10241 | fi | ||||
10242 | |||||
10243 | |||||
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 10244 | validate_tzpath() { |
10245 | # Checks that each element of hte path is an absolute path | ||||
10246 | if test -z "$1"; then | ||||
10247 | # Empty string is allowed: it indicates no system TZPATH | ||||
10248 | return 0 | ||||
10249 | fi | ||||
10250 | |||||
10251 | # Bad paths are those that don't start with / | ||||
10252 | if ( echo $1 | grep -qE '(^|:)([^/]|$)' ); then | ||||
10253 | as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5 | ||||
10254 | return 1; | ||||
10255 | fi | ||||
10256 | } | ||||
10257 | |||||
10258 | TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo" | ||||
10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5 | ||||
10260 | $as_echo_n "checking for --with-tzpath... " >&6; } | ||||
10261 | |||||
10262 | # Check whether --with-tzpath was given. | ||||
10263 | if test "${with_tzpath+set}" = set; then : | ||||
10264 | withval=$with_tzpath; | ||||
10265 | case "$withval" in | ||||
10266 | yes) | ||||
10267 | as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5 | ||||
10268 | ;; | ||||
10269 | *) | ||||
10270 | validate_tzpath "$withval" | ||||
10271 | TZPATH="$withval" | ||||
10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5 | ||||
10273 | $as_echo "\"$withval\"" >&6; } | ||||
10274 | ;; | ||||
10275 | esac | ||||
10276 | |||||
10277 | else | ||||
10278 | validate_tzpath "$TZPATH" | ||||
10279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5 | ||||
10280 | $as_echo "\"$TZPATH\"" >&6; } | ||||
10281 | fi | ||||
10282 | |||||
10283 | |||||
10284 | |||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
10286 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | ||||
10287 | |||||
10288 | # Check whether --with-address_sanitizer was given. | ||||
10289 | if test "${with_address_sanitizer+set}" = set; then : | ||||
10290 | withval=$with_address_sanitizer; | ||||
10291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10292 | $as_echo "$withval" >&6; } | ||||
10293 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | ||||
10294 | LDFLAGS="-fsanitize=address $LDFLAGS" | ||||
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 10295 | # ASan works by controlling memory allocation, our own malloc interferes. |
10296 | with_pymalloc="no" | ||||
10297 | |||||
10298 | else | ||||
10299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10300 | $as_echo "no" >&6; } | ||||
10301 | fi | ||||
10302 | |||||
10303 | |||||
10304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 | ||||
10305 | $as_echo_n "checking for --with-memory-sanitizer... " >&6; } | ||||
10306 | |||||
10307 | # Check whether --with-memory_sanitizer was given. | ||||
10308 | if test "${with_memory_sanitizer+set}" = set; then : | ||||
10309 | withval=$with_memory_sanitizer; | ||||
10310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10311 | $as_echo "$withval" >&6; } | ||||
10312 | BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" | ||||
10313 | LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" | ||||
10314 | # MSan works by controlling memory allocation, our own malloc interferes. | ||||
10315 | with_pymalloc="no" | ||||
10316 | |||||
10317 | else | ||||
10318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10319 | $as_echo "no" >&6; } | ||||
10320 | fi | ||||
10321 | |||||
10322 | |||||
10323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 | ||||
10324 | $as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; } | ||||
10325 | |||||
10326 | # Check whether --with-undefined_behavior_sanitizer was given. | ||||
10327 | if test "${with_undefined_behavior_sanitizer+set}" = set; then : | ||||
10328 | withval=$with_undefined_behavior_sanitizer; | ||||
10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10330 | $as_echo "$withval" >&6; } | ||||
10331 | BASECFLAGS="-fsanitize=undefined $BASECFLAGS" | ||||
10332 | LDFLAGS="-fsanitize=undefined $LDFLAGS" | ||||
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 10333 | |
10334 | else | ||||
10335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10336 | $as_echo "no" >&6; } | ||||
10337 | fi | ||||
10338 | |||||
10339 | |||||
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10340 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
10342 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10343 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10344 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10345 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10346 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10347 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10349 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10350 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10351 | /* Override any GCC internal prototype to avoid an error. |
10352 | Use char because int might match the return type of a GCC | ||||
10353 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10354 | #ifdef __cplusplus |
10355 | extern "C" | ||||
10356 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10357 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10358 | int |
10359 | main () | ||||
10360 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10361 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10362 | ; |
10363 | return 0; | ||||
10364 | } | ||||
10365 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10366 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10367 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10368 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10369 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10370 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10371 | rm -f core conftest.err conftest.$ac_objext \ |
10372 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10373 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10374 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
10376 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10377 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10378 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10379 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10380 | # SVR4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
10382 | $as_echo_n "checking for socket in -lsocket... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10383 | if ${ac_cv_lib_socket_socket+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10384 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10385 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10387 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10389 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10390 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10391 | /* Override any GCC internal prototype to avoid an error. |
10392 | Use char because int might match the return type of a GCC | ||||
10393 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | #ifdef __cplusplus |
10395 | extern "C" | ||||
10396 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | int |
10399 | main () | ||||
10400 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10401 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10402 | ; |
10403 | return 0; | ||||
10404 | } | ||||
10405 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10406 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10408 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10409 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10410 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10411 | rm -f core conftest.err conftest.$ac_objext \ |
10412 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10414 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
10416 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10417 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10418 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10419 | fi |
10420 | # SVR4 sockets | ||||
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 10421 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
10423 | $as_echo_n "checking for --with-libs... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10424 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10425 | # Check whether --with-libs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10426 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10427 | withval=$with_libs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10429 | $as_echo "$withval" >&6; } | ||||
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10430 | LIBS="$withval $LIBS" |
10431 | |||||
10432 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10434 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10435 | fi |
10436 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10437 | |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10438 | |
10439 | |||||
10440 | |||||
10441 | |||||
10442 | |||||
10443 | |||||
Victor Stinner | b477d19 | 2020-01-22 22:48:16 +0100 | [diff] [blame] | 10444 | |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 10445 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
10446 | if test -n "$ac_tool_prefix"; then | ||||
10447 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||||
10448 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||||
10449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
10450 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10451 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | ||||
10452 | $as_echo_n "(cached) " >&6 | ||||
10453 | else | ||||
10454 | case $PKG_CONFIG in | ||||
10455 | [\\/]* | ?:[\\/]*) | ||||
10456 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||||
10457 | ;; | ||||
10458 | *) | ||||
10459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10460 | for as_dir in $PATH | ||||
10461 | do | ||||
10462 | IFS=$as_save_IFS | ||||
10463 | test -z "$as_dir" && as_dir=. | ||||
10464 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
10465 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
10466 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
10468 | break 2 | ||||
10469 | fi | ||||
10470 | done | ||||
10471 | done | ||||
10472 | IFS=$as_save_IFS | ||||
10473 | |||||
10474 | ;; | ||||
10475 | esac | ||||
10476 | fi | ||||
10477 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||||
10478 | if test -n "$PKG_CONFIG"; then | ||||
10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||||
10480 | $as_echo "$PKG_CONFIG" >&6; } | ||||
10481 | else | ||||
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10483 | $as_echo "no" >&6; } | ||||
10484 | fi | ||||
10485 | |||||
10486 | |||||
10487 | fi | ||||
10488 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||||
10489 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||||
10490 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||||
10491 | set dummy pkg-config; ac_word=$2 | ||||
10492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
10493 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10494 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | ||||
10495 | $as_echo_n "(cached) " >&6 | ||||
10496 | else | ||||
10497 | case $ac_pt_PKG_CONFIG in | ||||
10498 | [\\/]* | ?:[\\/]*) | ||||
10499 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||||
10500 | ;; | ||||
10501 | *) | ||||
10502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10503 | for as_dir in $PATH | ||||
10504 | do | ||||
10505 | IFS=$as_save_IFS | ||||
10506 | test -z "$as_dir" && as_dir=. | ||||
10507 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
10508 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
10509 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
10511 | break 2 | ||||
10512 | fi | ||||
10513 | done | ||||
10514 | done | ||||
10515 | IFS=$as_save_IFS | ||||
10516 | |||||
10517 | ;; | ||||
10518 | esac | ||||
10519 | fi | ||||
10520 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||||
10521 | if test -n "$ac_pt_PKG_CONFIG"; then | ||||
10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||||
10523 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||||
10524 | else | ||||
10525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10526 | $as_echo "no" >&6; } | ||||
10527 | fi | ||||
10528 | |||||
10529 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||||
10530 | PKG_CONFIG="" | ||||
10531 | else | ||||
10532 | case $cross_compiling:$ac_tool_warned in | ||||
10533 | yes:) | ||||
10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
10535 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
10536 | ac_tool_warned=yes ;; | ||||
10537 | esac | ||||
10538 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||||
10539 | fi | ||||
10540 | else | ||||
10541 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||||
10542 | fi | ||||
10543 | |||||
10544 | fi | ||||
10545 | if test -n "$PKG_CONFIG"; then | ||||
10546 | _pkg_min_version=0.9.0 | ||||
10547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||||
10548 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||||
10549 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||||
10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
10551 | $as_echo "yes" >&6; } | ||||
10552 | else | ||||
10553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10554 | $as_echo "no" >&6; } | ||||
10555 | PKG_CONFIG="" | ||||
10556 | fi | ||||
10557 | fi | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10558 | |
10559 | # Check for use of the system expat library | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
10561 | $as_echo_n "checking for --with-system-expat... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10562 | |
10563 | # Check whether --with-system_expat was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10564 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10565 | withval=$with_system_expat; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10566 | else |
10567 | with_system_expat="no" | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10568 | fi |
10569 | |||||
10570 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
10572 | $as_echo "$with_system_expat" >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10573 | |
10574 | # Check for use of the system libffi library | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
10576 | $as_echo_n "checking for --with-system-ffi... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10577 | |
10578 | # Check whether --with-system_ffi was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10579 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10580 | withval=$with_system_ffi; |
10581 | fi | ||||
10582 | |||||
10583 | |||||
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10584 | if test "$ac_sys_system" = "Darwin" |
10585 | then | ||||
10586 | case "$with_system_ffi" in | ||||
10587 | "") | ||||
10588 | with_system_ffi="no" | ||||
10589 | ;; | ||||
10590 | yes|no) | ||||
10591 | ;; | ||||
10592 | *) | ||||
10593 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 | ||||
10594 | ;; | ||||
10595 | esac | ||||
10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | ||||
10597 | $as_echo "$with_system_ffi" >&6; } | ||||
10598 | else | ||||
10599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
10600 | $as_echo "yes" >&6; } | ||||
10601 | if test "$with_system_ffi" != "" | ||||
10602 | then | ||||
10603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 | ||||
10604 | $as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} | ||||
10605 | fi | ||||
10606 | with_system_ffi="yes" | ||||
10607 | fi | ||||
Zachary Ware | 935043d | 2016-09-09 17:01:21 -0700 | [diff] [blame] | 10608 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10609 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 10610 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
10611 | else | ||||
10612 | LIBFFI_INCLUDEDIR="" | ||||
10613 | fi | ||||
10614 | |||||
10615 | |||||
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10616 | # Check for use of the system libmpdec library |
10617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | ||||
10618 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | ||||
10619 | |||||
10620 | # Check whether --with-system_libmpdec was given. | ||||
10621 | if test "${with_system_libmpdec+set}" = set; then : | ||||
10622 | withval=$with_system_libmpdec; | ||||
10623 | else | ||||
10624 | with_system_libmpdec="no" | ||||
10625 | fi | ||||
10626 | |||||
10627 | |||||
10628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | ||||
10629 | $as_echo "$with_system_libmpdec" >&6; } | ||||
10630 | |||||
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 10631 | # Check whether _decimal should use a coroutine-local or thread-local context |
10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5 | ||||
10633 | $as_echo_n "checking for --with-decimal-contextvar... " >&6; } | ||||
10634 | |||||
10635 | # Check whether --with-decimal_contextvar was given. | ||||
10636 | if test "${with_decimal_contextvar+set}" = set; then : | ||||
10637 | withval=$with_decimal_contextvar; | ||||
10638 | else | ||||
10639 | with_decimal_contextvar="yes" | ||||
10640 | fi | ||||
10641 | |||||
10642 | |||||
10643 | if test "$with_decimal_contextvar" != "no" | ||||
10644 | then | ||||
10645 | |||||
10646 | $as_echo "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h | ||||
10647 | |||||
10648 | fi | ||||
10649 | |||||
10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5 | ||||
10651 | $as_echo "$with_decimal_contextvar" >&6; } | ||||
10652 | |||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10653 | # Check for support for loadable sqlite extensions |
10654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | ||||
10655 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | ||||
10656 | # Check whether --enable-loadable-sqlite-extensions was given. | ||||
10657 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | ||||
10658 | enableval=$enable_loadable_sqlite_extensions; | ||||
10659 | else | ||||
10660 | enable_loadable_sqlite_extensions="no" | ||||
10661 | fi | ||||
10662 | |||||
10663 | |||||
10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | ||||
10665 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | ||||
10666 | |||||
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10667 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
10668 | |||||
10669 | |||||
10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | ||||
10671 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | ||||
10672 | |||||
10673 | # Check whether --with-tcltk-includes was given. | ||||
10674 | if test "${with_tcltk_includes+set}" = set; then : | ||||
10675 | withval=$with_tcltk_includes; | ||||
10676 | else | ||||
10677 | with_tcltk_includes="default" | ||||
10678 | fi | ||||
10679 | |||||
10680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | ||||
10681 | $as_echo "$with_tcltk_includes" >&6; } | ||||
10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | ||||
10683 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | ||||
10684 | |||||
10685 | # Check whether --with-tcltk-libs was given. | ||||
10686 | if test "${with_tcltk_libs+set}" = set; then : | ||||
10687 | withval=$with_tcltk_libs; | ||||
10688 | else | ||||
10689 | with_tcltk_libs="default" | ||||
10690 | fi | ||||
10691 | |||||
10692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | ||||
10693 | $as_echo "$with_tcltk_libs" >&6; } | ||||
10694 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | ||||
10695 | then | ||||
10696 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | ||||
10697 | then | ||||
10698 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | ||||
10699 | fi | ||||
10700 | TCLTK_INCLUDES="" | ||||
10701 | TCLTK_LIBS="" | ||||
10702 | else | ||||
10703 | TCLTK_INCLUDES="$with_tcltk_includes" | ||||
10704 | TCLTK_LIBS="$with_tcltk_libs" | ||||
10705 | fi | ||||
10706 | |||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10707 | # Check for --with-dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
10709 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10710 | |
10711 | # Check whether --with-dbmliborder was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10712 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10713 | withval=$with_dbmliborder; |
10714 | if test x$with_dbmliborder = xyes | ||||
10715 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10716 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10717 | else |
10718 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | ||||
10719 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | ||||
10720 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10721 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10722 | fi |
10723 | done | ||||
10724 | fi | ||||
10725 | fi | ||||
10726 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
10728 | $as_echo "$with_dbmliborder" >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10730 | # Templates for things AC_DEFINEd more than once. |
10731 | # For a single AC_DEFINE, no template is needed. | ||||
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10732 | |
10733 | |||||
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10734 | if test "$ac_cv_pthread_is_default" = yes |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10735 | then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10736 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10737 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10738 | |
10739 | posix_threads=yes | ||||
Jesús Cea | 52d1b86 | 2019-09-28 03:44:32 +0200 | [diff] [blame] | 10740 | if test "$ac_sys_system" = "SunOS"; then |
10741 | CFLAGS="$CFLAGS -D_REENTRANT" | ||||
10742 | fi | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10743 | elif test "$ac_cv_kpthread" = "yes" |
10744 | then | ||||
10745 | CC="$CC -Kpthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10746 | if test "$ac_cv_cxx_thread" = "yes"; then |
10747 | CXX="$CXX -Kpthread" | ||||
10748 | fi | ||||
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10749 | posix_threads=yes |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10750 | elif test "$ac_cv_kthread" = "yes" |
10751 | then | ||||
10752 | CC="$CC -Kthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10753 | if test "$ac_cv_cxx_thread" = "yes"; then |
10754 | CXX="$CXX -Kthread" | ||||
10755 | fi | ||||
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10756 | posix_threads=yes |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10757 | elif test "$ac_cv_pthread" = "yes" |
10758 | then | ||||
10759 | CC="$CC -pthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10760 | if test "$ac_cv_cxx_thread" = "yes"; then |
10761 | CXX="$CXX -pthread" | ||||
10762 | fi | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10763 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10764 | else |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10765 | if test ! -z "$withval" -a -d "$withval" |
10766 | then LDFLAGS="$LDFLAGS -L$withval" | ||||
10767 | fi | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10768 | |
10769 | # According to the POSIX spec, a pthreads implementation must | ||||
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10770 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
10771 | # (e.g. gnu pth with pthread emulation) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
10773 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | ||||
10774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10775 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10776 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10777 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10778 | #ifdef _POSIX_THREADS |
10779 | yes | ||||
10780 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10781 | |
10782 | _ACEOF | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10783 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10784 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10785 | unistd_defines_pthreads=yes |
10786 | else | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10787 | unistd_defines_pthreads=no |
10788 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10789 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10790 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
10792 | $as_echo "$unistd_defines_pthreads" >&6; } | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10793 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10794 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10795 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10796 | # Just looking for pthread_create in libpthread is not enough: |
10797 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | ||||
10798 | # So we really have to include pthread.h, and then link. | ||||
10799 | _libs=$LIBS | ||||
10800 | LIBS="$LIBS -lpthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
10802 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | ||||
10803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10804 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10805 | |
10806 | #include <stdio.h> | ||||
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10807 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10808 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10809 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10810 | int |
10811 | main () | ||||
10812 | { | ||||
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10813 | |
10814 | pthread_create (NULL, NULL, start_routine, NULL) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10815 | ; |
10816 | return 0; | ||||
10817 | } | ||||
10818 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10819 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10820 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10822 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10823 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10824 | |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10825 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10826 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10827 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10828 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10829 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10830 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10831 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10832 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10833 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10834 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
10836 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10837 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10838 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10840 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10841 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10843 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10844 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10845 | /* Override any GCC internal prototype to avoid an error. |
10846 | Use char because int might match the return type of a GCC | ||||
10847 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10848 | #ifdef __cplusplus |
10849 | extern "C" | ||||
10850 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10851 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10852 | int |
10853 | main () | ||||
10854 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10855 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10856 | ; |
10857 | return 0; | ||||
10858 | } | ||||
10859 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10860 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10861 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10862 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10863 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10864 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10865 | rm -f core conftest.err conftest.$ac_objext \ |
10866 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10867 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10868 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
10870 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10871 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10872 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10873 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10874 | LIBS="$LIBS -lpthreads" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10875 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10876 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10877 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
10879 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10880 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10881 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10884 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10886 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10887 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10888 | /* Override any GCC internal prototype to avoid an error. |
10889 | Use char because int might match the return type of a GCC | ||||
10890 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | #ifdef __cplusplus |
10892 | extern "C" | ||||
10893 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10894 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10895 | int |
10896 | main () | ||||
10897 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10898 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10899 | ; |
10900 | return 0; | ||||
10901 | } | ||||
10902 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10903 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10904 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10905 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10906 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10907 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10908 | rm -f core conftest.err conftest.$ac_objext \ |
10909 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10910 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10911 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
10913 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10914 | 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] | 10915 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10916 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10917 | LIBS="$LIBS -lc_r" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10918 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10919 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10920 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
10922 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10923 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10924 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10926 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10927 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10929 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10930 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10931 | /* Override any GCC internal prototype to avoid an error. |
10932 | Use char because int might match the return type of a GCC | ||||
10933 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10934 | #ifdef __cplusplus |
10935 | extern "C" | ||||
10936 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10937 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10938 | int |
10939 | main () | ||||
10940 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10941 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10942 | ; |
10943 | return 0; | ||||
10944 | } | ||||
10945 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10946 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10947 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10948 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10949 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10950 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10951 | rm -f core conftest.err conftest.$ac_objext \ |
10952 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10953 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10954 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
10956 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10957 | 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] | 10958 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10959 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10960 | LIBS="$LIBS -lpthread" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10961 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10962 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10963 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
10965 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10966 | if ${ac_cv_lib_cma_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10967 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10968 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10969 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10970 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10972 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10973 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10974 | /* Override any GCC internal prototype to avoid an error. |
10975 | Use char because int might match the return type of a GCC | ||||
10976 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10977 | #ifdef __cplusplus |
10978 | extern "C" | ||||
10979 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10980 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10981 | int |
10982 | main () | ||||
10983 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10984 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10985 | ; |
10986 | return 0; | ||||
10987 | } | ||||
10988 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10989 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10990 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10991 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10992 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10993 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10994 | rm -f core conftest.err conftest.$ac_objext \ |
10995 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10996 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10997 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
10999 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11000 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11001 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11002 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11003 | LIBS="$LIBS -lcma" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11004 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11005 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11006 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11007 | as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 |
11008 | |||||
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11009 | fi |
11010 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11011 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11012 | fi |
11013 | |||||
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11014 | fi |
11015 | |||||
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11016 | fi |
11017 | |||||
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11018 | fi |
11019 | |||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11020 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11021 | rm -f core conftest.err conftest.$ac_objext \ |
11022 | conftest$ac_exeext conftest.$ac_ext | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11023 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
11025 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11026 | if ${ac_cv_lib_mpc_usconfig+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11027 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11028 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11029 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11030 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11032 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11033 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11034 | /* Override any GCC internal prototype to avoid an error. |
11035 | Use char because int might match the return type of a GCC | ||||
11036 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11037 | #ifdef __cplusplus |
11038 | extern "C" | ||||
11039 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11040 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | int |
11042 | main () | ||||
11043 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11044 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11045 | ; |
11046 | return 0; | ||||
11047 | } | ||||
11048 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11049 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11050 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11051 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11052 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11053 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11054 | rm -f core conftest.err conftest.$ac_objext \ |
11055 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11056 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11057 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
11059 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11060 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11061 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11062 | LIBS="$LIBS -lmpc" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11063 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11064 | fi |
11065 | |||||
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11066 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11067 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11068 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11069 | if test "$posix_threads" = "yes"; then |
11070 | if test "$unistd_defines_pthreads" = "no"; then | ||||
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11071 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11072 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11073 | |
11074 | fi | ||||
11075 | |||||
11076 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | ||||
11077 | case $ac_sys_system/$ac_sys_release in | ||||
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 11078 | SunOS/5.6) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11079 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11080 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11081 | ;; |
11082 | SunOS/5.8) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11083 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11084 | |
11085 | ;; | ||||
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 11086 | AIX/*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11087 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 11088 | |
11089 | ;; | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11090 | esac |
11091 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
11093 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11094 | if ${ac_cv_pthread_system_supported+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11095 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11096 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11097 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11098 | ac_cv_pthread_system_supported=no |
11099 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11101 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 11102 | |
11103 | #include <stdio.h> | ||||
11104 | #include <pthread.h> | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11105 | void *foo(void *parm) { |
11106 | return NULL; | ||||
11107 | } | ||||
11108 | main() { | ||||
11109 | pthread_attr_t attr; | ||||
11110 | pthread_t id; | ||||
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 11111 | if (pthread_attr_init(&attr)) return (-1); |
11112 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1); | ||||
11113 | if (pthread_create(&id, &attr, foo, NULL)) return (-1); | ||||
11114 | return (0); | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11115 | } |
11116 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11117 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11118 | ac_cv_pthread_system_supported=yes |
11119 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11120 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11121 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11122 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
11123 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11124 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11125 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11126 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11127 | fi |
11128 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
11130 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11131 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
11132 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11133 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11134 | |
11135 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11136 | for ac_func in pthread_sigmask |
11137 | do : | ||||
11138 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11139 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11140 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11141 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11142 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 11143 | case $ac_sys_system in |
11144 | CYGWIN*) | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11145 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11146 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 11147 | |
11148 | ;; | ||||
11149 | esac | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11150 | fi |
11151 | done | ||||
11152 | |||||
pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 11153 | for ac_func in pthread_getcpuclockid |
11154 | do : | ||||
11155 | ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" | ||||
11156 | if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then : | ||||
11157 | cat >>confdefs.h <<_ACEOF | ||||
11158 | #define HAVE_PTHREAD_GETCPUCLOCKID 1 | ||||
11159 | _ACEOF | ||||
11160 | |||||
11161 | fi | ||||
11162 | done | ||||
11163 | |||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11164 | fi |
11165 | |||||
11166 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11167 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11168 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
11170 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11171 | # Check whether --enable-ipv6 was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11172 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11173 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11174 | no) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11176 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11177 | ipv6=no |
11178 | ;; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11179 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11180 | $as_echo "yes" >&6; } | ||||
11181 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11182 | |
11183 | ipv6=yes | ||||
11184 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11189 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11190 | /* AF_INET6 available check */ |
11191 | #include <sys/types.h> | ||||
11192 | #include <sys/socket.h> | ||||
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 11193 | int |
11194 | main () | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11195 | { |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 11196 | int domain = AF_INET6; |
11197 | ; | ||||
11198 | return 0; | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11199 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11200 | _ACEOF |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 11201 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11202 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11204 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11205 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11206 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11207 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11208 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11210 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11211 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11212 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11213 | fi |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 11214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11215 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11216 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
11218 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | ||||
11219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11220 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11221 | |
11222 | #include <sys/types.h> | ||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11223 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11224 | int |
11225 | main () | ||||
11226 | { | ||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11227 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11228 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11229 | ; |
11230 | return 0; | ||||
11231 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11234 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11235 | |
11236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11237 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11238 | ipv6=yes |
11239 | |||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11240 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11241 | |
11242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11243 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11244 | ipv6=no |
11245 | |||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11246 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11247 | 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] | 11248 | fi |
11249 | |||||
11250 | if test "$ipv6" = "yes"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11251 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11252 | |
11253 | fi | ||||
11254 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11255 | fi |
11256 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11257 | |
11258 | ipv6type=unknown | ||||
11259 | ipv6lib=none | ||||
11260 | ipv6trylibc=no | ||||
11261 | |||||
11262 | if test "$ipv6" = "yes"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
11264 | $as_echo_n "checking ipv6 stack type... " >&6; } | ||||
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11265 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
11266 | do | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11267 | case $i in |
11268 | inria) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11270 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11271 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11272 | #include <netinet/in.h> |
11273 | #ifdef IPV6_INRIA_VERSION | ||||
11274 | yes | ||||
11275 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11276 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11277 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11278 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11279 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11280 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 11281 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11282 | |
11283 | ;; | ||||
11284 | kame) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11286 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11287 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11288 | #include <netinet/in.h> |
11289 | #ifdef __KAME__ | ||||
11290 | yes | ||||
11291 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11292 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11294 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11295 | ipv6type=$i; |
11296 | ipv6lib=inet6 | ||||
11297 | ipv6libdir=/usr/local/v6/lib | ||||
11298 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11299 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 11300 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11301 | |
11302 | ;; | ||||
11303 | linux-glibc) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11305 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11306 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11307 | #include <features.h> |
11308 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | ||||
11309 | yes | ||||
11310 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11311 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11312 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11313 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11314 | ipv6type=$i; |
11315 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11316 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 11317 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11318 | |
11319 | ;; | ||||
11320 | linux-inet6) | ||||
11321 | if test -d /usr/inet6; then | ||||
11322 | ipv6type=$i | ||||
11323 | ipv6lib=inet6 | ||||
11324 | ipv6libdir=/usr/inet6/lib | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11325 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11326 | fi |
11327 | ;; | ||||
11328 | solaris) | ||||
11329 | if test -f /etc/netconfig; then | ||||
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 11330 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11331 | ipv6type=$i |
11332 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11333 | fi |
11334 | fi | ||||
11335 | ;; | ||||
11336 | toshiba) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11338 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11339 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11340 | #include <sys/param.h> |
11341 | #ifdef _TOSHIBA_INET6 | ||||
11342 | yes | ||||
11343 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11345 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11346 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11347 | ipv6type=$i; |
11348 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11349 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11350 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 11351 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11352 | |
11353 | ;; | ||||
11354 | v6d) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11356 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11357 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11358 | #include </usr/local/v6/include/sys/v6config.h> |
11359 | #ifdef __V6D__ | ||||
11360 | yes | ||||
11361 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11362 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11363 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11364 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11365 | ipv6type=$i; |
11366 | ipv6lib=v6; | ||||
11367 | ipv6libdir=/usr/local/v6/lib; | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11368 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11369 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 11370 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11371 | |
11372 | ;; | ||||
11373 | zeta) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11375 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11376 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11377 | #include <sys/param.h> |
11378 | #ifdef _ZETA_MINAMI_INET6 | ||||
11379 | yes | ||||
11380 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11381 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11382 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11383 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11384 | ipv6type=$i; |
11385 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11386 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11387 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 11388 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11389 | |
11390 | ;; | ||||
11391 | esac | ||||
11392 | if test "$ipv6type" != "unknown"; then | ||||
11393 | break | ||||
11394 | fi | ||||
11395 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
11397 | $as_echo "$ipv6type" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11398 | fi |
11399 | |||||
11400 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | ||||
11401 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | ||||
11402 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | ||||
11403 | echo "using lib$ipv6lib" | ||||
11404 | else | ||||
11405 | if test $ipv6trylibc = "yes"; then | ||||
11406 | echo "using libc" | ||||
11407 | else | ||||
11408 | echo 'Fatal: no $ipv6lib library found. cannot continue.' | ||||
11409 | echo "You need to fetch lib$ipv6lib.a from appropriate" | ||||
11410 | echo 'ipv6 kit and compile beforehand.' | ||||
11411 | exit 1 | ||||
11412 | fi | ||||
11413 | fi | ||||
11414 | fi | ||||
11415 | |||||
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
11417 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | ||||
11418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11419 | /* end confdefs.h. */ | ||||
11420 | /* CAN_RAW_FD_FRAMES available check */ | ||||
11421 | #include <linux/can/raw.h> | ||||
11422 | int | ||||
11423 | main () | ||||
11424 | { | ||||
11425 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | ||||
11426 | ; | ||||
11427 | return 0; | ||||
11428 | } | ||||
11429 | _ACEOF | ||||
11430 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11431 | |||||
11432 | |||||
11433 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | ||||
11434 | |||||
11435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11436 | $as_echo "yes" >&6; } | ||||
11437 | |||||
11438 | else | ||||
11439 | |||||
11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11441 | $as_echo "no" >&6; } | ||||
11442 | |||||
11443 | fi | ||||
11444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
11445 | |||||
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 11446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5 |
11447 | $as_echo_n "checking for CAN_RAW_JOIN_FILTERS... " >&6; } | ||||
11448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11449 | /* end confdefs.h. */ | ||||
11450 | |||||
11451 | #include <linux/can/raw.h> | ||||
11452 | int | ||||
11453 | main () | ||||
11454 | { | ||||
11455 | int can_raw_join_filters = CAN_RAW_JOIN_FILTERS; | ||||
11456 | ; | ||||
11457 | return 0; | ||||
11458 | } | ||||
11459 | _ACEOF | ||||
11460 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11461 | |||||
11462 | |||||
11463 | $as_echo "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h | ||||
11464 | |||||
11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11466 | $as_echo "yes" >&6; } | ||||
11467 | |||||
11468 | else | ||||
11469 | |||||
11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11471 | $as_echo "no" >&6; } | ||||
11472 | |||||
11473 | fi | ||||
11474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
11475 | |||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11476 | # Check for --with-doc-strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
11478 | $as_echo_n "checking for --with-doc-strings... " >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11479 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11480 | # Check whether --with-doc-strings was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11481 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11482 | withval=$with_doc_strings; |
11483 | fi | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11484 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11485 | |
11486 | if test -z "$with_doc_strings" | ||||
11487 | then with_doc_strings="yes" | ||||
11488 | fi | ||||
11489 | if test "$with_doc_strings" != "no" | ||||
11490 | then | ||||
11491 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11492 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11493 | |
11494 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
11496 | $as_echo "$with_doc_strings" >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11497 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11498 | # Check for Python-specific malloc support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
11500 | $as_echo_n "checking for --with-pymalloc... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11501 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11502 | # Check whether --with-pymalloc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11503 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11504 | withval=$with_pymalloc; |
11505 | fi | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11506 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11507 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11508 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 11509 | then |
11510 | with_pymalloc="yes" | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11511 | fi |
11512 | if test "$with_pymalloc" != "no" | ||||
11513 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11514 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11515 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11516 | |
11517 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
11519 | $as_echo "$with_pymalloc" >&6; } | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11520 | |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 11521 | # Check for --with-c-locale-coercion |
11522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 | ||||
11523 | $as_echo_n "checking for --with-c-locale-coercion... " >&6; } | ||||
11524 | |||||
11525 | # Check whether --with-c-locale-coercion was given. | ||||
11526 | if test "${with_c_locale_coercion+set}" = set; then : | ||||
11527 | withval=$with_c_locale_coercion; | ||||
11528 | fi | ||||
11529 | |||||
11530 | |||||
11531 | if test -z "$with_c_locale_coercion" | ||||
11532 | then | ||||
11533 | with_c_locale_coercion="yes" | ||||
11534 | fi | ||||
11535 | if test "$with_c_locale_coercion" != "no" | ||||
11536 | then | ||||
11537 | |||||
11538 | $as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h | ||||
11539 | |||||
11540 | fi | ||||
11541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 | ||||
11542 | $as_echo "$with_c_locale_coercion" >&6; } | ||||
11543 | |||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11544 | # Check for Valgrind support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
11546 | $as_echo_n "checking for --with-valgrind... " >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11547 | |
11548 | # Check whether --with-valgrind was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11549 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11550 | withval=$with_valgrind; |
11551 | else | ||||
11552 | with_valgrind=no | ||||
11553 | fi | ||||
11554 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
11556 | $as_echo "$with_valgrind" >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11557 | if test "$with_valgrind" != no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11558 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11559 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11560 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11561 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11562 | |
11563 | else | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11564 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11565 | |
11566 | fi | ||||
11567 | |||||
11568 | |||||
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11569 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11570 | fi |
11571 | |||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11572 | # Check for DTrace support |
11573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 | ||||
11574 | $as_echo_n "checking for --with-dtrace... " >&6; } | ||||
11575 | |||||
11576 | # Check whether --with-dtrace was given. | ||||
11577 | if test "${with_dtrace+set}" = set; then : | ||||
11578 | withval=$with_dtrace; | ||||
11579 | else | ||||
11580 | with_dtrace=no | ||||
11581 | fi | ||||
11582 | |||||
11583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 | ||||
11584 | $as_echo "$with_dtrace" >&6; } | ||||
11585 | |||||
11586 | |||||
11587 | |||||
11588 | |||||
11589 | |||||
11590 | DTRACE= | ||||
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11591 | DTRACE_HEADERS= |
11592 | DTRACE_OBJS= | ||||
11593 | |||||
11594 | if test "$with_dtrace" = "yes" | ||||
11595 | then | ||||
11596 | # Extract the first word of "dtrace", so it can be a program name with args. | ||||
11597 | set dummy dtrace; ac_word=$2 | ||||
11598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
11599 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
11600 | if ${ac_cv_path_DTRACE+:} false; then : | ||||
11601 | $as_echo_n "(cached) " >&6 | ||||
11602 | else | ||||
11603 | case $DTRACE in | ||||
11604 | [\\/]* | ?:[\\/]*) | ||||
11605 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. | ||||
11606 | ;; | ||||
11607 | *) | ||||
11608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
11609 | for as_dir in $PATH | ||||
11610 | do | ||||
11611 | IFS=$as_save_IFS | ||||
11612 | test -z "$as_dir" && as_dir=. | ||||
11613 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
11614 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
11615 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" | ||||
11616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
11617 | break 2 | ||||
11618 | fi | ||||
11619 | done | ||||
11620 | done | ||||
11621 | IFS=$as_save_IFS | ||||
11622 | |||||
11623 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" | ||||
11624 | ;; | ||||
11625 | esac | ||||
11626 | fi | ||||
11627 | DTRACE=$ac_cv_path_DTRACE | ||||
11628 | if test -n "$DTRACE"; then | ||||
11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 | ||||
11630 | $as_echo "$DTRACE" >&6; } | ||||
11631 | else | ||||
11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11633 | $as_echo "no" >&6; } | ||||
11634 | fi | ||||
11635 | |||||
11636 | |||||
11637 | if test "$DTRACE" = "not found"; then | ||||
11638 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 | ||||
11639 | fi | ||||
11640 | |||||
11641 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h | ||||
11642 | |||||
11643 | DTRACE_HEADERS="Include/pydtrace_probes.h" | ||||
11644 | |||||
11645 | # On OS X, DTrace providers do not need to be explicitly compiled and | ||||
11646 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF | ||||
11647 | # generation flag '-G'. We check for presence of this flag, rather than | ||||
11648 | # hardcoding support by OS, in the interest of robustness. | ||||
11649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 | ||||
11650 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } | ||||
11651 | if ${ac_cv_dtrace_link+:} false; then : | ||||
11652 | $as_echo_n "(cached) " >&6 | ||||
11653 | else | ||||
11654 | ac_cv_dtrace_link=no | ||||
Jakub Kulík | 5c8f537 | 2019-01-24 18:29:48 +0100 | [diff] [blame] | 11655 | echo 'BEGIN{}' > conftest.d |
Petr Viktorin | 3c97e1e | 2020-03-11 14:27:42 +0100 | [diff] [blame] | 11656 | "$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] | 11657 | ac_cv_dtrace_link=yes |
11658 | |||||
11659 | fi | ||||
11660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 | ||||
11661 | $as_echo "$ac_cv_dtrace_link" >&6; } | ||||
11662 | if test "$ac_cv_dtrace_link" = "yes"; then | ||||
11663 | DTRACE_OBJS="Python/pydtrace.o" | ||||
11664 | fi | ||||
11665 | fi | ||||
11666 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11667 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11668 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11669 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11670 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11671 | # 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] | 11672 | # platforms have dlopen(), but don't want to use it. |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11673 | for ac_func in dlopen |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11674 | do : |
11675 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11676 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11677 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11678 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11679 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11680 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11681 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11682 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11683 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11684 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11685 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
11686 | # loading of modules. | ||||
11687 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
11689 | $as_echo_n "checking DYNLOADFILE... " >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11690 | if test -z "$DYNLOADFILE" |
11691 | then | ||||
11692 | case $ac_sys_system/$ac_sys_release in | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11693 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11694 | *) |
11695 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | ||||
11696 | # out any dynamic loading | ||||
11697 | if test "$ac_cv_func_dlopen" = yes | ||||
11698 | then DYNLOADFILE="dynload_shlib.o" | ||||
11699 | else DYNLOADFILE="dynload_stub.o" | ||||
11700 | fi | ||||
11701 | ;; | ||||
11702 | esac | ||||
11703 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
11705 | $as_echo "$DYNLOADFILE" >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11706 | if test "$DYNLOADFILE" != "dynload_stub.o" |
11707 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11708 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11709 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11710 | |
11711 | fi | ||||
11712 | |||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11713 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
11714 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11715 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
11717 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11718 | if test -z "$MACHDEP_OBJS" |
11719 | then | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11720 | MACHDEP_OBJS=$extra_machdep_objs |
11721 | else | ||||
11722 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11723 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11724 | if test -z "$MACHDEP_OBJS"; then |
11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||||
11726 | $as_echo "none" >&6; } | ||||
11727 | else | ||||
11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | ||||
11729 | $as_echo "$MACHDEP_OBJS" >&6; } | ||||
11730 | fi | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11731 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11732 | # checks for library functions |
Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11733 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
Kyle Evans | 1800c60 | 2020-10-11 15:18:53 -0500 | [diff] [blame] | 11734 | clock confstr close_range copy_file_range ctermid dup3 execv explicit_bzero \ |
11735 | explicit_memset faccessat fchmod fchmodat fchown fchownat \ | ||||
Jakub Kulík | e20134f | 2019-09-11 17:11:57 +0200 | [diff] [blame] | 11736 | fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ |
Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11737 | futimens futimes gai_strerror getentropy \ |
William Grzybowski | 23e65b2 | 2018-09-07 09:06:15 -0300 | [diff] [blame] | 11738 | getgrgid_r getgrnam_r \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11739 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ |
William Grzybowski | 23e65b2 | 2018-09-07 09:06:15 -0300 | [diff] [blame] | 11740 | getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \ |
xdegaye | 5ad7ef8 | 2017-11-23 11:13:22 +0100 | [diff] [blame] | 11741 | if_nameindex \ |
Benjamin Peterson | bed04b6 | 2019-09-09 05:13:00 -0700 | [diff] [blame] | 11742 | initgroups kill killpg lchown lockf linkat lstat lutimes mmap \ |
Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11743 | memrchr mbrtowc mkdirat mkfifo \ |
Inada Naoki | bee31ce | 2019-05-30 16:35:41 +0900 | [diff] [blame] | 11744 | madvise mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ |
Joannah Nanjekye | 92b8322 | 2019-01-16 16:29:26 +0300 | [diff] [blame] | 11745 | posix_fallocate posix_fadvise posix_spawn posix_spawnp pread preadv preadv2 \ |
Victor Stinner | b8d1262 | 2020-01-24 14:05:48 +0100 | [diff] [blame] | 11746 | pthread_condattr_setclock pthread_init pthread_kill pwrite pwritev pwritev2 \ |
Inada Naoki | 001fee1 | 2019-02-20 10:00:09 +0900 | [diff] [blame] | 11747 | readlink readlinkat readv realpath renameat \ |
Victor Stinner | b8d1262 | 2020-01-24 14:05:48 +0100 | [diff] [blame] | 11748 | sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ |
Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11749 | setgid sethostname \ |
Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11750 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ |
Charles-François Natali | ea0d5fc | 2011-09-06 19:03:35 +0200 | [diff] [blame] | 11751 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ |
11752 | sched_rr_get_interval \ | ||||
Antoine Pitrou | 9d3627e | 2018-05-04 13:00:50 +0200 | [diff] [blame] | 11753 | sigaction sigaltstack sigfillset siginterrupt sigpending sigrelse \ |
Pablo Galindo | a57b3d3 | 2020-11-17 00:00:38 +0000 | [diff] [blame] | 11754 | sigtimedwait sigwait sigwaitinfo snprintf splice strftime strlcpy strsignal symlinkat sync \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11755 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Alexey Izbyshev | 976da90 | 2020-10-24 03:47:01 +0300 | [diff] [blame] | 11756 | truncate uname unlinkat utimensat utimes vfork waitid waitpid wait3 wait4 \ |
pxinwr | f2d7ac7 | 2019-05-21 18:46:37 +0800 | [diff] [blame] | 11757 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty rtpSpawn |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11758 | do : |
11759 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
11760 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11761 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11762 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11763 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11764 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11765 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11766 | fi |
11767 | done | ||||
11768 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11769 | |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11770 | # Force lchmod off for Linux. Linux disallows changing the mode of symbolic |
11771 | # links. Some libc implementations have a stub lchmod implementation that always | ||||
11772 | # returns an error. | ||||
11773 | if test "$MACHDEP" != linux; then | ||||
Benjamin Peterson | ed709d5 | 2018-09-12 17:22:11 -0700 | [diff] [blame] | 11774 | for ac_func in lchmod |
11775 | do : | ||||
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11776 | ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" |
11777 | if test "x$ac_cv_func_lchmod" = xyes; then : | ||||
Benjamin Peterson | ed709d5 | 2018-09-12 17:22:11 -0700 | [diff] [blame] | 11778 | cat >>confdefs.h <<_ACEOF |
11779 | #define HAVE_LCHMOD 1 | ||||
11780 | _ACEOF | ||||
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11781 | |
11782 | fi | ||||
Benjamin Peterson | ed709d5 | 2018-09-12 17:22:11 -0700 | [diff] [blame] | 11783 | done |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 11784 | |
11785 | fi | ||||
11786 | |||||
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11787 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> |
11788 | #include <dirent.h> | ||||
11789 | " | ||||
11790 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | ||||
11791 | |||||
11792 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | ||||
11793 | |||||
11794 | fi | ||||
11795 | |||||
11796 | |||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11797 | # For some functions, having a definition is not sufficient, since |
11798 | # we want to take their address. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
11800 | $as_echo_n "checking for chroot... " >&6; } | ||||
11801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11802 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11803 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11804 | int |
11805 | main () | ||||
11806 | { | ||||
11807 | void *x=chroot | ||||
11808 | ; | ||||
11809 | return 0; | ||||
11810 | } | ||||
11811 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11812 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11813 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11814 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11815 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11817 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11818 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11820 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11821 | |
11822 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
11825 | $as_echo_n "checking for link... " >&6; } | ||||
11826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11827 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11828 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11829 | int |
11830 | main () | ||||
11831 | { | ||||
11832 | void *x=link | ||||
11833 | ; | ||||
11834 | return 0; | ||||
11835 | } | ||||
11836 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11837 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11838 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11839 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11840 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11842 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11843 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11845 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11846 | |
11847 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
11850 | $as_echo_n "checking for symlink... " >&6; } | ||||
11851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11852 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11853 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11854 | int |
11855 | main () | ||||
11856 | { | ||||
11857 | void *x=symlink | ||||
11858 | ; | ||||
11859 | return 0; | ||||
11860 | } | ||||
11861 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11862 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11863 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11864 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11865 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11867 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11868 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11870 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11871 | |
11872 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
11875 | $as_echo_n "checking for fchdir... " >&6; } | ||||
11876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11877 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11878 | #include <unistd.h> |
11879 | int | ||||
11880 | main () | ||||
11881 | { | ||||
11882 | void *x=fchdir | ||||
11883 | ; | ||||
11884 | return 0; | ||||
11885 | } | ||||
11886 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11887 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11888 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11889 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11890 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11892 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11893 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11895 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11896 | |
11897 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
11900 | $as_echo_n "checking for fsync... " >&6; } | ||||
11901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11902 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11903 | #include <unistd.h> |
11904 | int | ||||
11905 | main () | ||||
11906 | { | ||||
11907 | void *x=fsync | ||||
11908 | ; | ||||
11909 | return 0; | ||||
11910 | } | ||||
11911 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11912 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11913 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11914 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11915 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11917 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11918 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11920 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11921 | |
11922 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
11925 | $as_echo_n "checking for fdatasync... " >&6; } | ||||
11926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11927 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11928 | #include <unistd.h> |
11929 | int | ||||
11930 | main () | ||||
11931 | { | ||||
11932 | void *x=fdatasync | ||||
11933 | ; | ||||
11934 | return 0; | ||||
11935 | } | ||||
11936 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11937 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11938 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11939 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11940 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11942 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11943 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11945 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11946 | |
11947 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
11950 | $as_echo_n "checking for epoll... " >&6; } | ||||
11951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11952 | /* end confdefs.h. */ |
11953 | #include <sys/epoll.h> | ||||
11954 | int | ||||
11955 | main () | ||||
11956 | { | ||||
11957 | void *x=epoll_create | ||||
11958 | ; | ||||
11959 | return 0; | ||||
11960 | } | ||||
11961 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11962 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11963 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11964 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11965 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11967 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11968 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11970 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11971 | |
11972 | fi | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 |
11975 | $as_echo_n "checking for epoll_create1... " >&6; } | ||||
11976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11977 | /* end confdefs.h. */ | ||||
11978 | #include <sys/epoll.h> | ||||
11979 | int | ||||
11980 | main () | ||||
11981 | { | ||||
11982 | void *x=epoll_create1 | ||||
11983 | ; | ||||
11984 | return 0; | ||||
11985 | } | ||||
11986 | _ACEOF | ||||
11987 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11988 | |||||
11989 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | ||||
11990 | |||||
11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11992 | $as_echo "yes" >&6; } | ||||
11993 | else | ||||
11994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11995 | $as_echo "no" >&6; } | ||||
11996 | |||||
11997 | fi | ||||
11998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
12000 | $as_echo_n "checking for kqueue... " >&6; } | ||||
12001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12002 | /* end confdefs.h. */ |
12003 | |||||
12004 | #include <sys/types.h> | ||||
12005 | #include <sys/event.h> | ||||
12006 | |||||
12007 | int | ||||
12008 | main () | ||||
12009 | { | ||||
12010 | int x=kqueue() | ||||
12011 | ; | ||||
12012 | return 0; | ||||
12013 | } | ||||
12014 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12015 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12016 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12017 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12018 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12020 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12021 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12023 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12024 | |
12025 | fi | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 12026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 |
12028 | $as_echo_n "checking for prlimit... " >&6; } | ||||
12029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12030 | /* end confdefs.h. */ | ||||
12031 | |||||
12032 | #include <sys/time.h> | ||||
12033 | #include <sys/resource.h> | ||||
12034 | |||||
12035 | int | ||||
12036 | main () | ||||
12037 | { | ||||
12038 | void *x=prlimit | ||||
12039 | ; | ||||
12040 | return 0; | ||||
12041 | } | ||||
12042 | _ACEOF | ||||
12043 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
12044 | |||||
12045 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | ||||
12046 | |||||
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
12048 | $as_echo "yes" >&6; } | ||||
12049 | else | ||||
12050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12051 | $as_echo "no" >&6; } | ||||
12052 | |||||
12053 | fi | ||||
12054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 12055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5 |
12056 | $as_echo_n "checking for _dyld_shared_cache_contains_path... " >&6; } | ||||
12057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12058 | /* end confdefs.h. */ | ||||
12059 | #include <mach-o/dyld.h> | ||||
12060 | int | ||||
12061 | main () | ||||
12062 | { | ||||
12063 | void *x=_dyld_shared_cache_contains_path | ||||
12064 | ; | ||||
12065 | return 0; | ||||
12066 | } | ||||
12067 | _ACEOF | ||||
12068 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
12069 | |||||
12070 | $as_echo "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h | ||||
12071 | |||||
12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
12073 | $as_echo "yes" >&6; } | ||||
12074 | else | ||||
12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12076 | $as_echo "no" >&6; } | ||||
12077 | |||||
12078 | fi | ||||
12079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 12080 | |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 12081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
12082 | $as_echo_n "checking for memfd_create... " >&6; } | ||||
12083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12084 | /* end confdefs.h. */ | ||||
12085 | |||||
12086 | #ifdef HAVE_SYS_MMAN_H | ||||
12087 | #include <sys/mman.h> | ||||
12088 | #endif | ||||
12089 | #ifdef HAVE_SYS_MEMFD_H | ||||
12090 | #include <sys/memfd.h> | ||||
12091 | #endif | ||||
12092 | |||||
12093 | int | ||||
12094 | main () | ||||
12095 | { | ||||
12096 | void *x=memfd_create | ||||
12097 | ; | ||||
12098 | return 0; | ||||
12099 | } | ||||
12100 | _ACEOF | ||||
12101 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
12102 | |||||
12103 | $as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h | ||||
12104 | |||||
12105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
12106 | $as_echo "yes" >&6; } | ||||
12107 | else | ||||
12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12109 | $as_echo "no" >&6; } | ||||
12110 | |||||
12111 | fi | ||||
12112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
12113 | |||||
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
12115 | $as_echo_n "checking for eventfd... " >&6; } | ||||
12116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12117 | /* end confdefs.h. */ | ||||
12118 | |||||
12119 | #ifdef HAVE_SYS_EVENTFD_H | ||||
12120 | #include <sys/eventfd.h> | ||||
12121 | #endif | ||||
12122 | |||||
12123 | int | ||||
12124 | main () | ||||
12125 | { | ||||
12126 | int x = eventfd(0, EFD_CLOEXEC) | ||||
12127 | ; | ||||
12128 | return 0; | ||||
12129 | } | ||||
12130 | _ACEOF | ||||
12131 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
12132 | |||||
12133 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h | ||||
12134 | |||||
12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
12136 | $as_echo "yes" >&6; } | ||||
12137 | else | ||||
12138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12139 | $as_echo "no" >&6; } | ||||
12140 | |||||
12141 | fi | ||||
12142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
12143 | |||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12144 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
12145 | # functions ctermid_r, setgroups in the library, but no prototype | ||||
12146 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | ||||
12147 | # address to avoid compiler warnings and potential miscompilations | ||||
12148 | # because of the missing prototypes. | ||||
12149 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
12151 | $as_echo_n "checking for ctermid_r... " >&6; } | ||||
12152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12153 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12154 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12155 | #include <stdio.h> |
12156 | |||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12157 | int |
12158 | main () | ||||
12159 | { | ||||
12160 | void* p = ctermid_r | ||||
12161 | ; | ||||
12162 | return 0; | ||||
12163 | } | ||||
12164 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12165 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12166 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12167 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12168 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12170 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12171 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12173 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12174 | |
12175 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12177 | |||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
12179 | $as_echo_n "checking for flock declaration... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12180 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12181 | $as_echo_n "(cached) " >&6 |
12182 | else | ||||
12183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12184 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12185 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12186 | int |
12187 | main () | ||||
12188 | { | ||||
12189 | void* p = flock | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12190 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12191 | ; |
12192 | return 0; | ||||
12193 | } | ||||
12194 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12195 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12196 | ac_cv_flock_decl=yes |
12197 | else | ||||
12198 | ac_cv_flock_decl=no | ||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12199 | |
12200 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12202 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12203 | fi |
12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | ||||
12205 | $as_echo "$ac_cv_flock_decl" >&6; } | ||||
12206 | if test "x${ac_cv_flock_decl}" = xyes; then | ||||
12207 | for ac_func in flock | ||||
12208 | do : | ||||
12209 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12210 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12211 | cat >>confdefs.h <<_ACEOF |
12212 | #define HAVE_FLOCK 1 | ||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12213 | _ACEOF |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12214 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12215 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12217 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12218 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12219 | $as_echo_n "(cached) " >&6 |
12220 | else | ||||
12221 | ac_check_lib_save_LIBS=$LIBS | ||||
12222 | LIBS="-lbsd $LIBS" | ||||
12223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12224 | /* end confdefs.h. */ | ||||
12225 | |||||
12226 | /* Override any GCC internal prototype to avoid an error. | ||||
12227 | Use char because int might match the return type of a GCC | ||||
12228 | builtin and then its argument prototype would still apply. */ | ||||
12229 | #ifdef __cplusplus | ||||
12230 | extern "C" | ||||
12231 | #endif | ||||
12232 | char flock (); | ||||
12233 | int | ||||
12234 | main () | ||||
12235 | { | ||||
12236 | return flock (); | ||||
12237 | ; | ||||
12238 | return 0; | ||||
12239 | } | ||||
12240 | _ACEOF | ||||
12241 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12242 | ac_cv_lib_bsd_flock=yes | ||||
12243 | else | ||||
12244 | ac_cv_lib_bsd_flock=no | ||||
12245 | fi | ||||
12246 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12247 | conftest$ac_exeext conftest.$ac_ext | ||||
12248 | LIBS=$ac_check_lib_save_LIBS | ||||
12249 | fi | ||||
12250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | ||||
12251 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12252 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12253 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12254 | |
12255 | |||||
12256 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | ||||
12257 | |||||
12258 | |||||
12259 | fi | ||||
12260 | |||||
12261 | |||||
12262 | fi | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 12263 | done |
12264 | |||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 12265 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12266 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
12268 | $as_echo_n "checking for getpagesize... " >&6; } | ||||
12269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12270 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12271 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12272 | #include <unistd.h> |
12273 | |||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12274 | int |
12275 | main () | ||||
12276 | { | ||||
12277 | void* p = getpagesize | ||||
12278 | ; | ||||
12279 | return 0; | ||||
12280 | } | ||||
12281 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12282 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12283 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12284 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12285 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12287 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12288 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12290 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12291 | |
12292 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12293 | 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] | 12294 | |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
12296 | $as_echo_n "checking for broken unsetenv... " >&6; } | ||||
12297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12298 | /* end confdefs.h. */ | ||||
12299 | |||||
12300 | #include <stdlib.h> | ||||
12301 | |||||
12302 | int | ||||
12303 | main () | ||||
12304 | { | ||||
12305 | int res = unsetenv("DUMMY") | ||||
12306 | ; | ||||
12307 | return 0; | ||||
12308 | } | ||||
12309 | _ACEOF | ||||
12310 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
12312 | $as_echo "no" >&6; } | ||||
12313 | else | ||||
12314 | |||||
12315 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | ||||
12316 | |||||
12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
12318 | $as_echo "yes" >&6; } | ||||
12319 | |||||
12320 | fi | ||||
12321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
12322 | |||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12323 | for ac_prog in true |
12324 | do | ||||
12325 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
12326 | set dummy $ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12328 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12329 | if ${ac_cv_prog_TRUE+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12330 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12331 | else |
12332 | if test -n "$TRUE"; then | ||||
12333 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | ||||
12334 | else | ||||
12335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
12336 | for as_dir in $PATH | ||||
12337 | do | ||||
12338 | IFS=$as_save_IFS | ||||
12339 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12340 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12341 | 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] | 12342 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12343 | $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] | 12344 | break 2 |
12345 | fi | ||||
12346 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12347 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12348 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12349 | |
12350 | fi | ||||
12351 | fi | ||||
12352 | TRUE=$ac_cv_prog_TRUE | ||||
12353 | if test -n "$TRUE"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
12355 | $as_echo "$TRUE" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12356 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12358 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12359 | fi |
12360 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12361 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12362 | test -n "$TRUE" && break |
12363 | done | ||||
12364 | test -n "$TRUE" || TRUE="/bin/true" | ||||
12365 | |||||
12366 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
12368 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12369 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12370 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12371 | else |
12372 | ac_check_lib_save_LIBS=$LIBS | ||||
12373 | LIBS="-lc $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12375 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12376 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12377 | /* Override any GCC internal prototype to avoid an error. |
12378 | Use char because int might match the return type of a GCC | ||||
12379 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12380 | #ifdef __cplusplus |
12381 | extern "C" | ||||
12382 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12383 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12384 | int |
12385 | main () | ||||
12386 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12387 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12388 | ; |
12389 | return 0; | ||||
12390 | } | ||||
12391 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12392 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12393 | ac_cv_lib_c_inet_aton=yes |
12394 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12395 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12396 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12397 | rm -f core conftest.err conftest.$ac_objext \ |
12398 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12399 | LIBS=$ac_check_lib_save_LIBS |
12400 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
12402 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12403 | 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] | 12404 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12405 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
12407 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12408 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12409 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12410 | else |
12411 | ac_check_lib_save_LIBS=$LIBS | ||||
12412 | LIBS="-lresolv $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12414 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12415 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12416 | /* Override any GCC internal prototype to avoid an error. |
12417 | Use char because int might match the return type of a GCC | ||||
12418 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12419 | #ifdef __cplusplus |
12420 | extern "C" | ||||
12421 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12422 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12423 | int |
12424 | main () | ||||
12425 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12426 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12427 | ; |
12428 | return 0; | ||||
12429 | } | ||||
12430 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12431 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12432 | ac_cv_lib_resolv_inet_aton=yes |
12433 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12434 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12435 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12436 | rm -f core conftest.err conftest.$ac_objext \ |
12437 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12438 | LIBS=$ac_check_lib_save_LIBS |
12439 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
12441 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12442 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12443 | cat >>confdefs.h <<_ACEOF |
12444 | #define HAVE_LIBRESOLV 1 | ||||
12445 | _ACEOF | ||||
12446 | |||||
12447 | LIBS="-lresolv $LIBS" | ||||
12448 | |||||
12449 | fi | ||||
12450 | |||||
12451 | |||||
12452 | fi | ||||
12453 | |||||
12454 | |||||
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12455 | # On Tru64, chflags seems to be present, but calling it will |
12456 | # exit Python | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
12458 | $as_echo_n "checking for chflags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12459 | if ${ac_cv_have_chflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12460 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12461 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12462 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12463 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12464 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12466 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12467 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12468 | #include <sys/stat.h> |
12469 | #include <unistd.h> | ||||
12470 | int main(int argc, char*argv[]) | ||||
12471 | { | ||||
12472 | if(chflags(argv[0], 0) != 0) | ||||
12473 | return 1; | ||||
12474 | return 0; | ||||
12475 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12476 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12477 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12478 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12479 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12480 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12481 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12482 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12483 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12484 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 12485 | fi |
12486 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12487 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12488 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
12490 | $as_echo "$ac_cv_have_chflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12491 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12492 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12493 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12494 | ac_cv_have_chflags="yes" |
12495 | else | ||||
12496 | ac_cv_have_chflags="no" | ||||
12497 | fi | ||||
12498 | |||||
12499 | fi | ||||
12500 | if test "$ac_cv_have_chflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12501 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12502 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12503 | |
12504 | fi | ||||
12505 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
12507 | $as_echo_n "checking for lchflags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12508 | if ${ac_cv_have_lchflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12509 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12510 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12511 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12512 | ac_cv_have_lchflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12513 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12515 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12516 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12517 | #include <sys/stat.h> |
12518 | #include <unistd.h> | ||||
12519 | int main(int argc, char*argv[]) | ||||
12520 | { | ||||
12521 | if(lchflags(argv[0], 0) != 0) | ||||
12522 | return 1; | ||||
12523 | return 0; | ||||
12524 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 12525 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12526 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12527 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12528 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12529 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12530 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 12531 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12532 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12533 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12534 | fi |
12535 | |||||
12536 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12537 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
12539 | $as_echo "$ac_cv_have_lchflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12540 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12541 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12542 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 12543 | ac_cv_have_lchflags="yes" |
12544 | else | ||||
12545 | ac_cv_have_lchflags="no" | ||||
12546 | fi | ||||
12547 | |||||
12548 | fi | ||||
12549 | if test "$ac_cv_have_lchflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12550 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12551 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12552 | |
12553 | fi | ||||
12554 | |||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12555 | case $ac_sys_system/$ac_sys_release in |
12556 | Darwin/*) | ||||
12557 | _CUR_CFLAGS="${CFLAGS}" | ||||
12558 | _CUR_LDFLAGS="${LDFLAGS}" | ||||
12559 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | ||||
12560 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | ||||
12561 | ;; | ||||
12562 | esac | ||||
12563 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
12565 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12566 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12567 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12568 | else |
12569 | ac_check_lib_save_LIBS=$LIBS | ||||
12570 | LIBS="-lz $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12572 | /* end confdefs.h. */ |
12573 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12574 | /* Override any GCC internal prototype to avoid an error. |
12575 | Use char because int might match the return type of a GCC | ||||
12576 | builtin and then its argument prototype would still apply. */ | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12577 | #ifdef __cplusplus |
12578 | extern "C" | ||||
12579 | #endif | ||||
12580 | char inflateCopy (); | ||||
12581 | int | ||||
12582 | main () | ||||
12583 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12584 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12585 | ; |
12586 | return 0; | ||||
12587 | } | ||||
12588 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12589 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12590 | ac_cv_lib_z_inflateCopy=yes |
12591 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12592 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12593 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12594 | rm -f core conftest.err conftest.$ac_objext \ |
12595 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12596 | LIBS=$ac_check_lib_save_LIBS |
12597 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
12599 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12600 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12601 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12602 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12603 | |
12604 | fi | ||||
12605 | |||||
12606 | |||||
12607 | case $ac_sys_system/$ac_sys_release in | ||||
12608 | Darwin/*) | ||||
12609 | CFLAGS="${_CUR_CFLAGS}" | ||||
12610 | LDFLAGS="${_CUR_LDFLAGS}" | ||||
12611 | ;; | ||||
12612 | esac | ||||
12613 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
12615 | $as_echo_n "checking for hstrerror... " >&6; } | ||||
12616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12617 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12618 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12619 | #include <netdb.h> |
12620 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12621 | int |
12622 | main () | ||||
12623 | { | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12624 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12625 | ; |
12626 | return 0; | ||||
12627 | } | ||||
12628 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12629 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12630 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12631 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12632 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12634 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12635 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12637 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12638 | |
12639 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12640 | rm -f core conftest.err conftest.$ac_objext \ |
12641 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12642 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
12644 | $as_echo_n "checking for inet_aton... " >&6; } | ||||
12645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12646 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12647 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12648 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12649 | #include <sys/socket.h> |
12650 | #include <netinet/in.h> | ||||
12651 | #include <arpa/inet.h> | ||||
12652 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12653 | int |
12654 | main () | ||||
12655 | { | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12656 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12657 | ; |
12658 | return 0; | ||||
12659 | } | ||||
12660 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12661 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12662 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12663 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12664 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12666 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12667 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12669 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12670 | |
12671 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12672 | rm -f core conftest.err conftest.$ac_objext \ |
12673 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12674 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
12676 | $as_echo_n "checking for inet_pton... " >&6; } | ||||
12677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12678 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12679 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12680 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12681 | #include <sys/socket.h> |
12682 | #include <netinet/in.h> | ||||
12683 | #include <arpa/inet.h> | ||||
12684 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12685 | int |
12686 | main () | ||||
12687 | { | ||||
12688 | void* p = inet_pton | ||||
12689 | ; | ||||
12690 | return 0; | ||||
12691 | } | ||||
12692 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12693 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12694 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12695 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12696 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12698 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12699 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12701 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12702 | |
12703 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12704 | 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] | 12705 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12706 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
12708 | $as_echo_n "checking for setgroups... " >&6; } | ||||
12709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12710 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12711 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12712 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12713 | #ifdef HAVE_GRP_H |
12714 | #include <grp.h> | ||||
12715 | #endif | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12716 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12717 | int |
12718 | main () | ||||
12719 | { | ||||
12720 | void* p = setgroups | ||||
12721 | ; | ||||
12722 | return 0; | ||||
12723 | } | ||||
12724 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12725 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12726 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12727 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12728 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12730 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12731 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12733 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12734 | |
12735 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12736 | 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] | 12737 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12738 | # check for openpty and forkpty |
12739 | |||||
12740 | for ac_func in openpty | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12741 | do : |
12742 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12743 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12744 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12745 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12746 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12747 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12748 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
12750 | $as_echo_n "checking for openpty in -lutil... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12751 | if ${ac_cv_lib_util_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12752 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12754 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12755 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12757 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12758 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12759 | /* Override any GCC internal prototype to avoid an error. |
12760 | Use char because int might match the return type of a GCC | ||||
12761 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12762 | #ifdef __cplusplus |
12763 | extern "C" | ||||
12764 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12765 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12766 | int |
12767 | main () | ||||
12768 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12769 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12770 | ; |
12771 | return 0; | ||||
12772 | } | ||||
12773 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12774 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12775 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12776 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12777 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12778 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12779 | rm -f core conftest.err conftest.$ac_objext \ |
12780 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12781 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12782 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
12784 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12785 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12786 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12787 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12788 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
12790 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12791 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12792 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12793 | else |
12794 | ac_check_lib_save_LIBS=$LIBS | ||||
12795 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12797 | /* end confdefs.h. */ |
12798 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12799 | /* Override any GCC internal prototype to avoid an error. |
12800 | Use char because int might match the return type of a GCC | ||||
12801 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12802 | #ifdef __cplusplus |
12803 | extern "C" | ||||
12804 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12805 | char openpty (); |
12806 | int | ||||
12807 | main () | ||||
12808 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12809 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12810 | ; |
12811 | return 0; | ||||
12812 | } | ||||
12813 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12814 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12815 | ac_cv_lib_bsd_openpty=yes |
12816 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12817 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12818 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12819 | rm -f core conftest.err conftest.$ac_objext \ |
12820 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12821 | LIBS=$ac_check_lib_save_LIBS |
12822 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
12824 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12825 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12826 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12827 | LIBS="$LIBS -lbsd" |
12828 | fi | ||||
12829 | |||||
12830 | |||||
12831 | fi | ||||
12832 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12833 | |
12834 | fi | ||||
12835 | done | ||||
12836 | |||||
12837 | for ac_func in forkpty | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12838 | do : |
12839 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12840 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12841 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12842 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12843 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12844 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12845 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
12847 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12848 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12849 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12851 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12852 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12854 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12855 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12856 | /* Override any GCC internal prototype to avoid an error. |
12857 | Use char because int might match the return type of a GCC | ||||
12858 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12859 | #ifdef __cplusplus |
12860 | extern "C" | ||||
12861 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12862 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12863 | int |
12864 | main () | ||||
12865 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12866 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12867 | ; |
12868 | return 0; | ||||
12869 | } | ||||
12870 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12871 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12872 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12873 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12874 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12875 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12876 | rm -f core conftest.err conftest.$ac_objext \ |
12877 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12878 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12879 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
12881 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12882 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12883 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12884 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12885 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
12887 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12888 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12889 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12890 | else |
12891 | ac_check_lib_save_LIBS=$LIBS | ||||
12892 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12894 | /* end confdefs.h. */ |
12895 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12896 | /* Override any GCC internal prototype to avoid an error. |
12897 | Use char because int might match the return type of a GCC | ||||
12898 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12899 | #ifdef __cplusplus |
12900 | extern "C" | ||||
12901 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12902 | char forkpty (); |
12903 | int | ||||
12904 | main () | ||||
12905 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12906 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12907 | ; |
12908 | return 0; | ||||
12909 | } | ||||
12910 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12911 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12912 | ac_cv_lib_bsd_forkpty=yes |
12913 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12914 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12915 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12916 | rm -f core conftest.err conftest.$ac_objext \ |
12917 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12918 | LIBS=$ac_check_lib_save_LIBS |
12919 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
12921 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12922 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12923 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12924 | LIBS="$LIBS -lbsd" |
12925 | fi | ||||
12926 | |||||
12927 | |||||
12928 | fi | ||||
12929 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12930 | |
12931 | fi | ||||
12932 | done | ||||
12933 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12934 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12935 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12936 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12937 | do : |
12938 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
12939 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12940 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12941 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12942 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12943 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12944 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12945 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12946 | done |
12947 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12948 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12949 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12950 | if test "x$ac_cv_func_dup2" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12951 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12952 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12953 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12954 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12955 | *" dup2.$ac_objext "* ) ;; |
12956 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12957 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12958 | esac |
12959 | |||||
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12960 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12961 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12962 | |
12963 | for ac_func in getpgrp | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12964 | do : |
12965 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12966 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12968 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12969 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12971 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12972 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12973 | int |
12974 | main () | ||||
12975 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12976 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12977 | ; |
12978 | return 0; | ||||
12979 | } | ||||
12980 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12981 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12982 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12983 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12984 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12985 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12986 | 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] | 12987 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12988 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12989 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12990 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12991 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12992 | do : |
12993 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12994 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12995 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12996 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12997 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12999 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13000 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13001 | int |
13002 | main () | ||||
13003 | { | ||||
13004 | setpgrp(0,0); | ||||
13005 | ; | ||||
13006 | return 0; | ||||
13007 | } | ||||
13008 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13009 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13010 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13011 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13012 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13013 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13015 | |
13016 | fi | ||||
13017 | done | ||||
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13018 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13019 | |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 13020 | # We search for both crypt and crypt_r as one or the other may be defined |
13021 | # This gets us our -lcrypt in LIBS when required on the target platform. | ||||
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 | ||||
13023 | $as_echo_n "checking for library containing crypt... " >&6; } | ||||
13024 | if ${ac_cv_search_crypt+:} false; then : | ||||
13025 | $as_echo_n "(cached) " >&6 | ||||
13026 | else | ||||
13027 | ac_func_search_save_LIBS=$LIBS | ||||
13028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13029 | /* end confdefs.h. */ | ||||
13030 | |||||
13031 | /* Override any GCC internal prototype to avoid an error. | ||||
13032 | Use char because int might match the return type of a GCC | ||||
13033 | builtin and then its argument prototype would still apply. */ | ||||
13034 | #ifdef __cplusplus | ||||
13035 | extern "C" | ||||
13036 | #endif | ||||
13037 | char crypt (); | ||||
13038 | int | ||||
13039 | main () | ||||
13040 | { | ||||
13041 | return crypt (); | ||||
13042 | ; | ||||
13043 | return 0; | ||||
13044 | } | ||||
13045 | _ACEOF | ||||
13046 | for ac_lib in '' crypt; do | ||||
13047 | if test -z "$ac_lib"; then | ||||
13048 | ac_res="none required" | ||||
13049 | else | ||||
13050 | ac_res=-l$ac_lib | ||||
13051 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
13052 | fi | ||||
13053 | if ac_fn_c_try_link "$LINENO"; then : | ||||
13054 | ac_cv_search_crypt=$ac_res | ||||
13055 | fi | ||||
13056 | rm -f core conftest.err conftest.$ac_objext \ | ||||
13057 | conftest$ac_exeext | ||||
13058 | if ${ac_cv_search_crypt+:} false; then : | ||||
13059 | break | ||||
13060 | fi | ||||
13061 | done | ||||
13062 | if ${ac_cv_search_crypt+:} false; then : | ||||
13063 | |||||
13064 | else | ||||
13065 | ac_cv_search_crypt=no | ||||
13066 | fi | ||||
13067 | rm conftest.$ac_ext | ||||
13068 | LIBS=$ac_func_search_save_LIBS | ||||
13069 | fi | ||||
13070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | ||||
13071 | $as_echo "$ac_cv_search_crypt" >&6; } | ||||
13072 | ac_res=$ac_cv_search_crypt | ||||
13073 | if test "$ac_res" != no; then : | ||||
13074 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||||
13075 | |||||
13076 | fi | ||||
13077 | |||||
13078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 | ||||
13079 | $as_echo_n "checking for library containing crypt_r... " >&6; } | ||||
13080 | if ${ac_cv_search_crypt_r+:} false; then : | ||||
13081 | $as_echo_n "(cached) " >&6 | ||||
13082 | else | ||||
13083 | ac_func_search_save_LIBS=$LIBS | ||||
13084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13085 | /* end confdefs.h. */ | ||||
13086 | |||||
13087 | /* Override any GCC internal prototype to avoid an error. | ||||
13088 | Use char because int might match the return type of a GCC | ||||
13089 | builtin and then its argument prototype would still apply. */ | ||||
13090 | #ifdef __cplusplus | ||||
13091 | extern "C" | ||||
13092 | #endif | ||||
13093 | char crypt_r (); | ||||
13094 | int | ||||
13095 | main () | ||||
13096 | { | ||||
13097 | return crypt_r (); | ||||
13098 | ; | ||||
13099 | return 0; | ||||
13100 | } | ||||
13101 | _ACEOF | ||||
13102 | for ac_lib in '' crypt; do | ||||
13103 | if test -z "$ac_lib"; then | ||||
13104 | ac_res="none required" | ||||
13105 | else | ||||
13106 | ac_res=-l$ac_lib | ||||
13107 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
13108 | fi | ||||
13109 | if ac_fn_c_try_link "$LINENO"; then : | ||||
13110 | ac_cv_search_crypt_r=$ac_res | ||||
13111 | fi | ||||
13112 | rm -f core conftest.err conftest.$ac_objext \ | ||||
13113 | conftest$ac_exeext | ||||
13114 | if ${ac_cv_search_crypt_r+:} false; then : | ||||
13115 | break | ||||
13116 | fi | ||||
13117 | done | ||||
13118 | if ${ac_cv_search_crypt_r+:} false; then : | ||||
13119 | |||||
13120 | else | ||||
13121 | ac_cv_search_crypt_r=no | ||||
13122 | fi | ||||
13123 | rm conftest.$ac_ext | ||||
13124 | LIBS=$ac_func_search_save_LIBS | ||||
13125 | fi | ||||
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 | ||||
13127 | $as_echo "$ac_cv_search_crypt_r" >&6; } | ||||
13128 | ac_res=$ac_cv_search_crypt_r | ||||
13129 | if test "$ac_res" != no; then : | ||||
13130 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||||
13131 | |||||
13132 | fi | ||||
13133 | |||||
13134 | |||||
13135 | ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" | ||||
13136 | if test "x$ac_cv_func_crypt_r" = xyes; then : | ||||
13137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13138 | /* end confdefs.h. */ | ||||
13139 | |||||
13140 | #define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */ | ||||
13141 | #include <crypt.h> | ||||
13142 | |||||
13143 | int | ||||
13144 | main () | ||||
13145 | { | ||||
13146 | |||||
13147 | struct crypt_data d; | ||||
13148 | char *r = crypt_r("", "", &d); | ||||
13149 | |||||
13150 | ; | ||||
13151 | return 0; | ||||
13152 | } | ||||
13153 | _ACEOF | ||||
13154 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
13155 | |||||
13156 | $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h | ||||
13157 | |||||
13158 | fi | ||||
13159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
13160 | |||||
13161 | fi | ||||
13162 | |||||
13163 | |||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13164 | for ac_func in clock_gettime |
13165 | do : | ||||
13166 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | ||||
13167 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | ||||
13168 | cat >>confdefs.h <<_ACEOF | ||||
13169 | #define HAVE_CLOCK_GETTIME 1 | ||||
13170 | _ACEOF | ||||
13171 | |||||
13172 | else | ||||
13173 | |||||
13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | ||||
13175 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | ||||
13176 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | ||||
13177 | $as_echo_n "(cached) " >&6 | ||||
13178 | else | ||||
13179 | ac_check_lib_save_LIBS=$LIBS | ||||
13180 | LIBS="-lrt $LIBS" | ||||
13181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13182 | /* end confdefs.h. */ | ||||
13183 | |||||
13184 | /* Override any GCC internal prototype to avoid an error. | ||||
13185 | Use char because int might match the return type of a GCC | ||||
13186 | builtin and then its argument prototype would still apply. */ | ||||
13187 | #ifdef __cplusplus | ||||
13188 | extern "C" | ||||
13189 | #endif | ||||
13190 | char clock_gettime (); | ||||
13191 | int | ||||
13192 | main () | ||||
13193 | { | ||||
13194 | return clock_gettime (); | ||||
13195 | ; | ||||
13196 | return 0; | ||||
13197 | } | ||||
13198 | _ACEOF | ||||
13199 | if ac_fn_c_try_link "$LINENO"; then : | ||||
13200 | ac_cv_lib_rt_clock_gettime=yes | ||||
13201 | else | ||||
13202 | ac_cv_lib_rt_clock_gettime=no | ||||
13203 | fi | ||||
13204 | rm -f core conftest.err conftest.$ac_objext \ | ||||
13205 | conftest$ac_exeext conftest.$ac_ext | ||||
13206 | LIBS=$ac_check_lib_save_LIBS | ||||
13207 | fi | ||||
13208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | ||||
13209 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | ||||
13210 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | ||||
13211 | |||||
Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 13212 | LIBS="$LIBS -lrt" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13213 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
13214 | |||||
13215 | |||||
13216 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | ||||
13217 | |||||
13218 | |||||
13219 | fi | ||||
13220 | |||||
13221 | |||||
13222 | fi | ||||
13223 | done | ||||
13224 | |||||
13225 | |||||
13226 | for ac_func in clock_getres | ||||
13227 | do : | ||||
13228 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | ||||
13229 | if test "x$ac_cv_func_clock_getres" = xyes; then : | ||||
13230 | cat >>confdefs.h <<_ACEOF | ||||
13231 | #define HAVE_CLOCK_GETRES 1 | ||||
13232 | _ACEOF | ||||
13233 | |||||
13234 | else | ||||
13235 | |||||
13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | ||||
13237 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | ||||
13238 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | ||||
13239 | $as_echo_n "(cached) " >&6 | ||||
13240 | else | ||||
13241 | ac_check_lib_save_LIBS=$LIBS | ||||
13242 | LIBS="-lrt $LIBS" | ||||
13243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13244 | /* end confdefs.h. */ | ||||
13245 | |||||
13246 | /* Override any GCC internal prototype to avoid an error. | ||||
13247 | Use char because int might match the return type of a GCC | ||||
13248 | builtin and then its argument prototype would still apply. */ | ||||
13249 | #ifdef __cplusplus | ||||
13250 | extern "C" | ||||
13251 | #endif | ||||
13252 | char clock_getres (); | ||||
13253 | int | ||||
13254 | main () | ||||
13255 | { | ||||
13256 | return clock_getres (); | ||||
13257 | ; | ||||
13258 | return 0; | ||||
13259 | } | ||||
13260 | _ACEOF | ||||
13261 | if ac_fn_c_try_link "$LINENO"; then : | ||||
13262 | ac_cv_lib_rt_clock_getres=yes | ||||
13263 | else | ||||
13264 | ac_cv_lib_rt_clock_getres=no | ||||
13265 | fi | ||||
13266 | rm -f core conftest.err conftest.$ac_objext \ | ||||
13267 | conftest$ac_exeext conftest.$ac_ext | ||||
13268 | LIBS=$ac_check_lib_save_LIBS | ||||
13269 | fi | ||||
13270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | ||||
13271 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | ||||
13272 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | ||||
13273 | |||||
13274 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | ||||
13275 | |||||
13276 | |||||
13277 | fi | ||||
13278 | |||||
13279 | |||||
13280 | fi | ||||
13281 | done | ||||
13282 | |||||
13283 | |||||
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 13284 | for ac_func in clock_settime |
13285 | do : | ||||
13286 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" | ||||
13287 | if test "x$ac_cv_func_clock_settime" = xyes; then : | ||||
13288 | cat >>confdefs.h <<_ACEOF | ||||
13289 | #define HAVE_CLOCK_SETTIME 1 | ||||
13290 | _ACEOF | ||||
13291 | |||||
13292 | else | ||||
13293 | |||||
13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 | ||||
13295 | $as_echo_n "checking for clock_settime in -lrt... " >&6; } | ||||
13296 | if ${ac_cv_lib_rt_clock_settime+:} false; then : | ||||
13297 | $as_echo_n "(cached) " >&6 | ||||
13298 | else | ||||
13299 | ac_check_lib_save_LIBS=$LIBS | ||||
13300 | LIBS="-lrt $LIBS" | ||||
13301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13302 | /* end confdefs.h. */ | ||||
13303 | |||||
13304 | /* Override any GCC internal prototype to avoid an error. | ||||
13305 | Use char because int might match the return type of a GCC | ||||
13306 | builtin and then its argument prototype would still apply. */ | ||||
13307 | #ifdef __cplusplus | ||||
13308 | extern "C" | ||||
13309 | #endif | ||||
13310 | char clock_settime (); | ||||
13311 | int | ||||
13312 | main () | ||||
13313 | { | ||||
13314 | return clock_settime (); | ||||
13315 | ; | ||||
13316 | return 0; | ||||
13317 | } | ||||
13318 | _ACEOF | ||||
13319 | if ac_fn_c_try_link "$LINENO"; then : | ||||
13320 | ac_cv_lib_rt_clock_settime=yes | ||||
13321 | else | ||||
13322 | ac_cv_lib_rt_clock_settime=no | ||||
13323 | fi | ||||
13324 | rm -f core conftest.err conftest.$ac_objext \ | ||||
13325 | conftest$ac_exeext conftest.$ac_ext | ||||
13326 | LIBS=$ac_check_lib_save_LIBS | ||||
13327 | fi | ||||
13328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 | ||||
13329 | $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } | ||||
13330 | if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : | ||||
13331 | |||||
13332 | $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h | ||||
13333 | |||||
13334 | |||||
13335 | fi | ||||
13336 | |||||
13337 | |||||
13338 | fi | ||||
13339 | done | ||||
13340 | |||||
13341 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
13343 | $as_echo_n "checking for major... " >&6; } | ||||
13344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13345 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13346 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13347 | #if defined(MAJOR_IN_MKDEV) |
13348 | #include <sys/mkdev.h> | ||||
13349 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
13350 | #include <sys/sysmacros.h> | ||||
13351 | #else | ||||
13352 | #include <sys/types.h> | ||||
13353 | #endif | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13354 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13355 | int |
13356 | main () | ||||
13357 | { | ||||
13358 | |||||
13359 | makedev(major(0),minor(0)); | ||||
13360 | |||||
13361 | ; | ||||
13362 | return 0; | ||||
13363 | } | ||||
13364 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13365 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13366 | |
13367 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13368 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13369 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13371 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13372 | |
13373 | else | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13374 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13376 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13377 | |
13378 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13379 | rm -f core conftest.err conftest.$ac_objext \ |
13380 | conftest$ac_exeext conftest.$ac_ext | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13381 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13382 | # 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] | 13383 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
13385 | $as_echo_n "checking for getaddrinfo... " >&6; } | ||||
13386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13387 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13388 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13389 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13390 | #include <sys/socket.h> |
13391 | #include <netdb.h> | ||||
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13392 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13394 | int |
13395 | main () | ||||
13396 | { | ||||
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13397 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13398 | ; |
13399 | return 0; | ||||
13400 | } | ||||
13401 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13402 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13403 | have_getaddrinfo=yes |
13404 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13405 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13406 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13407 | rm -f core conftest.err conftest.$ac_objext \ |
13408 | conftest$ac_exeext conftest.$ac_ext | ||||
13409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | ||||
13410 | $as_echo "$have_getaddrinfo" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13411 | if test $have_getaddrinfo = yes |
13412 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
13414 | $as_echo_n "checking getaddrinfo bug... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13415 | if ${ac_cv_buggy_getaddrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13416 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13417 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13418 | if test "$cross_compiling" = yes; then : |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 13419 | |
13420 | if test "${enable_ipv6+set}" = set; then | ||||
13421 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | ||||
13422 | else | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13423 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 13424 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13425 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13427 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13428 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 13429 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13430 | #include <sys/types.h> |
13431 | #include <netdb.h> | ||||
13432 | #include <string.h> | ||||
13433 | #include <sys/socket.h> | ||||
13434 | #include <netinet/in.h> | ||||
13435 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13436 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13437 | { |
13438 | int passive, gaierr, inet4 = 0, inet6 = 0; | ||||
13439 | struct addrinfo hints, *ai, *aitop; | ||||
13440 | char straddr[INET6_ADDRSTRLEN], strport[16]; | ||||
13441 | |||||
13442 | for (passive = 0; passive <= 1; passive++) { | ||||
13443 | memset(&hints, 0, sizeof(hints)); | ||||
13444 | hints.ai_family = AF_UNSPEC; | ||||
13445 | hints.ai_flags = passive ? AI_PASSIVE : 0; | ||||
13446 | hints.ai_socktype = SOCK_STREAM; | ||||
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 13447 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13448 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
13449 | (void)gai_strerror(gaierr); | ||||
13450 | goto bad; | ||||
13451 | } | ||||
13452 | for (ai = aitop; ai; ai = ai->ai_next) { | ||||
13453 | if (ai->ai_addr == NULL || | ||||
13454 | ai->ai_addrlen == 0 || | ||||
13455 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | ||||
13456 | straddr, sizeof(straddr), strport, sizeof(strport), | ||||
13457 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | ||||
13458 | goto bad; | ||||
13459 | } | ||||
13460 | switch (ai->ai_family) { | ||||
13461 | case AF_INET: | ||||
13462 | if (strcmp(strport, "54321") != 0) { | ||||
13463 | goto bad; | ||||
13464 | } | ||||
13465 | if (passive) { | ||||
13466 | if (strcmp(straddr, "0.0.0.0") != 0) { | ||||
13467 | goto bad; | ||||
13468 | } | ||||
13469 | } else { | ||||
13470 | if (strcmp(straddr, "127.0.0.1") != 0) { | ||||
13471 | goto bad; | ||||
13472 | } | ||||
13473 | } | ||||
13474 | inet4++; | ||||
13475 | break; | ||||
13476 | case AF_INET6: | ||||
13477 | if (strcmp(strport, "54321") != 0) { | ||||
13478 | goto bad; | ||||
13479 | } | ||||
13480 | if (passive) { | ||||
13481 | if (strcmp(straddr, "::") != 0) { | ||||
13482 | goto bad; | ||||
13483 | } | ||||
13484 | } else { | ||||
13485 | if (strcmp(straddr, "::1") != 0) { | ||||
13486 | goto bad; | ||||
13487 | } | ||||
13488 | } | ||||
13489 | inet6++; | ||||
13490 | break; | ||||
13491 | case AF_UNSPEC: | ||||
13492 | goto bad; | ||||
13493 | break; | ||||
13494 | default: | ||||
13495 | /* another family support? */ | ||||
13496 | break; | ||||
13497 | } | ||||
13498 | } | ||||
Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 13499 | freeaddrinfo(aitop); |
13500 | aitop = NULL; | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13501 | } |
13502 | |||||
13503 | if (!(inet4 == 0 || inet4 == 2)) | ||||
13504 | goto bad; | ||||
13505 | if (!(inet6 == 0 || inet6 == 2)) | ||||
13506 | goto bad; | ||||
13507 | |||||
13508 | if (aitop) | ||||
13509 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13510 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13511 | |
13512 | bad: | ||||
13513 | if (aitop) | ||||
13514 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13515 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13516 | } |
13517 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13518 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13519 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13520 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13521 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13522 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13523 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13524 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13525 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13526 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13527 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13528 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13529 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13530 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13531 | |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
13533 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | ||||
13534 | |||||
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 13535 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13536 | then |
13537 | if test $ipv6 = yes | ||||
13538 | then | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13539 | echo 'Fatal: You must get working getaddrinfo() function.' |
13540 | echo ' or you can specify "--disable-ipv6"'. | ||||
13541 | exit 1 | ||||
13542 | fi | ||||
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13543 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13544 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13545 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13546 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13547 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 13548 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13549 | for ac_func in getnameinfo |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13550 | do : |
13551 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13552 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13553 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13554 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13555 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13556 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13557 | fi |
13558 | done | ||||
13559 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13560 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13561 | # checks for structures |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
13563 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13564 | if ${ac_cv_header_time+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13565 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13566 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13568 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13569 | #include <sys/types.h> |
13570 | #include <sys/time.h> | ||||
13571 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13573 | int |
13574 | main () | ||||
13575 | { | ||||
13576 | if ((struct tm *) 0) | ||||
13577 | return 0; | ||||
13578 | ; | ||||
13579 | return 0; | ||||
13580 | } | ||||
13581 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13582 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13583 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13584 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13585 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13586 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13588 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
13590 | $as_echo "$ac_cv_header_time" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13591 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13592 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13593 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13594 | |
13595 | fi | ||||
13596 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
13598 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13599 | if ${ac_cv_struct_tm+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13600 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13601 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13603 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13604 | #include <sys/types.h> |
13605 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13607 | int |
13608 | main () | ||||
13609 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13610 | struct tm tm; |
13611 | int *p = &tm.tm_sec; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13612 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13613 | ; |
13614 | return 0; | ||||
13615 | } | ||||
13616 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13617 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13618 | ac_cv_struct_tm=time.h |
13619 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13620 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13621 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13623 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
13625 | $as_echo "$ac_cv_struct_tm" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13626 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13627 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13628 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13629 | |
13630 | fi | ||||
13631 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13632 | 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] | 13633 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13634 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13635 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13636 | 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] | 13637 | |
13638 | cat >>confdefs.h <<_ACEOF | ||||
13639 | #define HAVE_STRUCT_TM_TM_ZONE 1 | ||||
13640 | _ACEOF | ||||
13641 | |||||
13642 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13643 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13645 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
13646 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13647 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13648 | |
13649 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13650 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
13651 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13652 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13653 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13654 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13655 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13656 | fi |
13657 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13658 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13659 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13660 | _ACEOF |
13661 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
13663 | $as_echo_n "checking for tzname... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13664 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13665 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13666 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13668 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13669 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13670 | #if !HAVE_DECL_TZNAME |
13671 | extern char *tzname[]; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13672 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 | int |
13675 | main () | ||||
13676 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13677 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13678 | ; |
13679 | return 0; | ||||
13680 | } | ||||
13681 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13682 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13683 | ac_cv_var_tzname=yes |
13684 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13685 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13686 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13687 | rm -f core conftest.err conftest.$ac_objext \ |
13688 | conftest$ac_exeext conftest.$ac_ext | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13689 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
13691 | $as_echo "$ac_cv_var_tzname" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13692 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13693 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13694 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13695 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13696 | fi |
13697 | fi | ||||
13698 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13699 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13700 | 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] | 13701 | |
13702 | cat >>confdefs.h <<_ACEOF | ||||
13703 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | ||||
13704 | _ACEOF | ||||
13705 | |||||
13706 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13707 | fi |
13708 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13709 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13710 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13712 | cat >>confdefs.h <<_ACEOF |
13713 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||||
13714 | _ACEOF | ||||
13715 | |||||
13716 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13717 | fi |
13718 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13719 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13720 | 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] | 13721 | |
13722 | cat >>confdefs.h <<_ACEOF | ||||
13723 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | ||||
13724 | _ACEOF | ||||
13725 | |||||
13726 | |||||
13727 | fi | ||||
13728 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13729 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13730 | 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] | 13731 | |
13732 | cat >>confdefs.h <<_ACEOF | ||||
13733 | #define HAVE_STRUCT_STAT_ST_GEN 1 | ||||
13734 | _ACEOF | ||||
13735 | |||||
13736 | |||||
13737 | fi | ||||
13738 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13739 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13740 | 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] | 13741 | |
13742 | cat >>confdefs.h <<_ACEOF | ||||
13743 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | ||||
13744 | _ACEOF | ||||
13745 | |||||
13746 | |||||
13747 | fi | ||||
13748 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13749 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13750 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13751 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13752 | cat >>confdefs.h <<_ACEOF |
13753 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | ||||
13754 | _ACEOF | ||||
13755 | |||||
13756 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13757 | fi |
13758 | |||||
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13759 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
13760 | #include <sys/types.h> | ||||
13761 | #include <pwd.h> | ||||
13762 | |||||
13763 | " | ||||
13764 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | ||||
13765 | |||||
13766 | cat >>confdefs.h <<_ACEOF | ||||
13767 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||||
13768 | _ACEOF | ||||
13769 | |||||
13770 | |||||
13771 | fi | ||||
13772 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | ||||
13773 | #include <sys/types.h> | ||||
13774 | #include <pwd.h> | ||||
13775 | |||||
13776 | " | ||||
13777 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : | ||||
13778 | |||||
13779 | cat >>confdefs.h <<_ACEOF | ||||
13780 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | ||||
13781 | _ACEOF | ||||
13782 | |||||
13783 | |||||
13784 | fi | ||||
13785 | |||||
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 13786 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. |
13787 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> | ||||
13788 | " | ||||
13789 | if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : | ||||
13790 | |||||
13791 | cat >>confdefs.h <<_ACEOF | ||||
13792 | #define HAVE_SIGINFO_T_SI_BAND 1 | ||||
13793 | _ACEOF | ||||
13794 | |||||
13795 | |||||
13796 | fi | ||||
13797 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13798 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
13800 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13801 | if ${ac_cv_header_time_altzone+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13802 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13803 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13804 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13806 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13807 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13808 | int |
13809 | main () | ||||
13810 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13811 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13812 | ; |
13813 | return 0; | ||||
13814 | } | ||||
13815 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13816 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13817 | ac_cv_header_time_altzone=yes |
13818 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13819 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13820 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13822 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13823 | fi |
13824 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
13826 | $as_echo "$ac_cv_header_time_altzone" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13827 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13828 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13829 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13830 | |
13831 | fi | ||||
13832 | |||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13833 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
13835 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | ||||
13836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13837 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13838 | |
13839 | #include <sys/types.h> | ||||
13840 | #include <sys/select.h> | ||||
13841 | #include <sys/time.h> | ||||
13842 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13843 | int |
13844 | main () | ||||
13845 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13846 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13847 | ; |
13848 | return 0; | ||||
13849 | } | ||||
13850 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13851 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13852 | |
13853 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13854 | $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] | 13855 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13856 | was_it_defined=yes |
13857 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13858 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
13861 | $as_echo "$was_it_defined" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13862 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
13864 | $as_echo_n "checking for addrinfo... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13865 | if ${ac_cv_struct_addrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13866 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13867 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13869 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13870 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13871 | int |
13872 | main () | ||||
13873 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13874 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13875 | ; |
13876 | return 0; | ||||
13877 | } | ||||
13878 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13879 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13880 | ac_cv_struct_addrinfo=yes |
13881 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13882 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13883 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13885 | fi | ||||
13886 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
13888 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13889 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13890 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13891 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13892 | |
13893 | fi | ||||
13894 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
13896 | $as_echo_n "checking for sockaddr_storage... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13897 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13898 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13899 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13901 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13902 | |
13903 | # include <sys/types.h> | ||||
13904 | # include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13905 | int |
13906 | main () | ||||
13907 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13908 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13909 | ; |
13910 | return 0; | ||||
13911 | } | ||||
13912 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13913 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13914 | ac_cv_struct_sockaddr_storage=yes |
13915 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13916 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13917 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13919 | fi | ||||
13920 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
13922 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13923 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13924 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13925 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13926 | |
13927 | fi | ||||
13928 | |||||
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 |
13930 | $as_echo_n "checking for sockaddr_alg... " >&6; } | ||||
13931 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | ||||
13932 | $as_echo_n "(cached) " >&6 | ||||
13933 | else | ||||
13934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13935 | /* end confdefs.h. */ | ||||
13936 | |||||
13937 | # include <sys/types.h> | ||||
13938 | # include <sys/socket.h> | ||||
13939 | # include <linux/if_alg.h> | ||||
13940 | int | ||||
13941 | main () | ||||
13942 | { | ||||
13943 | struct sockaddr_alg s | ||||
13944 | ; | ||||
13945 | return 0; | ||||
13946 | } | ||||
13947 | _ACEOF | ||||
13948 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
13949 | ac_cv_struct_sockaddr_alg=yes | ||||
13950 | else | ||||
13951 | ac_cv_struct_sockaddr_alg=no | ||||
13952 | fi | ||||
13953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
13954 | fi | ||||
13955 | |||||
13956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 | ||||
13957 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | ||||
13958 | if test $ac_cv_struct_sockaddr_alg = yes; then | ||||
13959 | |||||
13960 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h | ||||
13961 | |||||
13962 | fi | ||||
13963 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13964 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13965 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
13967 | $as_echo_n "checking whether char is unsigned... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13968 | if ${ac_cv_c_char_unsigned+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13969 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13970 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13972 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13973 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13974 | int |
13975 | main () | ||||
13976 | { | ||||
13977 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13978 | test_array [0] = 0; |
13979 | return test_array [0]; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13980 | |
13981 | ; | ||||
13982 | return 0; | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13983 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13984 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13985 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13986 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13987 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13988 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13989 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13991 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
13993 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13994 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13995 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13996 | |
13997 | fi | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13998 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
14000 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14001 | if ${ac_cv_c_const+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14002 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14005 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14007 | int |
14008 | main () | ||||
14009 | { | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14011 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14012 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14013 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14014 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14015 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14016 | char const *const *pcpcc; |
14017 | char **ppc; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14018 | /* NEC SVR4.0.2 mips cc rejects this. */ |
14019 | struct point {int x, y;}; | ||||
14020 | static struct point const zero = {0,0}; | ||||
14021 | /* AIX XL C 1.02.0.0 rejects this. | ||||
14022 | It does not let you subtract one const X* pointer from another in | ||||
14023 | an arm of an if-expression whose if-part is not a constant | ||||
14024 | expression */ | ||||
14025 | const char *g = "string"; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14026 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14027 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14028 | ++pcpcc; |
14029 | ppc = (char**) pcpcc; | ||||
14030 | pcpcc = (char const *const *) ppc; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14031 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
14032 | char tx; | ||||
14033 | char *t = &tx; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14036 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14037 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14038 | } |
14039 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||||
14040 | int x[] = {25, 17}; | ||||
14041 | const int *foo = &x[0]; | ||||
14042 | ++foo; | ||||
14043 | } | ||||
14044 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||||
14045 | typedef const int *iptr; | ||||
14046 | iptr p = 0; | ||||
14047 | ++p; | ||||
14048 | } | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14049 | { /* 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] | 14050 | "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] | 14051 | struct s { int j; const int *ap[3]; } bx; |
14052 | struct s *b = &bx; b->j = 5; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14053 | } |
14054 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||||
14055 | const int foo = 10; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14056 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14057 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14058 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14059 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14061 | ; |
14062 | return 0; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14063 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14064 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14065 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14066 | ac_cv_c_const=yes |
14067 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14068 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14069 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14071 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
14073 | $as_echo "$ac_cv_c_const" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14074 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14075 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14076 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14077 | |
14078 | fi | ||||
14079 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14080 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14081 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
14083 | $as_echo_n "checking for working signed char... " >&6; } | ||||
14084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14085 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14087 | int |
14088 | main () | ||||
14089 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14090 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14091 | ; |
14092 | return 0; | ||||
14093 | } | ||||
14094 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14095 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14096 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14097 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14098 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14099 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14100 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14101 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14102 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
14105 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14106 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14107 | have_prototypes=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
14109 | $as_echo_n "checking for prototypes... " >&6; } | ||||
14110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14111 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14112 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14113 | int |
14114 | main () | ||||
14115 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14116 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14117 | ; |
14118 | return 0; | ||||
14119 | } | ||||
14120 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14121 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14122 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14123 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14124 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14125 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14126 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
14129 | $as_echo "$have_prototypes" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14130 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14131 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
14133 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | ||||
14134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14135 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14136 | |
14137 | #include <stdarg.h> | ||||
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14138 | int foo(int x, ...) { |
14139 | va_list va; | ||||
14140 | va_start(va, x); | ||||
14141 | va_arg(va, int); | ||||
14142 | va_arg(va, char *); | ||||
14143 | va_arg(va, double); | ||||
14144 | return 0; | ||||
14145 | } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14147 | int |
14148 | main () | ||||
14149 | { | ||||
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14150 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | ; |
14152 | return 0; | ||||
14153 | } | ||||
14154 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14155 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14156 | |
14157 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14158 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14159 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14160 | works=yes |
14161 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14162 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
14165 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14166 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14167 | # check for socketpair |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
14169 | $as_echo_n "checking for socketpair... " >&6; } | ||||
14170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14171 | /* end confdefs.h. */ |
14172 | |||||
14173 | #include <sys/types.h> | ||||
14174 | #include <sys/socket.h> | ||||
14175 | |||||
14176 | int | ||||
14177 | main () | ||||
14178 | { | ||||
14179 | void *x=socketpair | ||||
14180 | ; | ||||
14181 | return 0; | ||||
14182 | } | ||||
14183 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14184 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14185 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14186 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14187 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14189 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14190 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14192 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14193 | |
14194 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14195 | 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] | 14196 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14197 | # check if sockaddr has sa_len member |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
14199 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | ||||
14200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14201 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14202 | #include <sys/types.h> |
14203 | #include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14204 | int |
14205 | main () | ||||
14206 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14207 | struct sockaddr x; |
14208 | x.sa_len = 0; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14209 | ; |
14210 | return 0; | ||||
14211 | } | ||||
14212 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14213 | if ac_fn_c_try_compile "$LINENO"; then : |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
14215 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14216 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14217 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14218 | |
14219 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14221 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14222 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14223 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14224 | 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] | 14225 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14226 | # 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] | 14227 | |
14228 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14229 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14230 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14231 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14232 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14233 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
14235 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14236 | OLD_CFLAGS=$CFLAGS |
14237 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14239 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14240 | |
14241 | # include <netdb.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14243 | int |
14244 | main () | ||||
14245 | { | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14246 | |
14247 | char *name; | ||||
14248 | struct hostent *he, *res; | ||||
14249 | char buffer[2048]; | ||||
14250 | int buflen = 2048; | ||||
14251 | int h_errnop; | ||||
14252 | |||||
14253 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14254 | |
14255 | ; | ||||
14256 | return 0; | ||||
14257 | } | ||||
14258 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14259 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14260 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14261 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14263 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14264 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14265 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14267 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14268 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14269 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14270 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14272 | $as_echo "no" >&6; } | ||||
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | ||||
14274 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | ||||
14275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14276 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14277 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14278 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14279 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14280 | int |
14281 | main () | ||||
14282 | { | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14283 | |
14284 | char *name; | ||||
14285 | struct hostent *he; | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14286 | char buffer[2048]; |
14287 | int buflen = 2048; | ||||
14288 | int h_errnop; | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14289 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14290 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14291 | |
14292 | ; | ||||
14293 | return 0; | ||||
14294 | } | ||||
14295 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14296 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14297 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14298 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14299 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14300 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14301 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14302 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14304 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14306 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14307 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14309 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
14311 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | ||||
14312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14313 | /* end confdefs.h. */ | ||||
14314 | |||||
14315 | # include <netdb.h> | ||||
14316 | |||||
14317 | int | ||||
14318 | main () | ||||
14319 | { | ||||
14320 | |||||
14321 | char *name; | ||||
14322 | struct hostent *he; | ||||
14323 | struct hostent_data data; | ||||
14324 | |||||
14325 | (void) gethostbyname_r(name, he, &data); | ||||
14326 | |||||
14327 | ; | ||||
14328 | return 0; | ||||
14329 | } | ||||
14330 | _ACEOF | ||||
14331 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
14332 | |||||
14333 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | ||||
14334 | |||||
14335 | |||||
14336 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | ||||
14337 | |||||
14338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
14339 | $as_echo "yes" >&6; } | ||||
14340 | |||||
14341 | else | ||||
14342 | |||||
14343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
14344 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14345 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14346 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14347 | 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] | 14348 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14349 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14350 | 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] | 14351 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14352 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14354 | CFLAGS=$OLD_CFLAGS |
14355 | |||||
14356 | else | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14357 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14358 | for ac_func in gethostbyname |
14359 | do : | ||||
14360 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14361 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14362 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14363 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14364 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14365 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14366 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14367 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14368 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14369 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14370 | fi |
14371 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14372 | |
14373 | |||||
14374 | |||||
14375 | |||||
14376 | |||||
14377 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14378 | # checks for system services |
14379 | # (none yet) | ||||
14380 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14381 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14382 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14383 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14384 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14385 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
14387 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14388 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14389 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14391 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14392 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14394 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14395 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14396 | /* Override any GCC internal prototype to avoid an error. |
14397 | Use char because int might match the return type of a GCC | ||||
14398 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | #ifdef __cplusplus |
14400 | extern "C" | ||||
14401 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14402 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | int |
14404 | main () | ||||
14405 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14406 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14407 | ; |
14408 | return 0; | ||||
14409 | } | ||||
14410 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14411 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14412 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14413 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14414 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14415 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14416 | rm -f core conftest.err conftest.$ac_objext \ |
14417 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14418 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14419 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
14421 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14422 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14423 | cat >>confdefs.h <<_ACEOF |
14424 | #define HAVE_LIBIEEE 1 | ||||
14425 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14426 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14427 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14428 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14429 | fi |
14430 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14431 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14432 | fi |
14433 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14434 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14435 | # check for --with-libm=... |
14436 | |||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14437 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14438 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14439 | *) LIBM=-lm |
14440 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
14442 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14444 | # Check whether --with-libm was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14445 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14446 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14447 | if test "$withval" = no |
14448 | then LIBM= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
14450 | $as_echo "force LIBM empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14451 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14452 | then LIBM=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
14454 | $as_echo "set LIBM=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14455 | 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] | 14456 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14457 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
14459 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14460 | fi |
14461 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14462 | |
14463 | # check for --with-libc=... | ||||
14464 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
14466 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14467 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14468 | # Check whether --with-libc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14469 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14470 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14471 | if test "$withval" = no |
14472 | then LIBC= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
14474 | $as_echo "force LIBC empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14475 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14476 | then LIBC=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
14478 | $as_echo "set LIBC=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14479 | 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] | 14480 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14481 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
14483 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14484 | fi |
14485 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14486 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14487 | # ************************************** |
14488 | # * Check for gcc x64 inline assembler * | ||||
14489 | # ************************************** | ||||
14490 | |||||
14491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | ||||
14492 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | ||||
14493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14494 | /* end confdefs.h. */ | ||||
14495 | |||||
14496 | int | ||||
14497 | main () | ||||
14498 | { | ||||
14499 | |||||
14500 | __asm__ __volatile__ ("movq %rcx, %rax"); | ||||
14501 | |||||
14502 | ; | ||||
14503 | return 0; | ||||
14504 | } | ||||
14505 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14506 | if ac_fn_c_try_link "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14507 | have_gcc_asm_for_x64=yes |
14508 | else | ||||
14509 | have_gcc_asm_for_x64=no | ||||
14510 | fi | ||||
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14511 | rm -f core conftest.err conftest.$ac_objext \ |
14512 | conftest$ac_exeext conftest.$ac_ext | ||||
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 14513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
14514 | $as_echo "$have_gcc_asm_for_x64" >&6; } | ||||
14515 | if test "$have_gcc_asm_for_x64" = yes | ||||
14516 | then | ||||
14517 | |||||
14518 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | ||||
14519 | |||||
14520 | fi | ||||
14521 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14522 | # ************************************************** |
14523 | # * Check for various properties of floating point * | ||||
14524 | # ************************************************** | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14525 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5 |
14527 | $as_echo_n "checking whether float word ordering is bigendian... " >&6; } | ||||
14528 | if ${ax_cv_c_float_words_bigendian+:} false; then : | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14529 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14530 | else |
14531 | |||||
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14532 | |
14533 | ax_cv_c_float_words_bigendian=unknown | ||||
14534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14535 | /* end confdefs.h. */ |
14536 | |||||
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14537 | |
14538 | double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0; | ||||
14539 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14540 | |
14541 | _ACEOF | ||||
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14542 | if ac_fn_c_try_compile "$LINENO"; then : |
14543 | |||||
14544 | |||||
Arnon Yaari | 5dd8360 | 2020-04-01 18:19:09 +0300 | [diff] [blame] | 14545 | if $GREP noonsees conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14546 | ax_cv_c_float_words_bigendian=yes |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14547 | fi |
Arnon Yaari | 5dd8360 | 2020-04-01 18:19:09 +0300 | [diff] [blame] | 14548 | if $GREP seesnoon conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14549 | if test "$ax_cv_c_float_words_bigendian" = unknown; then |
14550 | ax_cv_c_float_words_bigendian=no | ||||
14551 | else | ||||
14552 | ax_cv_c_float_words_bigendian=unknown | ||||
14553 | fi | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14554 | fi |
14555 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14556 | |
14557 | fi | ||||
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14559 | fi |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5 |
14561 | $as_echo "$ax_cv_c_float_words_bigendian" >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14562 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14563 | case $ax_cv_c_float_words_bigendian in |
14564 | yes) | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14565 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14566 | $as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h |
14567 | ;; | ||||
14568 | no) | ||||
14569 | ;; | ||||
14570 | *) | ||||
14571 | as_fn_error $? " | ||||
14572 | |||||
14573 | Unknown float word ordering. You need to manually preset | ||||
14574 | ax_cv_c_float_words_bigendian=no (or yes) according to your system. | ||||
14575 | |||||
14576 | " "$LINENO" 5 ;; | ||||
14577 | esac | ||||
14578 | |||||
14579 | |||||
14580 | if test "$ax_cv_c_float_words_bigendian" = "yes" | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14581 | then |
14582 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14583 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14584 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14585 | elif test "$ax_cv_c_float_words_bigendian" = "no" |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14586 | then |
14587 | |||||
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 14588 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
14589 | |||||
14590 | else | ||||
14591 | # Some ARM platforms use a mixed-endian representation for doubles. | ||||
14592 | # While Python doesn't currently have full support for these platforms | ||||
14593 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | ||||
14594 | # conversions work. | ||||
14595 | # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big | ||||
14596 | # or little, then it must be this? | ||||
14597 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14598 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14599 | |
14600 | fi | ||||
14601 | |||||
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 14602 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14603 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 14604 | # 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] | 14605 | # 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] | 14606 | # 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] | 14607 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14608 | |
14609 | # This inline assembler syntax may also work for suncc and icc, | ||||
14610 | # so we try it on all platforms. | ||||
14611 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
14613 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | ||||
14614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14615 | /* end confdefs.h. */ |
14616 | |||||
14617 | int | ||||
14618 | main () | ||||
14619 | { | ||||
14620 | |||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14621 | unsigned short cw; |
14622 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | ||||
14623 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14624 | |
14625 | ; | ||||
14626 | return 0; | ||||
14627 | } | ||||
14628 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14629 | if ac_fn_c_try_link "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14630 | have_gcc_asm_for_x87=yes |
14631 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14632 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14633 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14634 | rm -f core conftest.err conftest.$ac_objext \ |
14635 | conftest$ac_exeext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
14637 | $as_echo "$have_gcc_asm_for_x87" >&6; } | ||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14638 | if test "$have_gcc_asm_for_x87" = yes |
14639 | then | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14640 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14641 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14642 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14643 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14644 | |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
14646 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | ||||
14647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14648 | /* end confdefs.h. */ | ||||
14649 | |||||
14650 | int | ||||
14651 | main () | ||||
14652 | { | ||||
14653 | |||||
14654 | unsigned int fpcr; | ||||
14655 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | ||||
14656 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | ||||
14657 | |||||
14658 | ; | ||||
14659 | return 0; | ||||
14660 | } | ||||
14661 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14662 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14663 | have_gcc_asm_for_mc68881=yes |
14664 | else | ||||
14665 | have_gcc_asm_for_mc68881=no | ||||
14666 | fi | ||||
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14667 | rm -f core conftest.err conftest.$ac_objext \ |
14668 | conftest$ac_exeext conftest.$ac_ext | ||||
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
14670 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | ||||
14671 | if test "$have_gcc_asm_for_mc68881" = yes | ||||
14672 | then | ||||
14673 | |||||
14674 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | ||||
14675 | |||||
14676 | fi | ||||
14677 | |||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14678 | # Detect whether system arithmetic is subject to x87-style double |
14679 | # rounding issues. The result of this test has little meaning on non | ||||
14680 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding | ||||
14681 | # mode is round-to-nearest and double rounding issues are present, and | ||||
14682 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
14684 | $as_echo_n "checking for x87-style double rounding... " >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14685 | # $BASECFLAGS may affect the result |
14686 | ac_save_cc="$CC" | ||||
14687 | CC="$CC $BASECFLAGS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14688 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14689 | ac_cv_x87_double_rounding=no |
14690 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14692 | /* end confdefs.h. */ |
14693 | |||||
14694 | #include <stdlib.h> | ||||
14695 | #include <math.h> | ||||
14696 | int main() { | ||||
14697 | volatile double x, y, z; | ||||
14698 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | ||||
14699 | x = 0.99999999999999989; /* 1-2**-53 */ | ||||
14700 | y = 1./x; | ||||
14701 | if (y != 1.) | ||||
14702 | exit(0); | ||||
14703 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | ||||
14704 | x = 1e16; | ||||
14705 | y = 2.99999; | ||||
14706 | z = x + y; | ||||
14707 | if (z != 1e16+4.) | ||||
14708 | exit(0); | ||||
14709 | /* both tests show evidence of double rounding */ | ||||
14710 | exit(1); | ||||
14711 | } | ||||
14712 | |||||
14713 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14714 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14715 | ac_cv_x87_double_rounding=no |
14716 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14717 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14718 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14719 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14720 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14721 | fi |
14722 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14723 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
14725 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14726 | if test "$ac_cv_x87_double_rounding" = yes |
14727 | then | ||||
14728 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14729 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14730 | |
14731 | fi | ||||
14732 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14733 | # ************************************ |
14734 | # * Check for mathematical functions * | ||||
14735 | # ************************************ | ||||
14736 | |||||
14737 | LIBS_SAVE=$LIBS | ||||
14738 | LIBS="$LIBS $LIBM" | ||||
14739 | |||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14740 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
14741 | do : | ||||
14742 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14743 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14744 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14745 | cat >>confdefs.h <<_ACEOF |
14746 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14747 | _ACEOF | ||||
14748 | |||||
14749 | fi | ||||
14750 | done | ||||
14751 | |||||
Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 14752 | for ac_func in hypot lgamma log1p log2 round tgamma |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14753 | do : |
14754 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14755 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14756 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14757 | cat >>confdefs.h <<_ACEOF |
14758 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14759 | _ACEOF | ||||
14760 | |||||
14761 | fi | ||||
14762 | done | ||||
14763 | |||||
14764 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | ||||
14765 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14766 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14767 | ac_have_decl=1 |
14768 | else | ||||
14769 | ac_have_decl=0 | ||||
14770 | fi | ||||
14771 | |||||
14772 | cat >>confdefs.h <<_ACEOF | ||||
14773 | #define HAVE_DECL_ISINF $ac_have_decl | ||||
14774 | _ACEOF | ||||
14775 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | ||||
14776 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14777 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14778 | ac_have_decl=1 |
14779 | else | ||||
14780 | ac_have_decl=0 | ||||
14781 | fi | ||||
14782 | |||||
14783 | cat >>confdefs.h <<_ACEOF | ||||
14784 | #define HAVE_DECL_ISNAN $ac_have_decl | ||||
14785 | _ACEOF | ||||
14786 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | ||||
14787 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14788 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14789 | ac_have_decl=1 |
14790 | else | ||||
14791 | ac_have_decl=0 | ||||
14792 | fi | ||||
14793 | |||||
14794 | cat >>confdefs.h <<_ACEOF | ||||
14795 | #define HAVE_DECL_ISFINITE $ac_have_decl | ||||
14796 | _ACEOF | ||||
14797 | |||||
14798 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14799 | # For multiprocessing module, check that sem_open |
14800 | # actually works. For FreeBSD versions <= 7.2, | ||||
14801 | # the kernel module that provides POSIX semaphores | ||||
14802 | # isn't loaded by default, so an attempt to call | ||||
14803 | # sem_open results in a 'Signal 12' error. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
14805 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14806 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14807 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14808 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14809 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14810 | ac_cv_posix_semaphores_enabled=yes |
14811 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14813 | /* end confdefs.h. */ |
14814 | |||||
14815 | #include <unistd.h> | ||||
14816 | #include <fcntl.h> | ||||
14817 | #include <stdio.h> | ||||
14818 | #include <semaphore.h> | ||||
14819 | #include <sys/stat.h> | ||||
14820 | |||||
14821 | int main(void) { | ||||
14822 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | ||||
14823 | if (a == SEM_FAILED) { | ||||
14824 | perror("sem_open"); | ||||
14825 | return 1; | ||||
14826 | } | ||||
14827 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14828 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14829 | return 0; |
14830 | } | ||||
14831 | |||||
14832 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14833 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14834 | ac_cv_posix_semaphores_enabled=yes |
14835 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14836 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14837 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14838 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14839 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14840 | fi |
14841 | |||||
14842 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14843 | fi |
14844 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
14846 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14847 | if test $ac_cv_posix_semaphores_enabled = no |
14848 | then | ||||
14849 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14850 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14851 | |
14852 | fi | ||||
14853 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14854 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
14856 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14857 | if ${ac_cv_broken_sem_getvalue+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14858 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14859 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14860 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14861 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14862 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14864 | /* end confdefs.h. */ |
14865 | |||||
14866 | #include <unistd.h> | ||||
14867 | #include <fcntl.h> | ||||
14868 | #include <stdio.h> | ||||
14869 | #include <semaphore.h> | ||||
14870 | #include <sys/stat.h> | ||||
14871 | |||||
14872 | int main(void){ | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14873 | 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] | 14874 | int count; |
14875 | int res; | ||||
14876 | if(a==SEM_FAILED){ | ||||
14877 | perror("sem_open"); | ||||
14878 | return 1; | ||||
14879 | |||||
14880 | } | ||||
14881 | res = sem_getvalue(a, &count); | ||||
14882 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14883 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14884 | return res==-1 ? 1 : 0; |
14885 | } | ||||
14886 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14887 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14888 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14889 | ac_cv_broken_sem_getvalue=no |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14890 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14891 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14892 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14893 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14894 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14895 | fi |
14896 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14897 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14898 | fi |
14899 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
14901 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14902 | if test $ac_cv_broken_sem_getvalue = yes |
14903 | then | ||||
14904 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14905 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14906 | |
14907 | fi | ||||
14908 | |||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14909 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> |
14910 | " | ||||
14911 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | ||||
14912 | ac_have_decl=1 | ||||
14913 | else | ||||
14914 | ac_have_decl=0 | ||||
14915 | fi | ||||
14916 | |||||
14917 | cat >>confdefs.h <<_ACEOF | ||||
14918 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | ||||
14919 | _ACEOF | ||||
14920 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | ||||
14921 | " | ||||
14922 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | ||||
14923 | ac_have_decl=1 | ||||
14924 | else | ||||
14925 | ac_have_decl=0 | ||||
14926 | fi | ||||
14927 | |||||
14928 | cat >>confdefs.h <<_ACEOF | ||||
14929 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | ||||
14930 | _ACEOF | ||||
14931 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | ||||
14932 | " | ||||
14933 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | ||||
14934 | ac_have_decl=1 | ||||
14935 | else | ||||
14936 | ac_have_decl=0 | ||||
14937 | fi | ||||
14938 | |||||
14939 | cat >>confdefs.h <<_ACEOF | ||||
14940 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | ||||
14941 | _ACEOF | ||||
14942 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | ||||
14943 | " | ||||
14944 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | ||||
14945 | ac_have_decl=1 | ||||
14946 | else | ||||
14947 | ac_have_decl=0 | ||||
14948 | fi | ||||
14949 | |||||
14950 | cat >>confdefs.h <<_ACEOF | ||||
14951 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | ||||
14952 | _ACEOF | ||||
14953 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | ||||
14954 | " | ||||
14955 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | ||||
14956 | ac_have_decl=1 | ||||
14957 | else | ||||
14958 | ac_have_decl=0 | ||||
14959 | fi | ||||
14960 | |||||
14961 | cat >>confdefs.h <<_ACEOF | ||||
14962 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | ||||
14963 | _ACEOF | ||||
14964 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | ||||
14965 | " | ||||
14966 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | ||||
14967 | ac_have_decl=1 | ||||
14968 | else | ||||
14969 | ac_have_decl=0 | ||||
14970 | fi | ||||
14971 | |||||
14972 | cat >>confdefs.h <<_ACEOF | ||||
14973 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | ||||
14974 | _ACEOF | ||||
14975 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | ||||
14976 | " | ||||
14977 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | ||||
14978 | ac_have_decl=1 | ||||
14979 | else | ||||
14980 | ac_have_decl=0 | ||||
14981 | fi | ||||
14982 | |||||
14983 | cat >>confdefs.h <<_ACEOF | ||||
14984 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | ||||
14985 | _ACEOF | ||||
Michael Felt | c5ae169 | 2017-12-19 13:58:49 +0100 | [diff] [blame] | 14986 | ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> |
14987 | " | ||||
14988 | if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then : | ||||
14989 | ac_have_decl=1 | ||||
14990 | else | ||||
14991 | ac_have_decl=0 | ||||
14992 | fi | ||||
14993 | |||||
14994 | cat >>confdefs.h <<_ACEOF | ||||
14995 | #define HAVE_DECL_RTLD_MEMBER $ac_have_decl | ||||
14996 | _ACEOF | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14997 | |
14998 | |||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14999 | # determine what size digit to use for Python's longs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
15001 | $as_echo_n "checking digit size for Python's longs... " >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15002 | # Check whether --enable-big-digits was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15003 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15004 | enableval=$enable_big_digits; case $enable_big_digits in |
15005 | yes) | ||||
15006 | enable_big_digits=30 ;; | ||||
15007 | no) | ||||
15008 | enable_big_digits=15 ;; | ||||
15009 | 15|30) | ||||
15010 | ;; | ||||
15011 | *) | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15012 | 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] | 15013 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
15015 | $as_echo "$enable_big_digits" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15016 | |
15017 | cat >>confdefs.h <<_ACEOF | ||||
15018 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | ||||
15019 | _ACEOF | ||||
15020 | |||||
15021 | |||||
15022 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
15024 | $as_echo "no value specified" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 15025 | fi |
15026 | |||||
15027 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15028 | # check for wchar.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15029 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15030 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15031 | |
15032 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15033 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15034 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15035 | wchar_h="yes" |
15036 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15037 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15038 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15039 | |
15040 | fi | ||||
15041 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15043 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15044 | # determine wchar_t size |
15045 | if test "$wchar_h" = yes | ||||
15046 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15047 | # 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] | 15048 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
15049 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
15050 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
15052 | $as_echo_n "checking size of wchar_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15053 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15054 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15055 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15056 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
15057 | "; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15059 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15060 | if test "$ac_cv_type_wchar_t" = yes; then |
15061 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
15062 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15063 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15064 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15065 | else |
15066 | ac_cv_sizeof_wchar_t=0 | ||||
15067 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15068 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15070 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
15072 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15073 | |
15074 | |||||
15075 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15076 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15077 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15078 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15079 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15080 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15081 | fi |
15082 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
15084 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15085 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15087 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15088 | |
15089 | #include <tcl.h> | ||||
15090 | #if TCL_UTF_MAX != 6 | ||||
15091 | # error "NOT UCS4_TCL" | ||||
15092 | #endif | ||||
15093 | int | ||||
15094 | main () | ||||
15095 | { | ||||
15096 | |||||
15097 | ; | ||||
15098 | return 0; | ||||
15099 | } | ||||
15100 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15101 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15102 | |
15103 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15104 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15105 | |
15106 | have_ucs4_tcl=yes | ||||
15107 | |||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15108 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
15111 | $as_echo "$have_ucs4_tcl" >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 15112 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15113 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15114 | if test "$wchar_h" = yes |
15115 | then | ||||
15116 | # check whether wchar_t is signed or not | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
15118 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15119 | if ${ac_cv_wchar_t_signed+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15120 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15121 | else |
15122 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15123 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15124 | ac_cv_wchar_t_signed=yes |
15125 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15127 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15128 | |
15129 | #include <wchar.h> | ||||
15130 | int main() | ||||
15131 | { | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15132 | /* Success: exit code 0 */ |
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 15133 | return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15134 | } |
15135 | |||||
15136 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15137 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15138 | ac_cv_wchar_t_signed=yes |
15139 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15140 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15141 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15142 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15143 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15144 | fi |
15145 | |||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 15146 | fi |
15147 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
15149 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15150 | fi |
15151 | |||||
Michael Osipov | 3738fad | 2018-08-24 18:17:19 +0200 | [diff] [blame] | 15152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 |
15153 | $as_echo_n "checking whether wchar_t is usable... " >&6; } | ||||
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 15154 | # 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] | 15155 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 15156 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 15157 | then |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15158 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15159 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15160 | |
Michael Osipov | 3738fad | 2018-08-24 18:17:19 +0200 | [diff] [blame] | 15161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15162 | $as_echo "yes" >&6; } | ||||
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 15163 | else |
Michael Osipov | 3738fad | 2018-08-24 18:17:19 +0200 | [diff] [blame] | 15164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15165 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15166 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15167 | |
15168 | # check for endianness | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
15170 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15171 | if ${ac_cv_c_bigendian+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15172 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15173 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15174 | ac_cv_c_bigendian=unknown |
15175 | # See if we're dealing with a universal compiler. | ||||
15176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15177 | /* end confdefs.h. */ | ||||
15178 | #ifndef __APPLE_CC__ | ||||
15179 | not a universal capable compiler | ||||
15180 | #endif | ||||
15181 | typedef int dummy; | ||||
15182 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15183 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15184 | if ac_fn_c_try_compile "$LINENO"; then : |
15185 | |||||
15186 | # Check for potential -arch flags. It is not universal unless | ||||
15187 | # there are at least two -arch flags with different values. | ||||
15188 | ac_arch= | ||||
15189 | ac_prev= | ||||
15190 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||||
15191 | if test -n "$ac_prev"; then | ||||
15192 | case $ac_word in | ||||
15193 | i?86 | x86_64 | ppc | ppc64) | ||||
15194 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||||
15195 | ac_arch=$ac_word | ||||
15196 | else | ||||
15197 | ac_cv_c_bigendian=universal | ||||
15198 | break | ||||
15199 | fi | ||||
15200 | ;; | ||||
15201 | esac | ||||
15202 | ac_prev= | ||||
15203 | elif test "x$ac_word" = "x-arch"; then | ||||
15204 | ac_prev=arch | ||||
15205 | fi | ||||
15206 | done | ||||
15207 | fi | ||||
15208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
15209 | if test $ac_cv_c_bigendian = unknown; then | ||||
15210 | # See if sys/param.h defines the BYTE_ORDER macro. | ||||
15211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15212 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15213 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15214 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15215 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15216 | int |
15217 | main () | ||||
15218 | { | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15219 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
15220 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||||
15221 | && LITTLE_ENDIAN) | ||||
15222 | bogus endian macros | ||||
15223 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | |
15225 | ; | ||||
15226 | return 0; | ||||
15227 | } | ||||
15228 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15229 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15230 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15232 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15233 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15234 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15236 | int |
15237 | main () | ||||
15238 | { | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15239 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15240 | not big endian |
15241 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15242 | |
15243 | ; | ||||
15244 | return 0; | ||||
15245 | } | ||||
15246 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15247 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15248 | ac_cv_c_bigendian=yes |
15249 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15250 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15251 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15253 | fi |
15254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
15255 | fi | ||||
15256 | if test $ac_cv_c_bigendian = unknown; then | ||||
15257 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||||
15258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15259 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15260 | #include <limits.h> |
15261 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15262 | int |
15263 | main () | ||||
15264 | { | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15265 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
15266 | bogus endian macros | ||||
15267 | #endif | ||||
15268 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15269 | ; |
15270 | return 0; | ||||
15271 | } | ||||
15272 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15273 | if ac_fn_c_try_compile "$LINENO"; then : |
15274 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||||
15275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15276 | /* end confdefs.h. */ | ||||
15277 | #include <limits.h> | ||||
15278 | |||||
15279 | int | ||||
15280 | main () | ||||
15281 | { | ||||
15282 | #ifndef _BIG_ENDIAN | ||||
15283 | not big endian | ||||
15284 | #endif | ||||
15285 | |||||
15286 | ; | ||||
15287 | return 0; | ||||
15288 | } | ||||
15289 | _ACEOF | ||||
15290 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15291 | ac_cv_c_bigendian=yes |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 15292 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15293 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15294 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15296 | fi | ||||
15297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
15298 | fi | ||||
15299 | if test $ac_cv_c_bigendian = unknown; then | ||||
15300 | # Compile a test program. | ||||
15301 | if test "$cross_compiling" = yes; then : | ||||
15302 | # Try to guess by grepping values from an object file. | ||||
15303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15304 | /* end confdefs.h. */ | ||||
15305 | short int ascii_mm[] = | ||||
15306 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||||
15307 | short int ascii_ii[] = | ||||
15308 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||||
15309 | int use_ascii (int i) { | ||||
15310 | return ascii_mm[i] + ascii_ii[i]; | ||||
15311 | } | ||||
15312 | short int ebcdic_ii[] = | ||||
15313 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||||
15314 | short int ebcdic_mm[] = | ||||
15315 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||||
15316 | int use_ebcdic (int i) { | ||||
15317 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||||
15318 | } | ||||
15319 | extern int foo; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15320 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15321 | int |
15322 | main () | ||||
15323 | { | ||||
15324 | return use_ascii (foo) == use_ebcdic (foo); | ||||
15325 | ; | ||||
15326 | return 0; | ||||
15327 | } | ||||
15328 | _ACEOF | ||||
15329 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
15330 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||||
15331 | ac_cv_c_bigendian=yes | ||||
15332 | fi | ||||
15333 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||||
15334 | if test "$ac_cv_c_bigendian" = unknown; then | ||||
15335 | ac_cv_c_bigendian=no | ||||
15336 | else | ||||
15337 | # finding both strings is unlikely to happen, but who knows? | ||||
15338 | ac_cv_c_bigendian=unknown | ||||
15339 | fi | ||||
15340 | fi | ||||
15341 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15342 | 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] | 15343 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15345 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15346 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15347 | int |
15348 | main () | ||||
15349 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15350 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15351 | /* Are we little or big endian? From Harbison&Steele. */ |
15352 | union | ||||
15353 | { | ||||
15354 | long int l; | ||||
15355 | char c[sizeof (long int)]; | ||||
15356 | } u; | ||||
15357 | u.l = 1; | ||||
15358 | return u.c[sizeof (long int) - 1] == 1; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15359 | |
15360 | ; | ||||
15361 | return 0; | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15362 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15363 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15364 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15365 | ac_cv_c_bigendian=no |
15366 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15367 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15368 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15369 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15370 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15371 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15372 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15373 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15374 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
15376 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||||
15377 | case $ac_cv_c_bigendian in #( | ||||
15378 | yes) | ||||
15379 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||||
15380 | ;; #( | ||||
15381 | no) | ||||
15382 | ;; #( | ||||
15383 | universal) | ||||
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 15384 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15385 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 15386 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15387 | ;; #( |
15388 | *) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15389 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15390 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15391 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15392 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15393 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15394 | # ABI version string for Python extension modules. This appears between the |
15395 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated | ||||
15396 | # from the following attributes which affect the ABI of this Python build (in | ||||
15397 | # this order): | ||||
15398 | # | ||||
15399 | # * The Python implementation (always 'cpython-' for us) | ||||
15400 | # * The major and minor version numbers | ||||
15401 | # * --with-pydebug (adds a 'd') | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15402 | # |
15403 | # 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] | 15404 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
15405 | # libraries would be named 'foo.cpython-32dmu.so'. | ||||
Victor Stinner | 6c44fde | 2019-04-24 16:10:09 +0200 | [diff] [blame] | 15406 | # |
15407 | # In Python 3.2 and older, --with-wide-unicode added a 'u' flag. | ||||
15408 | # In Python 3.7 and older, --with-pymalloc added a 'm' flag. | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15409 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 15410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
15411 | $as_echo_n "checking ABIFLAGS... " >&6; } | ||||
15412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | ||||
15413 | $as_echo "$ABIFLAGS" >&6; } | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
15415 | $as_echo_n "checking SOABI... " >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 15416 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 15417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
15418 | $as_echo "$SOABI" >&6; } | ||||
15419 | |||||
Victor Stinner | 6d13e5b | 2019-04-26 18:56:19 +0200 | [diff] [blame] | 15420 | # Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI |
15421 | if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then | ||||
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 15422 | # Similar to SOABI but remove "d" flag from ABIFLAGS |
15423 | |||||
15424 | ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | ||||
15425 | |||||
15426 | cat >>confdefs.h <<_ACEOF | ||||
15427 | #define ALT_SOABI "${ALT_SOABI}" | ||||
15428 | _ACEOF | ||||
15429 | |||||
15430 | fi | ||||
15431 | |||||
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 15432 | |
15433 | case $ac_sys_system in | ||||
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 15434 | Linux*|GNU*|Darwin|VxWorks) |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 15435 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; |
15436 | *) | ||||
15437 | EXT_SUFFIX=${SHLIB_SUFFIX};; | ||||
15438 | esac | ||||
15439 | |||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 15440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
15441 | $as_echo_n "checking LDVERSION... " >&6; } | ||||
15442 | LDVERSION='$(VERSION)$(ABIFLAGS)' | ||||
15443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | ||||
15444 | $as_echo "$LDVERSION" >&6; } | ||||
15445 | |||||
E. M. Bray | c994c8f | 2019-05-24 17:33:47 +0200 | [diff] [blame] | 15446 | # On Android and Cygwin the shared libraries must be linked with libpython. |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 15447 | |
E. M. Bray | b1fc417 | 2019-05-24 18:39:39 +0200 | [diff] [blame] | 15448 | if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 15449 | LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" |
E. M. Bray | b1fc417 | 2019-05-24 18:39:39 +0200 | [diff] [blame] | 15450 | else |
15451 | LIBPYTHON='' | ||||
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 15452 | fi |
15453 | |||||
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 15454 | |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 15455 | |
15456 | BINLIBDEST='$(LIBDIR)/python$(VERSION)' | ||||
15457 | |||||
15458 | |||||
15459 | # Check for --with-platlibdir | ||||
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15460 | # /usr/$LIDIRNAME/python$VERSION |
15461 | |||||
15462 | PLATLIBDIR="lib" | ||||
15463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5 | ||||
15464 | $as_echo_n "checking for --with-platlibdir... " >&6; } | ||||
15465 | |||||
15466 | # Check whether --with-platlibdir was given. | ||||
15467 | if test "${with_platlibdir+set}" = set; then : | ||||
15468 | withval=$with_platlibdir; | ||||
15469 | # ignore 3 options: | ||||
15470 | # --with-platlibdir | ||||
15471 | # --with-platlibdir= | ||||
15472 | # --without-platlibdir | ||||
15473 | if test -n "$withval" -a "$withval" != yes -a "$withval" != no | ||||
15474 | then | ||||
15475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
15476 | $as_echo "yes" >&6; } | ||||
15477 | PLATLIBDIR="$withval" | ||||
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 15478 | BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)' |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 15479 | else |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 15480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15481 | $as_echo "no" >&6; } | ||||
15482 | fi | ||||
15483 | else | ||||
15484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
15485 | $as_echo "no" >&6; } | ||||
15486 | fi | ||||
15487 | |||||
15488 | |||||
15489 | |||||
15490 | |||||
15491 | if test x$PLATFORM_TRIPLET = x; then | ||||
15492 | LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}" | ||||
15493 | else | ||||
15494 | LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | ||||
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 15495 | fi |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 15496 | |
15497 | |||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15498 | # Check whether right shifting a negative integer extends the sign bit |
15499 | # or fills with zeros (like the Cray J90, according to Tim Peters). | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
15501 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15502 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15503 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15504 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15505 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15506 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15507 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15508 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15510 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15511 | |
15512 | int main() | ||||
15513 | { | ||||
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 15514 | return (((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15515 | } |
15516 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15517 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15518 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15519 | ac_cv_rshift_extends_sign=yes |
15520 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15521 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15522 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15523 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15524 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15525 | fi |
15526 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15527 | fi |
15528 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
15530 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15531 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15532 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15533 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15534 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15535 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15536 | fi |
15537 | |||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15538 | # check for getc_unlocked and related locking functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
15540 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15541 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15542 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15543 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15544 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15546 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15547 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15548 | int |
15549 | main () | ||||
15550 | { | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15551 | |
15552 | FILE *f = fopen("/dev/null", "r"); | ||||
15553 | flockfile(f); | ||||
15554 | getc_unlocked(f); | ||||
15555 | funlockfile(f); | ||||
15556 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15557 | ; |
15558 | return 0; | ||||
15559 | } | ||||
15560 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15561 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15562 | ac_cv_have_getc_unlocked=yes |
15563 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15564 | ac_cv_have_getc_unlocked=no |
15565 | fi | ||||
15566 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15567 | conftest$ac_exeext conftest.$ac_ext | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15568 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15569 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
15571 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15572 | if test "$ac_cv_have_getc_unlocked" = yes |
15573 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15574 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15575 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15576 | |
15577 | fi | ||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15578 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15579 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15580 | # save the value of LIBS so we don't actually link Python with readline |
15581 | LIBS_no_readline=$LIBS | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15582 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15583 | # On some systems we need to link readline to a termcap compatible |
15584 | # library. NOTE: Keep the precedence of listed libraries synchronised | ||||
15585 | # with setup.py. | ||||
15586 | py_cv_lib_readline=no | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
15588 | $as_echo_n "checking how to link readline libs... " >&6; } | ||||
doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 15589 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15590 | if test -z "$py_libtermcap"; then |
15591 | READLINE_LIBS="-lreadline" | ||||
15592 | else | ||||
15593 | READLINE_LIBS="-lreadline -l$py_libtermcap" | ||||
15594 | fi | ||||
15595 | LIBS="$READLINE_LIBS $LIBS_no_readline" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15597 | /* end confdefs.h. */ |
15598 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15599 | /* Override any GCC internal prototype to avoid an error. |
15600 | Use char because int might match the return type of a GCC | ||||
15601 | builtin and then its argument prototype would still apply. */ | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15602 | #ifdef __cplusplus |
15603 | extern "C" | ||||
15604 | #endif | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15605 | char readline (); |
15606 | int | ||||
15607 | main () | ||||
15608 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15609 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15610 | ; |
15611 | return 0; | ||||
15612 | } | ||||
15613 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15614 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15615 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15616 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15617 | rm -f core conftest.err conftest.$ac_objext \ |
15618 | conftest$ac_exeext conftest.$ac_ext | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15619 | if test $py_cv_lib_readline = yes; then |
15620 | break | ||||
15621 | fi | ||||
15622 | done | ||||
15623 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | ||||
15624 | #AC_SUBST([READLINE_LIBS]) | ||||
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 15625 | if test $py_cv_lib_readline = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
15627 | $as_echo "none" >&6; } | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15628 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
15630 | $as_echo "$READLINE_LIBS" >&6; } | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15631 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15632 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15633 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15634 | fi |
15635 | |||||
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15636 | # check for readline 2.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15638 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15639 | #include <readline/readline.h> |
15640 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15641 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15642 | have_readline=yes |
15643 | else | ||||
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15644 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15645 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15646 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15647 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15648 | if test $have_readline = yes |
15649 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15651 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15652 | #include <readline/readline.h> |
15653 | |||||
15654 | _ACEOF | ||||
15655 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15656 | $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15657 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15658 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15659 | |
15660 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15661 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15662 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15664 | /* end confdefs.h. */ |
15665 | #include <readline/readline.h> | ||||
15666 | |||||
15667 | _ACEOF | ||||
15668 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15669 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15670 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15671 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15672 | |
15673 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15674 | rm -f conftest* |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15675 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15676 | fi |
15677 | |||||
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15678 | # check for readline 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
15680 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15681 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15682 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15684 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15685 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15687 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15688 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15689 | /* Override any GCC internal prototype to avoid an error. |
15690 | Use char because int might match the return type of a GCC | ||||
15691 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15692 | #ifdef __cplusplus |
15693 | extern "C" | ||||
15694 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15695 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15696 | int |
15697 | main () | ||||
15698 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15699 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15700 | ; |
15701 | return 0; | ||||
15702 | } | ||||
15703 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15704 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15705 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15706 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15707 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15708 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15709 | rm -f core conftest.err conftest.$ac_objext \ |
15710 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15711 | LIBS=$ac_check_lib_save_LIBS |
15712 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
15714 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15715 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15716 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15717 | $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] | 15718 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15719 | fi |
15720 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15721 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15722 | # also in 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
15724 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15725 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15726 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15727 | else |
15728 | ac_check_lib_save_LIBS=$LIBS | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15729 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15731 | /* end confdefs.h. */ |
15732 | |||||
15733 | /* Override any GCC internal prototype to avoid an error. | ||||
15734 | Use char because int might match the return type of a GCC | ||||
15735 | builtin and then its argument prototype would still apply. */ | ||||
15736 | #ifdef __cplusplus | ||||
15737 | extern "C" | ||||
15738 | #endif | ||||
15739 | char rl_completion_display_matches_hook (); | ||||
15740 | int | ||||
15741 | main () | ||||
15742 | { | ||||
15743 | return rl_completion_display_matches_hook (); | ||||
15744 | ; | ||||
15745 | return 0; | ||||
15746 | } | ||||
15747 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15748 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15749 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
15750 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15751 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15752 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15753 | rm -f core conftest.err conftest.$ac_objext \ |
15754 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15755 | LIBS=$ac_check_lib_save_LIBS |
15756 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
15758 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15759 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15760 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15761 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15762 | |
15763 | fi | ||||
15764 | |||||
15765 | |||||
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15766 | # also in 4.0, but not in editline |
15767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | ||||
15768 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | ||||
15769 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | ||||
15770 | $as_echo_n "(cached) " >&6 | ||||
15771 | else | ||||
15772 | ac_check_lib_save_LIBS=$LIBS | ||||
15773 | LIBS="-lreadline $READLINE_LIBS $LIBS" | ||||
15774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15775 | /* end confdefs.h. */ | ||||
15776 | |||||
15777 | /* Override any GCC internal prototype to avoid an error. | ||||
15778 | Use char because int might match the return type of a GCC | ||||
15779 | builtin and then its argument prototype would still apply. */ | ||||
15780 | #ifdef __cplusplus | ||||
15781 | extern "C" | ||||
15782 | #endif | ||||
15783 | char rl_resize_terminal (); | ||||
15784 | int | ||||
15785 | main () | ||||
15786 | { | ||||
15787 | return rl_resize_terminal (); | ||||
15788 | ; | ||||
15789 | return 0; | ||||
15790 | } | ||||
15791 | _ACEOF | ||||
15792 | if ac_fn_c_try_link "$LINENO"; then : | ||||
15793 | ac_cv_lib_readline_rl_resize_terminal=yes | ||||
15794 | else | ||||
15795 | ac_cv_lib_readline_rl_resize_terminal=no | ||||
15796 | fi | ||||
15797 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15798 | conftest$ac_exeext conftest.$ac_ext | ||||
15799 | LIBS=$ac_check_lib_save_LIBS | ||||
15800 | fi | ||||
15801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | ||||
15802 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | ||||
15803 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | ||||
15804 | |||||
15805 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | ||||
15806 | |||||
15807 | fi | ||||
15808 | |||||
15809 | |||||
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15810 | # check for readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
15812 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15813 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15814 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15815 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15816 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15817 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15819 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15820 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15821 | /* Override any GCC internal prototype to avoid an error. |
15822 | Use char because int might match the return type of a GCC | ||||
15823 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15824 | #ifdef __cplusplus |
15825 | extern "C" | ||||
15826 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15827 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15828 | int |
15829 | main () | ||||
15830 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15831 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15832 | ; |
15833 | return 0; | ||||
15834 | } | ||||
15835 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15836 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15837 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15838 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15839 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15840 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15841 | rm -f core conftest.err conftest.$ac_objext \ |
15842 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15843 | LIBS=$ac_check_lib_save_LIBS |
15844 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
15846 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15847 | if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15848 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15849 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15850 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15851 | fi |
15852 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15853 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15854 | # also in readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15856 | /* end confdefs.h. */ |
15857 | #include <readline/readline.h> | ||||
15858 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15859 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15860 | have_readline=yes |
15861 | else | ||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15862 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15863 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15864 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15865 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15866 | if test $have_readline = yes |
15867 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15869 | /* end confdefs.h. */ |
15870 | #include <readline/readline.h> | ||||
15871 | |||||
15872 | _ACEOF | ||||
15873 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15874 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15875 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15876 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15877 | |
15878 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15879 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15880 | |
15881 | fi | ||||
15882 | |||||
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 |
15884 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | ||||
15885 | if ${ac_cv_lib_readline_append_history+:} false; then : | ||||
15886 | $as_echo_n "(cached) " >&6 | ||||
15887 | else | ||||
15888 | ac_check_lib_save_LIBS=$LIBS | ||||
15889 | LIBS="-lreadline $READLINE_LIBS $LIBS" | ||||
15890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15891 | /* end confdefs.h. */ | ||||
15892 | |||||
15893 | /* Override any GCC internal prototype to avoid an error. | ||||
15894 | Use char because int might match the return type of a GCC | ||||
15895 | builtin and then its argument prototype would still apply. */ | ||||
15896 | #ifdef __cplusplus | ||||
15897 | extern "C" | ||||
15898 | #endif | ||||
15899 | char append_history (); | ||||
15900 | int | ||||
15901 | main () | ||||
15902 | { | ||||
15903 | return append_history (); | ||||
15904 | ; | ||||
15905 | return 0; | ||||
15906 | } | ||||
15907 | _ACEOF | ||||
15908 | if ac_fn_c_try_link "$LINENO"; then : | ||||
15909 | ac_cv_lib_readline_append_history=yes | ||||
15910 | else | ||||
15911 | ac_cv_lib_readline_append_history=no | ||||
15912 | fi | ||||
15913 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15914 | conftest$ac_exeext conftest.$ac_ext | ||||
15915 | LIBS=$ac_check_lib_save_LIBS | ||||
15916 | fi | ||||
15917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | ||||
15918 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | ||||
15919 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | ||||
15920 | |||||
15921 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | ||||
15922 | |||||
15923 | fi | ||||
15924 | |||||
15925 | |||||
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15926 | # End of readline checks: restore LIBS |
15927 | LIBS=$LIBS_no_readline | ||||
15928 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
15930 | $as_echo_n "checking for broken nice()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15931 | if ${ac_cv_broken_nice+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15932 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15934 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15935 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15936 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15937 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15939 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15940 | |
Benjamin Peterson | b84df2d | 2019-02-25 21:37:59 -0800 | [diff] [blame] | 15941 | #include <stdlib.h> |
15942 | #include <unistd.h> | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15943 | int main() |
15944 | { | ||||
15945 | int val1 = nice(1); | ||||
15946 | if (val1 != -1 && val1 == nice(2)) | ||||
15947 | exit(0); | ||||
15948 | exit(1); | ||||
15949 | } | ||||
15950 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15951 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15952 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15953 | ac_cv_broken_nice=yes |
15954 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15955 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15956 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15957 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15958 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15959 | fi |
15960 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15961 | fi |
15962 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
15964 | $as_echo "$ac_cv_broken_nice" >&6; } | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15965 | if test "$ac_cv_broken_nice" = yes |
15966 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15967 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15968 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15969 | |
15970 | fi | ||||
15971 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
15973 | $as_echo_n "checking for broken poll()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15974 | if ${ac_cv_broken_poll+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15975 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15976 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15977 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15978 | ac_cv_broken_poll=no |
15979 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15981 | /* end confdefs.h. */ |
15982 | |||||
15983 | #include <poll.h> | ||||
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 15984 | #include <unistd.h> |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15985 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15986 | int main() |
15987 | { | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15988 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15989 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15990 | |
15991 | close (42); | ||||
15992 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15993 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15994 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15995 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15996 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15997 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15998 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15999 | return 1; |
16000 | } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16001 | |
16002 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16003 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16004 | ac_cv_broken_poll=yes |
16005 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16006 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16007 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16008 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16009 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16010 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16011 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16012 | fi |
16013 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
16015 | $as_echo "$ac_cv_broken_poll" >&6; } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16016 | if test "$ac_cv_broken_poll" = yes |
16017 | then | ||||
16018 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16019 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 16020 | |
16021 | fi | ||||
16022 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 16023 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
16025 | $as_echo_n "checking for working tzset()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16026 | if ${ac_cv_working_tzset+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16027 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16028 | else |
16029 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16030 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16031 | ac_cv_working_tzset=no |
16032 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16034 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16035 | |
16036 | #include <stdlib.h> | ||||
16037 | #include <time.h> | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16038 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16039 | |
16040 | #if HAVE_TZNAME | ||||
16041 | extern char *tzname[]; | ||||
16042 | #endif | ||||
16043 | |||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16044 | int main() |
16045 | { | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16046 | /* Note that we need to ensure that not only does tzset(3) |
16047 | do 'something' with localtime, but it works as documented | ||||
16048 | 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] | 16049 | This includes making sure that tzname is set properly if |
16050 | tm->tm_zone does not exist since it is the alternative way | ||||
16051 | of getting timezone info. | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16052 | |
16053 | Red Hat 6.2 doesn't understand the southern hemisphere | ||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 16054 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16055 | */ |
16056 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 16057 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16058 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
16059 | |||||
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 16060 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16061 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16062 | if (localtime(&groundhogday)->tm_hour != 0) |
16063 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16064 | #if HAVE_TZNAME |
16065 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ | ||||
16066 | if (strcmp(tzname[0], "UTC") || | ||||
16067 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | ||||
16068 | exit(1); | ||||
16069 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16070 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 16071 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16072 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16073 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16074 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16075 | #if HAVE_TZNAME |
16076 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | ||||
16077 | exit(1); | ||||
16078 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16079 | |
16080 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | ||||
16081 | tzset(); | ||||
16082 | if (localtime(&groundhogday)->tm_hour != 11) | ||||
16083 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16084 | #if HAVE_TZNAME |
16085 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | ||||
16086 | exit(1); | ||||
16087 | #endif | ||||
16088 | |||||
16089 | #if HAVE_STRUCT_TM_TM_ZONE | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16090 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
16091 | exit(1); | ||||
16092 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | ||||
16093 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16094 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 16095 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16096 | exit(0); |
16097 | } | ||||
16098 | |||||
16099 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16100 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16101 | ac_cv_working_tzset=yes |
16102 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16103 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16104 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16105 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16106 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16107 | fi |
16108 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16109 | fi |
16110 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
16112 | $as_echo "$ac_cv_working_tzset" >&6; } | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16113 | if test "$ac_cv_working_tzset" = yes |
16114 | then | ||||
16115 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16116 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16117 | |
16118 | fi | ||||
16119 | |||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16120 | # Look for subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
16122 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16123 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16124 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16125 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16127 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16128 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16129 | int |
16130 | main () | ||||
16131 | { | ||||
16132 | |||||
16133 | struct stat st; | ||||
16134 | st.st_mtim.tv_nsec = 1; | ||||
16135 | |||||
16136 | ; | ||||
16137 | return 0; | ||||
16138 | } | ||||
16139 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16140 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16141 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16142 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16143 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16144 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16146 | fi | ||||
16147 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
16149 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | ||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16150 | if test "$ac_cv_stat_tv_nsec" = yes |
16151 | then | ||||
16152 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16153 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16154 | |
16155 | fi | ||||
16156 | |||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16157 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
16159 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16160 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16161 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16162 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16164 | /* end confdefs.h. */ |
16165 | #include <sys/stat.h> | ||||
16166 | int | ||||
16167 | main () | ||||
16168 | { | ||||
16169 | |||||
16170 | struct stat st; | ||||
16171 | st.st_mtimespec.tv_nsec = 1; | ||||
16172 | |||||
16173 | ; | ||||
16174 | return 0; | ||||
16175 | } | ||||
16176 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16177 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16178 | ac_cv_stat_tv_nsec2=yes |
16179 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16180 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16181 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16183 | fi | ||||
16184 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
16186 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | ||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16187 | if test "$ac_cv_stat_tv_nsec2" = yes |
16188 | then | ||||
16189 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16190 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16191 | |
16192 | fi | ||||
16193 | |||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16194 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 16195 | ac_save_cppflags="$CPPFLAGS" |
Xavier de Gaye | e13c320 | 2016-12-13 16:04:14 +0100 | [diff] [blame] | 16196 | if test "$cross_compiling" = no; then |
16197 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | ||||
16198 | fi | ||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 16199 | |
16200 | for ac_header in curses.h ncurses.h | ||||
16201 | do : | ||||
16202 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
16203 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
16204 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
16205 | cat >>confdefs.h <<_ACEOF | ||||
16206 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
16207 | _ACEOF | ||||
16208 | |||||
16209 | fi | ||||
16210 | |||||
16211 | done | ||||
16212 | |||||
16213 | |||||
16214 | # On Solaris, term.h requires curses.h | ||||
16215 | for ac_header in term.h | ||||
16216 | do : | ||||
16217 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | ||||
16218 | #ifdef HAVE_CURSES_H | ||||
16219 | #include <curses.h> | ||||
16220 | #endif | ||||
16221 | |||||
16222 | " | ||||
16223 | if test "x$ac_cv_header_term_h" = xyes; then : | ||||
16224 | cat >>confdefs.h <<_ACEOF | ||||
16225 | #define HAVE_TERM_H 1 | ||||
16226 | _ACEOF | ||||
16227 | |||||
16228 | fi | ||||
16229 | |||||
16230 | done | ||||
16231 | |||||
16232 | |||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16233 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
16235 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16236 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16237 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16238 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16240 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16241 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16242 | int |
16243 | main () | ||||
16244 | { | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16245 | |
16246 | int rtn; | ||||
16247 | rtn = mvwdelch(0,0,0); | ||||
16248 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16249 | ; |
16250 | return 0; | ||||
16251 | } | ||||
16252 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16253 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16254 | ac_cv_mvwdelch_is_expression=yes |
16255 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16256 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16257 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16259 | fi | ||||
16260 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
16262 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16263 | |
16264 | if test "$ac_cv_mvwdelch_is_expression" = yes | ||||
16265 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16266 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16267 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16268 | |
16269 | fi | ||||
16270 | |||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16271 | # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque |
16272 | # structs since version 5.7. If the macro is defined as zero before including | ||||
16273 | # [n]curses.h, ncurses will expose fields of the structs regardless of the | ||||
16274 | # configuration. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
16276 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16277 | if ${ac_cv_window_has_flags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16278 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16279 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16281 | /* end confdefs.h. */ |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16282 | |
16283 | #define NCURSES_OPAQUE 0 | ||||
16284 | #include <curses.h> | ||||
16285 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16286 | int |
16287 | main () | ||||
16288 | { | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16289 | |
16290 | WINDOW *w; | ||||
16291 | w->_flags = 0; | ||||
16292 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16293 | ; |
16294 | return 0; | ||||
16295 | } | ||||
16296 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16297 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16298 | ac_cv_window_has_flags=yes |
16299 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16300 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16301 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16303 | fi | ||||
16304 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
16306 | $as_echo "$ac_cv_window_has_flags" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16307 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16308 | |
16309 | if test "$ac_cv_window_has_flags" = yes | ||||
16310 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16311 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16312 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16313 | |
16314 | fi | ||||
16315 | |||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 16316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 |
16317 | $as_echo_n "checking for is_pad... " >&6; } | ||||
16318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16319 | /* end confdefs.h. */ | ||||
16320 | #include <curses.h> | ||||
16321 | int | ||||
16322 | main () | ||||
16323 | { | ||||
16324 | |||||
16325 | #ifndef is_pad | ||||
16326 | void *x=is_pad | ||||
16327 | #endif | ||||
16328 | |||||
16329 | ; | ||||
16330 | return 0; | ||||
16331 | } | ||||
16332 | _ACEOF | ||||
16333 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16334 | |||||
16335 | $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h | ||||
16336 | |||||
16337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16338 | $as_echo "yes" >&6; } | ||||
16339 | else | ||||
16340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16341 | $as_echo "no" >&6; } | ||||
16342 | |||||
16343 | fi | ||||
16344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16345 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
16347 | $as_echo_n "checking for is_term_resized... " >&6; } | ||||
16348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16349 | /* end confdefs.h. */ |
16350 | #include <curses.h> | ||||
16351 | int | ||||
16352 | main () | ||||
16353 | { | ||||
16354 | void *x=is_term_resized | ||||
16355 | ; | ||||
16356 | return 0; | ||||
16357 | } | ||||
16358 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16359 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16360 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16361 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16362 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16364 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16365 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16367 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16368 | |
16369 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16371 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
16373 | $as_echo_n "checking for resize_term... " >&6; } | ||||
16374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16375 | /* end confdefs.h. */ |
16376 | #include <curses.h> | ||||
16377 | int | ||||
16378 | main () | ||||
16379 | { | ||||
16380 | void *x=resize_term | ||||
16381 | ; | ||||
16382 | return 0; | ||||
16383 | } | ||||
16384 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16385 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16386 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16387 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16388 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16390 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16391 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16393 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16394 | |
16395 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16397 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
16399 | $as_echo_n "checking for resizeterm... " >&6; } | ||||
16400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16401 | /* end confdefs.h. */ |
16402 | #include <curses.h> | ||||
16403 | int | ||||
16404 | main () | ||||
16405 | { | ||||
16406 | void *x=resizeterm | ||||
16407 | ; | ||||
16408 | return 0; | ||||
16409 | } | ||||
16410 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16411 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16412 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16413 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16414 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16416 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16417 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16419 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16420 | |
16421 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16423 | |
16424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 | ||||
16425 | $as_echo_n "checking for immedok... " >&6; } | ||||
16426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16427 | /* end confdefs.h. */ | ||||
16428 | #include <curses.h> | ||||
16429 | int | ||||
16430 | main () | ||||
16431 | { | ||||
16432 | |||||
16433 | #ifndef immedok | ||||
16434 | void *x=immedok | ||||
16435 | #endif | ||||
16436 | |||||
16437 | ; | ||||
16438 | return 0; | ||||
16439 | } | ||||
16440 | _ACEOF | ||||
16441 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16442 | |||||
16443 | $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h | ||||
16444 | |||||
16445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16446 | $as_echo "yes" >&6; } | ||||
16447 | else | ||||
16448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16449 | $as_echo "no" >&6; } | ||||
16450 | |||||
16451 | fi | ||||
16452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16453 | |||||
16454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 | ||||
16455 | $as_echo_n "checking for syncok... " >&6; } | ||||
16456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16457 | /* end confdefs.h. */ | ||||
16458 | #include <curses.h> | ||||
16459 | int | ||||
16460 | main () | ||||
16461 | { | ||||
16462 | |||||
16463 | #ifndef syncok | ||||
16464 | void *x=syncok | ||||
16465 | #endif | ||||
16466 | |||||
16467 | ; | ||||
16468 | return 0; | ||||
16469 | } | ||||
16470 | _ACEOF | ||||
16471 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16472 | |||||
16473 | $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h | ||||
16474 | |||||
16475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16476 | $as_echo "yes" >&6; } | ||||
16477 | else | ||||
16478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16479 | $as_echo "no" >&6; } | ||||
16480 | |||||
16481 | fi | ||||
16482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16483 | |||||
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 16484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 |
16485 | $as_echo_n "checking for wchgat... " >&6; } | ||||
16486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16487 | /* end confdefs.h. */ | ||||
16488 | #include <curses.h> | ||||
16489 | int | ||||
16490 | main () | ||||
16491 | { | ||||
16492 | |||||
16493 | #ifndef wchgat | ||||
16494 | void *x=wchgat | ||||
16495 | #endif | ||||
16496 | |||||
16497 | ; | ||||
16498 | return 0; | ||||
16499 | } | ||||
16500 | _ACEOF | ||||
16501 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16502 | |||||
16503 | $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h | ||||
16504 | |||||
16505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16506 | $as_echo "yes" >&6; } | ||||
16507 | else | ||||
16508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16509 | $as_echo "no" >&6; } | ||||
16510 | |||||
16511 | fi | ||||
16512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16513 | |||||
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 16514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 |
16515 | $as_echo_n "checking for filter... " >&6; } | ||||
16516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16517 | /* end confdefs.h. */ | ||||
16518 | #include <curses.h> | ||||
16519 | int | ||||
16520 | main () | ||||
16521 | { | ||||
16522 | |||||
16523 | #ifndef filter | ||||
16524 | void *x=filter | ||||
16525 | #endif | ||||
16526 | |||||
16527 | ; | ||||
16528 | return 0; | ||||
16529 | } | ||||
16530 | _ACEOF | ||||
16531 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16532 | |||||
16533 | $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h | ||||
16534 | |||||
16535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16536 | $as_echo "yes" >&6; } | ||||
16537 | else | ||||
16538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16539 | $as_echo "no" >&6; } | ||||
16540 | |||||
16541 | fi | ||||
16542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16543 | |||||
16544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 | ||||
16545 | $as_echo_n "checking for has_key... " >&6; } | ||||
16546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16547 | /* end confdefs.h. */ | ||||
16548 | #include <curses.h> | ||||
16549 | int | ||||
16550 | main () | ||||
16551 | { | ||||
16552 | |||||
16553 | #ifndef has_key | ||||
16554 | void *x=has_key | ||||
16555 | #endif | ||||
16556 | |||||
16557 | ; | ||||
16558 | return 0; | ||||
16559 | } | ||||
16560 | _ACEOF | ||||
16561 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16562 | |||||
16563 | $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h | ||||
16564 | |||||
16565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16566 | $as_echo "yes" >&6; } | ||||
16567 | else | ||||
16568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16569 | $as_echo "no" >&6; } | ||||
16570 | |||||
16571 | fi | ||||
16572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16573 | |||||
16574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 | ||||
16575 | $as_echo_n "checking for typeahead... " >&6; } | ||||
16576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16577 | /* end confdefs.h. */ | ||||
16578 | #include <curses.h> | ||||
16579 | int | ||||
16580 | main () | ||||
16581 | { | ||||
16582 | |||||
16583 | #ifndef typeahead | ||||
16584 | void *x=typeahead | ||||
16585 | #endif | ||||
16586 | |||||
16587 | ; | ||||
16588 | return 0; | ||||
16589 | } | ||||
16590 | _ACEOF | ||||
16591 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16592 | |||||
16593 | $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h | ||||
16594 | |||||
16595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16596 | $as_echo "yes" >&6; } | ||||
16597 | else | ||||
16598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16599 | $as_echo "no" >&6; } | ||||
16600 | |||||
16601 | fi | ||||
16602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16603 | |||||
16604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 | ||||
16605 | $as_echo_n "checking for use_env... " >&6; } | ||||
16606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16607 | /* end confdefs.h. */ | ||||
16608 | #include <curses.h> | ||||
16609 | int | ||||
16610 | main () | ||||
16611 | { | ||||
16612 | |||||
16613 | #ifndef use_env | ||||
16614 | void *x=use_env | ||||
16615 | #endif | ||||
16616 | |||||
16617 | ; | ||||
16618 | return 0; | ||||
16619 | } | ||||
16620 | _ACEOF | ||||
16621 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16622 | |||||
16623 | $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h | ||||
16624 | |||||
16625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16626 | $as_echo "yes" >&6; } | ||||
16627 | else | ||||
16628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16629 | $as_echo "no" >&6; } | ||||
16630 | |||||
16631 | fi | ||||
16632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 16633 | # last curses configure check |
16634 | CPPFLAGS=$ac_save_cppflags | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16635 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
16637 | $as_echo "$as_me: checking for device files" >&6;} | ||||
16638 | |||||
16639 | if test "x$cross_compiling" = xyes; then | ||||
16640 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | ||||
16641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | ||||
16642 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
16643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16644 | $as_echo "not set" >&6; } | ||||
16645 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | ||||
16646 | fi | ||||
16647 | if test "${ac_cv_file__dev_ptc+set}" != set; then | ||||
16648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | ||||
16649 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
16650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16651 | $as_echo "not set" >&6; } | ||||
16652 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | ||||
16653 | fi | ||||
16654 | fi | ||||
16655 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
16657 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16658 | if ${ac_cv_file__dev_ptmx+:} false; then : |
16659 | $as_echo_n "(cached) " >&6 | ||||
16660 | else | ||||
16661 | test "$cross_compiling" = yes && | ||||
16662 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16663 | if test -r "/dev/ptmx"; then | ||||
16664 | ac_cv_file__dev_ptmx=yes | ||||
16665 | else | ||||
16666 | ac_cv_file__dev_ptmx=no | ||||
16667 | fi | ||||
16668 | fi | ||||
16669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | ||||
16670 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | ||||
16671 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16672 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16673 | fi |
16674 | |||||
16675 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | ||||
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16676 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16677 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16678 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16679 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
16681 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16682 | if ${ac_cv_file__dev_ptc+:} false; then : |
16683 | $as_echo_n "(cached) " >&6 | ||||
16684 | else | ||||
16685 | test "$cross_compiling" = yes && | ||||
16686 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16687 | if test -r "/dev/ptc"; then | ||||
16688 | ac_cv_file__dev_ptc=yes | ||||
16689 | else | ||||
16690 | ac_cv_file__dev_ptc=no | ||||
16691 | fi | ||||
16692 | fi | ||||
16693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | ||||
16694 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | ||||
16695 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16696 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16697 | fi |
16698 | |||||
16699 | if test "x$ac_cv_file__dev_ptc" = xyes; then | ||||
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16700 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16701 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16702 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16703 | fi |
16704 | |||||
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 16705 | if test $ac_sys_system = Darwin |
16706 | then | ||||
16707 | LIBS="$LIBS -framework CoreFoundation" | ||||
16708 | fi | ||||
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 16709 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
16711 | $as_echo_n "checking for %zd printf() format support... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16712 | if ${ac_cv_have_size_t_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16713 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16714 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16715 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16716 | ac_cv_have_size_t_format="cross -- assuming yes" |
16717 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16718 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16720 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16721 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16722 | #include <stdio.h> |
16723 | #include <stddef.h> | ||||
16724 | #include <string.h> | ||||
16725 | |||||
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16726 | #ifdef HAVE_SYS_TYPES_H |
16727 | #include <sys/types.h> | ||||
16728 | #endif | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16729 | |
16730 | #ifdef HAVE_SSIZE_T | ||||
16731 | typedef ssize_t Py_ssize_t; | ||||
16732 | #elif SIZEOF_VOID_P == SIZEOF_LONG | ||||
16733 | typedef long Py_ssize_t; | ||||
16734 | #else | ||||
16735 | typedef int Py_ssize_t; | ||||
16736 | #endif | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16737 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16738 | int main() |
16739 | { | ||||
16740 | char buffer[256]; | ||||
16741 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16742 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
16743 | return 1; | ||||
16744 | |||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16745 | if (strcmp(buffer, "123")) |
16746 | return 1; | ||||
16747 | |||||
16748 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | ||||
16749 | return 1; | ||||
16750 | |||||
16751 | if (strcmp(buffer, "-123")) | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16752 | return 1; |
16753 | |||||
16754 | return 0; | ||||
16755 | } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16756 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16757 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16758 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16759 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16760 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16761 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16762 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16763 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16764 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16765 | fi |
16766 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16767 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
16769 | $as_echo "$ac_cv_have_size_t_format" >&6; } | ||||
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16770 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16771 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16772 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16773 | |
16774 | fi | ||||
16775 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16776 | 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] | 16777 | #ifdef HAVE_SYS_TYPES_H |
16778 | #include <sys/types.h> | ||||
16779 | #endif | ||||
16780 | #ifdef HAVE_SYS_SOCKET_H | ||||
16781 | #include <sys/socket.h> | ||||
16782 | #endif | ||||
16783 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16784 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16785 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16787 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16788 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16789 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16790 | |
16791 | fi | ||||
16792 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16793 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
16795 | $as_echo_n "checking for broken mbstowcs... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16796 | if ${ac_cv_broken_mbstowcs+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16797 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16798 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16799 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16800 | ac_cv_broken_mbstowcs=no |
16801 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16803 | /* end confdefs.h. */ |
16804 | |||||
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16805 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16806 | #include<stdlib.h> |
16807 | int main() { | ||||
16808 | size_t len = -1; | ||||
16809 | const char *str = "text"; | ||||
16810 | len = mbstowcs(NULL, str, 0); | ||||
16811 | return (len != 4); | ||||
16812 | } | ||||
16813 | |||||
16814 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16815 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16816 | ac_cv_broken_mbstowcs=no |
16817 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16818 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16819 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16820 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16821 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16822 | fi |
16823 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16824 | fi |
16825 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
16827 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16828 | if test "$ac_cv_broken_mbstowcs" = yes |
16829 | then | ||||
16830 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16831 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16832 | |
16833 | fi | ||||
16834 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16835 | # Check for --with-computed-gotos |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
16837 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16838 | |
16839 | # Check whether --with-computed-gotos was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16840 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16841 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16842 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16843 | then |
16844 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16845 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16846 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16848 | $as_echo "yes" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16849 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16850 | if test "$withval" = no |
16851 | then | ||||
16852 | |||||
16853 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | ||||
16854 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16856 | $as_echo "no" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16857 | fi |
16858 | |||||
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16859 | else |
16860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | ||||
16861 | $as_echo "no value specified" >&6; } | ||||
16862 | fi | ||||
16863 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16864 | |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
16866 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | ||||
16867 | if ${ac_cv_computed_gotos+:} false; then : | ||||
16868 | $as_echo_n "(cached) " >&6 | ||||
16869 | else | ||||
16870 | if test "$cross_compiling" = yes; then : | ||||
16871 | if test "${with_computed_gotos+set}" = set; then | ||||
16872 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | ||||
16873 | else | ||||
16874 | ac_cv_computed_gotos=no | ||||
16875 | fi | ||||
16876 | else | ||||
16877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16878 | /* end confdefs.h. */ | ||||
16879 | |||||
16880 | int main(int argc, char **argv) | ||||
16881 | { | ||||
16882 | static void *targets[1] = { &&LABEL1 }; | ||||
16883 | goto LABEL2; | ||||
16884 | LABEL1: | ||||
16885 | return 0; | ||||
16886 | LABEL2: | ||||
16887 | goto *targets[0]; | ||||
16888 | return 1; | ||||
16889 | } | ||||
16890 | |||||
16891 | _ACEOF | ||||
16892 | if ac_fn_c_try_run "$LINENO"; then : | ||||
16893 | ac_cv_computed_gotos=yes | ||||
16894 | else | ||||
16895 | ac_cv_computed_gotos=no | ||||
16896 | fi | ||||
16897 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
16898 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
16899 | fi | ||||
16900 | |||||
16901 | fi | ||||
16902 | |||||
16903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | ||||
16904 | $as_echo "$ac_cv_computed_gotos" >&6; } | ||||
16905 | case "$ac_cv_computed_gotos" in yes*) | ||||
16906 | |||||
16907 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | ||||
16908 | |||||
16909 | esac | ||||
16910 | |||||
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16911 | case $ac_sys_system in |
16912 | AIX*) | ||||
16913 | |||||
16914 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | ||||
16915 | ;; | ||||
16916 | esac | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16917 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16918 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16919 | |
16920 | |||||
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16921 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
16922 | do | ||||
16923 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | ||||
16924 | done | ||||
16925 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16926 | |
Ned Deily | 8d02f91 | 2020-06-25 10:46:44 -0400 | [diff] [blame] | 16927 | SRCDIRS="Parser Objects Python Modules Modules/_io Programs" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
16929 | $as_echo_n "checking for build directories... " >&6; } | ||||
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16930 | for dir in $SRCDIRS; do |
16931 | if test ! -d $dir; then | ||||
16932 | mkdir $dir | ||||
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16933 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16934 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
16936 | $as_echo "done" >&6; } | ||||
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16937 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16938 | # Availability of -O2: |
16939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | ||||
16940 | $as_echo_n "checking for -O2... " >&6; } | ||||
16941 | saved_cflags="$CFLAGS" | ||||
16942 | CFLAGS="-O2" | ||||
16943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16944 | /* end confdefs.h. */ | ||||
16945 | |||||
16946 | int | ||||
16947 | main () | ||||
16948 | { | ||||
16949 | |||||
16950 | |||||
16951 | ; | ||||
16952 | return 0; | ||||
16953 | } | ||||
16954 | _ACEOF | ||||
16955 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16956 | have_O2=yes | ||||
16957 | else | ||||
16958 | have_O2=no | ||||
16959 | fi | ||||
16960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | ||||
16962 | $as_echo "$have_O2" >&6; } | ||||
16963 | CFLAGS="$saved_cflags" | ||||
16964 | |||||
16965 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | ||||
16966 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | ||||
16967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | ||||
16968 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | ||||
16969 | saved_cflags="$CFLAGS" | ||||
16970 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | ||||
16971 | if test "$have_O2" = no; then | ||||
16972 | CFLAGS="" | ||||
16973 | fi | ||||
16974 | if test "$cross_compiling" = yes; then : | ||||
16975 | have_glibc_memmove_bug=undefined | ||||
16976 | else | ||||
16977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16978 | /* end confdefs.h. */ | ||||
16979 | |||||
16980 | #include <stdio.h> | ||||
16981 | #include <stdlib.h> | ||||
16982 | #include <string.h> | ||||
16983 | void foo(void *p, void *q) { memmove(p, q, 19); } | ||||
16984 | int main() { | ||||
16985 | char a[32] = "123456789000000000"; | ||||
16986 | foo(&a[9], a); | ||||
16987 | if (strcmp(a, "123456789123456789000000000") != 0) | ||||
16988 | return 1; | ||||
16989 | foo(a, &a[9]); | ||||
16990 | if (strcmp(a, "123456789000000000") != 0) | ||||
16991 | return 1; | ||||
16992 | return 0; | ||||
16993 | } | ||||
16994 | |||||
16995 | _ACEOF | ||||
16996 | if ac_fn_c_try_run "$LINENO"; then : | ||||
16997 | have_glibc_memmove_bug=no | ||||
16998 | else | ||||
16999 | have_glibc_memmove_bug=yes | ||||
17000 | fi | ||||
17001 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
17002 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
17003 | fi | ||||
17004 | |||||
17005 | CFLAGS="$saved_cflags" | ||||
17006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | ||||
17007 | $as_echo "$have_glibc_memmove_bug" >&6; } | ||||
17008 | if test "$have_glibc_memmove_bug" = yes; then | ||||
17009 | |||||
17010 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | ||||
17011 | |||||
17012 | fi | ||||
17013 | |||||
17014 | if test "$have_gcc_asm_for_x87" = yes; then | ||||
17015 | # Some versions of gcc miscompile inline asm: | ||||
17016 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | ||||
17017 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | ||||
17018 | case $CC in | ||||
17019 | *gcc*) | ||||
17020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | ||||
17021 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | ||||
17022 | saved_cflags="$CFLAGS" | ||||
17023 | CFLAGS="-O2" | ||||
17024 | if test "$cross_compiling" = yes; then : | ||||
17025 | have_ipa_pure_const_bug=undefined | ||||
17026 | else | ||||
17027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17028 | /* end confdefs.h. */ | ||||
17029 | |||||
17030 | __attribute__((noinline)) int | ||||
17031 | foo(int *p) { | ||||
17032 | int r; | ||||
17033 | asm ( "movl \$6, (%1)\n\t" | ||||
17034 | "xorl %0, %0\n\t" | ||||
17035 | : "=r" (r) : "r" (p) : "memory" | ||||
17036 | ); | ||||
17037 | return r; | ||||
17038 | } | ||||
17039 | int main() { | ||||
17040 | int p = 8; | ||||
17041 | if ((foo(&p) ? : p) != 6) | ||||
17042 | return 1; | ||||
17043 | return 0; | ||||
17044 | } | ||||
17045 | |||||
17046 | _ACEOF | ||||
17047 | if ac_fn_c_try_run "$LINENO"; then : | ||||
17048 | have_ipa_pure_const_bug=no | ||||
17049 | else | ||||
17050 | have_ipa_pure_const_bug=yes | ||||
17051 | fi | ||||
17052 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
17053 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
17054 | fi | ||||
17055 | |||||
17056 | CFLAGS="$saved_cflags" | ||||
17057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | ||||
17058 | $as_echo "$have_ipa_pure_const_bug" >&6; } | ||||
17059 | if test "$have_ipa_pure_const_bug" = yes; then | ||||
17060 | |||||
17061 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | ||||
17062 | |||||
17063 | fi | ||||
17064 | ;; | ||||
17065 | esac | ||||
17066 | fi | ||||
17067 | |||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17068 | # Check for stdatomic.h |
17069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | ||||
17070 | $as_echo_n "checking for stdatomic.h... " >&6; } | ||||
17071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17072 | /* end confdefs.h. */ | ||||
17073 | |||||
17074 | |||||
17075 | #include <stdatomic.h> | ||||
Victor Stinner | 028f734 | 2019-10-22 21:53:50 +0200 | [diff] [blame] | 17076 | atomic_int int_var; |
17077 | atomic_uintptr_t uintptr_var; | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17078 | int main() { |
Victor Stinner | 028f734 | 2019-10-22 21:53:50 +0200 | [diff] [blame] | 17079 | atomic_store_explicit(&int_var, 5, memory_order_relaxed); |
17080 | atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); | ||||
17081 | int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); | ||||
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 17082 | return 0; |
17083 | } | ||||
17084 | |||||
17085 | |||||
17086 | _ACEOF | ||||
17087 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17088 | have_stdatomic_h=yes | ||||
17089 | else | ||||
17090 | have_stdatomic_h=no | ||||
17091 | fi | ||||
17092 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17093 | conftest$ac_exeext conftest.$ac_ext | ||||
17094 | |||||
17095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | ||||
17096 | $as_echo "$have_stdatomic_h" >&6; } | ||||
17097 | |||||
17098 | if test "$have_stdatomic_h" = yes; then | ||||
17099 | |||||
17100 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | ||||
17101 | |||||
17102 | fi | ||||
17103 | |||||
17104 | # Check for GCC >= 4.7 __atomic builtins | ||||
17105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | ||||
17106 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | ||||
17107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17108 | /* end confdefs.h. */ | ||||
17109 | |||||
17110 | |||||
17111 | volatile int val = 1; | ||||
17112 | int main() { | ||||
17113 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); | ||||
17114 | return 0; | ||||
17115 | } | ||||
17116 | |||||
17117 | |||||
17118 | _ACEOF | ||||
17119 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17120 | have_builtin_atomic=yes | ||||
17121 | else | ||||
17122 | have_builtin_atomic=no | ||||
17123 | fi | ||||
17124 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17125 | conftest$ac_exeext conftest.$ac_ext | ||||
17126 | |||||
17127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | ||||
17128 | $as_echo "$have_builtin_atomic" >&6; } | ||||
17129 | |||||
17130 | if test "$have_builtin_atomic" = yes; then | ||||
17131 | |||||
17132 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | ||||
17133 | |||||
17134 | fi | ||||
17135 | |||||
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 17136 | # ensurepip option |
17137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | ||||
17138 | $as_echo_n "checking for ensurepip... " >&6; } | ||||
17139 | |||||
17140 | # Check whether --with-ensurepip was given. | ||||
17141 | if test "${with_ensurepip+set}" = set; then : | ||||
17142 | withval=$with_ensurepip; | ||||
17143 | else | ||||
17144 | with_ensurepip=upgrade | ||||
17145 | fi | ||||
17146 | |||||
17147 | case $with_ensurepip in #( | ||||
17148 | yes|upgrade) : | ||||
17149 | ENSUREPIP=upgrade ;; #( | ||||
17150 | install) : | ||||
17151 | ENSUREPIP=install ;; #( | ||||
17152 | no) : | ||||
17153 | ENSUREPIP=no ;; #( | ||||
17154 | *) : | ||||
17155 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | ||||
17156 | esac | ||||
17157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | ||||
17158 | $as_echo "$ENSUREPIP" >&6; } | ||||
17159 | |||||
17160 | |||||
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 17161 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
17162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | ||||
17163 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | ||||
17164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17165 | /* end confdefs.h. */ | ||||
17166 | |||||
17167 | |||||
17168 | #include <dirent.h> | ||||
17169 | |||||
17170 | int main() { | ||||
17171 | struct dirent entry; | ||||
17172 | return entry.d_type == DT_UNKNOWN; | ||||
17173 | } | ||||
17174 | |||||
17175 | |||||
17176 | _ACEOF | ||||
17177 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17178 | have_dirent_d_type=yes | ||||
17179 | else | ||||
17180 | have_dirent_d_type=no | ||||
17181 | fi | ||||
17182 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17183 | conftest$ac_exeext conftest.$ac_ext | ||||
17184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | ||||
17185 | $as_echo "$have_dirent_d_type" >&6; } | ||||
17186 | |||||
17187 | if test "$have_dirent_d_type" = yes; then | ||||
17188 | |||||
17189 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | ||||
17190 | |||||
17191 | fi | ||||
17192 | |||||
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17193 | # check if the Linux getrandom() syscall is available |
17194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | ||||
17195 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | ||||
17196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17197 | /* end confdefs.h. */ | ||||
17198 | |||||
17199 | |||||
Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 17200 | #include <unistd.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17201 | #include <sys/syscall.h> |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 17202 | #include <linux/random.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17203 | |
17204 | int main() { | ||||
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17205 | char buffer[1]; |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17206 | const size_t buflen = sizeof(buffer); |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 17207 | const int flags = GRND_NONBLOCK; |
17208 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | ||||
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17209 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 17210 | return 0; |
17211 | } | ||||
17212 | |||||
17213 | |||||
17214 | _ACEOF | ||||
17215 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17216 | have_getrandom_syscall=yes | ||||
17217 | else | ||||
17218 | have_getrandom_syscall=no | ||||
17219 | fi | ||||
17220 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17221 | conftest$ac_exeext conftest.$ac_ext | ||||
17222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | ||||
17223 | $as_echo "$have_getrandom_syscall" >&6; } | ||||
17224 | |||||
17225 | if test "$have_getrandom_syscall" = yes; then | ||||
17226 | |||||
17227 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | ||||
17228 | |||||
17229 | fi | ||||
17230 | |||||
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 17231 | # check if the getrandom() function is available |
17232 | # the test was written for the Solaris function of <sys/random.h> | ||||
17233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | ||||
17234 | $as_echo_n "checking for the getrandom() function... " >&6; } | ||||
17235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17236 | /* end confdefs.h. */ | ||||
17237 | |||||
17238 | |||||
17239 | #include <sys/random.h> | ||||
17240 | |||||
17241 | int main() { | ||||
17242 | char buffer[1]; | ||||
17243 | const size_t buflen = sizeof(buffer); | ||||
17244 | const int flags = 0; | ||||
17245 | /* ignore the result, Python checks for ENOSYS at runtime */ | ||||
17246 | (void)getrandom(buffer, buflen, flags); | ||||
17247 | return 0; | ||||
17248 | } | ||||
17249 | |||||
17250 | |||||
17251 | _ACEOF | ||||
17252 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17253 | have_getrandom=yes | ||||
17254 | else | ||||
17255 | have_getrandom=no | ||||
17256 | fi | ||||
17257 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17258 | conftest$ac_exeext conftest.$ac_ext | ||||
17259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | ||||
17260 | $as_echo "$have_getrandom" >&6; } | ||||
17261 | |||||
17262 | if test "$have_getrandom" = yes; then | ||||
17263 | |||||
17264 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | ||||
17265 | |||||
17266 | fi | ||||
17267 | |||||
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 17268 | # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c |
17269 | # shm_* may only be available if linking against librt | ||||
17270 | save_LIBS="$LIBS" | ||||
17271 | save_includes_default="$ac_includes_default" | ||||
17272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 | ||||
17273 | $as_echo_n "checking for library containing shm_open... " >&6; } | ||||
17274 | if ${ac_cv_search_shm_open+:} false; then : | ||||
17275 | $as_echo_n "(cached) " >&6 | ||||
17276 | else | ||||
17277 | ac_func_search_save_LIBS=$LIBS | ||||
17278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17279 | /* end confdefs.h. */ | ||||
17280 | |||||
17281 | /* Override any GCC internal prototype to avoid an error. | ||||
17282 | Use char because int might match the return type of a GCC | ||||
17283 | builtin and then its argument prototype would still apply. */ | ||||
17284 | #ifdef __cplusplus | ||||
17285 | extern "C" | ||||
17286 | #endif | ||||
17287 | char shm_open (); | ||||
17288 | int | ||||
17289 | main () | ||||
17290 | { | ||||
17291 | return shm_open (); | ||||
17292 | ; | ||||
17293 | return 0; | ||||
17294 | } | ||||
17295 | _ACEOF | ||||
17296 | for ac_lib in '' rt; do | ||||
17297 | if test -z "$ac_lib"; then | ||||
17298 | ac_res="none required" | ||||
17299 | else | ||||
17300 | ac_res=-l$ac_lib | ||||
17301 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
17302 | fi | ||||
17303 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17304 | ac_cv_search_shm_open=$ac_res | ||||
17305 | fi | ||||
17306 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17307 | conftest$ac_exeext | ||||
17308 | if ${ac_cv_search_shm_open+:} false; then : | ||||
17309 | break | ||||
17310 | fi | ||||
17311 | done | ||||
17312 | if ${ac_cv_search_shm_open+:} false; then : | ||||
17313 | |||||
17314 | else | ||||
17315 | ac_cv_search_shm_open=no | ||||
17316 | fi | ||||
17317 | rm conftest.$ac_ext | ||||
17318 | LIBS=$ac_func_search_save_LIBS | ||||
17319 | fi | ||||
17320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 | ||||
17321 | $as_echo "$ac_cv_search_shm_open" >&6; } | ||||
17322 | ac_res=$ac_cv_search_shm_open | ||||
17323 | if test "$ac_res" != no; then : | ||||
17324 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||||
17325 | |||||
17326 | fi | ||||
17327 | |||||
17328 | if test "$ac_cv_search_shm_open" = "-lrt"; then | ||||
17329 | |||||
17330 | $as_echo "#define SHM_NEEDS_LIBRT 1" >>confdefs.h | ||||
17331 | |||||
17332 | fi | ||||
17333 | for ac_header in sys/mman.h | ||||
17334 | do : | ||||
17335 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" | ||||
17336 | if test "x$ac_cv_header_sys_mman_h" = xyes; then : | ||||
17337 | cat >>confdefs.h <<_ACEOF | ||||
17338 | #define HAVE_SYS_MMAN_H 1 | ||||
17339 | _ACEOF | ||||
17340 | |||||
17341 | fi | ||||
17342 | |||||
17343 | done | ||||
17344 | |||||
17345 | # temporarily override ac_includes_default for AC_CHECK_FUNCS below | ||||
17346 | ac_includes_default="\ | ||||
17347 | ${ac_includes_default} | ||||
17348 | #ifndef __cplusplus | ||||
17349 | # ifdef HAVE_SYS_MMAN_H | ||||
17350 | # include <sys/mman.h> | ||||
17351 | # endif | ||||
17352 | #endif | ||||
17353 | " | ||||
17354 | for ac_func in shm_open shm_unlink | ||||
17355 | do : | ||||
17356 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
17357 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
17358 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
17359 | cat >>confdefs.h <<_ACEOF | ||||
17360 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
17361 | _ACEOF | ||||
17362 | |||||
17363 | fi | ||||
17364 | done | ||||
17365 | |||||
17366 | # we don't want to link with librt always, restore LIBS | ||||
17367 | LIBS="$save_LIBS" | ||||
17368 | ac_includes_default="$save_includes_default" | ||||
17369 | |||||
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 17370 | # Check for usable OpenSSL |
17371 | |||||
17372 | found=false | ||||
17373 | |||||
17374 | # Check whether --with-openssl was given. | ||||
17375 | if test "${with_openssl+set}" = set; then : | ||||
17376 | withval=$with_openssl; | ||||
17377 | case "$withval" in | ||||
17378 | "" | y | ye | yes | n | no) | ||||
17379 | as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 | ||||
17380 | ;; | ||||
17381 | *) ssldirs="$withval" | ||||
17382 | ;; | ||||
17383 | esac | ||||
17384 | |||||
17385 | else | ||||
17386 | |||||
17387 | # if pkg-config is installed and openssl has installed a .pc file, | ||||
17388 | # then use that information and don't search ssldirs | ||||
17389 | if test -n "$ac_tool_prefix"; then | ||||
17390 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||||
17391 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||||
17392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
17393 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
17394 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : | ||||
17395 | $as_echo_n "(cached) " >&6 | ||||
17396 | else | ||||
17397 | if test -n "$PKG_CONFIG"; then | ||||
17398 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. | ||||
17399 | else | ||||
17400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
17401 | for as_dir in $PATH | ||||
17402 | do | ||||
17403 | IFS=$as_save_IFS | ||||
17404 | test -z "$as_dir" && as_dir=. | ||||
17405 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
17406 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
17407 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" | ||||
17408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
17409 | break 2 | ||||
17410 | fi | ||||
17411 | done | ||||
17412 | done | ||||
17413 | IFS=$as_save_IFS | ||||
17414 | |||||
17415 | fi | ||||
17416 | fi | ||||
17417 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG | ||||
17418 | if test -n "$PKG_CONFIG"; then | ||||
17419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||||
17420 | $as_echo "$PKG_CONFIG" >&6; } | ||||
17421 | else | ||||
17422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17423 | $as_echo "no" >&6; } | ||||
17424 | fi | ||||
17425 | |||||
17426 | |||||
17427 | fi | ||||
17428 | if test -z "$ac_cv_prog_PKG_CONFIG"; then | ||||
17429 | ac_ct_PKG_CONFIG=$PKG_CONFIG | ||||
17430 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||||
17431 | set dummy pkg-config; ac_word=$2 | ||||
17432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
17433 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
17434 | if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : | ||||
17435 | $as_echo_n "(cached) " >&6 | ||||
17436 | else | ||||
17437 | if test -n "$ac_ct_PKG_CONFIG"; then | ||||
17438 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. | ||||
17439 | else | ||||
17440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
17441 | for as_dir in $PATH | ||||
17442 | do | ||||
17443 | IFS=$as_save_IFS | ||||
17444 | test -z "$as_dir" && as_dir=. | ||||
17445 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
17446 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
17447 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" | ||||
17448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
17449 | break 2 | ||||
17450 | fi | ||||
17451 | done | ||||
17452 | done | ||||
17453 | IFS=$as_save_IFS | ||||
17454 | |||||
17455 | fi | ||||
17456 | fi | ||||
17457 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG | ||||
17458 | if test -n "$ac_ct_PKG_CONFIG"; then | ||||
17459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 | ||||
17460 | $as_echo "$ac_ct_PKG_CONFIG" >&6; } | ||||
17461 | else | ||||
17462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17463 | $as_echo "no" >&6; } | ||||
17464 | fi | ||||
17465 | |||||
17466 | if test "x$ac_ct_PKG_CONFIG" = x; then | ||||
17467 | PKG_CONFIG="" | ||||
17468 | else | ||||
17469 | case $cross_compiling:$ac_tool_warned in | ||||
17470 | yes:) | ||||
17471 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
17472 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
17473 | ac_tool_warned=yes ;; | ||||
17474 | esac | ||||
17475 | PKG_CONFIG=$ac_ct_PKG_CONFIG | ||||
17476 | fi | ||||
17477 | else | ||||
17478 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" | ||||
17479 | fi | ||||
17480 | |||||
17481 | if test x"$PKG_CONFIG" != x""; then | ||||
17482 | OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` | ||||
17483 | if test $? = 0; then | ||||
17484 | OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` | ||||
17485 | OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` | ||||
17486 | found=true | ||||
17487 | fi | ||||
17488 | fi | ||||
17489 | |||||
17490 | # no such luck; use some default ssldirs | ||||
17491 | if ! $found; then | ||||
17492 | ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" | ||||
17493 | fi | ||||
17494 | |||||
17495 | |||||
17496 | fi | ||||
17497 | |||||
17498 | |||||
17499 | |||||
17500 | # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in | ||||
17501 | # an 'openssl' subdirectory | ||||
17502 | |||||
17503 | if ! $found; then | ||||
17504 | OPENSSL_INCLUDES= | ||||
17505 | for ssldir in $ssldirs; do | ||||
17506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 | ||||
17507 | $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } | ||||
17508 | if test -f "$ssldir/include/openssl/ssl.h"; then | ||||
17509 | OPENSSL_INCLUDES="-I$ssldir/include" | ||||
17510 | OPENSSL_LDFLAGS="-L$ssldir/lib" | ||||
17511 | OPENSSL_LIBS="-lssl -lcrypto" | ||||
17512 | found=true | ||||
17513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
17514 | $as_echo "yes" >&6; } | ||||
17515 | break | ||||
17516 | else | ||||
17517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17518 | $as_echo "no" >&6; } | ||||
17519 | fi | ||||
17520 | done | ||||
17521 | |||||
17522 | # if the file wasn't found, well, go ahead and try the link anyway -- maybe | ||||
17523 | # it will just work! | ||||
17524 | fi | ||||
17525 | |||||
17526 | # try the preprocessor and linker with our new flags, | ||||
17527 | # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS | ||||
17528 | |||||
17529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 | ||||
17530 | $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } | ||||
17531 | echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ | ||||
17532 | "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 | ||||
17533 | |||||
17534 | save_LIBS="$LIBS" | ||||
17535 | save_LDFLAGS="$LDFLAGS" | ||||
17536 | save_CPPFLAGS="$CPPFLAGS" | ||||
17537 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" | ||||
17538 | LIBS="$OPENSSL_LIBS $LIBS" | ||||
17539 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" | ||||
17540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17541 | /* end confdefs.h. */ | ||||
17542 | #include <openssl/ssl.h> | ||||
17543 | int | ||||
17544 | main () | ||||
17545 | { | ||||
17546 | SSL_new(NULL) | ||||
17547 | ; | ||||
17548 | return 0; | ||||
17549 | } | ||||
17550 | _ACEOF | ||||
17551 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17552 | |||||
17553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
17554 | $as_echo "yes" >&6; } | ||||
17555 | have_openssl=yes | ||||
17556 | |||||
17557 | else | ||||
17558 | |||||
17559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17560 | $as_echo "no" >&6; } | ||||
17561 | have_openssl=no | ||||
17562 | |||||
17563 | fi | ||||
17564 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17565 | conftest$ac_exeext conftest.$ac_ext | ||||
17566 | CPPFLAGS="$save_CPPFLAGS" | ||||
17567 | LDFLAGS="$save_LDFLAGS" | ||||
17568 | LIBS="$save_LIBS" | ||||
17569 | |||||
17570 | |||||
17571 | |||||
17572 | |||||
17573 | |||||
17574 | |||||
17575 | if test "$have_openssl" = yes; then | ||||
17576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5 | ||||
17577 | $as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; } | ||||
17578 | |||||
17579 | save_LIBS="$LIBS" | ||||
17580 | save_LDFLAGS="$LDFLAGS" | ||||
17581 | save_CPPFLAGS="$CPPFLAGS" | ||||
17582 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" | ||||
17583 | LIBS="$OPENSSL_LIBS $LIBS" | ||||
17584 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" | ||||
17585 | |||||
17586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17587 | /* end confdefs.h. */ | ||||
17588 | |||||
17589 | #include <openssl/x509_vfy.h> | ||||
17590 | |||||
17591 | int | ||||
17592 | main () | ||||
17593 | { | ||||
17594 | |||||
17595 | X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new(); | ||||
17596 | X509_VERIFY_PARAM_set1_host(p, "localhost", 0); | ||||
17597 | X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1"); | ||||
17598 | X509_VERIFY_PARAM_set_hostflags(p, 0); | ||||
17599 | |||||
17600 | ; | ||||
17601 | return 0; | ||||
17602 | } | ||||
17603 | |||||
17604 | _ACEOF | ||||
17605 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17606 | |||||
17607 | ac_cv_has_x509_verify_param_set1_host=yes | ||||
17608 | |||||
17609 | else | ||||
17610 | |||||
17611 | ac_cv_has_x509_verify_param_set1_host=no | ||||
17612 | |||||
17613 | fi | ||||
17614 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17615 | conftest$ac_exeext conftest.$ac_ext | ||||
17616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5 | ||||
17617 | $as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; } | ||||
17618 | if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then | ||||
17619 | |||||
17620 | $as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h | ||||
17621 | |||||
17622 | fi | ||||
17623 | |||||
17624 | CPPFLAGS="$save_CPPFLAGS" | ||||
17625 | LDFLAGS="$save_LDFLAGS" | ||||
17626 | LIBS="$save_LIBS" | ||||
17627 | fi | ||||
17628 | |||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17629 | # ssl module default cipher suite string |
17630 | |||||
17631 | |||||
17632 | |||||
17633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 | ||||
17634 | $as_echo_n "checking for --with-ssl-default-suites... " >&6; } | ||||
17635 | |||||
17636 | # Check whether --with-ssl-default-suites was given. | ||||
17637 | if test "${with_ssl_default_suites+set}" = set; then : | ||||
17638 | withval=$with_ssl_default_suites; | ||||
17639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
17640 | $as_echo "$withval" >&6; } | ||||
17641 | case "$withval" in | ||||
17642 | python) | ||||
17643 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h | ||||
17644 | |||||
17645 | ;; | ||||
17646 | openssl) | ||||
17647 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h | ||||
17648 | |||||
17649 | ;; | ||||
17650 | *) | ||||
17651 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h | ||||
17652 | |||||
17653 | cat >>confdefs.h <<_ACEOF | ||||
17654 | #define PY_SSL_DEFAULT_CIPHER_STRING "$withval" | ||||
17655 | _ACEOF | ||||
17656 | |||||
17657 | ;; | ||||
17658 | esac | ||||
17659 | |||||
17660 | else | ||||
17661 | |||||
17662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5 | ||||
17663 | $as_echo "python" >&6; } | ||||
17664 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h | ||||
17665 | |||||
17666 | |||||
17667 | fi | ||||
17668 | |||||
17669 | |||||
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 17670 | # builtin hash modules |
17671 | default_hashlib_hashes="md5,sha1,sha256,sha512,sha3,blake2" | ||||
17672 | |||||
17673 | $as_echo "#define PY_BUILTIN_HASHLIB_HASHES /**/" >>confdefs.h | ||||
17674 | |||||
17675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5 | ||||
17676 | $as_echo_n "checking for --with-builtin-hashlib-hashes... " >&6; } | ||||
17677 | |||||
17678 | # Check whether --with-builtin-hashlib-hashes was given. | ||||
17679 | if test "${with_builtin_hashlib_hashes+set}" = set; then : | ||||
17680 | withval=$with_builtin_hashlib_hashes; | ||||
17681 | case "$withval" in | ||||
17682 | yes) | ||||
17683 | withval=$default_hashlib_hashes | ||||
17684 | ;; | ||||
17685 | no) | ||||
17686 | withval="" | ||||
17687 | ;; | ||||
17688 | esac | ||||
17689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
17690 | $as_echo "$withval" >&6; } | ||||
17691 | cat >>confdefs.h <<_ACEOF | ||||
17692 | #define PY_BUILTIN_HASHLIB_HASHES "$withval" | ||||
17693 | _ACEOF | ||||
17694 | |||||
17695 | |||||
17696 | else | ||||
17697 | |||||
17698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_hashlib_hashes" >&5 | ||||
17699 | $as_echo "$default_hashlib_hashes" >&6; }; | ||||
17700 | cat >>confdefs.h <<_ACEOF | ||||
17701 | #define PY_BUILTIN_HASHLIB_HASHES "$default_hashlib_hashes" | ||||
17702 | _ACEOF | ||||
17703 | |||||
17704 | |||||
17705 | fi | ||||
17706 | |||||
17707 | |||||
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 17708 | # --with-experimental-isolated-subinterpreters |
17709 | |||||
17710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-experimental-isolated-subinterpreters" >&5 | ||||
17711 | $as_echo_n "checking for --with-experimental-isolated-subinterpreters... " >&6; } | ||||
17712 | |||||
17713 | # Check whether --with-experimental-isolated-subinterpreters was given. | ||||
17714 | if test "${with_experimental_isolated_subinterpreters+set}" = set; then : | ||||
17715 | withval=$with_experimental_isolated_subinterpreters; | ||||
17716 | if test "$withval" != no | ||||
17717 | then | ||||
17718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
17719 | $as_echo "yes" >&6; }; | ||||
17720 | $as_echo "#define EXPERIMENTAL_ISOLATED_SUBINTERPRETERS 1" >>confdefs.h | ||||
17721 | |||||
17722 | else | ||||
17723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17724 | $as_echo "no" >&6; }; | ||||
17725 | fi | ||||
17726 | else | ||||
17727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17728 | $as_echo "no" >&6; } | ||||
17729 | fi | ||||
17730 | |||||
17731 | |||||
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 17732 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17733 | # generate output files |
Victor Stinner | 0a8e572 | 2019-05-23 03:30:23 +0200 | [diff] [blame] | 17734 | 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] | 17735 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17736 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
17737 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17738 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17739 | # This file is a shell script that caches the results of configure |
17740 | # 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] | 17741 | # scripts and configure runs, see configure's option --config-cache. |
17742 | # It is not useful on other systems. If it contains results you don't | ||||
17743 | # want to keep, you may remove or edit it. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17744 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17745 | # config.status only pays attention to the cache file if you give it |
17746 | # the --recheck option to rerun configure. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17747 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17748 | # `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] | 17749 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
17750 | # following values. | ||||
17751 | |||||
17752 | _ACEOF | ||||
17753 | |||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17754 | # The following way of writing the cache mishandles newlines in values, |
17755 | # but we know of no workaround that is simple, portable, and efficient. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17756 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17757 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17758 | # 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] | 17759 | ( |
17760 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||||
17761 | eval ac_val=\$$ac_var | ||||
17762 | case $ac_val in #( | ||||
17763 | *${as_nl}*) | ||||
17764 | case $ac_var in #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17765 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
17766 | $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] | 17767 | esac |
17768 | case $ac_var in #( | ||||
17769 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17770 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
17771 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17772 | esac ;; |
17773 | esac | ||||
17774 | done | ||||
17775 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17776 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17777 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17778 | *${as_nl}ac_space=\ *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17779 | # `set' does not quote correctly, so add quotes: double-quote |
17780 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17781 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17782 | "s/'/'\\\\''/g; |
17783 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17784 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17785 | *) |
17786 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17787 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17788 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17789 | esac | |
17790 | sort | ||||
17791 | ) | | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17792 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17793 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17794 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17795 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17796 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17797 | t end | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17798 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17799 | :end' >>confcache | ||||
17800 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||||
17801 | if test -w "$cache_file"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17802 | if test "x$cache_file" != "x/dev/null"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17803 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17804 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17805 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17806 | cat confcache >"$cache_file" | ||||
17807 | else | ||||
17808 | case $cache_file in #( | ||||
17809 | */* | ?:*) | ||||
17810 | mv -f confcache "$cache_file"$$ && | ||||
17811 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||||
17812 | *) | ||||
17813 | mv -f confcache "$cache_file" ;; | ||||
17814 | esac | ||||
17815 | fi | ||||
17816 | fi | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17817 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17819 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17820 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17821 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17822 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17823 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17824 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17825 | # Let make expand exec_prefix. | ||||
17826 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17827 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17828 | DEFS=-DHAVE_CONFIG_H |
17829 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17830 | ac_libobjs= |
17831 | ac_ltlibobjs= | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17832 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17833 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17834 | # 1. Remove the extension, and $U if already installed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17835 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17836 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17837 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
17838 | # will be set to the directory where LIBOBJS objects are built. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17839 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
17840 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17841 | done |
17842 | LIBOBJS=$ac_libobjs | ||||
17843 | |||||
17844 | LTLIBOBJS=$ac_ltlibobjs | ||||
17845 | |||||
17846 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17847 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17848 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17849 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17850 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17851 | ac_clean_files_save=$ac_clean_files |
17852 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17853 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17854 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||||
17855 | as_write_fail=0 | ||||
17856 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17857 | #! $SHELL |
17858 | # Generated by $as_me. | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17859 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17860 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17861 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17863 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17864 | ac_cs_recheck=false |
17865 | ac_cs_silent=false | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17866 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17867 | SHELL=\${CONFIG_SHELL-$SHELL} |
17868 | export SHELL | ||||
17869 | _ASEOF | ||||
17870 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||||
17871 | ## -------------------- ## | ||||
17872 | ## M4sh Initialization. ## | ||||
17873 | ## -------------------- ## | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17874 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17875 | # Be more Bourne compatible |
17876 | DUALCASE=1; export DUALCASE # for MKS sh | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17877 | 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] | 17878 | emulate sh |
17879 | NULLCMD=: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17880 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17881 | # is contrary to our usage. Disable this feature. |
17882 | alias -g '${1+"$@"}'='"$@"' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17883 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17884 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17885 | case `(set -o) 2>/dev/null` in #( |
17886 | *posix*) : | ||||
17887 | set -o posix ;; #( | ||||
17888 | *) : | ||||
17889 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17890 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17891 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17892 | |
17893 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17894 | as_nl=' |
17895 | ' | ||||
17896 | export as_nl | ||||
17897 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||||
17898 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||||
17899 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
17900 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
17901 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||||
17902 | # but without wasting forks for bash or zsh. | ||||
17903 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||||
17904 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
17905 | as_echo='print -r --' | ||||
17906 | as_echo_n='print -rn --' | ||||
17907 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
17908 | as_echo='printf %s\n' | ||||
17909 | as_echo_n='printf %s' | ||||
17910 | else | ||||
17911 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||||
17912 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||||
17913 | as_echo_n='/usr/ucb/echo -n' | ||||
17914 | else | ||||
17915 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||||
17916 | as_echo_n_body='eval | ||||
17917 | arg=$1; | ||||
17918 | case $arg in #( | ||||
17919 | *"$as_nl"*) | ||||
17920 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||||
17921 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||||
17922 | esac; | ||||
17923 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||||
17924 | ' | ||||
17925 | export as_echo_n_body | ||||
17926 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||||
17927 | fi | ||||
17928 | export as_echo_body | ||||
17929 | as_echo='sh -c $as_echo_body as_echo' | ||||
17930 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17931 | |
17932 | # The user is always right. | ||||
17933 | if test "${PATH_SEPARATOR+set}" != set; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17934 | PATH_SEPARATOR=: |
17935 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||||
17936 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||||
17937 | PATH_SEPARATOR=';' | ||||
17938 | } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17940 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17941 | |
17942 | # IFS | ||||
17943 | # We need space, tab and new line, in precisely that order. Quoting is | ||||
17944 | # there to prevent editors from complaining about space-tab. | ||||
17945 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||||
17946 | # splitting by setting IFS to empty value.) | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17947 | IFS=" "" $as_nl" |
17948 | |||||
17949 | # 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] | 17950 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17951 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17952 | *[\\/]* ) as_myself=$0 ;; |
17953 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17954 | for as_dir in $PATH |
17955 | do | ||||
17956 | IFS=$as_save_IFS | ||||
17957 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17958 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
17959 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17960 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17961 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17962 | ;; |
17963 | esac | ||||
17964 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||||
17965 | # in which case we are not to be found in the path. | ||||
17966 | if test "x$as_myself" = x; then | ||||
17967 | as_myself=$0 | ||||
17968 | fi | ||||
17969 | if test ! -f "$as_myself"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17970 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
17971 | exit 1 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17972 | fi |
17973 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17974 | # Unset variables that we do not need and which cause bugs (e.g. in |
17975 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||||
17976 | # suppresses any "Segmentation fault" message there. '((' could | ||||
17977 | # trigger a bug in pdksh 5.2.14. | ||||
17978 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||||
17979 | do eval test x\${$as_var+set} = xset \ | ||||
17980 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17981 | done |
17982 | PS1='$ ' | ||||
17983 | PS2='> ' | ||||
17984 | PS4='+ ' | ||||
17985 | |||||
17986 | # NLS nuisances. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17987 | LC_ALL=C |
17988 | export LC_ALL | ||||
17989 | LANGUAGE=C | ||||
17990 | export LANGUAGE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17991 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17992 | # CDPATH. |
17993 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||||
17994 | |||||
17995 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17996 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
17997 | # ---------------------------------------- | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17998 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17999 | # 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] | 18000 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18001 | as_fn_error () |
18002 | { | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18003 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18004 | if test "$4"; then | ||||
18005 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
18006 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18007 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18008 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18009 | as_fn_exit $as_status |
18010 | } # as_fn_error | ||||
18011 | |||||
18012 | |||||
18013 | # as_fn_set_status STATUS | ||||
18014 | # ----------------------- | ||||
18015 | # Set $? to STATUS, without forking. | ||||
18016 | as_fn_set_status () | ||||
18017 | { | ||||
18018 | return $1 | ||||
18019 | } # as_fn_set_status | ||||
18020 | |||||
18021 | # as_fn_exit STATUS | ||||
18022 | # ----------------- | ||||
18023 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||||
18024 | as_fn_exit () | ||||
18025 | { | ||||
18026 | set +e | ||||
18027 | as_fn_set_status $1 | ||||
18028 | exit $1 | ||||
18029 | } # as_fn_exit | ||||
18030 | |||||
18031 | # as_fn_unset VAR | ||||
18032 | # --------------- | ||||
18033 | # Portably unset VAR. | ||||
18034 | as_fn_unset () | ||||
18035 | { | ||||
18036 | { eval $1=; unset $1;} | ||||
18037 | } | ||||
18038 | as_unset=as_fn_unset | ||||
18039 | # as_fn_append VAR VALUE | ||||
18040 | # ---------------------- | ||||
18041 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||||
18042 | # advantage of any shell optimizations that allow amortized linear growth over | ||||
18043 | # repeated appends, instead of the typical quadratic growth present in naive | ||||
18044 | # implementations. | ||||
18045 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||||
18046 | eval 'as_fn_append () | ||||
18047 | { | ||||
18048 | eval $1+=\$2 | ||||
18049 | }' | ||||
18050 | else | ||||
18051 | as_fn_append () | ||||
18052 | { | ||||
18053 | eval $1=\$$1\$2 | ||||
18054 | } | ||||
18055 | fi # as_fn_append | ||||
18056 | |||||
18057 | # as_fn_arith ARG... | ||||
18058 | # ------------------ | ||||
18059 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||||
18060 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||||
18061 | # must be portable across $(()) and expr. | ||||
18062 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||||
18063 | eval 'as_fn_arith () | ||||
18064 | { | ||||
18065 | as_val=$(( $* )) | ||||
18066 | }' | ||||
18067 | else | ||||
18068 | as_fn_arith () | ||||
18069 | { | ||||
18070 | as_val=`expr "$@" || test $? -eq 1` | ||||
18071 | } | ||||
18072 | fi # as_fn_arith | ||||
18073 | |||||
18074 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18075 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18076 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||||
18077 | as_expr=expr | ||||
18078 | else | ||||
18079 | as_expr=false | ||||
18080 | fi | ||||
18081 | |||||
18082 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||||
18083 | as_basename=basename | ||||
18084 | else | ||||
18085 | as_basename=false | ||||
18086 | fi | ||||
18087 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18088 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18089 | as_dirname=dirname | ||||
18090 | else | ||||
18091 | as_dirname=false | ||||
18092 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18093 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18094 | as_me=`$as_basename -- "$0" || |
18095 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||||
18096 | X"$0" : 'X\(//\)$' \| \ | ||||
18097 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18098 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18099 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18100 | s//\1/ | ||||
18101 | q | ||||
18102 | } | ||||
18103 | /^X\/\(\/\/\)$/{ | ||||
18104 | s//\1/ | ||||
18105 | q | ||||
18106 | } | ||||
18107 | /^X\/\(\/\).*/{ | ||||
18108 | s//\1/ | ||||
18109 | q | ||||
18110 | } | ||||
18111 | s/.*/./; q'` | ||||
18112 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18113 | # Avoid depending upon Character Ranges. |
18114 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||||
18115 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||||
18116 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||||
18117 | as_cr_digits='0123456789' | ||||
18118 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18119 | |
18120 | ECHO_C= ECHO_N= ECHO_T= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18121 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18122 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18123 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18124 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18125 | xy) ECHO_C='\c';; |
18126 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||||
18127 | ECHO_T=' ';; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18128 | esac;; |
18129 | *) | ||||
18130 | ECHO_N='-n';; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18131 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 18132 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18133 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18134 | if test -d conf$$.dir; then |
18135 | rm -f conf$$.dir/conf$$.file | ||||
18136 | else | ||||
18137 | rm -f conf$$.dir | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18138 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18139 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18140 | if (echo >conf$$.file) 2>/dev/null; then |
18141 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||||
18142 | as_ln_s='ln -s' | ||||
18143 | # ... but there are two gotchas: | ||||
18144 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||||
18145 | # 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] | 18146 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18147 | 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] | 18148 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18149 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18150 | as_ln_s=ln | ||||
18151 | else | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18152 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18153 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18154 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18155 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18156 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18157 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18158 | rmdir conf$$.dir 2>/dev/null | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18159 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18160 | |
18161 | # as_fn_mkdir_p | ||||
18162 | # ------------- | ||||
18163 | # Create "$as_dir" as a directory, including parents if necessary. | ||||
18164 | as_fn_mkdir_p () | ||||
18165 | { | ||||
18166 | |||||
18167 | case $as_dir in #( | ||||
18168 | -*) as_dir=./$as_dir;; | ||||
18169 | esac | ||||
18170 | test -d "$as_dir" || eval $as_mkdir_p || { | ||||
18171 | as_dirs= | ||||
18172 | while :; do | ||||
18173 | case $as_dir in #( | ||||
18174 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||||
18175 | *) as_qdir=$as_dir;; | ||||
18176 | esac | ||||
18177 | as_dirs="'$as_qdir' $as_dirs" | ||||
18178 | as_dir=`$as_dirname -- "$as_dir" || | ||||
18179 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
18180 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||||
18181 | X"$as_dir" : 'X\(//\)$' \| \ | ||||
18182 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||||
18183 | $as_echo X"$as_dir" | | ||||
18184 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||||
18185 | s//\1/ | ||||
18186 | q | ||||
18187 | } | ||||
18188 | /^X\(\/\/\)[^/].*/{ | ||||
18189 | s//\1/ | ||||
18190 | q | ||||
18191 | } | ||||
18192 | /^X\(\/\/\)$/{ | ||||
18193 | s//\1/ | ||||
18194 | q | ||||
18195 | } | ||||
18196 | /^X\(\/\).*/{ | ||||
18197 | s//\1/ | ||||
18198 | q | ||||
18199 | } | ||||
18200 | s/.*/./; q'` | ||||
18201 | test -d "$as_dir" && break | ||||
18202 | done | ||||
18203 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18204 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18205 | |
18206 | |||||
18207 | } # as_fn_mkdir_p | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18208 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18209 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18210 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18211 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18212 | as_mkdir_p=false |
18213 | fi | ||||
18214 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18215 | |
18216 | # as_fn_executable_p FILE | ||||
18217 | # ----------------------- | ||||
18218 | # Test if FILE is an executable regular file. | ||||
18219 | as_fn_executable_p () | ||||
18220 | { | ||||
18221 | test -f "$1" && test -x "$1" | ||||
18222 | } # as_fn_executable_p | ||||
18223 | as_test_x='test -x' | ||||
18224 | as_executable_p=as_fn_executable_p | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18225 | |
18226 | # Sed expression to map a string onto a valid CPP name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18227 | 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] | 18228 | |
18229 | # Sed expression to map a string onto a valid variable name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18230 | 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] | 18231 | |
18232 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18233 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18234 | ## ----------------------------------- ## |
18235 | ## Main body of $CONFIG_STATUS script. ## | ||||
18236 | ## ----------------------------------- ## | ||||
18237 | _ASEOF | ||||
18238 | 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] | 18239 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18240 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18241 | # 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] | 18242 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18243 | # values after options handling. |
18244 | ac_log=" | ||||
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 18245 | This file was extended by python $as_me 3.10, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18246 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18247 | |
18248 | CONFIG_FILES = $CONFIG_FILES | ||||
18249 | CONFIG_HEADERS = $CONFIG_HEADERS | ||||
18250 | CONFIG_LINKS = $CONFIG_LINKS | ||||
18251 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||||
18252 | $ $0 $@ | ||||
18253 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18254 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18255 | " | ||||
18256 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18257 | _ACEOF |
18258 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18259 | case $ac_config_files in *" |
18260 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||||
18261 | esac | ||||
18262 | |||||
18263 | case $ac_config_headers in *" | ||||
18264 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||||
18265 | esac | ||||
18266 | |||||
18267 | |||||
18268 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18269 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 18270 | config_files="$ac_config_files" |
18271 | config_headers="$ac_config_headers" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18272 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18273 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18274 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18275 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18276 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18277 | \`$as_me' instantiates files and other configuration actions |
18278 | from templates according to the current configuration. Unless the files | ||||
18279 | 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] | 18280 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18281 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18282 | |
18283 | -h, --help print this help, then exit | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18284 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18285 | --config print configuration, then exit |
18286 | -q, --quiet, --silent | ||||
18287 | do not print progress messages | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18288 | -d, --debug don't remove temporary files |
18289 | --recheck update $as_me by reconfiguring in the same conditions | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18290 | --file=FILE[:TEMPLATE] |
18291 | instantiate the configuration file FILE | ||||
18292 | --header=FILE[:TEMPLATE] | ||||
18293 | instantiate the configuration header FILE | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18294 | |
18295 | Configuration files: | ||||
18296 | $config_files | ||||
18297 | |||||
18298 | Configuration headers: | ||||
18299 | $config_headers | ||||
18300 | |||||
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 18301 | Report bugs to <https://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 18302 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18303 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18304 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18305 | 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] | 18306 | ac_cs_version="\\ |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 18307 | python config.status 3.10 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18308 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18309 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18310 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18311 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18312 | This config.status script is free software; the Free Software Foundation |
18313 | gives unlimited permission to copy, distribute and modify it." | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18314 | |
18315 | ac_pwd='$ac_pwd' | ||||
18316 | srcdir='$srcdir' | ||||
18317 | INSTALL='$INSTALL' | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 18318 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18319 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18320 | _ACEOF |
18321 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18322 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18323 | # 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] | 18324 | ac_need_defaults=: |
18325 | while test $# != 0 | ||||
18326 | do | ||||
18327 | case $1 in | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18328 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18329 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18330 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18331 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18332 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18333 | --*=) |
18334 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||||
18335 | ac_optarg= | ||||
18336 | ac_shift=: | ||||
18337 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18338 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18339 | ac_option=$1 |
18340 | ac_optarg=$2 | ||||
18341 | ac_shift=shift | ||||
18342 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18343 | esac |
18344 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18345 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18346 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18347 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18348 | ac_cs_recheck=: ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18349 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18350 | $as_echo "$ac_cs_version"; exit ;; |
18351 | --config | --confi | --conf | --con | --co | --c ) | ||||
18352 | $as_echo "$ac_cs_config"; exit ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18353 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18354 | debug=: ;; |
18355 | --file | --fil | --fi | --f ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18356 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18357 | case $ac_optarg in |
18358 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18359 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18360 | esac |
18361 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18362 | ac_need_defaults=false;; |
18363 | --header | --heade | --head | --hea ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18364 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18365 | case $ac_optarg in |
18366 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||||
18367 | esac | ||||
18368 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18369 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18370 | --he | --h) |
18371 | # Conflict between --help and --header | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18372 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18373 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18374 | --help | --hel | -h ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18375 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18376 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18377 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||||
18378 | ac_cs_silent=: ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18379 | |
18380 | # This is an error. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18381 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18382 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18383 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18384 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18385 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18386 | |
18387 | esac | ||||
18388 | shift | ||||
18389 | done | ||||
18390 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18391 | ac_configure_extra_args= |
18392 | |||||
18393 | if $ac_cs_silent; then | ||||
18394 | exec 6>/dev/null | ||||
18395 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||||
18396 | fi | ||||
18397 | |||||
18398 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18399 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18400 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 18401 | 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] | 18402 | shift |
18403 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||||
18404 | CONFIG_SHELL='$SHELL' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18405 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18406 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18407 | fi |
18408 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18409 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18410 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18411 | exec 5>>config.log |
18412 | { | ||||
18413 | echo | ||||
18414 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||||
18415 | ## Running $as_me. ## | ||||
18416 | _ASBOX | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18417 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18418 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18419 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18420 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18421 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18422 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18423 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18424 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18425 | |
18426 | # Handling of arguments. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18427 | for ac_config_target in $ac_config_targets |
18428 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18429 | case $ac_config_target in |
18430 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | ||||
18431 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | ||||
18432 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 18433 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
18434 | "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] | 18435 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18436 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Victor Stinner | 0a8e572 | 2019-05-23 03:30:23 +0200 | [diff] [blame] | 18437 | "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] | 18438 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 18439 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18440 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18441 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18442 | esac |
18443 | done | ||||
18444 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18446 | # If the user did not use the arguments to specify the items to instantiate, |
18447 | # then the envvar interface is used. Set only those that are not. | ||||
18448 | # We use the long form for the default assignment because of an extremely | ||||
18449 | # bizarre bug on SunOS 4.1.3. | ||||
18450 | if $ac_need_defaults; then | ||||
18451 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||||
18452 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||||
18453 | fi | ||||
18454 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18455 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18456 | # 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] | 18457 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18458 | # Hook for its removal unless debugging. |
18459 | # Note that there is a small window in which the directory will not be cleaned: | ||||
18460 | # 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] | 18461 | $debug || |
18462 | { | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18463 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18464 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18465 | : "${ac_tmp:=$tmp}" |
18466 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18467 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18468 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18469 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18470 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18472 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18473 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18474 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18475 | } || |
18476 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18477 | tmp=./conf$$-$RANDOM |
18478 | (umask 077 && mkdir "$tmp") | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18479 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18480 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18481 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18482 | # Set up the scripts for CONFIG_FILES section. |
18483 | # No need to generate them if there are no CONFIG_FILES. | ||||
18484 | # This happens for instance with `./config.status config.h'. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18485 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18486 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18487 | |
18488 | ac_cr=`echo X | tr X '\015'` | ||||
18489 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||||
18490 | # But we know of no other shell where ac_cr would be empty at this | ||||
18491 | # point, so we can use a bashism as a fallback. | ||||
18492 | if test "x$ac_cr" = x; then | ||||
18493 | eval ac_cr=\$\'\\r\' | ||||
18494 | fi | ||||
18495 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||||
18496 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18497 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18498 | else |
18499 | ac_cs_awk_cr=$ac_cr | ||||
18500 | fi | ||||
18501 | |||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18502 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18503 | _ACEOF |
18504 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18505 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18506 | { |
18507 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||||
18508 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||||
18509 | echo "_ACEOF" | ||||
18510 | } >conf$$subs.sh || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18511 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18512 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18513 | ac_delim='%!_!# ' |
18514 | for ac_last_try in false false false false false :; do | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18515 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18516 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18517 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18518 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
18519 | if test $ac_delim_n = $ac_delim_num; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18520 | break |
18521 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18522 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18523 | else |
18524 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18525 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18526 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18527 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18528 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18529 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18530 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18531 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18532 | sed -n ' |
18533 | h | ||||
18534 | s/^/S["/; s/!.*/"]=/ | ||||
18535 | p | ||||
18536 | g | ||||
18537 | s/^[^!]*!// | ||||
18538 | :repl | ||||
18539 | t repl | ||||
18540 | s/'"$ac_delim"'$// | ||||
18541 | t delim | ||||
18542 | :nl | ||||
18543 | h | ||||
18544 | s/\(.\{148\}\)..*/\1/ | ||||
18545 | t more1 | ||||
18546 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||||
18547 | p | ||||
18548 | n | ||||
18549 | b repl | ||||
18550 | :more1 | ||||
18551 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
18552 | p | ||||
18553 | g | ||||
18554 | s/.\{148\}// | ||||
18555 | t nl | ||||
18556 | :delim | ||||
18557 | h | ||||
18558 | s/\(.\{148\}\)..*/\1/ | ||||
18559 | t more2 | ||||
18560 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||||
18561 | p | ||||
18562 | b | ||||
18563 | :more2 | ||||
18564 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
18565 | p | ||||
18566 | g | ||||
18567 | s/.\{148\}// | ||||
18568 | t delim | ||||
18569 | ' <conf$$subs.awk | sed ' | ||||
18570 | /^[^""]/{ | ||||
18571 | N | ||||
18572 | s/\n// | ||||
18573 | } | ||||
18574 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
18575 | rm -f conf$$subs.awk | ||||
18576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
18577 | _ACAWK | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18578 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18579 | for (key in S) S_is_set[key] = 1 |
18580 | FS = "" | ||||
18581 | |||||
18582 | } | ||||
18583 | { | ||||
18584 | line = $ 0 | ||||
18585 | nfields = split(line, field, "@") | ||||
18586 | substed = 0 | ||||
18587 | len = length(field[1]) | ||||
18588 | for (i = 2; i < nfields; i++) { | ||||
18589 | key = field[i] | ||||
18590 | keylen = length(key) | ||||
18591 | if (S_is_set[key]) { | ||||
18592 | value = S[key] | ||||
18593 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||||
18594 | len += length(value) + length(field[++i]) | ||||
18595 | substed = 1 | ||||
18596 | } else | ||||
18597 | len += 1 + keylen | ||||
18598 | } | ||||
18599 | |||||
18600 | print line | ||||
18601 | } | ||||
18602 | |||||
18603 | _ACAWK | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18604 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18605 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18606 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||||
18607 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||||
18608 | else | ||||
18609 | cat | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18610 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18611 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 18612 | _ACEOF |
18613 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18614 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18615 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18616 | # trailing colons and then remove the whole line if VPATH becomes empty |
18617 | # (actually we leave an empty line to preserve line numbers). | ||||
18618 | if test "x$srcdir" = x.; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18619 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18620 | h | ||||
18621 | s/// | ||||
18622 | s/^/:/ | ||||
18623 | s/[ ]*$/:/ | ||||
18624 | s/:\$(srcdir):/:/g | ||||
18625 | s/:\${srcdir}:/:/g | ||||
18626 | s/:@srcdir@:/:/g | ||||
18627 | s/^:*// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18628 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18629 | x |
18630 | s/\(=[ ]*\).*/\1/ | ||||
18631 | G | ||||
18632 | s/\n// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18633 | s/^[^=]*=[ ]*$// |
18634 | }' | ||||
18635 | fi | ||||
18636 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18637 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18638 | fi # test -n "$CONFIG_FILES" |
18639 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18640 | # Set up the scripts for CONFIG_HEADERS section. |
18641 | # No need to generate them if there are no CONFIG_HEADERS. | ||||
18642 | # This happens for instance with `./config.status Makefile'. | ||||
18643 | if test -n "$CONFIG_HEADERS"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18644 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18645 | BEGIN { |
18646 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18647 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18648 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18649 | # here-document in config.status, that substitutes the proper values into | ||||
18650 | # config.h.in to produce config.h. | ||||
18651 | |||||
18652 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||||
18653 | # handling of long lines. | ||||
18654 | ac_delim='%!_!# ' | ||||
18655 | for ac_last_try in false false :; do | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18656 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18657 | if test -z "$ac_tt"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18658 | break |
18659 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18660 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18661 | else |
18662 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
18663 | fi | ||||
18664 | done | ||||
18665 | |||||
18666 | # For the awk script, D is an array of macro values keyed by name, | ||||
18667 | # likewise P contains macro parameters if any. Preserve backslash | ||||
18668 | # newline sequences. | ||||
18669 | |||||
18670 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||||
18671 | sed -n ' | ||||
18672 | s/.\{148\}/&'"$ac_delim"'/g | ||||
18673 | t rset | ||||
18674 | :rset | ||||
18675 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||||
18676 | t def | ||||
18677 | d | ||||
18678 | :def | ||||
18679 | s/\\$// | ||||
18680 | t bsnl | ||||
18681 | s/["\\]/\\&/g | ||||
18682 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
18683 | D["\1"]=" \3"/p | ||||
18684 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||||
18685 | d | ||||
18686 | :bsnl | ||||
18687 | s/["\\]/\\&/g | ||||
18688 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
18689 | D["\1"]=" \3\\\\\\n"\\/p | ||||
18690 | t cont | ||||
18691 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||||
18692 | t cont | ||||
18693 | d | ||||
18694 | :cont | ||||
18695 | n | ||||
18696 | s/.\{148\}/&'"$ac_delim"'/g | ||||
18697 | t clear | ||||
18698 | :clear | ||||
18699 | s/\\$// | ||||
18700 | t bsnlc | ||||
18701 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||||
18702 | d | ||||
18703 | :bsnlc | ||||
18704 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||||
18705 | b cont | ||||
18706 | ' <confdefs.h | sed ' | ||||
18707 | s/'"$ac_delim"'/"\\\ | ||||
18708 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
18709 | |||||
18710 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
18711 | for (key in D) D_is_set[key] = 1 | ||||
18712 | FS = "" | ||||
18713 | } | ||||
18714 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||||
18715 | line = \$ 0 | ||||
18716 | split(line, arg, " ") | ||||
18717 | if (arg[1] == "#") { | ||||
18718 | defundef = arg[2] | ||||
18719 | mac1 = arg[3] | ||||
18720 | } else { | ||||
18721 | defundef = substr(arg[1], 2) | ||||
18722 | mac1 = arg[2] | ||||
18723 | } | ||||
18724 | split(mac1, mac2, "(") #) | ||||
18725 | macro = mac2[1] | ||||
18726 | prefix = substr(line, 1, index(line, defundef) - 1) | ||||
18727 | if (D_is_set[macro]) { | ||||
18728 | # Preserve the white space surrounding the "#". | ||||
18729 | print prefix "define", macro P[macro] D[macro] | ||||
18730 | next | ||||
18731 | } else { | ||||
18732 | # Replace #undef with comments. This is necessary, for example, | ||||
18733 | # in the case of _POSIX_SOURCE, which is predefined and required | ||||
18734 | # on some systems where configure will not decide to define it. | ||||
18735 | if (defundef == "undef") { | ||||
18736 | print "/*", prefix defundef, macro, "*/" | ||||
18737 | next | ||||
18738 | } | ||||
18739 | } | ||||
18740 | } | ||||
18741 | { print } | ||||
18742 | _ACAWK | ||||
18743 | _ACEOF | ||||
18744 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18745 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18746 | fi # test -n "$CONFIG_HEADERS" |
18747 | |||||
18748 | |||||
18749 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||||
18750 | shift | ||||
18751 | for ac_tag | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18752 | do |
18753 | case $ac_tag in | ||||
18754 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||||
18755 | esac | ||||
18756 | case $ac_mode$ac_tag in | ||||
18757 | :[FHL]*:*);; | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18758 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18759 | :[FH]-) ac_tag=-:-;; |
18760 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||||
18761 | esac | ||||
18762 | ac_save_IFS=$IFS | ||||
18763 | IFS=: | ||||
18764 | set x $ac_tag | ||||
18765 | IFS=$ac_save_IFS | ||||
18766 | shift | ||||
18767 | ac_file=$1 | ||||
18768 | shift | ||||
18769 | |||||
18770 | case $ac_mode in | ||||
18771 | :L) ac_source=$1;; | ||||
18772 | :[FH]) | ||||
18773 | ac_file_inputs= | ||||
18774 | for ac_f | ||||
18775 | do | ||||
18776 | case $ac_f in | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18777 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18778 | *) # Look for the file first in the build tree, then in the source tree |
18779 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||||
18780 | # because $ac_f cannot contain `:'. | ||||
18781 | test -f "$ac_f" || | ||||
18782 | case $ac_f in | ||||
18783 | [\\/$]*) false;; | ||||
18784 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||||
18785 | esac || | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18786 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18787 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18788 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
18789 | as_fn_append ac_file_inputs " '$ac_f'" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18790 | done |
18791 | |||||
18792 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||||
18793 | # use $as_me), people would be surprised to read: | ||||
18794 | # /* config.h. Generated by config.status. */ | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18795 | configure_input='Generated from '` |
18796 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||||
18797 | `' by configure.' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18798 | if test x"$ac_file" != x-; then |
18799 | configure_input="$ac_file. $configure_input" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18800 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
18801 | $as_echo "$as_me: creating $ac_file" >&6;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18802 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18803 | # Neutralize special characters interpreted by sed in replacement strings. |
18804 | case $configure_input in #( | ||||
18805 | *\&* | *\|* | *\\* ) | ||||
18806 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||||
18807 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||||
18808 | *) ac_sed_conf_input=$configure_input;; | ||||
18809 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18810 | |
18811 | case $ac_tag in | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18812 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18813 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18814 | esac |
18815 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18816 | esac |
18817 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18818 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18819 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18820 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
18821 | X"$ac_file" : 'X\(//\)$' \| \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18822 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18823 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18824 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18825 | s//\1/ | ||||
18826 | q | ||||
18827 | } | ||||
18828 | /^X\(\/\/\)[^/].*/{ | ||||
18829 | s//\1/ | ||||
18830 | q | ||||
18831 | } | ||||
18832 | /^X\(\/\/\)$/{ | ||||
18833 | s//\1/ | ||||
18834 | q | ||||
18835 | } | ||||
18836 | /^X\(\/\).*/{ | ||||
18837 | s//\1/ | ||||
18838 | q | ||||
18839 | } | ||||
18840 | s/.*/./; q'` | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18841 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18842 | ac_builddir=. |
18843 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18844 | case "$ac_dir" in |
18845 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
18846 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18847 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18848 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18849 | 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] | 18850 | case $ac_top_builddir_sub in |
18851 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
18852 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
18853 | esac ;; | ||||
18854 | esac | ||||
18855 | ac_abs_top_builddir=$ac_pwd | ||||
18856 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
18857 | # for backward compatibility: | ||||
18858 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18859 | |
18860 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18861 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18862 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18863 | ac_top_srcdir=$ac_top_builddir_sub |
18864 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
18865 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18866 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18867 | ac_top_srcdir=$srcdir |
18868 | ac_abs_top_srcdir=$srcdir ;; | ||||
18869 | *) # Relative name. | ||||
18870 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
18871 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
18872 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18873 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18874 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18876 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18877 | case $ac_mode in |
18878 | :F) | ||||
18879 | # | ||||
18880 | # CONFIG_FILE | ||||
18881 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18882 | |
18883 | case $INSTALL in | ||||
18884 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18885 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18886 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 18887 | ac_MKDIR_P=$MKDIR_P |
18888 | case $MKDIR_P in | ||||
18889 | [\\/$]* | ?:[\\/]* ) ;; | ||||
18890 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||||
18891 | esac | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18892 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18893 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18894 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18895 | # If the template does not know about datarootdir, expand it. |
18896 | # FIXME: This hack should be removed a few years after 2.60. | ||||
18897 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18898 | ac_sed_dataroot=' |
18899 | /datarootdir/ { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18900 | p |
18901 | q | ||||
18902 | } | ||||
18903 | /@datadir@/p | ||||
18904 | /@docdir@/p | ||||
18905 | /@infodir@/p | ||||
18906 | /@localedir@/p | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18907 | /@mandir@/p' |
18908 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18909 | *datarootdir*) ac_datarootdir_seen=yes;; |
18910 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
18912 | $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] | 18913 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18914 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18915 | ac_datarootdir_hack=' |
18916 | s&@datadir@&$datadir&g | ||||
18917 | s&@docdir@&$docdir&g | ||||
18918 | s&@infodir@&$infodir&g | ||||
18919 | s&@localedir@&$localedir&g | ||||
18920 | s&@mandir@&$mandir&g | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18921 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18922 | esac |
18923 | _ACEOF | ||||
18924 | |||||
18925 | # Neutralize VPATH when `$srcdir' = `.'. | ||||
18926 | # Shell code in configure.ac might set extrasub. | ||||
18927 | # FIXME: do we really want to maintain this feature? | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18928 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18929 | ac_sed_extra="$ac_vpsub | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18930 | $extrasub |
18931 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18932 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18933 | :t |
18934 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18935 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18936 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18937 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18938 | s&@srcdir@&$ac_srcdir&;t t |
18939 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||||
18940 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||||
18941 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||||
18942 | s&@builddir@&$ac_builddir&;t t | ||||
18943 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||||
18944 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||||
18945 | s&@INSTALL@&$ac_INSTALL&;t t | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 18946 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18947 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18948 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18949 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
18950 | >$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] | 18951 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18952 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18953 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
18954 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||||
18955 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18956 | { $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] | 18957 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18958 | $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] | 18959 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18960 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18961 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18962 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18963 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
18964 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18965 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18966 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18967 | ;; |
18968 | :H) | ||||
18969 | # | ||||
18970 | # CONFIG_HEADER | ||||
18971 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18972 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18973 | { |
18974 | $as_echo "/* $configure_input */" \ | ||||
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18975 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
18976 | } >"$ac_tmp/config.h" \ | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18977 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18978 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18979 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
18980 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18981 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18982 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18983 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18984 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18985 | fi |
18986 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18987 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18988 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18989 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18990 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18991 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18992 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18993 | |
18994 | esac | ||||
18995 | |||||
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 18996 | |
18997 | case $ac_file$ac_mode in | ||||
18998 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | ||||
18999 | |||||
19000 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19001 | done # for ac_tag |
19002 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19003 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19004 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19005 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19006 | ac_clean_files=$ac_clean_files_save |
19007 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19008 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19009 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19011 | |
19012 | # configure is writing to config.log, and then calls config.status. | ||||
19013 | # config.status does its own redirection, appending to config.log. | ||||
19014 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||||
19015 | # by configure, so config.status won't be able to write to it; its | ||||
19016 | # output is simply discarded. So we exec the FD to /dev/null, | ||||
19017 | # effectively closing config.log, so it can be properly (re)opened and | ||||
19018 | # appended to by config.status. When coming back to configure, we | ||||
19019 | # need to make the FD available again. | ||||
19020 | if test "$no_create" != yes; then | ||||
19021 | ac_cs_success=: | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19022 | ac_config_status_args= |
19023 | test "$silent" = yes && | ||||
19024 | ac_config_status_args="$ac_config_status_args --quiet" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19025 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19026 | $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] | 19027 | exec 5>>config.log |
19028 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||||
19029 | # would make configure fail if this is the last instruction. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 19030 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19031 | fi |
19032 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||||
19033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||||
19034 | $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] | 19035 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19036 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19037 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 19038 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19039 | if test ! -f Modules/Setup.local |
19040 | then | ||||
19041 | echo "# Edit this file for local setup changes" >Modules/Setup.local | ||||
19042 | fi | ||||
19043 | |||||
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 19044 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 19045 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 19046 | -s Modules \ |
Antoine Pitrou | 961d54c | 2018-07-16 19:03:03 +0200 | [diff] [blame] | 19047 | Modules/Setup.local $srcdir/Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 19048 | mv config.c Modules |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 19049 | |
19050 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | ||||
19051 | echo "" >&6 | ||||
19052 | echo "" >&6 | ||||
Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame] | 19053 | 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] | 19054 | echo "please run ./configure --enable-optimizations" >&6 |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 19055 | echo "" >&6 |
19056 | echo "" >&6 | ||||
19057 | fi | ||||
19058 |